diff --git a/CHANGELOG.md b/CHANGELOG.md index fa3849e7..f2dbfcf3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ All notable changes to this project will be documented in this file. +## [v0.2.0] + +### Added +- Possibility to change `mode` dynamically. + ## [v0.1.8] ### Fixed diff --git a/docs/assets/arc-12672da3.js b/docs/assets/arc-2fa818f3.js similarity index 98% rename from docs/assets/arc-12672da3.js rename to docs/assets/arc-2fa818f3.js index d0aef432..fcf6c3e7 100644 --- a/docs/assets/arc-12672da3.js +++ b/docs/assets/arc-2fa818f3.js @@ -1 +1 @@ -import{w as ln,c as H}from"./path-53f90ab3.js";import{aC as an,aD as M,aE as D,aF as rn,aG as y,S as on,aH as j,aI as _,aJ as un,aK as t,aL as sn,aM as tn,aN as fn}from"./index-b4f98efc.js";function cn(l){return l.innerRadius}function yn(l){return l.outerRadius}function gn(l){return l.startAngle}function mn(l){return l.endAngle}function pn(l){return l&&l.padAngle}function dn(l,h,S,E,v,A,J,a){var q=S-l,i=E-h,n=J-v,m=a-A,r=m*q-n*i;if(!(r*ru*u+L*L&&(F=w,G=d),{cx:F,cy:G,x01:-n,y01:-m,x11:F*(v/T-1),y11:G*(v/T-1)}}function vn(){var l=cn,h=yn,S=H(0),E=null,v=gn,A=mn,J=pn,a=null,q=ln(i);function i(){var n,m,r=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-rn,c=A.apply(this,arguments)-rn,K=un(c-f),o=c>f;if(a||(a=n=q()),sy))a.moveTo(0,0);else if(K>on-y)a.moveTo(s*M(f),s*D(f)),a.arc(0,0,s,f,c,!o),r>y&&(a.moveTo(r*M(c),r*D(c)),a.arc(0,0,r,c,f,o));else{var p=f,g=c,R=f,T=c,P=K,C=K,F=J.apply(this,arguments)/2,G=F>y&&(E?+E.apply(this,arguments):j(r*r+s*s)),w=_(un(s-r)/2,+S.apply(this,arguments)),d=w,x=w,e,u;if(G>y){var L=sn(G/r*D(F)),z=sn(G/s*D(F));(P-=L*2)>y?(L*=o?1:-1,R+=L,T-=L):(P=0,R=T=(f+c)/2),(C-=z*2)>y?(z*=o?1:-1,p+=z,g-=z):(C=0,p=g=(f+c)/2)}var N=s*M(p),O=s*D(p),B=r*M(T),Q=r*D(T);if(w>y){var U=s*M(g),V=s*D(g),X=r*M(R),Y=r*D(R),I;if(Ky?x>y?(e=W(X,Y,N,O,s,x,o),u=W(U,V,B,Q,s,x,o),a.moveTo(e.cx+e.x01,e.cy+e.y01),xy)||!(P>y)?a.lineTo(B,Q):d>y?(e=W(B,Q,U,V,r,-d,o),u=W(N,O,X,Y,r,-d,o),a.lineTo(e.cx+e.x01,e.cy+e.y01),du*u+L*L&&(F=w,G=d),{cx:F,cy:G,x01:-n,y01:-m,x11:F*(v/T-1),y11:G*(v/T-1)}}function vn(){var l=cn,h=yn,S=H(0),E=null,v=gn,A=mn,J=pn,a=null,q=ln(i);function i(){var n,m,r=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-rn,c=A.apply(this,arguments)-rn,K=un(c-f),o=c>f;if(a||(a=n=q()),sy))a.moveTo(0,0);else if(K>on-y)a.moveTo(s*M(f),s*D(f)),a.arc(0,0,s,f,c,!o),r>y&&(a.moveTo(r*M(c),r*D(c)),a.arc(0,0,r,c,f,o));else{var p=f,g=c,R=f,T=c,P=K,C=K,F=J.apply(this,arguments)/2,G=F>y&&(E?+E.apply(this,arguments):j(r*r+s*s)),w=_(un(s-r)/2,+S.apply(this,arguments)),d=w,x=w,e,u;if(G>y){var L=sn(G/r*D(F)),z=sn(G/s*D(F));(P-=L*2)>y?(L*=o?1:-1,R+=L,T-=L):(P=0,R=T=(f+c)/2),(C-=z*2)>y?(z*=o?1:-1,p+=z,g-=z):(C=0,p=g=(f+c)/2)}var N=s*M(p),O=s*D(p),B=r*M(T),Q=r*D(T);if(w>y){var U=s*M(g),V=s*D(g),X=r*M(R),Y=r*D(R),I;if(Ky?x>y?(e=W(X,Y,N,O,s,x,o),u=W(U,V,B,Q,s,x,o),a.moveTo(e.cx+e.x01,e.cy+e.y01),xy)||!(P>y)?a.lineTo(B,Q):d>y?(e=W(B,Q,U,V,r,-d,o),u=W(N,O,X,Y,r,-d,o),a.lineTo(e.cx+e.x01,e.cy+e.y01),d"u"&&(D.yylloc={});var se=D.yylloc;h.push(se);var Ne=D.options&&D.options.ranges;typeof Mt.yy.parseError=="function"?this.parseError=Mt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Be(){var z;return z=g.pop()||D.lex()||ge,typeof z!="number"&&(z instanceof Array&&(g=z,z=g.pop()),z=x.symbols_[z]||z),z}for(var M,Lt,N,ae,Bt={},zt,X,be,Wt;;){if(Lt=m[m.length-1],this.defaultActions[Lt]?N=this.defaultActions[Lt]:((M===null||typeof M>"u")&&(M=Be()),N=Vt[Lt]&&Vt[Lt][M]),typeof N>"u"||!N.length||!N[0]){var re="";Wt=[];for(zt in Vt[Lt])this.terminals_[zt]&&zt>Me&&Wt.push("'"+this.terminals_[zt]+"'");D.showPosition?re="Parse error on line "+(Pt+1)+`: +import{s as Ye,g as Ie,a as Ve,b as je,c as Ut,d as Ee,m as Ue,e as Fe,f as Yt,h as Qt,l as _e,i as Xe,w as ze,j as le,k as xe,n as We}from"./index-0e08498d.js";import{d as Qe,g as He}from"./svgDrawCommon-f26cad39-ad1bc4a5.js";var qt=function(){var e=function(Ot,_,x,m){for(x=x||{},m=Ot.length;m--;x[Ot[m]]=_);return x},t=[1,6],a=[1,7],o=[1,8],l=[1,9],i=[1,16],s=[1,11],r=[1,12],n=[1,13],u=[1,14],y=[1,15],d=[1,27],p=[1,33],C=[1,34],T=[1,35],R=[1,36],S=[1,37],L=[1,72],Y=[1,73],Q=[1,74],H=[1,75],q=[1,76],G=[1,77],K=[1,78],J=[1,38],Z=[1,39],$=[1,40],tt=[1,41],et=[1,42],it=[1,43],nt=[1,44],st=[1,45],at=[1,46],rt=[1,47],lt=[1,48],ot=[1,49],ct=[1,50],ht=[1,51],ut=[1,52],dt=[1,53],ft=[1,54],pt=[1,55],yt=[1,56],gt=[1,57],bt=[1,59],_t=[1,60],xt=[1,61],mt=[1,62],vt=[1,63],Et=[1,64],kt=[1,65],At=[1,66],Ct=[1,67],wt=[1,68],Tt=[1,69],Nt=[24,52],$t=[24,44,46,47,48,49,50,51,52,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],It=[15,24,44,46,47,48,49,50,51,52,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],v=[1,94],E=[1,95],k=[1,96],A=[1,97],w=[15,24,52],fe=[7,8,9,10,18,22,25,26,27,28],pe=[15,24,43,52],Xt=[15,24,43,52,86,87,89,90],St=[15,43],te=[44,46,47,48,49,50,51,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],ee={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,directive:6,direction_tb:7,direction_bt:8,direction_rl:9,direction_lr:10,graphConfig:11,openDirective:12,typeDirective:13,closeDirective:14,NEWLINE:15,":":16,argDirective:17,open_directive:18,type_directive:19,arg_directive:20,close_directive:21,C4_CONTEXT:22,statements:23,EOF:24,C4_CONTAINER:25,C4_COMPONENT:26,C4_DYNAMIC:27,C4_DEPLOYMENT:28,otherStatements:29,diagramStatements:30,otherStatement:31,title:32,accDescription:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,boundaryStatement:39,boundaryStartStatement:40,boundaryStopStatement:41,boundaryStart:42,LBRACE:43,ENTERPRISE_BOUNDARY:44,attributes:45,SYSTEM_BOUNDARY:46,BOUNDARY:47,CONTAINER_BOUNDARY:48,NODE:49,NODE_L:50,NODE_R:51,RBRACE:52,diagramStatement:53,PERSON:54,PERSON_EXT:55,SYSTEM:56,SYSTEM_DB:57,SYSTEM_QUEUE:58,SYSTEM_EXT:59,SYSTEM_EXT_DB:60,SYSTEM_EXT_QUEUE:61,CONTAINER:62,CONTAINER_DB:63,CONTAINER_QUEUE:64,CONTAINER_EXT:65,CONTAINER_EXT_DB:66,CONTAINER_EXT_QUEUE:67,COMPONENT:68,COMPONENT_DB:69,COMPONENT_QUEUE:70,COMPONENT_EXT:71,COMPONENT_EXT_DB:72,COMPONENT_EXT_QUEUE:73,REL:74,BIREL:75,REL_U:76,REL_D:77,REL_L:78,REL_R:79,REL_B:80,REL_INDEX:81,UPDATE_EL_STYLE:82,UPDATE_REL_STYLE:83,UPDATE_LAYOUT_CONFIG:84,attribute:85,STR:86,STR_KEY:87,STR_VALUE:88,ATTRIBUTE:89,ATTRIBUTE_EMPTY:90,$accept:0,$end:1},terminals_:{2:"error",7:"direction_tb",8:"direction_bt",9:"direction_rl",10:"direction_lr",15:"NEWLINE",16:":",18:"open_directive",19:"type_directive",20:"arg_directive",21:"close_directive",22:"C4_CONTEXT",24:"EOF",25:"C4_CONTAINER",26:"C4_COMPONENT",27:"C4_DYNAMIC",28:"C4_DEPLOYMENT",32:"title",33:"accDescription",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",43:"LBRACE",44:"ENTERPRISE_BOUNDARY",46:"SYSTEM_BOUNDARY",47:"BOUNDARY",48:"CONTAINER_BOUNDARY",49:"NODE",50:"NODE_L",51:"NODE_R",52:"RBRACE",54:"PERSON",55:"PERSON_EXT",56:"SYSTEM",57:"SYSTEM_DB",58:"SYSTEM_QUEUE",59:"SYSTEM_EXT",60:"SYSTEM_EXT_DB",61:"SYSTEM_EXT_QUEUE",62:"CONTAINER",63:"CONTAINER_DB",64:"CONTAINER_QUEUE",65:"CONTAINER_EXT",66:"CONTAINER_EXT_DB",67:"CONTAINER_EXT_QUEUE",68:"COMPONENT",69:"COMPONENT_DB",70:"COMPONENT_QUEUE",71:"COMPONENT_EXT",72:"COMPONENT_EXT_DB",73:"COMPONENT_EXT_QUEUE",74:"REL",75:"BIREL",76:"REL_U",77:"REL_D",78:"REL_L",79:"REL_R",80:"REL_B",81:"REL_INDEX",82:"UPDATE_EL_STYLE",83:"UPDATE_REL_STYLE",84:"UPDATE_LAYOUT_CONFIG",86:"STR",87:"STR_KEY",88:"STR_VALUE",89:"ATTRIBUTE",90:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[3,2],[5,1],[5,1],[5,1],[5,1],[4,1],[6,4],[6,6],[12,1],[13,1],[17,1],[14,1],[11,4],[11,4],[11,4],[11,4],[11,4],[23,1],[23,1],[23,2],[29,1],[29,2],[29,3],[31,1],[31,1],[31,2],[31,2],[31,1],[39,3],[40,3],[40,3],[40,4],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[41,1],[30,1],[30,2],[30,3],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,1],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[45,1],[45,2],[85,1],[85,2],[85,1],[85,1]],performAction:function(_,x,m,g,O,h,Vt){var f=h.length-1;switch(O){case 4:g.setDirection("TB");break;case 5:g.setDirection("BT");break;case 6:g.setDirection("RL");break;case 7:g.setDirection("LR");break;case 11:g.parseDirective("%%{","open_directive");break;case 12:break;case 13:h[f]=h[f].trim().replace(/'/g,'"'),g.parseDirective(h[f],"arg_directive");break;case 14:g.parseDirective("}%%","close_directive","c4Context");break;case 15:case 16:case 17:case 18:case 19:g.setC4Type(h[f-3]);break;case 26:g.setTitle(h[f].substring(6)),this.$=h[f].substring(6);break;case 27:g.setAccDescription(h[f].substring(15)),this.$=h[f].substring(15);break;case 28:this.$=h[f].trim(),g.setTitle(this.$);break;case 29:case 30:this.$=h[f].trim(),g.setAccDescription(this.$);break;case 35:case 36:h[f].splice(2,0,"ENTERPRISE"),g.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 37:g.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 38:h[f].splice(2,0,"CONTAINER"),g.addContainerBoundary(...h[f]),this.$=h[f];break;case 39:g.addDeploymentNode("node",...h[f]),this.$=h[f];break;case 40:g.addDeploymentNode("nodeL",...h[f]),this.$=h[f];break;case 41:g.addDeploymentNode("nodeR",...h[f]),this.$=h[f];break;case 42:g.popBoundaryParseStack();break;case 46:g.addPersonOrSystem("person",...h[f]),this.$=h[f];break;case 47:g.addPersonOrSystem("external_person",...h[f]),this.$=h[f];break;case 48:g.addPersonOrSystem("system",...h[f]),this.$=h[f];break;case 49:g.addPersonOrSystem("system_db",...h[f]),this.$=h[f];break;case 50:g.addPersonOrSystem("system_queue",...h[f]),this.$=h[f];break;case 51:g.addPersonOrSystem("external_system",...h[f]),this.$=h[f];break;case 52:g.addPersonOrSystem("external_system_db",...h[f]),this.$=h[f];break;case 53:g.addPersonOrSystem("external_system_queue",...h[f]),this.$=h[f];break;case 54:g.addContainer("container",...h[f]),this.$=h[f];break;case 55:g.addContainer("container_db",...h[f]),this.$=h[f];break;case 56:g.addContainer("container_queue",...h[f]),this.$=h[f];break;case 57:g.addContainer("external_container",...h[f]),this.$=h[f];break;case 58:g.addContainer("external_container_db",...h[f]),this.$=h[f];break;case 59:g.addContainer("external_container_queue",...h[f]),this.$=h[f];break;case 60:g.addComponent("component",...h[f]),this.$=h[f];break;case 61:g.addComponent("component_db",...h[f]),this.$=h[f];break;case 62:g.addComponent("component_queue",...h[f]),this.$=h[f];break;case 63:g.addComponent("external_component",...h[f]),this.$=h[f];break;case 64:g.addComponent("external_component_db",...h[f]),this.$=h[f];break;case 65:g.addComponent("external_component_queue",...h[f]),this.$=h[f];break;case 67:g.addRel("rel",...h[f]),this.$=h[f];break;case 68:g.addRel("birel",...h[f]),this.$=h[f];break;case 69:g.addRel("rel_u",...h[f]),this.$=h[f];break;case 70:g.addRel("rel_d",...h[f]),this.$=h[f];break;case 71:g.addRel("rel_l",...h[f]),this.$=h[f];break;case 72:g.addRel("rel_r",...h[f]),this.$=h[f];break;case 73:g.addRel("rel_b",...h[f]),this.$=h[f];break;case 74:h[f].splice(0,1),g.addRel("rel",...h[f]),this.$=h[f];break;case 75:g.updateElStyle("update_el_style",...h[f]),this.$=h[f];break;case 76:g.updateRelStyle("update_rel_style",...h[f]),this.$=h[f];break;case 77:g.updateLayoutConfig("update_layout_config",...h[f]),this.$=h[f];break;case 78:this.$=[h[f]];break;case 79:h[f].unshift(h[f-1]),this.$=h[f];break;case 80:case 82:this.$=h[f].trim();break;case 81:let Pt={};Pt[h[f-1].trim()]=h[f].trim(),this.$=Pt;break;case 83:this.$="";break}},table:[{3:1,4:2,5:3,6:4,7:t,8:a,9:o,10:l,11:5,12:10,18:i,22:s,25:r,26:n,27:u,28:y},{1:[3]},{1:[2,1]},{1:[2,2]},{3:17,4:2,5:3,6:4,7:t,8:a,9:o,10:l,11:5,12:10,18:i,22:s,25:r,26:n,27:u,28:y},{1:[2,8]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{1:[2,7]},{13:18,19:[1,19]},{15:[1,20]},{15:[1,21]},{15:[1,22]},{15:[1,23]},{15:[1,24]},{19:[2,11]},{1:[2,3]},{14:25,16:[1,26],21:d},e([16,21],[2,12]),{23:28,29:29,30:30,31:31,32:p,33:C,34:T,36:R,38:S,39:58,40:70,42:71,44:L,46:Y,47:Q,48:H,49:q,50:G,51:K,53:32,54:J,55:Z,56:$,57:tt,58:et,59:it,60:nt,61:st,62:at,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt,75:_t,76:xt,77:mt,78:vt,79:Et,80:kt,81:At,82:Ct,83:wt,84:Tt},{23:79,29:29,30:30,31:31,32:p,33:C,34:T,36:R,38:S,39:58,40:70,42:71,44:L,46:Y,47:Q,48:H,49:q,50:G,51:K,53:32,54:J,55:Z,56:$,57:tt,58:et,59:it,60:nt,61:st,62:at,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt,75:_t,76:xt,77:mt,78:vt,79:Et,80:kt,81:At,82:Ct,83:wt,84:Tt},{23:80,29:29,30:30,31:31,32:p,33:C,34:T,36:R,38:S,39:58,40:70,42:71,44:L,46:Y,47:Q,48:H,49:q,50:G,51:K,53:32,54:J,55:Z,56:$,57:tt,58:et,59:it,60:nt,61:st,62:at,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt,75:_t,76:xt,77:mt,78:vt,79:Et,80:kt,81:At,82:Ct,83:wt,84:Tt},{23:81,29:29,30:30,31:31,32:p,33:C,34:T,36:R,38:S,39:58,40:70,42:71,44:L,46:Y,47:Q,48:H,49:q,50:G,51:K,53:32,54:J,55:Z,56:$,57:tt,58:et,59:it,60:nt,61:st,62:at,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt,75:_t,76:xt,77:mt,78:vt,79:Et,80:kt,81:At,82:Ct,83:wt,84:Tt},{23:82,29:29,30:30,31:31,32:p,33:C,34:T,36:R,38:S,39:58,40:70,42:71,44:L,46:Y,47:Q,48:H,49:q,50:G,51:K,53:32,54:J,55:Z,56:$,57:tt,58:et,59:it,60:nt,61:st,62:at,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt,75:_t,76:xt,77:mt,78:vt,79:Et,80:kt,81:At,82:Ct,83:wt,84:Tt},{15:[1,83]},{17:84,20:[1,85]},{15:[2,14]},{24:[1,86]},e(Nt,[2,20],{53:32,39:58,40:70,42:71,30:87,44:L,46:Y,47:Q,48:H,49:q,50:G,51:K,54:J,55:Z,56:$,57:tt,58:et,59:it,60:nt,61:st,62:at,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt,75:_t,76:xt,77:mt,78:vt,79:Et,80:kt,81:At,82:Ct,83:wt,84:Tt}),e(Nt,[2,21]),e($t,[2,23],{15:[1,88]}),e(Nt,[2,43],{15:[1,89]}),e(It,[2,26]),e(It,[2,27]),{35:[1,90]},{37:[1,91]},e(It,[2,30]),{45:92,85:93,86:v,87:E,89:k,90:A},{45:98,85:93,86:v,87:E,89:k,90:A},{45:99,85:93,86:v,87:E,89:k,90:A},{45:100,85:93,86:v,87:E,89:k,90:A},{45:101,85:93,86:v,87:E,89:k,90:A},{45:102,85:93,86:v,87:E,89:k,90:A},{45:103,85:93,86:v,87:E,89:k,90:A},{45:104,85:93,86:v,87:E,89:k,90:A},{45:105,85:93,86:v,87:E,89:k,90:A},{45:106,85:93,86:v,87:E,89:k,90:A},{45:107,85:93,86:v,87:E,89:k,90:A},{45:108,85:93,86:v,87:E,89:k,90:A},{45:109,85:93,86:v,87:E,89:k,90:A},{45:110,85:93,86:v,87:E,89:k,90:A},{45:111,85:93,86:v,87:E,89:k,90:A},{45:112,85:93,86:v,87:E,89:k,90:A},{45:113,85:93,86:v,87:E,89:k,90:A},{45:114,85:93,86:v,87:E,89:k,90:A},{45:115,85:93,86:v,87:E,89:k,90:A},{45:116,85:93,86:v,87:E,89:k,90:A},e(w,[2,66]),{45:117,85:93,86:v,87:E,89:k,90:A},{45:118,85:93,86:v,87:E,89:k,90:A},{45:119,85:93,86:v,87:E,89:k,90:A},{45:120,85:93,86:v,87:E,89:k,90:A},{45:121,85:93,86:v,87:E,89:k,90:A},{45:122,85:93,86:v,87:E,89:k,90:A},{45:123,85:93,86:v,87:E,89:k,90:A},{45:124,85:93,86:v,87:E,89:k,90:A},{45:125,85:93,86:v,87:E,89:k,90:A},{45:126,85:93,86:v,87:E,89:k,90:A},{45:127,85:93,86:v,87:E,89:k,90:A},{30:128,39:58,40:70,42:71,44:L,46:Y,47:Q,48:H,49:q,50:G,51:K,53:32,54:J,55:Z,56:$,57:tt,58:et,59:it,60:nt,61:st,62:at,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt,75:_t,76:xt,77:mt,78:vt,79:Et,80:kt,81:At,82:Ct,83:wt,84:Tt},{15:[1,130],43:[1,129]},{45:131,85:93,86:v,87:E,89:k,90:A},{45:132,85:93,86:v,87:E,89:k,90:A},{45:133,85:93,86:v,87:E,89:k,90:A},{45:134,85:93,86:v,87:E,89:k,90:A},{45:135,85:93,86:v,87:E,89:k,90:A},{45:136,85:93,86:v,87:E,89:k,90:A},{45:137,85:93,86:v,87:E,89:k,90:A},{24:[1,138]},{24:[1,139]},{24:[1,140]},{24:[1,141]},e(fe,[2,9]),{14:142,21:d},{21:[2,13]},{1:[2,15]},e(Nt,[2,22]),e($t,[2,24],{31:31,29:143,32:p,33:C,34:T,36:R,38:S}),e(Nt,[2,44],{29:29,30:30,31:31,53:32,39:58,40:70,42:71,23:144,32:p,33:C,34:T,36:R,38:S,44:L,46:Y,47:Q,48:H,49:q,50:G,51:K,54:J,55:Z,56:$,57:tt,58:et,59:it,60:nt,61:st,62:at,63:rt,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt,75:_t,76:xt,77:mt,78:vt,79:Et,80:kt,81:At,82:Ct,83:wt,84:Tt}),e(It,[2,28]),e(It,[2,29]),e(w,[2,46]),e(pe,[2,78],{85:93,45:145,86:v,87:E,89:k,90:A}),e(Xt,[2,80]),{88:[1,146]},e(Xt,[2,82]),e(Xt,[2,83]),e(w,[2,47]),e(w,[2,48]),e(w,[2,49]),e(w,[2,50]),e(w,[2,51]),e(w,[2,52]),e(w,[2,53]),e(w,[2,54]),e(w,[2,55]),e(w,[2,56]),e(w,[2,57]),e(w,[2,58]),e(w,[2,59]),e(w,[2,60]),e(w,[2,61]),e(w,[2,62]),e(w,[2,63]),e(w,[2,64]),e(w,[2,65]),e(w,[2,67]),e(w,[2,68]),e(w,[2,69]),e(w,[2,70]),e(w,[2,71]),e(w,[2,72]),e(w,[2,73]),e(w,[2,74]),e(w,[2,75]),e(w,[2,76]),e(w,[2,77]),{41:147,52:[1,148]},{15:[1,149]},{43:[1,150]},e(St,[2,35]),e(St,[2,36]),e(St,[2,37]),e(St,[2,38]),e(St,[2,39]),e(St,[2,40]),e(St,[2,41]),{1:[2,16]},{1:[2,17]},{1:[2,18]},{1:[2,19]},{15:[1,151]},e($t,[2,25]),e(Nt,[2,45]),e(pe,[2,79]),e(Xt,[2,81]),e(w,[2,31]),e(w,[2,42]),e(te,[2,32]),e(te,[2,33],{15:[1,152]}),e(fe,[2,10]),e(te,[2,34])],defaultActions:{2:[2,1],3:[2,2],5:[2,8],6:[2,4],7:[2,5],8:[2,6],9:[2,7],16:[2,11],17:[2,3],27:[2,14],85:[2,13],86:[2,15],138:[2,16],139:[2,17],140:[2,18],141:[2,19]},parseError:function(_,x){if(x.recoverable)this.trace(_);else{var m=new Error(_);throw m.hash=x,m}},parse:function(_){var x=this,m=[0],g=[],O=[null],h=[],Vt=this.table,f="",Pt=0,ye=0,Me=2,ge=1,Le=h.slice.call(arguments,1),D=Object.create(this.lexer),Mt={yy:{}};for(var ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ne)&&(Mt.yy[ne]=this.yy[ne]);D.setInput(_,Mt.yy),Mt.yy.lexer=D,Mt.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var se=D.yylloc;h.push(se);var Ne=D.options&&D.options.ranges;typeof Mt.yy.parseError=="function"?this.parseError=Mt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Be(){var z;return z=g.pop()||D.lex()||ge,typeof z!="number"&&(z instanceof Array&&(g=z,z=g.pop()),z=x.symbols_[z]||z),z}for(var M,Lt,N,ae,Bt={},zt,X,be,Wt;;){if(Lt=m[m.length-1],this.defaultActions[Lt]?N=this.defaultActions[Lt]:((M===null||typeof M>"u")&&(M=Be()),N=Vt[Lt]&&Vt[Lt][M]),typeof N>"u"||!N.length||!N[0]){var re="";Wt=[];for(zt in Vt[Lt])this.terminals_[zt]&&zt>Me&&Wt.push("'"+this.terminals_[zt]+"'");D.showPosition?re="Parse error on line "+(Pt+1)+`: `+D.showPosition()+` Expecting `+Wt.join(", ")+", got '"+(this.terminals_[M]||M)+"'":re="Parse error on line "+(Pt+1)+": Unexpected "+(M==ge?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(re,{text:D.match,token:this.terminals_[M]||M,line:D.yylineno,loc:se,expected:Wt})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Lt+", token: "+M);switch(N[0]){case 1:m.push(M),O.push(D.yytext),h.push(D.yylloc),m.push(N[1]),M=null,ye=D.yyleng,f=D.yytext,Pt=D.yylineno,se=D.yylloc;break;case 2:if(X=this.productions_[N[1]][1],Bt.$=O[O.length-X],Bt._$={first_line:h[h.length-(X||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(X||1)].first_column,last_column:h[h.length-1].last_column},Ne&&(Bt._$.range=[h[h.length-(X||1)].range[0],h[h.length-1].range[1]]),ae=this.performAction.apply(Bt,[f,ye,Pt,Mt.yy,N[1],O,h].concat(Le)),typeof ae<"u")return ae;X&&(m=m.slice(0,-1*X*2),O=O.slice(0,-1*X),h=h.slice(0,-1*X)),m.push(this.productions_[N[1]][0]),O.push(Bt.$),h.push(Bt._$),be=Vt[m[m.length-2]][m[m.length-1]],m.push(be);break;case 3:return!0}}return!0}},Pe=function(){var Ot={EOF:1,parseError:function(x,m){if(this.yy.parser)this.yy.parser.parseError(x,m);else throw new Error(x)},setInput:function(_,x){return this.yy=x||this.yy||{},this._input=_,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var _=this._input[0];this.yytext+=_,this.yyleng++,this.offset++,this.match+=_,this.matched+=_;var x=_.match(/(?:\r\n?|\n).*/g);return x?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_},unput:function(_){var x=_.length,m=_.split(/(?:\r\n?|\n)/g);this._input=_+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),m.length-1&&(this.yylineno-=m.length-1);var O=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:m?(m.length===g.length?this.yylloc.first_column:0)+g[g.length-m.length].length-m[0].length:this.yylloc.first_column-x},this.options.ranges&&(this.yylloc.range=[O[0],O[0]+this.yyleng-x]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(_){this.unput(this.match.slice(_))},pastInput:function(){var _=this.matched.substr(0,this.matched.length-this.match.length);return(_.length>20?"...":"")+_.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var _=this.match;return _.length<20&&(_+=this._input.substr(0,20-_.length)),(_.substr(0,20)+(_.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var _=this.pastInput(),x=new Array(_.length+1).join("-");return _+this.upcomingInput()+` diff --git a/docs/assets/classDiagram-d26c05e1-8ff51e1b.js b/docs/assets/classDiagram-d26c05e1-73441f0f.js similarity index 93% rename from docs/assets/classDiagram-d26c05e1-8ff51e1b.js rename to docs/assets/classDiagram-d26c05e1-73441f0f.js index 4737451b..bf47b1c1 100644 --- a/docs/assets/classDiagram-d26c05e1-8ff51e1b.js +++ b/docs/assets/classDiagram-d26c05e1-73441f0f.js @@ -1 +1 @@ -import{p as N,d as M,s as W}from"./styles-a893c203-00f093d8.js";import{c as S,l as d,h as u,i as H}from"./index-b4f98efc.js";import{G as X,l as Y}from"./layout-15168dd5.js";import{s as l}from"./svgDraw-95adee0a-796bbfe8.js";import"./line-bade02ca.js";import"./array-9f3ba611.js";import"./path-53f90ab3.js";let h={};const g=20,p=function(e){const s=Object.entries(h).find(k=>k[1].label===e);if(s)return s[0]},Z=function(e){e.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),e.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},D=function(e,s,k,a){const c=S().class;h={},d.info("Rendering diagram "+e);const L=S().securityLevel;let y;L==="sandbox"&&(y=u("#i"+s));const x=L==="sandbox"?u(y.nodes()[0].contentDocument.body):u("body"),n=x.select(`[id='${s}']`);Z(n);const r=new X({multigraph:!0});r.setGraph({isMultiGraph:!0}),r.setDefaultEdgeLabel(function(){return{}});const m=a.db.getClasses(),$=Object.keys(m);for(const t of $){const o=m[t],i=l.drawClass(n,o,c,a);h[i.id]=i,r.setNode(i.id,i),d.info("Org height: "+i.height)}a.db.getRelations().forEach(function(t){d.info("tjoho"+p(t.id1)+p(t.id2)+JSON.stringify(t)),r.setEdge(p(t.id1),p(t.id2),{relation:t},t.title||"DEFAULT")}),a.db.getNotes().forEach(function(t){d.debug(`Adding note: ${JSON.stringify(t)}`);const o=l.drawNote(n,t,c,a);h[o.id]=o,r.setNode(o.id,o),t.class&&t.class in m&&r.setEdge(t.id,p(t.class),{relation:{id1:t.id,id2:t.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),Y(r),r.nodes().forEach(function(t){t!==void 0&&r.node(t)!==void 0&&(d.debug("Node "+t+": "+JSON.stringify(r.node(t))),x.select("#"+(a.db.lookUpDomId(t)||t)).attr("transform","translate("+(r.node(t).x-r.node(t).width/2)+","+(r.node(t).y-r.node(t).height/2)+" )"))}),r.edges().forEach(function(t){t!==void 0&&r.edge(t)!==void 0&&(d.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(r.edge(t))),l.drawEdge(n,r.edge(t),r.edge(t).relation,c,a))});const f=n.node().getBBox(),E=f.width+g*2,b=f.height+g*2;H(n,b,E,c.useMaxWidth);const w=`${f.x-g} ${f.y-g} ${E} ${b}`;d.debug(`viewBox ${w}`),n.attr("viewBox",w)},B={draw:D},R={parser:N,db:M,renderer:B,styles:W,init:e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute,M.clear()}};export{R as diagram}; +import{p as N,d as M,s as W}from"./styles-a893c203-67b644c0.js";import{c as S,l as d,h as u,i as H}from"./index-0e08498d.js";import{G as X,l as Y}from"./layout-c97c50ff.js";import{s as l}from"./svgDraw-95adee0a-c0e4fe11.js";import"./line-4c8e436d.js";import"./array-9f3ba611.js";import"./path-53f90ab3.js";let h={};const g=20,p=function(e){const s=Object.entries(h).find(k=>k[1].label===e);if(s)return s[0]},Z=function(e){e.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),e.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},D=function(e,s,k,a){const c=S().class;h={},d.info("Rendering diagram "+e);const L=S().securityLevel;let y;L==="sandbox"&&(y=u("#i"+s));const x=L==="sandbox"?u(y.nodes()[0].contentDocument.body):u("body"),n=x.select(`[id='${s}']`);Z(n);const r=new X({multigraph:!0});r.setGraph({isMultiGraph:!0}),r.setDefaultEdgeLabel(function(){return{}});const m=a.db.getClasses(),$=Object.keys(m);for(const t of $){const o=m[t],i=l.drawClass(n,o,c,a);h[i.id]=i,r.setNode(i.id,i),d.info("Org height: "+i.height)}a.db.getRelations().forEach(function(t){d.info("tjoho"+p(t.id1)+p(t.id2)+JSON.stringify(t)),r.setEdge(p(t.id1),p(t.id2),{relation:t},t.title||"DEFAULT")}),a.db.getNotes().forEach(function(t){d.debug(`Adding note: ${JSON.stringify(t)}`);const o=l.drawNote(n,t,c,a);h[o.id]=o,r.setNode(o.id,o),t.class&&t.class in m&&r.setEdge(t.id,p(t.class),{relation:{id1:t.id,id2:t.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),Y(r),r.nodes().forEach(function(t){t!==void 0&&r.node(t)!==void 0&&(d.debug("Node "+t+": "+JSON.stringify(r.node(t))),x.select("#"+(a.db.lookUpDomId(t)||t)).attr("transform","translate("+(r.node(t).x-r.node(t).width/2)+","+(r.node(t).y-r.node(t).height/2)+" )"))}),r.edges().forEach(function(t){t!==void 0&&r.edge(t)!==void 0&&(d.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(r.edge(t))),l.drawEdge(n,r.edge(t),r.edge(t).relation,c,a))});const f=n.node().getBBox(),E=f.width+g*2,b=f.height+g*2;H(n,b,E,c.useMaxWidth);const w=`${f.x-g} ${f.y-g} ${E} ${b}`;d.debug(`viewBox ${w}`),n.attr("viewBox",w)},B={draw:D},R={parser:N,db:M,renderer:B,styles:W,init:e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute,M.clear()}};export{R as diagram}; diff --git a/docs/assets/classDiagram-v2-656fc6c4-a7206bc0.js b/docs/assets/classDiagram-v2-656fc6c4-e5871a12.js similarity index 92% rename from docs/assets/classDiagram-v2-656fc6c4-a7206bc0.js rename to docs/assets/classDiagram-v2-656fc6c4-e5871a12.js index d2a52a96..136f3cf1 100644 --- a/docs/assets/classDiagram-v2-656fc6c4-a7206bc0.js +++ b/docs/assets/classDiagram-v2-656fc6c4-e5871a12.js @@ -1,2 +1,2 @@ -import{p as I,d as N,s as M}from"./styles-a893c203-00f093d8.js";import{l as d,c,h as w,x as R,t as B,r as E,o as _,p as G,j as C}from"./index-b4f98efc.js";import{G as z}from"./layout-15168dd5.js";import{r as P}from"./index-1e7f2254-829de93b.js";import"./edges-66ea8538-e5136c41.js";import"./createText-a49d2d2a-a6165332.js";import"./svgDraw-95adee0a-796bbfe8.js";import"./line-bade02ca.js";import"./array-9f3ba611.js";import"./path-53f90ab3.js";const S=s=>C.sanitizeText(s,c());let k={dividerMargin:10,padding:5,textHeight:10,curve:void 0};const q=function(s,t,y,n){const e=Object.keys(s);d.info("keys:",e),d.info(s),e.forEach(function(i){var o,r;const l=s[i],p={shape:"rect",id:l.id,domId:l.domId,labelText:S(l.id),labelStyle:"",style:"fill: none; stroke: black",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};t.setNode(l.id,p),A(l.classes,t,y,n,l.id),d.info("setNode",p)})},A=function(s,t,y,n,e){const i=Object.keys(s);d.info("keys:",i),d.info(s),i.filter(o=>s[o].parent==e).forEach(function(o){var r,l;const a=s[o],p=a.cssClasses.join(" "),f={labelStyle:"",style:""},m=a.label??a.id,b=0,h="class_box",u={labelStyle:f.labelStyle,shape:h,labelText:S(m),classData:a,rx:b,ry:b,class:p,style:f.style,id:a.id,domId:a.domId,tooltip:n.db.getTooltip(a.id,e)||"",haveCallback:a.haveCallback,link:a.link,width:a.type==="group"?500:void 0,type:a.type,padding:((r=c().flowchart)==null?void 0:r.padding)??((l=c().class)==null?void 0:l.padding)};t.setNode(a.id,u),e&&t.setParent(a.id,e),d.info("setNode",u)})},F=function(s,t,y,n){d.info(s),s.forEach(function(e,i){var o,r;const l=e,a="",p={labelStyle:"",style:""},f=l.text,m=0,b="note",h={labelStyle:p.labelStyle,shape:b,labelText:S(f),noteData:l,rx:m,ry:m,class:a,style:p.style,id:l.id,domId:l.id,tooltip:"",type:"note",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};if(t.setNode(l.id,h),d.info("setNode",h),!l.class||!(l.class in n))return;const u=y+i,x={id:`edgeNote${u}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:E(k.curve,_)};t.setEdge(l.id,l.class,x,u)})},H=function(s,t){const y=c().flowchart;let n=0;s.forEach(function(e){var i;n++;const o={classes:"relation",pattern:e.relation.lineType==1?"dashed":"solid",id:"id"+n,arrowhead:e.type==="arrow_open"?"none":"normal",startLabelRight:e.relationTitle1==="none"?"":e.relationTitle1,endLabelLeft:e.relationTitle2==="none"?"":e.relationTitle2,arrowTypeStart:D(e.relation.type1),arrowTypeEnd:D(e.relation.type2),style:"fill:none",labelStyle:"",curve:E(y==null?void 0:y.curve,_)};if(d.info(o,e),e.style!==void 0){const r=G(e.style);o.style=r.style,o.labelStyle=r.labelStyle}e.text=e.title,e.text===void 0?e.style!==void 0&&(o.arrowheadStyle="fill: #333"):(o.arrowheadStyle="fill: #333",o.labelpos="c",((i=c().flowchart)==null?void 0:i.htmlLabels)??c().htmlLabels?(o.labelType="html",o.label=''+e.text+""):(o.labelType="text",o.label=e.text.replace(C.lineBreakRegex,` +import{p as I,d as N,s as M}from"./styles-a893c203-67b644c0.js";import{l as d,c,h as w,x as R,t as B,r as E,o as _,p as G,j as C}from"./index-0e08498d.js";import{G as z}from"./layout-c97c50ff.js";import{r as P}from"./index-1e7f2254-a4f10dcc.js";import"./edges-66ea8538-e73fd07f.js";import"./createText-a49d2d2a-b45cf165.js";import"./svgDraw-95adee0a-c0e4fe11.js";import"./line-4c8e436d.js";import"./array-9f3ba611.js";import"./path-53f90ab3.js";const S=s=>C.sanitizeText(s,c());let k={dividerMargin:10,padding:5,textHeight:10,curve:void 0};const q=function(s,t,y,n){const e=Object.keys(s);d.info("keys:",e),d.info(s),e.forEach(function(i){var o,r;const l=s[i],p={shape:"rect",id:l.id,domId:l.domId,labelText:S(l.id),labelStyle:"",style:"fill: none; stroke: black",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};t.setNode(l.id,p),A(l.classes,t,y,n,l.id),d.info("setNode",p)})},A=function(s,t,y,n,e){const i=Object.keys(s);d.info("keys:",i),d.info(s),i.filter(o=>s[o].parent==e).forEach(function(o){var r,l;const a=s[o],p=a.cssClasses.join(" "),f={labelStyle:"",style:""},m=a.label??a.id,b=0,h="class_box",u={labelStyle:f.labelStyle,shape:h,labelText:S(m),classData:a,rx:b,ry:b,class:p,style:f.style,id:a.id,domId:a.domId,tooltip:n.db.getTooltip(a.id,e)||"",haveCallback:a.haveCallback,link:a.link,width:a.type==="group"?500:void 0,type:a.type,padding:((r=c().flowchart)==null?void 0:r.padding)??((l=c().class)==null?void 0:l.padding)};t.setNode(a.id,u),e&&t.setParent(a.id,e),d.info("setNode",u)})},F=function(s,t,y,n){d.info(s),s.forEach(function(e,i){var o,r;const l=e,a="",p={labelStyle:"",style:""},f=l.text,m=0,b="note",h={labelStyle:p.labelStyle,shape:b,labelText:S(f),noteData:l,rx:m,ry:m,class:a,style:p.style,id:l.id,domId:l.id,tooltip:"",type:"note",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};if(t.setNode(l.id,h),d.info("setNode",h),!l.class||!(l.class in n))return;const u=y+i,x={id:`edgeNote${u}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:E(k.curve,_)};t.setEdge(l.id,l.class,x,u)})},H=function(s,t){const y=c().flowchart;let n=0;s.forEach(function(e){var i;n++;const o={classes:"relation",pattern:e.relation.lineType==1?"dashed":"solid",id:"id"+n,arrowhead:e.type==="arrow_open"?"none":"normal",startLabelRight:e.relationTitle1==="none"?"":e.relationTitle1,endLabelLeft:e.relationTitle2==="none"?"":e.relationTitle2,arrowTypeStart:D(e.relation.type1),arrowTypeEnd:D(e.relation.type2),style:"fill:none",labelStyle:"",curve:E(y==null?void 0:y.curve,_)};if(d.info(o,e),e.style!==void 0){const r=G(e.style);o.style=r.style,o.labelStyle=r.labelStyle}e.text=e.title,e.text===void 0?e.style!==void 0&&(o.arrowheadStyle="fill: #333"):(o.arrowheadStyle="fill: #333",o.labelpos="c",((i=c().flowchart)==null?void 0:i.htmlLabels)??c().htmlLabels?(o.labelType="html",o.label=''+e.text+""):(o.labelType="text",o.label=e.text.replace(C.lineBreakRegex,` `),e.style===void 0&&(o.style=o.style||"stroke: #333; stroke-width: 1.5px;fill:none"),o.labelStyle=o.labelStyle.replace("color:","fill:"))),t.setEdge(e.id1,e.id2,o,n)})},V=function(s){k={...k,...s}},W=async function(s,t,y,n){d.info("Drawing class - ",t);const e=c().flowchart??c().class,i=c().securityLevel;d.info("config:",e);const o=(e==null?void 0:e.nodeSpacing)??50,r=(e==null?void 0:e.rankSpacing)??50,l=new z({multigraph:!0,compound:!0}).setGraph({rankdir:n.db.getDirection(),nodesep:o,ranksep:r,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),a=n.db.getNamespaces(),p=n.db.getClasses(),f=n.db.getRelations(),m=n.db.getNotes();d.info(f),q(a,l,t,n),A(p,l,t,n),H(f,l),F(m,l,f.length+1,p);let b;i==="sandbox"&&(b=w("#i"+t));const h=i==="sandbox"?w(b.nodes()[0].contentDocument.body):w("body"),u=h.select(`[id="${t}"]`),x=h.select("#"+t+" g");if(await P(x,l,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",t),R.insertTitle(u,"classTitleText",(e==null?void 0:e.titleTopMargin)??5,n.db.getDiagramTitle()),B(l,u,e==null?void 0:e.diagramPadding,e==null?void 0:e.useMaxWidth),!(e!=null&&e.htmlLabels)){const T=i==="sandbox"?b.nodes()[0].contentDocument:document,$=T.querySelectorAll('[id="'+t+'"] .edgeLabel .label');for(const g of $){const L=g.getBBox(),v=T.createElementNS("http://www.w3.org/2000/svg","rect");v.setAttribute("rx",0),v.setAttribute("ry",0),v.setAttribute("width",L.width),v.setAttribute("height",L.height),g.insertBefore(v,g.firstChild)}}};function D(s){let t;switch(s){case 0:t="aggregation";break;case 1:t="extension";break;case 2:t="composition";break;case 3:t="dependency";break;case 4:t="lollipop";break;default:t="none"}return t}const J={setConf:V,draw:W},oe={parser:I,db:N,renderer:J,styles:M,init:s=>{s.class||(s.class={}),s.class.arrowMarkerAbsolute=s.arrowMarkerAbsolute,N.clear()}};export{oe as diagram}; diff --git a/docs/assets/createText-a49d2d2a-a6165332.js b/docs/assets/createText-a49d2d2a-b45cf165.js similarity index 97% rename from docs/assets/createText-a49d2d2a-a6165332.js rename to docs/assets/createText-a49d2d2a-b45cf165.js index 9e3e2445..f244e48d 100644 --- a/docs/assets/createText-a49d2d2a-a6165332.js +++ b/docs/assets/createText-a49d2d2a-b45cf165.js @@ -1,4 +1,4 @@ -import{l as g,aw as E,aO as b,aP as L}from"./index-b4f98efc.js";function k(l){const e=l.replace(/\n{2,}/g,` +import{l as g,aw as E,aO as b,aP as L}from"./index-0e08498d.js";function k(l){const e=l.replace(/\n{2,}/g,` `);return L(e)}function v(l){const e=k(l),{children:n}=b(e),a=[[]];let o=0;function r(t,c="normal"){t.type==="text"?t.value.split(` `).forEach((s,i)=>{i!==0&&(o++,a.push([])),s.split(" ").forEach(u=>{u&&a[o].push({content:u,type:c})})}):(t.type==="strong"||t.type==="emphasis")&&t.children.forEach(f=>{r(f,t.type)})}return n.forEach(t=>{t.type==="paragraph"&&t.children.forEach(c=>{r(c)})}),a}function $(l){const{children:e}=b(l);function n(a){return a.type==="text"?a.value.replace(/\n/g,"
"):a.type==="strong"?`${a.children.map(n).join("")}`:a.type==="emphasis"?`${a.children.map(n).join("")}`:a.type==="paragraph"?`

${a.children.map(n).join("")}

`:`Unsupported markdown: ${a.type}`}return e.map(n).join("")}function j(l,e){e&&l.attr("style",e)}function C(l,e,n,a,o=!1){const r=l.append("foreignObject"),t=r.append("xhtml:div"),c=e.label,f=e.isNode?"nodeLabel":"edgeLabel";t.html(` "+c+""),j(t,e.labelStyle),t.style("display","table-cell"),t.style("white-space","nowrap"),t.style("max-width",n+"px"),t.attr("xmlns","http://www.w3.org/1999/xhtml"),o&&t.attr("class","labelBkg");let s=t.node().getBoundingClientRect();return s.width===n&&(t.style("display","table"),t.style("white-space","break-spaces"),t.style("width",n+"px"),s=t.node().getBoundingClientRect()),r.style("width",s.width),r.style("height",s.height),r.node()}function w(l,e,n){return l.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*n-.1+"em").attr("dy",n+"em")}function m(l,e,n){const a=l.append("text"),o=w(a,1,e);S(o,[{content:n,type:"normal"}]);const r=o.node().getComputedTextLength();return a.remove(),r}function M(l,e,n,a=!1){const r=e.append("g");let t=r.insert("rect").attr("class","background");const c=r.append("text").attr("y","-10.1");let f=0;if(n.forEach(s=>{let i=s.map(p=>p.content).join(" "),u="",h=[],d=0;if(m(r,1.1,i)<=l)h.push(i);else{for(let p=0;p<=i.length;p++)if(u=i.slice(d,p),g.info(u,d,p),m(r,1.1,u)>l){const y=i.slice(d,p).lastIndexOf(" ");y>-1&&(p=d+y+1),h.push(i.slice(d,p).trim()),d=p,u=null}u!=null&&h.push(u)}const T=h.map(p=>({content:p,type:s.type}));for(const p of T){let x=w(c,f,1.1);S(x,[p]),f++}}),a){const s=c.node().getBBox(),i=2;return t.attr("x",-i).attr("y",-i).attr("width",s.width+2*i).attr("height",s.height+2*i),r.node()}else return c.node()}function S(l,e){l.text(""),e.forEach((n,a)=>{const o=l.append("tspan").attr("font-style",n.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",n.type==="strong"?"bold":"normal");a===0?o.text(n.content):o.text(" "+n.content)})}const I=(l,e="",{style:n="",isTitle:a=!1,classes:o="",useHtmlLabels:r=!0,isNode:t=!0,width:c,addSvgBackground:f=!1}={})=>{if(g.info("createText",e,n,a,o,r,t,f),r){const s=$(e),i={isNode:t,label:E(s).replace(/fa[blrs]?:fa-[\w-]+/g,h=>``),labelStyle:n.replace("fill:","color:")};return C(l,i,c,o,f)}else{const s=v(e);return M(c,l,s,f)}};export{I as c}; diff --git a/docs/assets/edges-66ea8538-e5136c41.js b/docs/assets/edges-66ea8538-e73fd07f.js similarity index 99% rename from docs/assets/edges-66ea8538-e5136c41.js rename to docs/assets/edges-66ea8538-e73fd07f.js index beb03bd0..4a4e6b1e 100644 --- a/docs/assets/edges-66ea8538-e5136c41.js +++ b/docs/assets/edges-66ea8538-e73fd07f.js @@ -1,4 +1,4 @@ -import{q as H,c as u,d as Z,aw as j,h as L,l as x,x as D,D as F}from"./index-b4f98efc.js";import{c as P}from"./createText-a49d2d2a-a6165332.js";import{p as Q}from"./svgDraw-95adee0a-796bbfe8.js";import{l as et}from"./line-bade02ca.js";const st=(r,t,e,n)=>{t.forEach(a=>{yt[a](r,e,n)})},it=(r,t,e)=>{x.trace("Making markers for ",e),r.append("defs").append("marker").attr("id",t+"-extensionStart").attr("class","marker extension "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),r.append("defs").append("marker").attr("id",t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},nt=(r,t)=>{r.append("defs").append("marker").attr("id",t+"-compositionStart").attr("class","marker composition "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},lt=(r,t)=>{r.append("defs").append("marker").attr("id",t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},ct=(r,t)=>{r.append("defs").append("marker").attr("id",t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},ht=(r,t)=>{r.append("defs").append("marker").attr("id",t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","white").attr("cx",6).attr("cy",7).attr("r",6)},ot=(r,t)=>{r.append("marker").attr("id",t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},ft=(r,t)=>{r.append("marker").attr("id",t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},pt=(r,t)=>{r.append("marker").attr("id",t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},dt=(r,t)=>{r.append("defs").append("marker").attr("id",t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},yt={extension:it,composition:nt,aggregation:lt,dependency:ct,lollipop:ht,point:ot,circle:ft,cross:pt,barb:dt},Kt=st;function bt(r,t){t&&r.attr("style",t)}function xt(r){const t=L(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),e=t.append("xhtml:div"),n=r.label,a=r.isNode?"nodeLabel":"edgeLabel";return e.html('"+n+""),bt(e,r.labelStyle),e.style("display","inline-block"),e.style("white-space","nowrap"),e.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}const gt=(r,t,e,n)=>{let a=r||"";if(typeof a=="object"&&(a=a[0]),H(u().flowchart.htmlLabels)){a=a.replace(/\\n|\n/g,"
"),x.info("vertexText"+a);const s={isNode:n,label:j(a).replace(/fa[blrs]?:fa-[\w-]+/g,l=>``),labelStyle:t.replace("fill:","color:")};return xt(s)}else{const s=document.createElementNS("http://www.w3.org/2000/svg","text");s.setAttribute("style",t.replace("color:","fill:"));let i=[];typeof a=="string"?i=a.split(/\\n|\n|/gi):Array.isArray(a)?i=a:i=[];for(const l of i){const c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),e?c.setAttribute("class","title-row"):c.setAttribute("class","row"),c.textContent=l.trim(),s.appendChild(c)}return s}},T=gt,S=async(r,t,e,n)=>{let a;const s=t.useHtmlLabels||H(u().flowchart.htmlLabels);e?a=e:a="node default";const i=r.insert("g").attr("class",a).attr("id",t.domId||t.id),l=i.insert("g").attr("class","label").attr("style",t.labelStyle);let c;t.labelText===void 0?c="":c=typeof t.labelText=="string"?t.labelText:t.labelText[0];const o=l.node();let h;t.labelType==="markdown"?h=P(l,Z(j(c),u()),{useHtmlLabels:s,width:t.width||u().flowchart.wrappingWidth,classes:"markdown-node-label"}):h=o.appendChild(T(Z(j(c),u()),t.labelStyle,!1,n));let f=h.getBBox();const b=t.padding/2;if(H(u().flowchart.htmlLabels)){const p=h.children[0],d=L(h),y=p.getElementsByTagName("img");if(y){const g=c.replace(/]*>/g,"").trim()==="";await Promise.all([...y].map(w=>new Promise(R=>w.addEventListener("load",function(){if(w.style.display="flex",w.style.flexDirection="column",g){const I=u().fontSize?u().fontSize:window.getComputedStyle(document.body).fontSize,E=5;w.style.width=parseInt(I,10)*E+"px"}else w.style.width="100%";R(w)}))))}f=p.getBoundingClientRect(),d.attr("width",f.width),d.attr("height",f.height)}return s?l.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"):l.attr("transform","translate(0, "+-f.height/2+")"),t.centerLabel&&l.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),l.insert("rect",":first-child"),{shapeSvg:i,bbox:f,halfPadding:b,label:l}},k=(r,t)=>{const e=t.node().getBBox();r.width=e.width,r.height=e.height};function N(r,t,e,n){return r.insert("polygon",":first-child").attr("points",n.map(function(a){return a.x+","+a.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+e/2+")")}function wt(r,t){return r.intersect(t)}function tt(r,t,e,n){var a=r.x,s=r.y,i=a-n.x,l=s-n.y,c=Math.sqrt(t*t*l*l+e*e*i*i),o=Math.abs(t*e*i/c);n.x0}function kt(r,t,e){var n=r.x,a=r.y,s=[],i=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(d){i=Math.min(i,d.x),l=Math.min(l,d.y)}):(i=Math.min(i,t.x),l=Math.min(l,t.y));for(var c=n-r.width/2-i,o=a-r.height/2-l,h=0;h1&&s.sort(function(d,y){var g=d.x-e.x,w=d.y-e.y,R=Math.sqrt(g*g+w*w),I=y.x-e.x,E=y.y-e.y,X=Math.sqrt(I*I+E*E);return R{var e=r.x,n=r.y,a=t.x-e,s=t.y-n,i=r.width/2,l=r.height/2,c,o;return Math.abs(s)*i>Math.abs(a)*l?(s<0&&(l=-l),c=s===0?0:l*a/s,o=l):(a<0&&(i=-i),c=i,o=a===0?0:i*s/a),{x:e+c,y:n+o}},Lt=vt,m={node:wt,circle:ut,ellipse:tt,polygon:kt,rect:Lt},St=async(r,t)=>{t.useHtmlLabels||u().flowchart.htmlLabels||(t.centerLabel=!0);const{shapeSvg:n,bbox:a,halfPadding:s}=await S(r,t,"node "+t.classes,!0);x.info("Classes = ",t.classes);const i=n.insert("rect",":first-child");return i.attr("rx",t.rx).attr("ry",t.ry).attr("x",-a.width/2-s).attr("y",-a.height/2-s).attr("width",a.width+t.padding).attr("height",a.height+t.padding),k(t,i),t.intersect=function(l){return m.rect(t,l)},n},Et=St,q=async(r,t)=>{const{shapeSvg:e,bbox:n}=await S(r,t,void 0,!0),a=n.width+t.padding,s=n.height+t.padding,i=a+s,l=[{x:i/2,y:0},{x:i,y:-i/2},{x:i/2,y:-i},{x:0,y:-i/2}];x.info("Question main (Circle)");const c=N(e,i,i,l);return c.attr("style",t.style),k(t,c),t.intersect=function(o){return x.warn("Intersect called"),m.polygon(t,l,o)},e},Bt=(r,t)=>{const e=r.insert("g").attr("class","node default").attr("id",t.domId||t.id),n=28,a=[{x:0,y:n/2},{x:n/2,y:0},{x:0,y:-n/2},{x:-n/2,y:0}];return e.insert("polygon",":first-child").attr("points",a.map(function(i){return i.x+","+i.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(i){return m.circle(t,14,i)},e},Mt=async(r,t)=>{const{shapeSvg:e,bbox:n}=await S(r,t,void 0,!0),a=4,s=n.height+t.padding,i=s/a,l=n.width+2*i+t.padding,c=[{x:i,y:0},{x:l-i,y:0},{x:l,y:-s/2},{x:l-i,y:-s},{x:i,y:-s},{x:0,y:-s/2}],o=N(e,l,s,c);return o.attr("style",t.style),k(t,o),t.intersect=function(h){return m.polygon(t,c,h)},e},Ct=async(r,t)=>{const{shapeSvg:e,bbox:n}=await S(r,t,void 0,!0),a=n.width+t.padding,s=n.height+t.padding,i=[{x:-s/2,y:0},{x:a,y:0},{x:a,y:-s},{x:-s/2,y:-s},{x:0,y:-s/2}];return N(e,a,s,i).attr("style",t.style),t.width=a+s,t.height=s,t.intersect=function(c){return m.polygon(t,i,c)},e},Tt=async(r,t)=>{const{shapeSvg:e,bbox:n}=await S(r,t,void 0,!0),a=n.width+t.padding,s=n.height+t.padding,i=[{x:-2*s/6,y:0},{x:a-s/6,y:0},{x:a+2*s/6,y:-s},{x:s/6,y:-s}],l=N(e,a,s,i);return l.attr("style",t.style),k(t,l),t.intersect=function(c){return m.polygon(t,i,c)},e},Rt=async(r,t)=>{const{shapeSvg:e,bbox:n}=await S(r,t,void 0,!0),a=n.width+t.padding,s=n.height+t.padding,i=[{x:2*s/6,y:0},{x:a+s/6,y:0},{x:a-2*s/6,y:-s},{x:-s/6,y:-s}],l=N(e,a,s,i);return l.attr("style",t.style),k(t,l),t.intersect=function(c){return m.polygon(t,i,c)},e},It=async(r,t)=>{const{shapeSvg:e,bbox:n}=await S(r,t,void 0,!0),a=n.width+t.padding,s=n.height+t.padding,i=[{x:-2*s/6,y:0},{x:a+2*s/6,y:0},{x:a-s/6,y:-s},{x:s/6,y:-s}],l=N(e,a,s,i);return l.attr("style",t.style),k(t,l),t.intersect=function(c){return m.polygon(t,i,c)},e},Ht=async(r,t)=>{const{shapeSvg:e,bbox:n}=await S(r,t,void 0,!0),a=n.width+t.padding,s=n.height+t.padding,i=[{x:s/6,y:0},{x:a-s/6,y:0},{x:a+2*s/6,y:-s},{x:-2*s/6,y:-s}],l=N(e,a,s,i);return l.attr("style",t.style),k(t,l),t.intersect=function(c){return m.polygon(t,i,c)},e},$t=async(r,t)=>{const{shapeSvg:e,bbox:n}=await S(r,t,void 0,!0),a=n.width+t.padding,s=n.height+t.padding,i=[{x:0,y:0},{x:a+s/2,y:0},{x:a,y:-s/2},{x:a+s/2,y:-s},{x:0,y:-s}],l=N(e,a,s,i);return l.attr("style",t.style),k(t,l),t.intersect=function(c){return m.polygon(t,i,c)},e},Nt=async(r,t)=>{const{shapeSvg:e,bbox:n}=await S(r,t,void 0,!0),a=n.width+t.padding,s=a/2,i=s/(2.5+a/50),l=n.height+i+t.padding,c="M 0,"+i+" a "+s+","+i+" 0,0,0 "+a+" 0 a "+s+","+i+" 0,0,0 "+-a+" 0 l 0,"+l+" a "+s+","+i+" 0,0,0 "+a+" 0 l 0,"+-l,o=e.attr("label-offset-y",i).insert("path",":first-child").attr("style",t.style).attr("d",c).attr("transform","translate("+-a/2+","+-(l/2+i)+")");return k(t,o),t.intersect=function(h){const f=m.rect(t,h),b=f.x-t.x;if(s!=0&&(Math.abs(b)t.height/2-i)){let p=i*i*(1-b*b/(s*s));p!=0&&(p=Math.sqrt(p)),p=i-p,h.y-t.y>0&&(p=-p),f.y+=p}return f},e},_t=async(r,t)=>{const{shapeSvg:e,bbox:n,halfPadding:a}=await S(r,t,"node "+t.classes,!0),s=e.insert("rect",":first-child"),i=n.width+t.padding,l=n.height+t.padding;if(s.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",-n.width/2-a).attr("y",-n.height/2-a).attr("width",i).attr("height",l),t.props){const c=new Set(Object.keys(t.props));t.props.borders&&(rt(s,t.props.borders,i,l),c.delete("borders")),c.forEach(o=>{x.warn(`Unknown node property ${o}`)})}return k(t,s),t.intersect=function(c){return m.rect(t,c)},e},Wt=async(r,t)=>{const{shapeSvg:e}=await S(r,t,"label",!0);x.trace("Classes = ",t.classes);const n=e.insert("rect",":first-child"),a=0,s=0;if(n.attr("width",a).attr("height",s),e.attr("class","label edgeLabel"),t.props){const i=new Set(Object.keys(t.props));t.props.borders&&(rt(n,t.props.borders,a,s),i.delete("borders")),i.forEach(l=>{x.warn(`Unknown node property ${l}`)})}return k(t,n),t.intersect=function(i){return m.rect(t,i)},e};function rt(r,t,e,n){const a=[],s=l=>{a.push(l,0)},i=l=>{a.push(0,l)};t.includes("t")?(x.debug("add top border"),s(e)):i(e),t.includes("r")?(x.debug("add right border"),s(n)):i(n),t.includes("b")?(x.debug("add bottom border"),s(e)):i(e),t.includes("l")?(x.debug("add left border"),s(n)):i(n),r.attr("stroke-dasharray",a.join(" "))}const Xt=(r,t)=>{let e;t.classes?e="node "+t.classes:e="node default";const n=r.insert("g").attr("class",e).attr("id",t.domId||t.id),a=n.insert("rect",":first-child"),s=n.insert("line"),i=n.insert("g").attr("class","label"),l=t.labelText.flat?t.labelText.flat():t.labelText;let c="";typeof l=="object"?c=l[0]:c=l,x.info("Label text abc79",c,l,typeof l=="object");const o=i.node().appendChild(T(c,t.labelStyle,!0,!0));let h={width:0,height:0};if(H(u().flowchart.htmlLabels)){const y=o.children[0],g=L(o);h=y.getBoundingClientRect(),g.attr("width",h.width),g.attr("height",h.height)}x.info("Text 2",l);const f=l.slice(1,l.length);let b=o.getBBox();const p=i.node().appendChild(T(f.join?f.join("
"):f,t.labelStyle,!0,!0));if(H(u().flowchart.htmlLabels)){const y=p.children[0],g=L(p);h=y.getBoundingClientRect(),g.attr("width",h.width),g.attr("height",h.height)}const d=t.padding/2;return L(p).attr("transform","translate( "+(h.width>b.width?0:(b.width-h.width)/2)+", "+(b.height+d+5)+")"),L(o).attr("transform","translate( "+(h.width{const{shapeSvg:e,bbox:n}=await S(r,t,void 0,!0),a=n.height+t.padding,s=n.width+a/4+t.padding,i=e.insert("rect",":first-child").attr("style",t.style).attr("rx",a/2).attr("ry",a/2).attr("x",-s/2).attr("y",-a/2).attr("width",s).attr("height",a);return k(t,i),t.intersect=function(l){return m.rect(t,l)},e},Dt=async(r,t)=>{const{shapeSvg:e,bbox:n,halfPadding:a}=await S(r,t,void 0,!0),s=e.insert("circle",":first-child");return s.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",n.width/2+a).attr("width",n.width+t.padding).attr("height",n.height+t.padding),x.info("Circle main"),k(t,s),t.intersect=function(i){return x.info("Circle intersect",t,n.width/2+a,i),m.circle(t,n.width/2+a,i)},e},Ut=async(r,t)=>{const{shapeSvg:e,bbox:n,halfPadding:a}=await S(r,t,void 0,!0),s=5,i=e.insert("g",":first-child"),l=i.insert("circle"),c=i.insert("circle");return i.attr("class",t.class),l.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",n.width/2+a+s).attr("width",n.width+t.padding+s*2).attr("height",n.height+t.padding+s*2),c.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",n.width/2+a).attr("width",n.width+t.padding).attr("height",n.height+t.padding),x.info("DoubleCircle main"),k(t,l),t.intersect=function(o){return x.info("DoubleCircle intersect",t,n.width/2+a+s,o),m.circle(t,n.width/2+a+s,o)},e},At=async(r,t)=>{const{shapeSvg:e,bbox:n}=await S(r,t,void 0,!0),a=n.width+t.padding,s=n.height+t.padding,i=[{x:0,y:0},{x:a,y:0},{x:a,y:-s},{x:0,y:-s},{x:0,y:0},{x:-8,y:0},{x:a+8,y:0},{x:a+8,y:-s},{x:-8,y:-s},{x:-8,y:0}],l=N(e,a,s,i);return l.attr("style",t.style),k(t,l),t.intersect=function(c){return m.polygon(t,i,c)},e},Ot=(r,t)=>{const e=r.insert("g").attr("class","node default").attr("id",t.domId||t.id),n=e.insert("circle",":first-child");return n.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),k(t,n),t.intersect=function(a){return m.circle(t,7,a)},e},J=(r,t,e)=>{const n=r.insert("g").attr("class","node default").attr("id",t.domId||t.id);let a=70,s=10;e==="LR"&&(a=10,s=70);const i=n.append("rect").attr("x",-1*a/2).attr("y",-1*s/2).attr("width",a).attr("height",s).attr("class","fork-join");return k(t,i),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(l){return m.rect(t,l)},n},jt=(r,t)=>{const e=r.insert("g").attr("class","node default").attr("id",t.domId||t.id),n=e.insert("circle",":first-child"),a=e.insert("circle",":first-child");return a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),n.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),k(t,a),t.intersect=function(s){return m.circle(t,7,s)},e},zt=(r,t)=>{const e=t.padding/2,n=4,a=8;let s;t.classes?s="node "+t.classes:s="node default";const i=r.insert("g").attr("class",s).attr("id",t.domId||t.id),l=i.insert("rect",":first-child"),c=i.insert("line"),o=i.insert("line");let h=0,f=n;const b=i.insert("g").attr("class","label");let p=0;const d=t.classData.annotations&&t.classData.annotations[0],y=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",g=b.node().appendChild(T(y,t.labelStyle,!0,!0));let w=g.getBBox();if(H(u().flowchart.htmlLabels)){const B=g.children[0],M=L(g);w=B.getBoundingClientRect(),M.attr("width",w.width),M.attr("height",w.height)}t.classData.annotations[0]&&(f+=w.height+n,h+=w.width);let R=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(u().flowchart.htmlLabels?R+="<"+t.classData.type+">":R+="<"+t.classData.type+">");const I=b.node().appendChild(T(R,t.labelStyle,!0,!0));L(I).attr("class","classTitle");let E=I.getBBox();if(H(u().flowchart.htmlLabels)){const B=I.children[0],M=L(I);E=B.getBoundingClientRect(),M.attr("width",E.width),M.attr("height",E.height)}f+=E.height+n,E.width>h&&(h=E.width);const X=[];t.classData.members.forEach(B=>{const M=Q(B);let _=M.displayText;u().flowchart.htmlLabels&&(_=_.replace(//g,">"));const $=b.node().appendChild(T(_,M.cssStyle?M.cssStyle:t.labelStyle,!0,!0));let C=$.getBBox();if(H(u().flowchart.htmlLabels)){const O=$.children[0],Y=L($);C=O.getBoundingClientRect(),Y.attr("width",C.width),Y.attr("height",C.height)}C.width>h&&(h=C.width),f+=C.height+n,X.push($)}),f+=a;const z=[];if(t.classData.methods.forEach(B=>{const M=Q(B);let _=M.displayText;u().flowchart.htmlLabels&&(_=_.replace(//g,">"));const $=b.node().appendChild(T(_,M.cssStyle?M.cssStyle:t.labelStyle,!0,!0));let C=$.getBBox();if(H(u().flowchart.htmlLabels)){const O=$.children[0],Y=L($);C=O.getBoundingClientRect(),Y.attr("width",C.width),Y.attr("height",C.height)}C.width>h&&(h=C.width),f+=C.height+n,z.push($)}),f+=a,d){let B=(h-w.width)/2;L(g).attr("transform","translate( "+(-1*h/2+B)+", "+-1*f/2+")"),p=w.height+n}let at=(h-E.width)/2;return L(I).attr("transform","translate( "+(-1*h/2+at)+", "+(-1*f/2+p)+")"),p+=E.height+n,c.attr("class","divider").attr("x1",-h/2-e).attr("x2",h/2+e).attr("y1",-f/2-e+a+p).attr("y2",-f/2-e+a+p),p+=a,X.forEach(B=>{L(B).attr("transform","translate( "+-h/2+", "+(-1*f/2+p+a/2)+")"),p+=E.height+n}),p+=a,o.attr("class","divider").attr("x1",-h/2-e).attr("x2",h/2+e).attr("y1",-f/2-e+a+p).attr("y2",-f/2-e+a+p),p+=a,z.forEach(B=>{L(B).attr("transform","translate( "+-h/2+", "+(-1*f/2+p)+")"),p+=E.height+n}),l.attr("class","outer title-state").attr("x",-h/2-e).attr("y",-(f/2)-e).attr("width",h+t.padding).attr("height",f+t.padding),k(t,l),t.intersect=function(B){return m.rect(t,B)},i},K={rhombus:q,question:q,rect:_t,labelRect:Wt,rectWithTitle:Xt,choice:Bt,circle:Dt,doublecircle:Ut,stadium:Yt,hexagon:Mt,rect_left_inv_arrow:Ct,lean_right:Tt,lean_left:Rt,trapezoid:It,inv_trapezoid:Ht,rect_right_inv_arrow:$t,cylinder:Nt,start:Ot,end:jt,note:Et,subroutine:At,fork:J,join:J,class_box:zt};let W={};const Gt=async(r,t,e)=>{let n,a;if(t.link){let s;u().securityLevel==="sandbox"?s="_top":t.linkTarget&&(s=t.linkTarget||"_blank"),n=r.insert("svg:a").attr("xlink:href",t.link).attr("target",s),a=await K[t.shape](n,t,e)}else a=await K[t.shape](r,t,e),n=a;return t.tooltip&&a.attr("title",t.tooltip),t.class&&a.attr("class","node default "+t.class),W[t.id]=n,t.haveCallback&&W[t.id].attr("class",W[t.id].attr("class")+" clickable"),n},Pt=(r,t)=>{W[t.id]=r},tr=()=>{W={}},rr=r=>{const t=W[r.id];x.trace("Transforming node",r.diff,r,"translate("+(r.x-r.width/2-5)+", "+r.width/2+")");const e=8,n=r.diff||0;return r.clusterNode?t.attr("transform","translate("+(r.x+n-r.width/2)+", "+(r.y-r.height/2-e)+")"):t.attr("transform","translate("+r.x+", "+r.y+")"),n};let A={},v={};const ar=()=>{A={},v={}},er=(r,t)=>{const e=H(u().flowchart.htmlLabels),n=t.labelType==="markdown"?P(r,t.label,{style:t.labelStyle,useHtmlLabels:e,addSvgBackground:!0}):T(t.label,t.labelStyle);x.info("abc82",t,t.labelType);const a=r.insert("g").attr("class","edgeLabel"),s=a.insert("g").attr("class","label");s.node().appendChild(n);let i=n.getBBox();if(e){const c=n.children[0],o=L(n);i=c.getBoundingClientRect(),o.attr("width",i.width),o.attr("height",i.height)}s.attr("transform","translate("+-i.width/2+", "+-i.height/2+")"),A[t.id]=a,t.width=i.width,t.height=i.height;let l;if(t.startLabelLeft){const c=T(t.startLabelLeft,t.labelStyle),o=r.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");l=h.node().appendChild(c);const f=c.getBBox();h.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),v[t.id]||(v[t.id]={}),v[t.id].startLeft=o,U(l,t.startLabelLeft)}if(t.startLabelRight){const c=T(t.startLabelRight,t.labelStyle),o=r.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");l=o.node().appendChild(c),h.node().appendChild(c);const f=c.getBBox();h.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),v[t.id]||(v[t.id]={}),v[t.id].startRight=o,U(l,t.startLabelRight)}if(t.endLabelLeft){const c=T(t.endLabelLeft,t.labelStyle),o=r.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");l=h.node().appendChild(c);const f=c.getBBox();h.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),o.node().appendChild(c),v[t.id]||(v[t.id]={}),v[t.id].endLeft=o,U(l,t.endLabelLeft)}if(t.endLabelRight){const c=T(t.endLabelRight,t.labelStyle),o=r.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");l=h.node().appendChild(c);const f=c.getBBox();h.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),o.node().appendChild(c),v[t.id]||(v[t.id]={}),v[t.id].endRight=o,U(l,t.endLabelRight)}return n};function U(r,t){u().flowchart.htmlLabels&&r&&(r.style.width=t.length*9+"px",r.style.height="12px")}const sr=(r,t)=>{x.info("Moving label abc78 ",r.id,r.label,A[r.id]);let e=t.updatedPath?t.updatedPath:t.originalPath;if(r.label){const n=A[r.id];let a=r.x,s=r.y;if(e){const i=D.calcLabelPosition(e);x.info("Moving label "+r.label+" from (",a,",",s,") to (",i.x,",",i.y,") abc78"),t.updatedPath&&(a=i.x,s=i.y)}n.attr("transform","translate("+a+", "+s+")")}if(r.startLabelLeft){const n=v[r.id].startLeft;let a=r.x,s=r.y;if(e){const i=D.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_left",e);a=i.x,s=i.y}n.attr("transform","translate("+a+", "+s+")")}if(r.startLabelRight){const n=v[r.id].startRight;let a=r.x,s=r.y;if(e){const i=D.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_right",e);a=i.x,s=i.y}n.attr("transform","translate("+a+", "+s+")")}if(r.endLabelLeft){const n=v[r.id].endLeft;let a=r.x,s=r.y;if(e){const i=D.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_left",e);a=i.x,s=i.y}n.attr("transform","translate("+a+", "+s+")")}if(r.endLabelRight){const n=v[r.id].endRight;let a=r.x,s=r.y;if(e){const i=D.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_right",e);a=i.x,s=i.y}n.attr("transform","translate("+a+", "+s+")")}},Zt=(r,t)=>{const e=r.x,n=r.y,a=Math.abs(t.x-e),s=Math.abs(t.y-n),i=r.width/2,l=r.height/2;return a>=i||s>=l},Ft=(r,t,e)=>{x.warn(`intersection calc abc89: +import{q as H,c as u,d as Z,aw as j,h as L,l as x,x as D,D as F}from"./index-0e08498d.js";import{c as P}from"./createText-a49d2d2a-b45cf165.js";import{p as Q}from"./svgDraw-95adee0a-c0e4fe11.js";import{l as et}from"./line-4c8e436d.js";const st=(r,t,e,n)=>{t.forEach(a=>{yt[a](r,e,n)})},it=(r,t,e)=>{x.trace("Making markers for ",e),r.append("defs").append("marker").attr("id",t+"-extensionStart").attr("class","marker extension "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),r.append("defs").append("marker").attr("id",t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},nt=(r,t)=>{r.append("defs").append("marker").attr("id",t+"-compositionStart").attr("class","marker composition "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},lt=(r,t)=>{r.append("defs").append("marker").attr("id",t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},ct=(r,t)=>{r.append("defs").append("marker").attr("id",t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},ht=(r,t)=>{r.append("defs").append("marker").attr("id",t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","white").attr("cx",6).attr("cy",7).attr("r",6)},ot=(r,t)=>{r.append("marker").attr("id",t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},ft=(r,t)=>{r.append("marker").attr("id",t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},pt=(r,t)=>{r.append("marker").attr("id",t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},dt=(r,t)=>{r.append("defs").append("marker").attr("id",t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},yt={extension:it,composition:nt,aggregation:lt,dependency:ct,lollipop:ht,point:ot,circle:ft,cross:pt,barb:dt},Kt=st;function bt(r,t){t&&r.attr("style",t)}function xt(r){const t=L(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),e=t.append("xhtml:div"),n=r.label,a=r.isNode?"nodeLabel":"edgeLabel";return e.html('"+n+""),bt(e,r.labelStyle),e.style("display","inline-block"),e.style("white-space","nowrap"),e.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}const gt=(r,t,e,n)=>{let a=r||"";if(typeof a=="object"&&(a=a[0]),H(u().flowchart.htmlLabels)){a=a.replace(/\\n|\n/g,"
"),x.info("vertexText"+a);const s={isNode:n,label:j(a).replace(/fa[blrs]?:fa-[\w-]+/g,l=>``),labelStyle:t.replace("fill:","color:")};return xt(s)}else{const s=document.createElementNS("http://www.w3.org/2000/svg","text");s.setAttribute("style",t.replace("color:","fill:"));let i=[];typeof a=="string"?i=a.split(/\\n|\n|/gi):Array.isArray(a)?i=a:i=[];for(const l of i){const c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),e?c.setAttribute("class","title-row"):c.setAttribute("class","row"),c.textContent=l.trim(),s.appendChild(c)}return s}},T=gt,S=async(r,t,e,n)=>{let a;const s=t.useHtmlLabels||H(u().flowchart.htmlLabels);e?a=e:a="node default";const i=r.insert("g").attr("class",a).attr("id",t.domId||t.id),l=i.insert("g").attr("class","label").attr("style",t.labelStyle);let c;t.labelText===void 0?c="":c=typeof t.labelText=="string"?t.labelText:t.labelText[0];const o=l.node();let h;t.labelType==="markdown"?h=P(l,Z(j(c),u()),{useHtmlLabels:s,width:t.width||u().flowchart.wrappingWidth,classes:"markdown-node-label"}):h=o.appendChild(T(Z(j(c),u()),t.labelStyle,!1,n));let f=h.getBBox();const b=t.padding/2;if(H(u().flowchart.htmlLabels)){const p=h.children[0],d=L(h),y=p.getElementsByTagName("img");if(y){const g=c.replace(/]*>/g,"").trim()==="";await Promise.all([...y].map(w=>new Promise(R=>w.addEventListener("load",function(){if(w.style.display="flex",w.style.flexDirection="column",g){const I=u().fontSize?u().fontSize:window.getComputedStyle(document.body).fontSize,E=5;w.style.width=parseInt(I,10)*E+"px"}else w.style.width="100%";R(w)}))))}f=p.getBoundingClientRect(),d.attr("width",f.width),d.attr("height",f.height)}return s?l.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"):l.attr("transform","translate(0, "+-f.height/2+")"),t.centerLabel&&l.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),l.insert("rect",":first-child"),{shapeSvg:i,bbox:f,halfPadding:b,label:l}},k=(r,t)=>{const e=t.node().getBBox();r.width=e.width,r.height=e.height};function N(r,t,e,n){return r.insert("polygon",":first-child").attr("points",n.map(function(a){return a.x+","+a.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+e/2+")")}function wt(r,t){return r.intersect(t)}function tt(r,t,e,n){var a=r.x,s=r.y,i=a-n.x,l=s-n.y,c=Math.sqrt(t*t*l*l+e*e*i*i),o=Math.abs(t*e*i/c);n.x0}function kt(r,t,e){var n=r.x,a=r.y,s=[],i=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(d){i=Math.min(i,d.x),l=Math.min(l,d.y)}):(i=Math.min(i,t.x),l=Math.min(l,t.y));for(var c=n-r.width/2-i,o=a-r.height/2-l,h=0;h1&&s.sort(function(d,y){var g=d.x-e.x,w=d.y-e.y,R=Math.sqrt(g*g+w*w),I=y.x-e.x,E=y.y-e.y,X=Math.sqrt(I*I+E*E);return R{var e=r.x,n=r.y,a=t.x-e,s=t.y-n,i=r.width/2,l=r.height/2,c,o;return Math.abs(s)*i>Math.abs(a)*l?(s<0&&(l=-l),c=s===0?0:l*a/s,o=l):(a<0&&(i=-i),c=i,o=a===0?0:i*s/a),{x:e+c,y:n+o}},Lt=vt,m={node:wt,circle:ut,ellipse:tt,polygon:kt,rect:Lt},St=async(r,t)=>{t.useHtmlLabels||u().flowchart.htmlLabels||(t.centerLabel=!0);const{shapeSvg:n,bbox:a,halfPadding:s}=await S(r,t,"node "+t.classes,!0);x.info("Classes = ",t.classes);const i=n.insert("rect",":first-child");return i.attr("rx",t.rx).attr("ry",t.ry).attr("x",-a.width/2-s).attr("y",-a.height/2-s).attr("width",a.width+t.padding).attr("height",a.height+t.padding),k(t,i),t.intersect=function(l){return m.rect(t,l)},n},Et=St,q=async(r,t)=>{const{shapeSvg:e,bbox:n}=await S(r,t,void 0,!0),a=n.width+t.padding,s=n.height+t.padding,i=a+s,l=[{x:i/2,y:0},{x:i,y:-i/2},{x:i/2,y:-i},{x:0,y:-i/2}];x.info("Question main (Circle)");const c=N(e,i,i,l);return c.attr("style",t.style),k(t,c),t.intersect=function(o){return x.warn("Intersect called"),m.polygon(t,l,o)},e},Bt=(r,t)=>{const e=r.insert("g").attr("class","node default").attr("id",t.domId||t.id),n=28,a=[{x:0,y:n/2},{x:n/2,y:0},{x:0,y:-n/2},{x:-n/2,y:0}];return e.insert("polygon",":first-child").attr("points",a.map(function(i){return i.x+","+i.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(i){return m.circle(t,14,i)},e},Mt=async(r,t)=>{const{shapeSvg:e,bbox:n}=await S(r,t,void 0,!0),a=4,s=n.height+t.padding,i=s/a,l=n.width+2*i+t.padding,c=[{x:i,y:0},{x:l-i,y:0},{x:l,y:-s/2},{x:l-i,y:-s},{x:i,y:-s},{x:0,y:-s/2}],o=N(e,l,s,c);return o.attr("style",t.style),k(t,o),t.intersect=function(h){return m.polygon(t,c,h)},e},Ct=async(r,t)=>{const{shapeSvg:e,bbox:n}=await S(r,t,void 0,!0),a=n.width+t.padding,s=n.height+t.padding,i=[{x:-s/2,y:0},{x:a,y:0},{x:a,y:-s},{x:-s/2,y:-s},{x:0,y:-s/2}];return N(e,a,s,i).attr("style",t.style),t.width=a+s,t.height=s,t.intersect=function(c){return m.polygon(t,i,c)},e},Tt=async(r,t)=>{const{shapeSvg:e,bbox:n}=await S(r,t,void 0,!0),a=n.width+t.padding,s=n.height+t.padding,i=[{x:-2*s/6,y:0},{x:a-s/6,y:0},{x:a+2*s/6,y:-s},{x:s/6,y:-s}],l=N(e,a,s,i);return l.attr("style",t.style),k(t,l),t.intersect=function(c){return m.polygon(t,i,c)},e},Rt=async(r,t)=>{const{shapeSvg:e,bbox:n}=await S(r,t,void 0,!0),a=n.width+t.padding,s=n.height+t.padding,i=[{x:2*s/6,y:0},{x:a+s/6,y:0},{x:a-2*s/6,y:-s},{x:-s/6,y:-s}],l=N(e,a,s,i);return l.attr("style",t.style),k(t,l),t.intersect=function(c){return m.polygon(t,i,c)},e},It=async(r,t)=>{const{shapeSvg:e,bbox:n}=await S(r,t,void 0,!0),a=n.width+t.padding,s=n.height+t.padding,i=[{x:-2*s/6,y:0},{x:a+2*s/6,y:0},{x:a-s/6,y:-s},{x:s/6,y:-s}],l=N(e,a,s,i);return l.attr("style",t.style),k(t,l),t.intersect=function(c){return m.polygon(t,i,c)},e},Ht=async(r,t)=>{const{shapeSvg:e,bbox:n}=await S(r,t,void 0,!0),a=n.width+t.padding,s=n.height+t.padding,i=[{x:s/6,y:0},{x:a-s/6,y:0},{x:a+2*s/6,y:-s},{x:-2*s/6,y:-s}],l=N(e,a,s,i);return l.attr("style",t.style),k(t,l),t.intersect=function(c){return m.polygon(t,i,c)},e},$t=async(r,t)=>{const{shapeSvg:e,bbox:n}=await S(r,t,void 0,!0),a=n.width+t.padding,s=n.height+t.padding,i=[{x:0,y:0},{x:a+s/2,y:0},{x:a,y:-s/2},{x:a+s/2,y:-s},{x:0,y:-s}],l=N(e,a,s,i);return l.attr("style",t.style),k(t,l),t.intersect=function(c){return m.polygon(t,i,c)},e},Nt=async(r,t)=>{const{shapeSvg:e,bbox:n}=await S(r,t,void 0,!0),a=n.width+t.padding,s=a/2,i=s/(2.5+a/50),l=n.height+i+t.padding,c="M 0,"+i+" a "+s+","+i+" 0,0,0 "+a+" 0 a "+s+","+i+" 0,0,0 "+-a+" 0 l 0,"+l+" a "+s+","+i+" 0,0,0 "+a+" 0 l 0,"+-l,o=e.attr("label-offset-y",i).insert("path",":first-child").attr("style",t.style).attr("d",c).attr("transform","translate("+-a/2+","+-(l/2+i)+")");return k(t,o),t.intersect=function(h){const f=m.rect(t,h),b=f.x-t.x;if(s!=0&&(Math.abs(b)t.height/2-i)){let p=i*i*(1-b*b/(s*s));p!=0&&(p=Math.sqrt(p)),p=i-p,h.y-t.y>0&&(p=-p),f.y+=p}return f},e},_t=async(r,t)=>{const{shapeSvg:e,bbox:n,halfPadding:a}=await S(r,t,"node "+t.classes,!0),s=e.insert("rect",":first-child"),i=n.width+t.padding,l=n.height+t.padding;if(s.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",-n.width/2-a).attr("y",-n.height/2-a).attr("width",i).attr("height",l),t.props){const c=new Set(Object.keys(t.props));t.props.borders&&(rt(s,t.props.borders,i,l),c.delete("borders")),c.forEach(o=>{x.warn(`Unknown node property ${o}`)})}return k(t,s),t.intersect=function(c){return m.rect(t,c)},e},Wt=async(r,t)=>{const{shapeSvg:e}=await S(r,t,"label",!0);x.trace("Classes = ",t.classes);const n=e.insert("rect",":first-child"),a=0,s=0;if(n.attr("width",a).attr("height",s),e.attr("class","label edgeLabel"),t.props){const i=new Set(Object.keys(t.props));t.props.borders&&(rt(n,t.props.borders,a,s),i.delete("borders")),i.forEach(l=>{x.warn(`Unknown node property ${l}`)})}return k(t,n),t.intersect=function(i){return m.rect(t,i)},e};function rt(r,t,e,n){const a=[],s=l=>{a.push(l,0)},i=l=>{a.push(0,l)};t.includes("t")?(x.debug("add top border"),s(e)):i(e),t.includes("r")?(x.debug("add right border"),s(n)):i(n),t.includes("b")?(x.debug("add bottom border"),s(e)):i(e),t.includes("l")?(x.debug("add left border"),s(n)):i(n),r.attr("stroke-dasharray",a.join(" "))}const Xt=(r,t)=>{let e;t.classes?e="node "+t.classes:e="node default";const n=r.insert("g").attr("class",e).attr("id",t.domId||t.id),a=n.insert("rect",":first-child"),s=n.insert("line"),i=n.insert("g").attr("class","label"),l=t.labelText.flat?t.labelText.flat():t.labelText;let c="";typeof l=="object"?c=l[0]:c=l,x.info("Label text abc79",c,l,typeof l=="object");const o=i.node().appendChild(T(c,t.labelStyle,!0,!0));let h={width:0,height:0};if(H(u().flowchart.htmlLabels)){const y=o.children[0],g=L(o);h=y.getBoundingClientRect(),g.attr("width",h.width),g.attr("height",h.height)}x.info("Text 2",l);const f=l.slice(1,l.length);let b=o.getBBox();const p=i.node().appendChild(T(f.join?f.join("
"):f,t.labelStyle,!0,!0));if(H(u().flowchart.htmlLabels)){const y=p.children[0],g=L(p);h=y.getBoundingClientRect(),g.attr("width",h.width),g.attr("height",h.height)}const d=t.padding/2;return L(p).attr("transform","translate( "+(h.width>b.width?0:(b.width-h.width)/2)+", "+(b.height+d+5)+")"),L(o).attr("transform","translate( "+(h.width{const{shapeSvg:e,bbox:n}=await S(r,t,void 0,!0),a=n.height+t.padding,s=n.width+a/4+t.padding,i=e.insert("rect",":first-child").attr("style",t.style).attr("rx",a/2).attr("ry",a/2).attr("x",-s/2).attr("y",-a/2).attr("width",s).attr("height",a);return k(t,i),t.intersect=function(l){return m.rect(t,l)},e},Dt=async(r,t)=>{const{shapeSvg:e,bbox:n,halfPadding:a}=await S(r,t,void 0,!0),s=e.insert("circle",":first-child");return s.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",n.width/2+a).attr("width",n.width+t.padding).attr("height",n.height+t.padding),x.info("Circle main"),k(t,s),t.intersect=function(i){return x.info("Circle intersect",t,n.width/2+a,i),m.circle(t,n.width/2+a,i)},e},Ut=async(r,t)=>{const{shapeSvg:e,bbox:n,halfPadding:a}=await S(r,t,void 0,!0),s=5,i=e.insert("g",":first-child"),l=i.insert("circle"),c=i.insert("circle");return i.attr("class",t.class),l.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",n.width/2+a+s).attr("width",n.width+t.padding+s*2).attr("height",n.height+t.padding+s*2),c.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",n.width/2+a).attr("width",n.width+t.padding).attr("height",n.height+t.padding),x.info("DoubleCircle main"),k(t,l),t.intersect=function(o){return x.info("DoubleCircle intersect",t,n.width/2+a+s,o),m.circle(t,n.width/2+a+s,o)},e},At=async(r,t)=>{const{shapeSvg:e,bbox:n}=await S(r,t,void 0,!0),a=n.width+t.padding,s=n.height+t.padding,i=[{x:0,y:0},{x:a,y:0},{x:a,y:-s},{x:0,y:-s},{x:0,y:0},{x:-8,y:0},{x:a+8,y:0},{x:a+8,y:-s},{x:-8,y:-s},{x:-8,y:0}],l=N(e,a,s,i);return l.attr("style",t.style),k(t,l),t.intersect=function(c){return m.polygon(t,i,c)},e},Ot=(r,t)=>{const e=r.insert("g").attr("class","node default").attr("id",t.domId||t.id),n=e.insert("circle",":first-child");return n.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),k(t,n),t.intersect=function(a){return m.circle(t,7,a)},e},J=(r,t,e)=>{const n=r.insert("g").attr("class","node default").attr("id",t.domId||t.id);let a=70,s=10;e==="LR"&&(a=10,s=70);const i=n.append("rect").attr("x",-1*a/2).attr("y",-1*s/2).attr("width",a).attr("height",s).attr("class","fork-join");return k(t,i),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(l){return m.rect(t,l)},n},jt=(r,t)=>{const e=r.insert("g").attr("class","node default").attr("id",t.domId||t.id),n=e.insert("circle",":first-child"),a=e.insert("circle",":first-child");return a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),n.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),k(t,a),t.intersect=function(s){return m.circle(t,7,s)},e},zt=(r,t)=>{const e=t.padding/2,n=4,a=8;let s;t.classes?s="node "+t.classes:s="node default";const i=r.insert("g").attr("class",s).attr("id",t.domId||t.id),l=i.insert("rect",":first-child"),c=i.insert("line"),o=i.insert("line");let h=0,f=n;const b=i.insert("g").attr("class","label");let p=0;const d=t.classData.annotations&&t.classData.annotations[0],y=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",g=b.node().appendChild(T(y,t.labelStyle,!0,!0));let w=g.getBBox();if(H(u().flowchart.htmlLabels)){const B=g.children[0],M=L(g);w=B.getBoundingClientRect(),M.attr("width",w.width),M.attr("height",w.height)}t.classData.annotations[0]&&(f+=w.height+n,h+=w.width);let R=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(u().flowchart.htmlLabels?R+="<"+t.classData.type+">":R+="<"+t.classData.type+">");const I=b.node().appendChild(T(R,t.labelStyle,!0,!0));L(I).attr("class","classTitle");let E=I.getBBox();if(H(u().flowchart.htmlLabels)){const B=I.children[0],M=L(I);E=B.getBoundingClientRect(),M.attr("width",E.width),M.attr("height",E.height)}f+=E.height+n,E.width>h&&(h=E.width);const X=[];t.classData.members.forEach(B=>{const M=Q(B);let _=M.displayText;u().flowchart.htmlLabels&&(_=_.replace(//g,">"));const $=b.node().appendChild(T(_,M.cssStyle?M.cssStyle:t.labelStyle,!0,!0));let C=$.getBBox();if(H(u().flowchart.htmlLabels)){const O=$.children[0],Y=L($);C=O.getBoundingClientRect(),Y.attr("width",C.width),Y.attr("height",C.height)}C.width>h&&(h=C.width),f+=C.height+n,X.push($)}),f+=a;const z=[];if(t.classData.methods.forEach(B=>{const M=Q(B);let _=M.displayText;u().flowchart.htmlLabels&&(_=_.replace(//g,">"));const $=b.node().appendChild(T(_,M.cssStyle?M.cssStyle:t.labelStyle,!0,!0));let C=$.getBBox();if(H(u().flowchart.htmlLabels)){const O=$.children[0],Y=L($);C=O.getBoundingClientRect(),Y.attr("width",C.width),Y.attr("height",C.height)}C.width>h&&(h=C.width),f+=C.height+n,z.push($)}),f+=a,d){let B=(h-w.width)/2;L(g).attr("transform","translate( "+(-1*h/2+B)+", "+-1*f/2+")"),p=w.height+n}let at=(h-E.width)/2;return L(I).attr("transform","translate( "+(-1*h/2+at)+", "+(-1*f/2+p)+")"),p+=E.height+n,c.attr("class","divider").attr("x1",-h/2-e).attr("x2",h/2+e).attr("y1",-f/2-e+a+p).attr("y2",-f/2-e+a+p),p+=a,X.forEach(B=>{L(B).attr("transform","translate( "+-h/2+", "+(-1*f/2+p+a/2)+")"),p+=E.height+n}),p+=a,o.attr("class","divider").attr("x1",-h/2-e).attr("x2",h/2+e).attr("y1",-f/2-e+a+p).attr("y2",-f/2-e+a+p),p+=a,z.forEach(B=>{L(B).attr("transform","translate( "+-h/2+", "+(-1*f/2+p)+")"),p+=E.height+n}),l.attr("class","outer title-state").attr("x",-h/2-e).attr("y",-(f/2)-e).attr("width",h+t.padding).attr("height",f+t.padding),k(t,l),t.intersect=function(B){return m.rect(t,B)},i},K={rhombus:q,question:q,rect:_t,labelRect:Wt,rectWithTitle:Xt,choice:Bt,circle:Dt,doublecircle:Ut,stadium:Yt,hexagon:Mt,rect_left_inv_arrow:Ct,lean_right:Tt,lean_left:Rt,trapezoid:It,inv_trapezoid:Ht,rect_right_inv_arrow:$t,cylinder:Nt,start:Ot,end:jt,note:Et,subroutine:At,fork:J,join:J,class_box:zt};let W={};const Gt=async(r,t,e)=>{let n,a;if(t.link){let s;u().securityLevel==="sandbox"?s="_top":t.linkTarget&&(s=t.linkTarget||"_blank"),n=r.insert("svg:a").attr("xlink:href",t.link).attr("target",s),a=await K[t.shape](n,t,e)}else a=await K[t.shape](r,t,e),n=a;return t.tooltip&&a.attr("title",t.tooltip),t.class&&a.attr("class","node default "+t.class),W[t.id]=n,t.haveCallback&&W[t.id].attr("class",W[t.id].attr("class")+" clickable"),n},Pt=(r,t)=>{W[t.id]=r},tr=()=>{W={}},rr=r=>{const t=W[r.id];x.trace("Transforming node",r.diff,r,"translate("+(r.x-r.width/2-5)+", "+r.width/2+")");const e=8,n=r.diff||0;return r.clusterNode?t.attr("transform","translate("+(r.x+n-r.width/2)+", "+(r.y-r.height/2-e)+")"):t.attr("transform","translate("+r.x+", "+r.y+")"),n};let A={},v={};const ar=()=>{A={},v={}},er=(r,t)=>{const e=H(u().flowchart.htmlLabels),n=t.labelType==="markdown"?P(r,t.label,{style:t.labelStyle,useHtmlLabels:e,addSvgBackground:!0}):T(t.label,t.labelStyle);x.info("abc82",t,t.labelType);const a=r.insert("g").attr("class","edgeLabel"),s=a.insert("g").attr("class","label");s.node().appendChild(n);let i=n.getBBox();if(e){const c=n.children[0],o=L(n);i=c.getBoundingClientRect(),o.attr("width",i.width),o.attr("height",i.height)}s.attr("transform","translate("+-i.width/2+", "+-i.height/2+")"),A[t.id]=a,t.width=i.width,t.height=i.height;let l;if(t.startLabelLeft){const c=T(t.startLabelLeft,t.labelStyle),o=r.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");l=h.node().appendChild(c);const f=c.getBBox();h.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),v[t.id]||(v[t.id]={}),v[t.id].startLeft=o,U(l,t.startLabelLeft)}if(t.startLabelRight){const c=T(t.startLabelRight,t.labelStyle),o=r.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");l=o.node().appendChild(c),h.node().appendChild(c);const f=c.getBBox();h.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),v[t.id]||(v[t.id]={}),v[t.id].startRight=o,U(l,t.startLabelRight)}if(t.endLabelLeft){const c=T(t.endLabelLeft,t.labelStyle),o=r.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");l=h.node().appendChild(c);const f=c.getBBox();h.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),o.node().appendChild(c),v[t.id]||(v[t.id]={}),v[t.id].endLeft=o,U(l,t.endLabelLeft)}if(t.endLabelRight){const c=T(t.endLabelRight,t.labelStyle),o=r.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");l=h.node().appendChild(c);const f=c.getBBox();h.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),o.node().appendChild(c),v[t.id]||(v[t.id]={}),v[t.id].endRight=o,U(l,t.endLabelRight)}return n};function U(r,t){u().flowchart.htmlLabels&&r&&(r.style.width=t.length*9+"px",r.style.height="12px")}const sr=(r,t)=>{x.info("Moving label abc78 ",r.id,r.label,A[r.id]);let e=t.updatedPath?t.updatedPath:t.originalPath;if(r.label){const n=A[r.id];let a=r.x,s=r.y;if(e){const i=D.calcLabelPosition(e);x.info("Moving label "+r.label+" from (",a,",",s,") to (",i.x,",",i.y,") abc78"),t.updatedPath&&(a=i.x,s=i.y)}n.attr("transform","translate("+a+", "+s+")")}if(r.startLabelLeft){const n=v[r.id].startLeft;let a=r.x,s=r.y;if(e){const i=D.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_left",e);a=i.x,s=i.y}n.attr("transform","translate("+a+", "+s+")")}if(r.startLabelRight){const n=v[r.id].startRight;let a=r.x,s=r.y;if(e){const i=D.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_right",e);a=i.x,s=i.y}n.attr("transform","translate("+a+", "+s+")")}if(r.endLabelLeft){const n=v[r.id].endLeft;let a=r.x,s=r.y;if(e){const i=D.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_left",e);a=i.x,s=i.y}n.attr("transform","translate("+a+", "+s+")")}if(r.endLabelRight){const n=v[r.id].endRight;let a=r.x,s=r.y;if(e){const i=D.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_right",e);a=i.x,s=i.y}n.attr("transform","translate("+a+", "+s+")")}},Zt=(r,t)=>{const e=r.x,n=r.y,a=Math.abs(t.x-e),s=Math.abs(t.y-n),i=r.width/2,l=r.height/2;return a>=i||s>=l},Ft=(r,t,e)=>{x.warn(`intersection calc abc89: outsidePoint: ${JSON.stringify(t)} insidePoint : ${JSON.stringify(e)} node : x:${r.x} y:${r.y} w:${r.width} h:${r.height}`);const n=r.x,a=r.y,s=Math.abs(n-e.x),i=r.width/2;let l=e.xMath.abs(n-t.x)*c){let f=e.y{x.warn("abc88 cutPathAtIntersect",r,t);let e=[],n=r[0],a=!1;return r.forEach(s=>{if(x.info("abc88 checking point",s,t),!Zt(t,s)&&!a){const i=Ft(t,n,s);x.warn("abc88 inside",s,n,i),x.warn("abc88 intersection",i);let l=!1;e.forEach(c=>{l=l||c.x===i.x&&c.y===i.y}),e.some(c=>c.x===i.x&&c.y===i.y)?x.warn("abc88 no intersect",i,e):e.push(i),a=!0}else x.warn("abc88 outside",s,n),n=s,a||e.push(s)}),x.warn("abc88 returning points",e),e},ir=function(r,t,e,n,a,s){let i=e.points,l=!1;const c=s.node(t.v);var o=s.node(t.w);x.info("abc88 InsertEdge: ",e),o.intersect&&c.intersect&&(i=i.slice(1,e.points.length-1),i.unshift(c.intersect(i[0])),x.info("Last point",i[i.length-1],o,o.intersect(i[i.length-1])),i.push(o.intersect(i[i.length-1]))),e.toCluster&&(x.info("to cluster abc88",n[e.toCluster]),i=G(e.points,n[e.toCluster].node),l=!0),e.fromCluster&&(x.info("from cluster abc88",n[e.fromCluster]),i=G(i.reverse(),n[e.fromCluster].node).reverse(),l=!0);const h=i.filter(w=>!Number.isNaN(w.y));let f;a==="graph"||a==="flowchart"?f=e.curve||F:f=F;const b=et().x(function(w){return w.x}).y(function(w){return w.y}).curve(f);let p;switch(e.thickness){case"normal":p="edge-thickness-normal";break;case"thick":p="edge-thickness-thick";break;case"invisible":p="edge-thickness-thick";break;default:p=""}switch(e.pattern){case"solid":p+=" edge-pattern-solid";break;case"dotted":p+=" edge-pattern-dotted";break;case"dashed":p+=" edge-pattern-dashed";break}const d=r.append("path").attr("d",b(h)).attr("id",e.id).attr("class"," "+p+(e.classes?" "+e.classes:"")).attr("style",e.style);let y="";switch((u().flowchart.arrowMarkerAbsolute||u().state.arrowMarkerAbsolute)&&(y=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,y=y.replace(/\(/g,"\\("),y=y.replace(/\)/g,"\\)")),x.info("arrowTypeStart",e.arrowTypeStart),x.info("arrowTypeEnd",e.arrowTypeEnd),e.arrowTypeStart){case"arrow_cross":d.attr("marker-start","url("+y+"#"+a+"-crossStart)");break;case"arrow_point":d.attr("marker-start","url("+y+"#"+a+"-pointStart)");break;case"arrow_barb":d.attr("marker-start","url("+y+"#"+a+"-barbStart)");break;case"arrow_circle":d.attr("marker-start","url("+y+"#"+a+"-circleStart)");break;case"aggregation":d.attr("marker-start","url("+y+"#"+a+"-aggregationStart)");break;case"extension":d.attr("marker-start","url("+y+"#"+a+"-extensionStart)");break;case"composition":d.attr("marker-start","url("+y+"#"+a+"-compositionStart)");break;case"dependency":d.attr("marker-start","url("+y+"#"+a+"-dependencyStart)");break;case"lollipop":d.attr("marker-start","url("+y+"#"+a+"-lollipopStart)");break}switch(e.arrowTypeEnd){case"arrow_cross":d.attr("marker-end","url("+y+"#"+a+"-crossEnd)");break;case"arrow_point":d.attr("marker-end","url("+y+"#"+a+"-pointEnd)");break;case"arrow_barb":d.attr("marker-end","url("+y+"#"+a+"-barbEnd)");break;case"arrow_circle":d.attr("marker-end","url("+y+"#"+a+"-circleEnd)");break;case"aggregation":d.attr("marker-end","url("+y+"#"+a+"-aggregationEnd)");break;case"extension":d.attr("marker-end","url("+y+"#"+a+"-extensionEnd)");break;case"composition":d.attr("marker-end","url("+y+"#"+a+"-compositionEnd)");break;case"dependency":d.attr("marker-end","url("+y+"#"+a+"-dependencyEnd)");break;case"lollipop":d.attr("marker-end","url("+y+"#"+a+"-lollipopEnd)");break}let g={};return l&&(g.updatedPath=i),g.originalPath=e.points,g};export{Gt as a,er as b,ir as c,sr as d,tr as e,ar as f,T as g,Lt as h,Kt as i,S as l,rr as p,Pt as s,k as u}; diff --git a/docs/assets/erDiagram-731c3598-ee47ceae.js b/docs/assets/erDiagram-731c3598-cb03c1f0.js similarity index 99% rename from docs/assets/erDiagram-731c3598-ee47ceae.js rename to docs/assets/erDiagram-731c3598-cb03c1f0.js index b972d3ee..208d89d1 100644 --- a/docs/assets/erDiagram-731c3598-ee47ceae.js +++ b/docs/assets/erDiagram-731c3598-cb03c1f0.js @@ -1,4 +1,4 @@ -import{c as V,s as xt,g as Rt,b as Ot,a as bt,z as Nt,A as Tt,m as At,l as et,B as Mt,h as st,x as vt,i as Dt,D as wt,E as It}from"./index-b4f98efc.js";import{G as St,l as Lt}from"./layout-15168dd5.js";import{l as Bt}from"./line-bade02ca.js";import"./array-9f3ba611.js";import"./path-53f90ab3.js";const Ct=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Pt(t){return typeof t=="string"&&Ct.test(t)}const T=[];for(let t=0;t<256;++t)T.push((t+256).toString(16).slice(1));function Yt(t,r=0){return(T[t[r+0]]+T[t[r+1]]+T[t[r+2]]+T[t[r+3]]+"-"+T[t[r+4]]+T[t[r+5]]+"-"+T[t[r+6]]+T[t[r+7]]+"-"+T[t[r+8]]+T[t[r+9]]+"-"+T[t[r+10]]+T[t[r+11]]+T[t[r+12]]+T[t[r+13]]+T[t[r+14]]+T[t[r+15]]).toLowerCase()}function Zt(t){if(!Pt(t))throw TypeError("Invalid UUID");let r;const e=new Uint8Array(16);return e[0]=(r=parseInt(t.slice(0,8),16))>>>24,e[1]=r>>>16&255,e[2]=r>>>8&255,e[3]=r&255,e[4]=(r=parseInt(t.slice(9,13),16))>>>8,e[5]=r&255,e[6]=(r=parseInt(t.slice(14,18),16))>>>8,e[7]=r&255,e[8]=(r=parseInt(t.slice(19,23),16))>>>8,e[9]=r&255,e[10]=(r=parseInt(t.slice(24,36),16))/1099511627776&255,e[11]=r/4294967296&255,e[12]=r>>>24&255,e[13]=r>>>16&255,e[14]=r>>>8&255,e[15]=r&255,e}function Ft(t){t=unescape(encodeURIComponent(t));const r=[];for(let e=0;e>>32-r}function Ht(t){const r=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const f=unescape(encodeURIComponent(t));t=[];for(let o=0;o>>0;O=g,g=E,E=ot(_,30)>>>0,_=c,c=Y}e[0]=e[0]+c>>>0,e[1]=e[1]+_>>>0,e[2]=e[2]+E>>>0,e[3]=e[3]+g>>>0,e[4]=e[4]+O>>>0}return[e[0]>>24&255,e[0]>>16&255,e[0]>>8&255,e[0]&255,e[1]>>24&255,e[1]>>16&255,e[1]>>8&255,e[1]&255,e[2]>>24&255,e[2]>>16&255,e[2]>>8&255,e[2]&255,e[3]>>24&255,e[3]>>16&255,e[3]>>8&255,e[3]&255,e[4]>>24&255,e[4]>>16&255,e[4]>>8&255,e[4]&255]}const Gt=Ut("v5",80,Ht),Kt=Gt;var ct=function(){var t=function(M,a,l,d){for(l=l||{},d=M.length;d--;l[M[d]]=a);return l},r=[1,2],e=[1,5],n=[6,9,11,23,25,27,29,30,31,52],s=[1,17],p=[1,18],f=[1,19],o=[1,20],c=[1,21],_=[1,22],E=[1,25],g=[1,30],O=[1,31],y=[1,32],A=[1,33],Y=[1,34],U=[6,9,11,15,20,23,25,27,29,30,31,44,45,46,47,48,52],X=[1,46],I=[30,31,49,50],N=[4,6,9,11,23,25,27,29,30,31,52],v=[44,45,46,47,48],k=[22,37],x=[1,66],P=[1,65],Z=[22,37,39,41],w={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,BLOCK_START:20,attributes:21,BLOCK_STOP:22,title:23,title_value:24,acc_title:25,acc_title_value:26,acc_descr:27,acc_descr_value:28,acc_descr_multiline_value:29,ALPHANUM:30,ENTITY_NAME:31,attribute:32,attributeType:33,attributeName:34,attributeKeyTypeList:35,attributeComment:36,ATTRIBUTE_WORD:37,attributeKeyType:38,COMMA:39,ATTRIBUTE_KEY:40,COMMENT:41,cardinality:42,relType:43,ZERO_OR_ONE:44,ZERO_OR_MORE:45,ONE_OR_MORE:46,ONLY_ONE:47,MD_PARENT:48,NON_IDENTIFYING:49,IDENTIFYING:50,WORD:51,open_directive:52,type_directive:53,arg_directive:54,close_directive:55,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"BLOCK_START",22:"BLOCK_STOP",23:"title",24:"title_value",25:"acc_title",26:"acc_title_value",27:"acc_descr",28:"acc_descr_value",29:"acc_descr_multiline_value",30:"ALPHANUM",31:"ENTITY_NAME",37:"ATTRIBUTE_WORD",39:"COMMA",40:"ATTRIBUTE_KEY",41:"COMMENT",44:"ZERO_OR_ONE",45:"ZERO_OR_MORE",46:"ONE_OR_MORE",47:"ONLY_ONE",48:"MD_PARENT",49:"NON_IDENTIFYING",50:"IDENTIFYING",51:"WORD",52:"open_directive",53:"type_directive",54:"arg_directive",55:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[10,4],[10,3],[10,1],[10,2],[10,2],[10,2],[10,1],[17,1],[17,1],[21,1],[21,2],[32,2],[32,3],[32,3],[32,4],[33,1],[34,1],[35,1],[35,3],[38,1],[36,1],[18,3],[42,1],[42,1],[42,1],[42,1],[42,1],[43,1],[43,1],[19,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(a,l,d,u,m,i,Q){var h=i.length-1;switch(m){case 1:break;case 3:this.$=[];break;case 4:i[h-1].push(i[h]),this.$=i[h-1];break;case 5:case 6:this.$=i[h];break;case 7:case 8:this.$=[];break;case 12:u.addEntity(i[h-4]),u.addEntity(i[h-2]),u.addRelationship(i[h-4],i[h],i[h-2],i[h-3]);break;case 13:u.addEntity(i[h-3]),u.addAttributes(i[h-3],i[h-1]);break;case 14:u.addEntity(i[h-2]);break;case 15:u.addEntity(i[h]);break;case 16:case 17:this.$=i[h].trim(),u.setAccTitle(this.$);break;case 18:case 19:this.$=i[h].trim(),u.setAccDescription(this.$);break;case 20:case 44:this.$=i[h];break;case 21:case 42:case 43:this.$=i[h].replace(/"/g,"");break;case 22:case 30:this.$=[i[h]];break;case 23:i[h].push(i[h-1]),this.$=i[h];break;case 24:this.$={attributeType:i[h-1],attributeName:i[h]};break;case 25:this.$={attributeType:i[h-2],attributeName:i[h-1],attributeKeyTypeList:i[h]};break;case 26:this.$={attributeType:i[h-2],attributeName:i[h-1],attributeComment:i[h]};break;case 27:this.$={attributeType:i[h-3],attributeName:i[h-2],attributeKeyTypeList:i[h-1],attributeComment:i[h]};break;case 28:case 29:case 32:this.$=i[h];break;case 31:i[h-2].push(i[h]),this.$=i[h-2];break;case 33:this.$=i[h].replace(/"/g,"");break;case 34:this.$={cardA:i[h],relType:i[h-1],cardB:i[h-2]};break;case 35:this.$=u.Cardinality.ZERO_OR_ONE;break;case 36:this.$=u.Cardinality.ZERO_OR_MORE;break;case 37:this.$=u.Cardinality.ONE_OR_MORE;break;case 38:this.$=u.Cardinality.ONLY_ONE;break;case 39:this.$=u.Cardinality.MD_PARENT;break;case 40:this.$=u.Identification.NON_IDENTIFYING;break;case 41:this.$=u.Identification.IDENTIFYING;break;case 45:u.parseDirective("%%{","open_directive");break;case 46:u.parseDirective(i[h],"type_directive");break;case 47:i[h]=i[h].trim().replace(/'/g,'"'),u.parseDirective(i[h],"arg_directive");break;case 48:u.parseDirective("}%%","close_directive","er");break}},table:[{3:1,4:r,7:3,12:4,52:e},{1:[3]},t(n,[2,3],{5:6}),{3:7,4:r,7:3,12:4,52:e},{13:8,53:[1,9]},{53:[2,45]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:s,25:p,27:f,29:o,30:c,31:_,52:e},{1:[2,2]},{14:23,15:[1,24],55:E},t([15,55],[2,46]),t(n,[2,8],{1:[2,1]}),t(n,[2,4]),{7:15,10:26,12:4,17:16,23:s,25:p,27:f,29:o,30:c,31:_,52:e},t(n,[2,6]),t(n,[2,7]),t(n,[2,11]),t(n,[2,15],{18:27,42:29,20:[1,28],44:g,45:O,46:y,47:A,48:Y}),{24:[1,35]},{26:[1,36]},{28:[1,37]},t(n,[2,19]),t(U,[2,20]),t(U,[2,21]),{11:[1,38]},{16:39,54:[1,40]},{11:[2,48]},t(n,[2,5]),{17:41,30:c,31:_},{21:42,22:[1,43],32:44,33:45,37:X},{43:47,49:[1,48],50:[1,49]},t(I,[2,35]),t(I,[2,36]),t(I,[2,37]),t(I,[2,38]),t(I,[2,39]),t(n,[2,16]),t(n,[2,17]),t(n,[2,18]),t(N,[2,9]),{14:50,55:E},{55:[2,47]},{15:[1,51]},{22:[1,52]},t(n,[2,14]),{21:53,22:[2,22],32:44,33:45,37:X},{34:54,37:[1,55]},{37:[2,28]},{42:56,44:g,45:O,46:y,47:A,48:Y},t(v,[2,40]),t(v,[2,41]),{11:[1,57]},{19:58,30:[1,61],31:[1,60],51:[1,59]},t(n,[2,13]),{22:[2,23]},t(k,[2,24],{35:62,36:63,38:64,40:x,41:P}),t([22,37,40,41],[2,29]),t([30,31],[2,34]),t(N,[2,10]),t(n,[2,12]),t(n,[2,42]),t(n,[2,43]),t(n,[2,44]),t(k,[2,25],{36:67,39:[1,68],41:P}),t(k,[2,26]),t(Z,[2,30]),t(k,[2,33]),t(Z,[2,32]),t(k,[2,27]),{38:69,40:x},t(Z,[2,31])],defaultActions:{5:[2,45],7:[2,2],25:[2,48],40:[2,47],46:[2,28],53:[2,23]},parseError:function(a,l){if(l.recoverable)this.trace(a);else{var d=new Error(a);throw d.hash=l,d}},parse:function(a){var l=this,d=[0],u=[],m=[null],i=[],Q=this.table,h="",q=0,ht=0,Et=2,dt=1,mt=i.slice.call(arguments,1),b=Object.create(this.lexer),H={yy:{}};for(var rt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,rt)&&(H.yy[rt]=this.yy[rt]);b.setInput(a,H.yy),H.yy.lexer=b,H.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var it=b.yylloc;i.push(it);var gt=b.options&&b.options.ranges;typeof H.yy.parseError=="function"?this.parseError=H.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function kt(){var W;return W=u.pop()||b.lex()||dt,typeof W!="number"&&(W instanceof Array&&(u=W,W=u.pop()),W=l.symbols_[W]||W),W}for(var D,G,L,at,K={},J,F,ut,tt;;){if(G=d[d.length-1],this.defaultActions[G]?L=this.defaultActions[G]:((D===null||typeof D>"u")&&(D=kt()),L=Q[G]&&Q[G][D]),typeof L>"u"||!L.length||!L[0]){var nt="";tt=[];for(J in Q[G])this.terminals_[J]&&J>Et&&tt.push("'"+this.terminals_[J]+"'");b.showPosition?nt="Parse error on line "+(q+1)+`: +import{c as V,s as xt,g as Rt,b as Ot,a as bt,z as Nt,A as Tt,m as At,l as et,B as Mt,h as st,x as vt,i as Dt,D as wt,E as It}from"./index-0e08498d.js";import{G as St,l as Lt}from"./layout-c97c50ff.js";import{l as Bt}from"./line-4c8e436d.js";import"./array-9f3ba611.js";import"./path-53f90ab3.js";const Ct=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Pt(t){return typeof t=="string"&&Ct.test(t)}const T=[];for(let t=0;t<256;++t)T.push((t+256).toString(16).slice(1));function Yt(t,r=0){return(T[t[r+0]]+T[t[r+1]]+T[t[r+2]]+T[t[r+3]]+"-"+T[t[r+4]]+T[t[r+5]]+"-"+T[t[r+6]]+T[t[r+7]]+"-"+T[t[r+8]]+T[t[r+9]]+"-"+T[t[r+10]]+T[t[r+11]]+T[t[r+12]]+T[t[r+13]]+T[t[r+14]]+T[t[r+15]]).toLowerCase()}function Zt(t){if(!Pt(t))throw TypeError("Invalid UUID");let r;const e=new Uint8Array(16);return e[0]=(r=parseInt(t.slice(0,8),16))>>>24,e[1]=r>>>16&255,e[2]=r>>>8&255,e[3]=r&255,e[4]=(r=parseInt(t.slice(9,13),16))>>>8,e[5]=r&255,e[6]=(r=parseInt(t.slice(14,18),16))>>>8,e[7]=r&255,e[8]=(r=parseInt(t.slice(19,23),16))>>>8,e[9]=r&255,e[10]=(r=parseInt(t.slice(24,36),16))/1099511627776&255,e[11]=r/4294967296&255,e[12]=r>>>24&255,e[13]=r>>>16&255,e[14]=r>>>8&255,e[15]=r&255,e}function Ft(t){t=unescape(encodeURIComponent(t));const r=[];for(let e=0;e>>32-r}function Ht(t){const r=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const f=unescape(encodeURIComponent(t));t=[];for(let o=0;o>>0;O=g,g=E,E=ot(_,30)>>>0,_=c,c=Y}e[0]=e[0]+c>>>0,e[1]=e[1]+_>>>0,e[2]=e[2]+E>>>0,e[3]=e[3]+g>>>0,e[4]=e[4]+O>>>0}return[e[0]>>24&255,e[0]>>16&255,e[0]>>8&255,e[0]&255,e[1]>>24&255,e[1]>>16&255,e[1]>>8&255,e[1]&255,e[2]>>24&255,e[2]>>16&255,e[2]>>8&255,e[2]&255,e[3]>>24&255,e[3]>>16&255,e[3]>>8&255,e[3]&255,e[4]>>24&255,e[4]>>16&255,e[4]>>8&255,e[4]&255]}const Gt=Ut("v5",80,Ht),Kt=Gt;var ct=function(){var t=function(M,a,l,d){for(l=l||{},d=M.length;d--;l[M[d]]=a);return l},r=[1,2],e=[1,5],n=[6,9,11,23,25,27,29,30,31,52],s=[1,17],p=[1,18],f=[1,19],o=[1,20],c=[1,21],_=[1,22],E=[1,25],g=[1,30],O=[1,31],y=[1,32],A=[1,33],Y=[1,34],U=[6,9,11,15,20,23,25,27,29,30,31,44,45,46,47,48,52],X=[1,46],I=[30,31,49,50],N=[4,6,9,11,23,25,27,29,30,31,52],v=[44,45,46,47,48],k=[22,37],x=[1,66],P=[1,65],Z=[22,37,39,41],w={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,BLOCK_START:20,attributes:21,BLOCK_STOP:22,title:23,title_value:24,acc_title:25,acc_title_value:26,acc_descr:27,acc_descr_value:28,acc_descr_multiline_value:29,ALPHANUM:30,ENTITY_NAME:31,attribute:32,attributeType:33,attributeName:34,attributeKeyTypeList:35,attributeComment:36,ATTRIBUTE_WORD:37,attributeKeyType:38,COMMA:39,ATTRIBUTE_KEY:40,COMMENT:41,cardinality:42,relType:43,ZERO_OR_ONE:44,ZERO_OR_MORE:45,ONE_OR_MORE:46,ONLY_ONE:47,MD_PARENT:48,NON_IDENTIFYING:49,IDENTIFYING:50,WORD:51,open_directive:52,type_directive:53,arg_directive:54,close_directive:55,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"BLOCK_START",22:"BLOCK_STOP",23:"title",24:"title_value",25:"acc_title",26:"acc_title_value",27:"acc_descr",28:"acc_descr_value",29:"acc_descr_multiline_value",30:"ALPHANUM",31:"ENTITY_NAME",37:"ATTRIBUTE_WORD",39:"COMMA",40:"ATTRIBUTE_KEY",41:"COMMENT",44:"ZERO_OR_ONE",45:"ZERO_OR_MORE",46:"ONE_OR_MORE",47:"ONLY_ONE",48:"MD_PARENT",49:"NON_IDENTIFYING",50:"IDENTIFYING",51:"WORD",52:"open_directive",53:"type_directive",54:"arg_directive",55:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[10,4],[10,3],[10,1],[10,2],[10,2],[10,2],[10,1],[17,1],[17,1],[21,1],[21,2],[32,2],[32,3],[32,3],[32,4],[33,1],[34,1],[35,1],[35,3],[38,1],[36,1],[18,3],[42,1],[42,1],[42,1],[42,1],[42,1],[43,1],[43,1],[19,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(a,l,d,u,m,i,Q){var h=i.length-1;switch(m){case 1:break;case 3:this.$=[];break;case 4:i[h-1].push(i[h]),this.$=i[h-1];break;case 5:case 6:this.$=i[h];break;case 7:case 8:this.$=[];break;case 12:u.addEntity(i[h-4]),u.addEntity(i[h-2]),u.addRelationship(i[h-4],i[h],i[h-2],i[h-3]);break;case 13:u.addEntity(i[h-3]),u.addAttributes(i[h-3],i[h-1]);break;case 14:u.addEntity(i[h-2]);break;case 15:u.addEntity(i[h]);break;case 16:case 17:this.$=i[h].trim(),u.setAccTitle(this.$);break;case 18:case 19:this.$=i[h].trim(),u.setAccDescription(this.$);break;case 20:case 44:this.$=i[h];break;case 21:case 42:case 43:this.$=i[h].replace(/"/g,"");break;case 22:case 30:this.$=[i[h]];break;case 23:i[h].push(i[h-1]),this.$=i[h];break;case 24:this.$={attributeType:i[h-1],attributeName:i[h]};break;case 25:this.$={attributeType:i[h-2],attributeName:i[h-1],attributeKeyTypeList:i[h]};break;case 26:this.$={attributeType:i[h-2],attributeName:i[h-1],attributeComment:i[h]};break;case 27:this.$={attributeType:i[h-3],attributeName:i[h-2],attributeKeyTypeList:i[h-1],attributeComment:i[h]};break;case 28:case 29:case 32:this.$=i[h];break;case 31:i[h-2].push(i[h]),this.$=i[h-2];break;case 33:this.$=i[h].replace(/"/g,"");break;case 34:this.$={cardA:i[h],relType:i[h-1],cardB:i[h-2]};break;case 35:this.$=u.Cardinality.ZERO_OR_ONE;break;case 36:this.$=u.Cardinality.ZERO_OR_MORE;break;case 37:this.$=u.Cardinality.ONE_OR_MORE;break;case 38:this.$=u.Cardinality.ONLY_ONE;break;case 39:this.$=u.Cardinality.MD_PARENT;break;case 40:this.$=u.Identification.NON_IDENTIFYING;break;case 41:this.$=u.Identification.IDENTIFYING;break;case 45:u.parseDirective("%%{","open_directive");break;case 46:u.parseDirective(i[h],"type_directive");break;case 47:i[h]=i[h].trim().replace(/'/g,'"'),u.parseDirective(i[h],"arg_directive");break;case 48:u.parseDirective("}%%","close_directive","er");break}},table:[{3:1,4:r,7:3,12:4,52:e},{1:[3]},t(n,[2,3],{5:6}),{3:7,4:r,7:3,12:4,52:e},{13:8,53:[1,9]},{53:[2,45]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:s,25:p,27:f,29:o,30:c,31:_,52:e},{1:[2,2]},{14:23,15:[1,24],55:E},t([15,55],[2,46]),t(n,[2,8],{1:[2,1]}),t(n,[2,4]),{7:15,10:26,12:4,17:16,23:s,25:p,27:f,29:o,30:c,31:_,52:e},t(n,[2,6]),t(n,[2,7]),t(n,[2,11]),t(n,[2,15],{18:27,42:29,20:[1,28],44:g,45:O,46:y,47:A,48:Y}),{24:[1,35]},{26:[1,36]},{28:[1,37]},t(n,[2,19]),t(U,[2,20]),t(U,[2,21]),{11:[1,38]},{16:39,54:[1,40]},{11:[2,48]},t(n,[2,5]),{17:41,30:c,31:_},{21:42,22:[1,43],32:44,33:45,37:X},{43:47,49:[1,48],50:[1,49]},t(I,[2,35]),t(I,[2,36]),t(I,[2,37]),t(I,[2,38]),t(I,[2,39]),t(n,[2,16]),t(n,[2,17]),t(n,[2,18]),t(N,[2,9]),{14:50,55:E},{55:[2,47]},{15:[1,51]},{22:[1,52]},t(n,[2,14]),{21:53,22:[2,22],32:44,33:45,37:X},{34:54,37:[1,55]},{37:[2,28]},{42:56,44:g,45:O,46:y,47:A,48:Y},t(v,[2,40]),t(v,[2,41]),{11:[1,57]},{19:58,30:[1,61],31:[1,60],51:[1,59]},t(n,[2,13]),{22:[2,23]},t(k,[2,24],{35:62,36:63,38:64,40:x,41:P}),t([22,37,40,41],[2,29]),t([30,31],[2,34]),t(N,[2,10]),t(n,[2,12]),t(n,[2,42]),t(n,[2,43]),t(n,[2,44]),t(k,[2,25],{36:67,39:[1,68],41:P}),t(k,[2,26]),t(Z,[2,30]),t(k,[2,33]),t(Z,[2,32]),t(k,[2,27]),{38:69,40:x},t(Z,[2,31])],defaultActions:{5:[2,45],7:[2,2],25:[2,48],40:[2,47],46:[2,28],53:[2,23]},parseError:function(a,l){if(l.recoverable)this.trace(a);else{var d=new Error(a);throw d.hash=l,d}},parse:function(a){var l=this,d=[0],u=[],m=[null],i=[],Q=this.table,h="",q=0,ht=0,Et=2,dt=1,mt=i.slice.call(arguments,1),b=Object.create(this.lexer),H={yy:{}};for(var rt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,rt)&&(H.yy[rt]=this.yy[rt]);b.setInput(a,H.yy),H.yy.lexer=b,H.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var it=b.yylloc;i.push(it);var gt=b.options&&b.options.ranges;typeof H.yy.parseError=="function"?this.parseError=H.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function kt(){var W;return W=u.pop()||b.lex()||dt,typeof W!="number"&&(W instanceof Array&&(u=W,W=u.pop()),W=l.symbols_[W]||W),W}for(var D,G,L,at,K={},J,F,ut,tt;;){if(G=d[d.length-1],this.defaultActions[G]?L=this.defaultActions[G]:((D===null||typeof D>"u")&&(D=kt()),L=Q[G]&&Q[G][D]),typeof L>"u"||!L.length||!L[0]){var nt="";tt=[];for(J in Q[G])this.terminals_[J]&&J>Et&&tt.push("'"+this.terminals_[J]+"'");b.showPosition?nt="Parse error on line "+(q+1)+`: `+b.showPosition()+` Expecting `+tt.join(", ")+", got '"+(this.terminals_[D]||D)+"'":nt="Parse error on line "+(q+1)+": Unexpected "+(D==dt?"end of input":"'"+(this.terminals_[D]||D)+"'"),this.parseError(nt,{text:b.match,token:this.terminals_[D]||D,line:b.yylineno,loc:it,expected:tt})}if(L[0]instanceof Array&&L.length>1)throw new Error("Parse Error: multiple actions possible at state: "+G+", token: "+D);switch(L[0]){case 1:d.push(D),m.push(b.yytext),i.push(b.yylloc),d.push(L[1]),D=null,ht=b.yyleng,h=b.yytext,q=b.yylineno,it=b.yylloc;break;case 2:if(F=this.productions_[L[1]][1],K.$=m[m.length-F],K._$={first_line:i[i.length-(F||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(F||1)].first_column,last_column:i[i.length-1].last_column},gt&&(K._$.range=[i[i.length-(F||1)].range[0],i[i.length-1].range[1]]),at=this.performAction.apply(K,[h,ht,q,H.yy,L[1],m,i].concat(mt)),typeof at<"u")return at;F&&(d=d.slice(0,-1*F*2),m=m.slice(0,-1*F),i=i.slice(0,-1*F)),d.push(this.productions_[L[1]][0]),m.push(K.$),i.push(K._$),ut=Q[d[d.length-2]][d[d.length-1]],d.push(ut);break;case 3:return!0}}return!0}},z=function(){var M={EOF:1,parseError:function(l,d){if(this.yy.parser)this.yy.parser.parseError(l,d);else throw new Error(l)},setInput:function(a,l){return this.yy=l||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var l=a.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var l=a.length,d=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),d.length-1&&(this.yylineno-=d.length-1);var m=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:d?(d.length===u.length?this.yylloc.first_column:0)+u[u.length-d.length].length-d[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[m[0],m[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),l=new Array(a.length+1).join("-");return a+this.upcomingInput()+` diff --git a/docs/assets/flowDb-9e6c6aac-a25cd141.js b/docs/assets/flowDb-9e6c6aac-32de2878.js similarity index 99% rename from docs/assets/flowDb-9e6c6aac-a25cd141.js rename to docs/assets/flowDb-9e6c6aac-32de2878.js index aa5deeca..1a0f7d6c 100644 --- a/docs/assets/flowDb-9e6c6aac-a25cd141.js +++ b/docs/assets/flowDb-9e6c6aac-32de2878.js @@ -1,4 +1,4 @@ -import{c as w2,av as Ne,s as Oe,g as Pe,a as we,b as Ue,z as Me,A as Ge,m as Ke,l as U2,x as M2,B as je,j as We,h as n2}from"./index-b4f98efc.js";var O2=function(){var e=function(H1,a,o,T){for(o=o||{},T=H1.length;T--;o[H1[T]]=a);return o},u=[1,9],i=[1,7],r=[1,6],c=[1,8],_=[1,20,21,22,23,38,44,46,48,52,67,68,88,89,90,91,92,93,97,107,108,111,113,114,120,121,122,123,124,125,126,127,128,129],B=[2,10],u1=[1,20],H=[1,21],s1=[1,22],f1=[1,23],Y1=[1,30],Q1=[1,32],X1=[1,33],s2=[1,34],q=[1,63],c1=[1,49],m1=[1,53],o2=[1,36],l2=[1,37],h2=[1,38],A2=[1,39],f2=[1,40],v1=[1,57],V1=[1,64],x1=[1,52],R1=[1,54],L1=[1,56],I1=[1,60],N1=[1,61],p2=[1,41],d2=[1,42],E2=[1,43],b2=[1,44],O1=[1,62],P1=[1,51],w1=[1,55],U1=[1,58],M1=[1,59],G1=[1,50],j2=[1,67],u2=[1,72],Q=[1,20,21,22,23,38,42,44,46,48,52,67,68,88,89,90,91,92,93,97,107,108,111,113,114,120,121,122,123,124,125,126,127,128,129],p1=[1,76],d1=[1,75],E1=[1,77],k2=[20,21,23,82,83],i1=[1,100],l=[1,105],h=[1,108],A=[1,109],r1=[1,102],f=[1,107],p=[1,110],n1=[1,103],d=[1,115],E=[1,114],b=[1,104],k=[1,106],D=[1,111],g=[1,112],F=[1,113],C=[1,116],D2=[20,21,22,23,82,83],t1=[20,21,22,23,54,82,83],Z=[20,21,22,23,40,52,54,56,58,60,62,64,66,67,68,70,72,74,75,77,82,83,93,97,107,108,111,113,114,124,125,126,127,128,129],Y=[20,21,23],W2=[20,21,23,52,67,68,82,83,93,97,107,108,111,113,114,124,125,126,127,128,129],m2=[1,12,20,21,22,23,24,38,42,44,46,48,52,67,68,88,89,90,91,92,93,97,107,108,111,113,114,120,121,122,123,124,125,126,127,128,129],i2=[52,67,68,93,97,107,108,111,113,114,124,125,126,127,128,129],S=[1,151],m=[1,159],v=[1,160],V=[1,161],x=[1,162],R=[1,146],L=[1,147],J=[1,142],$=[1,143],I=[1,154],N=[1,155],O=[1,156],P=[1,157],w=[1,158],U=[1,163],M=[1,164],G=[1,149],K=[1,152],j=[1,148],W=[1,145],v2=[20,21,22,23,38,42,44,46,48,52,67,68,88,89,90,91,92,93,97,107,108,111,113,114,120,121,122,123,124,125,126,127,128,129],Y2=[1,167],$1=[20,21,22,23,26,52,67,68,93,107,108,111,113,114,124,125,126,127,128,129],y=[20,21,22,23,24,26,38,40,41,42,52,57,59,61,63,65,67,68,69,71,73,74,76,78,82,83,88,89,90,91,92,93,94,97,107,108,111,113,114,115,116,124,125,126,127,128,129],z2=[12,21,22,24],H2=[22,108],b1=[1,252],k1=[1,247],D1=[1,248],g1=[1,256],F1=[1,253],C1=[1,250],_1=[1,249],B1=[1,251],T1=[1,254],y1=[1,255],S1=[1,257],z1=[1,275],Q2=[20,21,23,108],o1=[20,21,22,23,67,68,88,104,107,108,111,112,113,114,115],V2={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,":":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,text:39,SQS:40,SQE:41,end:42,direction:43,acc_title:44,acc_title_value:45,acc_descr:46,acc_descr_value:47,acc_descr_multiline_value:48,link:49,node:50,styledVertex:51,AMP:52,vertex:53,STYLE_SEPARATOR:54,idString:55,DOUBLECIRCLESTART:56,DOUBLECIRCLEEND:57,PS:58,PE:59,"(-":60,"-)":61,STADIUMSTART:62,STADIUMEND:63,SUBROUTINESTART:64,SUBROUTINEEND:65,VERTEX_WITH_PROPS_START:66,ALPHA:67,COLON:68,PIPE:69,CYLINDERSTART:70,CYLINDEREND:71,DIAMOND_START:72,DIAMOND_STOP:73,TAGEND:74,TRAPSTART:75,TRAPEND:76,INVTRAPSTART:77,INVTRAPEND:78,linkStatement:79,arrowText:80,TESTSTR:81,START_LINK:82,LINK:83,textToken:84,STR:85,MD_STR:86,keywords:87,STYLE:88,LINKSTYLE:89,CLASSDEF:90,CLASS:91,CLICK:92,DOWN:93,UP:94,textNoTags:95,textNoTagsToken:96,DEFAULT:97,stylesOpt:98,alphaNum:99,CALLBACKNAME:100,CALLBACKARGS:101,HREF:102,LINK_TARGET:103,HEX:104,numList:105,INTERPOLATE:106,NUM:107,COMMA:108,style:109,styleComponent:110,MINUS:111,UNIT:112,BRKT:113,DOT:114,PCT:115,TAGSTART:116,alphaNumToken:117,idStringToken:118,alphaNumStatement:119,direction_tb:120,direction_bt:121,direction_rl:122,direction_lr:123,PUNCTUATION:124,UNICODE_TEXT:125,PLUS:126,EQUALS:127,MULT:128,UNDERSCORE:129,graphCodeTokens:130,ARROW_CROSS:131,ARROW_POINT:132,ARROW_CIRCLE:133,ARROW_OPEN:134,QUOTE:135,$accept:0,$end:1},terminals_:{2:"error",10:":",12:"open_directive",13:"type_directive",14:"arg_directive",15:"close_directive",20:"SEMI",21:"NEWLINE",22:"SPACE",23:"EOF",24:"GRAPH",25:"NODIR",26:"DIR",38:"subgraph",40:"SQS",41:"SQE",42:"end",44:"acc_title",45:"acc_title_value",46:"acc_descr",47:"acc_descr_value",48:"acc_descr_multiline_value",52:"AMP",54:"STYLE_SEPARATOR",56:"DOUBLECIRCLESTART",57:"DOUBLECIRCLEEND",58:"PS",59:"PE",60:"(-",61:"-)",62:"STADIUMSTART",63:"STADIUMEND",64:"SUBROUTINESTART",65:"SUBROUTINEEND",66:"VERTEX_WITH_PROPS_START",67:"ALPHA",68:"COLON",69:"PIPE",70:"CYLINDERSTART",71:"CYLINDEREND",72:"DIAMOND_START",73:"DIAMOND_STOP",74:"TAGEND",75:"TRAPSTART",76:"TRAPEND",77:"INVTRAPSTART",78:"INVTRAPEND",81:"TESTSTR",82:"START_LINK",83:"LINK",85:"STR",86:"MD_STR",88:"STYLE",89:"LINKSTYLE",90:"CLASSDEF",91:"CLASS",92:"CLICK",93:"DOWN",94:"UP",97:"DEFAULT",100:"CALLBACKNAME",101:"CALLBACKARGS",102:"HREF",103:"LINK_TARGET",104:"HEX",106:"INTERPOLATE",107:"NUM",108:"COMMA",111:"MINUS",112:"UNIT",113:"BRKT",114:"DOT",115:"PCT",116:"TAGSTART",120:"direction_tb",121:"direction_bt",122:"direction_rl",123:"direction_lr",124:"PUNCTUATION",125:"UNICODE_TEXT",126:"PLUS",127:"EQUALS",128:"MULT",129:"UNDERSCORE",131:"ARROW_CROSS",132:"ARROW_POINT",133:"ARROW_CIRCLE",134:"ARROW_OPEN",135:"QUOTE"},productions_:[0,[3,1],[3,2],[5,4],[5,6],[6,1],[7,1],[11,1],[8,1],[4,2],[17,0],[17,2],[18,1],[18,1],[18,1],[18,1],[18,1],[16,2],[16,2],[16,2],[16,3],[28,2],[28,1],[29,1],[29,1],[29,1],[27,1],[27,1],[27,2],[31,2],[31,2],[31,1],[31,1],[30,2],[30,1],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,9],[19,6],[19,4],[19,1],[19,2],[19,2],[19,1],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[50,1],[50,5],[51,1],[51,3],[53,4],[53,4],[53,6],[53,4],[53,4],[53,4],[53,8],[53,4],[53,4],[53,4],[53,6],[53,4],[53,4],[53,4],[53,4],[53,4],[53,1],[49,2],[49,3],[49,3],[49,1],[49,3],[79,1],[80,3],[39,1],[39,2],[39,1],[39,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[95,1],[95,2],[35,5],[35,5],[36,5],[37,2],[37,4],[37,3],[37,5],[37,2],[37,4],[37,4],[37,6],[37,2],[37,4],[37,2],[37,4],[37,4],[37,6],[33,5],[33,5],[34,5],[34,5],[34,9],[34,9],[34,7],[34,7],[105,1],[105,3],[98,1],[98,3],[109,1],[109,2],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[96,1],[96,1],[96,1],[96,1],[55,1],[55,2],[99,1],[99,2],[119,1],[119,1],[119,1],[119,1],[43,1],[43,1],[43,1],[43,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[118,1],[118,1],[118,1],[118,1],[118,1],[118,1],[118,1],[118,1],[118,1],[118,1],[118,1],[118,1],[118,1],[118,1],[118,1],[118,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1]],performAction:function(a,o,T,n,X,t,r2){var s=t.length-1;switch(X){case 5:n.parseDirective("%%{","open_directive");break;case 6:n.parseDirective(t[s],"type_directive");break;case 7:t[s]=t[s].trim().replace(/'/g,'"'),n.parseDirective(t[s],"arg_directive");break;case 8:n.parseDirective("}%%","close_directive","flowchart");break;case 10:this.$=[];break;case 11:(!Array.isArray(t[s])||t[s].length>0)&&t[s-1].push(t[s]),this.$=t[s-1];break;case 12:case 98:case 154:case 156:case 157:this.$=t[s];break;case 19:n.setDirection("TB"),this.$="TB";break;case 20:n.setDirection(t[s-1]),this.$=t[s-1];break;case 35:this.$=t[s-1].nodes;break;case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 41:this.$=n.addSubGraph(t[s-6],t[s-1],t[s-4]);break;case 42:this.$=n.addSubGraph(t[s-3],t[s-1],t[s-3]);break;case 43:this.$=n.addSubGraph(void 0,t[s-1],void 0);break;case 45:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 46:case 47:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 51:n.addLink(t[s-2].stmt,t[s],t[s-1]),this.$={stmt:t[s],nodes:t[s].concat(t[s-2].nodes)};break;case 52:n.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 53:this.$={stmt:t[s-1],nodes:t[s-1]};break;case 54:this.$={stmt:t[s],nodes:t[s]};break;case 55:this.$=[t[s]];break;case 56:this.$=t[s-4].concat(t[s]);break;case 57:this.$=t[s];break;case 58:this.$=t[s-2],n.setClass(t[s-2],t[s]);break;case 59:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"square");break;case 60:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"doublecircle");break;case 61:this.$=t[s-5],n.addVertex(t[s-5],t[s-2],"circle");break;case 62:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"ellipse");break;case 63:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"stadium");break;case 64:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"subroutine");break;case 65:this.$=t[s-7],n.addVertex(t[s-7],t[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[s-5],t[s-3]]]));break;case 66:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"cylinder");break;case 67:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"round");break;case 68:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"diamond");break;case 69:this.$=t[s-5],n.addVertex(t[s-5],t[s-2],"hexagon");break;case 70:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"odd");break;case 71:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"trapezoid");break;case 72:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"inv_trapezoid");break;case 73:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"lean_right");break;case 74:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"lean_left");break;case 75:this.$=t[s],n.addVertex(t[s]);break;case 76:t[s-1].text=t[s],this.$=t[s-1];break;case 77:case 78:t[s-2].text=t[s-1],this.$=t[s-2];break;case 79:this.$=t[s];break;case 80:var l1=n.destructLink(t[s],t[s-2]);this.$={type:l1.type,stroke:l1.stroke,length:l1.length,text:t[s-1]};break;case 81:var l1=n.destructLink(t[s]);this.$={type:l1.type,stroke:l1.stroke,length:l1.length};break;case 82:this.$=t[s-1];break;case 83:this.$={text:t[s],type:"text"};break;case 84:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 85:this.$={text:t[s],type:"text"};break;case 86:this.$={text:t[s],type:"markdown"};break;case 99:case 155:this.$=t[s-1]+""+t[s];break;case 100:case 101:this.$=t[s-4],n.addClass(t[s-2],t[s]);break;case 102:this.$=t[s-4],n.setClass(t[s-2],t[s]);break;case 103:case 111:this.$=t[s-1],n.setClickEvent(t[s-1],t[s]);break;case 104:case 112:this.$=t[s-3],n.setClickEvent(t[s-3],t[s-2]),n.setTooltip(t[s-3],t[s]);break;case 105:this.$=t[s-2],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 106:this.$=t[s-4],n.setClickEvent(t[s-4],t[s-3],t[s-2]),n.setTooltip(t[s-4],t[s]);break;case 107:case 113:this.$=t[s-1],n.setLink(t[s-1],t[s]);break;case 108:case 114:this.$=t[s-3],n.setLink(t[s-3],t[s-2]),n.setTooltip(t[s-3],t[s]);break;case 109:case 115:this.$=t[s-3],n.setLink(t[s-3],t[s-2],t[s]);break;case 110:case 116:this.$=t[s-5],n.setLink(t[s-5],t[s-4],t[s]),n.setTooltip(t[s-5],t[s-2]);break;case 117:this.$=t[s-4],n.addVertex(t[s-2],void 0,void 0,t[s]);break;case 118:case 120:this.$=t[s-4],n.updateLink(t[s-2],t[s]);break;case 119:this.$=t[s-4],n.updateLink([t[s-2]],t[s]);break;case 121:this.$=t[s-8],n.updateLinkInterpolate([t[s-6]],t[s-2]),n.updateLink([t[s-6]],t[s]);break;case 122:this.$=t[s-8],n.updateLinkInterpolate(t[s-6],t[s-2]),n.updateLink(t[s-6],t[s]);break;case 123:this.$=t[s-6],n.updateLinkInterpolate([t[s-4]],t[s]);break;case 124:this.$=t[s-6],n.updateLinkInterpolate(t[s-4],t[s]);break;case 125:case 127:this.$=[t[s]];break;case 126:case 128:t[s-2].push(t[s]),this.$=t[s-2];break;case 130:this.$=t[s-1]+t[s];break;case 152:this.$=t[s];break;case 153:this.$=t[s-1]+""+t[s];break;case 158:this.$="v";break;case 159:this.$="-";break;case 160:this.$={stmt:"dir",value:"TB"};break;case 161:this.$={stmt:"dir",value:"BT"};break;case 162:this.$={stmt:"dir",value:"RL"};break;case 163:this.$={stmt:"dir",value:"LR"};break}},table:[{3:1,4:2,5:3,6:5,12:u,16:4,21:i,22:r,24:c},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:u,16:4,21:i,22:r,24:c},e(_,B,{17:11}),{7:12,13:[1,13]},{16:14,21:i,22:r,24:c},{16:15,21:i,22:r,24:c},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:u1,21:H,22:s1,23:f1,32:24,33:25,34:26,35:27,36:28,37:29,38:Y1,43:31,44:Q1,46:X1,48:s2,50:35,51:45,52:q,53:46,55:47,67:c1,68:m1,88:o2,89:l2,90:h2,91:A2,92:f2,93:v1,97:V1,107:x1,108:R1,111:L1,113:I1,114:N1,118:48,120:p2,121:d2,122:E2,123:b2,124:O1,125:P1,126:w1,127:U1,128:M1,129:G1},{8:65,10:[1,66],15:j2},e([10,15],[2,6]),e(_,[2,17]),e(_,[2,18]),e(_,[2,19]),{20:[1,69],21:[1,70],22:u2,27:68,30:71},e(Q,[2,11]),e(Q,[2,12]),e(Q,[2,13]),e(Q,[2,14]),e(Q,[2,15]),e(Q,[2,16]),{9:73,20:p1,21:d1,23:E1,49:74,79:78,82:[1,79],83:[1,80]},{9:81,20:p1,21:d1,23:E1},{9:82,20:p1,21:d1,23:E1},{9:83,20:p1,21:d1,23:E1},{9:84,20:p1,21:d1,23:E1},{9:85,20:p1,21:d1,23:E1},{9:87,20:p1,21:d1,22:[1,86],23:E1},e(Q,[2,44]),{45:[1,88]},{47:[1,89]},e(Q,[2,47]),e(k2,[2,54],{30:90,22:u2}),{22:[1,91]},{22:[1,92]},{22:[1,93]},{22:[1,94]},{26:i1,52:l,67:h,68:A,85:[1,98],93:r1,99:97,100:[1,95],102:[1,96],107:f,108:p,111:n1,113:d,114:E,117:101,119:99,124:b,125:k,126:D,127:g,128:F,129:C},e(Q,[2,160]),e(Q,[2,161]),e(Q,[2,162]),e(Q,[2,163]),e(D2,[2,55]),e(D2,[2,57],{54:[1,117]}),e(t1,[2,75],{118:130,40:[1,118],52:q,56:[1,119],58:[1,120],60:[1,121],62:[1,122],64:[1,123],66:[1,124],67:c1,68:m1,70:[1,125],72:[1,126],74:[1,127],75:[1,128],77:[1,129],93:v1,97:V1,107:x1,108:R1,111:L1,113:I1,114:N1,124:O1,125:P1,126:w1,127:U1,128:M1,129:G1}),e(Z,[2,152]),e(Z,[2,177]),e(Z,[2,178]),e(Z,[2,179]),e(Z,[2,180]),e(Z,[2,181]),e(Z,[2,182]),e(Z,[2,183]),e(Z,[2,184]),e(Z,[2,185]),e(Z,[2,186]),e(Z,[2,187]),e(Z,[2,188]),e(Z,[2,189]),e(Z,[2,190]),e(Z,[2,191]),e(Z,[2,192]),{9:131,20:p1,21:d1,23:E1},{11:132,14:[1,133]},e(Y,[2,8]),e(_,[2,20]),e(_,[2,26]),e(_,[2,27]),{21:[1,134]},e(W2,[2,34],{30:135,22:u2}),e(Q,[2,35]),{50:136,51:45,52:q,53:46,55:47,67:c1,68:m1,93:v1,97:V1,107:x1,108:R1,111:L1,113:I1,114:N1,118:48,124:O1,125:P1,126:w1,127:U1,128:M1,129:G1},e(m2,[2,48]),e(m2,[2,49]),e(m2,[2,50]),e(i2,[2,79],{80:137,69:[1,139],81:[1,138]}),{22:S,24:m,26:v,38:V,39:140,42:x,52:l,67:h,68:A,74:R,82:L,84:141,85:J,86:$,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},e([52,67,68,69,81,93,97,107,108,111,113,114,124,125,126,127,128,129],[2,81]),e(Q,[2,36]),e(Q,[2,37]),e(Q,[2,38]),e(Q,[2,39]),e(Q,[2,40]),{22:S,24:m,26:v,38:V,39:165,42:x,52:l,67:h,68:A,74:R,82:L,84:141,85:J,86:$,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},e(v2,B,{17:166}),e(Q,[2,45]),e(Q,[2,46]),e(k2,[2,53],{52:Y2}),{26:i1,52:l,67:h,68:A,93:r1,99:168,104:[1,169],107:f,108:p,111:n1,113:d,114:E,117:101,119:99,124:b,125:k,126:D,127:g,128:F,129:C},{97:[1,170],105:171,107:[1,172]},{26:i1,52:l,67:h,68:A,93:r1,97:[1,173],99:174,107:f,108:p,111:n1,113:d,114:E,117:101,119:99,124:b,125:k,126:D,127:g,128:F,129:C},{26:i1,52:l,67:h,68:A,93:r1,99:175,107:f,108:p,111:n1,113:d,114:E,117:101,119:99,124:b,125:k,126:D,127:g,128:F,129:C},e(Y,[2,103],{22:[1,176],101:[1,177]}),e(Y,[2,107],{22:[1,178]}),e(Y,[2,111],{117:101,119:180,22:[1,179],26:i1,52:l,67:h,68:A,93:r1,107:f,108:p,111:n1,113:d,114:E,124:b,125:k,126:D,127:g,128:F,129:C}),e(Y,[2,113],{22:[1,181]}),e($1,[2,154]),e($1,[2,156]),e($1,[2,157]),e($1,[2,158]),e($1,[2,159]),e(y,[2,164]),e(y,[2,165]),e(y,[2,166]),e(y,[2,167]),e(y,[2,168]),e(y,[2,169]),e(y,[2,170]),e(y,[2,171]),e(y,[2,172]),e(y,[2,173]),e(y,[2,174]),e(y,[2,175]),e(y,[2,176]),{52:q,55:182,67:c1,68:m1,93:v1,97:V1,107:x1,108:R1,111:L1,113:I1,114:N1,118:48,124:O1,125:P1,126:w1,127:U1,128:M1,129:G1},{22:S,24:m,26:v,38:V,39:183,42:x,52:l,67:h,68:A,74:R,82:L,84:141,85:J,86:$,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,39:184,42:x,52:l,67:h,68:A,74:R,82:L,84:141,85:J,86:$,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,39:186,42:x,52:l,58:[1,185],67:h,68:A,74:R,82:L,84:141,85:J,86:$,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,39:187,42:x,52:l,67:h,68:A,74:R,82:L,84:141,85:J,86:$,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,39:188,42:x,52:l,67:h,68:A,74:R,82:L,84:141,85:J,86:$,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,39:189,42:x,52:l,67:h,68:A,74:R,82:L,84:141,85:J,86:$,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{67:[1,190]},{22:S,24:m,26:v,38:V,39:191,42:x,52:l,67:h,68:A,74:R,82:L,84:141,85:J,86:$,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,39:192,42:x,52:l,67:h,68:A,72:[1,193],74:R,82:L,84:141,85:J,86:$,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,39:194,42:x,52:l,67:h,68:A,74:R,82:L,84:141,85:J,86:$,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,39:195,42:x,52:l,67:h,68:A,74:R,82:L,84:141,85:J,86:$,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,39:196,42:x,52:l,67:h,68:A,74:R,82:L,84:141,85:J,86:$,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},e(Z,[2,153]),e(z2,[2,3]),{8:197,15:j2},{15:[2,7]},e(_,[2,28]),e(W2,[2,33]),e(k2,[2,51],{30:198,22:u2}),e(i2,[2,76],{22:[1,199]}),{22:[1,200]},{22:S,24:m,26:v,38:V,39:201,42:x,52:l,67:h,68:A,74:R,82:L,84:141,85:J,86:$,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,42:x,52:l,67:h,68:A,74:R,82:L,83:[1,202],84:203,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},e(y,[2,83]),e(y,[2,85]),e(y,[2,86]),e(y,[2,142]),e(y,[2,143]),e(y,[2,144]),e(y,[2,145]),e(y,[2,146]),e(y,[2,147]),e(y,[2,148]),e(y,[2,149]),e(y,[2,150]),e(y,[2,151]),e(y,[2,87]),e(y,[2,88]),e(y,[2,89]),e(y,[2,90]),e(y,[2,91]),e(y,[2,92]),e(y,[2,93]),e(y,[2,94]),e(y,[2,95]),e(y,[2,96]),e(y,[2,97]),{9:205,20:p1,21:d1,22:S,23:E1,24:m,26:v,38:V,40:[1,204],42:x,52:l,67:h,68:A,74:R,82:L,84:203,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{18:18,19:19,20:u1,21:H,22:s1,23:f1,32:24,33:25,34:26,35:27,36:28,37:29,38:Y1,42:[1,206],43:31,44:Q1,46:X1,48:s2,50:35,51:45,52:q,53:46,55:47,67:c1,68:m1,88:o2,89:l2,90:h2,91:A2,92:f2,93:v1,97:V1,107:x1,108:R1,111:L1,113:I1,114:N1,118:48,120:p2,121:d2,122:E2,123:b2,124:O1,125:P1,126:w1,127:U1,128:M1,129:G1},{22:u2,30:207},{22:[1,208],26:i1,52:l,67:h,68:A,93:r1,107:f,108:p,111:n1,113:d,114:E,117:101,119:180,124:b,125:k,126:D,127:g,128:F,129:C},{22:[1,209]},{22:[1,210]},{22:[1,211],108:[1,212]},e(H2,[2,125]),{22:[1,213]},{22:[1,214],26:i1,52:l,67:h,68:A,93:r1,107:f,108:p,111:n1,113:d,114:E,117:101,119:180,124:b,125:k,126:D,127:g,128:F,129:C},{22:[1,215],26:i1,52:l,67:h,68:A,93:r1,107:f,108:p,111:n1,113:d,114:E,117:101,119:180,124:b,125:k,126:D,127:g,128:F,129:C},{85:[1,216]},e(Y,[2,105],{22:[1,217]}),{85:[1,218],103:[1,219]},{85:[1,220]},e($1,[2,155]),{85:[1,221],103:[1,222]},e(D2,[2,58],{118:130,52:q,67:c1,68:m1,93:v1,97:V1,107:x1,108:R1,111:L1,113:I1,114:N1,124:O1,125:P1,126:w1,127:U1,128:M1,129:G1}),{22:S,24:m,26:v,38:V,41:[1,223],42:x,52:l,67:h,68:A,74:R,82:L,84:203,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,42:x,52:l,57:[1,224],67:h,68:A,74:R,82:L,84:203,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,39:225,42:x,52:l,67:h,68:A,74:R,82:L,84:141,85:J,86:$,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,42:x,52:l,59:[1,226],67:h,68:A,74:R,82:L,84:203,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,42:x,52:l,61:[1,227],67:h,68:A,74:R,82:L,84:203,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,42:x,52:l,63:[1,228],67:h,68:A,74:R,82:L,84:203,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,42:x,52:l,65:[1,229],67:h,68:A,74:R,82:L,84:203,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{68:[1,230]},{22:S,24:m,26:v,38:V,42:x,52:l,67:h,68:A,71:[1,231],74:R,82:L,84:203,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,42:x,52:l,67:h,68:A,73:[1,232],74:R,82:L,84:203,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,39:233,42:x,52:l,67:h,68:A,74:R,82:L,84:141,85:J,86:$,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,41:[1,234],42:x,52:l,67:h,68:A,74:R,82:L,84:203,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,42:x,52:l,67:h,68:A,74:R,76:[1,235],78:[1,236],82:L,84:203,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,42:x,52:l,67:h,68:A,74:R,76:[1,238],78:[1,237],82:L,84:203,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{9:239,20:p1,21:d1,23:E1},e(k2,[2,52],{52:Y2}),e(i2,[2,78]),e(i2,[2,77]),{22:S,24:m,26:v,38:V,42:x,52:l,67:h,68:A,69:[1,240],74:R,82:L,84:203,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},e(i2,[2,80]),e(y,[2,84]),{22:S,24:m,26:v,38:V,39:241,42:x,52:l,67:h,68:A,74:R,82:L,84:141,85:J,86:$,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},e(v2,B,{17:242}),e(Q,[2,43]),{51:243,52:q,53:46,55:47,67:c1,68:m1,93:v1,97:V1,107:x1,108:R1,111:L1,113:I1,114:N1,118:48,124:O1,125:P1,126:w1,127:U1,128:M1,129:G1},{22:b1,67:k1,68:D1,88:g1,98:244,104:F1,107:C1,109:245,110:246,111:_1,112:B1,113:T1,114:y1,115:S1},{22:b1,67:k1,68:D1,88:g1,98:258,104:F1,107:C1,109:245,110:246,111:_1,112:B1,113:T1,114:y1,115:S1},{22:b1,67:k1,68:D1,88:g1,98:259,104:F1,106:[1,260],107:C1,109:245,110:246,111:_1,112:B1,113:T1,114:y1,115:S1},{22:b1,67:k1,68:D1,88:g1,98:261,104:F1,106:[1,262],107:C1,109:245,110:246,111:_1,112:B1,113:T1,114:y1,115:S1},{107:[1,263]},{22:b1,67:k1,68:D1,88:g1,98:264,104:F1,107:C1,109:245,110:246,111:_1,112:B1,113:T1,114:y1,115:S1},{22:b1,67:k1,68:D1,88:g1,98:265,104:F1,107:C1,109:245,110:246,111:_1,112:B1,113:T1,114:y1,115:S1},{26:i1,52:l,67:h,68:A,93:r1,99:266,107:f,108:p,111:n1,113:d,114:E,117:101,119:99,124:b,125:k,126:D,127:g,128:F,129:C},e(Y,[2,104]),{85:[1,267]},e(Y,[2,108],{22:[1,268]}),e(Y,[2,109]),e(Y,[2,112]),e(Y,[2,114],{22:[1,269]}),e(Y,[2,115]),e(t1,[2,59]),e(t1,[2,60]),{22:S,24:m,26:v,38:V,42:x,52:l,59:[1,270],67:h,68:A,74:R,82:L,84:203,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},e(t1,[2,67]),e(t1,[2,62]),e(t1,[2,63]),e(t1,[2,64]),{67:[1,271]},e(t1,[2,66]),e(t1,[2,68]),{22:S,24:m,26:v,38:V,42:x,52:l,67:h,68:A,73:[1,272],74:R,82:L,84:203,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},e(t1,[2,70]),e(t1,[2,71]),e(t1,[2,73]),e(t1,[2,72]),e(t1,[2,74]),e(z2,[2,4]),e([22,52,67,68,93,97,107,108,111,113,114,124,125,126,127,128,129],[2,82]),{22:S,24:m,26:v,38:V,41:[1,273],42:x,52:l,67:h,68:A,74:R,82:L,84:203,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{18:18,19:19,20:u1,21:H,22:s1,23:f1,32:24,33:25,34:26,35:27,36:28,37:29,38:Y1,42:[1,274],43:31,44:Q1,46:X1,48:s2,50:35,51:45,52:q,53:46,55:47,67:c1,68:m1,88:o2,89:l2,90:h2,91:A2,92:f2,93:v1,97:V1,107:x1,108:R1,111:L1,113:I1,114:N1,118:48,120:p2,121:d2,122:E2,123:b2,124:O1,125:P1,126:w1,127:U1,128:M1,129:G1},e(D2,[2,56]),e(Y,[2,117],{108:z1}),e(Q2,[2,127],{110:276,22:b1,67:k1,68:D1,88:g1,104:F1,107:C1,111:_1,112:B1,113:T1,114:y1,115:S1}),e(o1,[2,129]),e(o1,[2,131]),e(o1,[2,132]),e(o1,[2,133]),e(o1,[2,134]),e(o1,[2,135]),e(o1,[2,136]),e(o1,[2,137]),e(o1,[2,138]),e(o1,[2,139]),e(o1,[2,140]),e(o1,[2,141]),e(Y,[2,118],{108:z1}),e(Y,[2,119],{108:z1}),{22:[1,277]},e(Y,[2,120],{108:z1}),{22:[1,278]},e(H2,[2,126]),e(Y,[2,100],{108:z1}),e(Y,[2,101],{108:z1}),e(Y,[2,102],{117:101,119:180,26:i1,52:l,67:h,68:A,93:r1,107:f,108:p,111:n1,113:d,114:E,124:b,125:k,126:D,127:g,128:F,129:C}),e(Y,[2,106]),{103:[1,279]},{103:[1,280]},{59:[1,281]},{69:[1,282]},{73:[1,283]},{9:284,20:p1,21:d1,23:E1},e(Q,[2,42]),{22:b1,67:k1,68:D1,88:g1,104:F1,107:C1,109:285,110:246,111:_1,112:B1,113:T1,114:y1,115:S1},e(o1,[2,130]),{26:i1,52:l,67:h,68:A,93:r1,99:286,107:f,108:p,111:n1,113:d,114:E,117:101,119:99,124:b,125:k,126:D,127:g,128:F,129:C},{26:i1,52:l,67:h,68:A,93:r1,99:287,107:f,108:p,111:n1,113:d,114:E,117:101,119:99,124:b,125:k,126:D,127:g,128:F,129:C},e(Y,[2,110]),e(Y,[2,116]),e(t1,[2,61]),{22:S,24:m,26:v,38:V,39:288,42:x,52:l,67:h,68:A,74:R,82:L,84:141,85:J,86:$,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},e(t1,[2,69]),e(v2,B,{17:289}),e(Q2,[2,128],{110:276,22:b1,67:k1,68:D1,88:g1,104:F1,107:C1,111:_1,112:B1,113:T1,114:y1,115:S1}),e(Y,[2,123],{117:101,119:180,22:[1,290],26:i1,52:l,67:h,68:A,93:r1,107:f,108:p,111:n1,113:d,114:E,124:b,125:k,126:D,127:g,128:F,129:C}),e(Y,[2,124],{117:101,119:180,22:[1,291],26:i1,52:l,67:h,68:A,93:r1,107:f,108:p,111:n1,113:d,114:E,124:b,125:k,126:D,127:g,128:F,129:C}),{22:S,24:m,26:v,38:V,41:[1,292],42:x,52:l,67:h,68:A,74:R,82:L,84:203,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{18:18,19:19,20:u1,21:H,22:s1,23:f1,32:24,33:25,34:26,35:27,36:28,37:29,38:Y1,42:[1,293],43:31,44:Q1,46:X1,48:s2,50:35,51:45,52:q,53:46,55:47,67:c1,68:m1,88:o2,89:l2,90:h2,91:A2,92:f2,93:v1,97:V1,107:x1,108:R1,111:L1,113:I1,114:N1,118:48,120:p2,121:d2,122:E2,123:b2,124:O1,125:P1,126:w1,127:U1,128:M1,129:G1},{22:b1,67:k1,68:D1,88:g1,98:294,104:F1,107:C1,109:245,110:246,111:_1,112:B1,113:T1,114:y1,115:S1},{22:b1,67:k1,68:D1,88:g1,98:295,104:F1,107:C1,109:245,110:246,111:_1,112:B1,113:T1,114:y1,115:S1},e(t1,[2,65]),e(Q,[2,41]),e(Y,[2,121],{108:z1}),e(Y,[2,122],{108:z1})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],133:[2,7]},parseError:function(a,o){if(o.recoverable)this.trace(a);else{var T=new Error(a);throw T.hash=o,T}},parse:function(a){var o=this,T=[0],n=[],X=[null],t=[],r2=this.table,s="",l1=0,X2=0,xe=2,q2=1,Re=t.slice.call(arguments,1),e1=Object.create(this.lexer),q1={yy:{}};for(var R2 in this.yy)Object.prototype.hasOwnProperty.call(this.yy,R2)&&(q1.yy[R2]=this.yy[R2]);e1.setInput(a,q1.yy),q1.yy.lexer=e1,q1.yy.parser=this,typeof e1.yylloc>"u"&&(e1.yylloc={});var L2=e1.yylloc;t.push(L2);var Le=e1.options&&e1.options.ranges;typeof q1.yy.parseError=="function"?this.parseError=q1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ie(){var j1;return j1=n.pop()||e1.lex()||q2,typeof j1!="number"&&(j1 instanceof Array&&(n=j1,j1=n.pop()),j1=o.symbols_[j1]||j1),j1}for(var a1,Z1,h1,I2,e2={},g2,K1,Z2,F2;;){if(Z1=T[T.length-1],this.defaultActions[Z1]?h1=this.defaultActions[Z1]:((a1===null||typeof a1>"u")&&(a1=Ie()),h1=r2[Z1]&&r2[Z1][a1]),typeof h1>"u"||!h1.length||!h1[0]){var N2="";F2=[];for(g2 in r2[Z1])this.terminals_[g2]&&g2>xe&&F2.push("'"+this.terminals_[g2]+"'");e1.showPosition?N2="Parse error on line "+(l1+1)+`: +import{c as w2,av as Ne,s as Oe,g as Pe,a as we,b as Ue,z as Me,A as Ge,m as Ke,l as U2,x as M2,B as je,j as We,h as n2}from"./index-0e08498d.js";var O2=function(){var e=function(H1,a,o,T){for(o=o||{},T=H1.length;T--;o[H1[T]]=a);return o},u=[1,9],i=[1,7],r=[1,6],c=[1,8],_=[1,20,21,22,23,38,44,46,48,52,67,68,88,89,90,91,92,93,97,107,108,111,113,114,120,121,122,123,124,125,126,127,128,129],B=[2,10],u1=[1,20],H=[1,21],s1=[1,22],f1=[1,23],Y1=[1,30],Q1=[1,32],X1=[1,33],s2=[1,34],q=[1,63],c1=[1,49],m1=[1,53],o2=[1,36],l2=[1,37],h2=[1,38],A2=[1,39],f2=[1,40],v1=[1,57],V1=[1,64],x1=[1,52],R1=[1,54],L1=[1,56],I1=[1,60],N1=[1,61],p2=[1,41],d2=[1,42],E2=[1,43],b2=[1,44],O1=[1,62],P1=[1,51],w1=[1,55],U1=[1,58],M1=[1,59],G1=[1,50],j2=[1,67],u2=[1,72],Q=[1,20,21,22,23,38,42,44,46,48,52,67,68,88,89,90,91,92,93,97,107,108,111,113,114,120,121,122,123,124,125,126,127,128,129],p1=[1,76],d1=[1,75],E1=[1,77],k2=[20,21,23,82,83],i1=[1,100],l=[1,105],h=[1,108],A=[1,109],r1=[1,102],f=[1,107],p=[1,110],n1=[1,103],d=[1,115],E=[1,114],b=[1,104],k=[1,106],D=[1,111],g=[1,112],F=[1,113],C=[1,116],D2=[20,21,22,23,82,83],t1=[20,21,22,23,54,82,83],Z=[20,21,22,23,40,52,54,56,58,60,62,64,66,67,68,70,72,74,75,77,82,83,93,97,107,108,111,113,114,124,125,126,127,128,129],Y=[20,21,23],W2=[20,21,23,52,67,68,82,83,93,97,107,108,111,113,114,124,125,126,127,128,129],m2=[1,12,20,21,22,23,24,38,42,44,46,48,52,67,68,88,89,90,91,92,93,97,107,108,111,113,114,120,121,122,123,124,125,126,127,128,129],i2=[52,67,68,93,97,107,108,111,113,114,124,125,126,127,128,129],S=[1,151],m=[1,159],v=[1,160],V=[1,161],x=[1,162],R=[1,146],L=[1,147],J=[1,142],$=[1,143],I=[1,154],N=[1,155],O=[1,156],P=[1,157],w=[1,158],U=[1,163],M=[1,164],G=[1,149],K=[1,152],j=[1,148],W=[1,145],v2=[20,21,22,23,38,42,44,46,48,52,67,68,88,89,90,91,92,93,97,107,108,111,113,114,120,121,122,123,124,125,126,127,128,129],Y2=[1,167],$1=[20,21,22,23,26,52,67,68,93,107,108,111,113,114,124,125,126,127,128,129],y=[20,21,22,23,24,26,38,40,41,42,52,57,59,61,63,65,67,68,69,71,73,74,76,78,82,83,88,89,90,91,92,93,94,97,107,108,111,113,114,115,116,124,125,126,127,128,129],z2=[12,21,22,24],H2=[22,108],b1=[1,252],k1=[1,247],D1=[1,248],g1=[1,256],F1=[1,253],C1=[1,250],_1=[1,249],B1=[1,251],T1=[1,254],y1=[1,255],S1=[1,257],z1=[1,275],Q2=[20,21,23,108],o1=[20,21,22,23,67,68,88,104,107,108,111,112,113,114,115],V2={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,":":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,text:39,SQS:40,SQE:41,end:42,direction:43,acc_title:44,acc_title_value:45,acc_descr:46,acc_descr_value:47,acc_descr_multiline_value:48,link:49,node:50,styledVertex:51,AMP:52,vertex:53,STYLE_SEPARATOR:54,idString:55,DOUBLECIRCLESTART:56,DOUBLECIRCLEEND:57,PS:58,PE:59,"(-":60,"-)":61,STADIUMSTART:62,STADIUMEND:63,SUBROUTINESTART:64,SUBROUTINEEND:65,VERTEX_WITH_PROPS_START:66,ALPHA:67,COLON:68,PIPE:69,CYLINDERSTART:70,CYLINDEREND:71,DIAMOND_START:72,DIAMOND_STOP:73,TAGEND:74,TRAPSTART:75,TRAPEND:76,INVTRAPSTART:77,INVTRAPEND:78,linkStatement:79,arrowText:80,TESTSTR:81,START_LINK:82,LINK:83,textToken:84,STR:85,MD_STR:86,keywords:87,STYLE:88,LINKSTYLE:89,CLASSDEF:90,CLASS:91,CLICK:92,DOWN:93,UP:94,textNoTags:95,textNoTagsToken:96,DEFAULT:97,stylesOpt:98,alphaNum:99,CALLBACKNAME:100,CALLBACKARGS:101,HREF:102,LINK_TARGET:103,HEX:104,numList:105,INTERPOLATE:106,NUM:107,COMMA:108,style:109,styleComponent:110,MINUS:111,UNIT:112,BRKT:113,DOT:114,PCT:115,TAGSTART:116,alphaNumToken:117,idStringToken:118,alphaNumStatement:119,direction_tb:120,direction_bt:121,direction_rl:122,direction_lr:123,PUNCTUATION:124,UNICODE_TEXT:125,PLUS:126,EQUALS:127,MULT:128,UNDERSCORE:129,graphCodeTokens:130,ARROW_CROSS:131,ARROW_POINT:132,ARROW_CIRCLE:133,ARROW_OPEN:134,QUOTE:135,$accept:0,$end:1},terminals_:{2:"error",10:":",12:"open_directive",13:"type_directive",14:"arg_directive",15:"close_directive",20:"SEMI",21:"NEWLINE",22:"SPACE",23:"EOF",24:"GRAPH",25:"NODIR",26:"DIR",38:"subgraph",40:"SQS",41:"SQE",42:"end",44:"acc_title",45:"acc_title_value",46:"acc_descr",47:"acc_descr_value",48:"acc_descr_multiline_value",52:"AMP",54:"STYLE_SEPARATOR",56:"DOUBLECIRCLESTART",57:"DOUBLECIRCLEEND",58:"PS",59:"PE",60:"(-",61:"-)",62:"STADIUMSTART",63:"STADIUMEND",64:"SUBROUTINESTART",65:"SUBROUTINEEND",66:"VERTEX_WITH_PROPS_START",67:"ALPHA",68:"COLON",69:"PIPE",70:"CYLINDERSTART",71:"CYLINDEREND",72:"DIAMOND_START",73:"DIAMOND_STOP",74:"TAGEND",75:"TRAPSTART",76:"TRAPEND",77:"INVTRAPSTART",78:"INVTRAPEND",81:"TESTSTR",82:"START_LINK",83:"LINK",85:"STR",86:"MD_STR",88:"STYLE",89:"LINKSTYLE",90:"CLASSDEF",91:"CLASS",92:"CLICK",93:"DOWN",94:"UP",97:"DEFAULT",100:"CALLBACKNAME",101:"CALLBACKARGS",102:"HREF",103:"LINK_TARGET",104:"HEX",106:"INTERPOLATE",107:"NUM",108:"COMMA",111:"MINUS",112:"UNIT",113:"BRKT",114:"DOT",115:"PCT",116:"TAGSTART",120:"direction_tb",121:"direction_bt",122:"direction_rl",123:"direction_lr",124:"PUNCTUATION",125:"UNICODE_TEXT",126:"PLUS",127:"EQUALS",128:"MULT",129:"UNDERSCORE",131:"ARROW_CROSS",132:"ARROW_POINT",133:"ARROW_CIRCLE",134:"ARROW_OPEN",135:"QUOTE"},productions_:[0,[3,1],[3,2],[5,4],[5,6],[6,1],[7,1],[11,1],[8,1],[4,2],[17,0],[17,2],[18,1],[18,1],[18,1],[18,1],[18,1],[16,2],[16,2],[16,2],[16,3],[28,2],[28,1],[29,1],[29,1],[29,1],[27,1],[27,1],[27,2],[31,2],[31,2],[31,1],[31,1],[30,2],[30,1],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,9],[19,6],[19,4],[19,1],[19,2],[19,2],[19,1],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[50,1],[50,5],[51,1],[51,3],[53,4],[53,4],[53,6],[53,4],[53,4],[53,4],[53,8],[53,4],[53,4],[53,4],[53,6],[53,4],[53,4],[53,4],[53,4],[53,4],[53,1],[49,2],[49,3],[49,3],[49,1],[49,3],[79,1],[80,3],[39,1],[39,2],[39,1],[39,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[95,1],[95,2],[35,5],[35,5],[36,5],[37,2],[37,4],[37,3],[37,5],[37,2],[37,4],[37,4],[37,6],[37,2],[37,4],[37,2],[37,4],[37,4],[37,6],[33,5],[33,5],[34,5],[34,5],[34,9],[34,9],[34,7],[34,7],[105,1],[105,3],[98,1],[98,3],[109,1],[109,2],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[96,1],[96,1],[96,1],[96,1],[55,1],[55,2],[99,1],[99,2],[119,1],[119,1],[119,1],[119,1],[43,1],[43,1],[43,1],[43,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[118,1],[118,1],[118,1],[118,1],[118,1],[118,1],[118,1],[118,1],[118,1],[118,1],[118,1],[118,1],[118,1],[118,1],[118,1],[118,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1],[130,1]],performAction:function(a,o,T,n,X,t,r2){var s=t.length-1;switch(X){case 5:n.parseDirective("%%{","open_directive");break;case 6:n.parseDirective(t[s],"type_directive");break;case 7:t[s]=t[s].trim().replace(/'/g,'"'),n.parseDirective(t[s],"arg_directive");break;case 8:n.parseDirective("}%%","close_directive","flowchart");break;case 10:this.$=[];break;case 11:(!Array.isArray(t[s])||t[s].length>0)&&t[s-1].push(t[s]),this.$=t[s-1];break;case 12:case 98:case 154:case 156:case 157:this.$=t[s];break;case 19:n.setDirection("TB"),this.$="TB";break;case 20:n.setDirection(t[s-1]),this.$=t[s-1];break;case 35:this.$=t[s-1].nodes;break;case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 41:this.$=n.addSubGraph(t[s-6],t[s-1],t[s-4]);break;case 42:this.$=n.addSubGraph(t[s-3],t[s-1],t[s-3]);break;case 43:this.$=n.addSubGraph(void 0,t[s-1],void 0);break;case 45:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 46:case 47:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 51:n.addLink(t[s-2].stmt,t[s],t[s-1]),this.$={stmt:t[s],nodes:t[s].concat(t[s-2].nodes)};break;case 52:n.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 53:this.$={stmt:t[s-1],nodes:t[s-1]};break;case 54:this.$={stmt:t[s],nodes:t[s]};break;case 55:this.$=[t[s]];break;case 56:this.$=t[s-4].concat(t[s]);break;case 57:this.$=t[s];break;case 58:this.$=t[s-2],n.setClass(t[s-2],t[s]);break;case 59:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"square");break;case 60:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"doublecircle");break;case 61:this.$=t[s-5],n.addVertex(t[s-5],t[s-2],"circle");break;case 62:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"ellipse");break;case 63:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"stadium");break;case 64:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"subroutine");break;case 65:this.$=t[s-7],n.addVertex(t[s-7],t[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[s-5],t[s-3]]]));break;case 66:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"cylinder");break;case 67:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"round");break;case 68:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"diamond");break;case 69:this.$=t[s-5],n.addVertex(t[s-5],t[s-2],"hexagon");break;case 70:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"odd");break;case 71:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"trapezoid");break;case 72:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"inv_trapezoid");break;case 73:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"lean_right");break;case 74:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"lean_left");break;case 75:this.$=t[s],n.addVertex(t[s]);break;case 76:t[s-1].text=t[s],this.$=t[s-1];break;case 77:case 78:t[s-2].text=t[s-1],this.$=t[s-2];break;case 79:this.$=t[s];break;case 80:var l1=n.destructLink(t[s],t[s-2]);this.$={type:l1.type,stroke:l1.stroke,length:l1.length,text:t[s-1]};break;case 81:var l1=n.destructLink(t[s]);this.$={type:l1.type,stroke:l1.stroke,length:l1.length};break;case 82:this.$=t[s-1];break;case 83:this.$={text:t[s],type:"text"};break;case 84:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 85:this.$={text:t[s],type:"text"};break;case 86:this.$={text:t[s],type:"markdown"};break;case 99:case 155:this.$=t[s-1]+""+t[s];break;case 100:case 101:this.$=t[s-4],n.addClass(t[s-2],t[s]);break;case 102:this.$=t[s-4],n.setClass(t[s-2],t[s]);break;case 103:case 111:this.$=t[s-1],n.setClickEvent(t[s-1],t[s]);break;case 104:case 112:this.$=t[s-3],n.setClickEvent(t[s-3],t[s-2]),n.setTooltip(t[s-3],t[s]);break;case 105:this.$=t[s-2],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 106:this.$=t[s-4],n.setClickEvent(t[s-4],t[s-3],t[s-2]),n.setTooltip(t[s-4],t[s]);break;case 107:case 113:this.$=t[s-1],n.setLink(t[s-1],t[s]);break;case 108:case 114:this.$=t[s-3],n.setLink(t[s-3],t[s-2]),n.setTooltip(t[s-3],t[s]);break;case 109:case 115:this.$=t[s-3],n.setLink(t[s-3],t[s-2],t[s]);break;case 110:case 116:this.$=t[s-5],n.setLink(t[s-5],t[s-4],t[s]),n.setTooltip(t[s-5],t[s-2]);break;case 117:this.$=t[s-4],n.addVertex(t[s-2],void 0,void 0,t[s]);break;case 118:case 120:this.$=t[s-4],n.updateLink(t[s-2],t[s]);break;case 119:this.$=t[s-4],n.updateLink([t[s-2]],t[s]);break;case 121:this.$=t[s-8],n.updateLinkInterpolate([t[s-6]],t[s-2]),n.updateLink([t[s-6]],t[s]);break;case 122:this.$=t[s-8],n.updateLinkInterpolate(t[s-6],t[s-2]),n.updateLink(t[s-6],t[s]);break;case 123:this.$=t[s-6],n.updateLinkInterpolate([t[s-4]],t[s]);break;case 124:this.$=t[s-6],n.updateLinkInterpolate(t[s-4],t[s]);break;case 125:case 127:this.$=[t[s]];break;case 126:case 128:t[s-2].push(t[s]),this.$=t[s-2];break;case 130:this.$=t[s-1]+t[s];break;case 152:this.$=t[s];break;case 153:this.$=t[s-1]+""+t[s];break;case 158:this.$="v";break;case 159:this.$="-";break;case 160:this.$={stmt:"dir",value:"TB"};break;case 161:this.$={stmt:"dir",value:"BT"};break;case 162:this.$={stmt:"dir",value:"RL"};break;case 163:this.$={stmt:"dir",value:"LR"};break}},table:[{3:1,4:2,5:3,6:5,12:u,16:4,21:i,22:r,24:c},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:u,16:4,21:i,22:r,24:c},e(_,B,{17:11}),{7:12,13:[1,13]},{16:14,21:i,22:r,24:c},{16:15,21:i,22:r,24:c},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:u1,21:H,22:s1,23:f1,32:24,33:25,34:26,35:27,36:28,37:29,38:Y1,43:31,44:Q1,46:X1,48:s2,50:35,51:45,52:q,53:46,55:47,67:c1,68:m1,88:o2,89:l2,90:h2,91:A2,92:f2,93:v1,97:V1,107:x1,108:R1,111:L1,113:I1,114:N1,118:48,120:p2,121:d2,122:E2,123:b2,124:O1,125:P1,126:w1,127:U1,128:M1,129:G1},{8:65,10:[1,66],15:j2},e([10,15],[2,6]),e(_,[2,17]),e(_,[2,18]),e(_,[2,19]),{20:[1,69],21:[1,70],22:u2,27:68,30:71},e(Q,[2,11]),e(Q,[2,12]),e(Q,[2,13]),e(Q,[2,14]),e(Q,[2,15]),e(Q,[2,16]),{9:73,20:p1,21:d1,23:E1,49:74,79:78,82:[1,79],83:[1,80]},{9:81,20:p1,21:d1,23:E1},{9:82,20:p1,21:d1,23:E1},{9:83,20:p1,21:d1,23:E1},{9:84,20:p1,21:d1,23:E1},{9:85,20:p1,21:d1,23:E1},{9:87,20:p1,21:d1,22:[1,86],23:E1},e(Q,[2,44]),{45:[1,88]},{47:[1,89]},e(Q,[2,47]),e(k2,[2,54],{30:90,22:u2}),{22:[1,91]},{22:[1,92]},{22:[1,93]},{22:[1,94]},{26:i1,52:l,67:h,68:A,85:[1,98],93:r1,99:97,100:[1,95],102:[1,96],107:f,108:p,111:n1,113:d,114:E,117:101,119:99,124:b,125:k,126:D,127:g,128:F,129:C},e(Q,[2,160]),e(Q,[2,161]),e(Q,[2,162]),e(Q,[2,163]),e(D2,[2,55]),e(D2,[2,57],{54:[1,117]}),e(t1,[2,75],{118:130,40:[1,118],52:q,56:[1,119],58:[1,120],60:[1,121],62:[1,122],64:[1,123],66:[1,124],67:c1,68:m1,70:[1,125],72:[1,126],74:[1,127],75:[1,128],77:[1,129],93:v1,97:V1,107:x1,108:R1,111:L1,113:I1,114:N1,124:O1,125:P1,126:w1,127:U1,128:M1,129:G1}),e(Z,[2,152]),e(Z,[2,177]),e(Z,[2,178]),e(Z,[2,179]),e(Z,[2,180]),e(Z,[2,181]),e(Z,[2,182]),e(Z,[2,183]),e(Z,[2,184]),e(Z,[2,185]),e(Z,[2,186]),e(Z,[2,187]),e(Z,[2,188]),e(Z,[2,189]),e(Z,[2,190]),e(Z,[2,191]),e(Z,[2,192]),{9:131,20:p1,21:d1,23:E1},{11:132,14:[1,133]},e(Y,[2,8]),e(_,[2,20]),e(_,[2,26]),e(_,[2,27]),{21:[1,134]},e(W2,[2,34],{30:135,22:u2}),e(Q,[2,35]),{50:136,51:45,52:q,53:46,55:47,67:c1,68:m1,93:v1,97:V1,107:x1,108:R1,111:L1,113:I1,114:N1,118:48,124:O1,125:P1,126:w1,127:U1,128:M1,129:G1},e(m2,[2,48]),e(m2,[2,49]),e(m2,[2,50]),e(i2,[2,79],{80:137,69:[1,139],81:[1,138]}),{22:S,24:m,26:v,38:V,39:140,42:x,52:l,67:h,68:A,74:R,82:L,84:141,85:J,86:$,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},e([52,67,68,69,81,93,97,107,108,111,113,114,124,125,126,127,128,129],[2,81]),e(Q,[2,36]),e(Q,[2,37]),e(Q,[2,38]),e(Q,[2,39]),e(Q,[2,40]),{22:S,24:m,26:v,38:V,39:165,42:x,52:l,67:h,68:A,74:R,82:L,84:141,85:J,86:$,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},e(v2,B,{17:166}),e(Q,[2,45]),e(Q,[2,46]),e(k2,[2,53],{52:Y2}),{26:i1,52:l,67:h,68:A,93:r1,99:168,104:[1,169],107:f,108:p,111:n1,113:d,114:E,117:101,119:99,124:b,125:k,126:D,127:g,128:F,129:C},{97:[1,170],105:171,107:[1,172]},{26:i1,52:l,67:h,68:A,93:r1,97:[1,173],99:174,107:f,108:p,111:n1,113:d,114:E,117:101,119:99,124:b,125:k,126:D,127:g,128:F,129:C},{26:i1,52:l,67:h,68:A,93:r1,99:175,107:f,108:p,111:n1,113:d,114:E,117:101,119:99,124:b,125:k,126:D,127:g,128:F,129:C},e(Y,[2,103],{22:[1,176],101:[1,177]}),e(Y,[2,107],{22:[1,178]}),e(Y,[2,111],{117:101,119:180,22:[1,179],26:i1,52:l,67:h,68:A,93:r1,107:f,108:p,111:n1,113:d,114:E,124:b,125:k,126:D,127:g,128:F,129:C}),e(Y,[2,113],{22:[1,181]}),e($1,[2,154]),e($1,[2,156]),e($1,[2,157]),e($1,[2,158]),e($1,[2,159]),e(y,[2,164]),e(y,[2,165]),e(y,[2,166]),e(y,[2,167]),e(y,[2,168]),e(y,[2,169]),e(y,[2,170]),e(y,[2,171]),e(y,[2,172]),e(y,[2,173]),e(y,[2,174]),e(y,[2,175]),e(y,[2,176]),{52:q,55:182,67:c1,68:m1,93:v1,97:V1,107:x1,108:R1,111:L1,113:I1,114:N1,118:48,124:O1,125:P1,126:w1,127:U1,128:M1,129:G1},{22:S,24:m,26:v,38:V,39:183,42:x,52:l,67:h,68:A,74:R,82:L,84:141,85:J,86:$,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,39:184,42:x,52:l,67:h,68:A,74:R,82:L,84:141,85:J,86:$,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,39:186,42:x,52:l,58:[1,185],67:h,68:A,74:R,82:L,84:141,85:J,86:$,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,39:187,42:x,52:l,67:h,68:A,74:R,82:L,84:141,85:J,86:$,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,39:188,42:x,52:l,67:h,68:A,74:R,82:L,84:141,85:J,86:$,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,39:189,42:x,52:l,67:h,68:A,74:R,82:L,84:141,85:J,86:$,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{67:[1,190]},{22:S,24:m,26:v,38:V,39:191,42:x,52:l,67:h,68:A,74:R,82:L,84:141,85:J,86:$,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,39:192,42:x,52:l,67:h,68:A,72:[1,193],74:R,82:L,84:141,85:J,86:$,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,39:194,42:x,52:l,67:h,68:A,74:R,82:L,84:141,85:J,86:$,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,39:195,42:x,52:l,67:h,68:A,74:R,82:L,84:141,85:J,86:$,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,39:196,42:x,52:l,67:h,68:A,74:R,82:L,84:141,85:J,86:$,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},e(Z,[2,153]),e(z2,[2,3]),{8:197,15:j2},{15:[2,7]},e(_,[2,28]),e(W2,[2,33]),e(k2,[2,51],{30:198,22:u2}),e(i2,[2,76],{22:[1,199]}),{22:[1,200]},{22:S,24:m,26:v,38:V,39:201,42:x,52:l,67:h,68:A,74:R,82:L,84:141,85:J,86:$,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,42:x,52:l,67:h,68:A,74:R,82:L,83:[1,202],84:203,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},e(y,[2,83]),e(y,[2,85]),e(y,[2,86]),e(y,[2,142]),e(y,[2,143]),e(y,[2,144]),e(y,[2,145]),e(y,[2,146]),e(y,[2,147]),e(y,[2,148]),e(y,[2,149]),e(y,[2,150]),e(y,[2,151]),e(y,[2,87]),e(y,[2,88]),e(y,[2,89]),e(y,[2,90]),e(y,[2,91]),e(y,[2,92]),e(y,[2,93]),e(y,[2,94]),e(y,[2,95]),e(y,[2,96]),e(y,[2,97]),{9:205,20:p1,21:d1,22:S,23:E1,24:m,26:v,38:V,40:[1,204],42:x,52:l,67:h,68:A,74:R,82:L,84:203,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{18:18,19:19,20:u1,21:H,22:s1,23:f1,32:24,33:25,34:26,35:27,36:28,37:29,38:Y1,42:[1,206],43:31,44:Q1,46:X1,48:s2,50:35,51:45,52:q,53:46,55:47,67:c1,68:m1,88:o2,89:l2,90:h2,91:A2,92:f2,93:v1,97:V1,107:x1,108:R1,111:L1,113:I1,114:N1,118:48,120:p2,121:d2,122:E2,123:b2,124:O1,125:P1,126:w1,127:U1,128:M1,129:G1},{22:u2,30:207},{22:[1,208],26:i1,52:l,67:h,68:A,93:r1,107:f,108:p,111:n1,113:d,114:E,117:101,119:180,124:b,125:k,126:D,127:g,128:F,129:C},{22:[1,209]},{22:[1,210]},{22:[1,211],108:[1,212]},e(H2,[2,125]),{22:[1,213]},{22:[1,214],26:i1,52:l,67:h,68:A,93:r1,107:f,108:p,111:n1,113:d,114:E,117:101,119:180,124:b,125:k,126:D,127:g,128:F,129:C},{22:[1,215],26:i1,52:l,67:h,68:A,93:r1,107:f,108:p,111:n1,113:d,114:E,117:101,119:180,124:b,125:k,126:D,127:g,128:F,129:C},{85:[1,216]},e(Y,[2,105],{22:[1,217]}),{85:[1,218],103:[1,219]},{85:[1,220]},e($1,[2,155]),{85:[1,221],103:[1,222]},e(D2,[2,58],{118:130,52:q,67:c1,68:m1,93:v1,97:V1,107:x1,108:R1,111:L1,113:I1,114:N1,124:O1,125:P1,126:w1,127:U1,128:M1,129:G1}),{22:S,24:m,26:v,38:V,41:[1,223],42:x,52:l,67:h,68:A,74:R,82:L,84:203,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,42:x,52:l,57:[1,224],67:h,68:A,74:R,82:L,84:203,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,39:225,42:x,52:l,67:h,68:A,74:R,82:L,84:141,85:J,86:$,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,42:x,52:l,59:[1,226],67:h,68:A,74:R,82:L,84:203,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,42:x,52:l,61:[1,227],67:h,68:A,74:R,82:L,84:203,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,42:x,52:l,63:[1,228],67:h,68:A,74:R,82:L,84:203,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,42:x,52:l,65:[1,229],67:h,68:A,74:R,82:L,84:203,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{68:[1,230]},{22:S,24:m,26:v,38:V,42:x,52:l,67:h,68:A,71:[1,231],74:R,82:L,84:203,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,42:x,52:l,67:h,68:A,73:[1,232],74:R,82:L,84:203,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,39:233,42:x,52:l,67:h,68:A,74:R,82:L,84:141,85:J,86:$,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,41:[1,234],42:x,52:l,67:h,68:A,74:R,82:L,84:203,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,42:x,52:l,67:h,68:A,74:R,76:[1,235],78:[1,236],82:L,84:203,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{22:S,24:m,26:v,38:V,42:x,52:l,67:h,68:A,74:R,76:[1,238],78:[1,237],82:L,84:203,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{9:239,20:p1,21:d1,23:E1},e(k2,[2,52],{52:Y2}),e(i2,[2,78]),e(i2,[2,77]),{22:S,24:m,26:v,38:V,42:x,52:l,67:h,68:A,69:[1,240],74:R,82:L,84:203,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},e(i2,[2,80]),e(y,[2,84]),{22:S,24:m,26:v,38:V,39:241,42:x,52:l,67:h,68:A,74:R,82:L,84:141,85:J,86:$,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},e(v2,B,{17:242}),e(Q,[2,43]),{51:243,52:q,53:46,55:47,67:c1,68:m1,93:v1,97:V1,107:x1,108:R1,111:L1,113:I1,114:N1,118:48,124:O1,125:P1,126:w1,127:U1,128:M1,129:G1},{22:b1,67:k1,68:D1,88:g1,98:244,104:F1,107:C1,109:245,110:246,111:_1,112:B1,113:T1,114:y1,115:S1},{22:b1,67:k1,68:D1,88:g1,98:258,104:F1,107:C1,109:245,110:246,111:_1,112:B1,113:T1,114:y1,115:S1},{22:b1,67:k1,68:D1,88:g1,98:259,104:F1,106:[1,260],107:C1,109:245,110:246,111:_1,112:B1,113:T1,114:y1,115:S1},{22:b1,67:k1,68:D1,88:g1,98:261,104:F1,106:[1,262],107:C1,109:245,110:246,111:_1,112:B1,113:T1,114:y1,115:S1},{107:[1,263]},{22:b1,67:k1,68:D1,88:g1,98:264,104:F1,107:C1,109:245,110:246,111:_1,112:B1,113:T1,114:y1,115:S1},{22:b1,67:k1,68:D1,88:g1,98:265,104:F1,107:C1,109:245,110:246,111:_1,112:B1,113:T1,114:y1,115:S1},{26:i1,52:l,67:h,68:A,93:r1,99:266,107:f,108:p,111:n1,113:d,114:E,117:101,119:99,124:b,125:k,126:D,127:g,128:F,129:C},e(Y,[2,104]),{85:[1,267]},e(Y,[2,108],{22:[1,268]}),e(Y,[2,109]),e(Y,[2,112]),e(Y,[2,114],{22:[1,269]}),e(Y,[2,115]),e(t1,[2,59]),e(t1,[2,60]),{22:S,24:m,26:v,38:V,42:x,52:l,59:[1,270],67:h,68:A,74:R,82:L,84:203,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},e(t1,[2,67]),e(t1,[2,62]),e(t1,[2,63]),e(t1,[2,64]),{67:[1,271]},e(t1,[2,66]),e(t1,[2,68]),{22:S,24:m,26:v,38:V,42:x,52:l,67:h,68:A,73:[1,272],74:R,82:L,84:203,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},e(t1,[2,70]),e(t1,[2,71]),e(t1,[2,73]),e(t1,[2,72]),e(t1,[2,74]),e(z2,[2,4]),e([22,52,67,68,93,97,107,108,111,113,114,124,125,126,127,128,129],[2,82]),{22:S,24:m,26:v,38:V,41:[1,273],42:x,52:l,67:h,68:A,74:R,82:L,84:203,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{18:18,19:19,20:u1,21:H,22:s1,23:f1,32:24,33:25,34:26,35:27,36:28,37:29,38:Y1,42:[1,274],43:31,44:Q1,46:X1,48:s2,50:35,51:45,52:q,53:46,55:47,67:c1,68:m1,88:o2,89:l2,90:h2,91:A2,92:f2,93:v1,97:V1,107:x1,108:R1,111:L1,113:I1,114:N1,118:48,120:p2,121:d2,122:E2,123:b2,124:O1,125:P1,126:w1,127:U1,128:M1,129:G1},e(D2,[2,56]),e(Y,[2,117],{108:z1}),e(Q2,[2,127],{110:276,22:b1,67:k1,68:D1,88:g1,104:F1,107:C1,111:_1,112:B1,113:T1,114:y1,115:S1}),e(o1,[2,129]),e(o1,[2,131]),e(o1,[2,132]),e(o1,[2,133]),e(o1,[2,134]),e(o1,[2,135]),e(o1,[2,136]),e(o1,[2,137]),e(o1,[2,138]),e(o1,[2,139]),e(o1,[2,140]),e(o1,[2,141]),e(Y,[2,118],{108:z1}),e(Y,[2,119],{108:z1}),{22:[1,277]},e(Y,[2,120],{108:z1}),{22:[1,278]},e(H2,[2,126]),e(Y,[2,100],{108:z1}),e(Y,[2,101],{108:z1}),e(Y,[2,102],{117:101,119:180,26:i1,52:l,67:h,68:A,93:r1,107:f,108:p,111:n1,113:d,114:E,124:b,125:k,126:D,127:g,128:F,129:C}),e(Y,[2,106]),{103:[1,279]},{103:[1,280]},{59:[1,281]},{69:[1,282]},{73:[1,283]},{9:284,20:p1,21:d1,23:E1},e(Q,[2,42]),{22:b1,67:k1,68:D1,88:g1,104:F1,107:C1,109:285,110:246,111:_1,112:B1,113:T1,114:y1,115:S1},e(o1,[2,130]),{26:i1,52:l,67:h,68:A,93:r1,99:286,107:f,108:p,111:n1,113:d,114:E,117:101,119:99,124:b,125:k,126:D,127:g,128:F,129:C},{26:i1,52:l,67:h,68:A,93:r1,99:287,107:f,108:p,111:n1,113:d,114:E,117:101,119:99,124:b,125:k,126:D,127:g,128:F,129:C},e(Y,[2,110]),e(Y,[2,116]),e(t1,[2,61]),{22:S,24:m,26:v,38:V,39:288,42:x,52:l,67:h,68:A,74:R,82:L,84:141,85:J,86:$,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},e(t1,[2,69]),e(v2,B,{17:289}),e(Q2,[2,128],{110:276,22:b1,67:k1,68:D1,88:g1,104:F1,107:C1,111:_1,112:B1,113:T1,114:y1,115:S1}),e(Y,[2,123],{117:101,119:180,22:[1,290],26:i1,52:l,67:h,68:A,93:r1,107:f,108:p,111:n1,113:d,114:E,124:b,125:k,126:D,127:g,128:F,129:C}),e(Y,[2,124],{117:101,119:180,22:[1,291],26:i1,52:l,67:h,68:A,93:r1,107:f,108:p,111:n1,113:d,114:E,124:b,125:k,126:D,127:g,128:F,129:C}),{22:S,24:m,26:v,38:V,41:[1,292],42:x,52:l,67:h,68:A,74:R,82:L,84:203,87:153,88:I,89:N,90:O,91:P,92:w,93:U,94:M,96:144,97:G,107:f,108:p,111:K,113:d,114:E,115:j,116:W,117:150,124:b,125:k,126:D,127:g,128:F,129:C},{18:18,19:19,20:u1,21:H,22:s1,23:f1,32:24,33:25,34:26,35:27,36:28,37:29,38:Y1,42:[1,293],43:31,44:Q1,46:X1,48:s2,50:35,51:45,52:q,53:46,55:47,67:c1,68:m1,88:o2,89:l2,90:h2,91:A2,92:f2,93:v1,97:V1,107:x1,108:R1,111:L1,113:I1,114:N1,118:48,120:p2,121:d2,122:E2,123:b2,124:O1,125:P1,126:w1,127:U1,128:M1,129:G1},{22:b1,67:k1,68:D1,88:g1,98:294,104:F1,107:C1,109:245,110:246,111:_1,112:B1,113:T1,114:y1,115:S1},{22:b1,67:k1,68:D1,88:g1,98:295,104:F1,107:C1,109:245,110:246,111:_1,112:B1,113:T1,114:y1,115:S1},e(t1,[2,65]),e(Q,[2,41]),e(Y,[2,121],{108:z1}),e(Y,[2,122],{108:z1})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],133:[2,7]},parseError:function(a,o){if(o.recoverable)this.trace(a);else{var T=new Error(a);throw T.hash=o,T}},parse:function(a){var o=this,T=[0],n=[],X=[null],t=[],r2=this.table,s="",l1=0,X2=0,xe=2,q2=1,Re=t.slice.call(arguments,1),e1=Object.create(this.lexer),q1={yy:{}};for(var R2 in this.yy)Object.prototype.hasOwnProperty.call(this.yy,R2)&&(q1.yy[R2]=this.yy[R2]);e1.setInput(a,q1.yy),q1.yy.lexer=e1,q1.yy.parser=this,typeof e1.yylloc>"u"&&(e1.yylloc={});var L2=e1.yylloc;t.push(L2);var Le=e1.options&&e1.options.ranges;typeof q1.yy.parseError=="function"?this.parseError=q1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ie(){var j1;return j1=n.pop()||e1.lex()||q2,typeof j1!="number"&&(j1 instanceof Array&&(n=j1,j1=n.pop()),j1=o.symbols_[j1]||j1),j1}for(var a1,Z1,h1,I2,e2={},g2,K1,Z2,F2;;){if(Z1=T[T.length-1],this.defaultActions[Z1]?h1=this.defaultActions[Z1]:((a1===null||typeof a1>"u")&&(a1=Ie()),h1=r2[Z1]&&r2[Z1][a1]),typeof h1>"u"||!h1.length||!h1[0]){var N2="";F2=[];for(g2 in r2[Z1])this.terminals_[g2]&&g2>xe&&F2.push("'"+this.terminals_[g2]+"'");e1.showPosition?N2="Parse error on line "+(l1+1)+`: `+e1.showPosition()+` Expecting `+F2.join(", ")+", got '"+(this.terminals_[a1]||a1)+"'":N2="Parse error on line "+(l1+1)+": Unexpected "+(a1==q2?"end of input":"'"+(this.terminals_[a1]||a1)+"'"),this.parseError(N2,{text:e1.match,token:this.terminals_[a1]||a1,line:e1.yylineno,loc:L2,expected:F2})}if(h1[0]instanceof Array&&h1.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Z1+", token: "+a1);switch(h1[0]){case 1:T.push(a1),X.push(e1.yytext),t.push(e1.yylloc),T.push(h1[1]),a1=null,X2=e1.yyleng,s=e1.yytext,l1=e1.yylineno,L2=e1.yylloc;break;case 2:if(K1=this.productions_[h1[1]][1],e2.$=X[X.length-K1],e2._$={first_line:t[t.length-(K1||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(K1||1)].first_column,last_column:t[t.length-1].last_column},Le&&(e2._$.range=[t[t.length-(K1||1)].range[0],t[t.length-1].range[1]]),I2=this.performAction.apply(e2,[s,X2,l1,q1.yy,h1[1],X,t].concat(Re)),typeof I2<"u")return I2;K1&&(T=T.slice(0,-1*K1*2),X=X.slice(0,-1*K1),t=t.slice(0,-1*K1)),T.push(this.productions_[h1[1]][0]),X.push(e2.$),t.push(e2._$),Z2=r2[T[T.length-2]][T[T.length-1]],T.push(Z2);break;case 3:return!0}}return!0}},Ve=function(){var H1={EOF:1,parseError:function(o,T){if(this.yy.parser)this.yy.parser.parseError(o,T);else throw new Error(o)},setInput:function(a,o){return this.yy=o||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var o=a.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var o=a.length,T=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),T.length-1&&(this.yylineno-=T.length-1);var X=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:T?(T.length===n.length?this.yylloc.first_column:0)+n[n.length-T.length].length-T[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[X[0],X[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),o=new Array(a.length+1).join("-");return a+this.upcomingInput()+` diff --git a/docs/assets/flowDiagram-b66fcae9-b78fa919.js b/docs/assets/flowDiagram-b66fcae9-34873be9.js similarity index 97% rename from docs/assets/flowDiagram-b66fcae9-b78fa919.js rename to docs/assets/flowDiagram-b66fcae9-34873be9.js index 901fee5d..b4d255e0 100644 --- a/docs/assets/flowDiagram-b66fcae9-b78fa919.js +++ b/docs/assets/flowDiagram-b66fcae9-34873be9.js @@ -1,4 +1,4 @@ -import{p as St,f as W}from"./flowDb-9e6c6aac-a25cd141.js";import{h as S,u as Lt,r as Et,p as _t,l as Tt,d as D,f as tt,G as Nt}from"./layout-15168dd5.js";import{h as x,o as G,p as z,q as et,c as J,j as rt,l as I,r as V,t as At}from"./index-b4f98efc.js";import{a as N,b as at,i as nt,c as _,e as st,d as it,f as Ct,g as It}from"./styles-7882abfe-cae0a94a.js";import{l as Bt}from"./line-bade02ca.js";import{s as Mt}from"./selectAll-73b48e14.js";import"./index-1e7f2254-829de93b.js";import"./edges-66ea8538-e5136c41.js";import"./createText-a49d2d2a-a6165332.js";import"./svgDraw-95adee0a-796bbfe8.js";import"./array-9f3ba611.js";import"./path-53f90ab3.js";function Dt(r){if(!r.ok)throw new Error(r.status+" "+r.statusText);return r.text()}function Pt(r,e){return fetch(r,e).then(Dt)}function Rt(r){return(e,t)=>Pt(e,t).then(n=>new DOMParser().parseFromString(n,r))}var Gt=Rt("image/svg+xml"),Y={normal:$t,vee:Wt,undirected:Vt};function Ut(r){Y=r}function $t(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Wt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Vt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function zt(r,e){var t=r;return t.node().appendChild(e.label),N(t,e.labelStyle),t}function Yt(r,e){for(var t=r.append("text"),n=Ht(e.label).split(` +import{p as St,f as W}from"./flowDb-9e6c6aac-32de2878.js";import{h as S,u as Lt,r as Et,p as _t,l as Tt,d as D,f as tt,G as Nt}from"./layout-c97c50ff.js";import{h as x,o as G,p as z,q as et,c as J,j as rt,l as I,r as V,t as At}from"./index-0e08498d.js";import{a as N,b as at,i as nt,c as _,e as st,d as it,f as Ct,g as It}from"./styles-7882abfe-849890ab.js";import{l as Bt}from"./line-4c8e436d.js";import{s as Mt}from"./selectAll-ad8aa736.js";import"./index-1e7f2254-a4f10dcc.js";import"./edges-66ea8538-e73fd07f.js";import"./createText-a49d2d2a-b45cf165.js";import"./svgDraw-95adee0a-c0e4fe11.js";import"./array-9f3ba611.js";import"./path-53f90ab3.js";function Dt(r){if(!r.ok)throw new Error(r.status+" "+r.statusText);return r.text()}function Pt(r,e){return fetch(r,e).then(Dt)}function Rt(r){return(e,t)=>Pt(e,t).then(n=>new DOMParser().parseFromString(n,r))}var Gt=Rt("image/svg+xml"),Y={normal:$t,vee:Wt,undirected:Vt};function Ut(r){Y=r}function $t(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Wt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Vt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function zt(r,e){var t=r;return t.node().appendChild(e.label),N(t,e.labelStyle),t}function Yt(r,e){for(var t=r.append("text"),n=Ht(e.label).split(` `),a=0;a0}function T(r,e,t){var n=r.x,a=r.y,s=[],i=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY;e.forEach(function(p){i=Math.min(i,p.x),o=Math.min(o,p.y)});for(var c=n-r.width/2-i,d=a-r.height/2-o,l=0;l1&&s.sort(function(p,m){var f=p.x-t.x,y=p.y-t.y,k=Math.sqrt(f*f+y*y),B=m.x-t.x,E=m.y-t.y,U=Math.sqrt(B*B+E*E);return kMath.abs(a)*o?(s<0&&(o=-o),c=s===0?0:o*a/s,d=o):(a<0&&(i=-i),c=i,d=a===0?0:i*s/a),{x:t+c,y:n+d}}var Q={rect:ie,ellipse:oe,circle:le,diamond:ce};function se(r){Q=r}function ie(r,e,t){var n=r.insert("rect",":first-child").attr("rx",t.rx).attr("ry",t.ry).attr("x",-e.width/2).attr("y",-e.height/2).attr("width",e.width).attr("height",e.height);return t.intersect=function(a){return Z(t,a)},n}function oe(r,e,t){var n=e.width/2,a=e.height/2,s=r.insert("ellipse",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("rx",n).attr("ry",a);return t.intersect=function(i){return lt(t,n,a,i)},s}function le(r,e,t){var n=Math.max(e.width,e.height)/2,a=r.insert("circle",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("r",n);return t.intersect=function(s){return ae(t,n,s)},a}function ce(r,e,t){var n=e.width*Math.SQRT2/2,a=e.height*Math.SQRT2/2,s=[{x:0,y:-a},{x:-n,y:0},{x:0,y:a},{x:n,y:0}],i=r.insert("polygon",":first-child").attr("points",s.map(function(o){return o.x+","+o.y}).join(" "));return t.intersect=function(o){return T(t,s,o)},i}function de(){var r=function(e,t){fe(t);var n=P(e,"output"),a=P(n,"clusters"),s=P(n,"edgePaths"),i=X(P(n,"edgeLabels"),t),o=q(P(n,"nodes"),t,Q);Tt(t),re(o,t),ee(i,t),F(s,t,Y);var c=H(a,t);te(c,t),pe(t)};return r.createNodes=function(e){return arguments.length?(jt(e),r):q},r.createClusters=function(e){return arguments.length?(Xt(e),r):H},r.createEdgeLabels=function(e){return arguments.length?(Ft(e),r):X},r.createEdgePaths=function(e){return arguments.length?(qt(e),r):F},r.shapes=function(e){return arguments.length?(se(e),r):Q},r.arrows=function(e){return arguments.length?(Ut(e),r):Y},r}var he={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},ue={arrowhead:"normal",curve:G};function fe(r){r.nodes().forEach(function(e){var t=r.node(e);!S(t,"label")&&!r.children(e).length&&(t.label=e),S(t,"paddingX")&&D(t,{paddingLeft:t.paddingX,paddingRight:t.paddingX}),S(t,"paddingY")&&D(t,{paddingTop:t.paddingY,paddingBottom:t.paddingY}),S(t,"padding")&&D(t,{paddingLeft:t.padding,paddingRight:t.padding,paddingTop:t.padding,paddingBottom:t.padding}),D(t,he),tt(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(n){t[n]=Number(t[n])}),S(t,"width")&&(t._prevWidth=t.width),S(t,"height")&&(t._prevHeight=t.height)}),r.edges().forEach(function(e){var t=r.edge(e);S(t,"label")||(t.label=""),D(t,ue)})}function pe(r){tt(r.nodes(),function(e){var t=r.node(e);S(t,"_prevWidth")?t.width=t._prevWidth:delete t.width,S(t,"_prevHeight")?t.height=t._prevHeight:delete t.height,delete t._prevWidth,delete t._prevHeight})}function P(r,e){var t=r.select("g."+e);return t.empty()&&(t=r.append("g").attr("class",e)),t}function ct(r,e,t){const n=e.width,a=e.height,s=(n+a)*.9,i=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}],o=A(r,s,s,i);return t.intersect=function(c){return T(t,i,c)},o}function dt(r,e,t){const a=e.height,s=a/4,i=e.width+2*s,o=[{x:s,y:0},{x:i-s,y:0},{x:i,y:-a/2},{x:i-s,y:-a},{x:s,y:-a},{x:0,y:-a/2}],c=A(r,i,a,o);return t.intersect=function(d){return T(t,o,d)},c}function ht(r,e,t){const n=e.width,a=e.height,s=[{x:-a/2,y:0},{x:n,y:0},{x:n,y:-a},{x:-a/2,y:-a},{x:0,y:-a/2}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function ut(r,e,t){const n=e.width,a=e.height,s=[{x:-2*a/6,y:0},{x:n-a/6,y:0},{x:n+2*a/6,y:-a},{x:a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function ft(r,e,t){const n=e.width,a=e.height,s=[{x:2*a/6,y:0},{x:n+a/6,y:0},{x:n-2*a/6,y:-a},{x:-a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function pt(r,e,t){const n=e.width,a=e.height,s=[{x:-2*a/6,y:0},{x:n+2*a/6,y:0},{x:n-a/6,y:-a},{x:a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function vt(r,e,t){const n=e.width,a=e.height,s=[{x:a/6,y:0},{x:n-a/6,y:0},{x:n+2*a/6,y:-a},{x:-2*a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function yt(r,e,t){const n=e.width,a=e.height,s=[{x:0,y:0},{x:n+a/2,y:0},{x:n,y:-a/2},{x:n+a/2,y:-a},{x:0,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function gt(r,e,t){const n=e.height,a=e.width+n/4,s=r.insert("rect",":first-child").attr("rx",n/2).attr("ry",n/2).attr("x",-a/2).attr("y",-n/2).attr("width",a).attr("height",n);return t.intersect=function(i){return Z(t,i)},s}function mt(r,e,t){const n=e.width,a=e.height,s=[{x:0,y:0},{x:n,y:0},{x:n,y:-a},{x:0,y:-a},{x:0,y:0},{x:-8,y:0},{x:n+8,y:0},{x:n+8,y:-a},{x:-8,y:-a},{x:-8,y:0}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function wt(r,e,t){const n=e.width,a=n/2,s=a/(2.5+n/50),i=e.height+s,o="M 0,"+s+" a "+a+","+s+" 0,0,0 "+n+" 0 a "+a+","+s+" 0,0,0 "+-n+" 0 l 0,"+i+" a "+a+","+s+" 0,0,0 "+n+" 0 l 0,"+-i,c=r.attr("label-offset-y",s).insert("path",":first-child").attr("d",o).attr("transform","translate("+-n/2+","+-(i/2+s)+")");return t.intersect=function(d){const l=Z(t,d),v=l.x-t.x;if(a!=0&&(Math.abs(v)t.height/2-s)){let h=s*s*(1-v*v/(a*a));h!=0&&(h=Math.sqrt(h)),h=s-h,d.y-t.y>0&&(h=-h),l.y+=h}return l},c}function ve(r){r.shapes().question=ct,r.shapes().hexagon=dt,r.shapes().stadium=gt,r.shapes().subroutine=mt,r.shapes().cylinder=wt,r.shapes().rect_left_inv_arrow=ht,r.shapes().lean_right=ut,r.shapes().lean_left=ft,r.shapes().trapezoid=pt,r.shapes().inv_trapezoid=vt,r.shapes().rect_right_inv_arrow=yt}function ye(r){r({question:ct}),r({hexagon:dt}),r({stadium:gt}),r({subroutine:mt}),r({cylinder:wt}),r({rect_left_inv_arrow:ht}),r({lean_right:ut}),r({lean_left:ft}),r({trapezoid:pt}),r({inv_trapezoid:vt}),r({rect_right_inv_arrow:yt})}function A(r,e,t,n){return r.insert("polygon",":first-child").attr("points",n.map(function(a){return a.x+","+a.y}).join(" ")).attr("transform","translate("+-e/2+","+t/2+")")}const ge={addToRender:ve,addToRenderV2:ye},xt={},me=function(r){const e=Object.keys(r);for(const t of e)xt[t]=r[t]},bt=function(r,e,t,n,a,s){const i=n?n.select(`[id="${t}"]`):x(`[id="${t}"]`),o=a||document;Object.keys(r).forEach(function(d){const l=r[d];let v="default";l.classes.length>0&&(v=l.classes.join(" "));const h=z(l.styles);let u=l.text!==void 0?l.text:l.id,p;if(et(J().flowchart.htmlLabels)){const y={label:u.replace(/fa[blrs]?:fa-[\w-]+/g,k=>``)};p=at(i,y).node(),p.parentNode.removeChild(p)}else{const y=o.createElementNS("http://www.w3.org/2000/svg","text");y.setAttribute("style",h.labelStyle.replace("color:","fill:"));const k=u.split(rt.lineBreakRegex);for(const B of k){const E=o.createElementNS("http://www.w3.org/2000/svg","tspan");E.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),E.setAttribute("dy","1em"),E.setAttribute("x","1"),E.textContent=B,y.appendChild(E)}p=y}let m=0,f="";switch(l.type){case"round":m=5,f="rect";break;case"square":f="rect";break;case"diamond":f="question";break;case"hexagon":f="hexagon";break;case"odd":f="rect_left_inv_arrow";break;case"lean_right":f="lean_right";break;case"lean_left":f="lean_left";break;case"trapezoid":f="trapezoid";break;case"inv_trapezoid":f="inv_trapezoid";break;case"odd_right":f="rect_left_inv_arrow";break;case"circle":f="circle";break;case"ellipse":f="ellipse";break;case"stadium":f="stadium";break;case"subroutine":f="subroutine";break;case"cylinder":f="cylinder";break;case"group":f="rect";break;default:f="rect"}I.warn("Adding node",l.id,l.domId),e.setNode(s.db.lookUpDomId(l.id),{labelType:"svg",labelStyle:h.labelStyle,shape:f,label:p,rx:m,ry:m,class:v,style:h.style,id:s.db.lookUpDomId(l.id)})})},kt=function(r,e,t){let n=0,a,s;if(r.defaultStyle!==void 0){const i=z(r.defaultStyle);a=i.style,s=i.labelStyle}r.forEach(function(i){n++;const o="L-"+i.start+"-"+i.end,c="LS-"+i.start,d="LE-"+i.end,l={};i.type==="arrow_open"?l.arrowhead="none":l.arrowhead="normal";let v="",h="";if(i.style!==void 0){const u=z(i.style);v=u.style,h=u.labelStyle}else switch(i.stroke){case"normal":v="fill:none",a!==void 0&&(v=a),s!==void 0&&(h=s);break;case"dotted":v="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":v=" stroke-width: 3.5px;fill:none";break}l.style=v,l.labelStyle=h,i.interpolate!==void 0?l.curve=V(i.interpolate,G):r.defaultInterpolate!==void 0?l.curve=V(r.defaultInterpolate,G):l.curve=V(xt.curve,G),i.text===void 0?i.style!==void 0&&(l.arrowheadStyle="fill: #333"):(l.arrowheadStyle="fill: #333",l.labelpos="c",et(J().flowchart.htmlLabels)?(l.labelType="html",l.label=`${i.text.replace(/fa[blrs]?:fa-[\w-]+/g,u=>``)}`):(l.labelType="text",l.label=i.text.replace(rt.lineBreakRegex,` `),i.style===void 0&&(l.style=l.style||"stroke: #333; stroke-width: 1.5px;fill:none"),l.labelStyle=l.labelStyle.replace("color:","fill:"))),l.id=o,l.class=c+" "+d,l.minlen=i.length||1,e.setEdge(t.db.lookUpDomId(i.start),t.db.lookUpDomId(i.end),l,n)})},we=function(r,e){I.info("Extracting classes"),e.db.clear();try{return e.parse(r),e.db.getClasses()}catch(t){return I.error(t),{}}},xe=function(r,e,t,n){I.info("Drawing flowchart"),n.db.clear();const{securityLevel:a,flowchart:s}=J();let i;a==="sandbox"&&(i=x("#i"+e));const o=a==="sandbox"?x(i.nodes()[0].contentDocument.body):x("body"),c=a==="sandbox"?i.nodes()[0].contentDocument:document;try{n.parser.parse(r)}catch{I.debug("Parsing failed")}let d=n.db.getDirection();d===void 0&&(d="TD");const l=s.nodeSpacing||50,v=s.rankSpacing||50,h=new Nt({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:l,ranksep:v,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});let u;const p=n.db.getSubGraphs();for(let g=p.length-1;g>=0;g--)u=p[g],n.db.addVertex(u.id,u.title,"group",void 0,u.classes);const m=n.db.getVertices();I.warn("Get vertices",m);const f=n.db.getEdges();let y=0;for(y=p.length-1;y>=0;y--){u=p[y],Mt("cluster").append("text");for(let g=0;g{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,be.setConf(r.flowchart),W.clear(),W.setGen("gen-1")}};export{De as diagram}; diff --git a/docs/assets/flowDiagram-v2-fe64f300-2cc25d5b.js b/docs/assets/flowDiagram-v2-fe64f300-2cc25d5b.js deleted file mode 100644 index 5408bf8a..00000000 --- a/docs/assets/flowDiagram-v2-fe64f300-2cc25d5b.js +++ /dev/null @@ -1 +0,0 @@ -import{p as e,f as o}from"./flowDb-9e6c6aac-a25cd141.js";import{f as t,g as a}from"./styles-7882abfe-cae0a94a.js";import{u as s}from"./index-b4f98efc.js";import"./layout-15168dd5.js";import"./index-1e7f2254-829de93b.js";import"./edges-66ea8538-e5136c41.js";import"./createText-a49d2d2a-a6165332.js";import"./svgDraw-95adee0a-796bbfe8.js";import"./line-bade02ca.js";import"./array-9f3ba611.js";import"./path-53f90ab3.js";import"./selectAll-73b48e14.js";const A={parser:e,db:o,renderer:t,styles:a,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,s({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),t.setConf(r.flowchart),o.clear(),o.setGen("gen-2")}};export{A as diagram}; diff --git a/docs/assets/flowDiagram-v2-fe64f300-63afd088.js b/docs/assets/flowDiagram-v2-fe64f300-63afd088.js new file mode 100644 index 00000000..ad67a080 --- /dev/null +++ b/docs/assets/flowDiagram-v2-fe64f300-63afd088.js @@ -0,0 +1 @@ +import{p as e,f as o}from"./flowDb-9e6c6aac-32de2878.js";import{f as t,g as a}from"./styles-7882abfe-849890ab.js";import{u as s}from"./index-0e08498d.js";import"./layout-c97c50ff.js";import"./index-1e7f2254-a4f10dcc.js";import"./edges-66ea8538-e73fd07f.js";import"./createText-a49d2d2a-b45cf165.js";import"./svgDraw-95adee0a-c0e4fe11.js";import"./line-4c8e436d.js";import"./array-9f3ba611.js";import"./path-53f90ab3.js";import"./selectAll-ad8aa736.js";const A={parser:e,db:o,renderer:t,styles:a,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,s({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),t.setConf(r.flowchart),o.clear(),o.setGen("gen-2")}};export{A as diagram}; diff --git a/docs/assets/flowchart-elk-definition-ec654d50-054c6404.js b/docs/assets/flowchart-elk-definition-ec654d50-48610d4c.js similarity index 99% rename from docs/assets/flowchart-elk-definition-ec654d50-054c6404.js rename to docs/assets/flowchart-elk-definition-ec654d50-48610d4c.js index f5a678e6..86712cf5 100644 --- a/docs/assets/flowchart-elk-definition-ec654d50-054c6404.js +++ b/docs/assets/flowchart-elk-definition-ec654d50-48610d4c.js @@ -1,4 +1,4 @@ -import{d as bMe,p as wMe}from"./flowDb-9e6c6aac-a25cd141.js";import{O as Hee,P as gMe,l as K1,h as lI,c as OH,t as pMe,p as V1n,r as X1n,o as IH,j as vMe}from"./index-b4f98efc.js";import{i as mMe,a as kMe,l as yMe,b as jMe}from"./edges-66ea8538-e5136c41.js";import{l as EMe}from"./line-bade02ca.js";import"./createText-a49d2d2a-a6165332.js";import"./svgDraw-95adee0a-796bbfe8.js";import"./array-9f3ba611.js";import"./path-53f90ab3.js";function PH(Ee){throw new Error('Could not dynamically require "'+Ee+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Uee={exports:{}};(function(Ee,It){(function(ut){Ee.exports=ut()})(function(){return function(){function ut(dt,Bt,Ai){function j(Ot,qt){if(!Bt[Ot]){if(!dt[Ot]){var Ge=typeof PH=="function"&&PH;if(!qt&&Ge)return Ge(Ot,!0);if(Ht)return Ht(Ot,!0);var Ki=new Error("Cannot find module '"+Ot+"'");throw Ki.code="MODULE_NOT_FOUND",Ki}var Si=Bt[Ot]={exports:{}};dt[Ot][0].call(Si.exports,function(Mn){var Lc=dt[Ot][1][Mn];return j(Lc||Mn)},Si,Si.exports,ut,dt,Bt,Ai)}return Bt[Ot].exports}for(var Ht=typeof PH=="function"&&PH,ou=0;ou0&&arguments[0]!==void 0?arguments[0]:{},Ki=Ge.defaultLayoutOptions,Si=Ki===void 0?{}:Ki,Mn=Ge.algorithms,Lc=Mn===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:Mn,Nc=Ge.workerFactory,ps=Ge.workerUrl;if(j(this,Ot),this.defaultLayoutOptions=Si,this.initialized=!1,typeof ps>"u"&&typeof Nc>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var Rr=Nc;typeof ps<"u"&&typeof Nc>"u"&&(Rr=function(q1){return new Worker(q1)});var Ch=Rr(ps);if(typeof Ch.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new ou(Ch),this.worker.postMessage({cmd:"register",algorithms:Lc}).then(function(H1){return qt.initialized=!0}).catch(console.err)}return Ai(Ot,[{key:"layout",value:function(Ge){var Ki=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Si=Ki.layoutOptions,Mn=Si===void 0?this.defaultLayoutOptions:Si,Lc=Ki.logging,Nc=Lc===void 0?!1:Lc,ps=Ki.measureExecutionTime,Rr=ps===void 0?!1:ps;return Ge?this.worker.postMessage({cmd:"layout",graph:Ge,layoutOptions:Mn,options:{logging:Nc,measureExecutionTime:Rr}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker.terminate()}}]),Ot}();Bt.default=Ht;var ou=function(){function Ot(qt){var Ge=this;if(j(this,Ot),qt===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=qt,this.worker.onmessage=function(Ki){setTimeout(function(){Ge.receive(Ge,Ki)},0)}}return Ai(Ot,[{key:"postMessage",value:function(Ge){var Ki=this.id||0;this.id=Ki+1,Ge.id=Ki;var Si=this;return new Promise(function(Mn,Lc){Si.resolvers[Ki]=function(Nc,ps){Nc?(Si.convertGwtStyleError(Nc),Lc(Nc)):Mn(ps)},Si.worker.postMessage(Ge)})}},{key:"receive",value:function(Ge,Ki){var Si=Ki.data,Mn=Ge.resolvers[Si.id];Mn&&(delete Ge.resolvers[Si.id],Si.error?Mn(Si.error):Mn(null,Si.data))}},{key:"terminate",value:function(){this.worker.terminate&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(Ge){if(Ge){var Ki=Ge.__java$exception;Ki&&(Ki.cause&&Ki.cause.backingJsObject&&(Ge.cause=Ki.cause.backingJsObject,this.convertGwtStyleError(Ge.cause)),delete Ge.__java$exception)}}}]),Ot}()},{}],2:[function(ut,dt,Bt){(function(Ai){(function(){var j;typeof window<"u"?j=window:typeof Ai<"u"?j=Ai:typeof self<"u"&&(j=self);var Ht;function ou(){}function Ot(){}function qt(){}function Ge(){}function Ki(){}function Si(){}function Mn(){}function Lc(){}function Nc(){}function ps(){}function Rr(){}function Ch(){}function H1(){}function q1(){}function ww(){}function Np(){}function G1(){}function Th(){}function Q1n(){}function J1n(){}function zy(){}function Y1n(){}function Z1n(){}function nln(){}function eln(){}function Xg(){}function N(){}function tln(){}function aI(){}function iln(){}function rln(){}function cln(){}function uln(){}function DH(){}function sln(){}function oln(){}function fln(){}function z1(){}function U1(){}function dI(){}function hln(){}function lln(){}function aln(){}function $H(){}function dln(){}function bln(){}function Vg(){}function Qg(){}function wln(){}function gln(){}function pln(){}function vln(){}function FH(){}function W1(){}function Jg(){}function Yg(){}function mln(){}function Vee(){}function bI(){}function kln(){}function yln(){}function jln(){}function Eln(){}function Cln(){}function Tln(){}function Mln(){}function Aln(){}function Sln(){}function Pln(){}function Iln(){}function Oln(){}function Dln(){}function $ln(){}function Fln(){}function xln(){}function Lln(){}function Nln(){}function Bln(){}function Rln(){}function _ln(){}function Kln(){}function Hln(){}function qln(){}function Gln(){}function zln(){}function Uln(){}function Wln(){}function Xln(){}function Vln(){}function Qln(){}function Jln(){}function Yln(){}function xH(){}function Zln(){}function nan(){}function ean(){}function tan(){}function wI(){}function gI(){}function Uy(){}function ian(){}function ran(){}function pI(){}function can(){}function uan(){}function san(){}function Wy(){}function oan(){}function fan(){}function han(){}function lan(){}function aan(){}function dan(){}function ban(){}function wan(){}function gan(){}function LH(){}function pan(){}function van(){}function man(){}function kan(){}function yan(){}function NH(){}function jan(){}function Ean(){}function Can(){}function Tan(){}function Man(){}function Aan(){}function San(){}function Pan(){}function Ian(){}function Oan(){}function Dan(){}function $an(){}function Fan(){}function xan(){}function vI(){}function Lan(){}function Nan(){}function Ban(){}function Ran(){}function _an(){}function BH(){}function Kan(){}function Han(){}function qan(){}function Gan(){}function zan(){}function Uan(){}function Wan(){}function Xan(){}function Van(){}function Qan(){}function Jan(){}function Yan(){}function Zan(){}function ndn(){}function edn(){}function tdn(){}function idn(){}function rdn(){}function cdn(){}function udn(){}function sdn(){}function odn(){}function fdn(){}function hdn(){}function ldn(){}function adn(){}function ddn(){}function bdn(){}function wdn(){}function gdn(){}function pdn(){}function vdn(){}function mdn(){}function kdn(){}function ydn(){}function jdn(){}function Edn(){}function Cdn(){}function Tdn(){}function Mdn(){}function Adn(){}function Sdn(){}function Pdn(){}function Idn(){}function Odn(){}function Ddn(){}function $dn(){}function Fdn(){}function xdn(){}function Ldn(){}function Ndn(){}function Bdn(){}function Rdn(){}function _dn(){}function Kdn(){}function Hdn(){}function qdn(){}function Gdn(){}function zdn(){}function Udn(){}function Wdn(){}function Xdn(){}function Vdn(){}function Qdn(){}function Jdn(){}function Ydn(){}function Zdn(){}function n0n(){}function e0n(){}function t0n(){}function i0n(){}function r0n(){}function c0n(){}function u0n(){}function s0n(){}function o0n(){}function f0n(){}function h0n(){}function l0n(){}function a0n(){}function d0n(){}function b0n(){}function w0n(){}function g0n(){}function p0n(){}function v0n(){}function m0n(){}function k0n(){}function y0n(){}function j0n(){}function E0n(){}function C0n(){}function T0n(){}function M0n(){}function A0n(){}function S0n(){}function P0n(){}function I0n(){}function O0n(){}function D0n(){}function RH(){}function $0n(){}function F0n(){}function x0n(){}function L0n(){}function N0n(){}function B0n(){}function R0n(){}function _0n(){}function K0n(){}function H0n(){}function q0n(){}function G0n(){}function z0n(){}function U0n(){}function W0n(){}function X0n(){}function V0n(){}function Q0n(){}function J0n(){}function Y0n(){}function Z0n(){}function nbn(){}function ebn(){}function tbn(){}function ibn(){}function rbn(){}function cbn(){}function ubn(){}function sbn(){}function obn(){}function fbn(){}function hbn(){}function lbn(){}function abn(){}function dbn(){}function bbn(){}function wbn(){}function gbn(){}function pbn(){}function vbn(){}function mbn(){}function kbn(){}function ybn(){}function jbn(){}function Ebn(){}function Cbn(){}function Tbn(){}function Mbn(){}function Abn(){}function Sbn(){}function Pbn(){}function Ibn(){}function Obn(){}function Dbn(){}function $bn(){}function Fbn(){}function xbn(){}function Lbn(){}function Nbn(){}function Bbn(){}function Rbn(){}function _bn(){}function Kbn(){}function Hbn(){}function qbn(){}function Gbn(){}function zbn(){}function _H(){}function Ubn(){}function Wbn(){}function Xbn(){}function Vbn(){}function Qbn(){}function Jbn(){}function Ybn(){}function Zbn(){}function nwn(){}function ewn(){}function twn(){}function iwn(){}function rwn(){}function cwn(){}function uwn(){}function swn(){}function own(){}function fwn(){}function hwn(){}function lwn(){}function KH(){}function awn(){}function dwn(){}function bwn(){}function wwn(){}function gwn(){}function pwn(){}function HH(){}function qH(){}function vwn(){}function GH(){}function zH(){}function mwn(){}function kwn(){}function ywn(){}function jwn(){}function Ewn(){}function Cwn(){}function Twn(){}function Mwn(){}function Awn(){}function UH(){}function Swn(){}function Pwn(){}function Iwn(){}function Own(){}function Dwn(){}function $wn(){}function Fwn(){}function xwn(){}function Lwn(){}function Nwn(){}function Bwn(){}function Rwn(){}function _wn(){}function Kwn(){}function Hwn(){}function qwn(){}function Gwn(){}function zwn(){}function Uwn(){}function Wwn(){}function Xwn(){}function Vwn(){}function Qwn(){}function Jwn(){}function Ywn(){}function Zwn(){}function ngn(){}function egn(){}function tgn(){}function ign(){}function rgn(){}function cgn(){}function ugn(){}function sgn(){}function ogn(){}function fgn(){}function hgn(){}function lgn(){}function agn(){}function dgn(){}function bgn(){}function wgn(){}function ggn(){}function pgn(){}function vgn(){}function mgn(){}function kgn(){}function ygn(){}function jgn(){}function Egn(){}function Cgn(){}function Tgn(){}function Mgn(){}function Agn(){}function Sgn(){}function Pgn(){}function Ign(){}function Ogn(){}function Dgn(){}function $gn(){}function Fgn(){}function xgn(){}function Lgn(){}function Ngn(){}function Bgn(){}function Rgn(){}function _gn(){}function Kgn(){}function mI(){}function kI(){}function yI(){}function Hgn(){}function qgn(){}function Ggn(){}function zgn(){}function Ugn(){}function WH(){}function Wgn(){}function Xgn(){}function Qee(){}function Vgn(){}function Qgn(){}function Jgn(){}function Ygn(){}function Zgn(){}function n2n(){}function e2n(){}function Zl(){}function t2n(){}function Zg(){}function XH(){}function i2n(){}function r2n(){}function c2n(){}function u2n(){}function s2n(){}function o2n(){}function f2n(){}function h2n(){}function l2n(){}function a2n(){}function d2n(){}function b2n(){}function w2n(){}function g2n(){}function p2n(){}function v2n(){}function m2n(){}function k2n(){}function y2n(){}function j2n(){}function E2n(){}function dn(){}function C2n(){}function T2n(){}function M2n(){}function A2n(){}function S2n(){}function P2n(){}function I2n(){}function O2n(){}function D2n(){}function $2n(){}function jI(){}function F2n(){}function x2n(){}function L2n(){}function N2n(){}function B2n(){}function VH(){}function Xy(){}function Vy(){}function R2n(){}function QH(){}function Qy(){}function _2n(){}function K2n(){}function H2n(){}function q2n(){}function G2n(){}function z2n(){}function Jy(){}function U2n(){}function W2n(){}function X2n(){}function Yy(){}function V2n(){}function JH(){}function Q2n(){}function EI(){}function YH(){}function J2n(){}function Y2n(){}function Z2n(){}function npn(){}function Jee(){}function epn(){}function tpn(){}function ipn(){}function rpn(){}function cpn(){}function upn(){}function spn(){}function opn(){}function fpn(){}function hpn(){}function Bp(){}function CI(){}function lpn(){}function apn(){}function dpn(){}function bpn(){}function wpn(){}function gpn(){}function ppn(){}function vpn(){}function mpn(){}function kpn(){}function ypn(){}function jpn(){}function Epn(){}function Cpn(){}function Tpn(){}function Mpn(){}function Apn(){}function Spn(){}function Ppn(){}function Ipn(){}function Opn(){}function Dpn(){}function $pn(){}function Fpn(){}function xpn(){}function Lpn(){}function Npn(){}function Bpn(){}function Rpn(){}function _pn(){}function Kpn(){}function Hpn(){}function qpn(){}function Gpn(){}function zpn(){}function Upn(){}function Wpn(){}function Xpn(){}function Vpn(){}function Qpn(){}function Jpn(){}function Ypn(){}function Zpn(){}function n3n(){}function e3n(){}function t3n(){}function i3n(){}function r3n(){}function c3n(){}function u3n(){}function s3n(){}function o3n(){}function f3n(){}function h3n(){}function l3n(){}function a3n(){}function d3n(){}function b3n(){}function w3n(){}function g3n(){}function p3n(){}function v3n(){}function m3n(){}function k3n(){}function y3n(){}function j3n(){}function E3n(){}function C3n(){}function T3n(){}function M3n(){}function A3n(){}function S3n(){}function P3n(){}function I3n(){}function O3n(){}function D3n(){}function $3n(){}function F3n(){}function x3n(){}function L3n(){}function N3n(){}function B3n(){}function R3n(){}function _3n(){}function K3n(){}function H3n(){}function q3n(){}function G3n(){}function z3n(){}function U3n(){}function W3n(){}function X3n(){}function V3n(){}function Q3n(){}function J3n(){}function Y3n(){}function Z3n(){}function n4n(){}function e4n(){}function t4n(){}function i4n(){}function ZH(){}function r4n(){}function c4n(){}function TI(){Rv()}function u4n(){pF()}function s4n(){a6()}function o4n(){WT()}function f4n(){YJ()}function h4n(){Go()}function l4n(){fJ()}function a4n(){C7()}function d4n(){q9()}function b4n(){H9()}function w4n(){w8()}function g4n(){v7n()}function p4n(){x2()}function v4n(){Sj()}function m4n(){PSn()}function k4n(){HIn()}function y4n(){sPn()}function j4n(){CMn()}function E4n(){V3()}function C4n(){yl()}function T4n(){qIn()}function M4n(){pAn()}function A4n(){zZ()}function S4n(){IFn()}function P4n(){TMn()}function I4n(){nn()}function O4n(){EMn()}function D4n(){GIn()}function $4n(){WOn()}function F4n(){AMn()}function x4n(){aPn()}function L4n(){m7n()}function N4n(){$Y()}function B4n(){gb()}function R4n(){pOn()}function _4n(){S7()}function K4n(){Ux()}function H4n(){ZF()}function q4n(){Zd()}function G4n(){PV()}function z4n(){MMn()}function U4n(){BBn()}function W4n(){IY()}function X4n(){Bx()}function V4n(){DC()}function Q4n(){nM()}function nq(){Xe()}function J4n(){wT()}function Y4n(){NQ()}function eq(){mM()}function Fo(){dEn()}function tq(){eF()}function Z4n(){pZ()}function iq(n){_n(n)}function nvn(n){this.a=n}function Zy(n){this.a=n}function evn(n){this.a=n}function tvn(n){this.a=n}function ivn(n){this.a=n}function rvn(n){this.a=n}function cvn(n){this.a=n}function uvn(n){this.a=n}function rq(n){this.a=n}function cq(n){this.a=n}function svn(n){this.a=n}function MI(n){this.a=n}function ovn(n){this.a=n}function AI(n){this.a=n}function fvn(n){this.a=n}function SI(n){this.a=n}function hvn(n){this.a=n}function PI(n){this.a=n}function lvn(n){this.a=n}function avn(n){this.a=n}function dvn(n){this.a=n}function uq(n){this.b=n}function bvn(n){this.c=n}function wvn(n){this.a=n}function gvn(n){this.a=n}function pvn(n){this.a=n}function vvn(n){this.a=n}function mvn(n){this.a=n}function kvn(n){this.a=n}function yvn(n){this.a=n}function jvn(n){this.a=n}function Evn(n){this.a=n}function Cvn(n){this.a=n}function Tvn(n){this.a=n}function Mvn(n){this.a=n}function Avn(n){this.a=n}function sq(n){this.a=n}function oq(n){this.a=n}function nj(n){this.a=n}function M9(n){this.a=n}function na(){this.a=[]}function Svn(n,e){n.a=e}function Yee(n,e){n.a=e}function Zee(n,e){n.b=e}function nte(n,e){n.b=e}function ete(n,e){n.b=e}function fq(n,e){n.j=e}function tte(n,e){n.g=e}function ite(n,e){n.i=e}function rte(n,e){n.c=e}function cte(n,e){n.d=e}function ute(n,e){n.d=e}function ste(n,e){n.c=e}function ea(n,e){n.k=e}function ote(n,e){n.c=e}function hq(n,e){n.c=e}function lq(n,e){n.a=e}function fte(n,e){n.a=e}function hte(n,e){n.f=e}function lte(n,e){n.a=e}function ate(n,e){n.b=e}function II(n,e){n.d=e}function ej(n,e){n.i=e}function aq(n,e){n.o=e}function dte(n,e){n.r=e}function bte(n,e){n.a=e}function wte(n,e){n.b=e}function Pvn(n,e){n.e=e}function gte(n,e){n.f=e}function dq(n,e){n.g=e}function pte(n,e){n.e=e}function vte(n,e){n.f=e}function mte(n,e){n.f=e}function kte(n,e){n.n=e}function yte(n,e){n.a=e}function jte(n,e){n.a=e}function Ete(n,e){n.c=e}function Cte(n,e){n.c=e}function Tte(n,e){n.d=e}function Mte(n,e){n.e=e}function Ate(n,e){n.g=e}function Ste(n,e){n.a=e}function Pte(n,e){n.c=e}function Ite(n,e){n.d=e}function Ote(n,e){n.e=e}function Dte(n,e){n.f=e}function $te(n,e){n.j=e}function Fte(n,e){n.a=e}function xte(n,e){n.b=e}function Lte(n,e){n.a=e}function Ivn(n){n.b=n.a}function Ovn(n){n.c=n.d.d}function $v(n){this.d=n}function ta(n){this.a=n}function Rp(n){this.a=n}function bq(n){this.a=n}function Mh(n){this.a=n}function A9(n){this.a=n}function Dvn(n){this.a=n}function wq(n){this.a=n}function S9(n){this.a=n}function gq(n){this.a=n}function pq(n){this.a=n}function vq(n){this.a=n}function L0(n){this.a=n}function P9(n){this.a=n}function I9(n){this.a=n}function mq(n){this.b=n}function _p(n){this.b=n}function Kp(n){this.b=n}function OI(n){this.a=n}function $vn(n){this.a=n}function kq(n){this.a=n}function DI(n){this.c=n}function E(n){this.c=n}function Fvn(n){this.c=n}function yq(n){this.a=n}function jq(n){this.a=n}function Eq(n){this.a=n}function Cq(n){this.a=n}function st(n){this.a=n}function xvn(n){this.a=n}function Tq(n){this.a=n}function Mq(n){this.a=n}function Lvn(n){this.a=n}function Nvn(n){this.a=n}function Fv(n){this.a=n}function Bvn(n){this.a=n}function Rvn(n){this.a=n}function _vn(n){this.a=n}function Kvn(n){this.a=n}function Hvn(n){this.a=n}function qvn(n){this.a=n}function Gvn(n){this.a=n}function zvn(n){this.a=n}function Uvn(n){this.a=n}function Wvn(n){this.a=n}function Xvn(n){this.a=n}function Vvn(n){this.a=n}function Qvn(n){this.a=n}function Jvn(n){this.a=n}function Yvn(n){this.a=n}function Zvn(n){this.a=n}function n5n(n){this.a=n}function O9(n){this.a=n}function e5n(n){this.a=n}function t5n(n){this.a=n}function tj(n){this.a=n}function i5n(n){this.a=n}function r5n(n){this.a=n}function Hp(n){this.a=n}function Aq(n){this.a=n}function c5n(n){this.a=n}function u5n(n){this.a=n}function s5n(n){this.a=n}function o5n(n){this.a=n}function f5n(n){this.a=n}function Sq(n){this.a=n}function Pq(n){this.a=n}function Iq(n){this.a=n}function ij(n){this.a=n}function rj(n){this.e=n}function qp(n){this.a=n}function h5n(n){this.a=n}function n2(n){this.a=n}function Oq(n){this.a=n}function l5n(n){this.a=n}function a5n(n){this.a=n}function d5n(n){this.a=n}function b5n(n){this.a=n}function w5n(n){this.a=n}function g5n(n){this.a=n}function p5n(n){this.a=n}function v5n(n){this.a=n}function m5n(n){this.a=n}function k5n(n){this.a=n}function y5n(n){this.a=n}function Dq(n){this.a=n}function j5n(n){this.a=n}function E5n(n){this.a=n}function C5n(n){this.a=n}function T5n(n){this.a=n}function M5n(n){this.a=n}function A5n(n){this.a=n}function S5n(n){this.a=n}function P5n(n){this.a=n}function I5n(n){this.a=n}function O5n(n){this.a=n}function D5n(n){this.a=n}function $5n(n){this.a=n}function F5n(n){this.a=n}function x5n(n){this.a=n}function L5n(n){this.a=n}function N5n(n){this.a=n}function B5n(n){this.a=n}function R5n(n){this.a=n}function _5n(n){this.a=n}function K5n(n){this.a=n}function H5n(n){this.a=n}function q5n(n){this.a=n}function G5n(n){this.a=n}function z5n(n){this.a=n}function U5n(n){this.a=n}function W5n(n){this.a=n}function X5n(n){this.a=n}function V5n(n){this.a=n}function Q5n(n){this.a=n}function J5n(n){this.a=n}function Y5n(n){this.a=n}function Z5n(n){this.a=n}function n6n(n){this.a=n}function e6n(n){this.a=n}function t6n(n){this.a=n}function i6n(n){this.a=n}function r6n(n){this.a=n}function c6n(n){this.c=n}function u6n(n){this.b=n}function s6n(n){this.a=n}function o6n(n){this.a=n}function f6n(n){this.a=n}function h6n(n){this.a=n}function l6n(n){this.a=n}function a6n(n){this.a=n}function d6n(n){this.a=n}function b6n(n){this.a=n}function w6n(n){this.a=n}function g6n(n){this.a=n}function p6n(n){this.a=n}function v6n(n){this.a=n}function m6n(n){this.a=n}function k6n(n){this.a=n}function y6n(n){this.a=n}function j6n(n){this.a=n}function E6n(n){this.a=n}function C6n(n){this.a=n}function T6n(n){this.a=n}function M6n(n){this.a=n}function A6n(n){this.a=n}function S6n(n){this.a=n}function P6n(n){this.a=n}function I6n(n){this.a=n}function X1(n){this.a=n}function e2(n){this.a=n}function O6n(n){this.a=n}function D6n(n){this.a=n}function $6n(n){this.a=n}function F6n(n){this.a=n}function x6n(n){this.a=n}function L6n(n){this.a=n}function N6n(n){this.a=n}function B6n(n){this.a=n}function R6n(n){this.a=n}function _6n(n){this.a=n}function K6n(n){this.a=n}function H6n(n){this.a=n}function q6n(n){this.a=n}function G6n(n){this.a=n}function z6n(n){this.a=n}function U6n(n){this.a=n}function cj(n){this.a=n}function W6n(n){this.a=n}function X6n(n){this.a=n}function V6n(n){this.a=n}function Q6n(n){this.a=n}function J6n(n){this.a=n}function Y6n(n){this.a=n}function Z6n(n){this.a=n}function nmn(n){this.a=n}function emn(n){this.a=n}function tmn(n){this.a=n}function imn(n){this.a=n}function rmn(n){this.a=n}function cmn(n){this.a=n}function umn(n){this.a=n}function smn(n){this.a=n}function omn(n){this.a=n}function fmn(n){this.a=n}function hmn(n){this.a=n}function lmn(n){this.a=n}function amn(n){this.a=n}function dmn(n){this.a=n}function bmn(n){this.a=n}function wmn(n){this.a=n}function gmn(n){this.a=n}function pmn(n){this.a=n}function vmn(n){this.a=n}function mmn(n){this.a=n}function kmn(n){this.a=n}function $q(n){this.a=n}function kt(n){this.b=n}function ymn(n){this.f=n}function Fq(n){this.a=n}function jmn(n){this.a=n}function Emn(n){this.a=n}function Cmn(n){this.a=n}function Tmn(n){this.a=n}function Mmn(n){this.a=n}function Amn(n){this.a=n}function Smn(n){this.a=n}function Pmn(n){this.a=n}function D9(n){this.a=n}function Imn(n){this.a=n}function Omn(n){this.b=n}function xq(n){this.c=n}function uj(n){this.e=n}function Dmn(n){this.a=n}function sj(n){this.a=n}function oj(n){this.a=n}function $I(n){this.a=n}function $mn(n){this.a=n}function Fmn(n){this.d=n}function Lq(n){this.a=n}function Nq(n){this.a=n}function cd(n){this.e=n}function Nte(){this.a=0}function gw(){dyn(this)}function X(){RO(this)}function we(){Eu(this)}function FI(){pTn(this)}function xmn(){}function ud(){this.c=p1n}function Bte(n,e){e.Wb(n)}function Lmn(n,e){n.b+=e}function Nmn(n){n.b=new JI}function T(n){return n.e}function Rte(n){return n.a}function _te(n){return n.a}function Kte(n){return n.a}function Hte(n){return n.a}function qte(n){return n.a}function Gte(){return null}function zte(){return null}function Ute(){EG(),iTe()}function Wte(n){n.b.tf(n.e)}function xv(n,e){n.b=e-n.b}function Lv(n,e){n.a=e-n.a}function Bmn(n,e){e.ad(n.a)}function Xte(n,e){ui(e,n)}function Vte(n,e,t){n.Od(t,e)}function $9(n,e){n.e=e,e.b=n}function Bq(n){Df(),this.a=n}function Rmn(n){Df(),this.a=n}function _mn(n){Df(),this.a=n}function Rq(n){nb(),this.a=n}function Kmn(n){k3(),aR.be(n)}function ia(){Qyn.call(this)}function _q(){Qyn.call(this)}function Kq(){ia.call(this)}function xI(){ia.call(this)}function Hmn(){ia.call(this)}function F9(){ia.call(this)}function fu(){ia.call(this)}function Nv(){ia.call(this)}function ye(){ia.call(this)}function vs(){ia.call(this)}function qmn(){ia.call(this)}function ic(){ia.call(this)}function Gmn(){ia.call(this)}function zmn(){this.a=this}function fj(){this.Bb|=256}function Umn(){this.b=new Xkn}function Hq(){Hq=N,new we}function qq(){Kq.call(this)}function Wmn(n,e){n.length=e}function hj(n,e){W(n.a,e)}function Qte(n,e){nY(n.c,e)}function Jte(n,e){ri(n.b,e)}function Yte(n,e){KT(n.a,e)}function Zte(n,e){MF(n.a,e)}function Gp(n,e){et(n.e,e)}function t2(n){iM(n.c,n.b)}function nie(n,e){n.kc().Nb(e)}function Gq(n){this.a=Yge(n)}function fi(){this.a=new we}function Xmn(){this.a=new we}function lj(){this.a=new X}function LI(){this.a=new X}function zq(){this.a=new X}function Ns(){this.a=new Oln}function ra(){this.a=new TSn}function Uq(){this.a=new LH}function Wq(){this.a=new h7n}function Vmn(){this.a=new YMn}function Xq(){this.a=new bMn}function Vq(){this.a=new Bjn}function Qmn(){this.a=new X}function Qq(){this.a=new X}function Jmn(){this.a=new X}function Ymn(){this.a=new X}function Zmn(){this.d=new X}function n9n(){this.a=new fi}function e9n(){this.a=new we}function t9n(){this.b=new we}function i9n(){this.b=new X}function Jq(){this.e=new X}function r9n(){this.d=new X}function c9n(){this.a=new C4n}function u9n(){X.call(this)}function Yq(){lj.call(this)}function s9n(){kE.call(this)}function o9n(){Qq.call(this)}function NI(){Bv.call(this)}function Bv(){xmn.call(this)}function i2(){xmn.call(this)}function Zq(){i2.call(this)}function f9n(){zTn.call(this)}function h9n(){zTn.call(this)}function l9n(){uG.call(this)}function a9n(){uG.call(this)}function d9n(){uG.call(this)}function b9n(){sG.call(this)}function hu(){Ct.call(this)}function nG(){B2n.call(this)}function eG(){B2n.call(this)}function w9n(){O9n.call(this)}function g9n(){O9n.call(this)}function p9n(){we.call(this)}function v9n(){we.call(this)}function m9n(){we.call(this)}function k9n(){fi.call(this)}function BI(){RIn.call(this)}function y9n(){fj.call(this)}function RI(){Oz.call(this)}function _I(){Oz.call(this)}function tG(){we.call(this)}function KI(){we.call(this)}function j9n(){we.call(this)}function iG(){Yy.call(this)}function E9n(){Yy.call(this)}function C9n(){iG.call(this)}function T9n(){ZH.call(this)}function M9n(n){hIn.call(this,n)}function A9n(n){hIn.call(this,n)}function rG(n){rq.call(this,n)}function cG(n){n7n.call(this,n)}function eie(n){cG.call(this,n)}function tie(n){n7n.call(this,n)}function zp(){this.a=new Ct}function uG(){this.a=new fi}function sG(){this.a=new we}function S9n(){this.a=new X}function P9n(){this.j=new X}function oG(){this.a=new Rgn}function I9n(){this.a=new T8n}function O9n(){this.a=new X2n}function HI(){HI=N,uR=new V9n}function qI(){qI=N,cR=new X9n}function Rv(){Rv=N,rR=new Ot}function aj(){aj=N,fR=new Xyn}function iie(n){cG.call(this,n)}function rie(n){cG.call(this,n)}function D9n(n){m$.call(this,n)}function $9n(n){m$.call(this,n)}function F9n(n){uEn.call(this,n)}function GI(n){C5e.call(this,n)}function sd(n){_0.call(this,n)}function _v(n){Cj.call(this,n)}function fG(n){Cj.call(this,n)}function x9n(n){Cj.call(this,n)}function _r(n){kCn.call(this,n)}function L9n(n){_r.call(this,n)}function r2(){M9.call(this,{})}function dj(n){c3(),this.a=n}function Kv(n){n.b=null,n.c=0}function cie(n,e){n.e=e,NNn(n,e)}function uie(n,e){n.a=e,h6e(n)}function zI(n,e,t){n.a[e.g]=t}function sie(n,e,t){M4e(t,n,e)}function oie(n,e){$ue(e.i,n.n)}function N9n(n,e){Fwe(n).td(e)}function fie(n,e){return n*n/e}function B9n(n,e){return n.g-e.g}function hie(n){return new nj(n)}function lie(n){return new Z0(n)}function bj(n){_r.call(this,n)}function vr(n){_r.call(this,n)}function R9n(n){_r.call(this,n)}function UI(n){kCn.call(this,n)}function WI(n){AV(),this.a=n}function _9n(n){aEn(),this.a=n}function N0(n){ED(),this.f=n}function XI(n){ED(),this.f=n}function Up(n){_r.call(this,n)}function Hn(n){_r.call(this,n)}function Dr(n){_r.call(this,n)}function K9n(n){_r.call(this,n)}function c2(n){_r.call(this,n)}function on(n){return _n(n),n}function K(n){return _n(n),n}function x9(n){return _n(n),n}function hG(n){return _n(n),n}function aie(n){return _n(n),n}function Hv(n){return n.b==n.c}function B0(n){return!!n&&n.b}function die(n){return!!n&&n.k}function bie(n){return!!n&&n.j}function Ku(n){_n(n),this.a=n}function lG(n){return ja(n),n}function qv(n){EW(n,n.length)}function t1(n){_r.call(this,n)}function Af(n){_r.call(this,n)}function VI(n){_r.call(this,n)}function pw(n){_r.call(this,n)}function Gv(n){_r.call(this,n)}function Ce(n){_r.call(this,n)}function QI(n){Vz.call(this,n,0)}function JI(){iX.call(this,12,3)}function aG(){aG=N,din=new Q1n}function H9n(){H9n=N,ain=new ou}function wj(){wj=N,dm=new H1}function q9n(){q9n=N,vzn=new ww}function G9n(){throw T(new ye)}function dG(){throw T(new ye)}function z9n(){throw T(new ye)}function wie(){throw T(new ye)}function gie(){throw T(new ye)}function pie(){throw T(new ye)}function YI(){this.a=Te(pe(Ji))}function u2(n){Df(),this.a=pe(n)}function U9n(n,e){n.Td(e),e.Sd(n)}function vie(n,e){n.a.ec().Mc(e)}function mie(n,e,t){n.c.lf(e,t)}function bG(n){vr.call(this,n)}function Sf(n){Hn.call(this,n)}function i1(){A9.call(this,"")}function zv(){A9.call(this,"")}function V1(){A9.call(this,"")}function R0(){A9.call(this,"")}function wG(n){vr.call(this,n)}function Wp(n){_p.call(this,n)}function ZI(n){lE.call(this,n)}function W9n(n){Wp.call(this,n)}function X9n(){AI.call(this,null)}function V9n(){AI.call(this,null)}function gj(){gj=N,k3()}function Q9n(){Q9n=N,Szn=Z4e()}function J9n(n){return n.a?n.b:0}function kie(n){return n.a?n.b:0}function yie(n,e){return n.a-e.a}function jie(n,e){return n.a-e.a}function Eie(n,e){return n.a-e.a}function pj(n,e){return WX(n,e)}function M(n,e){return pMn(n,e)}function Cie(n,e){return e in n.a}function Y9n(n,e){return n.f=e,n}function Tie(n,e){return n.b=e,n}function Z9n(n,e){return n.c=e,n}function Mie(n,e){return n.g=e,n}function gG(n,e){return n.a=e,n}function pG(n,e){return n.f=e,n}function Aie(n,e){return n.k=e,n}function vG(n,e){return n.a=e,n}function Sie(n,e){return n.e=e,n}function mG(n,e){return n.e=e,n}function Pie(n,e){return n.f=e,n}function Iie(n,e){n.b=!0,n.d=e}function Oie(n,e){n.b=new mr(e)}function Die(n,e,t){e.td(n.a[t])}function $ie(n,e,t){e.we(n.a[t])}function Fie(n,e){return n.b-e.b}function xie(n,e){return n.g-e.g}function Lie(n,e){return n.s-e.s}function Nie(n,e){return n?0:e-1}function n8n(n,e){return n?0:e-1}function Bie(n,e){return n?e-1:0}function Rie(n,e){return e.Yf(n)}function od(n,e){return n.b=e,n}function vj(n,e){return n.a=e,n}function fd(n,e){return n.c=e,n}function hd(n,e){return n.d=e,n}function ld(n,e){return n.e=e,n}function kG(n,e){return n.f=e,n}function Uv(n,e){return n.a=e,n}function Xp(n,e){return n.b=e,n}function Vp(n,e){return n.c=e,n}function gn(n,e){return n.c=e,n}function Dn(n,e){return n.b=e,n}function pn(n,e){return n.d=e,n}function vn(n,e){return n.e=e,n}function _ie(n,e){return n.f=e,n}function mn(n,e){return n.g=e,n}function kn(n,e){return n.a=e,n}function yn(n,e){return n.i=e,n}function jn(n,e){return n.j=e,n}function e8n(n,e){return n.k=e,n}function Kie(n,e){return n.j=e,n}function Hie(n,e){yl(),Hr(e,n)}function qie(n,e,t){Nfe(n.a,e,t)}function t8n(n){mTn.call(this,n)}function yG(n){mTn.call(this,n)}function mj(n){uD.call(this,n)}function i8n(n){u2e.call(this,n)}function Q1(n){Ld.call(this,n)}function r8n(n){XD.call(this,n)}function c8n(n){XD.call(this,n)}function u8n(){Mz.call(this,"")}function Li(){this.a=0,this.b=0}function s8n(){this.b=0,this.a=0}function o8n(n,e){n.b=0,hb(n,e)}function Gie(n,e){n.c=e,n.b=!0}function f8n(n,e){return n.c._b(e)}function xo(n){return n.e&&n.e()}function nO(n){return n?n.d:null}function h8n(n,e){return LDn(n.b,e)}function zie(n){return n?n.g:null}function Uie(n){return n?n.i:null}function J1(n){return Ph(n),n.o}function ad(){ad=N,Mne=h4e()}function l8n(){l8n=N,vi=jve()}function Qp(){Qp=N,g1n=a4e()}function a8n(){a8n=N,hee=l4e()}function jG(){jG=N,oc=s6e()}function EG(){EG=N,Wl=N3()}function d8n(){throw T(new ye)}function b8n(){throw T(new ye)}function w8n(){throw T(new ye)}function g8n(){throw T(new ye)}function p8n(){throw T(new ye)}function v8n(){throw T(new ye)}function kj(n){this.a=new s2(n)}function CG(n){d_n(),gTe(this,n)}function Y1(n){this.a=new AD(n)}function vw(n,e){for(;n.ye(e););}function TG(n,e){for(;n.sd(e););}function mw(n,e){return n.a+=e,n}function eO(n,e){return n.a+=e,n}function r1(n,e){return n.a+=e,n}function dd(n,e){return n.a+=e,n}function Wv(n){return fl(n),n.a}function yj(n){return n.b!=n.d.c}function m8n(n){return n.l|n.m<<22}function MG(n,e){return n.d[e.p]}function k8n(n,e){return Q8e(n,e)}function AG(n,e,t){n.splice(e,t)}function y8n(n){n.c?rBn(n):cBn(n)}function jj(n){this.a=0,this.b=n}function j8n(){this.a=new B7(Pon)}function E8n(){this.b=new B7(won)}function C8n(){this.b=new B7(OK)}function T8n(){this.b=new B7(OK)}function M8n(){throw T(new ye)}function A8n(){throw T(new ye)}function S8n(){throw T(new ye)}function P8n(){throw T(new ye)}function I8n(){throw T(new ye)}function O8n(){throw T(new ye)}function D8n(){throw T(new ye)}function $8n(){throw T(new ye)}function F8n(){throw T(new ye)}function x8n(){throw T(new ye)}function Wie(){throw T(new ic)}function Xie(){throw T(new ic)}function L9(n){this.a=new L8n(n)}function L8n(n){cbe(this,n,cve())}function N9(n){return!n||iTn(n)}function B9(n){return Tf[n]!=-1}function Vie(){_A!=0&&(_A=0),KA=-1}function N8n(){iR==null&&(iR=[])}function Qie(n,e){$x(R(n.a),e)}function Jie(n,e){$x(R(n.a),e)}function R9(n,e){Sw.call(this,n,e)}function Jp(n,e){R9.call(this,n,e)}function SG(n,e){this.b=n,this.c=e}function B8n(n,e){this.b=n,this.a=e}function R8n(n,e){this.a=n,this.b=e}function _8n(n,e){this.a=n,this.b=e}function K8n(n,e){this.a=n,this.b=e}function H8n(n,e){this.a=n,this.b=e}function q8n(n,e){this.a=n,this.b=e}function G8n(n,e){this.a=n,this.b=e}function z8n(n,e){this.a=n,this.b=e}function U8n(n,e){this.a=n,this.b=e}function W8n(n,e){this.b=n,this.a=e}function X8n(n,e){this.b=n,this.a=e}function V8n(n,e){this.b=n,this.a=e}function Q8n(n,e){this.b=n,this.a=e}function Oe(n,e){this.f=n,this.g=e}function Yp(n,e){this.e=n,this.d=e}function bd(n,e){this.g=n,this.i=e}function tO(n,e){this.a=n,this.b=e}function J8n(n,e){this.a=n,this.f=e}function Y8n(n,e){this.b=n,this.c=e}function Yie(n,e){this.a=n,this.b=e}function Z8n(n,e){this.a=n,this.b=e}function iO(n,e){this.a=n,this.b=e}function n7n(n){Bz(n.dc()),this.c=n}function Ej(n){this.b=u(pe(n),83)}function e7n(n){this.a=u(pe(n),83)}function _0(n){this.a=u(pe(n),15)}function t7n(n){this.a=u(pe(n),15)}function Cj(n){this.b=u(pe(n),47)}function Tj(){this.q=new j.Date}function Zf(){Zf=N,Sin=new tln}function Zp(){Zp=N,X4=new nln}function Xv(n){return n.f.c+n.g.c}function _9(n,e){return n.b.Hc(e)}function i7n(n,e){return n.b.Ic(e)}function r7n(n,e){return n.b.Qc(e)}function c7n(n,e){return n.b.Hc(e)}function u7n(n,e){return n.c.uc(e)}function Ah(n,e){return n.a._b(e)}function s7n(n,e){return tt(n.c,e)}function o7n(n,e){return zu(n.b,e)}function f7n(n,e){return n>e&&e0}function cO(n,e){return fc(n,e)<0}function n5(n,e){return n.a.get(e)}function lre(n,e){return e.split(n)}function S7n(n,e){return zu(n.e,e)}function LG(n){return _n(n),!1}function xj(n){xn.call(this,n,21)}function are(n,e){cMn.call(this,n,e)}function Lj(n,e){Oe.call(this,n,e)}function uO(n,e){Oe.call(this,n,e)}function NG(n){_D(),uEn.call(this,n)}function BG(n,e){fCn(n,n.length,e)}function z9(n,e){BCn(n,n.length,e)}function dre(n,e,t){e.ud(n.a.Ge(t))}function bre(n,e,t){e.we(n.a.Fe(t))}function wre(n,e,t){e.td(n.a.Kb(t))}function gre(n,e,t){n.Mb(t)&&e.td(t)}function e5(n,e,t){n.splice(e,0,t)}function pre(n,e){return au(n.e,e)}function Nj(n,e){this.d=n,this.e=e}function P7n(n,e){this.b=n,this.a=e}function I7n(n,e){this.b=n,this.a=e}function RG(n,e){this.b=n,this.a=e}function O7n(n,e){this.a=n,this.b=e}function D7n(n,e){this.a=n,this.b=e}function $7n(n,e){this.a=n,this.b=e}function F7n(n,e){this.a=n,this.b=e}function f2(n,e){this.a=n,this.b=e}function _G(n,e){this.b=n,this.a=e}function KG(n,e){this.b=n,this.a=e}function Bj(n,e){Oe.call(this,n,e)}function Rj(n,e){Oe.call(this,n,e)}function HG(n,e){Oe.call(this,n,e)}function qG(n,e){Oe.call(this,n,e)}function kw(n,e){Oe.call(this,n,e)}function sO(n,e){Oe.call(this,n,e)}function oO(n,e){Oe.call(this,n,e)}function fO(n,e){Oe.call(this,n,e)}function _j(n,e){Oe.call(this,n,e)}function GG(n,e){Oe.call(this,n,e)}function hO(n,e){Oe.call(this,n,e)}function U9(n,e){Oe.call(this,n,e)}function Kj(n,e){Oe.call(this,n,e)}function lO(n,e){Oe.call(this,n,e)}function t5(n,e){Oe.call(this,n,e)}function zG(n,e){Oe.call(this,n,e)}function zt(n,e){Oe.call(this,n,e)}function Hj(n,e){Oe.call(this,n,e)}function x7n(n,e){this.a=n,this.b=e}function L7n(n,e){this.a=n,this.b=e}function N7n(n,e){this.a=n,this.b=e}function B7n(n,e){this.a=n,this.b=e}function R7n(n,e){this.a=n,this.b=e}function _7n(n,e){this.a=n,this.b=e}function K7n(n,e){this.a=n,this.b=e}function H7n(n,e){this.a=n,this.b=e}function q7n(n,e){this.a=n,this.b=e}function UG(n,e){this.b=n,this.a=e}function G7n(n,e){this.b=n,this.a=e}function z7n(n,e){this.b=n,this.a=e}function U7n(n,e){this.b=n,this.a=e}function t3(n,e){this.c=n,this.d=e}function W7n(n,e){this.e=n,this.d=e}function X7n(n,e){this.a=n,this.b=e}function V7n(n,e){this.b=e,this.c=n}function qj(n,e){Oe.call(this,n,e)}function W9(n,e){Oe.call(this,n,e)}function aO(n,e){Oe.call(this,n,e)}function i5(n,e){Oe.call(this,n,e)}function WG(n,e){Oe.call(this,n,e)}function dO(n,e){Oe.call(this,n,e)}function bO(n,e){Oe.call(this,n,e)}function X9(n,e){Oe.call(this,n,e)}function XG(n,e){Oe.call(this,n,e)}function wO(n,e){Oe.call(this,n,e)}function r5(n,e){Oe.call(this,n,e)}function VG(n,e){Oe.call(this,n,e)}function c5(n,e){Oe.call(this,n,e)}function u5(n,e){Oe.call(this,n,e)}function H0(n,e){Oe.call(this,n,e)}function gO(n,e){Oe.call(this,n,e)}function pO(n,e){Oe.call(this,n,e)}function QG(n,e){Oe.call(this,n,e)}function s5(n,e){Oe.call(this,n,e)}function vO(n,e){Oe.call(this,n,e)}function Gj(n,e){Oe.call(this,n,e)}function V9(n,e){Oe.call(this,n,e)}function Q9(n,e){Oe.call(this,n,e)}function h2(n,e){Oe.call(this,n,e)}function mO(n,e){Oe.call(this,n,e)}function JG(n,e){Oe.call(this,n,e)}function kO(n,e){Oe.call(this,n,e)}function yO(n,e){Oe.call(this,n,e)}function YG(n,e){Oe.call(this,n,e)}function jO(n,e){Oe.call(this,n,e)}function EO(n,e){Oe.call(this,n,e)}function CO(n,e){Oe.call(this,n,e)}function TO(n,e){Oe.call(this,n,e)}function ZG(n,e){Oe.call(this,n,e)}function Q7n(n,e){this.b=n,this.a=e}function J7n(n,e){this.a=n,this.b=e}function Y7n(n,e){this.a=n,this.b=e}function Z7n(n,e){this.a=n,this.b=e}function nkn(n,e){this.a=n,this.b=e}function nz(n,e){Oe.call(this,n,e)}function ez(n,e){Oe.call(this,n,e)}function ekn(n,e){this.b=n,this.d=e}function tz(n,e){Oe.call(this,n,e)}function iz(n,e){Oe.call(this,n,e)}function tkn(n,e){this.a=n,this.b=e}function ikn(n,e){this.a=n,this.b=e}function zj(n,e){Oe.call(this,n,e)}function o5(n,e){Oe.call(this,n,e)}function rz(n,e){Oe.call(this,n,e)}function cz(n,e){Oe.call(this,n,e)}function uz(n,e){Oe.call(this,n,e)}function MO(n,e){Oe.call(this,n,e)}function sz(n,e){Oe.call(this,n,e)}function AO(n,e){Oe.call(this,n,e)}function Uj(n,e){Oe.call(this,n,e)}function SO(n,e){Oe.call(this,n,e)}function PO(n,e){Oe.call(this,n,e)}function J9(n,e){Oe.call(this,n,e)}function IO(n,e){Oe.call(this,n,e)}function oz(n,e){Oe.call(this,n,e)}function Y9(n,e){Oe.call(this,n,e)}function fz(n,e){Oe.call(this,n,e)}function vre(n,e){return au(n.c,e)}function mre(n,e){return au(e.b,n)}function kre(n,e){return-n.b.Je(e)}function hz(n,e){return au(n.g,e)}function Z9(n,e){Oe.call(this,n,e)}function l2(n,e){Oe.call(this,n,e)}function rkn(n,e){this.a=n,this.b=e}function ckn(n,e){this.a=n,this.b=e}function fn(n,e){this.a=n,this.b=e}function f5(n,e){Oe.call(this,n,e)}function h5(n,e){Oe.call(this,n,e)}function n8(n,e){Oe.call(this,n,e)}function OO(n,e){Oe.call(this,n,e)}function Wj(n,e){Oe.call(this,n,e)}function l5(n,e){Oe.call(this,n,e)}function DO(n,e){Oe.call(this,n,e)}function Xj(n,e){Oe.call(this,n,e)}function yw(n,e){Oe.call(this,n,e)}function e8(n,e){Oe.call(this,n,e)}function a5(n,e){Oe.call(this,n,e)}function d5(n,e){Oe.call(this,n,e)}function t8(n,e){Oe.call(this,n,e)}function Vj(n,e){Oe.call(this,n,e)}function jw(n,e){Oe.call(this,n,e)}function Qj(n,e){Oe.call(this,n,e)}function ukn(n,e){this.a=n,this.b=e}function skn(n,e){this.a=n,this.b=e}function okn(n,e){this.a=n,this.b=e}function fkn(n,e){this.a=n,this.b=e}function hkn(n,e){this.a=n,this.b=e}function lkn(n,e){this.a=n,this.b=e}function Pi(n,e){this.a=n,this.b=e}function Jj(n,e){Oe.call(this,n,e)}function akn(n,e){this.a=n,this.b=e}function dkn(n,e){this.a=n,this.b=e}function bkn(n,e){this.a=n,this.b=e}function wkn(n,e){this.a=n,this.b=e}function gkn(n,e){this.a=n,this.b=e}function pkn(n,e){this.a=n,this.b=e}function vkn(n,e){this.b=n,this.a=e}function mkn(n,e){this.b=n,this.a=e}function kkn(n,e){this.b=n,this.a=e}function ykn(n,e){this.b=n,this.a=e}function jkn(n,e){this.a=n,this.b=e}function Ekn(n,e){this.a=n,this.b=e}function yre(n,e){J9e(n.a,u(e,56))}function Ckn(n,e){f0e(n.a,u(e,11))}function jre(n,e){return h3(),e!=n}function Tkn(){return Q9n(),new Szn}function Mkn(){c$(),this.b=new fi}function Akn(){hM(),this.a=new fi}function Skn(){tX(),lW.call(this)}function a2(n,e){Oe.call(this,n,e)}function Pkn(n,e){this.a=n,this.b=e}function Ikn(n,e){this.a=n,this.b=e}function Yj(n,e){this.a=n,this.b=e}function Okn(n,e){this.a=n,this.b=e}function Dkn(n,e){this.a=n,this.b=e}function $kn(n,e){this.a=n,this.b=e}function Fkn(n,e){this.d=n,this.b=e}function lz(n,e){this.d=n,this.e=e}function xkn(n,e){this.f=n,this.c=e}function i8(n,e){this.b=n,this.c=e}function az(n,e){this.i=n,this.g=e}function Lkn(n,e){this.e=n,this.a=e}function Nkn(n,e){this.a=n,this.b=e}function dz(n,e){n.i=null,nT(n,e)}function Ere(n,e){n&&it($y,n,e)}function Bkn(n,e){return NF(n.a,e)}function Zj(n){return g7(n.c,n.b)}function Vr(n){return n?n.dd():null}function B(n){return n??null}function q0(n){return typeof n===X2}function G0(n){return typeof n===UZ}function mi(n){return typeof n===EL}function el(n,e){return n.Hd().Xb(e)}function nE(n,e){return Rbe(n.Kc(),e)}function gd(n,e){return fc(n,e)==0}function Cre(n,e){return fc(n,e)>=0}function b5(n,e){return fc(n,e)!=0}function Tre(n){return""+(_n(n),n)}function r8(n,e){return n.substr(e)}function Rkn(n){return $u(n),n.d.gc()}function $O(n){return yme(n,n.c),n}function eE(n){return A5(n==null),n}function w5(n,e){return n.a+=""+e,n}function dr(n,e){return n.a+=""+e,n}function g5(n,e){return n.a+=""+e,n}function rc(n,e){return n.a+=""+e,n}function De(n,e){return n.a+=""+e,n}function bz(n,e){return n.a+=""+e,n}function _kn(n,e){Kt(n,e,n.a,n.a.a)}function ua(n,e){Kt(n,e,n.c.b,n.c)}function Mre(n,e,t){VFn(e,Mx(n,t))}function Are(n,e,t){VFn(e,Mx(n,t))}function Sre(n,e){k0e(new ie(n),e)}function Kkn(n,e){n.q.setTime($d(e))}function Hkn(n,e){kW.call(this,n,e)}function qkn(n,e){kW.call(this,n,e)}function FO(n,e){kW.call(this,n,e)}function Gkn(n){Eu(this),Z5(this,n)}function wz(n){return Ln(n,0),null}function Lo(n){return n.a=0,n.b=0,n}function zkn(n,e){return n.a=e.g+1,n}function Pre(n,e){return n.j[e.p]==2}function gz(n){return lhe(u(n,79))}function Ukn(){Ukn=N,jUn=Fe(qF())}function Wkn(){Wkn=N,RWn=Fe(PNn())}function Xkn(){this.b=new s2(sb(12))}function Vkn(){this.b=0,this.a=!1}function Qkn(){this.b=0,this.a=!1}function p5(n){this.a=n,TI.call(this)}function Jkn(n){this.a=n,TI.call(this)}function In(n,e){ii.call(this,n,e)}function xO(n,e){V0.call(this,n,e)}function Ew(n,e){az.call(this,n,e)}function LO(n,e){H3.call(this,n,e)}function Ykn(n,e){c8.call(this,n,e)}function He(n,e){$j(),it(eI,n,e)}function NO(n,e){return Yu(n.a,0,e)}function Zkn(n,e){return n.a.a.a.cc(e)}function nyn(n,e){return B(n)===B(e)}function Ire(n,e){return Zt(n.a,e.a)}function Ore(n,e){return Uc(n.a,e.a)}function Dre(n,e){return xCn(n.a,e.a)}function Pf(n,e){return n.indexOf(e)}function pd(n,e){return n==e?0:n?1:-1}function tE(n){return n<10?"0"+n:""+n}function $re(n){return pe(n),new p5(n)}function eyn(n){return Bc(n.l,n.m,n.h)}function i3(n){return Gt((_n(n),n))}function Fre(n){return Gt((_n(n),n))}function tyn(n,e){return Uc(n.g,e.g)}function $r(n){return typeof n===UZ}function xre(n){return n==b0||n==Hb}function Lre(n){return n==b0||n==Kb}function pz(n){return Fr(n.b.b,n,0)}function iyn(n){this.a=Tkn(),this.b=n}function ryn(n){this.a=Tkn(),this.b=n}function Nre(n,e){return W(n.a,e),e}function Bre(n,e){return W(n.c,e),n}function cyn(n,e){return rs(n.a,e),n}function Rre(n,e){return wo(),e.a+=n}function _re(n,e){return wo(),e.a+=n}function Kre(n,e){return wo(),e.c+=n}function vz(n,e){S3(n,0,n.length,e)}function Sh(){Tq.call(this,new ba)}function uyn(){xE.call(this,0,0,0,0)}function d2(){ys.call(this,0,0,0,0)}function mr(n){this.a=n.a,this.b=n.b}function tl(n){return n==Zs||n==Ao}function r3(n){return n==Yh||n==Jh}function syn(n){return n==xg||n==Fg}function Cw(n){return n!=jf&&n!=ql}function Hu(n){return n.Lg()&&n.Mg()}function oyn(n){return JE(u(n,118))}function iE(n){return rs(new hi,n)}function fyn(n,e){return new H3(e,n)}function Hre(n,e){return new H3(e,n)}function mz(n,e,t){UC(n,e),WC(n,t)}function rE(n,e,t){Rd(n,e),Bd(n,t)}function Jo(n,e,t){Zc(n,e),nu(n,t)}function cE(n,e,t){D3(n,e),F3(n,t)}function uE(n,e,t){$3(n,e),x3(n,t)}function BO(n,e){X3(n,e),L3(n,n.D)}function kz(n){xkn.call(this,n,!0)}function hyn(n,e,t){fU.call(this,n,e,t)}function il(n){jl(),qbe.call(this,n)}function lyn(){Lj.call(this,"Head",1)}function ayn(){Lj.call(this,"Tail",3)}function RO(n){n.c=F(Zn,rn,1,0,5,1)}function dyn(n){n.a=F(Zn,rn,1,8,5,1)}function byn(n){Yc(n.xf(),new t5n(n))}function Tw(n){return n!=null?mt(n):0}function qre(n,e){return ob(e,nf(n))}function Gre(n,e){return ob(e,nf(n))}function zre(n,e){return n[n.length]=e}function Ure(n,e){return n[n.length]=e}function yz(n){return zoe(n.b.Kc(),n.a)}function Wre(n,e){return ZC(BD(n.d),e)}function Xre(n,e){return ZC(BD(n.g),e)}function Vre(n,e){return ZC(BD(n.j),e)}function tr(n,e){ii.call(this,n.b,e)}function vd(n){xE.call(this,n,n,n,n)}function jz(n){return n.b&&uL(n),n.a}function Ez(n){return n.b&&uL(n),n.c}function Qre(n,e){pf||(n.b=e)}function _O(n,e,t){return Mt(n,e,t),t}function wyn(n,e,t){Mt(n.c[e.g],e.g,t)}function Jre(n,e,t){u(n.c,69).Xh(e,t)}function Yre(n,e,t){Jo(t,t.i+n,t.j+e)}function Zre(n,e){me(bc(n.a),PMn(e))}function nce(n,e){me(Ou(n.a),IMn(e))}function v5(n){Je(),cd.call(this,n)}function ece(n){return n==null?0:mt(n)}function gyn(){gyn=N,hK=new f6(cH)}function je(){je=N,new pyn,new X}function pyn(){new we,new we,new we}function Cz(){Cz=N,Hq(),bin=new we}function Yo(){Yo=N,j.Math.log(2)}function ms(){ms=N,Eh=(E7n(),Dne)}function tce(){throw T(new t1(izn))}function ice(){throw T(new t1(izn))}function rce(){throw T(new t1(rzn))}function cce(){throw T(new t1(rzn))}function vyn(n){this.a=n,HU.call(this,n)}function KO(n){this.a=n,Ej.call(this,n)}function HO(n){this.a=n,Ej.call(this,n)}function bi(n,e){mD(n.c,n.c.length,e)}function Kr(n){return n.ae?1:0}function kyn(n,e){return fc(n,e)>0?n:e}function Bc(n,e,t){return{l:n,m:e,h:t}}function uce(n,e){n.a!=null&&Ckn(e,n.a)}function yyn(n){n.a=new aI,n.c=new aI}function sE(n){this.b=n,this.a=new X}function jyn(n){this.b=new san,this.a=n}function Mz(n){vU.call(this),this.a=n}function Eyn(){Lj.call(this,"Range",2)}function Cyn(){kJ(),this.a=new B7(Hrn)}function sce(n,e){pe(e),Iw(n).Jc(new ps)}function oce(n,e){return Zu(),e.n.b+=n}function fce(n,e,t){return it(n.g,t,e)}function hce(n,e,t){return it(n.k,t,e)}function lce(n,e){return it(n.a,e.a,e)}function Mw(n,e,t){return _Q(e,t,n.c)}function Az(n){return new fn(n.c,n.d)}function ace(n){return new fn(n.c,n.d)}function Qr(n){return new fn(n.a,n.b)}function Tyn(n,e){return xEe(n.a,e,null)}function dce(n){Hi(n,null),Ei(n,null)}function Myn(n){s$(n,null),o$(n,null)}function Ayn(){c8.call(this,null,null)}function Syn(){wE.call(this,null,null)}function Sz(n){this.a=n,we.call(this)}function bce(n){this.b=(Pn(),new DI(n))}function oE(n){n.j=F(Ain,q,310,0,0,1)}function wce(n,e,t){n.c.Vc(e,u(t,133))}function gce(n,e,t){n.c.ji(e,u(t,133))}function Pyn(n,e){de(n),n.Gc(u(e,15))}function m5(n,e){return Jje(n.c,n.b,e)}function pce(n,e){return new Jyn(n.Kc(),e)}function qO(n,e){return gwe(n.Kc(),e)!=-1}function Pz(n,e){return n.a.Bc(e)!=null}function fE(n){return n.Ob()?n.Pb():null}function Iyn(n){return Hs(n,0,n.length)}function I(n,e){return n!=null&&WF(n,e)}function vce(n,e){n.q.setHours(e),S6(n,e)}function Oyn(n,e){n.c&&(ZU(e),iMn(e))}function mce(n,e,t){u(n.Kb(t),164).Nb(e)}function kce(n,e,t){return SEe(n,e,t),t}function Dyn(n,e,t){n.a=e^1502,n.b=t^tN}function GO(n,e,t){return n.a[e.g][t.g]}function Zo(n,e){return n.a[e.c.p][e.p]}function yce(n,e){return n.e[e.c.p][e.p]}function jce(n,e){return n.c[e.c.p][e.p]}function Ece(n,e){return n.j[e.p]=D9e(e)}function Cce(n,e){return DX(n.f,e.tg())}function Tce(n,e){return DX(n.b,e.tg())}function Mce(n,e){return n.a0?e*e/n:e*e*100}function Jce(n,e){return n>0?e/(n*n):e*100}function Yce(n,e,t){return W(e,e$n(n,t))}function Zce(n,e,t){DC(),n.Xe(e)&&t.td(n)}function s3(n,e,t){var i;i=n.Zc(e),i.Rb(t)}function U0(n,e,t){return n.a+=e,n.b+=t,n}function nue(n,e,t){return n.a*=e,n.b*=t,n}function o8(n,e,t){return n.a-=e,n.b-=t,n}function Zz(n,e){return n.a=e.a,n.b=e.b,n}function vE(n){return n.a=-n.a,n.b=-n.b,n}function fjn(n){this.c=n,this.a=1,this.b=1}function hjn(n){this.c=n,Zc(n,0),nu(n,0)}function ljn(n){Ct.call(this),V5(this,n)}function ajn(n){yL(),Nmn(this),this.mf(n)}function djn(n,e){Zv(),c8.call(this,n,e)}function nU(n,e){c1(),wE.call(this,n,e)}function bjn(n,e){c1(),wE.call(this,n,e)}function wjn(n,e){c1(),nU.call(this,n,e)}function qu(n,e,t){Wu.call(this,n,e,t,2)}function JO(n,e){ms(),FE.call(this,n,e)}function gjn(n,e){ms(),JO.call(this,n,e)}function eU(n,e){ms(),JO.call(this,n,e)}function pjn(n,e){ms(),eU.call(this,n,e)}function tU(n,e){ms(),FE.call(this,n,e)}function vjn(n,e){ms(),tU.call(this,n,e)}function mjn(n,e){ms(),FE.call(this,n,e)}function eue(n,e){return n.c.Fc(u(e,133))}function iU(n,e,t){return jM(G8(n,e),t)}function tue(n,e,t){return e.Qk(n.e,n.c,t)}function iue(n,e,t){return e.Rk(n.e,n.c,t)}function YO(n,e){return pl(n.e,u(e,49))}function rue(n,e,t){s6(Ou(n.a),e,IMn(t))}function cue(n,e,t){s6(bc(n.a),e,PMn(t))}function rU(n,e){e.$modCount=n.$modCount}function C5(){C5=N,Xm=new kt("root")}function o3(){o3=N,xy=new w9n,new g9n}function kjn(){this.a=new Od,this.b=new Od}function cU(){RIn.call(this),this.Bb|=Yi}function yjn(){Oe.call(this,"GROW_TREE",0)}function uue(n){return n==null?null:CCe(n)}function sue(n){return n==null?null:D5e(n)}function oue(n){return n==null?null:Lr(n)}function fue(n){return n==null?null:Lr(n)}function Ph(n){n.o==null&&u9e(n)}function sn(n){return A5(n==null||q0(n)),n}function Y(n){return A5(n==null||G0(n)),n}function Te(n){return A5(n==null||mi(n)),n}function uU(n){this.q=new j.Date($d(n))}function f8(n,e){this.c=n,Yp.call(this,n,e)}function mE(n,e){this.a=n,f8.call(this,n,e)}function hue(n,e){this.d=n,Ovn(this),this.b=e}function sU(n,e){P$.call(this,n),this.a=e}function oU(n,e){P$.call(this,n),this.a=e}function lue(n){xQ.call(this,0,0),this.f=n}function fU(n,e,t){IC.call(this,n,e,t,null)}function jjn(n,e,t){IC.call(this,n,e,t,null)}function aue(n,e,t){return n.ue(e,t)<=0?t:e}function due(n,e,t){return n.ue(e,t)<=0?e:t}function bue(n,e){return u(xd(n.b,e),149)}function wue(n,e){return u(xd(n.c,e),229)}function ZO(n){return u(un(n.a,n.b),287)}function Ejn(n){return new fn(n.c,n.d+n.a)}function Cjn(n){return Zu(),syn(u(n,197))}function W0(){W0=N,prn=Cn((Vu(),id))}function gue(n,e){e.a?e7e(n,e):zO(n.a,e.b)}function Tjn(n,e){pf||W(n.a,e)}function pue(n,e){return H9(),K3(e.d.i,n)}function vue(n,e){return x2(),new ABn(e,n)}function Of(n,e){return T8(e,ann),n.f=e,n}function hU(n,e,t){return t=ss(n,e,3,t),t}function lU(n,e,t){return t=ss(n,e,6,t),t}function aU(n,e,t){return t=ss(n,e,9,t),t}function h8(n,e,t){++n.j,n.Ki(),A$(n,e,t)}function Mjn(n,e,t){++n.j,n.Hi(e,n.oi(e,t))}function Ajn(n,e,t){var i;i=n.Zc(e),i.Rb(t)}function Sjn(n,e,t){return MZ(n.c,n.b,e,t)}function dU(n,e){return(e&nt)%n.d.length}function ii(n,e){kt.call(this,n),this.a=e}function bU(n,e){xq.call(this,n),this.a=e}function nD(n,e){xq.call(this,n),this.a=e}function Pjn(n,e){this.c=n,Ld.call(this,e)}function Ijn(n,e){this.a=n,Omn.call(this,e)}function l8(n,e){this.a=n,Omn.call(this,e)}function Ojn(n){this.a=(is(n,Pb),new Pc(n))}function Djn(n){this.a=(is(n,Pb),new Pc(n))}function a8(n){return!n.a&&(n.a=new Rr),n.a}function $jn(n){return n>8?0:n+1}function mue(n,e){return qn(),n==e?0:n?1:-1}function wU(n,e,t){return m2(n,u(e,22),t)}function kue(n,e,t){return n.apply(e,t)}function Fjn(n,e,t){return n.a+=Hs(e,0,t),n}function gU(n,e){var t;return t=n.e,n.e=e,t}function yue(n,e){var t;t=n[eN],t.call(n,e)}function jue(n,e){var t;t=n[eN],t.call(n,e)}function X0(n,e){n.a.Vc(n.b,e),++n.b,n.c=-1}function xjn(n){Eu(n.e),n.d.b=n.d,n.d.a=n.d}function d8(n){n.b?d8(n.b):n.f.c.zc(n.e,n.d)}function Eue(n,e,t){ca(),Svn(n,e.Ce(n.a,t))}function Cue(n,e){return nO(p$n(n.a,e,!0))}function Tue(n,e){return nO(v$n(n.a,e,!0))}function bo(n,e){return pj(new Array(e),n)}function eD(n){return String.fromCharCode(n)}function Mue(n){return n==null?null:n.message}function Ljn(){this.a=new X,this.b=new X}function Njn(){this.a=new LH,this.b=new Umn}function Bjn(){this.b=new Li,this.c=new X}function pU(){this.d=new Li,this.e=new Li}function vU(){this.n=new Li,this.o=new Li}function kE(){this.n=new i2,this.i=new d2}function Rjn(){this.a=new v4n,this.b=new cwn}function _jn(){this.a=new X,this.d=new X}function Kjn(){this.b=new fi,this.a=new fi}function Hjn(){this.b=new we,this.a=new we}function qjn(){this.b=new E8n,this.a=new sgn}function Gjn(){kE.call(this),this.a=new Li}function T5(n){Jbe.call(this,n,(FC(),vR))}function mU(n,e,t,i){xE.call(this,n,e,t,i)}function Aue(n,e,t){t!=null&&JC(e,rx(n,t))}function Sue(n,e,t){t!=null&&YC(e,rx(n,t))}function kU(n,e,t){return t=ss(n,e,11,t),t}function ot(n,e){return n.a+=e.a,n.b+=e.b,n}function ki(n,e){return n.a-=e.a,n.b-=e.b,n}function Pue(n,e){return n.n.a=(_n(e),e+10)}function Iue(n,e){return n.n.a=(_n(e),e+10)}function Oue(n,e){return e==n||o4(sM(e),n)}function zjn(n,e){return it(n.a,e,"")==null}function Due(n,e){return H9(),!K3(e.d.i,n)}function $ue(n,e){tl(n.f)?Qme(n,e):Fve(n,e)}function Fue(n,e){var t;return t=e.Hh(n.a),t}function V0(n,e){vr.call(this,rm+n+Ra+e)}function g2(n,e,t,i){V.call(this,n,e,t,i)}function yU(n,e,t,i){V.call(this,n,e,t,i)}function Ujn(n,e,t,i){yU.call(this,n,e,t,i)}function Wjn(n,e,t,i){zE.call(this,n,e,t,i)}function tD(n,e,t,i){zE.call(this,n,e,t,i)}function jU(n,e,t,i){zE.call(this,n,e,t,i)}function Xjn(n,e,t,i){tD.call(this,n,e,t,i)}function EU(n,e,t,i){tD.call(this,n,e,t,i)}function Fn(n,e,t,i){jU.call(this,n,e,t,i)}function Vjn(n,e,t,i){EU.call(this,n,e,t,i)}function Qjn(n,e,t,i){yW.call(this,n,e,t,i)}function Jjn(n,e,t){this.a=n,Vz.call(this,e,t)}function Yjn(n,e,t){this.c=e,this.b=t,this.a=n}function xue(n,e,t){return n.d=u(e.Kb(t),164)}function CU(n,e){return n.Aj().Nh().Kh(n,e)}function TU(n,e){return n.Aj().Nh().Ih(n,e)}function Zjn(n,e){return _n(n),B(n)===B(e)}function An(n,e){return _n(n),B(n)===B(e)}function iD(n,e){return nO(p$n(n.a,e,!1))}function rD(n,e){return nO(v$n(n.a,e,!1))}function Lue(n,e){return n.b.sd(new D7n(n,e))}function Nue(n,e){return n.b.sd(new $7n(n,e))}function nEn(n,e){return n.b.sd(new F7n(n,e))}function MU(n,e,t){return n.lastIndexOf(e,t)}function Bue(n,e,t){return Zt(n[e.b],n[t.b])}function Rue(n,e){return H(e,(nn(),Jk),n)}function _ue(n,e){return Uc(e.a.d.p,n.a.d.p)}function Kue(n,e){return Uc(n.a.d.p,e.a.d.p)}function Hue(n,e){return Zt(n.c-n.s,e.c-e.s)}function eEn(n){return n.c?Fr(n.c.a,n,0):-1}function que(n){return n<100?null:new Q1(n)}function p2(n){return n==td||n==jh||n==Ac}function tEn(n,e){return I(e,15)&&oBn(n.c,e)}function Gue(n,e){pf||e&&(n.d=e)}function cD(n,e){var t;return t=e,!!VV(n,t)}function AU(n,e){this.c=n,DD.call(this,n,e)}function iEn(n){this.c=n,FO.call(this,IM,0)}function rEn(n,e){Voe.call(this,n,n.length,e)}function zue(n,e,t){return u(n.c,69).lk(e,t)}function yE(n,e,t){return u(n.c,69).mk(e,t)}function Uue(n,e,t){return tue(n,u(e,332),t)}function SU(n,e,t){return iue(n,u(e,332),t)}function Wue(n,e,t){return txn(n,u(e,332),t)}function cEn(n,e,t){return zve(n,u(e,332),t)}function M5(n,e){return e==null?null:ab(n.b,e)}function PU(n){return G0(n)?(_n(n),n):n.ke()}function jE(n){return!isNaN(n)&&!isFinite(n)}function uEn(n){Df(),this.a=(Pn(),new Wp(n))}function b8(n){h3(),this.d=n,this.a=new gw}function ks(n,e,t){this.a=n,this.b=e,this.c=t}function sEn(n,e,t){this.a=n,this.b=e,this.c=t}function oEn(n,e,t){this.d=n,this.b=t,this.a=e}function uD(n){yyn(this),_s(this),Vi(this,n)}function du(n){RO(this),GU(this.c,0,n.Pc())}function fEn(n){Uu(n.a),uPn(n.c,n.b),n.b=null}function hEn(n){this.a=n,Zf(),eu(Date.now())}function lEn(){lEn=N,Xin=new ou,XA=new ou}function sD(){sD=N,Rin=new iln,Pzn=new rln}function aEn(){aEn=N,Nne=F(Zn,rn,1,0,5,1)}function dEn(){dEn=N,eee=F(Zn,rn,1,0,5,1)}function IU(){IU=N,tee=F(Zn,rn,1,0,5,1)}function Df(){Df=N,new Bq((Pn(),Pn(),cr))}function Xue(n){return FC(),$e((pPn(),Dzn),n)}function Vue(n){return hf(),$e((LSn(),Bzn),n)}function Que(n){return $T(),$e((qAn(),Gzn),n)}function Jue(n){return RC(),$e((GAn(),zzn),n)}function Yue(n){return dM(),$e((IOn(),Uzn),n)}function Zue(n){return _o(),$e(($Sn(),Vzn),n)}function nse(n){return Cu(),$e((FSn(),Jzn),n)}function ese(n){return Jc(),$e((xSn(),Zzn),n)}function tse(n){return SM(),$e((Ukn(),jUn),n)}function ise(n){return Hd(),$e((mPn(),CUn),n)}function rse(n){return K2(),$e((kPn(),MUn),n)}function cse(n){return d6(),$e((yPn(),PUn),n)}function use(n){return Aj(),$e((yAn(),IUn),n)}function sse(n){return _C(),$e((zAn(),WUn),n)}function ose(n){return W5(),$e((NSn(),bWn),n)}function fse(n){return Qi(),$e((JPn(),vWn),n)}function hse(n){return G3(),$e((vPn(),EWn),n)}function lse(n){return qd(),$e((BSn(),PWn),n)}function OU(n,e){if(!n)throw T(new Hn(e))}function ase(n){return Qn(),$e((vIn(),$Wn),n)}function DU(n){xE.call(this,n.d,n.c,n.a,n.b)}function oD(n){xE.call(this,n.d,n.c,n.a,n.b)}function $U(n,e,t){this.b=n,this.c=e,this.a=t}function EE(n,e,t){this.b=n,this.a=e,this.c=t}function bEn(n,e,t){this.a=n,this.b=e,this.c=t}function FU(n,e,t){this.a=n,this.b=e,this.c=t}function wEn(n,e,t){this.a=n,this.b=e,this.c=t}function xU(n,e,t){this.a=n,this.b=e,this.c=t}function gEn(n,e,t){this.b=n,this.a=e,this.c=t}function CE(n,e,t){this.e=e,this.b=n,this.d=t}function dse(n,e,t){return ca(),n.a.Od(e,t),e}function fD(n){var e;return e=new Dln,e.e=n,e}function LU(n){var e;return e=new Zmn,e.b=n,e}function w8(){w8=N,sS=new Fdn,oS=new xdn}function wo(){wo=N,WWn=new pbn,XWn=new vbn}function bse(n){return aT(),$e((EPn(),HWn),n)}function wse(n){return ff(),$e((TPn(),JWn),n)}function gse(n){return lM(),$e((mOn(),cXn),n)}function pse(n){return q2(),$e((yIn(),uXn),n)}function vse(n){return OC(),$e((JAn(),sXn),n)}function mse(n){return F2(),$e((RSn(),oXn),n)}function kse(n){return Vw(),$e((UPn(),ZWn),n)}function yse(n){return Kd(),$e((HSn(),rXn),n)}function jse(n){return VC(),$e((_Sn(),fXn),n)}function Ese(n){return Pa(),$e((GPn(),hXn),n)}function Cse(n){return V8(),$e((WAn(),lXn),n)}function Tse(n){return ya(),$e((KSn(),dXn),n)}function Mse(n){return eM(),$e((TIn(),bXn),n)}function Ase(n){return K8(),$e((XAn(),wXn),n)}function Sse(n){return A7(),$e((EIn(),gXn),n)}function Pse(n){return h4(),$e((jIn(),pXn),n)}function Ise(n){return or(),$e((zOn(),vXn),n)}function Ose(n){return q3(),$e((GSn(),mXn),n)}function Dse(n){return Nh(),$e((qSn(),yXn),n)}function $se(n){return kC(),$e((YAn(),jXn),n)}function Fse(n){return Ss(),$e((WPn(),EXn),n)}function xse(n){return JT(),$e((CIn(),BQn),n)}function Lse(n){return i6(),$e((zSn(),RQn),n)}function Nse(n){return wb(),$e((MPn(),_Qn),n)}function Bse(n){return ur(),$e((XSn(),UQn),n)}function Rse(n){return Zw(),$e((vOn(),HQn),n)}function _se(n){return Rh(),$e((WSn(),qQn),n)}function Kse(n){return z8(),$e((QAn(),GQn),n)}function Hse(n){return oT(),$e((USn(),WQn),n)}function qse(n){return b6(),$e((zPn(),KQn),n)}function Gse(n){return x8(),$e((VAn(),XQn),n)}function zse(n){return Q3(),$e((QSn(),VQn),n)}function Use(n){return uT(),$e((JSn(),QQn),n)}function Wse(n){return dT(),$e((VSn(),JQn),n)}function Xse(n){return _d(),$e((YSn(),hJn),n)}function Vse(n){return z5(),$e((nSn(),wJn),n)}function Qse(n){return Ff(),$e((eSn(),jJn),n)}function Jse(n){return ef(),$e((tSn(),CJn),n)}function Yse(n){return No(),$e((ZAn(),RJn),n)}function Zse(n){return Id(),$e((iSn(),UJn),n)}function noe(n){return c4(),$e((jPn(),WJn),n)}function eoe(n){return k6(),$e((MIn(),VJn),n)}function toe(n){return aC(),$e((uSn(),fYn),n)}function ioe(n){return iT(),$e((cSn(),wYn),n)}function roe(n){return gC(),$e((rSn(),hYn),n)}function coe(n){return CT(),$e((ZSn(),pYn),n)}function uoe(n){return $C(),$e((sSn(),vYn),n)}function soe(n){return f7(),$e((nPn(),mYn),n)}function ooe(n){return qT(),$e((CPn(),FYn),n)}function foe(n){return sT(),$e((tPn(),xYn),n)}function hoe(n){return ET(),$e((ePn(),LYn),n)}function loe(n){return g4(),$e((QPn(),tZn),n)}function aoe(n){return w7(),$e((iPn(),iZn),n)}function doe(n){return Pj(),$e((mAn(),rZn),n)}function boe(n){return Ij(),$e((vAn(),uZn),n)}function woe(n){return L8(),$e((fSn(),sZn),n)}function goe(n){return P7(),$e((XPn(),oZn),n)}function poe(n){return Jv(),$e((kAn(),CZn),n)}function voe(n){return c7(),$e((oSn(),TZn),n)}function moe(n){return Ho(),$e((VPn(),OZn),n)}function koe(n){return y1(),$e((kOn(),$Zn),n)}function yoe(n){return oh(),$e((kIn(),FZn),n)}function joe(n){return vb(),$e((mIn(),_Zn),n)}function Eoe(n){return rr(),$e((Wkn(),RWn),n)}function Coe(n){return B3(),$e((UAn(),BWn),n)}function Toe(n){return sr(),$e((YPn(),ene),n)}function Moe(n){return sf(),$e((cPn(),tne),n)}function Aoe(n){return Hh(),$e((PPn(),ine),n)}function Soe(n){return ZT(),$e((SIn(),rne),n)}function Poe(n){return _h(),$e((rPn(),une),n)}function Ioe(n){return cs(),$e((SPn(),one),n)}function Ooe(n){return jb(),$e((POn(),fne),n)}function Doe(n){return qw(),$e((ZPn(),hne),n)}function $oe(n){return Ti(),$e((bIn(),lne),n)}function Foe(n){return Tu(),$e((AIn(),ane),n)}function xoe(n){return Vu(),$e((OPn(),vne),n)}function Loe(n){return xu(),$e((UOn(),mne),n)}function Noe(n){return J(),$e((nIn(),dne),n)}function Boe(n){return AT(),$e((IPn(),kne),n)}function Roe(n){return Xu(),$e((APn(),Ene),n)}function _oe(n){return d4(),$e((yOn(),Lne),n)}function Koe(n,e){return _n(n),n+(_n(e),e)}function Hoe(n,e){return Zf(),me(R(n.a),e)}function qoe(n,e){return Zf(),me(R(n.a),e)}function hD(n,e){this.c=n,this.a=e,this.b=e-n}function pEn(n,e,t){this.a=n,this.b=e,this.c=t}function NU(n,e,t){this.a=n,this.b=e,this.c=t}function BU(n,e,t){this.a=n,this.b=e,this.c=t}function vEn(n,e,t){this.a=n,this.b=e,this.c=t}function mEn(n,e,t){this.a=n,this.b=e,this.c=t}function s1(n,e,t){this.e=n,this.a=e,this.c=t}function kEn(n,e,t){ms(),QW.call(this,n,e,t)}function lD(n,e,t){ms(),FW.call(this,n,e,t)}function RU(n,e,t){ms(),FW.call(this,n,e,t)}function _U(n,e,t){ms(),FW.call(this,n,e,t)}function yEn(n,e,t){ms(),lD.call(this,n,e,t)}function KU(n,e,t){ms(),lD.call(this,n,e,t)}function jEn(n,e,t){ms(),KU.call(this,n,e,t)}function EEn(n,e,t){ms(),RU.call(this,n,e,t)}function CEn(n,e,t){ms(),_U.call(this,n,e,t)}function g8(n,e){return pe(n),pe(e),new z8n(n,e)}function v2(n,e){return pe(n),pe(e),new NEn(n,e)}function Goe(n,e){return pe(n),pe(e),new BEn(n,e)}function zoe(n,e){return pe(n),pe(e),new W8n(n,e)}function u(n,e){return A5(n==null||WF(n,e)),n}function f3(n){var e;return e=new X,_$(e,n),e}function Uoe(n){var e;return e=new fi,_$(e,n),e}function TEn(n){var e;return e=new Wq,nF(e,n),e}function p8(n){var e;return e=new Ct,nF(e,n),e}function Woe(n){return!n.e&&(n.e=new X),n.e}function Xoe(n){return!n.c&&(n.c=new Bp),n.c}function W(n,e){return n.c[n.c.length]=e,!0}function MEn(n,e){this.c=n,this.b=e,this.a=!1}function HU(n){this.d=n,Ovn(this),this.b=_fe(n.d)}function AEn(){this.a=";,;",this.b="",this.c=""}function Voe(n,e,t){SCn.call(this,e,t),this.a=n}function SEn(n,e,t){this.b=n,Hkn.call(this,e,t)}function qU(n,e,t){this.c=n,Nj.call(this,e,t)}function GU(n,e,t){aY(t,0,n,e,t.length,!1)}function eh(n,e,t,i,r){n.b=e,n.c=t,n.d=i,n.a=r}function Qoe(n,e){e&&(n.b=e,n.a=(fl(e),e.a))}function zU(n,e,t,i,r){n.d=e,n.c=t,n.a=i,n.b=r}function UU(n){var e,t;e=n.b,t=n.c,n.b=t,n.c=e}function WU(n){var e,t;t=n.d,e=n.a,n.d=e,n.a=t}function XU(n){return bl(the($r(n)?Ks(n):n))}function Joe(n,e){return Uc(GEn(n.d),GEn(e.d))}function Yoe(n,e){return e==(J(),Gn)?n.c:n.d}function h3(){h3=N,don=(J(),Gn),dP=Vn}function PEn(){this.b=K(Y(cn((Go(),xR))))}function IEn(n){return ca(),F(Zn,rn,1,n,5,1)}function Zoe(n){return new fn(n.c+n.b,n.d+n.a)}function nfe(n,e){return Sj(),Uc(n.d.p,e.d.p)}function aD(n){return ne(n.b!=0),Ts(n,n.a.a)}function efe(n){return ne(n.b!=0),Ts(n,n.c.b)}function VU(n,e){if(!n)throw T(new R9n(e))}function TE(n,e){if(!n)throw T(new Hn(e))}function QU(n,e,t){t3.call(this,n,e),this.b=t}function v8(n,e,t){lz.call(this,n,e),this.c=t}function OEn(n,e,t){oIn.call(this,e,t),this.d=n}function JU(n){IU(),Yy.call(this),this.th(n)}function DEn(n,e,t){this.a=n,Ew.call(this,e,t)}function $En(n,e,t){this.a=n,Ew.call(this,e,t)}function ME(n,e,t){lz.call(this,n,e),this.c=t}function FEn(){T3(),khe.call(this,(Z1(),uo))}function xEn(n){return n!=null&&!$F(n,a9,d9)}function tfe(n,e){return(GDn(n)<<4|GDn(e))&Ut}function ife(n,e){return QE(),ex(n,e),new oTn(n,e)}function sa(n,e){var t;n.n&&(t=e,W(n.f,t))}function l3(n,e,t){var i;i=new Z0(t),Ro(n,e,i)}function rfe(n,e){var t;return t=n.c,wV(n,e),t}function YU(n,e){return e<0?n.g=-1:n.g=e,n}function AE(n,e){return H0e(n),n.a*=e,n.b*=e,n}function LEn(n,e,t,i,r){n.c=e,n.d=t,n.b=i,n.a=r}function Ke(n,e){return Kt(n,e,n.c.b,n.c),!0}function ZU(n){n.a.b=n.b,n.b.a=n.a,n.a=n.b=null}function dD(n){this.b=n,this.a=Ed(this.b.a).Ed()}function NEn(n,e){this.b=n,this.a=e,TI.call(this)}function BEn(n,e){this.a=n,this.b=e,TI.call(this)}function REn(n,e){SCn.call(this,e,1040),this.a=n}function m8(n){return n==0||isNaN(n)?n:n<0?-1:1}function cfe(n){return C2(),fh(n)==At(ml(n))}function ufe(n){return C2(),ml(n)==At(fh(n))}function jd(n,e){return v6(n,new t3(e.a,e.b))}function sfe(n){return!Xi(n)&&n.c.i.c==n.d.i.c}function SE(n){var e;return e=n.n,n.a.b+e.d+e.a}function _En(n){var e;return e=n.n,n.e.b+e.d+e.a}function nW(n){var e;return e=n.n,n.e.a+e.b+e.c}function KEn(n){return Je(),new th(0,n)}function ofe(n){return n.a?n.a:WD(n)}function A5(n){if(!n)throw T(new Up(null))}function HEn(){HEn=N,mH=(Pn(),new OI(XB))}function PE(){PE=N,new JQ((HI(),uR),(qI(),cR))}function qEn(){qEn=N,jin=F(Wi,q,19,256,0,1)}function bD(n,e,t,i){MQ.call(this,n,e,t,i,0,0)}function ffe(n,e,t){return it(n.b,u(t.b,17),e)}function hfe(n,e,t){return it(n.b,u(t.b,17),e)}function lfe(n,e){return W(n,new fn(e.a,e.b))}function afe(n,e){return n.c=e)throw T(new qq)}function Xfe(n,e,t){return Mt(e,0,rW(e[0],t[0])),e}function Vfe(n,e,t){e.Ye(t,K(Y(te(n.b,t)))*n.a)}function ACn(n,e,t){return eg(),R3(n,e)&&R3(n,t)}function D5(n){return Tu(),!n.Hc(n1)&&!n.Hc(Gl)}function qE(n){return new fn(n.c+n.b/2,n.d+n.a/2)}function MD(n,e){return e.kh()?pl(n.b,u(e,49)):e}function kW(n,e){this.e=n,this.d=e&64?e|Nf:e}function SCn(n,e){this.c=0,this.d=n,this.b=e|64|Nf}function GE(n){this.b=new Pc(11),this.a=(Ow(),n)}function AD(n){this.b=null,this.a=(Ow(),n||Lin)}function PCn(n){this.a=Y$n(n.a),this.b=new du(n.b)}function ICn(n){this.b=n,b2.call(this,n),$yn(this)}function OCn(n){this.b=n,u8.call(this,n),Fyn(this)}function Y0(n,e,t){this.a=n,g2.call(this,e,t,5,6)}function yW(n,e,t,i){this.b=n,Jt.call(this,e,t,i)}function wi(n,e,t,i,r){D$.call(this,n,e,t,i,r,-1)}function $5(n,e,t,i,r){R8.call(this,n,e,t,i,r,-1)}function V(n,e,t,i){Jt.call(this,n,e,t),this.b=i}function zE(n,e,t,i){v8.call(this,n,e,t),this.b=i}function DCn(n){xkn.call(this,n,!1),this.a=!1}function $Cn(n,e){this.b=n,bvn.call(this,n.b),this.a=e}function FCn(n,e){nb(),Yie.call(this,n,mT(new Ku(e)))}function UE(n,e){return Je(),new xW(n,e,0)}function SD(n,e){return Je(),new xW(6,n,e)}function Qfe(n,e){return An(n.substr(0,e.length),e)}function zu(n,e){return mi(e)?QD(n,e):!!Ar(n.f,e)}function Oi(n,e){for(_n(e);n.Ob();)e.td(n.Pb())}function Pw(n,e,t){jl(),this.e=n,this.d=e,this.a=t}function o1(n,e,t,i){var r;r=n.i,r.i=e,r.a=t,r.b=i}function jW(n){var e;for(e=n;e.f;)e=e.f;return e}function y2(n){var e;return e=t6(n),ne(e!=null),e}function Jfe(n){var e;return e=Lge(n),ne(e!=null),e}function d3(n,e){var t;return t=n.a.gc(),$X(e,t),t-e}function EW(n,e){var t;for(t=0;t0?j.Math.log(n/e):-100}function xCn(n,e){return fc(n,e)<0?-1:fc(n,e)>0?1:0}function SW(n,e,t){return MRn(n,u(e,46),u(t,167))}function LCn(n,e){return u(vW(Ed(n.a)).Xb(e),42).cd()}function uhe(n,e){return P0e(e,n.length),new REn(n,e)}function DD(n,e){this.d=n,ie.call(this,n),this.e=e}function Cd(n){this.d=(_n(n),n),this.a=0,this.c=IM}function PW(n,e){cd.call(this,1),this.a=n,this.b=e}function NCn(n,e){return n.c?NCn(n.c,e):W(n.b,e),n}function she(n,e,t){var i;return i=ub(n,e),g$(n,e,t),i}function IW(n,e){var t;return t=n.slice(0,e),WX(t,n)}function BCn(n,e,t){var i;for(i=0;i=n.g}function KD(n,e,t){var i;return i=Y$(n,e,t),rZ(n,i)}function j2(n,e){var t;t=n.a.length,ub(n,t),g$(n,t,e)}function ZCn(n,e){var t;t=console[n],t.call(console,e)}function nTn(n,e){var t;++n.j,t=n.Vi(),n.Ii(n.oi(t,e))}function mhe(n,e,t){u(e.b,65),Yc(e.a,new NU(n,t,e))}function FW(n,e,t){uj.call(this,e),this.a=n,this.b=t}function xW(n,e,t){cd.call(this,n),this.a=e,this.b=t}function LW(n,e,t){this.a=n,xq.call(this,e),this.b=t}function eTn(n,e,t){this.a=n,aX.call(this,8,e,null,t)}function khe(n){this.a=(_n(xe),xe),this.b=n,new tG}function tTn(n){this.c=n,this.b=this.c.a,this.a=this.c.e}function NW(n){this.c=n,this.b=n.a.d.a,rU(n.a.e,this)}function Uu(n){z0(n.c!=-1),n.d.$c(n.c),n.b=n.c,n.c=-1}function L5(n){return j.Math.sqrt(n.a*n.a+n.b*n.b)}function Md(n,e){return a3(e,n.a.c.length),un(n.a,e)}function $f(n,e){return B(n)===B(e)||n!=null&&tt(n,e)}function yhe(n){return 0>=n?new PG:sbe(n-1)}function jhe(n){return aw?QD(aw,n):!1}function iTn(n){return n?n.dc():!n.Kc().Ob()}function Gi(n){return!n.a&&n.c?n.c.b:n.a}function Ehe(n){return!n.a&&(n.a=new Jt(zl,n,4)),n.a}function Ad(n){return!n.d&&(n.d=new Jt(ar,n,1)),n.d}function _n(n){if(n==null)throw T(new Nv);return n}function N5(n){n.c?n.c.He():(n.d=!0,S8e(n))}function fl(n){n.c?fl(n.c):(Ta(n),n.d=!0)}function rTn(n){KW(n.a),n.b=F(Zn,rn,1,n.b.length,5,1)}function Che(n,e){return Uc(e.j.c.length,n.j.c.length)}function The(n,e){n.c<0||n.b.b=0?n.Bh(t):bY(n,e)}function cTn(n){var e,t;return e=n.c.i.c,t=n.d.i.c,e==t}function Ahe(n){if(n.p!=4)throw T(new fu);return n.e}function She(n){if(n.p!=3)throw T(new fu);return n.e}function Phe(n){if(n.p!=6)throw T(new fu);return n.f}function Ihe(n){if(n.p!=6)throw T(new fu);return n.k}function Ohe(n){if(n.p!=3)throw T(new fu);return n.j}function Dhe(n){if(n.p!=4)throw T(new fu);return n.j}function BW(n){return!n.b&&(n.b=new sj(new KI)),n.b}function Sd(n){return n.c==-2&&Pte(n,Qve(n.g,n.b)),n.c}function g3(n,e){var t;return t=LD("",n),t.n=e,t.i=1,t}function $he(n,e){yD(u(e.b,65),n),Yc(e.a,new Aq(n))}function Fhe(n,e){me((!n.a&&(n.a=new l8(n,n)),n.a),e)}function uTn(n,e){this.b=n,DD.call(this,n,e),$yn(this)}function sTn(n,e){this.b=n,AU.call(this,n,e),Fyn(this)}function RW(n,e,t,i){bd.call(this,n,e),this.d=t,this.a=i}function VE(n,e,t,i){bd.call(this,n,t),this.a=e,this.f=i}function oTn(n,e){bce.call(this,obe(pe(n),pe(e))),this.a=e}function fTn(){UJ.call(this,Ka,(a8n(),hee)),tEe(this)}function hTn(){UJ.call(this,Vs,(Qp(),g1n)),lje(this)}function lTn(){Oe.call(this,"DELAUNAY_TRIANGULATION",0)}function xhe(n){return String.fromCharCode.apply(null,n)}function it(n,e,t){return mi(e)?kr(n,e,t):_c(n.f,e,t)}function _W(n){return Pn(),n?n.ve():(Ow(),Ow(),Bin)}function Lhe(n,e,t){return L2(),t.pg(n,u(e.cd(),146))}function aTn(n,e){return PE(),new JQ(new Wyn(n),new Uyn(e))}function Nhe(n){return is(n,AL),KC(qi(qi(5,n),n/10|0))}function QE(){QE=N,fzn=new GI(A(M(Ha,1),OM,42,0,[]))}function dTn(n){return!n.d&&(n.d=new _p(n.c.Cc())),n.d}function p3(n){return!n.a&&(n.a=new W9n(n.c.vc())),n.a}function bTn(n){return!n.b&&(n.b=new Wp(n.c.ec())),n.b}function rh(n,e){for(;e-- >0;)n=n<<1|(n<0?1:0);return n}function pc(n,e){return B(n)===B(e)||n!=null&&tt(n,e)}function Bhe(n,e){return qn(),u(e.b,19).ai&&++i,i}function Oh(n){var e,t;return t=(e=new ud,e),O3(t,n),t}function UD(n){var e,t;return t=(e=new ud,e),VJ(t,n),t}function Zhe(n,e){var t;return t=te(n.f,e),MV(e,t),null}function WD(n){var e;return e=hbe(n),e||null}function CTn(n){return!n.b&&(n.b=new V(di,n,12,3)),n.b}function n1e(n){return n!=null&&_9(tI,n.toLowerCase())}function e1e(n,e){return Zt(bu(n)*Gu(n),bu(e)*Gu(e))}function t1e(n,e){return Zt(bu(n)*Gu(n),bu(e)*Gu(e))}function i1e(n,e){return Zt(n.d.c+n.d.b/2,e.d.c+e.d.b/2)}function r1e(n,e){return Zt(n.g.c+n.g.b/2,e.g.c+e.g.b/2)}function TTn(n,e,t){t.a?nu(n,e.b-n.f/2):Zc(n,e.a-n.g/2)}function MTn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function ATn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function ha(n,e,t,i){this.e=n,this.a=e,this.c=t,this.d=i}function STn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function PTn(n,e,t,i){ms(),ySn.call(this,e,t,i),this.a=n}function ITn(n,e,t,i){ms(),ySn.call(this,e,t,i),this.a=n}function OTn(n,e){this.a=n,hue.call(this,n,u(n.d,15).Zc(e))}function XD(n){this.f=n,this.c=this.f.e,n.f>0&&qFn(this)}function DTn(n,e,t,i){this.b=n,this.c=i,FO.call(this,e,t)}function $Tn(n){return ne(n.b=0&&An(n.substr(t,e.length),e)}function hl(n,e,t,i,r,c,o){return new v$(n.e,e,t,i,r,c,o)}function QTn(n,e,t,i,r,c){this.a=n,z$.call(this,e,t,i,r,c)}function JTn(n,e,t,i,r,c){this.a=n,z$.call(this,e,t,i,r,c)}function YTn(n,e){this.g=n,this.d=A(M(vh,1),E1,10,0,[e])}function f1(n,e){this.e=n,this.a=Zn,this.b=yBn(e),this.c=e}function ZTn(n,e){kE.call(this),eV(this),this.a=n,this.c=e}function M8(n,e,t,i){Mt(n.c[e.g],t.g,i),Mt(n.c[t.g],e.g,i)}function ZD(n,e,t,i){Mt(n.c[e.g],e.g,t),Mt(n.b[e.g],e.g,i)}function M1e(){return x8(),A(M(ron,1),z,376,0,[uK,iy])}function A1e(){return K8(),A(M(Qcn,1),z,479,0,[Vcn,xS])}function S1e(){return V8(),A(M(Wcn,1),z,419,0,[$S,Ucn])}function P1e(){return OC(),A(M(Rcn,1),z,422,0,[Bcn,s_])}function I1e(){return kC(),A(M(fun,1),z,420,0,[j_,oun])}function O1e(){return z8(),A(M(non,1),z,421,0,[iK,rK])}function D1e(){return z5(),A(M(bJn,1),z,523,0,[Hm,Km])}function $1e(){return No(),A(M(BJn,1),z,520,0,[tw,Bl])}function F1e(){return Ff(),A(M(yJn,1),z,516,0,[M0,I1])}function x1e(){return ef(),A(M(EJn,1),z,515,0,[Ja,kf])}function L1e(){return Id(),A(M(zJn,1),z,455,0,[Rl,Lg])}function N1e(){return gC(),A(M(Son,1),z,425,0,[yK,Aon])}function B1e(){return aC(),A(M(Mon,1),z,480,0,[kK,Ton])}function R1e(){return iT(),A(M(Pon,1),z,495,0,[EP,mv])}function _1e(){return $C(),A(M(Oon,1),z,426,0,[Ion,TK])}function K1e(){return c7(),A(M(Ffn,1),z,429,0,[DP,$fn])}function H1e(){return L8(),A(M(afn,1),z,430,0,[FK,IP])}function q1e(){return $T(),A(M(Jin,1),z,428,0,[yR,Qin])}function G1e(){return RC(),A(M(Zin,1),z,427,0,[Yin,jR])}function z1e(){return _C(),A(M(Arn,1),z,424,0,[$R,tS])}function U1e(){return B3(),A(M(NWn,1),z,511,0,[_k,UR])}function sC(n,e,t,i){return t>=0?n.jh(e,t,i):n.Sg(null,t,i)}function n$(n){return n.b.b==0?n.a.$e():aD(n.b)}function W1e(n){if(n.p!=5)throw T(new fu);return ge(n.f)}function X1e(n){if(n.p!=5)throw T(new fu);return ge(n.k)}function VW(n){return B(n.a)===B((eF(),gH))&&Vje(n),n.a}function nMn(n){this.a=u(pe(n),271),this.b=(Pn(),new Hz(n))}function eMn(n,e){bte(this,new fn(n.a,n.b)),wte(this,p8(e))}function Id(){Id=N,Rl=new iz(Y2,0),Lg=new iz(Z2,1)}function Ff(){Ff=N,M0=new ez(Z2,0),I1=new ez(Y2,1)}function Od(){rie.call(this,new s2(sb(12))),Bz(!0),this.a=2}function e$(n,e,t){Je(),cd.call(this,n),this.b=e,this.a=t}function QW(n,e,t){ms(),uj.call(this,e),this.a=n,this.b=t}function tMn(n){kE.call(this),eV(this),this.a=n,this.c=!0}function iMn(n){var e;e=n.c.d.b,n.b=e,n.a=n.c.d,e.a=n.c.d.b=n}function oC(n){var e;ebe(n.a),byn(n.a),e=new tj(n.a),TQ(e)}function V1e(n,e){aBn(n,!0),Yc(n.e.wf(),new $U(n,!0,e))}function fC(n,e){return LAn(e),Y0e(n,F(be,Le,25,e,15,1),e)}function Q1e(n,e){return C2(),n==At(fh(e))||n==At(ml(e))}function vc(n,e){return e==null?Vr(Ar(n.f,null)):n5(n.g,e)}function J1e(n){return n.b==0?null:(ne(n.b!=0),Ts(n,n.a.a))}function Gt(n){return Math.max(Math.min(n,nt),-2147483648)|0}function Y1e(n,e){var t=lR[n.charCodeAt(0)];return t??n}function hC(n,e){return tC(n,"set1"),tC(e,"set2"),new Z8n(n,e)}function Z1e(n,e){var t;return t=W0e(n.f,e),ot(vE(t),n.f.d)}function R5(n,e){var t,i;return t=e,i=new dI,n_n(n,t,i),i.d}function t$(n,e,t,i){var r;r=new Gjn,e.a[t.g]=r,m2(n.b,i,r)}function JW(n,e,t){var i;i=n.Yg(e),i>=0?n.sh(i,t):_Y(n,e,t)}function Dw(n,e,t){dC(),n&&it(dH,n,e),n&&it($y,n,t)}function rMn(n,e,t){this.i=new X,this.b=n,this.g=e,this.a=t}function lC(n,e,t){this.c=new X,this.e=n,this.f=e,this.b=t}function YW(n,e,t){this.a=new X,this.e=n,this.f=e,this.c=t}function cMn(n,e){oE(this),this.f=e,this.g=n,eC(this),this._d()}function A8(n,e){var t;t=n.q.getHours(),n.q.setDate(e),S6(n,t)}function uMn(n,e){var t;for(pe(e),t=n.a;t;t=t.c)e.Od(t.g,t.i)}function sMn(n){var e;return e=new kj(sb(n.length)),qV(e,n),e}function nle(n){function e(){}return e.prototype=n||{},new e}function ele(n,e){return LOn(n,e)?(FIn(n),!0):!1}function Dh(n,e){if(e==null)throw T(new Nv);return Y2e(n,e)}function tle(n){if(n.qe())return null;var e=n.n;return RA[e]}function S8(n){return n.Db>>16!=3?null:u(n.Cb,33)}function nf(n){return n.Db>>16!=9?null:u(n.Cb,33)}function oMn(n){return n.Db>>16!=6?null:u(n.Cb,79)}function fMn(n){return n.Db>>16!=7?null:u(n.Cb,235)}function hMn(n){return n.Db>>16!=7?null:u(n.Cb,160)}function At(n){return n.Db>>16!=11?null:u(n.Cb,33)}function lMn(n,e){var t;return t=n.Yg(e),t>=0?n.lh(t):Ox(n,e)}function aMn(n,e){var t;return t=new iW(e),dxn(t,n),new du(t)}function ZW(n){var e;return e=n.d,e=n.si(n.f),me(n,e),e.Ob()}function dMn(n,e){return n.b+=e.b,n.c+=e.c,n.d+=e.d,n.a+=e.a,n}function i$(n,e){return j.Math.abs(n)0}function bMn(){this.a=new Sh,this.e=new fi,this.g=0,this.i=0}function wMn(n){this.a=n,this.b=F(lJn,q,1944,n.e.length,0,2)}function r$(n,e,t){var i;i=tDn(n,e,t),n.b=new tT(i.c.length)}function ef(){ef=N,Ja=new nz(hN,0),kf=new nz("UP",1)}function aC(){aC=N,kK=new rz(PHn,0),Ton=new rz("FAN",1)}function dC(){dC=N,dH=new we,$y=new we,Ere(Azn,new z2n)}function rle(n){if(n.p!=0)throw T(new fu);return b5(n.f,0)}function cle(n){if(n.p!=0)throw T(new fu);return b5(n.k,0)}function gMn(n){return n.Db>>16!=3?null:u(n.Cb,147)}function y3(n){return n.Db>>16!=6?null:u(n.Cb,235)}function eb(n){return n.Db>>16!=17?null:u(n.Cb,26)}function pMn(n,e){var t=n.a=n.a||[];return t[e]||(t[e]=n.le(e))}function ule(n,e){var t;return t=n.a.get(e),t??new Array}function sle(n,e){var t;t=n.q.getHours(),n.q.setMonth(e),S6(n,t)}function kr(n,e,t){return e==null?_c(n.f,null,t):Gd(n.g,e,t)}function _5(n,e,t,i,r,c){return new Lh(n.e,e,n.aj(),t,i,r,c)}function P8(n,e,t){return n.a=Yu(n.a,0,e)+(""+t)+r8(n.a,e),n}function ole(n,e,t){return W(n.a,(QE(),ex(e,t),new bd(e,t))),n}function nX(n){return _z(n.c),n.e=n.a=n.c,n.c=n.c.c,++n.d,n.a.f}function vMn(n){return _z(n.e),n.c=n.a=n.e,n.e=n.e.e,--n.d,n.a.f}function Ei(n,e){n.d&&Qc(n.d.e,n),n.d=e,n.d&&W(n.d.e,n)}function Hi(n,e){n.c&&Qc(n.c.g,n),n.c=e,n.c&&W(n.c.g,n)}function yr(n,e){n.c&&Qc(n.c.a,n),n.c=e,n.c&&W(n.c.a,n)}function Hr(n,e){n.i&&Qc(n.i.j,n),n.i=e,n.i&&W(n.i.j,n)}function mMn(n,e,t){this.a=e,this.c=n,this.b=(pe(t),new du(t))}function kMn(n,e,t){this.a=e,this.c=n,this.b=(pe(t),new du(t))}function yMn(n,e){this.a=n,this.c=Qr(this.a),this.b=new uC(e)}function fle(n){var e;return Ta(n),e=new fi,gt(n,new Vvn(e))}function tb(n,e){if(n<0||n>e)throw T(new vr(cnn+n+unn+e))}function eX(n,e){return lCn(n.a,e)?TW(n,u(e,22).g,null):null}function hle(n){return yF(),qn(),u(n.a,81).d.e!=0}function jMn(){jMn=N,azn=Fe((aj(),A(M(lzn,1),z,538,0,[fR])))}function EMn(){EMn=N,YQn=ju(new hi,(Qi(),Ir),(rr(),Kk))}function tX(){tX=N,ZQn=ju(new hi,(Qi(),Ir),(rr(),Kk))}function CMn(){CMn=N,eJn=ju(new hi,(Qi(),Ir),(rr(),Kk))}function TMn(){TMn=N,gJn=Ze(new hi,(Qi(),Ir),(rr(),km))}function Zu(){Zu=N,mJn=Ze(new hi,(Qi(),Ir),(rr(),km))}function MMn(){MMn=N,kJn=Ze(new hi,(Qi(),Ir),(rr(),km))}function c$(){c$=N,TJn=Ze(new hi,(Qi(),Ir),(rr(),km))}function AMn(){AMn=N,lYn=ju(new hi,(c4(),Gm),(k6(),lK))}function aa(n,e,t,i){this.c=n,this.d=i,s$(this,e),o$(this,t)}function M2(n){this.c=new Ct,this.b=n.b,this.d=n.c,this.a=n.a}function u$(n){this.a=j.Math.cos(n),this.b=j.Math.sin(n)}function s$(n,e){n.a&&Qc(n.a.k,n),n.a=e,n.a&&W(n.a.k,n)}function o$(n,e){n.b&&Qc(n.b.f,n),n.b=e,n.b&&W(n.b.f,n)}function SMn(n,e){mhe(n,n.b,n.c),u(n.b.b,65),e&&u(e.b,65).b}function lle(n,e){vQ(n,e),I(n.Cb,88)&&yb(Iu(u(n.Cb,88)),2)}function f$(n,e){I(n.Cb,88)&&yb(Iu(u(n.Cb,88)),4),Ic(n,e)}function bC(n,e){I(n.Cb,179)&&(u(n.Cb,179).tb=null),Ic(n,e)}function mc(n,e){return er(),R$(e)?new IE(e,n):new i8(e,n)}function ale(n,e){var t,i;t=e.c,i=t!=null,i&&j2(n,new Z0(e.c))}function PMn(n){var e,t;return t=(Qp(),e=new ud,e),O3(t,n),t}function IMn(n){var e,t;return t=(Qp(),e=new ud,e),O3(t,n),t}function OMn(n,e){var t;return t=new Rs(n),e.c[e.c.length]=t,t}function DMn(n,e){var t;return t=u(ab(T2(n.a),e),14),t?t.gc():0}function $Mn(n){var e;return Ta(n),e=(Ow(),Ow(),Nin),qC(n,e)}function FMn(n){for(var e;;)if(e=n.Pb(),!n.Ob())return e}function iX(n,e){tie.call(this,new s2(sb(n))),is(e,W_n),this.a=e}function ch(n,e,t){KDn(e,t,n.gc()),this.c=n,this.a=e,this.b=t-e}function xMn(n,e,t){var i;KDn(e,t,n.c.length),i=t-e,AG(n.c,e,i)}function dle(n,e){Dyn(n,ge(ci(cl(e,24),FM)),ge(ci(e,FM)))}function Ln(n,e){if(n<0||n>=e)throw T(new vr(cnn+n+unn+e))}function Me(n,e){if(n<0||n>=e)throw T(new wG(cnn+n+unn+e))}function xn(n,e){this.b=(_n(n),n),this.a=e&Ib?e:e|64|Nf}function LMn(n){dyn(this),Wmn(this.a,KV(j.Math.max(8,n))<<1)}function tf(n){return Gr(A(M(ai,1),q,8,0,[n.i.n,n.n,n.a]))}function ble(){return hf(),A(M(Nu,1),z,132,0,[Win,hs,Rb])}function wle(){return _o(),A(M(_b,1),z,232,0,[Zr,Fc,nc])}function gle(){return Cu(),A(M(Qzn,1),z,461,0,[Xf,Ol,Co])}function ple(){return Jc(),A(M(Yzn,1),z,462,0,[Wo,Dl,To])}function vle(){return qd(),A(M(zrn,1),z,423,0,[yg,Grn,qR])}function mle(){return W5(),A(M(Krn,1),z,379,0,[NR,LR,BR])}function kle(){return i6(),A(M(Gsn,1),z,378,0,[J_,qsn,oP])}function yle(){return F2(),A(M(Kcn,1),z,314,0,[ap,qk,_cn])}function jle(){return VC(),A(M(qcn,1),z,337,0,[Hcn,DS,o_])}function Ele(){return ya(),A(M(aXn,1),z,450,0,[l_,cv,Tg])}function Cle(){return Kd(),A(M(YR,1),z,361,0,[g0,Fl,w0])}function Tle(){return Nh(),A(M(kXn,1),z,303,0,[zk,Ag,dp])}function Mle(){return q3(),A(M(y_,1),z,292,0,[m_,k_,Gk])}function Ale(){return ur(),A(M(zQn,1),z,452,0,[Bm,Au,xc])}function Sle(){return Rh(),A(M(Zsn,1),z,339,0,[Nl,Ysn,tK])}function Ple(){return oT(),A(M(ion,1),z,375,0,[eon,cK,ton])}function Ile(){return dT(),A(M(hon,1),z,377,0,[fK,pv,ew])}function Ole(){return Q3(),A(M(uon,1),z,336,0,[sK,con,Rm])}function Dle(){return uT(),A(M(fon,1),z,338,0,[oon,oK,son])}function $le(){return _d(),A(M(fJn,1),z,454,0,[ry,_m,aP])}function Fle(){return CT(),A(M(gYn,1),z,442,0,[CK,jK,EK])}function xle(){return f7(),A(M(Fon,1),z,380,0,[CP,Don,$on])}function Lle(){return ET(),A(M(Yon,1),z,381,0,[Jon,IK,Qon])}function Nle(){return sT(),A(M(Xon,1),z,293,0,[PK,Won,Uon])}function Ble(){return w7(),A(M(OK,1),z,437,0,[AP,SP,PP])}function Rle(){return _h(),A(M(Khn,1),z,334,0,[HP,F1,i9])}function _le(){return sf(),A(M(Phn,1),z,272,0,[jv,cw,Ev])}function Kle(n,e){return o9e(n,e,I(e,99)&&(u(e,18).Bb&Yi)!=0)}function Hle(n,e,t){var i;return i=O6(n,e,!1),i.b<=e&&i.a<=t}function NMn(n,e,t){var i;i=new Jwn,i.b=e,i.a=t,++e.b,W(n.d,i)}function qle(n,e){var t;return t=(_n(n),n).g,Yz(!!t),_n(e),t(e)}function rX(n,e){var t,i;return i=d3(n,e),t=n.a.Zc(i),new Y8n(n,t)}function Gle(n){return n.Db>>16!=6?null:u(Fx(n),235)}function zle(n){if(n.p!=2)throw T(new fu);return ge(n.f)&Ut}function Ule(n){if(n.p!=2)throw T(new fu);return ge(n.k)&Ut}function Wle(n){return n.a==(T3(),uI)&&Ste(n,C9e(n.g,n.b)),n.a}function A2(n){return n.d==(T3(),uI)&&Ite(n,pke(n.g,n.b)),n.d}function y(n){return ne(n.ai?1:0}function BMn(n,e){var t,i;return t=F$(e),i=t,u(te(n.c,i),19).a}function RMn(n,e){var t;for(t=n+"";t.length0&&n.a[--n.d]==0;);n.a[n.d++]==0&&(n.e=0)}function rAn(n){return n.a?n.e.length==0?n.a.a:n.a.a+(""+n.e):n.c}function rae(n){return!!n.a&&Ou(n.a.a).i!=0&&!(n.b&&YF(n.b))}function cae(n){return!!n.u&&bc(n.u.a).i!=0&&!(n.n&&JF(n.n))}function cAn(n){return gD(n.e.Hd().gc()*n.c.Hd().gc(),16,new tvn(n))}function uae(n,e){return xCn(eu(n.q.getTime()),eu(e.q.getTime()))}function xf(n){return u(lf(n,F(GR,MN,17,n.c.length,0,1)),474)}function I8(n){return u(lf(n,F(vh,E1,10,n.c.length,0,1)),193)}function sae(n){return Zu(),!Xi(n)&&!(!Xi(n)&&n.c.i.c==n.d.i.c)}function uAn(n,e,t){var i;i=(pe(n),new du(n)),N3e(new mMn(i,e,t))}function O8(n,e,t){var i;i=(pe(n),new du(n)),B3e(new kMn(i,e,t))}function sAn(n,e){var t;return t=1-e,n.a[t]=eT(n.a[t],t),eT(n,e)}function oAn(n,e){var t;n.e=new oG,t=Cb(e),bi(t,n.c),eBn(n,t,0)}function Ci(n,e,t,i){var r;r=new XH,r.a=e,r.b=t,r.c=i,Ke(n.a,r)}function Z(n,e,t,i){var r;r=new XH,r.a=e,r.b=t,r.c=i,Ke(n.b,r)}function po(n){var e,t,i;return e=new HCn,t=Zx(e,n),UEe(e),i=t,i}function hX(){var n,e,t;return e=(t=(n=new ud,n),t),W(M1n,e),e}function pC(n){return n.j.c=F(Zn,rn,1,0,5,1),KW(n.c),Khe(n.a),n}function $w(n){return Qv(),I(n.g,10)?u(n.g,10):null}function oae(n){return Iw(n).dc()?!1:(sce(n,new Np),!0)}function fae(n){if(!("stack"in n))try{throw n}catch{}return n}function D8(n,e){if(n<0||n>=e)throw T(new vr(j6e(n,e)));return n}function fAn(n,e,t){if(n<0||et)throw T(new vr(W5e(n,e,t)))}function d$(n,e){if(ri(n.a,e),e.d)throw T(new _r(wKn));e.d=n}function b$(n,e){if(e.$modCount!=n.$modCount)throw T(new vs)}function hAn(n,e){return I(e,42)?ix(n.a,u(e,42)):!1}function lAn(n,e){return I(e,42)?ix(n.a,u(e,42)):!1}function aAn(n,e){return I(e,42)?ix(n.a,u(e,42)):!1}function hae(n,e){return n.a<=n.b?(e.ud(n.a++),!0):!1}function $d(n){var e;return $r(n)?(e=n,e==-0?0:e):m0e(n)}function vC(n){var e;return fl(n),e=new fln,vw(n.a,new Wvn(e)),e}function dAn(n){var e;return fl(n),e=new oln,vw(n.a,new Uvn(e)),e}function Ii(n,e){this.a=n,$v.call(this,n),tb(e,n.gc()),this.b=e}function lX(n){this.e=n,this.b=this.e.a.entries(),this.a=new Array}function lae(n){return gD(n.e.Hd().gc()*n.c.Hd().gc(),273,new evn(n))}function mC(n){return new Pc((is(n,AL),KC(qi(qi(5,n),n/10|0))))}function bAn(n){return u(lf(n,F(FWn,UKn,11,n.c.length,0,1)),1943)}function aae(n,e,t){return t.f.c.length>0?SW(n.a,e,t):SW(n.b,e,t)}function dae(n,e,t){n.d&&Qc(n.d.e,n),n.d=e,n.d&&Q0(n.d.e,t,n)}function w$(n,e){uTe(e,n),WU(n.d),WU(u(k(n,(nn(),eP)),207))}function H5(n,e){cTe(e,n),UU(n.d),UU(u(k(n,(nn(),eP)),207))}function Fd(n,e){var t,i;return t=Dh(n,e),i=null,t&&(i=t.fe()),i}function j3(n,e){var t,i;return t=ub(n,e),i=null,t&&(i=t.ie()),i}function q5(n,e){var t,i;return t=Dh(n,e),i=null,t&&(i=t.ie()),i}function $h(n,e){var t,i;return t=Dh(n,e),i=null,t&&(i=tY(t)),i}function bae(n,e,t){var i;return i=i4(t),gM(n.g,i,e),gM(n.i,e,t),e}function wae(n,e,t){var i;i=q2e();try{return kue(n,e,t)}finally{Mae(i)}}function wAn(n){var e;e=n.Wg(),this.a=I(e,69)?u(e,69).Zh():e.Kc()}function hi(){P9n.call(this),this.j.c=F(Zn,rn,1,0,5,1),this.a=-1}function aX(n,e,t,i){this.d=n,this.n=e,this.g=t,this.o=i,this.p=-1}function gAn(n,e,t,i){this.e=i,this.d=null,this.c=n,this.a=e,this.b=t}function dX(n,e,t){this.d=new r6n(this),this.e=n,this.i=e,this.f=t}function kC(){kC=N,j_=new QG(I4,0),oun=new QG("TOP_LEFT",1)}function pAn(){pAn=N,aon=aTn(Q(1),Q(4)),lon=aTn(Q(1),Q(2))}function vAn(){vAn=N,uZn=Fe((Ij(),A(M(cZn,1),z,551,0,[$K])))}function mAn(){mAn=N,rZn=Fe((Pj(),A(M(lfn,1),z,482,0,[DK])))}function kAn(){kAn=N,CZn=Fe((Jv(),A(M(Dfn,1),z,530,0,[hy])))}function yAn(){yAn=N,IUn=Fe((Aj(),A(M(krn,1),z,481,0,[SR])))}function gae(){return Hd(),A(M(EUn,1),z,406,0,[Ok,Ik,MR,AR])}function pae(){return FC(),A(M(WA,1),z,297,0,[vR,qin,Gin,zin])}function vae(){return d6(),A(M(SUn,1),z,394,0,[Lk,YA,ZA,Nk])}function mae(){return K2(),A(M(TUn,1),z,323,0,[$k,Dk,Fk,xk])}function kae(){return G3(),A(M(jWn,1),z,405,0,[b0,Hb,Kb,kg])}function yae(){return aT(),A(M(KWn,1),z,360,0,[QR,TS,MS,Hk])}function jAn(n,e,t,i){return I(t,54)?new ojn(n,e,t,i):new pW(n,e,t,i)}function jae(){return ff(),A(M(QWn,1),z,411,0,[lp,nv,ev,JR])}function Eae(n){var e;return n.j==(J(),ae)&&(e=GLn(n),au(e,Vn))}function Cae(n,e){var t;t=e.a,Hi(t,e.c.d),Ei(t,e.d.d),fb(t.a,n.n)}function EAn(n,e){return u(yd(KE(u(ct(n.k,e),15).Oc(),jg)),113)}function CAn(n,e){return u(yd(HE(u(ct(n.k,e),15).Oc(),jg)),113)}function Tae(n){return new xn(jbe(u(n.a.dd(),14).gc(),n.a.cd()),16)}function E3(n){return I(n,14)?u(n,14).dc():!n.Kc().Ob()}function S2(n){return Qv(),I(n.g,145)?u(n.g,145):null}function TAn(n){if(n.e.g!=n.b)throw T(new vs);return!!n.c&&n.d>0}function Re(n){return ne(n.b!=n.d.c),n.c=n.b,n.b=n.b.a,++n.a,n.c.c}function bX(n,e){_n(e),Mt(n.a,n.c,e),n.c=n.c+1&n.a.length-1,MFn(n)}function ll(n,e){_n(e),n.b=n.b-1&n.a.length-1,Mt(n.a,n.b,e),MFn(n)}function MAn(n,e){var t;for(t=n.j.c.length;t0&&gc(n.g,0,e,0,n.i),e}function IAn(n,e){$j();var t;return t=u(te(eI,n),55),!t||t.wj(e)}function Bae(n){if(n.p!=1)throw T(new fu);return ge(n.f)<<24>>24}function Rae(n){if(n.p!=1)throw T(new fu);return ge(n.k)<<24>>24}function _ae(n){if(n.p!=7)throw T(new fu);return ge(n.k)<<16>>16}function Kae(n){if(n.p!=7)throw T(new fu);return ge(n.f)<<16>>16}function Fh(n){var e;for(e=0;n.Ob();)n.Pb(),e=qi(e,1);return KC(e)}function OAn(n,e){var t;return t=new R0,n.xd(t),t.a+="..",e.yd(t),t.a}function Hae(n,e,t){var i;i=u(te(n.g,t),57),W(n.a.c,new Pi(e,i))}function qae(n,e,t){return TD(Y(Vr(Ar(n.f,e))),Y(Vr(Ar(n.f,t))))}function yC(n,e,t){return vM(n,e,t,I(e,99)&&(u(e,18).Bb&Yi)!=0)}function Gae(n,e,t){return m4(n,e,t,I(e,99)&&(u(e,18).Bb&Yi)!=0)}function zae(n,e,t){return b9e(n,e,t,I(e,99)&&(u(e,18).Bb&Yi)!=0)}function pX(n,e){return n==(Qn(),ti)&&e==ti?4:n==ti||e==ti?8:32}function DAn(n,e){return B(e)===B(n)?"(this Map)":e==null?iu:Lr(e)}function Uae(n,e){return u(e==null?Vr(Ar(n.f,null)):n5(n.g,e),281)}function $An(n,e,t){var i;return i=i4(t),it(n.b,i,e),it(n.c,e,t),e}function FAn(n,e){var t;for(t=e;t;)U0(n,t.i,t.j),t=At(t);return n}function vX(n,e){var t;return t=C8(f3(new x$(n,e))),DE(new x$(n,e)),t}function uh(n,e){er();var t;return t=u(n,66).Mj(),M5e(t,e),t.Ok(e)}function Wae(n,e,t,i,r){var c;c=m9e(r,t,i),W(e,p6e(r,c)),o5e(n,r,e)}function xAn(n,e,t){n.i=0,n.e=0,e!=t&&(uDn(n,e,t),cDn(n,e,t))}function mX(n,e){var t;t=n.q.getHours(),n.q.setFullYear(e+Tl),S6(n,t)}function Xae(n,e,t){if(t){var i=t.ee();n.a[e]=i(t)}else delete n.a[e]}function g$(n,e,t){if(t){var i=t.ee();t=i(t)}else t=void 0;n.a[e]=t}function LAn(n){if(n<0)throw T(new K9n("Negative array size: "+n))}function bc(n){return n.n||(Iu(n),n.n=new wCn(n,ar,n),Mr(n)),n.n}function G5(n){return ne(n.a=0&&n.a[t]===e[t];t--);return t<0}function KAn(n,e){V3();var t;return t=n.j.g-e.j.g,t!=0?t:0}function HAn(n,e){return _n(e),n.a!=null?$fe(e.Kb(n.a)):UA}function jC(n){var e;return n?new iW(n):(e=new Sh,nF(e,n),e)}function es(n,e){var t;return e.b.Kb(FPn(n,e.c.Ee(),(t=new Jvn(e),t)))}function EC(n){_J(),Dyn(this,ge(ci(cl(n,24),FM)),ge(ci(n,FM)))}function qAn(){qAn=N,Gzn=Fe(($T(),A(M(Jin,1),z,428,0,[yR,Qin])))}function GAn(){GAn=N,zzn=Fe((RC(),A(M(Zin,1),z,427,0,[Yin,jR])))}function zAn(){zAn=N,WUn=Fe((_C(),A(M(Arn,1),z,424,0,[$R,tS])))}function UAn(){UAn=N,BWn=Fe((B3(),A(M(NWn,1),z,511,0,[_k,UR])))}function WAn(){WAn=N,lXn=Fe((V8(),A(M(Wcn,1),z,419,0,[$S,Ucn])))}function XAn(){XAn=N,wXn=Fe((K8(),A(M(Qcn,1),z,479,0,[Vcn,xS])))}function VAn(){VAn=N,XQn=Fe((x8(),A(M(ron,1),z,376,0,[uK,iy])))}function QAn(){QAn=N,GQn=Fe((z8(),A(M(non,1),z,421,0,[iK,rK])))}function JAn(){JAn=N,sXn=Fe((OC(),A(M(Rcn,1),z,422,0,[Bcn,s_])))}function YAn(){YAn=N,jXn=Fe((kC(),A(M(fun,1),z,420,0,[j_,oun])))}function ZAn(){ZAn=N,RJn=Fe((No(),A(M(BJn,1),z,520,0,[tw,Bl])))}function nSn(){nSn=N,wJn=Fe((z5(),A(M(bJn,1),z,523,0,[Hm,Km])))}function eSn(){eSn=N,jJn=Fe((Ff(),A(M(yJn,1),z,516,0,[M0,I1])))}function tSn(){tSn=N,CJn=Fe((ef(),A(M(EJn,1),z,515,0,[Ja,kf])))}function iSn(){iSn=N,UJn=Fe((Id(),A(M(zJn,1),z,455,0,[Rl,Lg])))}function rSn(){rSn=N,hYn=Fe((gC(),A(M(Son,1),z,425,0,[yK,Aon])))}function cSn(){cSn=N,wYn=Fe((iT(),A(M(Pon,1),z,495,0,[EP,mv])))}function uSn(){uSn=N,fYn=Fe((aC(),A(M(Mon,1),z,480,0,[kK,Ton])))}function sSn(){sSn=N,vYn=Fe(($C(),A(M(Oon,1),z,426,0,[Ion,TK])))}function oSn(){oSn=N,TZn=Fe((c7(),A(M(Ffn,1),z,429,0,[DP,$fn])))}function fSn(){fSn=N,sZn=Fe((L8(),A(M(afn,1),z,430,0,[FK,IP])))}function z5(){z5=N,Hm=new ZG("UPPER",0),Km=new ZG("LOWER",1)}function Yae(n,e){var t;t=new r2,la(t,"x",e.a),la(t,"y",e.b),j2(n,t)}function Zae(n,e){var t;t=new r2,la(t,"x",e.a),la(t,"y",e.b),j2(n,t)}function nde(n,e){var t,i;i=!1;do t=JOn(n,e),i=i|t;while(t);return i}function jX(n,e){var t,i;for(t=e,i=0;t>0;)i+=n.a[t],t-=t&-t;return i}function hSn(n,e){var t;for(t=e;t;)U0(n,-t.i,-t.j),t=At(t);return n}function $i(n,e){var t,i;for(_n(e),i=n.Kc();i.Ob();)t=i.Pb(),e.td(t)}function lSn(n,e){var t;return t=e.cd(),new bd(t,n.e.pc(t,u(e.dd(),14)))}function Kt(n,e,t,i){var r;r=new aI,r.c=e,r.b=t,r.a=i,i.b=t.a=r,++n.b}function Es(n,e,t){var i;return i=(Ln(e,n.c.length),n.c[e]),n.c[e]=t,i}function ede(n,e,t){return u(e==null?_c(n.f,null,t):Gd(n.g,e,t),281)}function k$(n){return n.c&&n.d?cX(n.c)+"->"+cX(n.d):"e_"+md(n)}function C3(n,e){return(Ta(n),Wv(new $n(n,new UX(e,n.a)))).sd(V4)}function tde(){return Qi(),A(M(Hrn,1),z,356,0,[Vf,$l,Hc,Cc,Ir])}function ide(){return J(),A(M(Zi,1),hc,61,0,[Xr,Kn,Vn,ae,Gn])}function rde(n){return gj(),function(){return wae(n,this,arguments)}}function cde(){return Date.now?Date.now():new Date().getTime()}function Xi(n){return!n.c||!n.d?!1:!!n.c.i&&n.c.i==n.d.i}function aSn(n){if(!n.c.Sb())throw T(new ic);return n.a=!0,n.c.Ub()}function $8(n){n.i=0,z9(n.b,null),z9(n.c,null),n.a=null,n.e=null,++n.g}function EX(n){are.call(this,n==null?iu:Lr(n),I(n,78)?u(n,78):null)}function dSn(n){B_n(),Nmn(this),this.a=new Ct,QV(this,n),Ke(this.a,n)}function bSn(){RO(this),this.b=new fn(Ft,Ft),this.a=new fn(Vt,Vt)}function wSn(n,e){this.c=0,this.b=e,qkn.call(this,n,17493),this.a=this.c}function y$(n){CC(),!pf&&(this.c=n,this.e=!0,this.a=new X)}function CC(){CC=N,pf=!0,Fzn=!1,xzn=!1,Nzn=!1,Lzn=!1}function CX(n,e){return I(e,149)?An(n.c,u(e,149).c):!1}function TX(n,e){var t;return t=0,n&&(t+=n.f.a/2),e&&(t+=e.f.a/2),t}function j$(n,e){var t;return t=u(xd(n.d,e),23),t||u(xd(n.e,e),23)}function gSn(n){this.b=n,ie.call(this,n),this.a=u(Rn(this.b.a,4),126)}function pSn(n){this.b=n,w2.call(this,n),this.a=u(Rn(this.b.a,4),126)}function Iu(n){return n.t||(n.t=new Amn(n),s6(new _9n(n),0,n.t)),n.t}function ude(){return sr(),A(M(e9,1),z,103,0,[mh,Ao,Zs,Jh,Yh])}function sde(){return qw(),A(M(c9,1),z,249,0,[Hl,Cy,Hhn,r9,qhn])}function ode(){return Ho(),A(M($1,1),z,175,0,[Xn,pi,Yf,Ya,D1])}function fde(){return P7(),A(M(gfn,1),z,316,0,[dfn,xK,wfn,LK,bfn])}function hde(){return b6(),A(M(Usn,1),z,315,0,[zsn,nK,eK,Lm,Nm])}function lde(){return Pa(),A(M(zcn,1),z,335,0,[f_,Gcn,h_,Em,jm])}function ade(){return g4(),A(M(eZn,1),z,355,0,[Ng,Ep,Qm,Vm,Jm])}function dde(){return Vw(),A(M(YWn,1),z,363,0,[SS,IS,OS,PS,AS])}function bde(){return Ss(),A(M(jun,1),z,163,0,[Qk,Sm,xl,Pm,Ub])}function T3(){T3=N;var n,e;cI=(Qp(),e=new fj,e),uI=(n=new BI,n)}function vSn(n){var e;return n.c||(e=n.r,I(e,88)&&(n.c=u(e,26))),n.c}function wde(n){return n.e=3,n.d=n.Yb(),n.e!=2?(n.e=0,!0):!1}function E$(n){var e,t,i;return e=n&Lu,t=n>>22&Lu,i=n<0?Wh:0,Bc(e,t,i)}function gde(n){var e,t,i,r;for(t=n,i=0,r=t.length;i0?g$n(n,e):BNn(n,-e)}function MX(n,e){return e==0||n.e==0?n:e>0?BNn(n,e):g$n(n,-e)}function ve(n){if(Se(n))return n.c=n.a,n.a.Pb();throw T(new ic)}function kSn(n){var e,t;return e=n.c.i,t=n.d.i,e.k==(Qn(),Xt)&&t.k==Xt}function C$(n){var e;return e=new Pd,Sr(e,n),H(e,(nn(),Tr),null),e}function T$(n,e,t){var i;return i=n.Yg(e),i>=0?n._g(i,t,!0):Yd(n,e,t)}function AX(n,e,t,i){var r;for(r=0;re)throw T(new vr(fY(n,e,"index")));return n}function M$(n,e,t,i){var r;return r=F(be,Le,25,e,15,1),Pve(r,n,e,t,i),r}function vde(n,e){var t;t=n.q.getHours()+(e/60|0),n.q.setMinutes(e),S6(n,t)}function mde(n,e){return j.Math.min(al(e.a,n.d.d.c),al(e.b,n.d.d.c))}function O2(n,e){return mi(e)?e==null?MY(n.f,null):$On(n.g,e):MY(n.f,e)}function uf(n){this.c=n,this.a=new E(this.c.a),this.b=new E(this.c.b)}function TC(){this.e=new X,this.c=new X,this.d=new X,this.b=new X}function TSn(){this.g=new zq,this.b=new zq,this.a=new X,this.k=new X}function MSn(n,e,t){this.a=n,this.c=e,this.d=t,W(e.e,this),W(t.b,this)}function ASn(n,e){Hkn.call(this,e.rd(),e.qd()&-6),_n(n),this.a=n,this.b=e}function SSn(n,e){qkn.call(this,e.rd(),e.qd()&-6),_n(n),this.a=n,this.b=e}function FX(n,e){FO.call(this,e.rd(),e.qd()&-6),_n(n),this.a=n,this.b=e}function MC(n,e,t){this.a=n,this.b=e,this.c=t,W(n.t,this),W(e.i,this)}function AC(){this.b=new Ct,this.a=new Ct,this.b=new Ct,this.a=new Ct}function SC(){SC=N,Ym=new kt("org.eclipse.elk.labels.labelManager")}function PSn(){PSn=N,$cn=new ii("separateLayerConnections",(aT(),QR))}function No(){No=N,tw=new tz("REGULAR",0),Bl=new tz("CRITICAL",1)}function x8(){x8=N,uK=new YG("STACKED",0),iy=new YG("SEQUENCED",1)}function L8(){L8=N,FK=new oz("FIXED",0),IP=new oz("CENTER_NODE",1)}function kde(n,e){var t;return t=CEe(n,e),n.b=new tT(t.c.length),Lje(n,t)}function yde(n,e,t){var i;return++n.e,--n.f,i=u(n.d[e].$c(t),133),i.dd()}function ISn(n){var e;return n.a||(e=n.r,I(e,148)&&(n.a=u(e,148))),n.a}function xX(n){if(n.a){if(n.e)return xX(n.e)}else return n;return null}function jde(n,e){return n.pe.p?-1:0}function PC(n,e){return _n(e),n.c=0,"Initial capacity must not be negative")}function $Sn(){$Sn=N,Vzn=Fe((_o(),A(M(_b,1),z,232,0,[Zr,Fc,nc])))}function FSn(){FSn=N,Jzn=Fe((Cu(),A(M(Qzn,1),z,461,0,[Xf,Ol,Co])))}function xSn(){xSn=N,Zzn=Fe((Jc(),A(M(Yzn,1),z,462,0,[Wo,Dl,To])))}function LSn(){LSn=N,Bzn=Fe((hf(),A(M(Nu,1),z,132,0,[Win,hs,Rb])))}function NSn(){NSn=N,bWn=Fe((W5(),A(M(Krn,1),z,379,0,[NR,LR,BR])))}function BSn(){BSn=N,PWn=Fe((qd(),A(M(zrn,1),z,423,0,[yg,Grn,qR])))}function RSn(){RSn=N,oXn=Fe((F2(),A(M(Kcn,1),z,314,0,[ap,qk,_cn])))}function _Sn(){_Sn=N,fXn=Fe((VC(),A(M(qcn,1),z,337,0,[Hcn,DS,o_])))}function KSn(){KSn=N,dXn=Fe((ya(),A(M(aXn,1),z,450,0,[l_,cv,Tg])))}function HSn(){HSn=N,rXn=Fe((Kd(),A(M(YR,1),z,361,0,[g0,Fl,w0])))}function qSn(){qSn=N,yXn=Fe((Nh(),A(M(kXn,1),z,303,0,[zk,Ag,dp])))}function GSn(){GSn=N,mXn=Fe((q3(),A(M(y_,1),z,292,0,[m_,k_,Gk])))}function zSn(){zSn=N,RQn=Fe((i6(),A(M(Gsn,1),z,378,0,[J_,qsn,oP])))}function USn(){USn=N,WQn=Fe((oT(),A(M(ion,1),z,375,0,[eon,cK,ton])))}function WSn(){WSn=N,qQn=Fe((Rh(),A(M(Zsn,1),z,339,0,[Nl,Ysn,tK])))}function XSn(){XSn=N,UQn=Fe((ur(),A(M(zQn,1),z,452,0,[Bm,Au,xc])))}function VSn(){VSn=N,JQn=Fe((dT(),A(M(hon,1),z,377,0,[fK,pv,ew])))}function QSn(){QSn=N,VQn=Fe((Q3(),A(M(uon,1),z,336,0,[sK,con,Rm])))}function JSn(){JSn=N,QQn=Fe((uT(),A(M(fon,1),z,338,0,[oon,oK,son])))}function YSn(){YSn=N,hJn=Fe((_d(),A(M(fJn,1),z,454,0,[ry,_m,aP])))}function ZSn(){ZSn=N,pYn=Fe((CT(),A(M(gYn,1),z,442,0,[CK,jK,EK])))}function nPn(){nPn=N,mYn=Fe((f7(),A(M(Fon,1),z,380,0,[CP,Don,$on])))}function ePn(){ePn=N,LYn=Fe((ET(),A(M(Yon,1),z,381,0,[Jon,IK,Qon])))}function tPn(){tPn=N,xYn=Fe((sT(),A(M(Xon,1),z,293,0,[PK,Won,Uon])))}function iPn(){iPn=N,iZn=Fe((w7(),A(M(OK,1),z,437,0,[AP,SP,PP])))}function rPn(){rPn=N,une=Fe((_h(),A(M(Khn,1),z,334,0,[HP,F1,i9])))}function cPn(){cPn=N,tne=Fe((sf(),A(M(Phn,1),z,272,0,[jv,cw,Ev])))}function Pde(){return Ti(),A(M(Ghn,1),z,98,0,[ql,jf,Tv,td,jh,Ac])}function wa(n,e){return!n.o&&(n.o=new Wu((Dc(),Ul),S0,n,0)),NF(n.o,e)}function Ide(n){return!n.g&&(n.g=new Qy),!n.g.d&&(n.g.d=new Cmn(n)),n.g.d}function Ode(n){return!n.g&&(n.g=new Qy),!n.g.a&&(n.g.a=new Tmn(n)),n.g.a}function Dde(n){return!n.g&&(n.g=new Qy),!n.g.b&&(n.g.b=new Emn(n)),n.g.b}function N8(n){return!n.g&&(n.g=new Qy),!n.g.c&&(n.g.c=new Mmn(n)),n.g.c}function $de(n,e,t){var i,r;for(r=new H3(e,n),i=0;it||e=0?n._g(t,!0,!0):Yd(n,e,!0)}function Qde(n,e){return Zt(K(Y(k(n,(G(),k0)))),K(Y(k(e,k0))))}function aPn(){aPn=N,aYn=Xd(Xd(Dj(new hi,(c4(),qm)),(k6(),pP)),aK)}function Jde(n,e,t){var i;return i=tDn(n,e,t),n.b=new tT(i.c.length),JY(n,i)}function Yde(n){if(n.b<=0)throw T(new ic);return--n.b,n.a-=n.c.c,Q(n.a)}function Zde(n){var e;if(!n.a)throw T(new gTn);return e=n.a,n.a=At(n.a),e}function n0e(n){for(;!n.a;)if(!nEn(n.c,new Xvn(n)))return!1;return!0}function $2(n){var e;return pe(n),I(n,198)?(e=u(n,198),e):new dvn(n)}function e0e(n){DC(),u(n.We((Xe(),rw)),174).Fc((Tu(),Ty)),n.Ye(eH,null)}function DC(){DC=N,SZn=new n2n,IZn=new e2n,PZn=Rwe((Xe(),eH),SZn,_l,IZn)}function $C(){$C=N,Ion=new sz("LEAF_NUMBER",0),TK=new sz("NODE_SIZE",1)}function t0e(n,e,t){n.a=e,n.c=t,n.b.a.$b(),_s(n.d),n.e.a.c=F(Zn,rn,1,0,5,1)}function $$(n){n.a=F(be,Le,25,n.b+1,15,1),n.c=F(be,Le,25,n.b,15,1),n.d=0}function i0e(n,e){n.a.ue(e.d,n.b)>0&&(W(n.c,new QU(e.c,e.d,n.d)),n.b=e.d)}function zX(n,e){if(n.g==null||e>=n.i)throw T(new xO(e,n.i));return n.g[e]}function dPn(n,e,t){if(W3(n,t),t!=null&&!n.wj(t))throw T(new xI);return t}function bPn(n){var e;if(n.Ek())for(e=n.i-1;e>=0;--e)D(n,e);return gX(n)}function r0e(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[0];)t=e;return t}function c0e(n,e){var t,i;return LAn(e),t=(i=n.slice(0,e),WX(i,n)),t.length=e,t}function S3(n,e,t,i){var r;i=(Ow(),i||Lin),r=n.slice(e,t),hY(r,n,e,t,-e,i)}function Cs(n,e,t,i,r){return e<0?Yd(n,t,i):u(t,66).Nj().Pj(n,n.yh(),e,i,r)}function u0e(n){return I(n,172)?""+u(n,172).a:n==null?null:Lr(n)}function s0e(n){return I(n,172)?""+u(n,172).a:n==null?null:Lr(n)}function wPn(n,e){if(e.a)throw T(new _r(wKn));ri(n.a,e),e.a=n,!n.j&&(n.j=e)}function UX(n,e){FO.call(this,e.rd(),e.qd()&-16449),_n(n),this.a=n,this.c=e}function gPn(n,e){var t,i;return i=e/n.c.Hd().gc()|0,t=e%n.c.Hd().gc(),D2(n,i,t)}function Cu(){Cu=N,Xf=new oO(Y2,0),Ol=new oO(I4,1),Co=new oO(Z2,2)}function FC(){FC=N,vR=new Lj("All",0),qin=new lyn,Gin=new Eyn,zin=new ayn}function pPn(){pPn=N,Dzn=Fe((FC(),A(M(WA,1),z,297,0,[vR,qin,Gin,zin])))}function vPn(){vPn=N,EWn=Fe((G3(),A(M(jWn,1),z,405,0,[b0,Hb,Kb,kg])))}function mPn(){mPn=N,CUn=Fe((Hd(),A(M(EUn,1),z,406,0,[Ok,Ik,MR,AR])))}function kPn(){kPn=N,MUn=Fe((K2(),A(M(TUn,1),z,323,0,[$k,Dk,Fk,xk])))}function yPn(){yPn=N,PUn=Fe((d6(),A(M(SUn,1),z,394,0,[Lk,YA,ZA,Nk])))}function jPn(){jPn=N,WJn=Fe((c4(),A(M(won,1),z,393,0,[gP,qm,uy,Gm])))}function EPn(){EPn=N,HWn=Fe((aT(),A(M(KWn,1),z,360,0,[QR,TS,MS,Hk])))}function CPn(){CPn=N,FYn=Fe((qT(),A(M(zon,1),z,340,0,[SK,qon,Gon,Hon])))}function TPn(){TPn=N,JWn=Fe((ff(),A(M(QWn,1),z,411,0,[lp,nv,ev,JR])))}function MPn(){MPn=N,_Qn=Fe((wb(),A(M(Z_,1),z,197,0,[fP,Y_,xg,Fg])))}function APn(){APn=N,Ene=Fe((Xu(),A(M(jne,1),z,396,0,[ws,Yhn,Jhn,Zhn])))}function SPn(){SPn=N,one=Fe((cs(),A(M(sne,1),z,285,0,[Ey,kh,Kl,jy])))}function PPn(){PPn=N,ine=Fe((Hh(),A(M(cH,1),z,218,0,[rH,yy,Cv,Sp])))}function IPn(){IPn=N,kne=Fe((AT(),A(M(Qhn,1),z,311,0,[oH,Whn,Vhn,Xhn])))}function OPn(){OPn=N,vne=Fe((Vu(),A(M(o9,1),z,374,0,[Ay,id,My,uw])))}function DPn(){DPn=N,mM(),F1n=Ft,Tee=Vt,x1n=new S9(Ft),Mee=new S9(Vt)}function K8(){K8=N,Vcn=new VG(Xh,0),xS=new VG("IMPROVE_STRAIGHTNESS",1)}function o0e(n,e){return h3(),W(n,new Pi(e,Q(e.e.c.length+e.g.c.length)))}function f0e(n,e){return h3(),W(n,new Pi(e,Q(e.e.c.length+e.g.c.length)))}function WX(n,e){return U8(e)!=10&&A(Du(e),e.hm,e.__elementTypeId$,U8(e),n),n}function Qc(n,e){var t;return t=Fr(n,e,0),t==-1?!1:(h1(n,t),!0)}function $Pn(n,e){var t;return t=u(O2(n.e,e),387),t?(ZU(t),t.e):null}function P3(n){var e;return $r(n)&&(e=0-n,!isNaN(e))?e:bl(z3(n))}function Fr(n,e,t){for(;t=0?BT(n,t,!0,!0):Yd(n,e,!0)}function YX(n,e){Qv();var t,i;return t=S2(n),i=S2(e),!!t&&!!i&&!V$n(t.k,i.k)}function a0e(n,e){Zc(n,e==null||jE((_n(e),e))||isNaN((_n(e),e))?0:(_n(e),e))}function d0e(n,e){nu(n,e==null||jE((_n(e),e))||isNaN((_n(e),e))?0:(_n(e),e))}function b0e(n,e){Rd(n,e==null||jE((_n(e),e))||isNaN((_n(e),e))?0:(_n(e),e))}function w0e(n,e){Bd(n,e==null||jE((_n(e),e))||isNaN((_n(e),e))?0:(_n(e),e))}function BPn(n){(this.q?this.q:(Pn(),Pn(),ph)).Ac(n.q?n.q:(Pn(),Pn(),ph))}function g0e(n,e){return I(e,99)&&u(e,18).Bb&Yi?new LO(e,n):new H3(e,n)}function p0e(n,e){return I(e,99)&&u(e,18).Bb&Yi?new LO(e,n):new H3(e,n)}function RPn(n,e){vrn=new Wy,AUn=e,gm=n,u(gm.b,65),BX(gm,vrn,null),DRn(gm)}function B$(n,e,t){var i;return i=n.g[e],k5(n,e,n.oi(e,t)),n.gi(e,t,i),n.ci(),i}function BC(n,e){var t;return t=n.Xc(e),t>=0?(n.$c(t),!0):!1}function R$(n){var e;return n.d!=n.r&&(e=qs(n),n.e=!!e&&e.Cj()==kGn,n.d=e),n.e}function _$(n,e){var t;for(pe(n),pe(e),t=!1;e.Ob();)t=t|n.Fc(e.Pb());return t}function xd(n,e){var t;return t=u(te(n.e,e),387),t?(Oyn(n,t),t.e):null}function _Pn(n){var e,t;return e=n/60|0,t=n%60,t==0?""+e:""+e+":"+(""+t)}function qr(n,e){var t,i;return Ta(n),i=new FX(e,n.a),t=new iEn(i),new $n(n,t)}function ub(n,e){var t=n.a[e],i=(cF(),dR)[typeof t];return i?i(t):tQ(typeof t)}function v0e(n){switch(n.g){case 0:return nt;case 1:return-1;default:return 0}}function m0e(n){return mJ(n,(I3(),pin))<0?-xce(z3(n)):n.l+n.m*J2+n.h*$a}function U8(n){return n.__elementTypeCategory$==null?10:n.__elementTypeCategory$}function K$(n){var e;return e=n.b.c.length==0?null:un(n.b,0),e!=null&&J$(n,0),e}function KPn(n,e){for(;e[0]0&&arguments[0]!==void 0?arguments[0]:{},Ki=Ge.defaultLayoutOptions,Si=Ki===void 0?{}:Ki,Mn=Ge.algorithms,Lc=Mn===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:Mn,Nc=Ge.workerFactory,ps=Ge.workerUrl;if(j(this,Ot),this.defaultLayoutOptions=Si,this.initialized=!1,typeof ps>"u"&&typeof Nc>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var Rr=Nc;typeof ps<"u"&&typeof Nc>"u"&&(Rr=function(q1){return new Worker(q1)});var Ch=Rr(ps);if(typeof Ch.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new ou(Ch),this.worker.postMessage({cmd:"register",algorithms:Lc}).then(function(H1){return qt.initialized=!0}).catch(console.err)}return Ai(Ot,[{key:"layout",value:function(Ge){var Ki=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Si=Ki.layoutOptions,Mn=Si===void 0?this.defaultLayoutOptions:Si,Lc=Ki.logging,Nc=Lc===void 0?!1:Lc,ps=Ki.measureExecutionTime,Rr=ps===void 0?!1:ps;return Ge?this.worker.postMessage({cmd:"layout",graph:Ge,layoutOptions:Mn,options:{logging:Nc,measureExecutionTime:Rr}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker.terminate()}}]),Ot}();Bt.default=Ht;var ou=function(){function Ot(qt){var Ge=this;if(j(this,Ot),qt===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=qt,this.worker.onmessage=function(Ki){setTimeout(function(){Ge.receive(Ge,Ki)},0)}}return Ai(Ot,[{key:"postMessage",value:function(Ge){var Ki=this.id||0;this.id=Ki+1,Ge.id=Ki;var Si=this;return new Promise(function(Mn,Lc){Si.resolvers[Ki]=function(Nc,ps){Nc?(Si.convertGwtStyleError(Nc),Lc(Nc)):Mn(ps)},Si.worker.postMessage(Ge)})}},{key:"receive",value:function(Ge,Ki){var Si=Ki.data,Mn=Ge.resolvers[Si.id];Mn&&(delete Ge.resolvers[Si.id],Si.error?Mn(Si.error):Mn(null,Si.data))}},{key:"terminate",value:function(){this.worker.terminate&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(Ge){if(Ge){var Ki=Ge.__java$exception;Ki&&(Ki.cause&&Ki.cause.backingJsObject&&(Ge.cause=Ki.cause.backingJsObject,this.convertGwtStyleError(Ge.cause)),delete Ge.__java$exception)}}}]),Ot}()},{}],2:[function(ut,dt,Bt){(function(Ai){(function(){var j;typeof window<"u"?j=window:typeof Ai<"u"?j=Ai:typeof self<"u"&&(j=self);var Ht;function ou(){}function Ot(){}function qt(){}function Ge(){}function Ki(){}function Si(){}function Mn(){}function Lc(){}function Nc(){}function ps(){}function Rr(){}function Ch(){}function H1(){}function q1(){}function ww(){}function Np(){}function G1(){}function Th(){}function Q1n(){}function J1n(){}function zy(){}function Y1n(){}function Z1n(){}function nln(){}function eln(){}function Xg(){}function N(){}function tln(){}function aI(){}function iln(){}function rln(){}function cln(){}function uln(){}function DH(){}function sln(){}function oln(){}function fln(){}function z1(){}function U1(){}function dI(){}function hln(){}function lln(){}function aln(){}function $H(){}function dln(){}function bln(){}function Vg(){}function Qg(){}function wln(){}function gln(){}function pln(){}function vln(){}function FH(){}function W1(){}function Jg(){}function Yg(){}function mln(){}function Vee(){}function bI(){}function kln(){}function yln(){}function jln(){}function Eln(){}function Cln(){}function Tln(){}function Mln(){}function Aln(){}function Sln(){}function Pln(){}function Iln(){}function Oln(){}function Dln(){}function $ln(){}function Fln(){}function xln(){}function Lln(){}function Nln(){}function Bln(){}function Rln(){}function _ln(){}function Kln(){}function Hln(){}function qln(){}function Gln(){}function zln(){}function Uln(){}function Wln(){}function Xln(){}function Vln(){}function Qln(){}function Jln(){}function Yln(){}function xH(){}function Zln(){}function nan(){}function ean(){}function tan(){}function wI(){}function gI(){}function Uy(){}function ian(){}function ran(){}function pI(){}function can(){}function uan(){}function san(){}function Wy(){}function oan(){}function fan(){}function han(){}function lan(){}function aan(){}function dan(){}function ban(){}function wan(){}function gan(){}function LH(){}function pan(){}function van(){}function man(){}function kan(){}function yan(){}function NH(){}function jan(){}function Ean(){}function Can(){}function Tan(){}function Man(){}function Aan(){}function San(){}function Pan(){}function Ian(){}function Oan(){}function Dan(){}function $an(){}function Fan(){}function xan(){}function vI(){}function Lan(){}function Nan(){}function Ban(){}function Ran(){}function _an(){}function BH(){}function Kan(){}function Han(){}function qan(){}function Gan(){}function zan(){}function Uan(){}function Wan(){}function Xan(){}function Van(){}function Qan(){}function Jan(){}function Yan(){}function Zan(){}function ndn(){}function edn(){}function tdn(){}function idn(){}function rdn(){}function cdn(){}function udn(){}function sdn(){}function odn(){}function fdn(){}function hdn(){}function ldn(){}function adn(){}function ddn(){}function bdn(){}function wdn(){}function gdn(){}function pdn(){}function vdn(){}function mdn(){}function kdn(){}function ydn(){}function jdn(){}function Edn(){}function Cdn(){}function Tdn(){}function Mdn(){}function Adn(){}function Sdn(){}function Pdn(){}function Idn(){}function Odn(){}function Ddn(){}function $dn(){}function Fdn(){}function xdn(){}function Ldn(){}function Ndn(){}function Bdn(){}function Rdn(){}function _dn(){}function Kdn(){}function Hdn(){}function qdn(){}function Gdn(){}function zdn(){}function Udn(){}function Wdn(){}function Xdn(){}function Vdn(){}function Qdn(){}function Jdn(){}function Ydn(){}function Zdn(){}function n0n(){}function e0n(){}function t0n(){}function i0n(){}function r0n(){}function c0n(){}function u0n(){}function s0n(){}function o0n(){}function f0n(){}function h0n(){}function l0n(){}function a0n(){}function d0n(){}function b0n(){}function w0n(){}function g0n(){}function p0n(){}function v0n(){}function m0n(){}function k0n(){}function y0n(){}function j0n(){}function E0n(){}function C0n(){}function T0n(){}function M0n(){}function A0n(){}function S0n(){}function P0n(){}function I0n(){}function O0n(){}function D0n(){}function RH(){}function $0n(){}function F0n(){}function x0n(){}function L0n(){}function N0n(){}function B0n(){}function R0n(){}function _0n(){}function K0n(){}function H0n(){}function q0n(){}function G0n(){}function z0n(){}function U0n(){}function W0n(){}function X0n(){}function V0n(){}function Q0n(){}function J0n(){}function Y0n(){}function Z0n(){}function nbn(){}function ebn(){}function tbn(){}function ibn(){}function rbn(){}function cbn(){}function ubn(){}function sbn(){}function obn(){}function fbn(){}function hbn(){}function lbn(){}function abn(){}function dbn(){}function bbn(){}function wbn(){}function gbn(){}function pbn(){}function vbn(){}function mbn(){}function kbn(){}function ybn(){}function jbn(){}function Ebn(){}function Cbn(){}function Tbn(){}function Mbn(){}function Abn(){}function Sbn(){}function Pbn(){}function Ibn(){}function Obn(){}function Dbn(){}function $bn(){}function Fbn(){}function xbn(){}function Lbn(){}function Nbn(){}function Bbn(){}function Rbn(){}function _bn(){}function Kbn(){}function Hbn(){}function qbn(){}function Gbn(){}function zbn(){}function _H(){}function Ubn(){}function Wbn(){}function Xbn(){}function Vbn(){}function Qbn(){}function Jbn(){}function Ybn(){}function Zbn(){}function nwn(){}function ewn(){}function twn(){}function iwn(){}function rwn(){}function cwn(){}function uwn(){}function swn(){}function own(){}function fwn(){}function hwn(){}function lwn(){}function KH(){}function awn(){}function dwn(){}function bwn(){}function wwn(){}function gwn(){}function pwn(){}function HH(){}function qH(){}function vwn(){}function GH(){}function zH(){}function mwn(){}function kwn(){}function ywn(){}function jwn(){}function Ewn(){}function Cwn(){}function Twn(){}function Mwn(){}function Awn(){}function UH(){}function Swn(){}function Pwn(){}function Iwn(){}function Own(){}function Dwn(){}function $wn(){}function Fwn(){}function xwn(){}function Lwn(){}function Nwn(){}function Bwn(){}function Rwn(){}function _wn(){}function Kwn(){}function Hwn(){}function qwn(){}function Gwn(){}function zwn(){}function Uwn(){}function Wwn(){}function Xwn(){}function Vwn(){}function Qwn(){}function Jwn(){}function Ywn(){}function Zwn(){}function ngn(){}function egn(){}function tgn(){}function ign(){}function rgn(){}function cgn(){}function ugn(){}function sgn(){}function ogn(){}function fgn(){}function hgn(){}function lgn(){}function agn(){}function dgn(){}function bgn(){}function wgn(){}function ggn(){}function pgn(){}function vgn(){}function mgn(){}function kgn(){}function ygn(){}function jgn(){}function Egn(){}function Cgn(){}function Tgn(){}function Mgn(){}function Agn(){}function Sgn(){}function Pgn(){}function Ign(){}function Ogn(){}function Dgn(){}function $gn(){}function Fgn(){}function xgn(){}function Lgn(){}function Ngn(){}function Bgn(){}function Rgn(){}function _gn(){}function Kgn(){}function mI(){}function kI(){}function yI(){}function Hgn(){}function qgn(){}function Ggn(){}function zgn(){}function Ugn(){}function WH(){}function Wgn(){}function Xgn(){}function Qee(){}function Vgn(){}function Qgn(){}function Jgn(){}function Ygn(){}function Zgn(){}function n2n(){}function e2n(){}function Zl(){}function t2n(){}function Zg(){}function XH(){}function i2n(){}function r2n(){}function c2n(){}function u2n(){}function s2n(){}function o2n(){}function f2n(){}function h2n(){}function l2n(){}function a2n(){}function d2n(){}function b2n(){}function w2n(){}function g2n(){}function p2n(){}function v2n(){}function m2n(){}function k2n(){}function y2n(){}function j2n(){}function E2n(){}function dn(){}function C2n(){}function T2n(){}function M2n(){}function A2n(){}function S2n(){}function P2n(){}function I2n(){}function O2n(){}function D2n(){}function $2n(){}function jI(){}function F2n(){}function x2n(){}function L2n(){}function N2n(){}function B2n(){}function VH(){}function Xy(){}function Vy(){}function R2n(){}function QH(){}function Qy(){}function _2n(){}function K2n(){}function H2n(){}function q2n(){}function G2n(){}function z2n(){}function Jy(){}function U2n(){}function W2n(){}function X2n(){}function Yy(){}function V2n(){}function JH(){}function Q2n(){}function EI(){}function YH(){}function J2n(){}function Y2n(){}function Z2n(){}function npn(){}function Jee(){}function epn(){}function tpn(){}function ipn(){}function rpn(){}function cpn(){}function upn(){}function spn(){}function opn(){}function fpn(){}function hpn(){}function Bp(){}function CI(){}function lpn(){}function apn(){}function dpn(){}function bpn(){}function wpn(){}function gpn(){}function ppn(){}function vpn(){}function mpn(){}function kpn(){}function ypn(){}function jpn(){}function Epn(){}function Cpn(){}function Tpn(){}function Mpn(){}function Apn(){}function Spn(){}function Ppn(){}function Ipn(){}function Opn(){}function Dpn(){}function $pn(){}function Fpn(){}function xpn(){}function Lpn(){}function Npn(){}function Bpn(){}function Rpn(){}function _pn(){}function Kpn(){}function Hpn(){}function qpn(){}function Gpn(){}function zpn(){}function Upn(){}function Wpn(){}function Xpn(){}function Vpn(){}function Qpn(){}function Jpn(){}function Ypn(){}function Zpn(){}function n3n(){}function e3n(){}function t3n(){}function i3n(){}function r3n(){}function c3n(){}function u3n(){}function s3n(){}function o3n(){}function f3n(){}function h3n(){}function l3n(){}function a3n(){}function d3n(){}function b3n(){}function w3n(){}function g3n(){}function p3n(){}function v3n(){}function m3n(){}function k3n(){}function y3n(){}function j3n(){}function E3n(){}function C3n(){}function T3n(){}function M3n(){}function A3n(){}function S3n(){}function P3n(){}function I3n(){}function O3n(){}function D3n(){}function $3n(){}function F3n(){}function x3n(){}function L3n(){}function N3n(){}function B3n(){}function R3n(){}function _3n(){}function K3n(){}function H3n(){}function q3n(){}function G3n(){}function z3n(){}function U3n(){}function W3n(){}function X3n(){}function V3n(){}function Q3n(){}function J3n(){}function Y3n(){}function Z3n(){}function n4n(){}function e4n(){}function t4n(){}function i4n(){}function ZH(){}function r4n(){}function c4n(){}function TI(){Rv()}function u4n(){pF()}function s4n(){a6()}function o4n(){WT()}function f4n(){YJ()}function h4n(){Go()}function l4n(){fJ()}function a4n(){C7()}function d4n(){q9()}function b4n(){H9()}function w4n(){w8()}function g4n(){v7n()}function p4n(){x2()}function v4n(){Sj()}function m4n(){PSn()}function k4n(){HIn()}function y4n(){sPn()}function j4n(){CMn()}function E4n(){V3()}function C4n(){yl()}function T4n(){qIn()}function M4n(){pAn()}function A4n(){zZ()}function S4n(){IFn()}function P4n(){TMn()}function I4n(){nn()}function O4n(){EMn()}function D4n(){GIn()}function $4n(){WOn()}function F4n(){AMn()}function x4n(){aPn()}function L4n(){m7n()}function N4n(){$Y()}function B4n(){gb()}function R4n(){pOn()}function _4n(){S7()}function K4n(){Ux()}function H4n(){ZF()}function q4n(){Zd()}function G4n(){PV()}function z4n(){MMn()}function U4n(){BBn()}function W4n(){IY()}function X4n(){Bx()}function V4n(){DC()}function Q4n(){nM()}function nq(){Xe()}function J4n(){wT()}function Y4n(){NQ()}function eq(){mM()}function Fo(){dEn()}function tq(){eF()}function Z4n(){pZ()}function iq(n){_n(n)}function nvn(n){this.a=n}function Zy(n){this.a=n}function evn(n){this.a=n}function tvn(n){this.a=n}function ivn(n){this.a=n}function rvn(n){this.a=n}function cvn(n){this.a=n}function uvn(n){this.a=n}function rq(n){this.a=n}function cq(n){this.a=n}function svn(n){this.a=n}function MI(n){this.a=n}function ovn(n){this.a=n}function AI(n){this.a=n}function fvn(n){this.a=n}function SI(n){this.a=n}function hvn(n){this.a=n}function PI(n){this.a=n}function lvn(n){this.a=n}function avn(n){this.a=n}function dvn(n){this.a=n}function uq(n){this.b=n}function bvn(n){this.c=n}function wvn(n){this.a=n}function gvn(n){this.a=n}function pvn(n){this.a=n}function vvn(n){this.a=n}function mvn(n){this.a=n}function kvn(n){this.a=n}function yvn(n){this.a=n}function jvn(n){this.a=n}function Evn(n){this.a=n}function Cvn(n){this.a=n}function Tvn(n){this.a=n}function Mvn(n){this.a=n}function Avn(n){this.a=n}function sq(n){this.a=n}function oq(n){this.a=n}function nj(n){this.a=n}function M9(n){this.a=n}function na(){this.a=[]}function Svn(n,e){n.a=e}function Yee(n,e){n.a=e}function Zee(n,e){n.b=e}function nte(n,e){n.b=e}function ete(n,e){n.b=e}function fq(n,e){n.j=e}function tte(n,e){n.g=e}function ite(n,e){n.i=e}function rte(n,e){n.c=e}function cte(n,e){n.d=e}function ute(n,e){n.d=e}function ste(n,e){n.c=e}function ea(n,e){n.k=e}function ote(n,e){n.c=e}function hq(n,e){n.c=e}function lq(n,e){n.a=e}function fte(n,e){n.a=e}function hte(n,e){n.f=e}function lte(n,e){n.a=e}function ate(n,e){n.b=e}function II(n,e){n.d=e}function ej(n,e){n.i=e}function aq(n,e){n.o=e}function dte(n,e){n.r=e}function bte(n,e){n.a=e}function wte(n,e){n.b=e}function Pvn(n,e){n.e=e}function gte(n,e){n.f=e}function dq(n,e){n.g=e}function pte(n,e){n.e=e}function vte(n,e){n.f=e}function mte(n,e){n.f=e}function kte(n,e){n.n=e}function yte(n,e){n.a=e}function jte(n,e){n.a=e}function Ete(n,e){n.c=e}function Cte(n,e){n.c=e}function Tte(n,e){n.d=e}function Mte(n,e){n.e=e}function Ate(n,e){n.g=e}function Ste(n,e){n.a=e}function Pte(n,e){n.c=e}function Ite(n,e){n.d=e}function Ote(n,e){n.e=e}function Dte(n,e){n.f=e}function $te(n,e){n.j=e}function Fte(n,e){n.a=e}function xte(n,e){n.b=e}function Lte(n,e){n.a=e}function Ivn(n){n.b=n.a}function Ovn(n){n.c=n.d.d}function $v(n){this.d=n}function ta(n){this.a=n}function Rp(n){this.a=n}function bq(n){this.a=n}function Mh(n){this.a=n}function A9(n){this.a=n}function Dvn(n){this.a=n}function wq(n){this.a=n}function S9(n){this.a=n}function gq(n){this.a=n}function pq(n){this.a=n}function vq(n){this.a=n}function L0(n){this.a=n}function P9(n){this.a=n}function I9(n){this.a=n}function mq(n){this.b=n}function _p(n){this.b=n}function Kp(n){this.b=n}function OI(n){this.a=n}function $vn(n){this.a=n}function kq(n){this.a=n}function DI(n){this.c=n}function E(n){this.c=n}function Fvn(n){this.c=n}function yq(n){this.a=n}function jq(n){this.a=n}function Eq(n){this.a=n}function Cq(n){this.a=n}function st(n){this.a=n}function xvn(n){this.a=n}function Tq(n){this.a=n}function Mq(n){this.a=n}function Lvn(n){this.a=n}function Nvn(n){this.a=n}function Fv(n){this.a=n}function Bvn(n){this.a=n}function Rvn(n){this.a=n}function _vn(n){this.a=n}function Kvn(n){this.a=n}function Hvn(n){this.a=n}function qvn(n){this.a=n}function Gvn(n){this.a=n}function zvn(n){this.a=n}function Uvn(n){this.a=n}function Wvn(n){this.a=n}function Xvn(n){this.a=n}function Vvn(n){this.a=n}function Qvn(n){this.a=n}function Jvn(n){this.a=n}function Yvn(n){this.a=n}function Zvn(n){this.a=n}function n5n(n){this.a=n}function O9(n){this.a=n}function e5n(n){this.a=n}function t5n(n){this.a=n}function tj(n){this.a=n}function i5n(n){this.a=n}function r5n(n){this.a=n}function Hp(n){this.a=n}function Aq(n){this.a=n}function c5n(n){this.a=n}function u5n(n){this.a=n}function s5n(n){this.a=n}function o5n(n){this.a=n}function f5n(n){this.a=n}function Sq(n){this.a=n}function Pq(n){this.a=n}function Iq(n){this.a=n}function ij(n){this.a=n}function rj(n){this.e=n}function qp(n){this.a=n}function h5n(n){this.a=n}function n2(n){this.a=n}function Oq(n){this.a=n}function l5n(n){this.a=n}function a5n(n){this.a=n}function d5n(n){this.a=n}function b5n(n){this.a=n}function w5n(n){this.a=n}function g5n(n){this.a=n}function p5n(n){this.a=n}function v5n(n){this.a=n}function m5n(n){this.a=n}function k5n(n){this.a=n}function y5n(n){this.a=n}function Dq(n){this.a=n}function j5n(n){this.a=n}function E5n(n){this.a=n}function C5n(n){this.a=n}function T5n(n){this.a=n}function M5n(n){this.a=n}function A5n(n){this.a=n}function S5n(n){this.a=n}function P5n(n){this.a=n}function I5n(n){this.a=n}function O5n(n){this.a=n}function D5n(n){this.a=n}function $5n(n){this.a=n}function F5n(n){this.a=n}function x5n(n){this.a=n}function L5n(n){this.a=n}function N5n(n){this.a=n}function B5n(n){this.a=n}function R5n(n){this.a=n}function _5n(n){this.a=n}function K5n(n){this.a=n}function H5n(n){this.a=n}function q5n(n){this.a=n}function G5n(n){this.a=n}function z5n(n){this.a=n}function U5n(n){this.a=n}function W5n(n){this.a=n}function X5n(n){this.a=n}function V5n(n){this.a=n}function Q5n(n){this.a=n}function J5n(n){this.a=n}function Y5n(n){this.a=n}function Z5n(n){this.a=n}function n6n(n){this.a=n}function e6n(n){this.a=n}function t6n(n){this.a=n}function i6n(n){this.a=n}function r6n(n){this.a=n}function c6n(n){this.c=n}function u6n(n){this.b=n}function s6n(n){this.a=n}function o6n(n){this.a=n}function f6n(n){this.a=n}function h6n(n){this.a=n}function l6n(n){this.a=n}function a6n(n){this.a=n}function d6n(n){this.a=n}function b6n(n){this.a=n}function w6n(n){this.a=n}function g6n(n){this.a=n}function p6n(n){this.a=n}function v6n(n){this.a=n}function m6n(n){this.a=n}function k6n(n){this.a=n}function y6n(n){this.a=n}function j6n(n){this.a=n}function E6n(n){this.a=n}function C6n(n){this.a=n}function T6n(n){this.a=n}function M6n(n){this.a=n}function A6n(n){this.a=n}function S6n(n){this.a=n}function P6n(n){this.a=n}function I6n(n){this.a=n}function X1(n){this.a=n}function e2(n){this.a=n}function O6n(n){this.a=n}function D6n(n){this.a=n}function $6n(n){this.a=n}function F6n(n){this.a=n}function x6n(n){this.a=n}function L6n(n){this.a=n}function N6n(n){this.a=n}function B6n(n){this.a=n}function R6n(n){this.a=n}function _6n(n){this.a=n}function K6n(n){this.a=n}function H6n(n){this.a=n}function q6n(n){this.a=n}function G6n(n){this.a=n}function z6n(n){this.a=n}function U6n(n){this.a=n}function cj(n){this.a=n}function W6n(n){this.a=n}function X6n(n){this.a=n}function V6n(n){this.a=n}function Q6n(n){this.a=n}function J6n(n){this.a=n}function Y6n(n){this.a=n}function Z6n(n){this.a=n}function nmn(n){this.a=n}function emn(n){this.a=n}function tmn(n){this.a=n}function imn(n){this.a=n}function rmn(n){this.a=n}function cmn(n){this.a=n}function umn(n){this.a=n}function smn(n){this.a=n}function omn(n){this.a=n}function fmn(n){this.a=n}function hmn(n){this.a=n}function lmn(n){this.a=n}function amn(n){this.a=n}function dmn(n){this.a=n}function bmn(n){this.a=n}function wmn(n){this.a=n}function gmn(n){this.a=n}function pmn(n){this.a=n}function vmn(n){this.a=n}function mmn(n){this.a=n}function kmn(n){this.a=n}function $q(n){this.a=n}function kt(n){this.b=n}function ymn(n){this.f=n}function Fq(n){this.a=n}function jmn(n){this.a=n}function Emn(n){this.a=n}function Cmn(n){this.a=n}function Tmn(n){this.a=n}function Mmn(n){this.a=n}function Amn(n){this.a=n}function Smn(n){this.a=n}function Pmn(n){this.a=n}function D9(n){this.a=n}function Imn(n){this.a=n}function Omn(n){this.b=n}function xq(n){this.c=n}function uj(n){this.e=n}function Dmn(n){this.a=n}function sj(n){this.a=n}function oj(n){this.a=n}function $I(n){this.a=n}function $mn(n){this.a=n}function Fmn(n){this.d=n}function Lq(n){this.a=n}function Nq(n){this.a=n}function cd(n){this.e=n}function Nte(){this.a=0}function gw(){dyn(this)}function X(){RO(this)}function we(){Eu(this)}function FI(){pTn(this)}function xmn(){}function ud(){this.c=p1n}function Bte(n,e){e.Wb(n)}function Lmn(n,e){n.b+=e}function Nmn(n){n.b=new JI}function T(n){return n.e}function Rte(n){return n.a}function _te(n){return n.a}function Kte(n){return n.a}function Hte(n){return n.a}function qte(n){return n.a}function Gte(){return null}function zte(){return null}function Ute(){EG(),iTe()}function Wte(n){n.b.tf(n.e)}function xv(n,e){n.b=e-n.b}function Lv(n,e){n.a=e-n.a}function Bmn(n,e){e.ad(n.a)}function Xte(n,e){ui(e,n)}function Vte(n,e,t){n.Od(t,e)}function $9(n,e){n.e=e,e.b=n}function Bq(n){Df(),this.a=n}function Rmn(n){Df(),this.a=n}function _mn(n){Df(),this.a=n}function Rq(n){nb(),this.a=n}function Kmn(n){k3(),aR.be(n)}function ia(){Qyn.call(this)}function _q(){Qyn.call(this)}function Kq(){ia.call(this)}function xI(){ia.call(this)}function Hmn(){ia.call(this)}function F9(){ia.call(this)}function fu(){ia.call(this)}function Nv(){ia.call(this)}function ye(){ia.call(this)}function vs(){ia.call(this)}function qmn(){ia.call(this)}function ic(){ia.call(this)}function Gmn(){ia.call(this)}function zmn(){this.a=this}function fj(){this.Bb|=256}function Umn(){this.b=new Xkn}function Hq(){Hq=N,new we}function qq(){Kq.call(this)}function Wmn(n,e){n.length=e}function hj(n,e){W(n.a,e)}function Qte(n,e){nY(n.c,e)}function Jte(n,e){ri(n.b,e)}function Yte(n,e){KT(n.a,e)}function Zte(n,e){MF(n.a,e)}function Gp(n,e){et(n.e,e)}function t2(n){iM(n.c,n.b)}function nie(n,e){n.kc().Nb(e)}function Gq(n){this.a=Yge(n)}function fi(){this.a=new we}function Xmn(){this.a=new we}function lj(){this.a=new X}function LI(){this.a=new X}function zq(){this.a=new X}function Ns(){this.a=new Oln}function ra(){this.a=new TSn}function Uq(){this.a=new LH}function Wq(){this.a=new h7n}function Vmn(){this.a=new YMn}function Xq(){this.a=new bMn}function Vq(){this.a=new Bjn}function Qmn(){this.a=new X}function Qq(){this.a=new X}function Jmn(){this.a=new X}function Ymn(){this.a=new X}function Zmn(){this.d=new X}function n9n(){this.a=new fi}function e9n(){this.a=new we}function t9n(){this.b=new we}function i9n(){this.b=new X}function Jq(){this.e=new X}function r9n(){this.d=new X}function c9n(){this.a=new C4n}function u9n(){X.call(this)}function Yq(){lj.call(this)}function s9n(){kE.call(this)}function o9n(){Qq.call(this)}function NI(){Bv.call(this)}function Bv(){xmn.call(this)}function i2(){xmn.call(this)}function Zq(){i2.call(this)}function f9n(){zTn.call(this)}function h9n(){zTn.call(this)}function l9n(){uG.call(this)}function a9n(){uG.call(this)}function d9n(){uG.call(this)}function b9n(){sG.call(this)}function hu(){Ct.call(this)}function nG(){B2n.call(this)}function eG(){B2n.call(this)}function w9n(){O9n.call(this)}function g9n(){O9n.call(this)}function p9n(){we.call(this)}function v9n(){we.call(this)}function m9n(){we.call(this)}function k9n(){fi.call(this)}function BI(){RIn.call(this)}function y9n(){fj.call(this)}function RI(){Oz.call(this)}function _I(){Oz.call(this)}function tG(){we.call(this)}function KI(){we.call(this)}function j9n(){we.call(this)}function iG(){Yy.call(this)}function E9n(){Yy.call(this)}function C9n(){iG.call(this)}function T9n(){ZH.call(this)}function M9n(n){hIn.call(this,n)}function A9n(n){hIn.call(this,n)}function rG(n){rq.call(this,n)}function cG(n){n7n.call(this,n)}function eie(n){cG.call(this,n)}function tie(n){n7n.call(this,n)}function zp(){this.a=new Ct}function uG(){this.a=new fi}function sG(){this.a=new we}function S9n(){this.a=new X}function P9n(){this.j=new X}function oG(){this.a=new Rgn}function I9n(){this.a=new T8n}function O9n(){this.a=new X2n}function HI(){HI=N,uR=new V9n}function qI(){qI=N,cR=new X9n}function Rv(){Rv=N,rR=new Ot}function aj(){aj=N,fR=new Xyn}function iie(n){cG.call(this,n)}function rie(n){cG.call(this,n)}function D9n(n){m$.call(this,n)}function $9n(n){m$.call(this,n)}function F9n(n){uEn.call(this,n)}function GI(n){C5e.call(this,n)}function sd(n){_0.call(this,n)}function _v(n){Cj.call(this,n)}function fG(n){Cj.call(this,n)}function x9n(n){Cj.call(this,n)}function _r(n){kCn.call(this,n)}function L9n(n){_r.call(this,n)}function r2(){M9.call(this,{})}function dj(n){c3(),this.a=n}function Kv(n){n.b=null,n.c=0}function cie(n,e){n.e=e,NNn(n,e)}function uie(n,e){n.a=e,h6e(n)}function zI(n,e,t){n.a[e.g]=t}function sie(n,e,t){M4e(t,n,e)}function oie(n,e){$ue(e.i,n.n)}function N9n(n,e){Fwe(n).td(e)}function fie(n,e){return n*n/e}function B9n(n,e){return n.g-e.g}function hie(n){return new nj(n)}function lie(n){return new Z0(n)}function bj(n){_r.call(this,n)}function vr(n){_r.call(this,n)}function R9n(n){_r.call(this,n)}function UI(n){kCn.call(this,n)}function WI(n){AV(),this.a=n}function _9n(n){aEn(),this.a=n}function N0(n){ED(),this.f=n}function XI(n){ED(),this.f=n}function Up(n){_r.call(this,n)}function Hn(n){_r.call(this,n)}function Dr(n){_r.call(this,n)}function K9n(n){_r.call(this,n)}function c2(n){_r.call(this,n)}function on(n){return _n(n),n}function K(n){return _n(n),n}function x9(n){return _n(n),n}function hG(n){return _n(n),n}function aie(n){return _n(n),n}function Hv(n){return n.b==n.c}function B0(n){return!!n&&n.b}function die(n){return!!n&&n.k}function bie(n){return!!n&&n.j}function Ku(n){_n(n),this.a=n}function lG(n){return ja(n),n}function qv(n){EW(n,n.length)}function t1(n){_r.call(this,n)}function Af(n){_r.call(this,n)}function VI(n){_r.call(this,n)}function pw(n){_r.call(this,n)}function Gv(n){_r.call(this,n)}function Ce(n){_r.call(this,n)}function QI(n){Vz.call(this,n,0)}function JI(){iX.call(this,12,3)}function aG(){aG=N,din=new Q1n}function H9n(){H9n=N,ain=new ou}function wj(){wj=N,dm=new H1}function q9n(){q9n=N,vzn=new ww}function G9n(){throw T(new ye)}function dG(){throw T(new ye)}function z9n(){throw T(new ye)}function wie(){throw T(new ye)}function gie(){throw T(new ye)}function pie(){throw T(new ye)}function YI(){this.a=Te(pe(Ji))}function u2(n){Df(),this.a=pe(n)}function U9n(n,e){n.Td(e),e.Sd(n)}function vie(n,e){n.a.ec().Mc(e)}function mie(n,e,t){n.c.lf(e,t)}function bG(n){vr.call(this,n)}function Sf(n){Hn.call(this,n)}function i1(){A9.call(this,"")}function zv(){A9.call(this,"")}function V1(){A9.call(this,"")}function R0(){A9.call(this,"")}function wG(n){vr.call(this,n)}function Wp(n){_p.call(this,n)}function ZI(n){lE.call(this,n)}function W9n(n){Wp.call(this,n)}function X9n(){AI.call(this,null)}function V9n(){AI.call(this,null)}function gj(){gj=N,k3()}function Q9n(){Q9n=N,Szn=Z4e()}function J9n(n){return n.a?n.b:0}function kie(n){return n.a?n.b:0}function yie(n,e){return n.a-e.a}function jie(n,e){return n.a-e.a}function Eie(n,e){return n.a-e.a}function pj(n,e){return WX(n,e)}function M(n,e){return pMn(n,e)}function Cie(n,e){return e in n.a}function Y9n(n,e){return n.f=e,n}function Tie(n,e){return n.b=e,n}function Z9n(n,e){return n.c=e,n}function Mie(n,e){return n.g=e,n}function gG(n,e){return n.a=e,n}function pG(n,e){return n.f=e,n}function Aie(n,e){return n.k=e,n}function vG(n,e){return n.a=e,n}function Sie(n,e){return n.e=e,n}function mG(n,e){return n.e=e,n}function Pie(n,e){return n.f=e,n}function Iie(n,e){n.b=!0,n.d=e}function Oie(n,e){n.b=new mr(e)}function Die(n,e,t){e.td(n.a[t])}function $ie(n,e,t){e.we(n.a[t])}function Fie(n,e){return n.b-e.b}function xie(n,e){return n.g-e.g}function Lie(n,e){return n.s-e.s}function Nie(n,e){return n?0:e-1}function n8n(n,e){return n?0:e-1}function Bie(n,e){return n?e-1:0}function Rie(n,e){return e.Yf(n)}function od(n,e){return n.b=e,n}function vj(n,e){return n.a=e,n}function fd(n,e){return n.c=e,n}function hd(n,e){return n.d=e,n}function ld(n,e){return n.e=e,n}function kG(n,e){return n.f=e,n}function Uv(n,e){return n.a=e,n}function Xp(n,e){return n.b=e,n}function Vp(n,e){return n.c=e,n}function gn(n,e){return n.c=e,n}function Dn(n,e){return n.b=e,n}function pn(n,e){return n.d=e,n}function vn(n,e){return n.e=e,n}function _ie(n,e){return n.f=e,n}function mn(n,e){return n.g=e,n}function kn(n,e){return n.a=e,n}function yn(n,e){return n.i=e,n}function jn(n,e){return n.j=e,n}function e8n(n,e){return n.k=e,n}function Kie(n,e){return n.j=e,n}function Hie(n,e){yl(),Hr(e,n)}function qie(n,e,t){Nfe(n.a,e,t)}function t8n(n){mTn.call(this,n)}function yG(n){mTn.call(this,n)}function mj(n){uD.call(this,n)}function i8n(n){u2e.call(this,n)}function Q1(n){Ld.call(this,n)}function r8n(n){XD.call(this,n)}function c8n(n){XD.call(this,n)}function u8n(){Mz.call(this,"")}function Li(){this.a=0,this.b=0}function s8n(){this.b=0,this.a=0}function o8n(n,e){n.b=0,hb(n,e)}function Gie(n,e){n.c=e,n.b=!0}function f8n(n,e){return n.c._b(e)}function xo(n){return n.e&&n.e()}function nO(n){return n?n.d:null}function h8n(n,e){return LDn(n.b,e)}function zie(n){return n?n.g:null}function Uie(n){return n?n.i:null}function J1(n){return Ph(n),n.o}function ad(){ad=N,Mne=h4e()}function l8n(){l8n=N,vi=jve()}function Qp(){Qp=N,g1n=a4e()}function a8n(){a8n=N,hee=l4e()}function jG(){jG=N,oc=s6e()}function EG(){EG=N,Wl=N3()}function d8n(){throw T(new ye)}function b8n(){throw T(new ye)}function w8n(){throw T(new ye)}function g8n(){throw T(new ye)}function p8n(){throw T(new ye)}function v8n(){throw T(new ye)}function kj(n){this.a=new s2(n)}function CG(n){d_n(),gTe(this,n)}function Y1(n){this.a=new AD(n)}function vw(n,e){for(;n.ye(e););}function TG(n,e){for(;n.sd(e););}function mw(n,e){return n.a+=e,n}function eO(n,e){return n.a+=e,n}function r1(n,e){return n.a+=e,n}function dd(n,e){return n.a+=e,n}function Wv(n){return fl(n),n.a}function yj(n){return n.b!=n.d.c}function m8n(n){return n.l|n.m<<22}function MG(n,e){return n.d[e.p]}function k8n(n,e){return Q8e(n,e)}function AG(n,e,t){n.splice(e,t)}function y8n(n){n.c?rBn(n):cBn(n)}function jj(n){this.a=0,this.b=n}function j8n(){this.a=new B7(Pon)}function E8n(){this.b=new B7(won)}function C8n(){this.b=new B7(OK)}function T8n(){this.b=new B7(OK)}function M8n(){throw T(new ye)}function A8n(){throw T(new ye)}function S8n(){throw T(new ye)}function P8n(){throw T(new ye)}function I8n(){throw T(new ye)}function O8n(){throw T(new ye)}function D8n(){throw T(new ye)}function $8n(){throw T(new ye)}function F8n(){throw T(new ye)}function x8n(){throw T(new ye)}function Wie(){throw T(new ic)}function Xie(){throw T(new ic)}function L9(n){this.a=new L8n(n)}function L8n(n){cbe(this,n,cve())}function N9(n){return!n||iTn(n)}function B9(n){return Tf[n]!=-1}function Vie(){_A!=0&&(_A=0),KA=-1}function N8n(){iR==null&&(iR=[])}function Qie(n,e){$x(R(n.a),e)}function Jie(n,e){$x(R(n.a),e)}function R9(n,e){Sw.call(this,n,e)}function Jp(n,e){R9.call(this,n,e)}function SG(n,e){this.b=n,this.c=e}function B8n(n,e){this.b=n,this.a=e}function R8n(n,e){this.a=n,this.b=e}function _8n(n,e){this.a=n,this.b=e}function K8n(n,e){this.a=n,this.b=e}function H8n(n,e){this.a=n,this.b=e}function q8n(n,e){this.a=n,this.b=e}function G8n(n,e){this.a=n,this.b=e}function z8n(n,e){this.a=n,this.b=e}function U8n(n,e){this.a=n,this.b=e}function W8n(n,e){this.b=n,this.a=e}function X8n(n,e){this.b=n,this.a=e}function V8n(n,e){this.b=n,this.a=e}function Q8n(n,e){this.b=n,this.a=e}function Oe(n,e){this.f=n,this.g=e}function Yp(n,e){this.e=n,this.d=e}function bd(n,e){this.g=n,this.i=e}function tO(n,e){this.a=n,this.b=e}function J8n(n,e){this.a=n,this.f=e}function Y8n(n,e){this.b=n,this.c=e}function Yie(n,e){this.a=n,this.b=e}function Z8n(n,e){this.a=n,this.b=e}function iO(n,e){this.a=n,this.b=e}function n7n(n){Bz(n.dc()),this.c=n}function Ej(n){this.b=u(pe(n),83)}function e7n(n){this.a=u(pe(n),83)}function _0(n){this.a=u(pe(n),15)}function t7n(n){this.a=u(pe(n),15)}function Cj(n){this.b=u(pe(n),47)}function Tj(){this.q=new j.Date}function Zf(){Zf=N,Sin=new tln}function Zp(){Zp=N,X4=new nln}function Xv(n){return n.f.c+n.g.c}function _9(n,e){return n.b.Hc(e)}function i7n(n,e){return n.b.Ic(e)}function r7n(n,e){return n.b.Qc(e)}function c7n(n,e){return n.b.Hc(e)}function u7n(n,e){return n.c.uc(e)}function Ah(n,e){return n.a._b(e)}function s7n(n,e){return tt(n.c,e)}function o7n(n,e){return zu(n.b,e)}function f7n(n,e){return n>e&&e0}function cO(n,e){return fc(n,e)<0}function n5(n,e){return n.a.get(e)}function lre(n,e){return e.split(n)}function S7n(n,e){return zu(n.e,e)}function LG(n){return _n(n),!1}function xj(n){xn.call(this,n,21)}function are(n,e){cMn.call(this,n,e)}function Lj(n,e){Oe.call(this,n,e)}function uO(n,e){Oe.call(this,n,e)}function NG(n){_D(),uEn.call(this,n)}function BG(n,e){fCn(n,n.length,e)}function z9(n,e){BCn(n,n.length,e)}function dre(n,e,t){e.ud(n.a.Ge(t))}function bre(n,e,t){e.we(n.a.Fe(t))}function wre(n,e,t){e.td(n.a.Kb(t))}function gre(n,e,t){n.Mb(t)&&e.td(t)}function e5(n,e,t){n.splice(e,0,t)}function pre(n,e){return au(n.e,e)}function Nj(n,e){this.d=n,this.e=e}function P7n(n,e){this.b=n,this.a=e}function I7n(n,e){this.b=n,this.a=e}function RG(n,e){this.b=n,this.a=e}function O7n(n,e){this.a=n,this.b=e}function D7n(n,e){this.a=n,this.b=e}function $7n(n,e){this.a=n,this.b=e}function F7n(n,e){this.a=n,this.b=e}function f2(n,e){this.a=n,this.b=e}function _G(n,e){this.b=n,this.a=e}function KG(n,e){this.b=n,this.a=e}function Bj(n,e){Oe.call(this,n,e)}function Rj(n,e){Oe.call(this,n,e)}function HG(n,e){Oe.call(this,n,e)}function qG(n,e){Oe.call(this,n,e)}function kw(n,e){Oe.call(this,n,e)}function sO(n,e){Oe.call(this,n,e)}function oO(n,e){Oe.call(this,n,e)}function fO(n,e){Oe.call(this,n,e)}function _j(n,e){Oe.call(this,n,e)}function GG(n,e){Oe.call(this,n,e)}function hO(n,e){Oe.call(this,n,e)}function U9(n,e){Oe.call(this,n,e)}function Kj(n,e){Oe.call(this,n,e)}function lO(n,e){Oe.call(this,n,e)}function t5(n,e){Oe.call(this,n,e)}function zG(n,e){Oe.call(this,n,e)}function zt(n,e){Oe.call(this,n,e)}function Hj(n,e){Oe.call(this,n,e)}function x7n(n,e){this.a=n,this.b=e}function L7n(n,e){this.a=n,this.b=e}function N7n(n,e){this.a=n,this.b=e}function B7n(n,e){this.a=n,this.b=e}function R7n(n,e){this.a=n,this.b=e}function _7n(n,e){this.a=n,this.b=e}function K7n(n,e){this.a=n,this.b=e}function H7n(n,e){this.a=n,this.b=e}function q7n(n,e){this.a=n,this.b=e}function UG(n,e){this.b=n,this.a=e}function G7n(n,e){this.b=n,this.a=e}function z7n(n,e){this.b=n,this.a=e}function U7n(n,e){this.b=n,this.a=e}function t3(n,e){this.c=n,this.d=e}function W7n(n,e){this.e=n,this.d=e}function X7n(n,e){this.a=n,this.b=e}function V7n(n,e){this.b=e,this.c=n}function qj(n,e){Oe.call(this,n,e)}function W9(n,e){Oe.call(this,n,e)}function aO(n,e){Oe.call(this,n,e)}function i5(n,e){Oe.call(this,n,e)}function WG(n,e){Oe.call(this,n,e)}function dO(n,e){Oe.call(this,n,e)}function bO(n,e){Oe.call(this,n,e)}function X9(n,e){Oe.call(this,n,e)}function XG(n,e){Oe.call(this,n,e)}function wO(n,e){Oe.call(this,n,e)}function r5(n,e){Oe.call(this,n,e)}function VG(n,e){Oe.call(this,n,e)}function c5(n,e){Oe.call(this,n,e)}function u5(n,e){Oe.call(this,n,e)}function H0(n,e){Oe.call(this,n,e)}function gO(n,e){Oe.call(this,n,e)}function pO(n,e){Oe.call(this,n,e)}function QG(n,e){Oe.call(this,n,e)}function s5(n,e){Oe.call(this,n,e)}function vO(n,e){Oe.call(this,n,e)}function Gj(n,e){Oe.call(this,n,e)}function V9(n,e){Oe.call(this,n,e)}function Q9(n,e){Oe.call(this,n,e)}function h2(n,e){Oe.call(this,n,e)}function mO(n,e){Oe.call(this,n,e)}function JG(n,e){Oe.call(this,n,e)}function kO(n,e){Oe.call(this,n,e)}function yO(n,e){Oe.call(this,n,e)}function YG(n,e){Oe.call(this,n,e)}function jO(n,e){Oe.call(this,n,e)}function EO(n,e){Oe.call(this,n,e)}function CO(n,e){Oe.call(this,n,e)}function TO(n,e){Oe.call(this,n,e)}function ZG(n,e){Oe.call(this,n,e)}function Q7n(n,e){this.b=n,this.a=e}function J7n(n,e){this.a=n,this.b=e}function Y7n(n,e){this.a=n,this.b=e}function Z7n(n,e){this.a=n,this.b=e}function nkn(n,e){this.a=n,this.b=e}function nz(n,e){Oe.call(this,n,e)}function ez(n,e){Oe.call(this,n,e)}function ekn(n,e){this.b=n,this.d=e}function tz(n,e){Oe.call(this,n,e)}function iz(n,e){Oe.call(this,n,e)}function tkn(n,e){this.a=n,this.b=e}function ikn(n,e){this.a=n,this.b=e}function zj(n,e){Oe.call(this,n,e)}function o5(n,e){Oe.call(this,n,e)}function rz(n,e){Oe.call(this,n,e)}function cz(n,e){Oe.call(this,n,e)}function uz(n,e){Oe.call(this,n,e)}function MO(n,e){Oe.call(this,n,e)}function sz(n,e){Oe.call(this,n,e)}function AO(n,e){Oe.call(this,n,e)}function Uj(n,e){Oe.call(this,n,e)}function SO(n,e){Oe.call(this,n,e)}function PO(n,e){Oe.call(this,n,e)}function J9(n,e){Oe.call(this,n,e)}function IO(n,e){Oe.call(this,n,e)}function oz(n,e){Oe.call(this,n,e)}function Y9(n,e){Oe.call(this,n,e)}function fz(n,e){Oe.call(this,n,e)}function vre(n,e){return au(n.c,e)}function mre(n,e){return au(e.b,n)}function kre(n,e){return-n.b.Je(e)}function hz(n,e){return au(n.g,e)}function Z9(n,e){Oe.call(this,n,e)}function l2(n,e){Oe.call(this,n,e)}function rkn(n,e){this.a=n,this.b=e}function ckn(n,e){this.a=n,this.b=e}function fn(n,e){this.a=n,this.b=e}function f5(n,e){Oe.call(this,n,e)}function h5(n,e){Oe.call(this,n,e)}function n8(n,e){Oe.call(this,n,e)}function OO(n,e){Oe.call(this,n,e)}function Wj(n,e){Oe.call(this,n,e)}function l5(n,e){Oe.call(this,n,e)}function DO(n,e){Oe.call(this,n,e)}function Xj(n,e){Oe.call(this,n,e)}function yw(n,e){Oe.call(this,n,e)}function e8(n,e){Oe.call(this,n,e)}function a5(n,e){Oe.call(this,n,e)}function d5(n,e){Oe.call(this,n,e)}function t8(n,e){Oe.call(this,n,e)}function Vj(n,e){Oe.call(this,n,e)}function jw(n,e){Oe.call(this,n,e)}function Qj(n,e){Oe.call(this,n,e)}function ukn(n,e){this.a=n,this.b=e}function skn(n,e){this.a=n,this.b=e}function okn(n,e){this.a=n,this.b=e}function fkn(n,e){this.a=n,this.b=e}function hkn(n,e){this.a=n,this.b=e}function lkn(n,e){this.a=n,this.b=e}function Pi(n,e){this.a=n,this.b=e}function Jj(n,e){Oe.call(this,n,e)}function akn(n,e){this.a=n,this.b=e}function dkn(n,e){this.a=n,this.b=e}function bkn(n,e){this.a=n,this.b=e}function wkn(n,e){this.a=n,this.b=e}function gkn(n,e){this.a=n,this.b=e}function pkn(n,e){this.a=n,this.b=e}function vkn(n,e){this.b=n,this.a=e}function mkn(n,e){this.b=n,this.a=e}function kkn(n,e){this.b=n,this.a=e}function ykn(n,e){this.b=n,this.a=e}function jkn(n,e){this.a=n,this.b=e}function Ekn(n,e){this.a=n,this.b=e}function yre(n,e){J9e(n.a,u(e,56))}function Ckn(n,e){f0e(n.a,u(e,11))}function jre(n,e){return h3(),e!=n}function Tkn(){return Q9n(),new Szn}function Mkn(){c$(),this.b=new fi}function Akn(){hM(),this.a=new fi}function Skn(){tX(),lW.call(this)}function a2(n,e){Oe.call(this,n,e)}function Pkn(n,e){this.a=n,this.b=e}function Ikn(n,e){this.a=n,this.b=e}function Yj(n,e){this.a=n,this.b=e}function Okn(n,e){this.a=n,this.b=e}function Dkn(n,e){this.a=n,this.b=e}function $kn(n,e){this.a=n,this.b=e}function Fkn(n,e){this.d=n,this.b=e}function lz(n,e){this.d=n,this.e=e}function xkn(n,e){this.f=n,this.c=e}function i8(n,e){this.b=n,this.c=e}function az(n,e){this.i=n,this.g=e}function Lkn(n,e){this.e=n,this.a=e}function Nkn(n,e){this.a=n,this.b=e}function dz(n,e){n.i=null,nT(n,e)}function Ere(n,e){n&&it($y,n,e)}function Bkn(n,e){return NF(n.a,e)}function Zj(n){return g7(n.c,n.b)}function Vr(n){return n?n.dd():null}function B(n){return n??null}function q0(n){return typeof n===X2}function G0(n){return typeof n===UZ}function mi(n){return typeof n===EL}function el(n,e){return n.Hd().Xb(e)}function nE(n,e){return Rbe(n.Kc(),e)}function gd(n,e){return fc(n,e)==0}function Cre(n,e){return fc(n,e)>=0}function b5(n,e){return fc(n,e)!=0}function Tre(n){return""+(_n(n),n)}function r8(n,e){return n.substr(e)}function Rkn(n){return $u(n),n.d.gc()}function $O(n){return yme(n,n.c),n}function eE(n){return A5(n==null),n}function w5(n,e){return n.a+=""+e,n}function dr(n,e){return n.a+=""+e,n}function g5(n,e){return n.a+=""+e,n}function rc(n,e){return n.a+=""+e,n}function De(n,e){return n.a+=""+e,n}function bz(n,e){return n.a+=""+e,n}function _kn(n,e){Kt(n,e,n.a,n.a.a)}function ua(n,e){Kt(n,e,n.c.b,n.c)}function Mre(n,e,t){VFn(e,Mx(n,t))}function Are(n,e,t){VFn(e,Mx(n,t))}function Sre(n,e){k0e(new ie(n),e)}function Kkn(n,e){n.q.setTime($d(e))}function Hkn(n,e){kW.call(this,n,e)}function qkn(n,e){kW.call(this,n,e)}function FO(n,e){kW.call(this,n,e)}function Gkn(n){Eu(this),Z5(this,n)}function wz(n){return Ln(n,0),null}function Lo(n){return n.a=0,n.b=0,n}function zkn(n,e){return n.a=e.g+1,n}function Pre(n,e){return n.j[e.p]==2}function gz(n){return lhe(u(n,79))}function Ukn(){Ukn=N,jUn=Fe(qF())}function Wkn(){Wkn=N,RWn=Fe(PNn())}function Xkn(){this.b=new s2(sb(12))}function Vkn(){this.b=0,this.a=!1}function Qkn(){this.b=0,this.a=!1}function p5(n){this.a=n,TI.call(this)}function Jkn(n){this.a=n,TI.call(this)}function In(n,e){ii.call(this,n,e)}function xO(n,e){V0.call(this,n,e)}function Ew(n,e){az.call(this,n,e)}function LO(n,e){H3.call(this,n,e)}function Ykn(n,e){c8.call(this,n,e)}function He(n,e){$j(),it(eI,n,e)}function NO(n,e){return Yu(n.a,0,e)}function Zkn(n,e){return n.a.a.a.cc(e)}function nyn(n,e){return B(n)===B(e)}function Ire(n,e){return Zt(n.a,e.a)}function Ore(n,e){return Uc(n.a,e.a)}function Dre(n,e){return xCn(n.a,e.a)}function Pf(n,e){return n.indexOf(e)}function pd(n,e){return n==e?0:n?1:-1}function tE(n){return n<10?"0"+n:""+n}function $re(n){return pe(n),new p5(n)}function eyn(n){return Bc(n.l,n.m,n.h)}function i3(n){return Gt((_n(n),n))}function Fre(n){return Gt((_n(n),n))}function tyn(n,e){return Uc(n.g,e.g)}function $r(n){return typeof n===UZ}function xre(n){return n==b0||n==Hb}function Lre(n){return n==b0||n==Kb}function pz(n){return Fr(n.b.b,n,0)}function iyn(n){this.a=Tkn(),this.b=n}function ryn(n){this.a=Tkn(),this.b=n}function Nre(n,e){return W(n.a,e),e}function Bre(n,e){return W(n.c,e),n}function cyn(n,e){return rs(n.a,e),n}function Rre(n,e){return wo(),e.a+=n}function _re(n,e){return wo(),e.a+=n}function Kre(n,e){return wo(),e.c+=n}function vz(n,e){S3(n,0,n.length,e)}function Sh(){Tq.call(this,new ba)}function uyn(){xE.call(this,0,0,0,0)}function d2(){ys.call(this,0,0,0,0)}function mr(n){this.a=n.a,this.b=n.b}function tl(n){return n==Zs||n==Ao}function r3(n){return n==Yh||n==Jh}function syn(n){return n==xg||n==Fg}function Cw(n){return n!=jf&&n!=ql}function Hu(n){return n.Lg()&&n.Mg()}function oyn(n){return JE(u(n,118))}function iE(n){return rs(new hi,n)}function fyn(n,e){return new H3(e,n)}function Hre(n,e){return new H3(e,n)}function mz(n,e,t){UC(n,e),WC(n,t)}function rE(n,e,t){Rd(n,e),Bd(n,t)}function Jo(n,e,t){Zc(n,e),nu(n,t)}function cE(n,e,t){D3(n,e),F3(n,t)}function uE(n,e,t){$3(n,e),x3(n,t)}function BO(n,e){X3(n,e),L3(n,n.D)}function kz(n){xkn.call(this,n,!0)}function hyn(n,e,t){fU.call(this,n,e,t)}function il(n){jl(),qbe.call(this,n)}function lyn(){Lj.call(this,"Head",1)}function ayn(){Lj.call(this,"Tail",3)}function RO(n){n.c=F(Zn,rn,1,0,5,1)}function dyn(n){n.a=F(Zn,rn,1,8,5,1)}function byn(n){Yc(n.xf(),new t5n(n))}function Tw(n){return n!=null?mt(n):0}function qre(n,e){return ob(e,nf(n))}function Gre(n,e){return ob(e,nf(n))}function zre(n,e){return n[n.length]=e}function Ure(n,e){return n[n.length]=e}function yz(n){return zoe(n.b.Kc(),n.a)}function Wre(n,e){return ZC(BD(n.d),e)}function Xre(n,e){return ZC(BD(n.g),e)}function Vre(n,e){return ZC(BD(n.j),e)}function tr(n,e){ii.call(this,n.b,e)}function vd(n){xE.call(this,n,n,n,n)}function jz(n){return n.b&&uL(n),n.a}function Ez(n){return n.b&&uL(n),n.c}function Qre(n,e){pf||(n.b=e)}function _O(n,e,t){return Mt(n,e,t),t}function wyn(n,e,t){Mt(n.c[e.g],e.g,t)}function Jre(n,e,t){u(n.c,69).Xh(e,t)}function Yre(n,e,t){Jo(t,t.i+n,t.j+e)}function Zre(n,e){me(bc(n.a),PMn(e))}function nce(n,e){me(Ou(n.a),IMn(e))}function v5(n){Je(),cd.call(this,n)}function ece(n){return n==null?0:mt(n)}function gyn(){gyn=N,hK=new f6(cH)}function je(){je=N,new pyn,new X}function pyn(){new we,new we,new we}function Cz(){Cz=N,Hq(),bin=new we}function Yo(){Yo=N,j.Math.log(2)}function ms(){ms=N,Eh=(E7n(),Dne)}function tce(){throw T(new t1(izn))}function ice(){throw T(new t1(izn))}function rce(){throw T(new t1(rzn))}function cce(){throw T(new t1(rzn))}function vyn(n){this.a=n,HU.call(this,n)}function KO(n){this.a=n,Ej.call(this,n)}function HO(n){this.a=n,Ej.call(this,n)}function bi(n,e){mD(n.c,n.c.length,e)}function Kr(n){return n.ae?1:0}function kyn(n,e){return fc(n,e)>0?n:e}function Bc(n,e,t){return{l:n,m:e,h:t}}function uce(n,e){n.a!=null&&Ckn(e,n.a)}function yyn(n){n.a=new aI,n.c=new aI}function sE(n){this.b=n,this.a=new X}function jyn(n){this.b=new san,this.a=n}function Mz(n){vU.call(this),this.a=n}function Eyn(){Lj.call(this,"Range",2)}function Cyn(){kJ(),this.a=new B7(Hrn)}function sce(n,e){pe(e),Iw(n).Jc(new ps)}function oce(n,e){return Zu(),e.n.b+=n}function fce(n,e,t){return it(n.g,t,e)}function hce(n,e,t){return it(n.k,t,e)}function lce(n,e){return it(n.a,e.a,e)}function Mw(n,e,t){return _Q(e,t,n.c)}function Az(n){return new fn(n.c,n.d)}function ace(n){return new fn(n.c,n.d)}function Qr(n){return new fn(n.a,n.b)}function Tyn(n,e){return xEe(n.a,e,null)}function dce(n){Hi(n,null),Ei(n,null)}function Myn(n){s$(n,null),o$(n,null)}function Ayn(){c8.call(this,null,null)}function Syn(){wE.call(this,null,null)}function Sz(n){this.a=n,we.call(this)}function bce(n){this.b=(Pn(),new DI(n))}function oE(n){n.j=F(Ain,q,310,0,0,1)}function wce(n,e,t){n.c.Vc(e,u(t,133))}function gce(n,e,t){n.c.ji(e,u(t,133))}function Pyn(n,e){de(n),n.Gc(u(e,15))}function m5(n,e){return Jje(n.c,n.b,e)}function pce(n,e){return new Jyn(n.Kc(),e)}function qO(n,e){return gwe(n.Kc(),e)!=-1}function Pz(n,e){return n.a.Bc(e)!=null}function fE(n){return n.Ob()?n.Pb():null}function Iyn(n){return Hs(n,0,n.length)}function I(n,e){return n!=null&&WF(n,e)}function vce(n,e){n.q.setHours(e),S6(n,e)}function Oyn(n,e){n.c&&(ZU(e),iMn(e))}function mce(n,e,t){u(n.Kb(t),164).Nb(e)}function kce(n,e,t){return SEe(n,e,t),t}function Dyn(n,e,t){n.a=e^1502,n.b=t^tN}function GO(n,e,t){return n.a[e.g][t.g]}function Zo(n,e){return n.a[e.c.p][e.p]}function yce(n,e){return n.e[e.c.p][e.p]}function jce(n,e){return n.c[e.c.p][e.p]}function Ece(n,e){return n.j[e.p]=D9e(e)}function Cce(n,e){return DX(n.f,e.tg())}function Tce(n,e){return DX(n.b,e.tg())}function Mce(n,e){return n.a0?e*e/n:e*e*100}function Jce(n,e){return n>0?e/(n*n):e*100}function Yce(n,e,t){return W(e,e$n(n,t))}function Zce(n,e,t){DC(),n.Xe(e)&&t.td(n)}function s3(n,e,t){var i;i=n.Zc(e),i.Rb(t)}function U0(n,e,t){return n.a+=e,n.b+=t,n}function nue(n,e,t){return n.a*=e,n.b*=t,n}function o8(n,e,t){return n.a-=e,n.b-=t,n}function Zz(n,e){return n.a=e.a,n.b=e.b,n}function vE(n){return n.a=-n.a,n.b=-n.b,n}function fjn(n){this.c=n,this.a=1,this.b=1}function hjn(n){this.c=n,Zc(n,0),nu(n,0)}function ljn(n){Ct.call(this),V5(this,n)}function ajn(n){yL(),Nmn(this),this.mf(n)}function djn(n,e){Zv(),c8.call(this,n,e)}function nU(n,e){c1(),wE.call(this,n,e)}function bjn(n,e){c1(),wE.call(this,n,e)}function wjn(n,e){c1(),nU.call(this,n,e)}function qu(n,e,t){Wu.call(this,n,e,t,2)}function JO(n,e){ms(),FE.call(this,n,e)}function gjn(n,e){ms(),JO.call(this,n,e)}function eU(n,e){ms(),JO.call(this,n,e)}function pjn(n,e){ms(),eU.call(this,n,e)}function tU(n,e){ms(),FE.call(this,n,e)}function vjn(n,e){ms(),tU.call(this,n,e)}function mjn(n,e){ms(),FE.call(this,n,e)}function eue(n,e){return n.c.Fc(u(e,133))}function iU(n,e,t){return jM(G8(n,e),t)}function tue(n,e,t){return e.Qk(n.e,n.c,t)}function iue(n,e,t){return e.Rk(n.e,n.c,t)}function YO(n,e){return pl(n.e,u(e,49))}function rue(n,e,t){s6(Ou(n.a),e,IMn(t))}function cue(n,e,t){s6(bc(n.a),e,PMn(t))}function rU(n,e){e.$modCount=n.$modCount}function C5(){C5=N,Xm=new kt("root")}function o3(){o3=N,xy=new w9n,new g9n}function kjn(){this.a=new Od,this.b=new Od}function cU(){RIn.call(this),this.Bb|=Yi}function yjn(){Oe.call(this,"GROW_TREE",0)}function uue(n){return n==null?null:CCe(n)}function sue(n){return n==null?null:D5e(n)}function oue(n){return n==null?null:Lr(n)}function fue(n){return n==null?null:Lr(n)}function Ph(n){n.o==null&&u9e(n)}function sn(n){return A5(n==null||q0(n)),n}function Y(n){return A5(n==null||G0(n)),n}function Te(n){return A5(n==null||mi(n)),n}function uU(n){this.q=new j.Date($d(n))}function f8(n,e){this.c=n,Yp.call(this,n,e)}function mE(n,e){this.a=n,f8.call(this,n,e)}function hue(n,e){this.d=n,Ovn(this),this.b=e}function sU(n,e){P$.call(this,n),this.a=e}function oU(n,e){P$.call(this,n),this.a=e}function lue(n){xQ.call(this,0,0),this.f=n}function fU(n,e,t){IC.call(this,n,e,t,null)}function jjn(n,e,t){IC.call(this,n,e,t,null)}function aue(n,e,t){return n.ue(e,t)<=0?t:e}function due(n,e,t){return n.ue(e,t)<=0?e:t}function bue(n,e){return u(xd(n.b,e),149)}function wue(n,e){return u(xd(n.c,e),229)}function ZO(n){return u(un(n.a,n.b),287)}function Ejn(n){return new fn(n.c,n.d+n.a)}function Cjn(n){return Zu(),syn(u(n,197))}function W0(){W0=N,prn=Cn((Vu(),id))}function gue(n,e){e.a?e7e(n,e):zO(n.a,e.b)}function Tjn(n,e){pf||W(n.a,e)}function pue(n,e){return H9(),K3(e.d.i,n)}function vue(n,e){return x2(),new ABn(e,n)}function Of(n,e){return T8(e,ann),n.f=e,n}function hU(n,e,t){return t=ss(n,e,3,t),t}function lU(n,e,t){return t=ss(n,e,6,t),t}function aU(n,e,t){return t=ss(n,e,9,t),t}function h8(n,e,t){++n.j,n.Ki(),A$(n,e,t)}function Mjn(n,e,t){++n.j,n.Hi(e,n.oi(e,t))}function Ajn(n,e,t){var i;i=n.Zc(e),i.Rb(t)}function Sjn(n,e,t){return MZ(n.c,n.b,e,t)}function dU(n,e){return(e&nt)%n.d.length}function ii(n,e){kt.call(this,n),this.a=e}function bU(n,e){xq.call(this,n),this.a=e}function nD(n,e){xq.call(this,n),this.a=e}function Pjn(n,e){this.c=n,Ld.call(this,e)}function Ijn(n,e){this.a=n,Omn.call(this,e)}function l8(n,e){this.a=n,Omn.call(this,e)}function Ojn(n){this.a=(is(n,Pb),new Pc(n))}function Djn(n){this.a=(is(n,Pb),new Pc(n))}function a8(n){return!n.a&&(n.a=new Rr),n.a}function $jn(n){return n>8?0:n+1}function mue(n,e){return qn(),n==e?0:n?1:-1}function wU(n,e,t){return m2(n,u(e,22),t)}function kue(n,e,t){return n.apply(e,t)}function Fjn(n,e,t){return n.a+=Hs(e,0,t),n}function gU(n,e){var t;return t=n.e,n.e=e,t}function yue(n,e){var t;t=n[eN],t.call(n,e)}function jue(n,e){var t;t=n[eN],t.call(n,e)}function X0(n,e){n.a.Vc(n.b,e),++n.b,n.c=-1}function xjn(n){Eu(n.e),n.d.b=n.d,n.d.a=n.d}function d8(n){n.b?d8(n.b):n.f.c.zc(n.e,n.d)}function Eue(n,e,t){ca(),Svn(n,e.Ce(n.a,t))}function Cue(n,e){return nO(p$n(n.a,e,!0))}function Tue(n,e){return nO(v$n(n.a,e,!0))}function bo(n,e){return pj(new Array(e),n)}function eD(n){return String.fromCharCode(n)}function Mue(n){return n==null?null:n.message}function Ljn(){this.a=new X,this.b=new X}function Njn(){this.a=new LH,this.b=new Umn}function Bjn(){this.b=new Li,this.c=new X}function pU(){this.d=new Li,this.e=new Li}function vU(){this.n=new Li,this.o=new Li}function kE(){this.n=new i2,this.i=new d2}function Rjn(){this.a=new v4n,this.b=new cwn}function _jn(){this.a=new X,this.d=new X}function Kjn(){this.b=new fi,this.a=new fi}function Hjn(){this.b=new we,this.a=new we}function qjn(){this.b=new E8n,this.a=new sgn}function Gjn(){kE.call(this),this.a=new Li}function T5(n){Jbe.call(this,n,(FC(),vR))}function mU(n,e,t,i){xE.call(this,n,e,t,i)}function Aue(n,e,t){t!=null&&JC(e,rx(n,t))}function Sue(n,e,t){t!=null&&YC(e,rx(n,t))}function kU(n,e,t){return t=ss(n,e,11,t),t}function ot(n,e){return n.a+=e.a,n.b+=e.b,n}function ki(n,e){return n.a-=e.a,n.b-=e.b,n}function Pue(n,e){return n.n.a=(_n(e),e+10)}function Iue(n,e){return n.n.a=(_n(e),e+10)}function Oue(n,e){return e==n||o4(sM(e),n)}function zjn(n,e){return it(n.a,e,"")==null}function Due(n,e){return H9(),!K3(e.d.i,n)}function $ue(n,e){tl(n.f)?Qme(n,e):Fve(n,e)}function Fue(n,e){var t;return t=e.Hh(n.a),t}function V0(n,e){vr.call(this,rm+n+Ra+e)}function g2(n,e,t,i){V.call(this,n,e,t,i)}function yU(n,e,t,i){V.call(this,n,e,t,i)}function Ujn(n,e,t,i){yU.call(this,n,e,t,i)}function Wjn(n,e,t,i){zE.call(this,n,e,t,i)}function tD(n,e,t,i){zE.call(this,n,e,t,i)}function jU(n,e,t,i){zE.call(this,n,e,t,i)}function Xjn(n,e,t,i){tD.call(this,n,e,t,i)}function EU(n,e,t,i){tD.call(this,n,e,t,i)}function Fn(n,e,t,i){jU.call(this,n,e,t,i)}function Vjn(n,e,t,i){EU.call(this,n,e,t,i)}function Qjn(n,e,t,i){yW.call(this,n,e,t,i)}function Jjn(n,e,t){this.a=n,Vz.call(this,e,t)}function Yjn(n,e,t){this.c=e,this.b=t,this.a=n}function xue(n,e,t){return n.d=u(e.Kb(t),164)}function CU(n,e){return n.Aj().Nh().Kh(n,e)}function TU(n,e){return n.Aj().Nh().Ih(n,e)}function Zjn(n,e){return _n(n),B(n)===B(e)}function An(n,e){return _n(n),B(n)===B(e)}function iD(n,e){return nO(p$n(n.a,e,!1))}function rD(n,e){return nO(v$n(n.a,e,!1))}function Lue(n,e){return n.b.sd(new D7n(n,e))}function Nue(n,e){return n.b.sd(new $7n(n,e))}function nEn(n,e){return n.b.sd(new F7n(n,e))}function MU(n,e,t){return n.lastIndexOf(e,t)}function Bue(n,e,t){return Zt(n[e.b],n[t.b])}function Rue(n,e){return H(e,(nn(),Jk),n)}function _ue(n,e){return Uc(e.a.d.p,n.a.d.p)}function Kue(n,e){return Uc(n.a.d.p,e.a.d.p)}function Hue(n,e){return Zt(n.c-n.s,e.c-e.s)}function eEn(n){return n.c?Fr(n.c.a,n,0):-1}function que(n){return n<100?null:new Q1(n)}function p2(n){return n==td||n==jh||n==Ac}function tEn(n,e){return I(e,15)&&oBn(n.c,e)}function Gue(n,e){pf||e&&(n.d=e)}function cD(n,e){var t;return t=e,!!VV(n,t)}function AU(n,e){this.c=n,DD.call(this,n,e)}function iEn(n){this.c=n,FO.call(this,IM,0)}function rEn(n,e){Voe.call(this,n,n.length,e)}function zue(n,e,t){return u(n.c,69).lk(e,t)}function yE(n,e,t){return u(n.c,69).mk(e,t)}function Uue(n,e,t){return tue(n,u(e,332),t)}function SU(n,e,t){return iue(n,u(e,332),t)}function Wue(n,e,t){return txn(n,u(e,332),t)}function cEn(n,e,t){return zve(n,u(e,332),t)}function M5(n,e){return e==null?null:ab(n.b,e)}function PU(n){return G0(n)?(_n(n),n):n.ke()}function jE(n){return!isNaN(n)&&!isFinite(n)}function uEn(n){Df(),this.a=(Pn(),new Wp(n))}function b8(n){h3(),this.d=n,this.a=new gw}function ks(n,e,t){this.a=n,this.b=e,this.c=t}function sEn(n,e,t){this.a=n,this.b=e,this.c=t}function oEn(n,e,t){this.d=n,this.b=t,this.a=e}function uD(n){yyn(this),_s(this),Vi(this,n)}function du(n){RO(this),GU(this.c,0,n.Pc())}function fEn(n){Uu(n.a),uPn(n.c,n.b),n.b=null}function hEn(n){this.a=n,Zf(),eu(Date.now())}function lEn(){lEn=N,Xin=new ou,XA=new ou}function sD(){sD=N,Rin=new iln,Pzn=new rln}function aEn(){aEn=N,Nne=F(Zn,rn,1,0,5,1)}function dEn(){dEn=N,eee=F(Zn,rn,1,0,5,1)}function IU(){IU=N,tee=F(Zn,rn,1,0,5,1)}function Df(){Df=N,new Bq((Pn(),Pn(),cr))}function Xue(n){return FC(),$e((pPn(),Dzn),n)}function Vue(n){return hf(),$e((LSn(),Bzn),n)}function Que(n){return $T(),$e((qAn(),Gzn),n)}function Jue(n){return RC(),$e((GAn(),zzn),n)}function Yue(n){return dM(),$e((IOn(),Uzn),n)}function Zue(n){return _o(),$e(($Sn(),Vzn),n)}function nse(n){return Cu(),$e((FSn(),Jzn),n)}function ese(n){return Jc(),$e((xSn(),Zzn),n)}function tse(n){return SM(),$e((Ukn(),jUn),n)}function ise(n){return Hd(),$e((mPn(),CUn),n)}function rse(n){return K2(),$e((kPn(),MUn),n)}function cse(n){return d6(),$e((yPn(),PUn),n)}function use(n){return Aj(),$e((yAn(),IUn),n)}function sse(n){return _C(),$e((zAn(),WUn),n)}function ose(n){return W5(),$e((NSn(),bWn),n)}function fse(n){return Qi(),$e((JPn(),vWn),n)}function hse(n){return G3(),$e((vPn(),EWn),n)}function lse(n){return qd(),$e((BSn(),PWn),n)}function OU(n,e){if(!n)throw T(new Hn(e))}function ase(n){return Qn(),$e((vIn(),$Wn),n)}function DU(n){xE.call(this,n.d,n.c,n.a,n.b)}function oD(n){xE.call(this,n.d,n.c,n.a,n.b)}function $U(n,e,t){this.b=n,this.c=e,this.a=t}function EE(n,e,t){this.b=n,this.a=e,this.c=t}function bEn(n,e,t){this.a=n,this.b=e,this.c=t}function FU(n,e,t){this.a=n,this.b=e,this.c=t}function wEn(n,e,t){this.a=n,this.b=e,this.c=t}function xU(n,e,t){this.a=n,this.b=e,this.c=t}function gEn(n,e,t){this.b=n,this.a=e,this.c=t}function CE(n,e,t){this.e=e,this.b=n,this.d=t}function dse(n,e,t){return ca(),n.a.Od(e,t),e}function fD(n){var e;return e=new Dln,e.e=n,e}function LU(n){var e;return e=new Zmn,e.b=n,e}function w8(){w8=N,sS=new Fdn,oS=new xdn}function wo(){wo=N,WWn=new pbn,XWn=new vbn}function bse(n){return aT(),$e((EPn(),HWn),n)}function wse(n){return ff(),$e((TPn(),JWn),n)}function gse(n){return lM(),$e((mOn(),cXn),n)}function pse(n){return q2(),$e((yIn(),uXn),n)}function vse(n){return OC(),$e((JAn(),sXn),n)}function mse(n){return F2(),$e((RSn(),oXn),n)}function kse(n){return Vw(),$e((UPn(),ZWn),n)}function yse(n){return Kd(),$e((HSn(),rXn),n)}function jse(n){return VC(),$e((_Sn(),fXn),n)}function Ese(n){return Pa(),$e((GPn(),hXn),n)}function Cse(n){return V8(),$e((WAn(),lXn),n)}function Tse(n){return ya(),$e((KSn(),dXn),n)}function Mse(n){return eM(),$e((TIn(),bXn),n)}function Ase(n){return K8(),$e((XAn(),wXn),n)}function Sse(n){return A7(),$e((EIn(),gXn),n)}function Pse(n){return h4(),$e((jIn(),pXn),n)}function Ise(n){return or(),$e((zOn(),vXn),n)}function Ose(n){return q3(),$e((GSn(),mXn),n)}function Dse(n){return Nh(),$e((qSn(),yXn),n)}function $se(n){return kC(),$e((YAn(),jXn),n)}function Fse(n){return Ss(),$e((WPn(),EXn),n)}function xse(n){return JT(),$e((CIn(),BQn),n)}function Lse(n){return i6(),$e((zSn(),RQn),n)}function Nse(n){return wb(),$e((MPn(),_Qn),n)}function Bse(n){return ur(),$e((XSn(),UQn),n)}function Rse(n){return Zw(),$e((vOn(),HQn),n)}function _se(n){return Rh(),$e((WSn(),qQn),n)}function Kse(n){return z8(),$e((QAn(),GQn),n)}function Hse(n){return oT(),$e((USn(),WQn),n)}function qse(n){return b6(),$e((zPn(),KQn),n)}function Gse(n){return x8(),$e((VAn(),XQn),n)}function zse(n){return Q3(),$e((QSn(),VQn),n)}function Use(n){return uT(),$e((JSn(),QQn),n)}function Wse(n){return dT(),$e((VSn(),JQn),n)}function Xse(n){return _d(),$e((YSn(),hJn),n)}function Vse(n){return z5(),$e((nSn(),wJn),n)}function Qse(n){return Ff(),$e((eSn(),jJn),n)}function Jse(n){return ef(),$e((tSn(),CJn),n)}function Yse(n){return No(),$e((ZAn(),RJn),n)}function Zse(n){return Id(),$e((iSn(),UJn),n)}function noe(n){return c4(),$e((jPn(),WJn),n)}function eoe(n){return k6(),$e((MIn(),VJn),n)}function toe(n){return aC(),$e((uSn(),fYn),n)}function ioe(n){return iT(),$e((cSn(),wYn),n)}function roe(n){return gC(),$e((rSn(),hYn),n)}function coe(n){return CT(),$e((ZSn(),pYn),n)}function uoe(n){return $C(),$e((sSn(),vYn),n)}function soe(n){return f7(),$e((nPn(),mYn),n)}function ooe(n){return qT(),$e((CPn(),FYn),n)}function foe(n){return sT(),$e((tPn(),xYn),n)}function hoe(n){return ET(),$e((ePn(),LYn),n)}function loe(n){return g4(),$e((QPn(),tZn),n)}function aoe(n){return w7(),$e((iPn(),iZn),n)}function doe(n){return Pj(),$e((mAn(),rZn),n)}function boe(n){return Ij(),$e((vAn(),uZn),n)}function woe(n){return L8(),$e((fSn(),sZn),n)}function goe(n){return P7(),$e((XPn(),oZn),n)}function poe(n){return Jv(),$e((kAn(),CZn),n)}function voe(n){return c7(),$e((oSn(),TZn),n)}function moe(n){return Ho(),$e((VPn(),OZn),n)}function koe(n){return y1(),$e((kOn(),$Zn),n)}function yoe(n){return oh(),$e((kIn(),FZn),n)}function joe(n){return vb(),$e((mIn(),_Zn),n)}function Eoe(n){return rr(),$e((Wkn(),RWn),n)}function Coe(n){return B3(),$e((UAn(),BWn),n)}function Toe(n){return sr(),$e((YPn(),ene),n)}function Moe(n){return sf(),$e((cPn(),tne),n)}function Aoe(n){return Hh(),$e((PPn(),ine),n)}function Soe(n){return ZT(),$e((SIn(),rne),n)}function Poe(n){return _h(),$e((rPn(),une),n)}function Ioe(n){return cs(),$e((SPn(),one),n)}function Ooe(n){return jb(),$e((POn(),fne),n)}function Doe(n){return qw(),$e((ZPn(),hne),n)}function $oe(n){return Ti(),$e((bIn(),lne),n)}function Foe(n){return Tu(),$e((AIn(),ane),n)}function xoe(n){return Vu(),$e((OPn(),vne),n)}function Loe(n){return xu(),$e((UOn(),mne),n)}function Noe(n){return J(),$e((nIn(),dne),n)}function Boe(n){return AT(),$e((IPn(),kne),n)}function Roe(n){return Xu(),$e((APn(),Ene),n)}function _oe(n){return d4(),$e((yOn(),Lne),n)}function Koe(n,e){return _n(n),n+(_n(e),e)}function Hoe(n,e){return Zf(),me(R(n.a),e)}function qoe(n,e){return Zf(),me(R(n.a),e)}function hD(n,e){this.c=n,this.a=e,this.b=e-n}function pEn(n,e,t){this.a=n,this.b=e,this.c=t}function NU(n,e,t){this.a=n,this.b=e,this.c=t}function BU(n,e,t){this.a=n,this.b=e,this.c=t}function vEn(n,e,t){this.a=n,this.b=e,this.c=t}function mEn(n,e,t){this.a=n,this.b=e,this.c=t}function s1(n,e,t){this.e=n,this.a=e,this.c=t}function kEn(n,e,t){ms(),QW.call(this,n,e,t)}function lD(n,e,t){ms(),FW.call(this,n,e,t)}function RU(n,e,t){ms(),FW.call(this,n,e,t)}function _U(n,e,t){ms(),FW.call(this,n,e,t)}function yEn(n,e,t){ms(),lD.call(this,n,e,t)}function KU(n,e,t){ms(),lD.call(this,n,e,t)}function jEn(n,e,t){ms(),KU.call(this,n,e,t)}function EEn(n,e,t){ms(),RU.call(this,n,e,t)}function CEn(n,e,t){ms(),_U.call(this,n,e,t)}function g8(n,e){return pe(n),pe(e),new z8n(n,e)}function v2(n,e){return pe(n),pe(e),new NEn(n,e)}function Goe(n,e){return pe(n),pe(e),new BEn(n,e)}function zoe(n,e){return pe(n),pe(e),new W8n(n,e)}function u(n,e){return A5(n==null||WF(n,e)),n}function f3(n){var e;return e=new X,_$(e,n),e}function Uoe(n){var e;return e=new fi,_$(e,n),e}function TEn(n){var e;return e=new Wq,nF(e,n),e}function p8(n){var e;return e=new Ct,nF(e,n),e}function Woe(n){return!n.e&&(n.e=new X),n.e}function Xoe(n){return!n.c&&(n.c=new Bp),n.c}function W(n,e){return n.c[n.c.length]=e,!0}function MEn(n,e){this.c=n,this.b=e,this.a=!1}function HU(n){this.d=n,Ovn(this),this.b=_fe(n.d)}function AEn(){this.a=";,;",this.b="",this.c=""}function Voe(n,e,t){SCn.call(this,e,t),this.a=n}function SEn(n,e,t){this.b=n,Hkn.call(this,e,t)}function qU(n,e,t){this.c=n,Nj.call(this,e,t)}function GU(n,e,t){aY(t,0,n,e,t.length,!1)}function eh(n,e,t,i,r){n.b=e,n.c=t,n.d=i,n.a=r}function Qoe(n,e){e&&(n.b=e,n.a=(fl(e),e.a))}function zU(n,e,t,i,r){n.d=e,n.c=t,n.a=i,n.b=r}function UU(n){var e,t;e=n.b,t=n.c,n.b=t,n.c=e}function WU(n){var e,t;t=n.d,e=n.a,n.d=e,n.a=t}function XU(n){return bl(the($r(n)?Ks(n):n))}function Joe(n,e){return Uc(GEn(n.d),GEn(e.d))}function Yoe(n,e){return e==(J(),Gn)?n.c:n.d}function h3(){h3=N,don=(J(),Gn),dP=Vn}function PEn(){this.b=K(Y(cn((Go(),xR))))}function IEn(n){return ca(),F(Zn,rn,1,n,5,1)}function Zoe(n){return new fn(n.c+n.b,n.d+n.a)}function nfe(n,e){return Sj(),Uc(n.d.p,e.d.p)}function aD(n){return ne(n.b!=0),Ts(n,n.a.a)}function efe(n){return ne(n.b!=0),Ts(n,n.c.b)}function VU(n,e){if(!n)throw T(new R9n(e))}function TE(n,e){if(!n)throw T(new Hn(e))}function QU(n,e,t){t3.call(this,n,e),this.b=t}function v8(n,e,t){lz.call(this,n,e),this.c=t}function OEn(n,e,t){oIn.call(this,e,t),this.d=n}function JU(n){IU(),Yy.call(this),this.th(n)}function DEn(n,e,t){this.a=n,Ew.call(this,e,t)}function $En(n,e,t){this.a=n,Ew.call(this,e,t)}function ME(n,e,t){lz.call(this,n,e),this.c=t}function FEn(){T3(),khe.call(this,(Z1(),uo))}function xEn(n){return n!=null&&!$F(n,a9,d9)}function tfe(n,e){return(GDn(n)<<4|GDn(e))&Ut}function ife(n,e){return QE(),ex(n,e),new oTn(n,e)}function sa(n,e){var t;n.n&&(t=e,W(n.f,t))}function l3(n,e,t){var i;i=new Z0(t),Ro(n,e,i)}function rfe(n,e){var t;return t=n.c,wV(n,e),t}function YU(n,e){return e<0?n.g=-1:n.g=e,n}function AE(n,e){return H0e(n),n.a*=e,n.b*=e,n}function LEn(n,e,t,i,r){n.c=e,n.d=t,n.b=i,n.a=r}function Ke(n,e){return Kt(n,e,n.c.b,n.c),!0}function ZU(n){n.a.b=n.b,n.b.a=n.a,n.a=n.b=null}function dD(n){this.b=n,this.a=Ed(this.b.a).Ed()}function NEn(n,e){this.b=n,this.a=e,TI.call(this)}function BEn(n,e){this.a=n,this.b=e,TI.call(this)}function REn(n,e){SCn.call(this,e,1040),this.a=n}function m8(n){return n==0||isNaN(n)?n:n<0?-1:1}function cfe(n){return C2(),fh(n)==At(ml(n))}function ufe(n){return C2(),ml(n)==At(fh(n))}function jd(n,e){return v6(n,new t3(e.a,e.b))}function sfe(n){return!Xi(n)&&n.c.i.c==n.d.i.c}function SE(n){var e;return e=n.n,n.a.b+e.d+e.a}function _En(n){var e;return e=n.n,n.e.b+e.d+e.a}function nW(n){var e;return e=n.n,n.e.a+e.b+e.c}function KEn(n){return Je(),new th(0,n)}function ofe(n){return n.a?n.a:WD(n)}function A5(n){if(!n)throw T(new Up(null))}function HEn(){HEn=N,mH=(Pn(),new OI(XB))}function PE(){PE=N,new JQ((HI(),uR),(qI(),cR))}function qEn(){qEn=N,jin=F(Wi,q,19,256,0,1)}function bD(n,e,t,i){MQ.call(this,n,e,t,i,0,0)}function ffe(n,e,t){return it(n.b,u(t.b,17),e)}function hfe(n,e,t){return it(n.b,u(t.b,17),e)}function lfe(n,e){return W(n,new fn(e.a,e.b))}function afe(n,e){return n.c=e)throw T(new qq)}function Xfe(n,e,t){return Mt(e,0,rW(e[0],t[0])),e}function Vfe(n,e,t){e.Ye(t,K(Y(te(n.b,t)))*n.a)}function ACn(n,e,t){return eg(),R3(n,e)&&R3(n,t)}function D5(n){return Tu(),!n.Hc(n1)&&!n.Hc(Gl)}function qE(n){return new fn(n.c+n.b/2,n.d+n.a/2)}function MD(n,e){return e.kh()?pl(n.b,u(e,49)):e}function kW(n,e){this.e=n,this.d=e&64?e|Nf:e}function SCn(n,e){this.c=0,this.d=n,this.b=e|64|Nf}function GE(n){this.b=new Pc(11),this.a=(Ow(),n)}function AD(n){this.b=null,this.a=(Ow(),n||Lin)}function PCn(n){this.a=Y$n(n.a),this.b=new du(n.b)}function ICn(n){this.b=n,b2.call(this,n),$yn(this)}function OCn(n){this.b=n,u8.call(this,n),Fyn(this)}function Y0(n,e,t){this.a=n,g2.call(this,e,t,5,6)}function yW(n,e,t,i){this.b=n,Jt.call(this,e,t,i)}function wi(n,e,t,i,r){D$.call(this,n,e,t,i,r,-1)}function $5(n,e,t,i,r){R8.call(this,n,e,t,i,r,-1)}function V(n,e,t,i){Jt.call(this,n,e,t),this.b=i}function zE(n,e,t,i){v8.call(this,n,e,t),this.b=i}function DCn(n){xkn.call(this,n,!1),this.a=!1}function $Cn(n,e){this.b=n,bvn.call(this,n.b),this.a=e}function FCn(n,e){nb(),Yie.call(this,n,mT(new Ku(e)))}function UE(n,e){return Je(),new xW(n,e,0)}function SD(n,e){return Je(),new xW(6,n,e)}function Qfe(n,e){return An(n.substr(0,e.length),e)}function zu(n,e){return mi(e)?QD(n,e):!!Ar(n.f,e)}function Oi(n,e){for(_n(e);n.Ob();)e.td(n.Pb())}function Pw(n,e,t){jl(),this.e=n,this.d=e,this.a=t}function o1(n,e,t,i){var r;r=n.i,r.i=e,r.a=t,r.b=i}function jW(n){var e;for(e=n;e.f;)e=e.f;return e}function y2(n){var e;return e=t6(n),ne(e!=null),e}function Jfe(n){var e;return e=Lge(n),ne(e!=null),e}function d3(n,e){var t;return t=n.a.gc(),$X(e,t),t-e}function EW(n,e){var t;for(t=0;t0?j.Math.log(n/e):-100}function xCn(n,e){return fc(n,e)<0?-1:fc(n,e)>0?1:0}function SW(n,e,t){return MRn(n,u(e,46),u(t,167))}function LCn(n,e){return u(vW(Ed(n.a)).Xb(e),42).cd()}function uhe(n,e){return P0e(e,n.length),new REn(n,e)}function DD(n,e){this.d=n,ie.call(this,n),this.e=e}function Cd(n){this.d=(_n(n),n),this.a=0,this.c=IM}function PW(n,e){cd.call(this,1),this.a=n,this.b=e}function NCn(n,e){return n.c?NCn(n.c,e):W(n.b,e),n}function she(n,e,t){var i;return i=ub(n,e),g$(n,e,t),i}function IW(n,e){var t;return t=n.slice(0,e),WX(t,n)}function BCn(n,e,t){var i;for(i=0;i=n.g}function KD(n,e,t){var i;return i=Y$(n,e,t),rZ(n,i)}function j2(n,e){var t;t=n.a.length,ub(n,t),g$(n,t,e)}function ZCn(n,e){var t;t=console[n],t.call(console,e)}function nTn(n,e){var t;++n.j,t=n.Vi(),n.Ii(n.oi(t,e))}function mhe(n,e,t){u(e.b,65),Yc(e.a,new NU(n,t,e))}function FW(n,e,t){uj.call(this,e),this.a=n,this.b=t}function xW(n,e,t){cd.call(this,n),this.a=e,this.b=t}function LW(n,e,t){this.a=n,xq.call(this,e),this.b=t}function eTn(n,e,t){this.a=n,aX.call(this,8,e,null,t)}function khe(n){this.a=(_n(xe),xe),this.b=n,new tG}function tTn(n){this.c=n,this.b=this.c.a,this.a=this.c.e}function NW(n){this.c=n,this.b=n.a.d.a,rU(n.a.e,this)}function Uu(n){z0(n.c!=-1),n.d.$c(n.c),n.b=n.c,n.c=-1}function L5(n){return j.Math.sqrt(n.a*n.a+n.b*n.b)}function Md(n,e){return a3(e,n.a.c.length),un(n.a,e)}function $f(n,e){return B(n)===B(e)||n!=null&&tt(n,e)}function yhe(n){return 0>=n?new PG:sbe(n-1)}function jhe(n){return aw?QD(aw,n):!1}function iTn(n){return n?n.dc():!n.Kc().Ob()}function Gi(n){return!n.a&&n.c?n.c.b:n.a}function Ehe(n){return!n.a&&(n.a=new Jt(zl,n,4)),n.a}function Ad(n){return!n.d&&(n.d=new Jt(ar,n,1)),n.d}function _n(n){if(n==null)throw T(new Nv);return n}function N5(n){n.c?n.c.He():(n.d=!0,S8e(n))}function fl(n){n.c?fl(n.c):(Ta(n),n.d=!0)}function rTn(n){KW(n.a),n.b=F(Zn,rn,1,n.b.length,5,1)}function Che(n,e){return Uc(e.j.c.length,n.j.c.length)}function The(n,e){n.c<0||n.b.b=0?n.Bh(t):bY(n,e)}function cTn(n){var e,t;return e=n.c.i.c,t=n.d.i.c,e==t}function Ahe(n){if(n.p!=4)throw T(new fu);return n.e}function She(n){if(n.p!=3)throw T(new fu);return n.e}function Phe(n){if(n.p!=6)throw T(new fu);return n.f}function Ihe(n){if(n.p!=6)throw T(new fu);return n.k}function Ohe(n){if(n.p!=3)throw T(new fu);return n.j}function Dhe(n){if(n.p!=4)throw T(new fu);return n.j}function BW(n){return!n.b&&(n.b=new sj(new KI)),n.b}function Sd(n){return n.c==-2&&Pte(n,Qve(n.g,n.b)),n.c}function g3(n,e){var t;return t=LD("",n),t.n=e,t.i=1,t}function $he(n,e){yD(u(e.b,65),n),Yc(e.a,new Aq(n))}function Fhe(n,e){me((!n.a&&(n.a=new l8(n,n)),n.a),e)}function uTn(n,e){this.b=n,DD.call(this,n,e),$yn(this)}function sTn(n,e){this.b=n,AU.call(this,n,e),Fyn(this)}function RW(n,e,t,i){bd.call(this,n,e),this.d=t,this.a=i}function VE(n,e,t,i){bd.call(this,n,t),this.a=e,this.f=i}function oTn(n,e){bce.call(this,obe(pe(n),pe(e))),this.a=e}function fTn(){UJ.call(this,Ka,(a8n(),hee)),tEe(this)}function hTn(){UJ.call(this,Vs,(Qp(),g1n)),lje(this)}function lTn(){Oe.call(this,"DELAUNAY_TRIANGULATION",0)}function xhe(n){return String.fromCharCode.apply(null,n)}function it(n,e,t){return mi(e)?kr(n,e,t):_c(n.f,e,t)}function _W(n){return Pn(),n?n.ve():(Ow(),Ow(),Bin)}function Lhe(n,e,t){return L2(),t.pg(n,u(e.cd(),146))}function aTn(n,e){return PE(),new JQ(new Wyn(n),new Uyn(e))}function Nhe(n){return is(n,AL),KC(qi(qi(5,n),n/10|0))}function QE(){QE=N,fzn=new GI(A(M(Ha,1),OM,42,0,[]))}function dTn(n){return!n.d&&(n.d=new _p(n.c.Cc())),n.d}function p3(n){return!n.a&&(n.a=new W9n(n.c.vc())),n.a}function bTn(n){return!n.b&&(n.b=new Wp(n.c.ec())),n.b}function rh(n,e){for(;e-- >0;)n=n<<1|(n<0?1:0);return n}function pc(n,e){return B(n)===B(e)||n!=null&&tt(n,e)}function Bhe(n,e){return qn(),u(e.b,19).ai&&++i,i}function Oh(n){var e,t;return t=(e=new ud,e),O3(t,n),t}function UD(n){var e,t;return t=(e=new ud,e),VJ(t,n),t}function Zhe(n,e){var t;return t=te(n.f,e),MV(e,t),null}function WD(n){var e;return e=hbe(n),e||null}function CTn(n){return!n.b&&(n.b=new V(di,n,12,3)),n.b}function n1e(n){return n!=null&&_9(tI,n.toLowerCase())}function e1e(n,e){return Zt(bu(n)*Gu(n),bu(e)*Gu(e))}function t1e(n,e){return Zt(bu(n)*Gu(n),bu(e)*Gu(e))}function i1e(n,e){return Zt(n.d.c+n.d.b/2,e.d.c+e.d.b/2)}function r1e(n,e){return Zt(n.g.c+n.g.b/2,e.g.c+e.g.b/2)}function TTn(n,e,t){t.a?nu(n,e.b-n.f/2):Zc(n,e.a-n.g/2)}function MTn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function ATn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function ha(n,e,t,i){this.e=n,this.a=e,this.c=t,this.d=i}function STn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function PTn(n,e,t,i){ms(),ySn.call(this,e,t,i),this.a=n}function ITn(n,e,t,i){ms(),ySn.call(this,e,t,i),this.a=n}function OTn(n,e){this.a=n,hue.call(this,n,u(n.d,15).Zc(e))}function XD(n){this.f=n,this.c=this.f.e,n.f>0&&qFn(this)}function DTn(n,e,t,i){this.b=n,this.c=i,FO.call(this,e,t)}function $Tn(n){return ne(n.b=0&&An(n.substr(t,e.length),e)}function hl(n,e,t,i,r,c,o){return new v$(n.e,e,t,i,r,c,o)}function QTn(n,e,t,i,r,c){this.a=n,z$.call(this,e,t,i,r,c)}function JTn(n,e,t,i,r,c){this.a=n,z$.call(this,e,t,i,r,c)}function YTn(n,e){this.g=n,this.d=A(M(vh,1),E1,10,0,[e])}function f1(n,e){this.e=n,this.a=Zn,this.b=yBn(e),this.c=e}function ZTn(n,e){kE.call(this),eV(this),this.a=n,this.c=e}function M8(n,e,t,i){Mt(n.c[e.g],t.g,i),Mt(n.c[t.g],e.g,i)}function ZD(n,e,t,i){Mt(n.c[e.g],e.g,t),Mt(n.b[e.g],e.g,i)}function M1e(){return x8(),A(M(ron,1),z,376,0,[uK,iy])}function A1e(){return K8(),A(M(Qcn,1),z,479,0,[Vcn,xS])}function S1e(){return V8(),A(M(Wcn,1),z,419,0,[$S,Ucn])}function P1e(){return OC(),A(M(Rcn,1),z,422,0,[Bcn,s_])}function I1e(){return kC(),A(M(fun,1),z,420,0,[j_,oun])}function O1e(){return z8(),A(M(non,1),z,421,0,[iK,rK])}function D1e(){return z5(),A(M(bJn,1),z,523,0,[Hm,Km])}function $1e(){return No(),A(M(BJn,1),z,520,0,[tw,Bl])}function F1e(){return Ff(),A(M(yJn,1),z,516,0,[M0,I1])}function x1e(){return ef(),A(M(EJn,1),z,515,0,[Ja,kf])}function L1e(){return Id(),A(M(zJn,1),z,455,0,[Rl,Lg])}function N1e(){return gC(),A(M(Son,1),z,425,0,[yK,Aon])}function B1e(){return aC(),A(M(Mon,1),z,480,0,[kK,Ton])}function R1e(){return iT(),A(M(Pon,1),z,495,0,[EP,mv])}function _1e(){return $C(),A(M(Oon,1),z,426,0,[Ion,TK])}function K1e(){return c7(),A(M(Ffn,1),z,429,0,[DP,$fn])}function H1e(){return L8(),A(M(afn,1),z,430,0,[FK,IP])}function q1e(){return $T(),A(M(Jin,1),z,428,0,[yR,Qin])}function G1e(){return RC(),A(M(Zin,1),z,427,0,[Yin,jR])}function z1e(){return _C(),A(M(Arn,1),z,424,0,[$R,tS])}function U1e(){return B3(),A(M(NWn,1),z,511,0,[_k,UR])}function sC(n,e,t,i){return t>=0?n.jh(e,t,i):n.Sg(null,t,i)}function n$(n){return n.b.b==0?n.a.$e():aD(n.b)}function W1e(n){if(n.p!=5)throw T(new fu);return ge(n.f)}function X1e(n){if(n.p!=5)throw T(new fu);return ge(n.k)}function VW(n){return B(n.a)===B((eF(),gH))&&Vje(n),n.a}function nMn(n){this.a=u(pe(n),271),this.b=(Pn(),new Hz(n))}function eMn(n,e){bte(this,new fn(n.a,n.b)),wte(this,p8(e))}function Id(){Id=N,Rl=new iz(Y2,0),Lg=new iz(Z2,1)}function Ff(){Ff=N,M0=new ez(Z2,0),I1=new ez(Y2,1)}function Od(){rie.call(this,new s2(sb(12))),Bz(!0),this.a=2}function e$(n,e,t){Je(),cd.call(this,n),this.b=e,this.a=t}function QW(n,e,t){ms(),uj.call(this,e),this.a=n,this.b=t}function tMn(n){kE.call(this),eV(this),this.a=n,this.c=!0}function iMn(n){var e;e=n.c.d.b,n.b=e,n.a=n.c.d,e.a=n.c.d.b=n}function oC(n){var e;ebe(n.a),byn(n.a),e=new tj(n.a),TQ(e)}function V1e(n,e){aBn(n,!0),Yc(n.e.wf(),new $U(n,!0,e))}function fC(n,e){return LAn(e),Y0e(n,F(be,Le,25,e,15,1),e)}function Q1e(n,e){return C2(),n==At(fh(e))||n==At(ml(e))}function vc(n,e){return e==null?Vr(Ar(n.f,null)):n5(n.g,e)}function J1e(n){return n.b==0?null:(ne(n.b!=0),Ts(n,n.a.a))}function Gt(n){return Math.max(Math.min(n,nt),-2147483648)|0}function Y1e(n,e){var t=lR[n.charCodeAt(0)];return t??n}function hC(n,e){return tC(n,"set1"),tC(e,"set2"),new Z8n(n,e)}function Z1e(n,e){var t;return t=W0e(n.f,e),ot(vE(t),n.f.d)}function R5(n,e){var t,i;return t=e,i=new dI,n_n(n,t,i),i.d}function t$(n,e,t,i){var r;r=new Gjn,e.a[t.g]=r,m2(n.b,i,r)}function JW(n,e,t){var i;i=n.Yg(e),i>=0?n.sh(i,t):_Y(n,e,t)}function Dw(n,e,t){dC(),n&&it(dH,n,e),n&&it($y,n,t)}function rMn(n,e,t){this.i=new X,this.b=n,this.g=e,this.a=t}function lC(n,e,t){this.c=new X,this.e=n,this.f=e,this.b=t}function YW(n,e,t){this.a=new X,this.e=n,this.f=e,this.c=t}function cMn(n,e){oE(this),this.f=e,this.g=n,eC(this),this._d()}function A8(n,e){var t;t=n.q.getHours(),n.q.setDate(e),S6(n,t)}function uMn(n,e){var t;for(pe(e),t=n.a;t;t=t.c)e.Od(t.g,t.i)}function sMn(n){var e;return e=new kj(sb(n.length)),qV(e,n),e}function nle(n){function e(){}return e.prototype=n||{},new e}function ele(n,e){return LOn(n,e)?(FIn(n),!0):!1}function Dh(n,e){if(e==null)throw T(new Nv);return Y2e(n,e)}function tle(n){if(n.qe())return null;var e=n.n;return RA[e]}function S8(n){return n.Db>>16!=3?null:u(n.Cb,33)}function nf(n){return n.Db>>16!=9?null:u(n.Cb,33)}function oMn(n){return n.Db>>16!=6?null:u(n.Cb,79)}function fMn(n){return n.Db>>16!=7?null:u(n.Cb,235)}function hMn(n){return n.Db>>16!=7?null:u(n.Cb,160)}function At(n){return n.Db>>16!=11?null:u(n.Cb,33)}function lMn(n,e){var t;return t=n.Yg(e),t>=0?n.lh(t):Ox(n,e)}function aMn(n,e){var t;return t=new iW(e),dxn(t,n),new du(t)}function ZW(n){var e;return e=n.d,e=n.si(n.f),me(n,e),e.Ob()}function dMn(n,e){return n.b+=e.b,n.c+=e.c,n.d+=e.d,n.a+=e.a,n}function i$(n,e){return j.Math.abs(n)0}function bMn(){this.a=new Sh,this.e=new fi,this.g=0,this.i=0}function wMn(n){this.a=n,this.b=F(lJn,q,1944,n.e.length,0,2)}function r$(n,e,t){var i;i=tDn(n,e,t),n.b=new tT(i.c.length)}function ef(){ef=N,Ja=new nz(hN,0),kf=new nz("UP",1)}function aC(){aC=N,kK=new rz(PHn,0),Ton=new rz("FAN",1)}function dC(){dC=N,dH=new we,$y=new we,Ere(Azn,new z2n)}function rle(n){if(n.p!=0)throw T(new fu);return b5(n.f,0)}function cle(n){if(n.p!=0)throw T(new fu);return b5(n.k,0)}function gMn(n){return n.Db>>16!=3?null:u(n.Cb,147)}function y3(n){return n.Db>>16!=6?null:u(n.Cb,235)}function eb(n){return n.Db>>16!=17?null:u(n.Cb,26)}function pMn(n,e){var t=n.a=n.a||[];return t[e]||(t[e]=n.le(e))}function ule(n,e){var t;return t=n.a.get(e),t??new Array}function sle(n,e){var t;t=n.q.getHours(),n.q.setMonth(e),S6(n,t)}function kr(n,e,t){return e==null?_c(n.f,null,t):Gd(n.g,e,t)}function _5(n,e,t,i,r,c){return new Lh(n.e,e,n.aj(),t,i,r,c)}function P8(n,e,t){return n.a=Yu(n.a,0,e)+(""+t)+r8(n.a,e),n}function ole(n,e,t){return W(n.a,(QE(),ex(e,t),new bd(e,t))),n}function nX(n){return _z(n.c),n.e=n.a=n.c,n.c=n.c.c,++n.d,n.a.f}function vMn(n){return _z(n.e),n.c=n.a=n.e,n.e=n.e.e,--n.d,n.a.f}function Ei(n,e){n.d&&Qc(n.d.e,n),n.d=e,n.d&&W(n.d.e,n)}function Hi(n,e){n.c&&Qc(n.c.g,n),n.c=e,n.c&&W(n.c.g,n)}function yr(n,e){n.c&&Qc(n.c.a,n),n.c=e,n.c&&W(n.c.a,n)}function Hr(n,e){n.i&&Qc(n.i.j,n),n.i=e,n.i&&W(n.i.j,n)}function mMn(n,e,t){this.a=e,this.c=n,this.b=(pe(t),new du(t))}function kMn(n,e,t){this.a=e,this.c=n,this.b=(pe(t),new du(t))}function yMn(n,e){this.a=n,this.c=Qr(this.a),this.b=new uC(e)}function fle(n){var e;return Ta(n),e=new fi,gt(n,new Vvn(e))}function tb(n,e){if(n<0||n>e)throw T(new vr(cnn+n+unn+e))}function eX(n,e){return lCn(n.a,e)?TW(n,u(e,22).g,null):null}function hle(n){return yF(),qn(),u(n.a,81).d.e!=0}function jMn(){jMn=N,azn=Fe((aj(),A(M(lzn,1),z,538,0,[fR])))}function EMn(){EMn=N,YQn=ju(new hi,(Qi(),Ir),(rr(),Kk))}function tX(){tX=N,ZQn=ju(new hi,(Qi(),Ir),(rr(),Kk))}function CMn(){CMn=N,eJn=ju(new hi,(Qi(),Ir),(rr(),Kk))}function TMn(){TMn=N,gJn=Ze(new hi,(Qi(),Ir),(rr(),km))}function Zu(){Zu=N,mJn=Ze(new hi,(Qi(),Ir),(rr(),km))}function MMn(){MMn=N,kJn=Ze(new hi,(Qi(),Ir),(rr(),km))}function c$(){c$=N,TJn=Ze(new hi,(Qi(),Ir),(rr(),km))}function AMn(){AMn=N,lYn=ju(new hi,(c4(),Gm),(k6(),lK))}function aa(n,e,t,i){this.c=n,this.d=i,s$(this,e),o$(this,t)}function M2(n){this.c=new Ct,this.b=n.b,this.d=n.c,this.a=n.a}function u$(n){this.a=j.Math.cos(n),this.b=j.Math.sin(n)}function s$(n,e){n.a&&Qc(n.a.k,n),n.a=e,n.a&&W(n.a.k,n)}function o$(n,e){n.b&&Qc(n.b.f,n),n.b=e,n.b&&W(n.b.f,n)}function SMn(n,e){mhe(n,n.b,n.c),u(n.b.b,65),e&&u(e.b,65).b}function lle(n,e){vQ(n,e),I(n.Cb,88)&&yb(Iu(u(n.Cb,88)),2)}function f$(n,e){I(n.Cb,88)&&yb(Iu(u(n.Cb,88)),4),Ic(n,e)}function bC(n,e){I(n.Cb,179)&&(u(n.Cb,179).tb=null),Ic(n,e)}function mc(n,e){return er(),R$(e)?new IE(e,n):new i8(e,n)}function ale(n,e){var t,i;t=e.c,i=t!=null,i&&j2(n,new Z0(e.c))}function PMn(n){var e,t;return t=(Qp(),e=new ud,e),O3(t,n),t}function IMn(n){var e,t;return t=(Qp(),e=new ud,e),O3(t,n),t}function OMn(n,e){var t;return t=new Rs(n),e.c[e.c.length]=t,t}function DMn(n,e){var t;return t=u(ab(T2(n.a),e),14),t?t.gc():0}function $Mn(n){var e;return Ta(n),e=(Ow(),Ow(),Nin),qC(n,e)}function FMn(n){for(var e;;)if(e=n.Pb(),!n.Ob())return e}function iX(n,e){tie.call(this,new s2(sb(n))),is(e,W_n),this.a=e}function ch(n,e,t){KDn(e,t,n.gc()),this.c=n,this.a=e,this.b=t-e}function xMn(n,e,t){var i;KDn(e,t,n.c.length),i=t-e,AG(n.c,e,i)}function dle(n,e){Dyn(n,ge(ci(cl(e,24),FM)),ge(ci(e,FM)))}function Ln(n,e){if(n<0||n>=e)throw T(new vr(cnn+n+unn+e))}function Me(n,e){if(n<0||n>=e)throw T(new wG(cnn+n+unn+e))}function xn(n,e){this.b=(_n(n),n),this.a=e&Ib?e:e|64|Nf}function LMn(n){dyn(this),Wmn(this.a,KV(j.Math.max(8,n))<<1)}function tf(n){return Gr(A(M(ai,1),q,8,0,[n.i.n,n.n,n.a]))}function ble(){return hf(),A(M(Nu,1),z,132,0,[Win,hs,Rb])}function wle(){return _o(),A(M(_b,1),z,232,0,[Zr,Fc,nc])}function gle(){return Cu(),A(M(Qzn,1),z,461,0,[Xf,Ol,Co])}function ple(){return Jc(),A(M(Yzn,1),z,462,0,[Wo,Dl,To])}function vle(){return qd(),A(M(zrn,1),z,423,0,[yg,Grn,qR])}function mle(){return W5(),A(M(Krn,1),z,379,0,[NR,LR,BR])}function kle(){return i6(),A(M(Gsn,1),z,378,0,[J_,qsn,oP])}function yle(){return F2(),A(M(Kcn,1),z,314,0,[ap,qk,_cn])}function jle(){return VC(),A(M(qcn,1),z,337,0,[Hcn,DS,o_])}function Ele(){return ya(),A(M(aXn,1),z,450,0,[l_,cv,Tg])}function Cle(){return Kd(),A(M(YR,1),z,361,0,[g0,Fl,w0])}function Tle(){return Nh(),A(M(kXn,1),z,303,0,[zk,Ag,dp])}function Mle(){return q3(),A(M(y_,1),z,292,0,[m_,k_,Gk])}function Ale(){return ur(),A(M(zQn,1),z,452,0,[Bm,Au,xc])}function Sle(){return Rh(),A(M(Zsn,1),z,339,0,[Nl,Ysn,tK])}function Ple(){return oT(),A(M(ion,1),z,375,0,[eon,cK,ton])}function Ile(){return dT(),A(M(hon,1),z,377,0,[fK,pv,ew])}function Ole(){return Q3(),A(M(uon,1),z,336,0,[sK,con,Rm])}function Dle(){return uT(),A(M(fon,1),z,338,0,[oon,oK,son])}function $le(){return _d(),A(M(fJn,1),z,454,0,[ry,_m,aP])}function Fle(){return CT(),A(M(gYn,1),z,442,0,[CK,jK,EK])}function xle(){return f7(),A(M(Fon,1),z,380,0,[CP,Don,$on])}function Lle(){return ET(),A(M(Yon,1),z,381,0,[Jon,IK,Qon])}function Nle(){return sT(),A(M(Xon,1),z,293,0,[PK,Won,Uon])}function Ble(){return w7(),A(M(OK,1),z,437,0,[AP,SP,PP])}function Rle(){return _h(),A(M(Khn,1),z,334,0,[HP,F1,i9])}function _le(){return sf(),A(M(Phn,1),z,272,0,[jv,cw,Ev])}function Kle(n,e){return o9e(n,e,I(e,99)&&(u(e,18).Bb&Yi)!=0)}function Hle(n,e,t){var i;return i=O6(n,e,!1),i.b<=e&&i.a<=t}function NMn(n,e,t){var i;i=new Jwn,i.b=e,i.a=t,++e.b,W(n.d,i)}function qle(n,e){var t;return t=(_n(n),n).g,Yz(!!t),_n(e),t(e)}function rX(n,e){var t,i;return i=d3(n,e),t=n.a.Zc(i),new Y8n(n,t)}function Gle(n){return n.Db>>16!=6?null:u(Fx(n),235)}function zle(n){if(n.p!=2)throw T(new fu);return ge(n.f)&Ut}function Ule(n){if(n.p!=2)throw T(new fu);return ge(n.k)&Ut}function Wle(n){return n.a==(T3(),uI)&&Ste(n,C9e(n.g,n.b)),n.a}function A2(n){return n.d==(T3(),uI)&&Ite(n,pke(n.g,n.b)),n.d}function y(n){return ne(n.ai?1:0}function BMn(n,e){var t,i;return t=F$(e),i=t,u(te(n.c,i),19).a}function RMn(n,e){var t;for(t=n+"";t.length0&&n.a[--n.d]==0;);n.a[n.d++]==0&&(n.e=0)}function rAn(n){return n.a?n.e.length==0?n.a.a:n.a.a+(""+n.e):n.c}function rae(n){return!!n.a&&Ou(n.a.a).i!=0&&!(n.b&&YF(n.b))}function cae(n){return!!n.u&&bc(n.u.a).i!=0&&!(n.n&&JF(n.n))}function cAn(n){return gD(n.e.Hd().gc()*n.c.Hd().gc(),16,new tvn(n))}function uae(n,e){return xCn(eu(n.q.getTime()),eu(e.q.getTime()))}function xf(n){return u(lf(n,F(GR,MN,17,n.c.length,0,1)),474)}function I8(n){return u(lf(n,F(vh,E1,10,n.c.length,0,1)),193)}function sae(n){return Zu(),!Xi(n)&&!(!Xi(n)&&n.c.i.c==n.d.i.c)}function uAn(n,e,t){var i;i=(pe(n),new du(n)),N3e(new mMn(i,e,t))}function O8(n,e,t){var i;i=(pe(n),new du(n)),B3e(new kMn(i,e,t))}function sAn(n,e){var t;return t=1-e,n.a[t]=eT(n.a[t],t),eT(n,e)}function oAn(n,e){var t;n.e=new oG,t=Cb(e),bi(t,n.c),eBn(n,t,0)}function Ci(n,e,t,i){var r;r=new XH,r.a=e,r.b=t,r.c=i,Ke(n.a,r)}function Z(n,e,t,i){var r;r=new XH,r.a=e,r.b=t,r.c=i,Ke(n.b,r)}function po(n){var e,t,i;return e=new HCn,t=Zx(e,n),UEe(e),i=t,i}function hX(){var n,e,t;return e=(t=(n=new ud,n),t),W(M1n,e),e}function pC(n){return n.j.c=F(Zn,rn,1,0,5,1),KW(n.c),Khe(n.a),n}function $w(n){return Qv(),I(n.g,10)?u(n.g,10):null}function oae(n){return Iw(n).dc()?!1:(sce(n,new Np),!0)}function fae(n){if(!("stack"in n))try{throw n}catch{}return n}function D8(n,e){if(n<0||n>=e)throw T(new vr(j6e(n,e)));return n}function fAn(n,e,t){if(n<0||et)throw T(new vr(W5e(n,e,t)))}function d$(n,e){if(ri(n.a,e),e.d)throw T(new _r(wKn));e.d=n}function b$(n,e){if(e.$modCount!=n.$modCount)throw T(new vs)}function hAn(n,e){return I(e,42)?ix(n.a,u(e,42)):!1}function lAn(n,e){return I(e,42)?ix(n.a,u(e,42)):!1}function aAn(n,e){return I(e,42)?ix(n.a,u(e,42)):!1}function hae(n,e){return n.a<=n.b?(e.ud(n.a++),!0):!1}function $d(n){var e;return $r(n)?(e=n,e==-0?0:e):m0e(n)}function vC(n){var e;return fl(n),e=new fln,vw(n.a,new Wvn(e)),e}function dAn(n){var e;return fl(n),e=new oln,vw(n.a,new Uvn(e)),e}function Ii(n,e){this.a=n,$v.call(this,n),tb(e,n.gc()),this.b=e}function lX(n){this.e=n,this.b=this.e.a.entries(),this.a=new Array}function lae(n){return gD(n.e.Hd().gc()*n.c.Hd().gc(),273,new evn(n))}function mC(n){return new Pc((is(n,AL),KC(qi(qi(5,n),n/10|0))))}function bAn(n){return u(lf(n,F(FWn,UKn,11,n.c.length,0,1)),1943)}function aae(n,e,t){return t.f.c.length>0?SW(n.a,e,t):SW(n.b,e,t)}function dae(n,e,t){n.d&&Qc(n.d.e,n),n.d=e,n.d&&Q0(n.d.e,t,n)}function w$(n,e){uTe(e,n),WU(n.d),WU(u(k(n,(nn(),eP)),207))}function H5(n,e){cTe(e,n),UU(n.d),UU(u(k(n,(nn(),eP)),207))}function Fd(n,e){var t,i;return t=Dh(n,e),i=null,t&&(i=t.fe()),i}function j3(n,e){var t,i;return t=ub(n,e),i=null,t&&(i=t.ie()),i}function q5(n,e){var t,i;return t=Dh(n,e),i=null,t&&(i=t.ie()),i}function $h(n,e){var t,i;return t=Dh(n,e),i=null,t&&(i=tY(t)),i}function bae(n,e,t){var i;return i=i4(t),gM(n.g,i,e),gM(n.i,e,t),e}function wae(n,e,t){var i;i=q2e();try{return kue(n,e,t)}finally{Mae(i)}}function wAn(n){var e;e=n.Wg(),this.a=I(e,69)?u(e,69).Zh():e.Kc()}function hi(){P9n.call(this),this.j.c=F(Zn,rn,1,0,5,1),this.a=-1}function aX(n,e,t,i){this.d=n,this.n=e,this.g=t,this.o=i,this.p=-1}function gAn(n,e,t,i){this.e=i,this.d=null,this.c=n,this.a=e,this.b=t}function dX(n,e,t){this.d=new r6n(this),this.e=n,this.i=e,this.f=t}function kC(){kC=N,j_=new QG(I4,0),oun=new QG("TOP_LEFT",1)}function pAn(){pAn=N,aon=aTn(Q(1),Q(4)),lon=aTn(Q(1),Q(2))}function vAn(){vAn=N,uZn=Fe((Ij(),A(M(cZn,1),z,551,0,[$K])))}function mAn(){mAn=N,rZn=Fe((Pj(),A(M(lfn,1),z,482,0,[DK])))}function kAn(){kAn=N,CZn=Fe((Jv(),A(M(Dfn,1),z,530,0,[hy])))}function yAn(){yAn=N,IUn=Fe((Aj(),A(M(krn,1),z,481,0,[SR])))}function gae(){return Hd(),A(M(EUn,1),z,406,0,[Ok,Ik,MR,AR])}function pae(){return FC(),A(M(WA,1),z,297,0,[vR,qin,Gin,zin])}function vae(){return d6(),A(M(SUn,1),z,394,0,[Lk,YA,ZA,Nk])}function mae(){return K2(),A(M(TUn,1),z,323,0,[$k,Dk,Fk,xk])}function kae(){return G3(),A(M(jWn,1),z,405,0,[b0,Hb,Kb,kg])}function yae(){return aT(),A(M(KWn,1),z,360,0,[QR,TS,MS,Hk])}function jAn(n,e,t,i){return I(t,54)?new ojn(n,e,t,i):new pW(n,e,t,i)}function jae(){return ff(),A(M(QWn,1),z,411,0,[lp,nv,ev,JR])}function Eae(n){var e;return n.j==(J(),ae)&&(e=GLn(n),au(e,Vn))}function Cae(n,e){var t;t=e.a,Hi(t,e.c.d),Ei(t,e.d.d),fb(t.a,n.n)}function EAn(n,e){return u(yd(KE(u(ct(n.k,e),15).Oc(),jg)),113)}function CAn(n,e){return u(yd(HE(u(ct(n.k,e),15).Oc(),jg)),113)}function Tae(n){return new xn(jbe(u(n.a.dd(),14).gc(),n.a.cd()),16)}function E3(n){return I(n,14)?u(n,14).dc():!n.Kc().Ob()}function S2(n){return Qv(),I(n.g,145)?u(n.g,145):null}function TAn(n){if(n.e.g!=n.b)throw T(new vs);return!!n.c&&n.d>0}function Re(n){return ne(n.b!=n.d.c),n.c=n.b,n.b=n.b.a,++n.a,n.c.c}function bX(n,e){_n(e),Mt(n.a,n.c,e),n.c=n.c+1&n.a.length-1,MFn(n)}function ll(n,e){_n(e),n.b=n.b-1&n.a.length-1,Mt(n.a,n.b,e),MFn(n)}function MAn(n,e){var t;for(t=n.j.c.length;t0&&gc(n.g,0,e,0,n.i),e}function IAn(n,e){$j();var t;return t=u(te(eI,n),55),!t||t.wj(e)}function Bae(n){if(n.p!=1)throw T(new fu);return ge(n.f)<<24>>24}function Rae(n){if(n.p!=1)throw T(new fu);return ge(n.k)<<24>>24}function _ae(n){if(n.p!=7)throw T(new fu);return ge(n.k)<<16>>16}function Kae(n){if(n.p!=7)throw T(new fu);return ge(n.f)<<16>>16}function Fh(n){var e;for(e=0;n.Ob();)n.Pb(),e=qi(e,1);return KC(e)}function OAn(n,e){var t;return t=new R0,n.xd(t),t.a+="..",e.yd(t),t.a}function Hae(n,e,t){var i;i=u(te(n.g,t),57),W(n.a.c,new Pi(e,i))}function qae(n,e,t){return TD(Y(Vr(Ar(n.f,e))),Y(Vr(Ar(n.f,t))))}function yC(n,e,t){return vM(n,e,t,I(e,99)&&(u(e,18).Bb&Yi)!=0)}function Gae(n,e,t){return m4(n,e,t,I(e,99)&&(u(e,18).Bb&Yi)!=0)}function zae(n,e,t){return b9e(n,e,t,I(e,99)&&(u(e,18).Bb&Yi)!=0)}function pX(n,e){return n==(Qn(),ti)&&e==ti?4:n==ti||e==ti?8:32}function DAn(n,e){return B(e)===B(n)?"(this Map)":e==null?iu:Lr(e)}function Uae(n,e){return u(e==null?Vr(Ar(n.f,null)):n5(n.g,e),281)}function $An(n,e,t){var i;return i=i4(t),it(n.b,i,e),it(n.c,e,t),e}function FAn(n,e){var t;for(t=e;t;)U0(n,t.i,t.j),t=At(t);return n}function vX(n,e){var t;return t=C8(f3(new x$(n,e))),DE(new x$(n,e)),t}function uh(n,e){er();var t;return t=u(n,66).Mj(),M5e(t,e),t.Ok(e)}function Wae(n,e,t,i,r){var c;c=m9e(r,t,i),W(e,p6e(r,c)),o5e(n,r,e)}function xAn(n,e,t){n.i=0,n.e=0,e!=t&&(uDn(n,e,t),cDn(n,e,t))}function mX(n,e){var t;t=n.q.getHours(),n.q.setFullYear(e+Tl),S6(n,t)}function Xae(n,e,t){if(t){var i=t.ee();n.a[e]=i(t)}else delete n.a[e]}function g$(n,e,t){if(t){var i=t.ee();t=i(t)}else t=void 0;n.a[e]=t}function LAn(n){if(n<0)throw T(new K9n("Negative array size: "+n))}function bc(n){return n.n||(Iu(n),n.n=new wCn(n,ar,n),Mr(n)),n.n}function G5(n){return ne(n.a=0&&n.a[t]===e[t];t--);return t<0}function KAn(n,e){V3();var t;return t=n.j.g-e.j.g,t!=0?t:0}function HAn(n,e){return _n(e),n.a!=null?$fe(e.Kb(n.a)):UA}function jC(n){var e;return n?new iW(n):(e=new Sh,nF(e,n),e)}function es(n,e){var t;return e.b.Kb(FPn(n,e.c.Ee(),(t=new Jvn(e),t)))}function EC(n){_J(),Dyn(this,ge(ci(cl(n,24),FM)),ge(ci(n,FM)))}function qAn(){qAn=N,Gzn=Fe(($T(),A(M(Jin,1),z,428,0,[yR,Qin])))}function GAn(){GAn=N,zzn=Fe((RC(),A(M(Zin,1),z,427,0,[Yin,jR])))}function zAn(){zAn=N,WUn=Fe((_C(),A(M(Arn,1),z,424,0,[$R,tS])))}function UAn(){UAn=N,BWn=Fe((B3(),A(M(NWn,1),z,511,0,[_k,UR])))}function WAn(){WAn=N,lXn=Fe((V8(),A(M(Wcn,1),z,419,0,[$S,Ucn])))}function XAn(){XAn=N,wXn=Fe((K8(),A(M(Qcn,1),z,479,0,[Vcn,xS])))}function VAn(){VAn=N,XQn=Fe((x8(),A(M(ron,1),z,376,0,[uK,iy])))}function QAn(){QAn=N,GQn=Fe((z8(),A(M(non,1),z,421,0,[iK,rK])))}function JAn(){JAn=N,sXn=Fe((OC(),A(M(Rcn,1),z,422,0,[Bcn,s_])))}function YAn(){YAn=N,jXn=Fe((kC(),A(M(fun,1),z,420,0,[j_,oun])))}function ZAn(){ZAn=N,RJn=Fe((No(),A(M(BJn,1),z,520,0,[tw,Bl])))}function nSn(){nSn=N,wJn=Fe((z5(),A(M(bJn,1),z,523,0,[Hm,Km])))}function eSn(){eSn=N,jJn=Fe((Ff(),A(M(yJn,1),z,516,0,[M0,I1])))}function tSn(){tSn=N,CJn=Fe((ef(),A(M(EJn,1),z,515,0,[Ja,kf])))}function iSn(){iSn=N,UJn=Fe((Id(),A(M(zJn,1),z,455,0,[Rl,Lg])))}function rSn(){rSn=N,hYn=Fe((gC(),A(M(Son,1),z,425,0,[yK,Aon])))}function cSn(){cSn=N,wYn=Fe((iT(),A(M(Pon,1),z,495,0,[EP,mv])))}function uSn(){uSn=N,fYn=Fe((aC(),A(M(Mon,1),z,480,0,[kK,Ton])))}function sSn(){sSn=N,vYn=Fe(($C(),A(M(Oon,1),z,426,0,[Ion,TK])))}function oSn(){oSn=N,TZn=Fe((c7(),A(M(Ffn,1),z,429,0,[DP,$fn])))}function fSn(){fSn=N,sZn=Fe((L8(),A(M(afn,1),z,430,0,[FK,IP])))}function z5(){z5=N,Hm=new ZG("UPPER",0),Km=new ZG("LOWER",1)}function Yae(n,e){var t;t=new r2,la(t,"x",e.a),la(t,"y",e.b),j2(n,t)}function Zae(n,e){var t;t=new r2,la(t,"x",e.a),la(t,"y",e.b),j2(n,t)}function nde(n,e){var t,i;i=!1;do t=JOn(n,e),i=i|t;while(t);return i}function jX(n,e){var t,i;for(t=e,i=0;t>0;)i+=n.a[t],t-=t&-t;return i}function hSn(n,e){var t;for(t=e;t;)U0(n,-t.i,-t.j),t=At(t);return n}function $i(n,e){var t,i;for(_n(e),i=n.Kc();i.Ob();)t=i.Pb(),e.td(t)}function lSn(n,e){var t;return t=e.cd(),new bd(t,n.e.pc(t,u(e.dd(),14)))}function Kt(n,e,t,i){var r;r=new aI,r.c=e,r.b=t,r.a=i,i.b=t.a=r,++n.b}function Es(n,e,t){var i;return i=(Ln(e,n.c.length),n.c[e]),n.c[e]=t,i}function ede(n,e,t){return u(e==null?_c(n.f,null,t):Gd(n.g,e,t),281)}function k$(n){return n.c&&n.d?cX(n.c)+"->"+cX(n.d):"e_"+md(n)}function C3(n,e){return(Ta(n),Wv(new $n(n,new UX(e,n.a)))).sd(V4)}function tde(){return Qi(),A(M(Hrn,1),z,356,0,[Vf,$l,Hc,Cc,Ir])}function ide(){return J(),A(M(Zi,1),hc,61,0,[Xr,Kn,Vn,ae,Gn])}function rde(n){return gj(),function(){return wae(n,this,arguments)}}function cde(){return Date.now?Date.now():new Date().getTime()}function Xi(n){return!n.c||!n.d?!1:!!n.c.i&&n.c.i==n.d.i}function aSn(n){if(!n.c.Sb())throw T(new ic);return n.a=!0,n.c.Ub()}function $8(n){n.i=0,z9(n.b,null),z9(n.c,null),n.a=null,n.e=null,++n.g}function EX(n){are.call(this,n==null?iu:Lr(n),I(n,78)?u(n,78):null)}function dSn(n){B_n(),Nmn(this),this.a=new Ct,QV(this,n),Ke(this.a,n)}function bSn(){RO(this),this.b=new fn(Ft,Ft),this.a=new fn(Vt,Vt)}function wSn(n,e){this.c=0,this.b=e,qkn.call(this,n,17493),this.a=this.c}function y$(n){CC(),!pf&&(this.c=n,this.e=!0,this.a=new X)}function CC(){CC=N,pf=!0,Fzn=!1,xzn=!1,Nzn=!1,Lzn=!1}function CX(n,e){return I(e,149)?An(n.c,u(e,149).c):!1}function TX(n,e){var t;return t=0,n&&(t+=n.f.a/2),e&&(t+=e.f.a/2),t}function j$(n,e){var t;return t=u(xd(n.d,e),23),t||u(xd(n.e,e),23)}function gSn(n){this.b=n,ie.call(this,n),this.a=u(Rn(this.b.a,4),126)}function pSn(n){this.b=n,w2.call(this,n),this.a=u(Rn(this.b.a,4),126)}function Iu(n){return n.t||(n.t=new Amn(n),s6(new _9n(n),0,n.t)),n.t}function ude(){return sr(),A(M(e9,1),z,103,0,[mh,Ao,Zs,Jh,Yh])}function sde(){return qw(),A(M(c9,1),z,249,0,[Hl,Cy,Hhn,r9,qhn])}function ode(){return Ho(),A(M($1,1),z,175,0,[Xn,pi,Yf,Ya,D1])}function fde(){return P7(),A(M(gfn,1),z,316,0,[dfn,xK,wfn,LK,bfn])}function hde(){return b6(),A(M(Usn,1),z,315,0,[zsn,nK,eK,Lm,Nm])}function lde(){return Pa(),A(M(zcn,1),z,335,0,[f_,Gcn,h_,Em,jm])}function ade(){return g4(),A(M(eZn,1),z,355,0,[Ng,Ep,Qm,Vm,Jm])}function dde(){return Vw(),A(M(YWn,1),z,363,0,[SS,IS,OS,PS,AS])}function bde(){return Ss(),A(M(jun,1),z,163,0,[Qk,Sm,xl,Pm,Ub])}function T3(){T3=N;var n,e;cI=(Qp(),e=new fj,e),uI=(n=new BI,n)}function vSn(n){var e;return n.c||(e=n.r,I(e,88)&&(n.c=u(e,26))),n.c}function wde(n){return n.e=3,n.d=n.Yb(),n.e!=2?(n.e=0,!0):!1}function E$(n){var e,t,i;return e=n&Lu,t=n>>22&Lu,i=n<0?Wh:0,Bc(e,t,i)}function gde(n){var e,t,i,r;for(t=n,i=0,r=t.length;i0?g$n(n,e):BNn(n,-e)}function MX(n,e){return e==0||n.e==0?n:e>0?BNn(n,e):g$n(n,-e)}function ve(n){if(Se(n))return n.c=n.a,n.a.Pb();throw T(new ic)}function kSn(n){var e,t;return e=n.c.i,t=n.d.i,e.k==(Qn(),Xt)&&t.k==Xt}function C$(n){var e;return e=new Pd,Sr(e,n),H(e,(nn(),Tr),null),e}function T$(n,e,t){var i;return i=n.Yg(e),i>=0?n._g(i,t,!0):Yd(n,e,t)}function AX(n,e,t,i){var r;for(r=0;re)throw T(new vr(fY(n,e,"index")));return n}function M$(n,e,t,i){var r;return r=F(be,Le,25,e,15,1),Pve(r,n,e,t,i),r}function vde(n,e){var t;t=n.q.getHours()+(e/60|0),n.q.setMinutes(e),S6(n,t)}function mde(n,e){return j.Math.min(al(e.a,n.d.d.c),al(e.b,n.d.d.c))}function O2(n,e){return mi(e)?e==null?MY(n.f,null):$On(n.g,e):MY(n.f,e)}function uf(n){this.c=n,this.a=new E(this.c.a),this.b=new E(this.c.b)}function TC(){this.e=new X,this.c=new X,this.d=new X,this.b=new X}function TSn(){this.g=new zq,this.b=new zq,this.a=new X,this.k=new X}function MSn(n,e,t){this.a=n,this.c=e,this.d=t,W(e.e,this),W(t.b,this)}function ASn(n,e){Hkn.call(this,e.rd(),e.qd()&-6),_n(n),this.a=n,this.b=e}function SSn(n,e){qkn.call(this,e.rd(),e.qd()&-6),_n(n),this.a=n,this.b=e}function FX(n,e){FO.call(this,e.rd(),e.qd()&-6),_n(n),this.a=n,this.b=e}function MC(n,e,t){this.a=n,this.b=e,this.c=t,W(n.t,this),W(e.i,this)}function AC(){this.b=new Ct,this.a=new Ct,this.b=new Ct,this.a=new Ct}function SC(){SC=N,Ym=new kt("org.eclipse.elk.labels.labelManager")}function PSn(){PSn=N,$cn=new ii("separateLayerConnections",(aT(),QR))}function No(){No=N,tw=new tz("REGULAR",0),Bl=new tz("CRITICAL",1)}function x8(){x8=N,uK=new YG("STACKED",0),iy=new YG("SEQUENCED",1)}function L8(){L8=N,FK=new oz("FIXED",0),IP=new oz("CENTER_NODE",1)}function kde(n,e){var t;return t=CEe(n,e),n.b=new tT(t.c.length),Lje(n,t)}function yde(n,e,t){var i;return++n.e,--n.f,i=u(n.d[e].$c(t),133),i.dd()}function ISn(n){var e;return n.a||(e=n.r,I(e,148)&&(n.a=u(e,148))),n.a}function xX(n){if(n.a){if(n.e)return xX(n.e)}else return n;return null}function jde(n,e){return n.pe.p?-1:0}function PC(n,e){return _n(e),n.c=0,"Initial capacity must not be negative")}function $Sn(){$Sn=N,Vzn=Fe((_o(),A(M(_b,1),z,232,0,[Zr,Fc,nc])))}function FSn(){FSn=N,Jzn=Fe((Cu(),A(M(Qzn,1),z,461,0,[Xf,Ol,Co])))}function xSn(){xSn=N,Zzn=Fe((Jc(),A(M(Yzn,1),z,462,0,[Wo,Dl,To])))}function LSn(){LSn=N,Bzn=Fe((hf(),A(M(Nu,1),z,132,0,[Win,hs,Rb])))}function NSn(){NSn=N,bWn=Fe((W5(),A(M(Krn,1),z,379,0,[NR,LR,BR])))}function BSn(){BSn=N,PWn=Fe((qd(),A(M(zrn,1),z,423,0,[yg,Grn,qR])))}function RSn(){RSn=N,oXn=Fe((F2(),A(M(Kcn,1),z,314,0,[ap,qk,_cn])))}function _Sn(){_Sn=N,fXn=Fe((VC(),A(M(qcn,1),z,337,0,[Hcn,DS,o_])))}function KSn(){KSn=N,dXn=Fe((ya(),A(M(aXn,1),z,450,0,[l_,cv,Tg])))}function HSn(){HSn=N,rXn=Fe((Kd(),A(M(YR,1),z,361,0,[g0,Fl,w0])))}function qSn(){qSn=N,yXn=Fe((Nh(),A(M(kXn,1),z,303,0,[zk,Ag,dp])))}function GSn(){GSn=N,mXn=Fe((q3(),A(M(y_,1),z,292,0,[m_,k_,Gk])))}function zSn(){zSn=N,RQn=Fe((i6(),A(M(Gsn,1),z,378,0,[J_,qsn,oP])))}function USn(){USn=N,WQn=Fe((oT(),A(M(ion,1),z,375,0,[eon,cK,ton])))}function WSn(){WSn=N,qQn=Fe((Rh(),A(M(Zsn,1),z,339,0,[Nl,Ysn,tK])))}function XSn(){XSn=N,UQn=Fe((ur(),A(M(zQn,1),z,452,0,[Bm,Au,xc])))}function VSn(){VSn=N,JQn=Fe((dT(),A(M(hon,1),z,377,0,[fK,pv,ew])))}function QSn(){QSn=N,VQn=Fe((Q3(),A(M(uon,1),z,336,0,[sK,con,Rm])))}function JSn(){JSn=N,QQn=Fe((uT(),A(M(fon,1),z,338,0,[oon,oK,son])))}function YSn(){YSn=N,hJn=Fe((_d(),A(M(fJn,1),z,454,0,[ry,_m,aP])))}function ZSn(){ZSn=N,pYn=Fe((CT(),A(M(gYn,1),z,442,0,[CK,jK,EK])))}function nPn(){nPn=N,mYn=Fe((f7(),A(M(Fon,1),z,380,0,[CP,Don,$on])))}function ePn(){ePn=N,LYn=Fe((ET(),A(M(Yon,1),z,381,0,[Jon,IK,Qon])))}function tPn(){tPn=N,xYn=Fe((sT(),A(M(Xon,1),z,293,0,[PK,Won,Uon])))}function iPn(){iPn=N,iZn=Fe((w7(),A(M(OK,1),z,437,0,[AP,SP,PP])))}function rPn(){rPn=N,une=Fe((_h(),A(M(Khn,1),z,334,0,[HP,F1,i9])))}function cPn(){cPn=N,tne=Fe((sf(),A(M(Phn,1),z,272,0,[jv,cw,Ev])))}function Pde(){return Ti(),A(M(Ghn,1),z,98,0,[ql,jf,Tv,td,jh,Ac])}function wa(n,e){return!n.o&&(n.o=new Wu((Dc(),Ul),S0,n,0)),NF(n.o,e)}function Ide(n){return!n.g&&(n.g=new Qy),!n.g.d&&(n.g.d=new Cmn(n)),n.g.d}function Ode(n){return!n.g&&(n.g=new Qy),!n.g.a&&(n.g.a=new Tmn(n)),n.g.a}function Dde(n){return!n.g&&(n.g=new Qy),!n.g.b&&(n.g.b=new Emn(n)),n.g.b}function N8(n){return!n.g&&(n.g=new Qy),!n.g.c&&(n.g.c=new Mmn(n)),n.g.c}function $de(n,e,t){var i,r;for(r=new H3(e,n),i=0;it||e=0?n._g(t,!0,!0):Yd(n,e,!0)}function Qde(n,e){return Zt(K(Y(k(n,(G(),k0)))),K(Y(k(e,k0))))}function aPn(){aPn=N,aYn=Xd(Xd(Dj(new hi,(c4(),qm)),(k6(),pP)),aK)}function Jde(n,e,t){var i;return i=tDn(n,e,t),n.b=new tT(i.c.length),JY(n,i)}function Yde(n){if(n.b<=0)throw T(new ic);return--n.b,n.a-=n.c.c,Q(n.a)}function Zde(n){var e;if(!n.a)throw T(new gTn);return e=n.a,n.a=At(n.a),e}function n0e(n){for(;!n.a;)if(!nEn(n.c,new Xvn(n)))return!1;return!0}function $2(n){var e;return pe(n),I(n,198)?(e=u(n,198),e):new dvn(n)}function e0e(n){DC(),u(n.We((Xe(),rw)),174).Fc((Tu(),Ty)),n.Ye(eH,null)}function DC(){DC=N,SZn=new n2n,IZn=new e2n,PZn=Rwe((Xe(),eH),SZn,_l,IZn)}function $C(){$C=N,Ion=new sz("LEAF_NUMBER",0),TK=new sz("NODE_SIZE",1)}function t0e(n,e,t){n.a=e,n.c=t,n.b.a.$b(),_s(n.d),n.e.a.c=F(Zn,rn,1,0,5,1)}function $$(n){n.a=F(be,Le,25,n.b+1,15,1),n.c=F(be,Le,25,n.b,15,1),n.d=0}function i0e(n,e){n.a.ue(e.d,n.b)>0&&(W(n.c,new QU(e.c,e.d,n.d)),n.b=e.d)}function zX(n,e){if(n.g==null||e>=n.i)throw T(new xO(e,n.i));return n.g[e]}function dPn(n,e,t){if(W3(n,t),t!=null&&!n.wj(t))throw T(new xI);return t}function bPn(n){var e;if(n.Ek())for(e=n.i-1;e>=0;--e)D(n,e);return gX(n)}function r0e(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[0];)t=e;return t}function c0e(n,e){var t,i;return LAn(e),t=(i=n.slice(0,e),WX(i,n)),t.length=e,t}function S3(n,e,t,i){var r;i=(Ow(),i||Lin),r=n.slice(e,t),hY(r,n,e,t,-e,i)}function Cs(n,e,t,i,r){return e<0?Yd(n,t,i):u(t,66).Nj().Pj(n,n.yh(),e,i,r)}function u0e(n){return I(n,172)?""+u(n,172).a:n==null?null:Lr(n)}function s0e(n){return I(n,172)?""+u(n,172).a:n==null?null:Lr(n)}function wPn(n,e){if(e.a)throw T(new _r(wKn));ri(n.a,e),e.a=n,!n.j&&(n.j=e)}function UX(n,e){FO.call(this,e.rd(),e.qd()&-16449),_n(n),this.a=n,this.c=e}function gPn(n,e){var t,i;return i=e/n.c.Hd().gc()|0,t=e%n.c.Hd().gc(),D2(n,i,t)}function Cu(){Cu=N,Xf=new oO(Y2,0),Ol=new oO(I4,1),Co=new oO(Z2,2)}function FC(){FC=N,vR=new Lj("All",0),qin=new lyn,Gin=new Eyn,zin=new ayn}function pPn(){pPn=N,Dzn=Fe((FC(),A(M(WA,1),z,297,0,[vR,qin,Gin,zin])))}function vPn(){vPn=N,EWn=Fe((G3(),A(M(jWn,1),z,405,0,[b0,Hb,Kb,kg])))}function mPn(){mPn=N,CUn=Fe((Hd(),A(M(EUn,1),z,406,0,[Ok,Ik,MR,AR])))}function kPn(){kPn=N,MUn=Fe((K2(),A(M(TUn,1),z,323,0,[$k,Dk,Fk,xk])))}function yPn(){yPn=N,PUn=Fe((d6(),A(M(SUn,1),z,394,0,[Lk,YA,ZA,Nk])))}function jPn(){jPn=N,WJn=Fe((c4(),A(M(won,1),z,393,0,[gP,qm,uy,Gm])))}function EPn(){EPn=N,HWn=Fe((aT(),A(M(KWn,1),z,360,0,[QR,TS,MS,Hk])))}function CPn(){CPn=N,FYn=Fe((qT(),A(M(zon,1),z,340,0,[SK,qon,Gon,Hon])))}function TPn(){TPn=N,JWn=Fe((ff(),A(M(QWn,1),z,411,0,[lp,nv,ev,JR])))}function MPn(){MPn=N,_Qn=Fe((wb(),A(M(Z_,1),z,197,0,[fP,Y_,xg,Fg])))}function APn(){APn=N,Ene=Fe((Xu(),A(M(jne,1),z,396,0,[ws,Yhn,Jhn,Zhn])))}function SPn(){SPn=N,one=Fe((cs(),A(M(sne,1),z,285,0,[Ey,kh,Kl,jy])))}function PPn(){PPn=N,ine=Fe((Hh(),A(M(cH,1),z,218,0,[rH,yy,Cv,Sp])))}function IPn(){IPn=N,kne=Fe((AT(),A(M(Qhn,1),z,311,0,[oH,Whn,Vhn,Xhn])))}function OPn(){OPn=N,vne=Fe((Vu(),A(M(o9,1),z,374,0,[Ay,id,My,uw])))}function DPn(){DPn=N,mM(),F1n=Ft,Tee=Vt,x1n=new S9(Ft),Mee=new S9(Vt)}function K8(){K8=N,Vcn=new VG(Xh,0),xS=new VG("IMPROVE_STRAIGHTNESS",1)}function o0e(n,e){return h3(),W(n,new Pi(e,Q(e.e.c.length+e.g.c.length)))}function f0e(n,e){return h3(),W(n,new Pi(e,Q(e.e.c.length+e.g.c.length)))}function WX(n,e){return U8(e)!=10&&A(Du(e),e.hm,e.__elementTypeId$,U8(e),n),n}function Qc(n,e){var t;return t=Fr(n,e,0),t==-1?!1:(h1(n,t),!0)}function $Pn(n,e){var t;return t=u(O2(n.e,e),387),t?(ZU(t),t.e):null}function P3(n){var e;return $r(n)&&(e=0-n,!isNaN(e))?e:bl(z3(n))}function Fr(n,e,t){for(;t=0?BT(n,t,!0,!0):Yd(n,e,!0)}function YX(n,e){Qv();var t,i;return t=S2(n),i=S2(e),!!t&&!!i&&!V$n(t.k,i.k)}function a0e(n,e){Zc(n,e==null||jE((_n(e),e))||isNaN((_n(e),e))?0:(_n(e),e))}function d0e(n,e){nu(n,e==null||jE((_n(e),e))||isNaN((_n(e),e))?0:(_n(e),e))}function b0e(n,e){Rd(n,e==null||jE((_n(e),e))||isNaN((_n(e),e))?0:(_n(e),e))}function w0e(n,e){Bd(n,e==null||jE((_n(e),e))||isNaN((_n(e),e))?0:(_n(e),e))}function BPn(n){(this.q?this.q:(Pn(),Pn(),ph)).Ac(n.q?n.q:(Pn(),Pn(),ph))}function g0e(n,e){return I(e,99)&&u(e,18).Bb&Yi?new LO(e,n):new H3(e,n)}function p0e(n,e){return I(e,99)&&u(e,18).Bb&Yi?new LO(e,n):new H3(e,n)}function RPn(n,e){vrn=new Wy,AUn=e,gm=n,u(gm.b,65),BX(gm,vrn,null),DRn(gm)}function B$(n,e,t){var i;return i=n.g[e],k5(n,e,n.oi(e,t)),n.gi(e,t,i),n.ci(),i}function BC(n,e){var t;return t=n.Xc(e),t>=0?(n.$c(t),!0):!1}function R$(n){var e;return n.d!=n.r&&(e=qs(n),n.e=!!e&&e.Cj()==kGn,n.d=e),n.e}function _$(n,e){var t;for(pe(n),pe(e),t=!1;e.Ob();)t=t|n.Fc(e.Pb());return t}function xd(n,e){var t;return t=u(te(n.e,e),387),t?(Oyn(n,t),t.e):null}function _Pn(n){var e,t;return e=n/60|0,t=n%60,t==0?""+e:""+e+":"+(""+t)}function qr(n,e){var t,i;return Ta(n),i=new FX(e,n.a),t=new iEn(i),new $n(n,t)}function ub(n,e){var t=n.a[e],i=(cF(),dR)[typeof t];return i?i(t):tQ(typeof t)}function v0e(n){switch(n.g){case 0:return nt;case 1:return-1;default:return 0}}function m0e(n){return mJ(n,(I3(),pin))<0?-xce(z3(n)):n.l+n.m*J2+n.h*$a}function U8(n){return n.__elementTypeCategory$==null?10:n.__elementTypeCategory$}function K$(n){var e;return e=n.b.c.length==0?null:un(n.b,0),e!=null&&J$(n,0),e}function KPn(n,e){for(;e[0]=0;)++e[0]}function W8(n,e){this.e=e,this.a=FOn(n),this.a<54?this.f=$d(n):this.c=m7(n)}function HPn(n,e,t,i){Je(),cd.call(this,26),this.c=n,this.a=e,this.d=t,this.b=i}function sh(n,e,t){var i,r;for(i=10,r=0;rn.a[i]&&(i=t);return i}function T0e(n,e){var t;return t=zd(n.e.c,e.e.c),t==0?Zt(n.e.d,e.e.d):t}function Fw(n,e){return e.e==0||n.e==0?W4:(a4(),Hx(n,e))}function M0e(n,e){if(!n)throw T(new Hn(P8e("Enum constant undefined: %s",e)))}function X5(){X5=N,MWn=new San,AWn=new Man,CWn=new $an,TWn=new Fan,SWn=new xan}function RC(){RC=N,Yin=new qG("BY_SIZE",0),jR=new qG("BY_SIZE_AND_SHAPE",1)}function _C(){_C=N,$R=new GG("EADES",0),tS=new GG("FRUCHTERMAN_REINGOLD",1)}function V8(){V8=N,$S=new XG("READING_DIRECTION",0),Ucn=new XG("ROTATION",1)}function GPn(){GPn=N,hXn=Fe((Pa(),A(M(zcn,1),z,335,0,[f_,Gcn,h_,Em,jm])))}function zPn(){zPn=N,KQn=Fe((b6(),A(M(Usn,1),z,315,0,[zsn,nK,eK,Lm,Nm])))}function UPn(){UPn=N,ZWn=Fe((Vw(),A(M(YWn,1),z,363,0,[SS,IS,OS,PS,AS])))}function WPn(){WPn=N,EXn=Fe((Ss(),A(M(jun,1),z,163,0,[Qk,Sm,xl,Pm,Ub])))}function XPn(){XPn=N,oZn=Fe((P7(),A(M(gfn,1),z,316,0,[dfn,xK,wfn,LK,bfn])))}function VPn(){VPn=N,OZn=Fe((Ho(),A(M($1,1),z,175,0,[Xn,pi,Yf,Ya,D1])))}function QPn(){QPn=N,tZn=Fe((g4(),A(M(eZn,1),z,355,0,[Ng,Ep,Qm,Vm,Jm])))}function JPn(){JPn=N,vWn=Fe((Qi(),A(M(Hrn,1),z,356,0,[Vf,$l,Hc,Cc,Ir])))}function YPn(){YPn=N,ene=Fe((sr(),A(M(e9,1),z,103,0,[mh,Ao,Zs,Jh,Yh])))}function ZPn(){ZPn=N,hne=Fe((qw(),A(M(c9,1),z,249,0,[Hl,Cy,Hhn,r9,qhn])))}function nIn(){nIn=N,dne=Fe((J(),A(M(Zi,1),hc,61,0,[Xr,Kn,Vn,ae,Gn])))}function H$(n,e){var t;return t=u(te(n.a,e),134),t||(t=new pI,it(n.a,e,t)),t}function eIn(n){var e;return e=u(k(n,(G(),p0)),305),e?e.a==n:!1}function tIn(n){var e;return e=u(k(n,(G(),p0)),305),e?e.i==n:!1}function iIn(n,e){return _n(e),mW(n),n.d.Ob()?(e.td(n.d.Pb()),!0):!1}function KC(n){return fc(n,nt)>0?nt:fc(n,Bi)<0?Bi:ge(n)}function sb(n){return n<3?(is(n,J_n),n+1):n=0&&e=-.01&&n.a<=bf&&(n.a=0),n.b>=-.01&&n.b<=bf&&(n.b=0),n}function cIn(n,e){return e==(sD(),sD(),Pzn)?n.toLocaleLowerCase():n.toLowerCase()}function nV(n){return(n.i&2?"interface ":n.i&1?"":"class ")+(Ph(n),n.o)}function Er(n){var e,t;t=(e=new RI,e),me((!n.q&&(n.q=new V(co,n,11,10)),n.q),t)}function A0e(n,e){var t;return t=e>0?e-1:e,e8n(Kie(IIn(YU(new zp,t),n.n),n.j),n.k)}function S0e(n,e,t,i){var r;n.j=-1,EY(n,iY(n,e,t),(er(),r=u(e,66).Mj(),r.Ok(i)))}function uIn(n){this.g=n,this.f=new X,this.a=j.Math.min(this.g.c.c,this.g.d.c)}function sIn(n){this.b=new X,this.a=new X,this.c=new X,this.d=new X,this.e=n}function oIn(n,e){this.a=new we,this.e=new we,this.b=(i6(),oP),this.c=n,this.b=e}function fIn(n,e,t){kE.call(this),eV(this),this.a=n,this.c=t,this.b=e.d,this.f=e.e}function hIn(n){this.d=n,this.c=n.c.vc().Kc(),this.b=null,this.a=null,this.e=(aj(),fR)}function Ld(n){if(n<0)throw T(new Hn("Illegal Capacity: "+n));this.g=this.ri(n)}function P0e(n,e){if(0>n||n>e)throw T(new bG("fromIndex: 0, toIndex: "+n+tnn+e))}function I0e(n){var e;if(n.a==n.b.a)throw T(new ic);return e=n.a,n.c=e,n.a=n.a.e,e}function HC(n){var e;z0(!!n.c),e=n.c.a,Ts(n.d,n.c),n.b==n.c?n.b=e:--n.a,n.c=null}function qC(n,e){var t;return Ta(n),t=new DTn(n,n.a.rd(),n.a.qd()|4,e),new $n(n,t)}function O0e(n,e){var t,i;return t=u(ab(n.d,e),14),t?(i=e,n.e.pc(i,t)):null}function GC(n,e){var t,i;for(i=n.Kc();i.Ob();)t=u(i.Pb(),70),H(t,(G(),pp),e)}function D0e(n){var e;return e=K(Y(k(n,(nn(),S1)))),e<0&&(e=0,H(n,S1,e)),e}function $0e(n,e,t){var i;i=j.Math.max(0,n.b/2-.5),g6(t,i,1),W(e,new L7n(t,i))}function F0e(n,e,t){var i;return i=n.a.e[u(e.a,10).p]-n.a.e[u(t.a,10).p],Gt(m8(i))}function lIn(n,e,t,i,r,c){var o;o=C$(i),Hi(o,r),Ei(o,c),Tn(n.a,i,new EE(o,e,t.f))}function aIn(n,e){var t;if(t=R7(n.Tg(),e),!t)throw T(new Hn(Pl+e+MB));return t}function ob(n,e){var t;for(t=n;At(t);)if(t=At(t),t==e)return!0;return!1}function x0e(n,e){var t,i,r;for(i=e.a.cd(),t=u(e.a.dd(),14).gc(),r=0;r0&&(n.a/=e,n.b/=e),n}function ts(n){var e;return n.w?n.w:(e=Gle(n),e&&!e.kh()&&(n.w=e),e)}function q0e(n){var e;return n==null?null:(e=u(n,190),Gve(e,e.length))}function D(n,e){if(n.g==null||e>=n.i)throw T(new xO(e,n.i));return n.li(e,n.g[e])}function G0e(n){var e,t;for(e=n.a.d.j,t=n.c.d.j;e!=t;)ko(n.b,e),e=yT(e);ko(n.b,e)}function z0e(n){var e;for(e=0;e=14&&e<=16))),n}function gIn(n,e,t){var i=function(){return n.apply(i,arguments)};return e.apply(i,t),i}function pIn(n,e,t){var i,r;i=e;do r=K(n.p[i.p])+t,n.p[i.p]=r,i=n.a[i.p];while(i!=e)}function O3(n,e){var t,i;i=n.a,t=Tge(n,e,null),i!=e&&!n.e&&(t=j4(n,e,t)),t&&t.Fi()}function tV(n,e){return Yo(),mo(Cl),j.Math.abs(n-e)<=Cl||n==e||isNaN(n)&&isNaN(e)}function iV(n,e){return Yo(),mo(Cl),j.Math.abs(n-e)<=Cl||n==e||isNaN(n)&&isNaN(e)}function X0e(n,e){return yl(),Uc(n.b.c.length-n.e.c.length,e.b.c.length-e.e.c.length)}function xw(n,e){return Uie(J5(n,e,ge(Ni(ah,rh(ge(Ni(e==null?0:mt(e),dh)),15)))))}function vIn(){vIn=N,$Wn=Fe((Qn(),A(M(zR,1),z,267,0,[ti,gi,Xt,Tc,Qu,vf])))}function mIn(){mIn=N,_Zn=Fe((vb(),A(M(UK,1),z,291,0,[zK,gy,wy,GK,dy,by])))}function kIn(){kIn=N,FZn=Fe((oh(),A(M(Rfn,1),z,248,0,[HK,ly,ay,xP,$P,FP])))}function yIn(){yIn=N,uXn=Fe((q2(),A(M(rv,1),z,227,0,[iv,ym,tv,qb,Cg,Eg])))}function jIn(){jIn=N,pXn=Fe((h4(),A(M(sun,1),z,275,0,[Cm,iun,uun,cun,run,tun])))}function EIn(){EIn=N,gXn=Fe((A7(),A(M(eun,1),z,274,0,[LS,Ycn,nun,Jcn,Zcn,p_])))}function CIn(){CIn=N,BQn=Fe((JT(),A(M(Hsn,1),z,313,0,[Q_,_sn,V_,Rsn,Ksn,sP])))}function TIn(){TIn=N,bXn=Fe((eM(),A(M(Xcn,1),z,276,0,[d_,a_,w_,b_,g_,FS])))}function MIn(){MIn=N,VJn=Fe((k6(),A(M(XJn,1),z,327,0,[pP,aK,bK,dK,wK,lK])))}function AIn(){AIn=N,ane=Fe((Tu(),A(M(qP,1),z,273,0,[Gl,n1,Ty,s9,u9,Pp])))}function SIn(){SIn=N,rne=Fe((ZT(),A(M(xhn,1),z,312,0,[uH,Dhn,Fhn,Ihn,$hn,Ohn])))}function V0e(){return jb(),A(M(lr,1),z,93,0,[So,Zh,Po,Oo,yh,eo,as,Io,no])}function UC(n,e){var t;t=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&et(n,new rb(n,0,t,n.a))}function WC(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&et(n,new rb(n,1,t,n.b))}function D3(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&et(n,new rb(n,3,t,n.b))}function Bd(n,e){var t;t=n.f,n.f=e,n.Db&4&&!(n.Db&1)&&et(n,new rb(n,3,t,n.f))}function Rd(n,e){var t;t=n.g,n.g=e,n.Db&4&&!(n.Db&1)&&et(n,new rb(n,4,t,n.g))}function Zc(n,e){var t;t=n.i,n.i=e,n.Db&4&&!(n.Db&1)&&et(n,new rb(n,5,t,n.i))}function nu(n,e){var t;t=n.j,n.j=e,n.Db&4&&!(n.Db&1)&&et(n,new rb(n,6,t,n.j))}function $3(n,e){var t;t=n.j,n.j=e,n.Db&4&&!(n.Db&1)&&et(n,new rb(n,1,t,n.j))}function F3(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&et(n,new rb(n,4,t,n.c))}function x3(n,e){var t;t=n.k,n.k=e,n.Db&4&&!(n.Db&1)&&et(n,new rb(n,2,t,n.k))}function G$(n,e){var t;t=n.d,n.d=e,n.Db&4&&!(n.Db&1)&&et(n,new p$(n,2,t,n.d))}function d1(n,e){var t;t=n.s,n.s=e,n.Db&4&&!(n.Db&1)&&et(n,new p$(n,4,t,n.s))}function hb(n,e){var t;t=n.t,n.t=e,n.Db&4&&!(n.Db&1)&&et(n,new p$(n,5,t,n.t))}function L3(n,e){var t;t=n.F,n.F=e,n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,5,t,e))}function Q8(n,e){var t;return t=u(te(($j(),eI),n),55),t?t.xj(e):F(Zn,rn,1,e,5,1)}function Bh(n,e){var t,i;return t=e in n.a,t&&(i=Dh(n,e).he(),i)?i.a:null}function Q0e(n,e){var t,i,r;return t=(i=(ad(),r=new QH,r),e&&zY(i,e),i),aV(t,n),t}function PIn(n,e,t){if(W3(n,t),!n.Bk()&&t!=null&&!n.wj(t))throw T(new xI);return t}function IIn(n,e){return n.n=e,n.n?(n.f=new X,n.e=new X):(n.f=null,n.e=null),n}function Ae(n,e,t,i,r,c){var o;return o=LD(n,e),DIn(t,o),o.i=r?8:0,o.f=i,o.e=r,o.g=c,o}function rV(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=1,this.c=n,this.a=t}function cV(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=2,this.c=n,this.a=t}function uV(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=6,this.c=n,this.a=t}function sV(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=7,this.c=n,this.a=t}function oV(n,e,t,i,r){this.d=e,this.j=i,this.e=r,this.o=-1,this.p=4,this.c=n,this.a=t}function OIn(n,e){var t,i,r,c;for(i=e,r=0,c=i.length;r=0),Q2e(n.d,n.c)<0&&(n.a=n.a-1&n.d.a.length-1,n.b=n.d.c),n.c=-1}function fV(n){return n.a<54?n.f<0?-1:n.f>0?1:0:(!n.c&&(n.c=h7(n.f)),n.c).e}function mo(n){if(!(n>=0))throw T(new Hn("tolerance ("+n+") must be >= 0"));return n}function N3(){return _K||(_K=new kBn,_w(_K,A(M(mg,1),rn,130,0,[new nq]))),_K}function ur(){ur=N,Bm=new kO(K6,0),Au=new kO("INPUT",1),xc=new kO("OUTPUT",2)}function VC(){VC=N,Hcn=new bO("ARD",0),DS=new bO("MSD",1),o_=new bO("MANUAL",2)}function _d(){_d=N,ry=new TO("BARYCENTER",0),_m=new TO(rHn,1),aP=new TO(cHn,2)}function J8(n,e){var t;if(t=n.gc(),e<0||e>t)throw T(new V0(e,t));return new AU(n,e)}function xIn(n,e){var t;return I(e,42)?n.c.Mc(e):(t=NF(n,e),IT(n,e),t)}function wr(n,e,t){return Ca(n,e),Ic(n,t),d1(n,0),hb(n,1),p1(n,!0),g1(n,!0),n}function is(n,e){if(n<0)throw T(new Hn(e+" cannot be negative but was: "+n));return n}function LIn(n,e){var t,i;for(t=0,i=n.gc();t0?u(un(t.a,i-1),10):null}function Q5(n,e){var t;t=n.k,n.k=e,n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,2,t,n.k))}function JC(n,e){var t;t=n.f,n.f=e,n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,8,t,n.f))}function YC(n,e){var t;t=n.i,n.i=e,n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,7,t,n.i))}function aV(n,e){var t;t=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,8,t,n.a))}function dV(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,0,t,n.b))}function bV(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,0,t,n.b))}function wV(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,1,t,n.c))}function gV(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,1,t,n.c))}function U$(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,4,t,n.c))}function pV(n,e){var t;t=n.d,n.d=e,n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,1,t,n.d))}function W$(n,e){var t;t=n.D,n.D=e,n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,2,t,n.D))}function X$(n,e){n.r>0&&n.c0&&n.g!=0&&X$(n.i,e/n.r*n.i.d))}function cbe(n,e,t){var i;n.b=e,n.a=t,i=(n.a&512)==512?new T9n:new ZH,n.c=y7e(i,n.b,n.a)}function zIn(n,e){return zh(n.e,e)?(er(),R$(e)?new IE(e,n):new i8(e,n)):new Nkn(e,n)}function ZC(n,e){return zie(Y5(n.a,e,ge(Ni(ah,rh(ge(Ni(e==null?0:mt(e),dh)),15)))))}function ube(n,e,t){return cb(n,new Hvn(e),new mln,new qvn(t),A(M(Nu,1),z,132,0,[]))}function sbe(n){var e,t;return 0>n?new PG:(e=n+1,t=new wSn(e,n),new oU(null,t))}function obe(n,e){Pn();var t;return t=new s2(1),mi(n)?kr(t,n,e):_c(t.f,n,e),new DI(t)}function fbe(n,e){var t,i;return t=n.o+n.p,i=e.o+e.p,te?(e<<=1,e>0?e:L6):e}function V$(n){switch(Rz(n.e!=3),n.e){case 2:return!1;case 0:return!0}return wde(n)}function WIn(n,e){var t;return I(e,8)?(t=u(e,8),n.a==t.a&&n.b==t.b):!1}function Q$(n,e,t){var i,r,c;return c=e>>5,r=e&31,i=ci(J0(n.n[t][c],ge(Ih(r,1))),3),i}function lbe(n,e){var t,i;for(i=e.vc().Kc();i.Ob();)t=u(i.Pb(),42),XT(n,t.cd(),t.dd())}function abe(n,e){var t;t=new Wy,u(e.b,65),u(e.b,65),u(e.b,65),Yc(e.a,new BU(n,t,e))}function vV(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,21,t,n.b))}function mV(n,e){var t;t=n.d,n.d=e,n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,11,t,n.d))}function nT(n,e){var t;t=n.j,n.j=e,n.Db&4&&!(n.Db&1)&&et(n,new wi(n,1,13,t,n.j))}function XIn(n,e,t){var i,r,c;for(c=n.a.length-1,r=n.b,i=0;i>>31;i!=0&&(n[t]=i)}function jbe(n,e){Pn();var t,i;for(i=new X,t=0;t0&&(this.g=this.ri(this.i+(this.i/8|0)+1),n.Qc(this.g))}function $t(n,e){ME.call(this,ree,n,e),this.b=this,this.a=Kc(n.Tg(),On(this.e.Tg(),this.c))}function Z5(n,e){var t,i;for(_n(e),i=e.vc().Kc();i.Ob();)t=u(i.Pb(),42),n.zc(t.cd(),t.dd())}function Dbe(n,e,t){var i;for(i=t.Kc();i.Ob();)if(!yC(n,e,i.Pb()))return!1;return!0}function $be(n,e,t,i,r){var c;return t&&(c=yt(e.Tg(),n.c),r=t.gh(e,-1-(c==-1?i:c),null,r)),r}function Fbe(n,e,t,i,r){var c;return t&&(c=yt(e.Tg(),n.c),r=t.ih(e,-1-(c==-1?i:c),null,r)),r}function dOn(n){var e;if(n.b==-2){if(n.e==0)e=-1;else for(e=0;n.a[e]==0;e++);n.b=e}return n.b}function bOn(n){switch(n.g){case 2:return J(),Gn;case 4:return J(),Vn;default:return n}}function wOn(n){switch(n.g){case 1:return J(),ae;case 3:return J(),Kn;default:return n}}function xbe(n){var e,t,i;return n.j==(J(),Kn)&&(e=GLn(n),t=au(e,Vn),i=au(e,Gn),i||i&&t)}function Lbe(n){var e,t;return e=u(n.e&&n.e(),9),t=u(IW(e,e.length),9),new ks(e,t,e.length)}function Nbe(n,e){le(e,iHn,1),TQ(ire(new tj((Vv(),new GD(n,!1,!1,new BH))))),ce(e)}function Y8(n,e){return qn(),mi(n)?DX(n,Te(e)):G0(n)?TD(n,Y(e)):q0(n)?Kfe(n,sn(e)):n.wd(e)}function TV(n,e){e.q=n,n.d=j.Math.max(n.d,e.r),n.b+=e.d+(n.a.c.length==0?0:n.c),W(n.a,e)}function R3(n,e){var t,i,r,c;return r=n.c,t=n.c+n.b,c=n.d,i=n.d+n.a,e.a>r&&e.ac&&e.b1||n.Ob())return++n.a,n.g=0,e=n.i,n.Ob(),e;throw T(new ic)}function Vbe(n){gyn();var e;return M7n(hK,n)||(e=new Zwn,e.a=n,wU(hK,n,e)),u(br(hK,n),635)}function Ks(n){var e,t,i,r;return r=n,i=0,r<0&&(r+=$a,i=Wh),t=Gt(r/J2),e=Gt(r-t*J2),Bc(e,t,i)}function Z8(n){var e,t,i;for(i=0,t=new o2(n.a);t.a>22),r=n.h+e.h+(i>>22),Bc(t&Lu,i&Lu,r&Wh)}function xOn(n,e){var t,i,r;return t=n.l-e.l,i=n.m-e.m+(t>>22),r=n.h-e.h+(i>>22),Bc(t&Lu,i&Lu,r&Wh)}function i7(n){var e;return n<128?(e=(QEn(),yin)[n],!e&&(e=yin[n]=new wq(n)),e):new wq(n)}function jt(n){var e;return I(n,78)?n:(e=n&&n.__java$exception,e||(e=new CDn(n),Kmn(e)),e)}function r7(n){if(I(n,186))return u(n,118);if(n)return null;throw T(new c2(Iqn))}function LOn(n,e){if(e==null)return!1;for(;n.a!=n.b;)if(tt(e,vT(n)))return!0;return!1}function OV(n){return n.a.Ob()?!0:n.a!=n.d?!1:(n.a=new lX(n.e.f),n.a.Ob())}function Yt(n,e){var t,i;return t=e.Pc(),i=t.length,i==0?!1:(GU(n.c,n.c.length,t),!0)}function hwe(n,e,t){var i,r;for(r=e.vc().Kc();r.Ob();)i=u(r.Pb(),42),n.yc(i.cd(),i.dd(),t);return n}function NOn(n,e){var t,i;for(i=new E(n.b);i.a=0,"Negative initial capacity"),TE(e>=0,"Non-positive load factor"),Eu(this)}function uF(n,e,t){return n>=128?!1:n<64?b5(ci(Ih(1,n),t),0):b5(ci(Ih(1,n-64),e),0)}function mwe(n,e){return!n||!e||n==e?!1:zd(n.b.c,e.b.c+e.b.b)<0&&zd(e.b.c,n.b.c+n.b.b)<0}function VOn(n){var e,t,i;return t=n.n,i=n.o,e=n.d,new ys(t.a-e.b,t.b-e.d,i.a+(e.b+e.c),i.b+(e.d+e.a))}function kwe(n){var e,t,i,r;for(t=n.a,i=0,r=t.length;ii)throw T(new V0(e,i));return n.hi()&&(t=aMn(n,t)),n.Vh(e,t)}function s7(n,e,t){return t==null?(!n.q&&(n.q=new we),O2(n.q,e)):(!n.q&&(n.q=new we),it(n.q,e,t)),n}function H(n,e,t){return t==null?(!n.q&&(n.q=new we),O2(n.q,e)):(!n.q&&(n.q=new we),it(n.q,e,t)),n}function QOn(n){var e,t;return t=new TC,Sr(t,n),H(t,(dl(),hp),n),e=new we,Cye(n,t,e),QEe(n,t,e),t}function Ewe(n){eg();var e,t,i;for(t=F(ai,q,8,2,0,1),i=0,e=0;e<2;e++)i+=.5,t[e]=r3e(i,n);return t}function JOn(n,e){var t,i,r,c;for(t=!1,i=n.a[e].length,c=0;c>=1);return e}function ZOn(n){var e,t;return t=x7(n.h),t==32?(e=x7(n.m),e==32?x7(n.l)+32:e+20-10):t-12}function t6(n){var e;return e=n.a[n.b],e==null?null:(Mt(n.a,n.b,null),n.b=n.b+1&n.a.length-1,e)}function nDn(n){var e,t;return e=n.t-n.k[n.o.p]*n.d+n.j[n.o.p]>n.f,t=n.u+n.e[n.o.p]*n.d>n.f*n.s*n.d,e||t}function bT(n,e,t){var i,r;return i=new I$(e,t),r=new dI,n.b=zNn(n,n.b,i,r),r.b||++n.c,n.b.b=!1,r.d}function eDn(n,e,t){var i,r,c,o;for(o=c6(e,t),c=0,r=o.Kc();r.Ob();)i=u(r.Pb(),11),it(n.c,i,Q(c++))}function wl(n){var e,t;for(t=new E(n.a.b);t.at&&(t=n[e]);return t}function tDn(n,e,t){var i;return i=new X,XY(n,e,i,(J(),Vn),!0,!1),XY(n,t,i,Gn,!1,!1),i}function oF(n,e,t){var i,r,c,o;return c=null,o=e,r=Fd(o,"labels"),i=new jkn(n,t),c=(Hme(i.a,i.b,r),r),c}function Twe(n,e,t,i){var r;return r=xY(n,e,t,i),!r&&(r=Mge(n,t,i),r&&!rg(n,e,r))?null:r}function Mwe(n,e,t,i){var r;return r=LY(n,e,t,i),!r&&(r=TF(n,t,i),r&&!rg(n,e,r))?null:r}function iDn(n,e){var t;for(t=0;t1||e>=0&&n.b<3)}function o7(n){var e,t,i;for(e=new hu,i=_e(n,0);i.b!=i.d.c;)t=u(Re(i),8),s3(e,0,new mr(t));return e}function ja(n){var e,t;for(t=new E(n.a.b);t.ai?1:0}function QV(n,e){return ANn(n,e)?(Tn(n.b,u(k(e,(G(),Gb)),21),e),Ke(n.a,e),!0):!1}function Bwe(n){var e,t;e=u(k(n,(G(),Mu)),10),e&&(t=e.c,Qc(t.a,e),t.a.c.length==0&&Qc(Gi(e).b,t))}function fDn(n){return pf?F($zn,lKn,572,0,0,1):u(lf(n.a,F($zn,lKn,572,n.a.c.length,0,1)),842)}function Rwe(n,e,t,i){return QE(),new GI(A(M(Ha,1),OM,42,0,[(ex(n,e),new bd(n,e)),(ex(t,i),new bd(t,i))]))}function Rw(n,e,t){var i,r;return r=(i=new RI,i),wr(r,e,t),me((!n.q&&(n.q=new V(co,n,11,10)),n.q),r),r}function aF(n){var e,t,i,r;for(r=lre($ne,n),t=r.length,i=F(tn,q,2,t,6,1),e=0;e=n.b.c.length||(JV(n,2*e+1),t=2*e+2,t=0&&n[i]===e[i];i--);return i<0?0:cO(ci(n[i],fr),ci(e[i],fr))?-1:1}function _we(n,e){var t,i;for(i=_e(n,0);i.b!=i.d.c;)t=u(Re(i),214),t.e.length>0&&(e.td(t),t.i&&Fge(t))}function bF(n,e){var t,i;return i=u(Rn(n.a,4),126),t=F(bH,qB,415,e,0,1),i!=null&&gc(i,0,t,0,i.length),t}function lDn(n,e){var t;return t=new zx((n.f&256)!=0,n.i,n.a,n.d,(n.f&16)!=0,n.j,n.g,e),n.e!=null||(t.c=n),t}function Kwe(n,e){var t,i;for(i=n.Zb().Cc().Kc();i.Ob();)if(t=u(i.Pb(),14),t.Hc(e))return!0;return!1}function wF(n,e,t,i,r){var c,o;for(o=t;o<=r;o++)for(c=e;c<=i;c++)if(zw(n,c,o))return!0;return!1}function aDn(n,e,t){var i,r,c,o;for(_n(t),o=!1,c=n.Zc(e),r=t.Kc();r.Ob();)i=r.Pb(),c.Rb(i),o=!0;return o}function Hwe(n,e){var t;return n===e?!0:I(e,83)?(t=u(e,83),ZJ(Ed(n),t.vc())):!1}function dDn(n,e,t){var i,r;for(r=t.Kc();r.Ob();)if(i=u(r.Pb(),42),n.re(e,i.dd()))return!0;return!1}function bDn(n,e,t){return n.d[e.p][t.p]||(Bpe(n,e,t),n.d[e.p][t.p]=!0,n.d[t.p][e.p]=!0),n.a[e.p][t.p]}function W3(n,e){if(!n.ai()&&e==null)throw T(new Hn("The 'no null' constraint is violated"));return e}function X3(n,e){n.D==null&&n.B!=null&&(n.D=n.B,n.B=null),W$(n,e==null?null:(_n(e),e)),n.C&&n.yk(null)}function qwe(n,e){var t;return!n||n==e||!li(e,(G(),m0))?!1:(t=u(k(e,(G(),m0)),10),t!=n)}function gF(n){switch(n.i){case 2:return!0;case 1:return!1;case-1:++n.c;default:return n.pl()}}function wDn(n){switch(n.i){case-2:return!0;case-1:return!1;case 1:--n.c;default:return n.ql()}}function gDn(n){cMn.call(this,"The given string does not match the expected format for individual spacings.",n)}function Xu(){Xu=N,ws=new Jj("ELK",0),Yhn=new Jj("JSON",1),Jhn=new Jj("DOT",2),Zhn=new Jj("SVG",3)}function f7(){f7=N,CP=new AO(Xh,0),Don=new AO("RADIAL_COMPACTION",1),$on=new AO("WEDGE_COMPACTION",2)}function hf(){hf=N,Win=new uO("CONCURRENT",0),hs=new uO("IDENTITY_FINISH",1),Rb=new uO("UNORDERED",2)}function pF(){pF=N,jrn=(Aj(),SR),yrn=new In(pnn,jrn),OUn=new kt(vnn),DUn=new kt(mnn),$Un=new kt(knn)}function V3(){V3=N,xcn=new j0n,Lcn=new E0n,zWn=new C0n,GWn=new T0n,qWn=new M0n,Fcn=(_n(qWn),new uln)}function Q3(){Q3=N,sK=new jO("CONSERVATIVE",0),con=new jO("CONSERVATIVE_SOFT",1),Rm=new jO("SLOPPY",2)}function wT(){wT=N,_hn=new vd(15),cne=new tr((Xe(),nd),_hn),t9=Mp,Lhn=HZn,Nhn=Za,Rhn=Kg,Bhn=BP}function vF(n,e,t){var i,r,c;for(i=new Ct,c=_e(t,0);c.b!=c.d.c;)r=u(Re(c),8),Ke(i,new mr(r));aDn(n,e,i)}function Gwe(n){var e,t,i;for(e=0,i=F(ai,q,8,n.b,0,1),t=_e(n,0);t.b!=t.d.c;)i[e++]=u(Re(t),8);return i}function ZV(n){var e;return e=(!n.a&&(n.a=new V(e1,n,9,5)),n.a),e.i!=0?ore(u(D(e,0),678)):null}function zwe(n,e){var t;return t=qi(n,e),cO(h$(n,e),0)|Cre(h$(n,t),0)?t:qi(IM,h$(J0(t,63),1))}function Uwe(n,e){var t;t=cn((xF(),uP))!=null&&e.wg()!=null?K(Y(e.wg()))/K(Y(cn(uP))):1,it(n.b,e,t)}function Wwe(n,e){var t,i;return t=u(n.d.Bc(e),14),t?(i=n.e.hc(),i.Gc(t),n.e.d-=t.gc(),t.$b(),i):null}function nQ(n,e){var t,i;if(i=n.c[e],i!=0)for(n.c[e]=0,n.d-=i,t=e+1;t0)return a3(e-1,n.a.c.length),h1(n.a,e-1);throw T(new qmn)}function Xwe(n,e,t){if(e<0)throw T(new vr(_Hn+e));ee)throw T(new Hn(xM+n+aKn+e));if(n<0||e>t)throw T(new bG(xM+n+rnn+e+tnn+t))}function mDn(n){if(!n.a||!(n.a.i&8))throw T(new Dr("Enumeration class expected for layout option "+n.f))}function lb(n){var e;++n.j,n.i==0?n.g=null:n.ihA?n-t>hA:t-n>hA}function kF(n,e){return!n||e&&!n.j||I(n,124)&&u(n,124).a.b==0?0:n.Re()}function pT(n,e){return!n||e&&!n.k||I(n,124)&&u(n,124).a.a==0?0:n.Se()}function h7(n){return jl(),n<0?n!=-1?new VQ(-1,-n):gR:n<=10?xin[Gt(n)]:new VQ(1,n)}function tQ(n){throw cF(),T(new L9n("Unexpected typeof result '"+n+"'; please report this bug to the GWT team"))}function CDn(n){H9n(),oE(this),eC(this),this.e=n,NNn(this,n),this.g=n==null?iu:Lr(n),this.a="",this.b=n,this.a=""}function iQ(){this.a=new qgn,this.f=new O6n(this),this.b=new D6n(this),this.i=new $6n(this),this.e=new F6n(this)}function TDn(){iie.call(this,new _X(sb(16))),is(2,W_n),this.b=2,this.a=new RW(null,null,0,null),$9(this.a,this.a)}function i6(){i6=N,J_=new vO("DUMMY_NODE_OVER",0),qsn=new vO("DUMMY_NODE_UNDER",1),oP=new vO("EQUAL",2)}function yF(){yF=N,_R=sMn(A(M(e9,1),z,103,0,[(sr(),Zs),Ao])),KR=sMn(A(M(e9,1),z,103,0,[Yh,Jh]))}function jF(n){return(J(),cu).Hc(n.j)?K(Y(k(n,(G(),hv)))):Gr(A(M(ai,1),q,8,0,[n.i.n,n.n,n.a])).b}function Zwe(n){var e,t,i,r;for(i=n.b.a,t=i.a.ec().Kc();t.Ob();)e=u(t.Pb(),561),r=new pNn(e,n.e,n.f),W(n.g,r)}function Ca(n,e){var t,i,r;i=n.nk(e,null),r=null,e&&(r=(Qp(),t=new ud,t),O3(r,n.r)),i=af(n,r,i),i&&i.Fi()}function nge(n,e){var t,i;for(i=Fu(n.d,1)!=0,t=!0;t;)t=!1,t=e.c.Tf(e.e,i),t=t|_7(n,e,i,!1),i=!i;yV(n)}function rQ(n,e){var t,i,r;return i=!1,t=e.q.d,e.dr&&(JFn(e.q,r),i=t!=e.q.d)),i}function MDn(n,e){var t,i,r,c,o,f,h,l;return h=e.i,l=e.j,i=n.f,r=i.i,c=i.j,o=h-r,f=l-c,t=j.Math.sqrt(o*o+f*f),t}function cQ(n,e){var t,i;return i=OT(n),i||(t=(bL(),Yxn(e)),i=new Fmn(t),me(i.Vk(),n)),i}function l7(n,e){var t,i;return t=u(n.c.Bc(e),14),t?(i=n.hc(),i.Gc(t),n.d-=t.gc(),t.$b(),n.mc(i)):n.jc()}function ADn(n,e){var t;for(t=0;t=n.c.b:n.a<=n.c.b))throw T(new ic);return e=n.a,n.a+=n.c.c,++n.b,Q(e)}function ige(n){var e;return e=new uIn(n),O8(n.a,SWn,new Ku(A(M(Rk,1),rn,369,0,[e]))),e.d&&W(e.f,e.d),e.f}function EF(n){var e;return e=new Mz(n.a),Sr(e,n),H(e,(G(),rt),n),e.o.a=n.g,e.o.b=n.f,e.n.a=n.i,e.n.b=n.j,e}function rge(n,e,t,i){var r,c;for(c=n.Kc();c.Ob();)r=u(c.Pb(),70),r.n.a=e.a+(i.a-r.o.a)/2,r.n.b=e.b,e.b+=r.o.b+t}function cge(n,e,t){var i,r;for(r=e.a.a.ec().Kc();r.Ob();)if(i=u(r.Pb(),57),_Tn(n,i,t))return!0;return!1}function uge(n){var e,t;for(t=new E(n.r);t.a=0?e:-e;i>0;)i%2==0?(t*=t,i=i/2|0):(r*=t,i-=1);return e<0?1/r:r}function hge(n,e){var t,i,r;for(r=1,t=n,i=e>=0?e:-e;i>0;)i%2==0?(t*=t,i=i/2|0):(r*=t,i-=1);return e<0?1/r:r}function FDn(n){var e,t;if(n!=null)for(t=0;t0&&(t=u(un(n.a,n.a.c.length-1),570),QV(t,e))||W(n.a,new dSn(e))}function wge(n){wo();var e,t;e=n.d.c-n.e.c,t=u(n.g,145),Yc(t.b,new _5n(e)),Yc(t.c,new K5n(e)),$i(t.i,new H5n(e))}function BDn(n){var e;return e=new V1,e.a+="VerticalSegment ",rc(e,n.e),e.a+=" ",De(e,Lz(new YI,new E(n.k))),e.a}function gge(n){var e;return e=u(xd(n.c.c,""),229),e||(e=new M2(Vp(Xp(new Zg,""),"Other")),Aa(n.c.c,"",e)),e}function r6(n){var e;return n.Db&64?yo(n):(e=new Bs(yo(n)),e.a+=" (name: ",dr(e,n.zb),e.a+=")",e.a)}function hQ(n,e,t){var i,r;return r=n.sb,n.sb=e,n.Db&4&&!(n.Db&1)&&(i=new wi(n,1,4,r,e),t?t.Ei(i):t=i),t}function CF(n,e){var t,i,r;for(t=0,r=zr(n,e).Kc();r.Ob();)i=u(r.Pb(),11),t+=k(i,(G(),Mu))!=null?1:0;return t}function Kw(n,e,t){var i,r,c;for(i=0,c=_e(n,0);c.b!=c.d.c&&(r=K(Y(Re(c))),!(r>t));)r>=e&&++i;return i}function pge(n,e,t){var i,r;return i=new Lh(n.e,3,13,null,(r=e.c,r||(Sn(),Cf)),v1(n,e),!1),t?t.Ei(i):t=i,t}function vge(n,e,t){var i,r;return i=new Lh(n.e,4,13,(r=e.c,r||(Sn(),Cf)),null,v1(n,e),!1),t?t.Ei(i):t=i,t}function lQ(n,e,t){var i,r;return r=n.r,n.r=e,n.Db&4&&!(n.Db&1)&&(i=new wi(n,1,8,r,n.r),t?t.Ei(i):t=i),t}function w1(n,e){var t,i;return t=u(e,676),i=t.vk(),!i&&t.wk(i=I(e,88)?new Fkn(n,u(e,26)):new eAn(n,u(e,148))),i}function a7(n,e,t){var i;n.qi(n.i+1),i=n.oi(e,t),e!=n.i&&gc(n.g,e,n.g,e+1,n.i-e),Mt(n.g,e,i),++n.i,n.bi(e,t),n.ci()}function mge(n,e){var t;return e.a&&(t=e.a.a.length,n.a?De(n.a,n.b):n.a=new Ju(n.d),iAn(n.a,e.a,e.d.length,t)),n}function kge(n,e){var t,i,r,c;if(e.vi(n.a),c=u(Rn(n.a,8),1936),c!=null)for(t=c,i=0,r=t.length;it)throw T(new vr(xM+n+rnn+e+", size: "+t));if(n>e)throw T(new Hn(xM+n+aKn+e))}function As(n,e,t){if(e<0)bY(n,t);else{if(!t.Ij())throw T(new Hn(Pl+t.ne()+em));u(t,66).Nj().Vj(n,n.yh(),e)}}function Ege(n,e,t,i,r,c,o,f){var h;for(h=t;c=i||e=65&&n<=70?n-65+10:n>=97&&n<=102?n-97+10:n>=48&&n<=57?n-48:0}function zDn(n){var e;return n.Db&64?yo(n):(e=new Bs(yo(n)),e.a+=" (source: ",dr(e,n.d),e.a+=")",e.a)}function Tge(n,e,t){var i,r;return r=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&(i=new wi(n,1,5,r,n.a),t?FJ(t,i):t=i),t}function g1(n,e){var t;t=(n.Bb&256)!=0,e?n.Bb|=256:n.Bb&=-257,n.Db&4&&!(n.Db&1)&&et(n,new vo(n,1,2,t,e))}function dQ(n,e){var t;t=(n.Bb&256)!=0,e?n.Bb|=256:n.Bb&=-257,n.Db&4&&!(n.Db&1)&&et(n,new vo(n,1,8,t,e))}function kT(n,e){var t;t=(n.Bb&256)!=0,e?n.Bb|=256:n.Bb&=-257,n.Db&4&&!(n.Db&1)&&et(n,new vo(n,1,8,t,e))}function p1(n,e){var t;t=(n.Bb&512)!=0,e?n.Bb|=512:n.Bb&=-513,n.Db&4&&!(n.Db&1)&&et(n,new vo(n,1,3,t,e))}function bQ(n,e){var t;t=(n.Bb&512)!=0,e?n.Bb|=512:n.Bb&=-513,n.Db&4&&!(n.Db&1)&&et(n,new vo(n,1,9,t,e))}function u6(n,e){var t;return n.b==-1&&n.a&&(t=n.a.Gj(),n.b=t?n.c.Xg(n.a.aj(),t):yt(n.c.Tg(),n.a)),n.c.Og(n.b,e)}function Q(n){var e,t;return n>-129&&n<128?(e=n+128,t=(qEn(),jin)[e],!t&&(t=jin[e]=new gq(n)),t):new gq(n)}function J3(n){var e,t;return n>-129&&n<128?(e=n+128,t=(VEn(),Min)[e],!t&&(t=Min[e]=new vq(n)),t):new vq(n)}function wQ(n){var e,t;return e=n.k,e==(Qn(),Xt)?(t=u(k(n,(G(),ec)),61),t==(J(),Kn)||t==ae):!1}function Mge(n,e,t){var i,r,c;return c=(r=b4(n.b,e),r),c&&(i=u(jM(G8(n,c),""),26),i)?xY(n,i,e,t):null}function TF(n,e,t){var i,r,c;return c=(r=b4(n.b,e),r),c&&(i=u(jM(G8(n,c),""),26),i)?LY(n,i,e,t):null}function UDn(n,e){var t,i;for(i=new ie(n);i.e!=i.i.gc();)if(t=u(oe(i),138),B(e)===B(t))return!0;return!1}function s6(n,e,t){var i;if(i=n.gc(),e>i)throw T(new V0(e,i));if(n.hi()&&n.Hc(t))throw T(new Hn(yk));n.Xh(e,t)}function Age(n,e){var t;if(t=xw(n.i,e),t==null)throw T(new Af("Node did not exist in input."));return MV(e,t),null}function Sge(n,e){var t;if(t=R7(n,e),I(t,322))return u(t,34);throw T(new Hn(Pl+e+"' is not a valid attribute"))}function Pge(n,e,t){var i,r;for(r=I(e,99)&&u(e,18).Bb&Yi?new LO(e,n):new H3(e,n),i=0;ie?1:n==e?n==0?Zt(1/n,1/e):0:isNaN(n)?isNaN(e)?0:1:-1}function Bge(n,e){le(e,"Sort end labels",1),Rt(gt(qr(new $n(null,new xn(n.b,16)),new bdn),new wdn),new gdn),ce(e)}function o6(n,e,t){var i,r;return n.ej()?(r=n.fj(),i=Dx(n,e,t),n.$i(n.Zi(7,Q(t),i,e,r)),i):Dx(n,e,t)}function MF(n,e){var t,i,r;n.d==null?(++n.e,--n.f):(r=e.cd(),t=e.Sh(),i=(t&nt)%n.d.length,yde(n,i,hNn(n,i,t,r)))}function Y3(n,e){var t;t=(n.Bb&Eo)!=0,e?n.Bb|=Eo:n.Bb&=-1025,n.Db&4&&!(n.Db&1)&&et(n,new vo(n,1,10,t,e))}function Z3(n,e){var t;t=(n.Bb&Ib)!=0,e?n.Bb|=Ib:n.Bb&=-4097,n.Db&4&&!(n.Db&1)&&et(n,new vo(n,1,12,t,e))}function n4(n,e){var t;t=(n.Bb&mu)!=0,e?n.Bb|=mu:n.Bb&=-8193,n.Db&4&&!(n.Db&1)&&et(n,new vo(n,1,15,t,e))}function e4(n,e){var t;t=(n.Bb&Bb)!=0,e?n.Bb|=Bb:n.Bb&=-2049,n.Db&4&&!(n.Db&1)&&et(n,new vo(n,1,11,t,e))}function Rge(n,e){var t;return t=Zt(n.b.c,e.b.c),t!=0||(t=Zt(n.a.a,e.a.a),t!=0)?t:Zt(n.a.b,e.a.b)}function _ge(n,e){var t;if(t=te(n.k,e),t==null)throw T(new Af("Port did not exist in input."));return MV(e,t),null}function Kge(n){var e,t;for(t=wNn(ts(n)).Kc();t.Ob();)if(e=Te(t.Pb()),A6(n,e))return Vae((C7n(),zne),e);return null}function Hge(n,e){var t,i,r,c,o;for(o=Kc(n.e.Tg(),e),c=0,t=u(n.g,119),r=0;r>10)+rk&Ut,e[1]=(n&1023)+56320&Ut,Hs(e,0,e.length)}function jT(n){var e,t;return t=u(k(n,(nn(),ls)),103),t==(sr(),mh)?(e=K(Y(k(n,zS))),e>=1?Ao:Jh):t}function zge(n){switch(u(k(n,(nn(),Qh)),218).g){case 1:return new ewn;case 3:return new uwn;default:return new nwn}}function Ta(n){if(n.c)Ta(n.c);else if(n.d)throw T(new Dr("Stream already terminated, can't be modified or used"))}function PF(n){var e;return n.Db&64?yo(n):(e=new Bs(yo(n)),e.a+=" (identifier: ",dr(e,n.k),e.a+=")",e.a)}function QDn(n,e,t){var i,r;return i=(ad(),r=new Xy,r),UC(i,e),WC(i,t),n&&me((!n.a&&(n.a=new Jt(io,n,5)),n.a),i),i}function IF(n,e,t,i){var r,c;return _n(i),_n(t),r=n.xc(e),c=r==null?t:l7n(u(r,15),u(t,14)),c==null?n.Bc(e):n.zc(e,c),c}function Cn(n){var e,t,i,r;return t=(e=u(xo((i=n.gm,r=i.f,r==Ie?i:r)),9),new ks(e,u(bo(e,e.length),9),0)),ko(t,n),t}function Uge(n,e,t){var i,r;for(r=n.a.ec().Kc();r.Ob();)if(i=u(r.Pb(),10),t7(t,u(un(e,i.p),14)))return i;return null}function Wge(n,e,t){var i;try{Awe(n,e,t)}catch(r){throw r=jt(r),I(r,597)?(i=r,T(new EX(i))):T(r)}return e}function vl(n,e){var t;return $r(n)&&$r(e)&&(t=n-e,ik>1,n.k=t-1>>1}function OF(){_J();var n,e,t;t=qTe+++Date.now(),n=Gt(j.Math.floor(t*uk))&FM,e=Gt(t-n*enn),this.a=n^1502,this.b=e^tN}function Kh(n){var e,t,i;for(e=new X,i=new E(n.j);i.a34028234663852886e22?Ft:e<-34028234663852886e22?Vt:e}function JDn(n){return n-=n>>1&1431655765,n=(n>>2&858993459)+(n&858993459),n=(n>>4)+n&252645135,n+=n>>8,n+=n>>16,n&63}function YDn(n){var e,t,i,r;for(e=new Djn(n.Hd().gc()),r=0,i=$2(n.Hd().Kc());i.Ob();)t=i.Pb(),ole(e,t,Q(r++));return $5e(e.a)}function Zge(n,e){var t,i,r;for(r=new we,i=e.vc().Kc();i.Ob();)t=u(i.Pb(),42),it(r,t.cd(),Gbe(n,u(t.dd(),15)));return r}function yQ(n,e){n.n.c.length==0&&W(n.n,new lC(n.s,n.t,n.i)),W(n.b,e),iJ(u(un(n.n,n.n.c.length-1),211),e),oRn(n,e)}function Hw(n){return(n.c!=n.b.b||n.i!=n.g.b)&&(n.a.c=F(Zn,rn,1,0,5,1),Yt(n.a,n.b),Yt(n.a,n.g),n.c=n.b.b,n.i=n.g.b),n.a}function DF(n,e){var t,i,r;for(r=0,i=u(e.Kb(n),20).Kc();i.Ob();)t=u(i.Pb(),17),on(sn(k(t,(G(),mf))))||++r;return r}function n2e(n,e){var t,i,r;i=$w(e),r=K(Y(bb(i,(nn(),Mo)))),t=j.Math.max(0,r/2-.5),g6(e,t,1),W(n,new G7n(e,t))}function Ss(){Ss=N,Qk=new Q9(Xh,0),Sm=new Q9("FIRST",1),xl=new Q9(uHn,2),Pm=new Q9("LAST",3),Ub=new Q9(sHn,4)}function Hh(){Hh=N,rH=new Wj(K6,0),yy=new Wj("POLYLINE",1),Cv=new Wj("ORTHOGONAL",2),Sp=new Wj("SPLINES",3)}function ET(){ET=N,Jon=new PO("ASPECT_RATIO_DRIVEN",0),IK=new PO("MAX_SCALE_DRIVEN",1),Qon=new PO("AREA_DRIVEN",2)}function w7(){w7=N,AP=new IO("P1_STRUCTURE",0),SP=new IO("P2_PROCESSING_ORDER",1),PP=new IO("P3_EXECUTION",2)}function CT(){CT=N,CK=new MO("OVERLAP_REMOVAL",0),jK=new MO("COMPACTION",1),EK=new MO("GRAPH_SIZE_CALCULATION",2)}function zd(n,e){return Yo(),mo(Cl),j.Math.abs(n-e)<=Cl||n==e||isNaN(n)&&isNaN(e)?0:ne?1:pd(isNaN(n),isNaN(e))}function ZDn(n,e){var t,i;for(t=_e(n,0);t.b!=t.d.c;){if(i=x9(Y(Re(t))),i==e)return;if(i>e){a$(t);break}}y8(t,e)}function En(n,e){var t,i,r,c,o;if(t=e.f,Aa(n.c.d,t,e),e.g!=null)for(r=e.g,c=0,o=r.length;ce&&i.ue(n[c-1],n[c])>0;--c)o=n[c],Mt(n,c,n[c-1]),Mt(n,c-1,o)}function Ps(n,e,t,i){if(e<0)_Y(n,t,i);else{if(!t.Ij())throw T(new Hn(Pl+t.ne()+em));u(t,66).Nj().Tj(n,n.yh(),e,i)}}function TT(n,e){if(e==n.d)return n.e;if(e==n.e)return n.d;throw T(new Hn("Node "+e+" not part of edge "+n))}function t2e(n,e){switch(e.g){case 2:return n.b;case 1:return n.c;case 4:return n.d;case 3:return n.a;default:return!1}}function n$n(n,e){switch(e.g){case 2:return n.b;case 1:return n.c;case 4:return n.d;case 3:return n.a;default:return!1}}function jQ(n,e,t,i){switch(e){case 3:return n.f;case 4:return n.g;case 5:return n.i;case 6:return n.j}return aQ(n,e,t,i)}function i2e(n){return n.k!=(Qn(),ti)?!1:C3(new $n(null,new Cd(new re(ue(ni(n).a.Kc(),new Mn)))),new Hbn)}function r2e(n){return n.e==null?n:(!n.c&&(n.c=new zx((n.f&256)!=0,n.i,n.a,n.d,(n.f&16)!=0,n.j,n.g,null)),n.c)}function c2e(n,e){return n.h==tk&&n.m==0&&n.l==0?(e&&(Il=Bc(0,0,0)),eyn((I3(),gin))):(e&&(Il=Bc(n.l,n.m,n.h)),Bc(0,0,0))}function Lr(n){var e;return Array.isArray(n)&&n.im===Xg?J1(Du(n))+"@"+(e=mt(n)>>>0,e.toString(16)):n.toString()}function f6(n){var e;this.a=(e=u(n.e&&n.e(),9),new ks(e,u(bo(e,e.length),9),0)),this.b=F(Zn,rn,1,this.a.a.length,5,1)}function u2e(n){var e,t,i;for(this.a=new Sh,i=new E(n);i.a0&&(Me(e-1,n.length),n.charCodeAt(e-1)==58)&&!$F(n,a9,d9))}function $F(n,e,t){var i,r;for(i=0,r=n.length;i=r)return e.c+t;return e.c+e.b.gc()}function l2e(n,e){o3();var t,i,r,c;for(i=bPn(n),r=e,S3(i,0,i.length,r),t=0;t0&&(i+=r,++t);return t>1&&(i+=n.d*(t-1)),i}function CQ(n){var e,t,i;for(i=new i1,i.a+="[",e=0,t=n.gc();e0&&this.b>0&&cW(this.c,this.b,this.a)}function AQ(n){xF(),this.c=cf(A(M(sMe,1),rn,831,0,[LQn])),this.b=new we,this.a=n,it(this.b,uP,1),Yc(NQn,new q6n(this))}function e$n(n,e){var t;return n.d?zu(n.b,e)?u(te(n.b,e),51):(t=e.Kf(),it(n.b,e,t),t):e.Kf()}function SQ(n,e){var t;return B(n)===B(e)?!0:I(e,91)?(t=u(e,91),n.e==t.e&&n.d==t.d&&Jae(n,t.a)):!1}function B2(n){switch(J(),n.g){case 4:return Kn;case 1:return Vn;case 3:return ae;case 2:return Gn;default:return Xr}}function PQ(n,e){switch(e){case 3:return n.f!=0;case 4:return n.g!=0;case 5:return n.i!=0;case 6:return n.j!=0}return SV(n,e)}function p2e(n){switch(n.g){case 0:return new Lgn;case 1:return new Ngn;default:throw T(new Hn(lB+(n.f!=null?n.f:""+n.g)))}}function t$n(n){switch(n.g){case 0:return new xgn;case 1:return new Bgn;default:throw T(new Hn(AN+(n.f!=null?n.f:""+n.g)))}}function i$n(n){switch(n.g){case 0:return new sG;case 1:return new b9n;default:throw T(new Hn(bA+(n.f!=null?n.f:""+n.g)))}}function v2e(n){switch(n.g){case 1:return new Pgn;case 2:return new kjn;default:throw T(new Hn(lB+(n.f!=null?n.f:""+n.g)))}}function m2e(n){var e,t;if(n.b)return n.b;for(t=pf?null:n.d;t;){if(e=pf?null:t.b,e)return e;t=pf?null:t.d}return e3(),Uin}function k2e(n){var e,t,i;return n.e==0?0:(e=n.d<<5,t=n.a[n.d-1],n.e<0&&(i=dOn(n),i==n.d-1&&(--t,t=t|0)),e-=x7(t),e)}function y2e(n){var e,t,i;return n>5,e=n&31,i=F(be,Le,25,t+1,15,1),i[t]=1<3;)r*=10,--c;n=(n+(r>>1))/r|0}return i.i=n,!0}function E2e(n){return yF(),qn(),!!(n$n(u(n.a,81).j,u(n.b,103))||u(n.a,81).d.e!=0&&n$n(u(n.a,81).j,u(n.b,103)))}function C2e(n){DC(),u(n.We((Xe(),_l)),174).Hc((xu(),UP))&&(u(n.We(rw),174).Fc((Tu(),Pp)),u(n.We(_l),174).Mc(UP))}function c$n(n,e){var t,i;if(e){for(t=0;t=0;--i)for(e=t[i],r=0;r>1,this.k=e-1>>1}function I2e(n,e){le(e,"End label post-processing",1),Rt(gt(qr(new $n(null,new xn(n.b,16)),new udn),new sdn),new odn),ce(e)}function O2e(n,e,t){var i,r;return i=K(n.p[e.i.p])+K(n.d[e.i.p])+e.n.b+e.a.b,r=K(n.p[t.i.p])+K(n.d[t.i.p])+t.n.b+t.a.b,r-i}function D2e(n,e,t){var i,r;for(i=ci(t,fr),r=0;fc(i,0)!=0&&r0&&(Me(0,e.length),e.charCodeAt(0)==43)?e.substr(1):e))}function F2e(n){var e;return n==null?null:new il((e=jc(n,!0),e.length>0&&(Me(0,e.length),e.charCodeAt(0)==43)?e.substr(1):e))}function LQ(n,e){var t;return n.i>0&&(e.lengthn.i&&Mt(e,n.i,null),e}function Oc(n,e,t){var i,r,c;return n.ej()?(i=n.i,c=n.fj(),a7(n,i,e),r=n.Zi(3,null,e,i,c),t?t.Ei(r):t=r):a7(n,n.i,e),t}function x2e(n,e,t){var i,r;return i=new Lh(n.e,4,10,(r=e.c,I(r,88)?u(r,26):(Sn(),so)),null,v1(n,e),!1),t?t.Ei(i):t=i,t}function L2e(n,e,t){var i,r;return i=new Lh(n.e,3,10,null,(r=e.c,I(r,88)?u(r,26):(Sn(),so)),v1(n,e),!1),t?t.Ei(i):t=i,t}function o$n(n){W0();var e;return e=new mr(u(n.e.We((Xe(),Kg)),8)),n.B.Hc((xu(),Mv))&&(e.a<=0&&(e.a=20),e.b<=0&&(e.b=20)),e}function f$n(n){wb();var e;return(n.q?n.q:(Pn(),Pn(),ph))._b((nn(),j0))?e=u(k(n,j0),197):e=u(k(Gi(n),$m),197),e}function bb(n,e){var t,i;return i=null,li(n,(nn(),rP))&&(t=u(k(n,rP),94),t.Xe(e)&&(i=t.We(e))),i==null&&(i=k(Gi(n),e)),i}function h$n(n,e){var t,i,r;return I(e,42)?(t=u(e,42),i=t.cd(),r=ab(n.Rc(),i),$f(r,t.dd())&&(r!=null||n.Rc()._b(i))):!1}function NF(n,e){var t,i,r;return n.f>0?(n.qj(),i=e==null?0:mt(e),r=(i&nt)%n.d.length,t=hNn(n,r,i,e),t!=-1):!1}function Ko(n,e){var t,i,r;return n.f>0&&(n.qj(),i=e==null?0:mt(e),r=(i&nt)%n.d.length,t=kY(n,r,i,e),t)?t.dd():null}function g7(n,e){var t,i,r,c;for(c=Kc(n.e.Tg(),e),t=u(n.g,119),r=0;r1?rf(Ih(e.a[1],32),ci(e.a[0],fr)):ci(e.a[0],fr),$d(Ni(e.e,t))))}function p7(n,e){var t;return $r(n)&&$r(e)&&(t=n%e,ik>5,e&=31,r=n.d+t+(e==0?0:1),i=F(be,Le,25,r,15,1),Nve(i,n.a,t,e),c=new Pw(n.e,r,i),K5(c),c}function BQ(n,e,t){var i,r;i=u(vc(Pv,e),117),r=u(vc(m9,e),117),t?(kr(Pv,n,i),kr(m9,n,r)):(kr(m9,n,i),kr(Pv,n,r))}function p$n(n,e,t){var i,r,c;for(r=null,c=n.b;c;){if(i=n.a.ue(e,c.d),t&&i==0)return c;i>=0?c=c.a[1]:(r=c,c=c.a[0])}return r}function v$n(n,e,t){var i,r,c;for(r=null,c=n.b;c;){if(i=n.a.ue(e,c.d),t&&i==0)return c;i<=0?c=c.a[0]:(r=c,c=c.a[1])}return r}function K2e(n,e,t,i){var r,c,o;return r=!1,jEe(n.f,t,i)&&(ape(n.f,n.a[e][t],n.a[e][i]),c=n.a[e],o=c[i],c[i]=c[t],c[t]=o,r=!0),r}function RQ(n,e,t,i,r){var c,o,f;for(o=r;e.b!=e.c;)c=u(y2(e),10),f=u(zr(c,i).Xb(0),11),n.d[f.p]=o++,t.c[t.c.length]=f;return o}function _Q(n,e,t){var i,r,c,o,f;return o=n.k,f=e.k,i=t[o.g][f.g],r=Y(bb(n,i)),c=Y(bb(e,i)),j.Math.max((_n(r),r),(_n(c),c))}function H2e(n,e,t){var i,r,c,o;for(i=t/n.c.length,r=0,o=new E(n);o.a2e3&&(wzn=n,KA=j.setTimeout(Vie,10))),_A++==0?(E0e((aG(),din)),!0):!1}function G2e(n,e){var t,i,r;for(i=new re(ue(ni(n).a.Kc(),new Mn));Se(i);)if(t=u(ve(i),17),r=t.d.i,r.c==e)return!1;return!0}function KQ(n,e){var t,i;if(I(e,245)){i=u(e,245);try{return t=n.vd(i),t==0}catch(r){if(r=jt(r),!I(r,205))throw T(r)}}return!1}function z2e(){return Error.stackTraceLimit>0?(j.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}function U2e(n,e){return Yo(),Yo(),mo(Cl),(j.Math.abs(n-e)<=Cl||n==e||isNaN(n)&&isNaN(e)?0:ne?1:pd(isNaN(n),isNaN(e)))>0}function HQ(n,e){return Yo(),Yo(),mo(Cl),(j.Math.abs(n-e)<=Cl||n==e||isNaN(n)&&isNaN(e)?0:ne?1:pd(isNaN(n),isNaN(e)))<0}function y$n(n,e){return Yo(),Yo(),mo(Cl),(j.Math.abs(n-e)<=Cl||n==e||isNaN(n)&&isNaN(e)?0:ne?1:pd(isNaN(n),isNaN(e)))<=0}function RF(n,e){for(var t=0;!e[t]||e[t]=="";)t++;for(var i=e[t++];tJL)return t.fh();if(i=t.Zg(),i||t==n)break}return i}function qQ(n){return dC(),I(n,156)?u(te($y,Azn),288).vg(n):zu($y,Du(n))?u(te($y,Du(n)),288).vg(n):null}function X2e(n){if(DT(B4,n))return qn(),z4;if(DT(EB,n))return qn(),qa;throw T(new Hn("Expecting true or false"))}function V2e(n,e){if(e.c==n)return e.d;if(e.d==n)return e.c;throw T(new Hn("Input edge is not connected to the input port."))}function A$n(n,e){return n.e>e.e?1:n.ee.d?n.e:n.d=48&&n<48+j.Math.min(10,10)?n-48:n>=97&&n<97?n-97+10:n>=65&&n<65?n-65+10:-1}function P$n(n,e){var t;return B(e)===B(n)?!0:!I(e,21)||(t=u(e,21),t.gc()!=n.gc())?!1:n.Ic(t)}function Q2e(n,e){var t,i,r,c;return i=n.a.length-1,t=e-n.b&i,c=n.c-e&i,r=n.c-n.b&i,cjn(t=c?(Vwe(n,e),-1):(Qwe(n,e),1)}function J2e(n,e){var t,i;for(t=(Me(e,n.length),n.charCodeAt(e)),i=e+1;ie.e?1:n.fe.f?1:mt(n)-mt(e)}function DT(n,e){return _n(n),e==null?!1:An(n,e)?!0:n.length==e.length&&An(n.toLowerCase(),e.toLowerCase())}function upe(n,e){var t,i,r,c;for(i=0,r=e.gc();i0&&fc(n,128)<0?(e=ge(n)+128,t=(XEn(),Ein)[e],!t&&(t=Ein[e]=new pq(n)),t):new pq(n)}function O$n(n,e){var t,i;return t=e.Hh(n.a),t&&(i=Te(Ko((!t.b&&(t.b=new qu((Sn(),nr),tc,t)),t.b),We)),i!=null)?i:e.ne()}function spe(n,e){var t,i;return t=e.Hh(n.a),t&&(i=Te(Ko((!t.b&&(t.b=new qu((Sn(),nr),tc,t)),t.b),We)),i!=null)?i:e.ne()}function ope(n,e){c$();var t,i;for(i=new re(ue(Kh(n).a.Kc(),new Mn));Se(i);)if(t=u(ve(i),17),t.d.i==e||t.c.i==e)return t;return null}function UQ(n,e,t){this.c=n,this.f=new X,this.e=new Li,this.j=new eW,this.n=new eW,this.b=e,this.g=new ys(e.c,e.d,e.b,e.a),this.a=t}function _F(n){var e,t,i,r;for(this.a=new Sh,this.d=new fi,this.e=0,t=n,i=0,r=t.length;i0):!1}function F$n(n){var e;B(hn(n,(Xe(),Bg)))===B((_h(),HP))&&(At(n)?(e=u(hn(At(n),Bg),334),gr(n,Bg,e)):gr(n,Bg,i9))}function ape(n,e,t){var i,r;yx(n.e,e,t,(J(),Gn)),yx(n.i,e,t,Vn),n.a&&(r=u(k(e,(G(),rt)),11),i=u(k(t,rt),11),l$(n.g,r,i))}function x$n(n,e,t){var i,r,c;i=e.c.p,c=e.p,n.b[i][c]=new YTn(n,e),t&&(n.a[i][c]=new c6n(e),r=u(k(e,(G(),m0)),10),r&&Tn(n.d,r,e))}function L$n(n,e){var t,i,r;if(W(eS,n),e.Fc(n),t=u(te(DR,n),21),t)for(r=t.Kc();r.Ob();)i=u(r.Pb(),33),Fr(eS,i,0)!=-1||L$n(i,e)}function dpe(n,e,t){var i;(Fzn?(m2e(n),!0):xzn||Nzn?(e3(),!0):Lzn&&(e3(),!1))&&(i=new hEn(e),i.b=t,g5e(n,i))}function KF(n,e){var t;t=!n.A.Hc((Vu(),id))||n.q==(Ti(),Ac),n.u.Hc((Tu(),n1))?t?xCe(n,e):a_n(n,e):n.u.Hc(Gl)&&(t?nCe(n,e):M_n(n,e))}function r4(n,e){var t,i;if(++n.j,e!=null&&(t=(i=n.a.Cb,I(i,97)?u(i,97).Jg():null),ome(e,t))){R2(n.a,4,t);return}R2(n.a,4,u(e,126))}function N$n(n,e,t){return new ys(j.Math.min(n.a,e.a)-t/2,j.Math.min(n.b,e.b)-t/2,j.Math.abs(n.a-e.a)+t,j.Math.abs(n.b-e.b)+t)}function bpe(n,e){var t,i;return t=Uc(n.a.c.p,e.a.c.p),t!=0?t:(i=Uc(n.a.d.i.p,e.a.d.i.p),i!=0?i:Uc(e.a.d.p,n.a.d.p))}function wpe(n,e,t){var i,r,c,o;return c=e.j,o=t.j,c!=o?c.g-o.g:(i=n.f[e.p],r=n.f[t.p],i==0&&r==0?0:i==0?-1:r==0?1:Zt(i,r))}function B$n(n,e,t){var i,r,c;if(!t[e.d])for(t[e.d]=!0,r=new E(Hw(e));r.a=r)return r;for(e=e>0?e:0;ei&&Mt(e,i,null),e}function _$n(n,e){var t,i;for(i=n.a.length,e.lengthi&&Mt(e,i,null),e}function Aa(n,e,t){var i,r,c;return r=u(te(n.e,e),387),r?(c=gU(r,t),Oyn(n,r),c):(i=new qU(n,e,t),it(n.e,e,i),iMn(i),null)}function vpe(n){var e;if(n==null)return null;if(e=a9e(jc(n,!0)),e==null)throw T(new VI("Invalid hexBinary value: '"+n+"'"));return e}function m7(n){return jl(),fc(n,0)<0?fc(n,-1)!=0?new OJ(-1,P3(n)):gR:fc(n,10)<=0?xin[ge(n)]:new OJ(1,n)}function qF(){return SM(),A(M(yUn,1),z,159,0,[mUn,vUn,kUn,hUn,fUn,lUn,bUn,dUn,aUn,pUn,gUn,wUn,sUn,uUn,oUn,rUn,iUn,cUn,eUn,nUn,tUn,TR])}function K$n(n){var e;this.d=new X,this.j=new Li,this.g=new Li,e=n.g.b,this.f=u(k(Gi(e),(nn(),ls)),103),this.e=K(Y(xT(e,nw)))}function H$n(n){this.b=new X,this.e=new X,this.d=n,this.a=!Wv(gt(new $n(null,new Cd(new uf(n.b))),new Fv(new qbn))).sd((ca(),V4))}function Ho(){Ho=N,Xn=new Z9("PARENTS",0),pi=new Z9("NODES",1),Yf=new Z9("EDGES",2),Ya=new Z9("PORTS",3),D1=new Z9("LABELS",4)}function qw(){qw=N,Hl=new e8("DISTRIBUTED",0),Cy=new e8("JUSTIFIED",1),Hhn=new e8("BEGIN",2),r9=new e8(I4,3),qhn=new e8("END",4)}function mpe(n){var e;switch(e=n.yi(null),e){case 10:return 0;case 15:return 1;case 14:return 2;case 11:return 3;case 21:return 4}return-1}function GF(n){switch(n.g){case 1:return sr(),Yh;case 4:return sr(),Zs;case 2:return sr(),Ao;case 3:return sr(),Jh}return sr(),mh}function kpe(n,e,t){var i;switch(i=t.q.getFullYear()-Tl+Tl,i<0&&(i=-i),e){case 1:n.a+=i;break;case 2:sh(n,i%100,2);break;default:sh(n,i,e)}}function _e(n,e){var t,i;if(tb(e,n.b),e>=n.b>>1)for(i=n.c,t=n.b;t>e;--t)i=i.b;else for(i=n.a.a,t=0;t=64&&e<128&&(r=rf(r,Ih(1,e-64)));return r}function xT(n,e){var t,i;return i=null,li(n,(Xe(),Ap))&&(t=u(k(n,Ap),94),t.Xe(e)&&(i=t.We(e))),i==null&&Gi(n)&&(i=k(Gi(n),e)),i}function z$n(n,e){var t,i,r;r=e.d.i,i=r.k,!(i==(Qn(),ti)||i==vf)&&(t=new re(ue(ni(r).a.Kc(),new Mn)),Se(t)&&it(n.k,e,u(ve(t),17)))}function zF(n,e){var t,i,r;return i=On(n.Tg(),e),t=e-n.Ah(),t<0?(r=n.Yg(i),r>=0?n.lh(r):Ox(n,i)):t<0?Ox(n,i):u(i,66).Nj().Sj(n,n.yh(),t)}function cn(n){var e;if(I(n.a,4)){if(e=qQ(n.a),e==null)throw T(new Dr(HHn+n.b+"'. "+KHn+(Ph(Fy),Fy.k)+Etn));return e}else return n.a}function Epe(n){var e;if(n==null)return null;if(e=qCe(jc(n,!0)),e==null)throw T(new VI("Invalid base64Binary value: '"+n+"'"));return e}function oe(n){var e;try{return e=n.i.Xb(n.e),n.mj(),n.g=n.e++,e}catch(t){throw t=jt(t),I(t,73)?(n.mj(),T(new ic)):T(t)}}function UF(n){var e;try{return e=n.c.ki(n.e),n.mj(),n.g=n.e++,e}catch(t){throw t=jt(t),I(t,73)?(n.mj(),T(new ic)):T(t)}}function a6(){a6=N,Trn=(Xe(),yhn),IR=Zfn,FUn=Tp,Crn=nd,BUn=(WT(),irn),NUn=ern,RUn=crn,LUn=nrn,xUn=(pF(),yrn),PR=OUn,Ern=DUn,nS=$Un}function LT(n){switch(DG(),this.c=new X,this.d=n,n.g){case 0:case 2:this.a=_W(qrn),this.b=Ft;break;case 3:case 1:this.a=qrn,this.b=Vt}}function U$n(n,e,t){var i,r;if(n.c)Zc(n.c,n.c.i+e),nu(n.c,n.c.j+t);else for(r=new E(n.b);r.a0&&(W(n.b,new MEn(e.a,t)),i=e.a.length,0i&&(e.a+=Iyn(F(Ls,Bf,25,-i,15,1))))}function W$n(n,e){var t,i,r;for(t=n.o,r=u(u(ct(n.r,e),21),84).Kc();r.Ob();)i=u(r.Pb(),111),i.e.a=M3e(i,t.a),i.e.b=t.b*K(Y(i.b.We(JA)))}function Tpe(n,e){var t,i,r,c;return r=n.k,t=K(Y(k(n,(G(),k0)))),c=e.k,i=K(Y(k(e,k0))),c!=(Qn(),Xt)?-1:r!=Xt?1:t==i?0:t=0?n.hh(e,t,i):(n.eh()&&(i=(r=n.Vg(),r>=0?n.Qg(i):n.eh().ih(n,-1-r,null,i))),n.Sg(e,t,i))}function XQ(n,e){switch(e){case 7:!n.e&&(n.e=new Fn(di,n,7,4)),de(n.e);return;case 8:!n.d&&(n.d=new Fn(di,n,8,5)),de(n.d);return}FQ(n,e)}function qo(n,e){var t;t=n.Zc(e);try{return t.Pb()}catch(i){throw i=jt(i),I(i,109)?T(new vr("Can't get element "+e)):T(i)}}function VQ(n,e){this.e=n,e=0&&(t.d=n.t);break;case 3:n.t>=0&&(t.a=n.t)}n.C&&(t.b=n.C.b,t.c=n.C.c)}function K2(){K2=N,$k=new Rj(NM,0),Dk=new Rj(lN,1),Fk=new Rj(aN,2),xk=new Rj(dN,3),$k.a=!1,Dk.a=!0,Fk.a=!1,xk.a=!0}function d6(){d6=N,Lk=new Bj(NM,0),YA=new Bj(lN,1),ZA=new Bj(aN,2),Nk=new Bj(dN,3),Lk.a=!1,YA.a=!0,ZA.a=!1,Nk.a=!0}function Ipe(n){var e;e=n.a;do e=u(ve(new re(ue(xr(e).a.Kc(),new Mn))),17).c.i,e.k==(Qn(),gi)&&n.b.Fc(e);while(e.k==(Qn(),gi));n.b=va(n.b)}function Ope(n){var e,t,i;for(i=n.c.a,n.p=(pe(i),new du(i)),t=new E(i);t.at.b)return!0}return!1}function WF(n,e){return mi(n)?!!ozn[e]:n.hm?!!n.hm[e]:G0(n)?!!szn[e]:q0(n)?!!uzn[e]:!1}function gr(n,e,t){return t==null?(!n.o&&(n.o=new Wu((Dc(),Ul),S0,n,0)),IT(n.o,e)):(!n.o&&(n.o=new Wu((Dc(),Ul),S0,n,0)),XT(n.o,e,t)),n}function xpe(n,e,t,i){var r,c;c=e.Xe((Xe(),_g))?u(e.We(_g),21):n.j,r=Cge(c),r!=(SM(),TR)&&(t&&!GQ(r)||nY(d9e(n,r,i),e))}function BT(n,e,t,i){var r,c,o;return c=On(n.Tg(),e),r=e-n.Ah(),r<0?(o=n.Yg(c),o>=0?n._g(o,t,!0):Yd(n,c,t)):u(c,66).Nj().Pj(n,n.yh(),r,t,i)}function Lpe(n,e,t,i){var r,c,o;t.mh(e)&&(er(),R$(e)?(r=u(t.ah(e),153),upe(n,r)):(c=(o=e,o?u(i,49).xh(o):null),c&&Bte(t.ah(e),c)))}function Npe(n){switch(n.g){case 1:return Hd(),Ok;case 3:return Hd(),Ik;case 2:return Hd(),AR;case 4:return Hd(),MR;default:return null}}function QQ(n){switch(typeof n){case EL:return m1(n);case UZ:return Gt(n);case X2:return qn(),n?1231:1237;default:return n==null?0:md(n)}}function Bpe(n,e,t){if(n.e)switch(n.b){case 1:d1e(n.c,e,t);break;case 0:b1e(n.c,e,t)}else xAn(n.c,e,t);n.a[e.p][t.p]=n.c.i,n.a[t.p][e.p]=n.c.e}function Y$n(n){var e,t;if(n==null)return null;for(t=F(vh,q,193,n.length,0,2),e=0;e=0)return r;if(n.Fk()){for(i=0;i=r)throw T(new V0(e,r));if(n.hi()&&(i=n.Xc(t),i>=0&&i!=e))throw T(new Hn(yk));return n.mi(e,t)}function JQ(n,e){if(this.a=u(pe(n),245),this.b=u(pe(e),245),n.vd(e)>0||n==(qI(),cR)||e==(HI(),uR))throw T(new Hn("Invalid range: "+OAn(n,e)))}function Z$n(n){var e,t;for(this.b=new X,this.c=n,this.a=!1,t=new E(n.a);t.a0),(e&-e)==e)return Gt(e*Fu(n,31)*4656612873077393e-25);do t=Fu(n,31),i=t%e;while(t-i+(e-1)<0);return Gt(i)}function m1(n){lEn();var e,t,i;return t=":"+n,i=XA[t],i!=null?Gt((_n(i),i)):(i=Xin[t],e=i==null?I8e(n):Gt((_n(i),i)),c1e(),XA[t]=e,e)}function eFn(n,e,t){le(t,"Compound graph preprocessor",1),n.a=new Od,s_n(n,e,null),pje(n,e),Z9e(n),H(e,(G(),dun),n.a),n.a=null,Eu(n.b),ce(t)}function Kpe(n,e,t){switch(t.g){case 1:n.a=e.a/2,n.b=0;break;case 2:n.a=e.a,n.b=e.b/2;break;case 3:n.a=e.a/2,n.b=e.b;break;case 4:n.a=0,n.b=e.b/2}}function Hpe(n){var e,t,i;for(i=u(ct(n.a,(Vw(),IS)),15).Kc();i.Ob();)t=u(i.Pb(),101),e=hJ(t),b3(n,t,e[0],(Kd(),w0),0),b3(n,t,e[1],g0,1)}function qpe(n){var e,t,i;for(i=u(ct(n.a,(Vw(),OS)),15).Kc();i.Ob();)t=u(i.Pb(),101),e=hJ(t),b3(n,t,e[0],(Kd(),w0),0),b3(n,t,e[1],g0,1)}function XF(n){switch(n.g){case 0:return null;case 1:return new eOn;case 2:return new oG;default:throw T(new Hn(lB+(n.f!=null?n.f:""+n.g)))}}function k7(n,e,t){var i,r;for(lwe(n,e-n.s,t-n.t),r=new E(n.n);r.a1&&(c=_pe(n,e)),c}function VF(n){var e;return n.f&&n.f.kh()&&(e=u(n.f,49),n.f=u(pl(n,e),82),n.f!=e&&n.Db&4&&!(n.Db&1)&&et(n,new wi(n,9,8,e,n.f))),n.f}function QF(n){var e;return n.i&&n.i.kh()&&(e=u(n.i,49),n.i=u(pl(n,e),82),n.i!=e&&n.Db&4&&!(n.Db&1)&&et(n,new wi(n,9,7,e,n.i))),n.i}function ir(n){var e;return n.b&&n.b.Db&64&&(e=n.b,n.b=u(pl(n,e),18),n.b!=e&&n.Db&4&&!(n.Db&1)&&et(n,new wi(n,9,21,e,n.b))),n.b}function KT(n,e){var t,i,r;n.d==null?(++n.e,++n.f):(i=e.Sh(),u8e(n,n.f+1),r=(i&nt)%n.d.length,t=n.d[r],!t&&(t=n.d[r]=n.uj()),t.Fc(e),++n.f)}function nJ(n,e,t){var i;return e.Kj()?!1:e.Zj()!=-2?(i=e.zj(),i==null?t==null:tt(i,t)):e.Hj()==n.e.Tg()&&t==null}function HT(){var n;is(16,J_n),n=UIn(16),this.b=F(oR,nk,317,n,0,1),this.c=F(oR,nk,317,n,0,1),this.a=null,this.e=null,this.i=0,this.f=n-1,this.g=0}function qh(n){vU.call(this),this.k=(Qn(),ti),this.j=(is(6,Pb),new Pc(6)),this.b=(is(2,Pb),new Pc(2)),this.d=new NI,this.f=new Zq,this.a=n}function zpe(n){var e,t;n.c.length<=1||(e=ZNn(n,(J(),ae)),Kxn(n,u(e.a,19).a,u(e.b,19).a),t=ZNn(n,Gn),Kxn(n,u(t.a,19).a,u(t.b,19).a))}function b6(){b6=N,zsn=new V9("SIMPLE",0),nK=new V9(PN,1),eK=new V9("LINEAR_SEGMENTS",2),Lm=new V9("BRANDES_KOEPF",3),Nm=new V9(EHn,4)}function eJ(n,e,t){p2(u(k(e,(nn(),Lt)),98))||(VX(n,e,k1(e,t)),VX(n,e,k1(e,(J(),ae))),VX(n,e,k1(e,Kn)),Pn(),bi(e.j,new i6n(n)))}function tFn(n,e,t,i){var r,c,o;for(r=u(ct(i?n.a:n.b,e),21),o=r.Kc();o.Ob();)if(c=u(o.Pb(),33),aM(n,t,c))return!0;return!1}function JF(n){var e,t;for(t=new ie(n);t.e!=t.i.gc();)if(e=u(oe(t),87),e.e||(!e.d&&(e.d=new Jt(ar,e,1)),e.d).i!=0)return!0;return!1}function YF(n){var e,t;for(t=new ie(n);t.e!=t.i.gc();)if(e=u(oe(t),87),e.e||(!e.d&&(e.d=new Jt(ar,e,1)),e.d).i!=0)return!0;return!1}function Upe(n){var e,t,i;for(e=0,i=new E(n.c.a);i.a102?-1:n<=57?n-48:n<65?-1:n<=70?n-65+10:n<97?-1:n-97+10}function ex(n,e){if(n==null)throw T(new c2("null key in entry: null="+e));if(e==null)throw T(new c2("null value in entry: "+n+"=null"))}function Wpe(n,e){for(var t,i;n.Ob();)if(!e.Ob()||(t=n.Pb(),i=e.Pb(),!(B(t)===B(i)||t!=null&&tt(t,i))))return!1;return!e.Ob()}function rFn(n,e){var t;return t=A(M(ji,1),pr,25,15,[kF(n.a[0],e),kF(n.a[1],e),kF(n.a[2],e)]),n.d&&(t[0]=j.Math.max(t[0],t[2]),t[2]=t[0]),t}function cFn(n,e){var t;return t=A(M(ji,1),pr,25,15,[pT(n.a[0],e),pT(n.a[1],e),pT(n.a[2],e)]),n.d&&(t[0]=j.Math.max(t[0],t[2]),t[2]=t[0]),t}function Pa(){Pa=N,f_=new X9("GREEDY",0),Gcn=new X9(fHn,1),h_=new X9(PN,2),Em=new X9("MODEL_ORDER",3),jm=new X9("GREEDY_MODEL_ORDER",4)}function uFn(n,e){var t,i,r;for(n.b[e.g]=1,i=_e(e.d,0);i.b!=i.d.c;)t=u(Re(i),188),r=t.c,n.b[r.g]==1?Ke(n.a,t):n.b[r.g]==2?n.b[r.g]=1:uFn(n,r)}function Xpe(n,e){var t,i,r;for(r=new Pc(e.gc()),i=e.Kc();i.Ob();)t=u(i.Pb(),286),t.c==t.f?l4(n,t,t.c):U5e(n,t)||(r.c[r.c.length]=t);return r}function Vpe(n,e,t){var i,r,c,o,f;for(f=n.r+e,n.r+=e,n.d+=t,i=t/n.n.c.length,r=0,o=new E(n.n);o.ac&&Mt(e,c,null),e}function f3e(n,e){var t,i;if(i=n.gc(),e==null){for(t=0;t0&&(h+=r),l[a]=o,o+=f*(h+i)}function bFn(n){var e,t,i;for(i=n.f,n.n=F(ji,pr,25,i,15,1),n.d=F(ji,pr,25,i,15,1),e=0;e0?n.c:0),++r;n.b=i,n.d=c}function g3e(n,e){var t,i,r,c,o;for(i=0,r=0,t=0,o=new E(e);o.a0?n.g:0),++t;n.c=r,n.d=i}function mFn(n,e){var t;return t=A(M(ji,1),pr,25,15,[ZQ(n,(_o(),Zr),e),ZQ(n,Fc,e),ZQ(n,nc,e)]),n.f&&(t[0]=j.Math.max(t[0],t[2]),t[2]=t[0]),t}function p3e(n,e,t){var i;try{wM(n,e+n.j,t+n.k,!1,!0)}catch(r){throw r=jt(r),I(r,73)?(i=r,T(new vr(i.g+RM+e+Ji+t+")."))):T(r)}}function v3e(n,e,t){var i;try{wM(n,e+n.j,t+n.k,!0,!1)}catch(r){throw r=jt(r),I(r,73)?(i=r,T(new vr(i.g+RM+e+Ji+t+")."))):T(r)}}function kFn(n){var e;li(n,(nn(),y0))&&(e=u(k(n,y0),21),e.Hc((jb(),So))?(e.Mc(So),e.Fc(Po)):e.Hc(Po)&&(e.Mc(Po),e.Fc(So)))}function yFn(n){var e;li(n,(nn(),y0))&&(e=u(k(n,y0),21),e.Hc((jb(),Oo))?(e.Mc(Oo),e.Fc(eo)):e.Hc(eo)&&(e.Mc(eo),e.Fc(Oo)))}function m3e(n,e,t){le(t,"Self-Loop ordering",1),Rt(Xc(gt(gt(qr(new $n(null,new xn(e.b,16)),new P0n),new I0n),new O0n),new D0n),new O5n(n)),ce(t)}function j7(n,e,t,i){var r,c;for(r=e;r0&&(r.b+=e),r}function zT(n,e){var t,i,r;for(r=new Li,i=n.Kc();i.Ob();)t=u(i.Pb(),37),M6(t,0,r.b),r.b+=t.f.b+e,r.a=j.Math.max(r.a,t.f.a);return r.a>0&&(r.a+=e),r}function EFn(n){var e,t,i;for(i=nt,t=new E(n.a);t.a>16==6?n.Cb.ih(n,5,Vo,e):(i=ir(u(On((t=u(Rn(n,16),26),t||n.zh()),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function C3e(n){k3();var e=n.e;if(e&&e.stack){var t=e.stack,i=e+` `;return t.substring(0,i.length)==i&&(t=t.substring(i.length)),t.split(` diff --git a/docs/assets/ganttDiagram-55b9c28c-831d8c90.js b/docs/assets/ganttDiagram-55b9c28c-f3faab3a.js similarity index 99% rename from docs/assets/ganttDiagram-55b9c28c-831d8c90.js rename to docs/assets/ganttDiagram-55b9c28c-f3faab3a.js index 9880815f..a754d703 100644 --- a/docs/assets/ganttDiagram-55b9c28c-831d8c90.js +++ b/docs/assets/ganttDiagram-55b9c28c-f3faab3a.js @@ -1,4 +1,4 @@ -import{I as ze,J as Ne,R as Ve,K as Pe,L as yn,M as Gt,N as kn,O as me,P as de,Q as nt,c as xt,s as pn,g as Tn,z as vn,A as xn,b as bn,a as wn,m as Cn,B as Dn,n as Mn,l as ae,h as Ht,i as Sn,j as _n,x as Un}from"./index-b4f98efc.js";import{b as Yn,t as De,c as Fn,a as Ln,l as En}from"./linear-21c501a1.js";import{i as An}from"./init-77b53fdd.js";function In(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n=i)&&(n=i)}return n}function Wn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function On(t){return t}var Nt=1,Qt=2,oe=3,zt=4,Me=1e-6;function Hn(t){return"translate("+t+",0)"}function zn(t){return"translate(0,"+t+")"}function Nn(t){return e=>+t(e)}function Vn(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Pn(){return!this.__axis}function Re(t,e){var n=[],r=null,i=null,s=6,o=6,y=3,M=typeof window<"u"&&window.devicePixelRatio>1?0:.5,p=t===Nt||t===zt?-1:1,D=t===zt||t===Qt?"x":"y",_=t===Nt||t===oe?Hn:zn;function w(b){var P=r??(e.ticks?e.ticks.apply(e,n):e.domain()),g=i??(e.tickFormat?e.tickFormat.apply(e,n):On),Y=Math.max(s,0)+y,H=e.range(),O=+H[0]+M,N=+H[H.length-1]+M,V=(e.bandwidth?Vn:Nn)(e.copy(),M),j=b.selection?b.selection():b,x=j.selectAll(".domain").data([null]),E=j.selectAll(".tick").data(P,e).order(),T=E.exit(),l=E.enter().append("g").attr("class","tick"),f=E.select("line"),m=E.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),E=E.merge(l),f=f.merge(l.append("line").attr("stroke","currentColor").attr(D+"2",p*s)),m=m.merge(l.append("text").attr("fill","currentColor").attr(D,p*Y).attr("dy",t===Nt?"0em":t===oe?"0.71em":"0.32em")),b!==j&&(x=x.transition(b),E=E.transition(b),f=f.transition(b),m=m.transition(b),T=T.transition(b).attr("opacity",Me).attr("transform",function(c){return isFinite(c=V(c))?_(c+M):this.getAttribute("transform")}),l.attr("opacity",Me).attr("transform",function(c){var v=this.parentNode.__axis;return _((v&&isFinite(v=v(c))?v:V(c))+M)})),T.remove(),x.attr("d",t===zt||t===Qt?o?"M"+p*o+","+O+"H"+M+"V"+N+"H"+p*o:"M"+M+","+O+"V"+N:o?"M"+O+","+p*o+"V"+M+"H"+N+"V"+p*o:"M"+O+","+M+"H"+N),E.attr("opacity",1).attr("transform",function(c){return _(V(c)+M)}),f.attr(D+"2",p*s),m.attr(D,p*Y).text(g),j.filter(Pn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Qt?"start":t===zt?"end":"middle"),j.each(function(){this.__axis=V})}return w.scale=function(b){return arguments.length?(e=b,w):e},w.ticks=function(){return n=Array.from(arguments),w},w.tickArguments=function(b){return arguments.length?(n=b==null?[]:Array.from(b),w):n.slice()},w.tickValues=function(b){return arguments.length?(r=b==null?null:Array.from(b),w):r&&r.slice()},w.tickFormat=function(b){return arguments.length?(i=b,w):i},w.tickSize=function(b){return arguments.length?(s=o=+b,w):s},w.tickSizeInner=function(b){return arguments.length?(s=+b,w):s},w.tickSizeOuter=function(b){return arguments.length?(o=+b,w):o},w.tickPadding=function(b){return arguments.length?(y=+b,w):y},w.offset=function(b){return arguments.length?(M=+b,w):M},w}function Rn(t){return Re(Nt,t)}function Bn(t){return Re(oe,t)}const Zn=Math.PI/180,Xn=180/Math.PI,Rt=18,Be=.96422,Ze=1,Xe=.82521,qe=4/29,bt=6/29,je=3*bt*bt,qn=bt*bt*bt;function Ge(t){if(t instanceof ot)return new ot(t.l,t.a,t.b,t.opacity);if(t instanceof lt)return Qe(t);t instanceof Ve||(t=yn(t));var e=te(t.r),n=te(t.g),r=te(t.b),i=Jt((.2225045*e+.7168786*n+.0606169*r)/Ze),s,o;return e===n&&n===r?s=o=i:(s=Jt((.4360747*e+.3850649*n+.1430804*r)/Be),o=Jt((.0139322*e+.0971045*n+.7141733*r)/Xe)),new ot(116*i-16,500*(s-i),200*(i-o),t.opacity)}function jn(t,e,n,r){return arguments.length===1?Ge(t):new ot(t,e,n,r??1)}function ot(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}ze(ot,jn,Ne(Pe,{brighter(t){return new ot(this.l+Rt*(t??1),this.a,this.b,this.opacity)},darker(t){return new ot(this.l-Rt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=Be*Kt(e),t=Ze*Kt(t),n=Xe*Kt(n),new Ve($t(3.1338561*e-1.6168667*t-.4906146*n),$t(-.9787684*e+1.9161415*t+.033454*n),$t(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function Jt(t){return t>qn?Math.pow(t,1/3):t/je+qe}function Kt(t){return t>bt?t*t*t:je*(t-qe)}function $t(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function te(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Gn(t){if(t instanceof lt)return new lt(t.h,t.c,t.l,t.opacity);if(t instanceof ot||(t=Ge(t)),t.a===0&&t.b===0)return new lt(NaN,0(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const o=i(s),y=i.ceil(s);return s-o(e(s=new Date(+s),o==null?1:Math.floor(o)),s),i.range=(s,o,y)=>{const M=[];if(s=i.ceil(s),y=y==null?1:Math.floor(y),!(s0))return M;let p;do M.push(p=new Date(+s)),e(s,y),t(s);while(ptt(o=>{if(o>=o)for(;t(o),!s(o);)o.setTime(o-1)},(o,y)=>{if(o>=o)if(y<0)for(;++y<=0;)for(;e(o,-1),!s(o););else for(;--y>=0;)for(;e(o,1),!s(o););}),n&&(i.count=(s,o)=>(ee.setTime(+s),ne.setTime(+o),t(ee),t(ne),Math.floor(n(ee,ne))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?o=>r(o)%s===0:o=>i.count(0,o)%s===0):i)),i}const Bt=tt(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Bt.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?tt(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Bt);Bt.range;const ut=1e3,it=ut*60,ft=it*60,ht=ft*24,ge=ht*7,Se=ht*30,re=ht*365,vt=tt(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*ut)},(t,e)=>(e-t)/ut,t=>t.getUTCSeconds());vt.range;const Lt=tt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ut)},(t,e)=>{t.setTime(+t+e*it)},(t,e)=>(e-t)/it,t=>t.getMinutes());Lt.range;const $n=tt(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*it)},(t,e)=>(e-t)/it,t=>t.getUTCMinutes());$n.range;const Et=tt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ut-t.getMinutes()*it)},(t,e)=>{t.setTime(+t+e*ft)},(t,e)=>(e-t)/ft,t=>t.getHours());Et.range;const tr=tt(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*ft)},(t,e)=>(e-t)/ft,t=>t.getUTCHours());tr.range;const gt=tt(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*it)/ht,t=>t.getDate()-1);gt.range;const ye=tt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ht,t=>t.getUTCDate()-1);ye.range;const er=tt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ht,t=>Math.floor(t/ht));er.range;function kt(t){return tt(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*it)/ge)}const Ct=kt(0),Zt=kt(1),nr=kt(2),rr=kt(3),Dt=kt(4),ir=kt(5),sr=kt(6);Ct.range;Zt.range;nr.range;rr.range;Dt.range;ir.range;sr.range;function pt(t){return tt(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/ge)}const Je=pt(0),Xt=pt(1),ar=pt(2),or=pt(3),Mt=pt(4),cr=pt(5),lr=pt(6);Je.range;Xt.range;ar.range;or.range;Mt.range;cr.range;lr.range;const At=tt(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());At.range;const ur=tt(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());ur.range;const mt=tt(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());mt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:tt(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});mt.range;const yt=tt(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());yt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:tt(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});yt.range;function fr(t,e,n,r,i,s){const o=[[vt,1,ut],[vt,5,5*ut],[vt,15,15*ut],[vt,30,30*ut],[s,1,it],[s,5,5*it],[s,15,15*it],[s,30,30*it],[i,1,ft],[i,3,3*ft],[i,6,6*ft],[i,12,12*ft],[r,1,ht],[r,2,2*ht],[n,1,ge],[e,1,Se],[e,3,3*Se],[t,1,re]];function y(p,D,_){const w=DY).right(o,w);if(b===o.length)return t.every(De(p/re,D/re,_));if(b===0)return Bt.every(Math.max(De(p,D,_),1));const[P,g]=o[w/o[b-1][2]53)return null;"w"in u||(u.w=1),"Z"in u?(I=se(Ut(u.y,0,1)),Q=I.getUTCDay(),I=Q>4||Q===0?Xt.ceil(I):Xt(I),I=ye.offset(I,(u.V-1)*7),u.y=I.getUTCFullYear(),u.m=I.getUTCMonth(),u.d=I.getUTCDate()+(u.w+6)%7):(I=ie(Ut(u.y,0,1)),Q=I.getDay(),I=Q>4||Q===0?Zt.ceil(I):Zt(I),I=gt.offset(I,(u.V-1)*7),u.y=I.getFullYear(),u.m=I.getMonth(),u.d=I.getDate()+(u.w+6)%7)}else("W"in u||"U"in u)&&("w"in u||(u.w="u"in u?u.u%7:"W"in u?1:0),Q="Z"in u?se(Ut(u.y,0,1)).getUTCDay():ie(Ut(u.y,0,1)).getDay(),u.m=0,u.d="W"in u?(u.w+6)%7+u.W*7-(Q+5)%7:u.w+u.U*7-(Q+6)%7);return"Z"in u?(u.H+=u.Z/100|0,u.M+=u.Z%100,se(u)):ie(u)}}function T(k,C,L,u){for(var X=0,I=C.length,Q=L.length,K,st;X=Q)return-1;if(K=C.charCodeAt(X++),K===37){if(K=C.charAt(X++),st=j[K in _e?C.charAt(X++):K],!st||(u=st(k,L,u))<0)return-1}else if(K!=L.charCodeAt(u++))return-1}return u}function l(k,C,L){var u=p.exec(C.slice(L));return u?(k.p=D.get(u[0].toLowerCase()),L+u[0].length):-1}function f(k,C,L){var u=b.exec(C.slice(L));return u?(k.w=P.get(u[0].toLowerCase()),L+u[0].length):-1}function m(k,C,L){var u=_.exec(C.slice(L));return u?(k.w=w.get(u[0].toLowerCase()),L+u[0].length):-1}function c(k,C,L){var u=H.exec(C.slice(L));return u?(k.m=O.get(u[0].toLowerCase()),L+u[0].length):-1}function v(k,C,L){var u=g.exec(C.slice(L));return u?(k.m=Y.get(u[0].toLowerCase()),L+u[0].length):-1}function a(k,C,L){return T(k,e,C,L)}function A(k,C,L){return T(k,n,C,L)}function h(k,C,L){return T(k,r,C,L)}function B(k){return o[k.getDay()]}function Z(k){return s[k.getDay()]}function J(k){return M[k.getMonth()]}function d(k){return y[k.getMonth()]}function S(k){return i[+(k.getHours()>=12)]}function U(k){return 1+~~(k.getMonth()/3)}function F(k){return o[k.getUTCDay()]}function W(k){return s[k.getUTCDay()]}function G(k){return M[k.getUTCMonth()]}function R(k){return y[k.getUTCMonth()]}function dt(k){return i[+(k.getUTCHours()>=12)]}function q(k){return 1+~~(k.getUTCMonth()/3)}return{format:function(k){var C=x(k+="",N);return C.toString=function(){return k},C},parse:function(k){var C=E(k+="",!1);return C.toString=function(){return k},C},utcFormat:function(k){var C=x(k+="",V);return C.toString=function(){return k},C},utcParse:function(k){var C=E(k+="",!0);return C.toString=function(){return k},C}}}var _e={"-":"",_:" ",0:"0"},et=/^\s*\d+/,gr=/^%/,yr=/[\\^$*+?|[\]().{}]/g;function z(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s[e.toLowerCase(),n]))}function pr(t,e,n){var r=et.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Tr(t,e,n){var r=et.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function vr(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function xr(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function br(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Ue(t,e,n){var r=et.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ye(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function wr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Cr(t,e,n){var r=et.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Dr(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Fe(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Mr(t,e,n){var r=et.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Le(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Sr(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function _r(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Ur(t,e,n){var r=et.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Yr(t,e,n){var r=et.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Fr(t,e,n){var r=gr.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Lr(t,e,n){var r=et.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Er(t,e,n){var r=et.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Ee(t,e){return z(t.getDate(),e,2)}function Ar(t,e){return z(t.getHours(),e,2)}function Ir(t,e){return z(t.getHours()%12||12,e,2)}function Wr(t,e){return z(1+gt.count(mt(t),t),e,3)}function Ke(t,e){return z(t.getMilliseconds(),e,3)}function Or(t,e){return Ke(t,e)+"000"}function Hr(t,e){return z(t.getMonth()+1,e,2)}function zr(t,e){return z(t.getMinutes(),e,2)}function Nr(t,e){return z(t.getSeconds(),e,2)}function Vr(t){var e=t.getDay();return e===0?7:e}function Pr(t,e){return z(Ct.count(mt(t)-1,t),e,2)}function $e(t){var e=t.getDay();return e>=4||e===0?Dt(t):Dt.ceil(t)}function Rr(t,e){return t=$e(t),z(Dt.count(mt(t),t)+(mt(t).getDay()===4),e,2)}function Br(t){return t.getDay()}function Zr(t,e){return z(Zt.count(mt(t)-1,t),e,2)}function Xr(t,e){return z(t.getFullYear()%100,e,2)}function qr(t,e){return t=$e(t),z(t.getFullYear()%100,e,2)}function jr(t,e){return z(t.getFullYear()%1e4,e,4)}function Gr(t,e){var n=t.getDay();return t=n>=4||n===0?Dt(t):Dt.ceil(t),z(t.getFullYear()%1e4,e,4)}function Qr(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+z(e/60|0,"0",2)+z(e%60,"0",2)}function Ae(t,e){return z(t.getUTCDate(),e,2)}function Jr(t,e){return z(t.getUTCHours(),e,2)}function Kr(t,e){return z(t.getUTCHours()%12||12,e,2)}function $r(t,e){return z(1+ye.count(yt(t),t),e,3)}function tn(t,e){return z(t.getUTCMilliseconds(),e,3)}function ti(t,e){return tn(t,e)+"000"}function ei(t,e){return z(t.getUTCMonth()+1,e,2)}function ni(t,e){return z(t.getUTCMinutes(),e,2)}function ri(t,e){return z(t.getUTCSeconds(),e,2)}function ii(t){var e=t.getUTCDay();return e===0?7:e}function si(t,e){return z(Je.count(yt(t)-1,t),e,2)}function en(t){var e=t.getUTCDay();return e>=4||e===0?Mt(t):Mt.ceil(t)}function ai(t,e){return t=en(t),z(Mt.count(yt(t),t)+(yt(t).getUTCDay()===4),e,2)}function oi(t){return t.getUTCDay()}function ci(t,e){return z(Xt.count(yt(t)-1,t),e,2)}function li(t,e){return z(t.getUTCFullYear()%100,e,2)}function ui(t,e){return t=en(t),z(t.getUTCFullYear()%100,e,2)}function fi(t,e){return z(t.getUTCFullYear()%1e4,e,4)}function hi(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Mt(t):Mt.ceil(t),z(t.getUTCFullYear()%1e4,e,4)}function mi(){return"+0000"}function Ie(){return"%"}function We(t){return+t}function Oe(t){return Math.floor(+t/1e3)}var Tt,qt;di({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function di(t){return Tt=dr(t),qt=Tt.format,Tt.parse,Tt.utcFormat,Tt.utcParse,Tt}function gi(t){return new Date(t)}function yi(t){return t instanceof Date?+t:+new Date(+t)}function nn(t,e,n,r,i,s,o,y,M,p){var D=Fn(),_=D.invert,w=D.domain,b=p(".%L"),P=p(":%S"),g=p("%I:%M"),Y=p("%I %p"),H=p("%a %d"),O=p("%b %d"),N=p("%B"),V=p("%Y");function j(x){return(M(x)4&&(b+=7),w.add(b,n));return P.diff(g,"week")+1},y.isoWeekday=function(p){return this.$utils().u(p)?this.day()||7:this.day(this.day()%7?p:p-7)};var M=y.startOf;y.startOf=function(p,D){var _=this.$utils(),w=!!_.u(D)||D;return _.p(p)==="isoweek"?w?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):M.bind(this)(p,D)}}})})(rn);var pi=rn.exports;const Ti=de(pi);var sn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(me,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d\d/,s=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,y={},M=function(g){return(g=+g)+(g>68?1900:2e3)},p=function(g){return function(Y){this[g]=+Y}},D=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(Y){if(!Y||Y==="Z")return 0;var H=Y.match(/([+-]|\d\d)/g),O=60*H[1]+(+H[2]||0);return O===0?0:H[0]==="+"?-O:O}(g)}],_=function(g){var Y=y[g];return Y&&(Y.indexOf?Y:Y.s.concat(Y.f))},w=function(g,Y){var H,O=y.meridiem;if(O){for(var N=1;N<=24;N+=1)if(g.indexOf(O(N,0,Y))>-1){H=N>12;break}}else H=g===(Y?"pm":"PM");return H},b={A:[o,function(g){this.afternoon=w(g,!1)}],a:[o,function(g){this.afternoon=w(g,!0)}],S:[/\d/,function(g){this.milliseconds=100*+g}],SS:[i,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[s,p("seconds")],ss:[s,p("seconds")],m:[s,p("minutes")],mm:[s,p("minutes")],H:[s,p("hours")],h:[s,p("hours")],HH:[s,p("hours")],hh:[s,p("hours")],D:[s,p("day")],DD:[i,p("day")],Do:[o,function(g){var Y=y.ordinal,H=g.match(/\d+/);if(this.day=H[0],Y)for(var O=1;O<=31;O+=1)Y(O).replace(/\[|\]/g,"")===g&&(this.day=O)}],M:[s,p("month")],MM:[i,p("month")],MMM:[o,function(g){var Y=_("months"),H=(_("monthsShort")||Y.map(function(O){return O.slice(0,3)})).indexOf(g)+1;if(H<1)throw new Error;this.month=H%12||H}],MMMM:[o,function(g){var Y=_("months").indexOf(g)+1;if(Y<1)throw new Error;this.month=Y%12||Y}],Y:[/[+-]?\d+/,p("year")],YY:[i,function(g){this.year=M(g)}],YYYY:[/\d{4}/,p("year")],Z:D,ZZ:D};function P(g){var Y,H;Y=g,H=y&&y.formats;for(var O=(g=Y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(l,f,m){var c=m&&m.toUpperCase();return f||H[m]||n[m]||H[c].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,a,A){return a||A.slice(1)})})).match(r),N=O.length,V=0;V-1)return new Date((B==="X"?1e3:1)*h);var J=P(B)(h),d=J.year,S=J.month,U=J.day,F=J.hours,W=J.minutes,G=J.seconds,R=J.milliseconds,dt=J.zone,q=new Date,k=U||(d||S?1:q.getDate()),C=d||q.getFullYear(),L=0;d&&!S||(L=S>0?S-1:q.getMonth());var u=F||0,X=W||0,I=G||0,Q=R||0;return dt?new Date(Date.UTC(C,L,k,u,X,I,Q+60*dt.offset*1e3)):Z?new Date(Date.UTC(C,L,k,u,X,I,Q)):new Date(C,L,k,u,X,I,Q)}catch{return new Date("")}}(j,T,x),this.init(),c&&c!==!0&&(this.$L=this.locale(c).$L),m&&j!=this.format(T)&&(this.$d=new Date("")),y={}}else if(T instanceof Array)for(var v=T.length,a=1;a<=v;a+=1){E[1]=T[a-1];var A=H.apply(this,E);if(A.isValid()){this.$d=A.$d,this.$L=A.$L,this.init();break}a===v&&(this.$d=new Date(""))}else N.call(this,V)}}})})(sn);var vi=sn.exports;const xi=de(vi);var an={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(me,function(){return function(n,r){var i=r.prototype,s=i.format;i.format=function(o){var y=this,M=this.$locale();if(!this.isValid())return s.bind(this)(o);var p=this.$utils(),D=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(_){switch(_){case"Q":return Math.ceil((y.$M+1)/3);case"Do":return M.ordinal(y.$D);case"gggg":return y.weekYear();case"GGGG":return y.isoWeekYear();case"wo":return M.ordinal(y.week(),"W");case"w":case"ww":return p.s(y.week(),_==="w"?1:2,"0");case"W":case"WW":return p.s(y.isoWeek(),_==="W"?1:2,"0");case"k":case"kk":return p.s(String(y.$H===0?24:y.$H),_==="k"?1:2,"0");case"X":return Math.floor(y.$d.getTime()/1e3);case"x":return y.$d.getTime();case"z":return"["+y.offsetName()+"]";case"zzz":return"["+y.offsetName("long")+"]";default:return _}});return s.bind(this)(D)}}})})(an);var bi=an.exports;const wi=de(bi);var le=function(){var t=function(T,l,f,m){for(f=f||{},m=T.length;m--;f[T[m]]=l);return f},e=[1,3],n=[1,5],r=[7,9,11,12,13,14,15,16,17,18,19,20,21,23,25,26,28,35,40],i=[1,15],s=[1,16],o=[1,17],y=[1,18],M=[1,19],p=[1,20],D=[1,21],_=[1,22],w=[1,23],b=[1,24],P=[1,25],g=[1,26],Y=[1,27],H=[1,29],O=[1,31],N=[1,34],V=[5,7,9,11,12,13,14,15,16,17,18,19,20,21,23,25,26,28,35,40],j={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,gantt:5,document:6,EOF:7,line:8,SPACE:9,statement:10,NL:11,dateFormat:12,inclusiveEndDates:13,topAxis:14,axisFormat:15,tickInterval:16,excludes:17,includes:18,todayMarker:19,title:20,acc_title:21,acc_title_value:22,acc_descr:23,acc_descr_value:24,acc_descr_multiline_value:25,section:26,clickStatement:27,taskTxt:28,taskData:29,openDirective:30,typeDirective:31,closeDirective:32,":":33,argDirective:34,click:35,callbackname:36,callbackargs:37,href:38,clickStatementDebug:39,open_directive:40,type_directive:41,arg_directive:42,close_directive:43,$accept:0,$end:1},terminals_:{2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",12:"dateFormat",13:"inclusiveEndDates",14:"topAxis",15:"axisFormat",16:"tickInterval",17:"excludes",18:"includes",19:"todayMarker",20:"title",21:"acc_title",22:"acc_title_value",23:"acc_descr",24:"acc_descr_value",25:"acc_descr_multiline_value",26:"section",28:"taskTxt",29:"taskData",33:":",35:"click",36:"callbackname",37:"callbackargs",38:"href",40:"open_directive",41:"type_directive",42:"arg_directive",43:"close_directive"},productions_:[0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[27,2],[27,3],[27,3],[27,4],[27,3],[27,4],[27,2],[39,2],[39,3],[39,3],[39,4],[39,3],[39,4],[39,2],[30,1],[31,1],[34,1],[32,1]],performAction:function(l,f,m,c,v,a,A){var h=a.length-1;switch(v){case 2:return a[h-1];case 3:this.$=[];break;case 4:a[h-1].push(a[h]),this.$=a[h-1];break;case 5:case 6:this.$=a[h];break;case 7:case 8:this.$=[];break;case 9:c.setDateFormat(a[h].substr(11)),this.$=a[h].substr(11);break;case 10:c.enableInclusiveEndDates(),this.$=a[h].substr(18);break;case 11:c.TopAxis(),this.$=a[h].substr(8);break;case 12:c.setAxisFormat(a[h].substr(11)),this.$=a[h].substr(11);break;case 13:c.setTickInterval(a[h].substr(13)),this.$=a[h].substr(13);break;case 14:c.setExcludes(a[h].substr(9)),this.$=a[h].substr(9);break;case 15:c.setIncludes(a[h].substr(9)),this.$=a[h].substr(9);break;case 16:c.setTodayMarker(a[h].substr(12)),this.$=a[h].substr(12);break;case 17:c.setDiagramTitle(a[h].substr(6)),this.$=a[h].substr(6);break;case 18:this.$=a[h].trim(),c.setAccTitle(this.$);break;case 19:case 20:this.$=a[h].trim(),c.setAccDescription(this.$);break;case 21:c.addSection(a[h].substr(8)),this.$=a[h].substr(8);break;case 23:c.addTask(a[h-1],a[h]),this.$="task";break;case 27:this.$=a[h-1],c.setClickEvent(a[h-1],a[h],null);break;case 28:this.$=a[h-2],c.setClickEvent(a[h-2],a[h-1],a[h]);break;case 29:this.$=a[h-2],c.setClickEvent(a[h-2],a[h-1],null),c.setLink(a[h-2],a[h]);break;case 30:this.$=a[h-3],c.setClickEvent(a[h-3],a[h-2],a[h-1]),c.setLink(a[h-3],a[h]);break;case 31:this.$=a[h-2],c.setClickEvent(a[h-2],a[h],null),c.setLink(a[h-2],a[h-1]);break;case 32:this.$=a[h-3],c.setClickEvent(a[h-3],a[h-1],a[h]),c.setLink(a[h-3],a[h-2]);break;case 33:this.$=a[h-1],c.setLink(a[h-1],a[h]);break;case 34:case 40:this.$=a[h-1]+" "+a[h];break;case 35:case 36:case 38:this.$=a[h-2]+" "+a[h-1]+" "+a[h];break;case 37:case 39:this.$=a[h-3]+" "+a[h-2]+" "+a[h-1]+" "+a[h];break;case 41:c.parseDirective("%%{","open_directive");break;case 42:c.parseDirective(a[h],"type_directive");break;case 43:a[h]=a[h].trim().replace(/'/g,'"'),c.parseDirective(a[h],"arg_directive");break;case 44:c.parseDirective("}%%","close_directive","gantt");break}},table:[{3:1,4:2,5:e,30:4,40:n},{1:[3]},{3:6,4:2,5:e,30:4,40:n},t(r,[2,3],{6:7}),{31:8,41:[1,9]},{41:[2,41]},{1:[2,1]},{4:30,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:i,13:s,14:o,15:y,16:M,17:p,18:D,19:_,20:w,21:b,23:P,25:g,26:Y,27:28,28:H,30:4,35:O,40:n},{32:32,33:[1,33],43:N},t([33,43],[2,42]),t(r,[2,8],{1:[2,2]}),t(r,[2,4]),{4:30,10:35,12:i,13:s,14:o,15:y,16:M,17:p,18:D,19:_,20:w,21:b,23:P,25:g,26:Y,27:28,28:H,30:4,35:O,40:n},t(r,[2,6]),t(r,[2,7]),t(r,[2,9]),t(r,[2,10]),t(r,[2,11]),t(r,[2,12]),t(r,[2,13]),t(r,[2,14]),t(r,[2,15]),t(r,[2,16]),t(r,[2,17]),{22:[1,36]},{24:[1,37]},t(r,[2,20]),t(r,[2,21]),t(r,[2,22]),{29:[1,38]},t(r,[2,24]),{36:[1,39],38:[1,40]},{11:[1,41]},{34:42,42:[1,43]},{11:[2,44]},t(r,[2,5]),t(r,[2,18]),t(r,[2,19]),t(r,[2,23]),t(r,[2,27],{37:[1,44],38:[1,45]}),t(r,[2,33],{36:[1,46]}),t(V,[2,25]),{32:47,43:N},{43:[2,43]},t(r,[2,28],{38:[1,48]}),t(r,[2,29]),t(r,[2,31],{37:[1,49]}),{11:[1,50]},t(r,[2,30]),t(r,[2,32]),t(V,[2,26])],defaultActions:{5:[2,41],6:[2,1],34:[2,44],43:[2,43]},parseError:function(l,f){if(f.recoverable)this.trace(l);else{var m=new Error(l);throw m.hash=f,m}},parse:function(l){var f=this,m=[0],c=[],v=[null],a=[],A=this.table,h="",B=0,Z=0,J=2,d=1,S=a.slice.call(arguments,1),U=Object.create(this.lexer),F={yy:{}};for(var W in this.yy)Object.prototype.hasOwnProperty.call(this.yy,W)&&(F.yy[W]=this.yy[W]);U.setInput(l,F.yy),F.yy.lexer=U,F.yy.parser=this,typeof U.yylloc>"u"&&(U.yylloc={});var G=U.yylloc;a.push(G);var R=U.options&&U.options.ranges;typeof F.yy.parseError=="function"?this.parseError=F.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function dt(){var rt;return rt=c.pop()||U.lex()||d,typeof rt!="number"&&(rt instanceof Array&&(c=rt,rt=c.pop()),rt=f.symbols_[rt]||rt),rt}for(var q,k,C,L,u={},X,I,Q,K;;){if(k=m[m.length-1],this.defaultActions[k]?C=this.defaultActions[k]:((q===null||typeof q>"u")&&(q=dt()),C=A[k]&&A[k][q]),typeof C>"u"||!C.length||!C[0]){var st="";K=[];for(X in A[k])this.terminals_[X]&&X>J&&K.push("'"+this.terminals_[X]+"'");U.showPosition?st="Parse error on line "+(B+1)+`: +import{I as ze,J as Ne,R as Ve,K as Pe,L as yn,M as Gt,N as kn,O as me,P as de,Q as nt,c as xt,s as pn,g as Tn,z as vn,A as xn,b as bn,a as wn,m as Cn,B as Dn,n as Mn,l as ae,h as Ht,i as Sn,j as _n,x as Un}from"./index-0e08498d.js";import{b as Yn,t as De,c as Fn,a as Ln,l as En}from"./linear-fb1e7037.js";import{i as An}from"./init-77b53fdd.js";function In(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n=i)&&(n=i)}return n}function Wn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function On(t){return t}var Nt=1,Qt=2,oe=3,zt=4,Me=1e-6;function Hn(t){return"translate("+t+",0)"}function zn(t){return"translate(0,"+t+")"}function Nn(t){return e=>+t(e)}function Vn(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Pn(){return!this.__axis}function Re(t,e){var n=[],r=null,i=null,s=6,o=6,y=3,M=typeof window<"u"&&window.devicePixelRatio>1?0:.5,p=t===Nt||t===zt?-1:1,D=t===zt||t===Qt?"x":"y",_=t===Nt||t===oe?Hn:zn;function w(b){var P=r??(e.ticks?e.ticks.apply(e,n):e.domain()),g=i??(e.tickFormat?e.tickFormat.apply(e,n):On),Y=Math.max(s,0)+y,H=e.range(),O=+H[0]+M,N=+H[H.length-1]+M,V=(e.bandwidth?Vn:Nn)(e.copy(),M),j=b.selection?b.selection():b,x=j.selectAll(".domain").data([null]),E=j.selectAll(".tick").data(P,e).order(),T=E.exit(),l=E.enter().append("g").attr("class","tick"),f=E.select("line"),m=E.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),E=E.merge(l),f=f.merge(l.append("line").attr("stroke","currentColor").attr(D+"2",p*s)),m=m.merge(l.append("text").attr("fill","currentColor").attr(D,p*Y).attr("dy",t===Nt?"0em":t===oe?"0.71em":"0.32em")),b!==j&&(x=x.transition(b),E=E.transition(b),f=f.transition(b),m=m.transition(b),T=T.transition(b).attr("opacity",Me).attr("transform",function(c){return isFinite(c=V(c))?_(c+M):this.getAttribute("transform")}),l.attr("opacity",Me).attr("transform",function(c){var v=this.parentNode.__axis;return _((v&&isFinite(v=v(c))?v:V(c))+M)})),T.remove(),x.attr("d",t===zt||t===Qt?o?"M"+p*o+","+O+"H"+M+"V"+N+"H"+p*o:"M"+M+","+O+"V"+N:o?"M"+O+","+p*o+"V"+M+"H"+N+"V"+p*o:"M"+O+","+M+"H"+N),E.attr("opacity",1).attr("transform",function(c){return _(V(c)+M)}),f.attr(D+"2",p*s),m.attr(D,p*Y).text(g),j.filter(Pn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Qt?"start":t===zt?"end":"middle"),j.each(function(){this.__axis=V})}return w.scale=function(b){return arguments.length?(e=b,w):e},w.ticks=function(){return n=Array.from(arguments),w},w.tickArguments=function(b){return arguments.length?(n=b==null?[]:Array.from(b),w):n.slice()},w.tickValues=function(b){return arguments.length?(r=b==null?null:Array.from(b),w):r&&r.slice()},w.tickFormat=function(b){return arguments.length?(i=b,w):i},w.tickSize=function(b){return arguments.length?(s=o=+b,w):s},w.tickSizeInner=function(b){return arguments.length?(s=+b,w):s},w.tickSizeOuter=function(b){return arguments.length?(o=+b,w):o},w.tickPadding=function(b){return arguments.length?(y=+b,w):y},w.offset=function(b){return arguments.length?(M=+b,w):M},w}function Rn(t){return Re(Nt,t)}function Bn(t){return Re(oe,t)}const Zn=Math.PI/180,Xn=180/Math.PI,Rt=18,Be=.96422,Ze=1,Xe=.82521,qe=4/29,bt=6/29,je=3*bt*bt,qn=bt*bt*bt;function Ge(t){if(t instanceof ot)return new ot(t.l,t.a,t.b,t.opacity);if(t instanceof lt)return Qe(t);t instanceof Ve||(t=yn(t));var e=te(t.r),n=te(t.g),r=te(t.b),i=Jt((.2225045*e+.7168786*n+.0606169*r)/Ze),s,o;return e===n&&n===r?s=o=i:(s=Jt((.4360747*e+.3850649*n+.1430804*r)/Be),o=Jt((.0139322*e+.0971045*n+.7141733*r)/Xe)),new ot(116*i-16,500*(s-i),200*(i-o),t.opacity)}function jn(t,e,n,r){return arguments.length===1?Ge(t):new ot(t,e,n,r??1)}function ot(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}ze(ot,jn,Ne(Pe,{brighter(t){return new ot(this.l+Rt*(t??1),this.a,this.b,this.opacity)},darker(t){return new ot(this.l-Rt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=Be*Kt(e),t=Ze*Kt(t),n=Xe*Kt(n),new Ve($t(3.1338561*e-1.6168667*t-.4906146*n),$t(-.9787684*e+1.9161415*t+.033454*n),$t(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function Jt(t){return t>qn?Math.pow(t,1/3):t/je+qe}function Kt(t){return t>bt?t*t*t:je*(t-qe)}function $t(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function te(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Gn(t){if(t instanceof lt)return new lt(t.h,t.c,t.l,t.opacity);if(t instanceof ot||(t=Ge(t)),t.a===0&&t.b===0)return new lt(NaN,0(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const o=i(s),y=i.ceil(s);return s-o(e(s=new Date(+s),o==null?1:Math.floor(o)),s),i.range=(s,o,y)=>{const M=[];if(s=i.ceil(s),y=y==null?1:Math.floor(y),!(s0))return M;let p;do M.push(p=new Date(+s)),e(s,y),t(s);while(ptt(o=>{if(o>=o)for(;t(o),!s(o);)o.setTime(o-1)},(o,y)=>{if(o>=o)if(y<0)for(;++y<=0;)for(;e(o,-1),!s(o););else for(;--y>=0;)for(;e(o,1),!s(o););}),n&&(i.count=(s,o)=>(ee.setTime(+s),ne.setTime(+o),t(ee),t(ne),Math.floor(n(ee,ne))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?o=>r(o)%s===0:o=>i.count(0,o)%s===0):i)),i}const Bt=tt(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Bt.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?tt(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Bt);Bt.range;const ut=1e3,it=ut*60,ft=it*60,ht=ft*24,ge=ht*7,Se=ht*30,re=ht*365,vt=tt(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*ut)},(t,e)=>(e-t)/ut,t=>t.getUTCSeconds());vt.range;const Lt=tt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ut)},(t,e)=>{t.setTime(+t+e*it)},(t,e)=>(e-t)/it,t=>t.getMinutes());Lt.range;const $n=tt(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*it)},(t,e)=>(e-t)/it,t=>t.getUTCMinutes());$n.range;const Et=tt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ut-t.getMinutes()*it)},(t,e)=>{t.setTime(+t+e*ft)},(t,e)=>(e-t)/ft,t=>t.getHours());Et.range;const tr=tt(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*ft)},(t,e)=>(e-t)/ft,t=>t.getUTCHours());tr.range;const gt=tt(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*it)/ht,t=>t.getDate()-1);gt.range;const ye=tt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ht,t=>t.getUTCDate()-1);ye.range;const er=tt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ht,t=>Math.floor(t/ht));er.range;function kt(t){return tt(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*it)/ge)}const Ct=kt(0),Zt=kt(1),nr=kt(2),rr=kt(3),Dt=kt(4),ir=kt(5),sr=kt(6);Ct.range;Zt.range;nr.range;rr.range;Dt.range;ir.range;sr.range;function pt(t){return tt(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/ge)}const Je=pt(0),Xt=pt(1),ar=pt(2),or=pt(3),Mt=pt(4),cr=pt(5),lr=pt(6);Je.range;Xt.range;ar.range;or.range;Mt.range;cr.range;lr.range;const At=tt(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());At.range;const ur=tt(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());ur.range;const mt=tt(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());mt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:tt(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});mt.range;const yt=tt(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());yt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:tt(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});yt.range;function fr(t,e,n,r,i,s){const o=[[vt,1,ut],[vt,5,5*ut],[vt,15,15*ut],[vt,30,30*ut],[s,1,it],[s,5,5*it],[s,15,15*it],[s,30,30*it],[i,1,ft],[i,3,3*ft],[i,6,6*ft],[i,12,12*ft],[r,1,ht],[r,2,2*ht],[n,1,ge],[e,1,Se],[e,3,3*Se],[t,1,re]];function y(p,D,_){const w=DY).right(o,w);if(b===o.length)return t.every(De(p/re,D/re,_));if(b===0)return Bt.every(Math.max(De(p,D,_),1));const[P,g]=o[w/o[b-1][2]53)return null;"w"in u||(u.w=1),"Z"in u?(I=se(Ut(u.y,0,1)),Q=I.getUTCDay(),I=Q>4||Q===0?Xt.ceil(I):Xt(I),I=ye.offset(I,(u.V-1)*7),u.y=I.getUTCFullYear(),u.m=I.getUTCMonth(),u.d=I.getUTCDate()+(u.w+6)%7):(I=ie(Ut(u.y,0,1)),Q=I.getDay(),I=Q>4||Q===0?Zt.ceil(I):Zt(I),I=gt.offset(I,(u.V-1)*7),u.y=I.getFullYear(),u.m=I.getMonth(),u.d=I.getDate()+(u.w+6)%7)}else("W"in u||"U"in u)&&("w"in u||(u.w="u"in u?u.u%7:"W"in u?1:0),Q="Z"in u?se(Ut(u.y,0,1)).getUTCDay():ie(Ut(u.y,0,1)).getDay(),u.m=0,u.d="W"in u?(u.w+6)%7+u.W*7-(Q+5)%7:u.w+u.U*7-(Q+6)%7);return"Z"in u?(u.H+=u.Z/100|0,u.M+=u.Z%100,se(u)):ie(u)}}function T(k,C,L,u){for(var X=0,I=C.length,Q=L.length,K,st;X=Q)return-1;if(K=C.charCodeAt(X++),K===37){if(K=C.charAt(X++),st=j[K in _e?C.charAt(X++):K],!st||(u=st(k,L,u))<0)return-1}else if(K!=L.charCodeAt(u++))return-1}return u}function l(k,C,L){var u=p.exec(C.slice(L));return u?(k.p=D.get(u[0].toLowerCase()),L+u[0].length):-1}function f(k,C,L){var u=b.exec(C.slice(L));return u?(k.w=P.get(u[0].toLowerCase()),L+u[0].length):-1}function m(k,C,L){var u=_.exec(C.slice(L));return u?(k.w=w.get(u[0].toLowerCase()),L+u[0].length):-1}function c(k,C,L){var u=H.exec(C.slice(L));return u?(k.m=O.get(u[0].toLowerCase()),L+u[0].length):-1}function v(k,C,L){var u=g.exec(C.slice(L));return u?(k.m=Y.get(u[0].toLowerCase()),L+u[0].length):-1}function a(k,C,L){return T(k,e,C,L)}function A(k,C,L){return T(k,n,C,L)}function h(k,C,L){return T(k,r,C,L)}function B(k){return o[k.getDay()]}function Z(k){return s[k.getDay()]}function J(k){return M[k.getMonth()]}function d(k){return y[k.getMonth()]}function S(k){return i[+(k.getHours()>=12)]}function U(k){return 1+~~(k.getMonth()/3)}function F(k){return o[k.getUTCDay()]}function W(k){return s[k.getUTCDay()]}function G(k){return M[k.getUTCMonth()]}function R(k){return y[k.getUTCMonth()]}function dt(k){return i[+(k.getUTCHours()>=12)]}function q(k){return 1+~~(k.getUTCMonth()/3)}return{format:function(k){var C=x(k+="",N);return C.toString=function(){return k},C},parse:function(k){var C=E(k+="",!1);return C.toString=function(){return k},C},utcFormat:function(k){var C=x(k+="",V);return C.toString=function(){return k},C},utcParse:function(k){var C=E(k+="",!0);return C.toString=function(){return k},C}}}var _e={"-":"",_:" ",0:"0"},et=/^\s*\d+/,gr=/^%/,yr=/[\\^$*+?|[\]().{}]/g;function z(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s[e.toLowerCase(),n]))}function pr(t,e,n){var r=et.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Tr(t,e,n){var r=et.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function vr(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function xr(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function br(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Ue(t,e,n){var r=et.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ye(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function wr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Cr(t,e,n){var r=et.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Dr(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Fe(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Mr(t,e,n){var r=et.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Le(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Sr(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function _r(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Ur(t,e,n){var r=et.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Yr(t,e,n){var r=et.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Fr(t,e,n){var r=gr.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Lr(t,e,n){var r=et.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Er(t,e,n){var r=et.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Ee(t,e){return z(t.getDate(),e,2)}function Ar(t,e){return z(t.getHours(),e,2)}function Ir(t,e){return z(t.getHours()%12||12,e,2)}function Wr(t,e){return z(1+gt.count(mt(t),t),e,3)}function Ke(t,e){return z(t.getMilliseconds(),e,3)}function Or(t,e){return Ke(t,e)+"000"}function Hr(t,e){return z(t.getMonth()+1,e,2)}function zr(t,e){return z(t.getMinutes(),e,2)}function Nr(t,e){return z(t.getSeconds(),e,2)}function Vr(t){var e=t.getDay();return e===0?7:e}function Pr(t,e){return z(Ct.count(mt(t)-1,t),e,2)}function $e(t){var e=t.getDay();return e>=4||e===0?Dt(t):Dt.ceil(t)}function Rr(t,e){return t=$e(t),z(Dt.count(mt(t),t)+(mt(t).getDay()===4),e,2)}function Br(t){return t.getDay()}function Zr(t,e){return z(Zt.count(mt(t)-1,t),e,2)}function Xr(t,e){return z(t.getFullYear()%100,e,2)}function qr(t,e){return t=$e(t),z(t.getFullYear()%100,e,2)}function jr(t,e){return z(t.getFullYear()%1e4,e,4)}function Gr(t,e){var n=t.getDay();return t=n>=4||n===0?Dt(t):Dt.ceil(t),z(t.getFullYear()%1e4,e,4)}function Qr(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+z(e/60|0,"0",2)+z(e%60,"0",2)}function Ae(t,e){return z(t.getUTCDate(),e,2)}function Jr(t,e){return z(t.getUTCHours(),e,2)}function Kr(t,e){return z(t.getUTCHours()%12||12,e,2)}function $r(t,e){return z(1+ye.count(yt(t),t),e,3)}function tn(t,e){return z(t.getUTCMilliseconds(),e,3)}function ti(t,e){return tn(t,e)+"000"}function ei(t,e){return z(t.getUTCMonth()+1,e,2)}function ni(t,e){return z(t.getUTCMinutes(),e,2)}function ri(t,e){return z(t.getUTCSeconds(),e,2)}function ii(t){var e=t.getUTCDay();return e===0?7:e}function si(t,e){return z(Je.count(yt(t)-1,t),e,2)}function en(t){var e=t.getUTCDay();return e>=4||e===0?Mt(t):Mt.ceil(t)}function ai(t,e){return t=en(t),z(Mt.count(yt(t),t)+(yt(t).getUTCDay()===4),e,2)}function oi(t){return t.getUTCDay()}function ci(t,e){return z(Xt.count(yt(t)-1,t),e,2)}function li(t,e){return z(t.getUTCFullYear()%100,e,2)}function ui(t,e){return t=en(t),z(t.getUTCFullYear()%100,e,2)}function fi(t,e){return z(t.getUTCFullYear()%1e4,e,4)}function hi(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Mt(t):Mt.ceil(t),z(t.getUTCFullYear()%1e4,e,4)}function mi(){return"+0000"}function Ie(){return"%"}function We(t){return+t}function Oe(t){return Math.floor(+t/1e3)}var Tt,qt;di({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function di(t){return Tt=dr(t),qt=Tt.format,Tt.parse,Tt.utcFormat,Tt.utcParse,Tt}function gi(t){return new Date(t)}function yi(t){return t instanceof Date?+t:+new Date(+t)}function nn(t,e,n,r,i,s,o,y,M,p){var D=Fn(),_=D.invert,w=D.domain,b=p(".%L"),P=p(":%S"),g=p("%I:%M"),Y=p("%I %p"),H=p("%a %d"),O=p("%b %d"),N=p("%B"),V=p("%Y");function j(x){return(M(x)4&&(b+=7),w.add(b,n));return P.diff(g,"week")+1},y.isoWeekday=function(p){return this.$utils().u(p)?this.day()||7:this.day(this.day()%7?p:p-7)};var M=y.startOf;y.startOf=function(p,D){var _=this.$utils(),w=!!_.u(D)||D;return _.p(p)==="isoweek"?w?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):M.bind(this)(p,D)}}})})(rn);var pi=rn.exports;const Ti=de(pi);var sn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(me,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d\d/,s=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,y={},M=function(g){return(g=+g)+(g>68?1900:2e3)},p=function(g){return function(Y){this[g]=+Y}},D=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(Y){if(!Y||Y==="Z")return 0;var H=Y.match(/([+-]|\d\d)/g),O=60*H[1]+(+H[2]||0);return O===0?0:H[0]==="+"?-O:O}(g)}],_=function(g){var Y=y[g];return Y&&(Y.indexOf?Y:Y.s.concat(Y.f))},w=function(g,Y){var H,O=y.meridiem;if(O){for(var N=1;N<=24;N+=1)if(g.indexOf(O(N,0,Y))>-1){H=N>12;break}}else H=g===(Y?"pm":"PM");return H},b={A:[o,function(g){this.afternoon=w(g,!1)}],a:[o,function(g){this.afternoon=w(g,!0)}],S:[/\d/,function(g){this.milliseconds=100*+g}],SS:[i,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[s,p("seconds")],ss:[s,p("seconds")],m:[s,p("minutes")],mm:[s,p("minutes")],H:[s,p("hours")],h:[s,p("hours")],HH:[s,p("hours")],hh:[s,p("hours")],D:[s,p("day")],DD:[i,p("day")],Do:[o,function(g){var Y=y.ordinal,H=g.match(/\d+/);if(this.day=H[0],Y)for(var O=1;O<=31;O+=1)Y(O).replace(/\[|\]/g,"")===g&&(this.day=O)}],M:[s,p("month")],MM:[i,p("month")],MMM:[o,function(g){var Y=_("months"),H=(_("monthsShort")||Y.map(function(O){return O.slice(0,3)})).indexOf(g)+1;if(H<1)throw new Error;this.month=H%12||H}],MMMM:[o,function(g){var Y=_("months").indexOf(g)+1;if(Y<1)throw new Error;this.month=Y%12||Y}],Y:[/[+-]?\d+/,p("year")],YY:[i,function(g){this.year=M(g)}],YYYY:[/\d{4}/,p("year")],Z:D,ZZ:D};function P(g){var Y,H;Y=g,H=y&&y.formats;for(var O=(g=Y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(l,f,m){var c=m&&m.toUpperCase();return f||H[m]||n[m]||H[c].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,a,A){return a||A.slice(1)})})).match(r),N=O.length,V=0;V-1)return new Date((B==="X"?1e3:1)*h);var J=P(B)(h),d=J.year,S=J.month,U=J.day,F=J.hours,W=J.minutes,G=J.seconds,R=J.milliseconds,dt=J.zone,q=new Date,k=U||(d||S?1:q.getDate()),C=d||q.getFullYear(),L=0;d&&!S||(L=S>0?S-1:q.getMonth());var u=F||0,X=W||0,I=G||0,Q=R||0;return dt?new Date(Date.UTC(C,L,k,u,X,I,Q+60*dt.offset*1e3)):Z?new Date(Date.UTC(C,L,k,u,X,I,Q)):new Date(C,L,k,u,X,I,Q)}catch{return new Date("")}}(j,T,x),this.init(),c&&c!==!0&&(this.$L=this.locale(c).$L),m&&j!=this.format(T)&&(this.$d=new Date("")),y={}}else if(T instanceof Array)for(var v=T.length,a=1;a<=v;a+=1){E[1]=T[a-1];var A=H.apply(this,E);if(A.isValid()){this.$d=A.$d,this.$L=A.$L,this.init();break}a===v&&(this.$d=new Date(""))}else N.call(this,V)}}})})(sn);var vi=sn.exports;const xi=de(vi);var an={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(me,function(){return function(n,r){var i=r.prototype,s=i.format;i.format=function(o){var y=this,M=this.$locale();if(!this.isValid())return s.bind(this)(o);var p=this.$utils(),D=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(_){switch(_){case"Q":return Math.ceil((y.$M+1)/3);case"Do":return M.ordinal(y.$D);case"gggg":return y.weekYear();case"GGGG":return y.isoWeekYear();case"wo":return M.ordinal(y.week(),"W");case"w":case"ww":return p.s(y.week(),_==="w"?1:2,"0");case"W":case"WW":return p.s(y.isoWeek(),_==="W"?1:2,"0");case"k":case"kk":return p.s(String(y.$H===0?24:y.$H),_==="k"?1:2,"0");case"X":return Math.floor(y.$d.getTime()/1e3);case"x":return y.$d.getTime();case"z":return"["+y.offsetName()+"]";case"zzz":return"["+y.offsetName("long")+"]";default:return _}});return s.bind(this)(D)}}})})(an);var bi=an.exports;const wi=de(bi);var le=function(){var t=function(T,l,f,m){for(f=f||{},m=T.length;m--;f[T[m]]=l);return f},e=[1,3],n=[1,5],r=[7,9,11,12,13,14,15,16,17,18,19,20,21,23,25,26,28,35,40],i=[1,15],s=[1,16],o=[1,17],y=[1,18],M=[1,19],p=[1,20],D=[1,21],_=[1,22],w=[1,23],b=[1,24],P=[1,25],g=[1,26],Y=[1,27],H=[1,29],O=[1,31],N=[1,34],V=[5,7,9,11,12,13,14,15,16,17,18,19,20,21,23,25,26,28,35,40],j={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,gantt:5,document:6,EOF:7,line:8,SPACE:9,statement:10,NL:11,dateFormat:12,inclusiveEndDates:13,topAxis:14,axisFormat:15,tickInterval:16,excludes:17,includes:18,todayMarker:19,title:20,acc_title:21,acc_title_value:22,acc_descr:23,acc_descr_value:24,acc_descr_multiline_value:25,section:26,clickStatement:27,taskTxt:28,taskData:29,openDirective:30,typeDirective:31,closeDirective:32,":":33,argDirective:34,click:35,callbackname:36,callbackargs:37,href:38,clickStatementDebug:39,open_directive:40,type_directive:41,arg_directive:42,close_directive:43,$accept:0,$end:1},terminals_:{2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",12:"dateFormat",13:"inclusiveEndDates",14:"topAxis",15:"axisFormat",16:"tickInterval",17:"excludes",18:"includes",19:"todayMarker",20:"title",21:"acc_title",22:"acc_title_value",23:"acc_descr",24:"acc_descr_value",25:"acc_descr_multiline_value",26:"section",28:"taskTxt",29:"taskData",33:":",35:"click",36:"callbackname",37:"callbackargs",38:"href",40:"open_directive",41:"type_directive",42:"arg_directive",43:"close_directive"},productions_:[0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[27,2],[27,3],[27,3],[27,4],[27,3],[27,4],[27,2],[39,2],[39,3],[39,3],[39,4],[39,3],[39,4],[39,2],[30,1],[31,1],[34,1],[32,1]],performAction:function(l,f,m,c,v,a,A){var h=a.length-1;switch(v){case 2:return a[h-1];case 3:this.$=[];break;case 4:a[h-1].push(a[h]),this.$=a[h-1];break;case 5:case 6:this.$=a[h];break;case 7:case 8:this.$=[];break;case 9:c.setDateFormat(a[h].substr(11)),this.$=a[h].substr(11);break;case 10:c.enableInclusiveEndDates(),this.$=a[h].substr(18);break;case 11:c.TopAxis(),this.$=a[h].substr(8);break;case 12:c.setAxisFormat(a[h].substr(11)),this.$=a[h].substr(11);break;case 13:c.setTickInterval(a[h].substr(13)),this.$=a[h].substr(13);break;case 14:c.setExcludes(a[h].substr(9)),this.$=a[h].substr(9);break;case 15:c.setIncludes(a[h].substr(9)),this.$=a[h].substr(9);break;case 16:c.setTodayMarker(a[h].substr(12)),this.$=a[h].substr(12);break;case 17:c.setDiagramTitle(a[h].substr(6)),this.$=a[h].substr(6);break;case 18:this.$=a[h].trim(),c.setAccTitle(this.$);break;case 19:case 20:this.$=a[h].trim(),c.setAccDescription(this.$);break;case 21:c.addSection(a[h].substr(8)),this.$=a[h].substr(8);break;case 23:c.addTask(a[h-1],a[h]),this.$="task";break;case 27:this.$=a[h-1],c.setClickEvent(a[h-1],a[h],null);break;case 28:this.$=a[h-2],c.setClickEvent(a[h-2],a[h-1],a[h]);break;case 29:this.$=a[h-2],c.setClickEvent(a[h-2],a[h-1],null),c.setLink(a[h-2],a[h]);break;case 30:this.$=a[h-3],c.setClickEvent(a[h-3],a[h-2],a[h-1]),c.setLink(a[h-3],a[h]);break;case 31:this.$=a[h-2],c.setClickEvent(a[h-2],a[h],null),c.setLink(a[h-2],a[h-1]);break;case 32:this.$=a[h-3],c.setClickEvent(a[h-3],a[h-1],a[h]),c.setLink(a[h-3],a[h-2]);break;case 33:this.$=a[h-1],c.setLink(a[h-1],a[h]);break;case 34:case 40:this.$=a[h-1]+" "+a[h];break;case 35:case 36:case 38:this.$=a[h-2]+" "+a[h-1]+" "+a[h];break;case 37:case 39:this.$=a[h-3]+" "+a[h-2]+" "+a[h-1]+" "+a[h];break;case 41:c.parseDirective("%%{","open_directive");break;case 42:c.parseDirective(a[h],"type_directive");break;case 43:a[h]=a[h].trim().replace(/'/g,'"'),c.parseDirective(a[h],"arg_directive");break;case 44:c.parseDirective("}%%","close_directive","gantt");break}},table:[{3:1,4:2,5:e,30:4,40:n},{1:[3]},{3:6,4:2,5:e,30:4,40:n},t(r,[2,3],{6:7}),{31:8,41:[1,9]},{41:[2,41]},{1:[2,1]},{4:30,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:i,13:s,14:o,15:y,16:M,17:p,18:D,19:_,20:w,21:b,23:P,25:g,26:Y,27:28,28:H,30:4,35:O,40:n},{32:32,33:[1,33],43:N},t([33,43],[2,42]),t(r,[2,8],{1:[2,2]}),t(r,[2,4]),{4:30,10:35,12:i,13:s,14:o,15:y,16:M,17:p,18:D,19:_,20:w,21:b,23:P,25:g,26:Y,27:28,28:H,30:4,35:O,40:n},t(r,[2,6]),t(r,[2,7]),t(r,[2,9]),t(r,[2,10]),t(r,[2,11]),t(r,[2,12]),t(r,[2,13]),t(r,[2,14]),t(r,[2,15]),t(r,[2,16]),t(r,[2,17]),{22:[1,36]},{24:[1,37]},t(r,[2,20]),t(r,[2,21]),t(r,[2,22]),{29:[1,38]},t(r,[2,24]),{36:[1,39],38:[1,40]},{11:[1,41]},{34:42,42:[1,43]},{11:[2,44]},t(r,[2,5]),t(r,[2,18]),t(r,[2,19]),t(r,[2,23]),t(r,[2,27],{37:[1,44],38:[1,45]}),t(r,[2,33],{36:[1,46]}),t(V,[2,25]),{32:47,43:N},{43:[2,43]},t(r,[2,28],{38:[1,48]}),t(r,[2,29]),t(r,[2,31],{37:[1,49]}),{11:[1,50]},t(r,[2,30]),t(r,[2,32]),t(V,[2,26])],defaultActions:{5:[2,41],6:[2,1],34:[2,44],43:[2,43]},parseError:function(l,f){if(f.recoverable)this.trace(l);else{var m=new Error(l);throw m.hash=f,m}},parse:function(l){var f=this,m=[0],c=[],v=[null],a=[],A=this.table,h="",B=0,Z=0,J=2,d=1,S=a.slice.call(arguments,1),U=Object.create(this.lexer),F={yy:{}};for(var W in this.yy)Object.prototype.hasOwnProperty.call(this.yy,W)&&(F.yy[W]=this.yy[W]);U.setInput(l,F.yy),F.yy.lexer=U,F.yy.parser=this,typeof U.yylloc>"u"&&(U.yylloc={});var G=U.yylloc;a.push(G);var R=U.options&&U.options.ranges;typeof F.yy.parseError=="function"?this.parseError=F.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function dt(){var rt;return rt=c.pop()||U.lex()||d,typeof rt!="number"&&(rt instanceof Array&&(c=rt,rt=c.pop()),rt=f.symbols_[rt]||rt),rt}for(var q,k,C,L,u={},X,I,Q,K;;){if(k=m[m.length-1],this.defaultActions[k]?C=this.defaultActions[k]:((q===null||typeof q>"u")&&(q=dt()),C=A[k]&&A[k][q]),typeof C>"u"||!C.length||!C[0]){var st="";K=[];for(X in A[k])this.terminals_[X]&&X>J&&K.push("'"+this.terminals_[X]+"'");U.showPosition?st="Parse error on line "+(B+1)+`: `+U.showPosition()+` Expecting `+K.join(", ")+", got '"+(this.terminals_[q]||q)+"'":st="Parse error on line "+(B+1)+": Unexpected "+(q==d?"end of input":"'"+(this.terminals_[q]||q)+"'"),this.parseError(st,{text:U.match,token:this.terminals_[q]||q,line:U.yylineno,loc:G,expected:K})}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+q);switch(C[0]){case 1:m.push(q),v.push(U.yytext),a.push(U.yylloc),m.push(C[1]),q=null,Z=U.yyleng,h=U.yytext,B=U.yylineno,G=U.yylloc;break;case 2:if(I=this.productions_[C[1]][1],u.$=v[v.length-I],u._$={first_line:a[a.length-(I||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(I||1)].first_column,last_column:a[a.length-1].last_column},R&&(u._$.range=[a[a.length-(I||1)].range[0],a[a.length-1].range[1]]),L=this.performAction.apply(u,[h,Z,B,F.yy,C[1],v,a].concat(S)),typeof L<"u")return L;I&&(m=m.slice(0,-1*I*2),v=v.slice(0,-1*I),a=a.slice(0,-1*I)),m.push(this.productions_[C[1]][0]),v.push(u.$),a.push(u._$),Q=A[m[m.length-2]][m[m.length-1]],m.push(Q);break;case 3:return!0}}return!0}},x=function(){var T={EOF:1,parseError:function(f,m){if(this.yy.parser)this.yy.parser.parseError(f,m);else throw new Error(f)},setInput:function(l,f){return this.yy=f||this.yy||{},this._input=l,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var f=l.match(/(?:\r\n?|\n).*/g);return f?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},unput:function(l){var f=l.length,m=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-f),this.offset-=f;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),m.length-1&&(this.yylineno-=m.length-1);var v=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:m?(m.length===c.length?this.yylloc.first_column:0)+c[c.length-m.length].length-m[0].length:this.yylloc.first_column-f},this.options.ranges&&(this.yylloc.range=[v[0],v[0]+this.yyleng-f]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(l){this.unput(this.match.slice(l))},pastInput:function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var l=this.pastInput(),f=new Array(l.length+1).join("-");return l+this.upcomingInput()+` diff --git a/docs/assets/gitGraphDiagram-566a7451-cec6c862.js b/docs/assets/gitGraphDiagram-566a7451-3eee2e44.js similarity index 99% rename from docs/assets/gitGraphDiagram-566a7451-cec6c862.js rename to docs/assets/gitGraphDiagram-566a7451-3eee2e44.js index 13aeab0c..3a25c6c8 100644 --- a/docs/assets/gitGraphDiagram-566a7451-cec6c862.js +++ b/docs/assets/gitGraphDiagram-566a7451-3eee2e44.js @@ -1,4 +1,4 @@ -import{c as A,s as Ae,g as Oe,a as Se,b as Ie,z as Ge,A as Pe,m as He,l as G,j as V,B as Ne,F as pe,h as De,x as Ve,G as ze,H as je}from"./index-b4f98efc.js";var me=function(){var r=function(B,l,u,b){for(u=u||{},b=B.length;b--;u[B[b]]=l);return u},a=[1,4],o=[1,7],h=[1,5],c=[1,9],n=[1,6],f=[2,6],p=[1,16],v=[6,8,14,20,22,24,25,27,29,32,37,40,50,55],y=[8,14,20,22,24,25,27,29,32,37,40],m=[8,13,14,20,22,24,25,27,29,32,37,40],d=[1,26],_=[6,8,14,50,55],s=[8,14,55],C=[1,53],w=[1,52],N=[8,14,30,33,35,38,55],x=[1,67],g=[1,68],k=[1,69],P=[8,14,33,35,42,55],ae={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,GG:6,document:7,EOF:8,":":9,DIR:10,options:11,body:12,OPT:13,NL:14,line:15,statement:16,commitStatement:17,mergeStatement:18,cherryPickStatement:19,acc_title:20,acc_title_value:21,acc_descr:22,acc_descr_value:23,acc_descr_multiline_value:24,section:25,branchStatement:26,CHECKOUT:27,ref:28,BRANCH:29,ORDER:30,NUM:31,CHERRY_PICK:32,COMMIT_ID:33,STR:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,openDirective:46,typeDirective:47,closeDirective:48,argDirective:49,open_directive:50,type_directive:51,arg_directive:52,close_directive:53,ID:54,";":55,$accept:0,$end:1},terminals_:{2:"error",6:"GG",8:"EOF",9:":",10:"DIR",13:"OPT",14:"NL",20:"acc_title",21:"acc_title_value",22:"acc_descr",23:"acc_descr_value",24:"acc_descr_multiline_value",25:"section",27:"CHECKOUT",29:"BRANCH",30:"ORDER",31:"NUM",32:"CHERRY_PICK",33:"COMMIT_ID",34:"STR",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",50:"open_directive",51:"type_directive",52:"arg_directive",53:"close_directive",54:"ID",55:";"},productions_:[0,[3,2],[3,2],[3,3],[3,4],[3,5],[7,0],[7,2],[11,2],[11,1],[12,0],[12,2],[15,2],[15,1],[16,1],[16,1],[16,1],[16,2],[16,2],[16,1],[16,1],[16,1],[16,2],[26,2],[26,4],[19,3],[19,5],[19,5],[19,5],[19,5],[18,2],[18,4],[18,4],[18,4],[18,6],[18,6],[18,6],[18,6],[18,6],[18,6],[18,8],[18,8],[18,8],[18,8],[18,8],[18,8],[17,2],[17,3],[17,3],[17,5],[17,5],[17,3],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,3],[17,5],[17,5],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[41,0],[41,1],[39,1],[39,1],[39,1],[5,3],[5,5],[46,1],[47,1],[49,1],[48,1],[28,1],[28,1],[4,1],[4,1],[4,1]],performAction:function(l,u,b,i,E,e,W){var t=e.length-1;switch(E){case 3:return e[t];case 4:return e[t-1];case 5:return i.setDirection(e[t-3]),e[t-1];case 7:i.setOptions(e[t-1]),this.$=e[t];break;case 8:e[t-1]+=e[t],this.$=e[t-1];break;case 10:this.$=[];break;case 11:e[t-1].push(e[t]),this.$=e[t-1];break;case 12:this.$=e[t-1];break;case 17:this.$=e[t].trim(),i.setAccTitle(this.$);break;case 18:case 19:this.$=e[t].trim(),i.setAccDescription(this.$);break;case 20:i.addSection(e[t].substr(8)),this.$=e[t].substr(8);break;case 22:i.checkout(e[t]);break;case 23:i.branch(e[t]);break;case 24:i.branch(e[t-2],e[t]);break;case 25:i.cherryPick(e[t],"",void 0);break;case 26:i.cherryPick(e[t-2],"",e[t]);break;case 27:case 29:i.cherryPick(e[t-2],"","");break;case 28:i.cherryPick(e[t],"",e[t-2]);break;case 30:i.merge(e[t],"","","");break;case 31:i.merge(e[t-2],e[t],"","");break;case 32:i.merge(e[t-2],"",e[t],"");break;case 33:i.merge(e[t-2],"","",e[t]);break;case 34:i.merge(e[t-4],e[t],"",e[t-2]);break;case 35:i.merge(e[t-4],"",e[t],e[t-2]);break;case 36:i.merge(e[t-4],"",e[t-2],e[t]);break;case 37:i.merge(e[t-4],e[t-2],e[t],"");break;case 38:i.merge(e[t-4],e[t-2],"",e[t]);break;case 39:i.merge(e[t-4],e[t],e[t-2],"");break;case 40:i.merge(e[t-6],e[t-4],e[t-2],e[t]);break;case 41:i.merge(e[t-6],e[t],e[t-4],e[t-2]);break;case 42:i.merge(e[t-6],e[t-4],e[t],e[t-2]);break;case 43:i.merge(e[t-6],e[t-2],e[t-4],e[t]);break;case 44:i.merge(e[t-6],e[t],e[t-2],e[t-4]);break;case 45:i.merge(e[t-6],e[t-2],e[t],e[t-4]);break;case 46:i.commit(e[t]);break;case 47:i.commit("","",i.commitType.NORMAL,e[t]);break;case 48:i.commit("","",e[t],"");break;case 49:i.commit("","",e[t],e[t-2]);break;case 50:i.commit("","",e[t-2],e[t]);break;case 51:i.commit("",e[t],i.commitType.NORMAL,"");break;case 52:i.commit("",e[t-2],i.commitType.NORMAL,e[t]);break;case 53:i.commit("",e[t],i.commitType.NORMAL,e[t-2]);break;case 54:i.commit("",e[t-2],e[t],"");break;case 55:i.commit("",e[t],e[t-2],"");break;case 56:i.commit("",e[t-4],e[t-2],e[t]);break;case 57:i.commit("",e[t-4],e[t],e[t-2]);break;case 58:i.commit("",e[t-2],e[t-4],e[t]);break;case 59:i.commit("",e[t],e[t-4],e[t-2]);break;case 60:i.commit("",e[t],e[t-2],e[t-4]);break;case 61:i.commit("",e[t-2],e[t],e[t-4]);break;case 62:i.commit(e[t],"",i.commitType.NORMAL,"");break;case 63:i.commit(e[t],"",i.commitType.NORMAL,e[t-2]);break;case 64:i.commit(e[t-2],"",i.commitType.NORMAL,e[t]);break;case 65:i.commit(e[t-2],"",e[t],"");break;case 66:i.commit(e[t],"",e[t-2],"");break;case 67:i.commit(e[t],e[t-2],i.commitType.NORMAL,"");break;case 68:i.commit(e[t-2],e[t],i.commitType.NORMAL,"");break;case 69:i.commit(e[t-4],"",e[t-2],e[t]);break;case 70:i.commit(e[t-4],"",e[t],e[t-2]);break;case 71:i.commit(e[t-2],"",e[t-4],e[t]);break;case 72:i.commit(e[t],"",e[t-4],e[t-2]);break;case 73:i.commit(e[t],"",e[t-2],e[t-4]);break;case 74:i.commit(e[t-2],"",e[t],e[t-4]);break;case 75:i.commit(e[t-4],e[t],e[t-2],"");break;case 76:i.commit(e[t-4],e[t-2],e[t],"");break;case 77:i.commit(e[t-2],e[t],e[t-4],"");break;case 78:i.commit(e[t],e[t-2],e[t-4],"");break;case 79:i.commit(e[t],e[t-4],e[t-2],"");break;case 80:i.commit(e[t-2],e[t-4],e[t],"");break;case 81:i.commit(e[t-4],e[t],i.commitType.NORMAL,e[t-2]);break;case 82:i.commit(e[t-4],e[t-2],i.commitType.NORMAL,e[t]);break;case 83:i.commit(e[t-2],e[t],i.commitType.NORMAL,e[t-4]);break;case 84:i.commit(e[t],e[t-2],i.commitType.NORMAL,e[t-4]);break;case 85:i.commit(e[t],e[t-4],i.commitType.NORMAL,e[t-2]);break;case 86:i.commit(e[t-2],e[t-4],i.commitType.NORMAL,e[t]);break;case 87:i.commit(e[t-6],e[t-4],e[t-2],e[t]);break;case 88:i.commit(e[t-6],e[t-4],e[t],e[t-2]);break;case 89:i.commit(e[t-6],e[t-2],e[t-4],e[t]);break;case 90:i.commit(e[t-6],e[t],e[t-4],e[t-2]);break;case 91:i.commit(e[t-6],e[t-2],e[t],e[t-4]);break;case 92:i.commit(e[t-6],e[t],e[t-2],e[t-4]);break;case 93:i.commit(e[t-4],e[t-6],e[t-2],e[t]);break;case 94:i.commit(e[t-4],e[t-6],e[t],e[t-2]);break;case 95:i.commit(e[t-2],e[t-6],e[t-4],e[t]);break;case 96:i.commit(e[t],e[t-6],e[t-4],e[t-2]);break;case 97:i.commit(e[t-2],e[t-6],e[t],e[t-4]);break;case 98:i.commit(e[t],e[t-6],e[t-2],e[t-4]);break;case 99:i.commit(e[t],e[t-4],e[t-2],e[t-6]);break;case 100:i.commit(e[t-2],e[t-4],e[t],e[t-6]);break;case 101:i.commit(e[t],e[t-2],e[t-4],e[t-6]);break;case 102:i.commit(e[t-2],e[t],e[t-4],e[t-6]);break;case 103:i.commit(e[t-4],e[t-2],e[t],e[t-6]);break;case 104:i.commit(e[t-4],e[t],e[t-2],e[t-6]);break;case 105:i.commit(e[t-2],e[t-4],e[t-6],e[t]);break;case 106:i.commit(e[t],e[t-4],e[t-6],e[t-2]);break;case 107:i.commit(e[t-2],e[t],e[t-6],e[t-4]);break;case 108:i.commit(e[t],e[t-2],e[t-6],e[t-4]);break;case 109:i.commit(e[t-4],e[t-2],e[t-6],e[t]);break;case 110:i.commit(e[t-4],e[t],e[t-6],e[t-2]);break;case 111:this.$="";break;case 112:this.$=e[t];break;case 113:this.$=i.commitType.NORMAL;break;case 114:this.$=i.commitType.REVERSE;break;case 115:this.$=i.commitType.HIGHLIGHT;break;case 118:i.parseDirective("%%{","open_directive");break;case 119:i.parseDirective(e[t],"type_directive");break;case 120:e[t]=e[t].trim().replace(/'/g,'"'),i.parseDirective(e[t],"arg_directive");break;case 121:i.parseDirective("}%%","close_directive","gitGraph");break}},table:[{3:1,4:2,5:3,6:a,8:o,14:h,46:8,50:c,55:n},{1:[3]},{3:10,4:2,5:3,6:a,8:o,14:h,46:8,50:c,55:n},{3:11,4:2,5:3,6:a,8:o,14:h,46:8,50:c,55:n},{7:12,8:f,9:[1,13],10:[1,14],11:15,14:p},r(v,[2,124]),r(v,[2,125]),r(v,[2,126]),{47:17,51:[1,18]},{51:[2,118]},{1:[2,1]},{1:[2,2]},{8:[1,19]},{7:20,8:f,11:15,14:p},{9:[1,21]},r(y,[2,10],{12:22,13:[1,23]}),r(m,[2,9]),{9:[1,25],48:24,53:d},r([9,53],[2,119]),{1:[2,3]},{8:[1,27]},{7:28,8:f,11:15,14:p},{8:[2,7],14:[1,31],15:29,16:30,17:32,18:33,19:34,20:[1,35],22:[1,36],24:[1,37],25:[1,38],26:39,27:[1,40],29:[1,44],32:[1,43],37:[1,42],40:[1,41]},r(m,[2,8]),r(_,[2,116]),{49:45,52:[1,46]},r(_,[2,121]),{1:[2,4]},{8:[1,47]},r(y,[2,11]),{4:48,8:o,14:h,55:n},r(y,[2,13]),r(s,[2,14]),r(s,[2,15]),r(s,[2,16]),{21:[1,49]},{23:[1,50]},r(s,[2,19]),r(s,[2,20]),r(s,[2,21]),{28:51,34:C,54:w},r(s,[2,111],{41:54,33:[1,57],34:[1,59],35:[1,55],38:[1,56],42:[1,58]}),{28:60,34:C,54:w},{33:[1,61],35:[1,62]},{28:63,34:C,54:w},{48:64,53:d},{53:[2,120]},{1:[2,5]},r(y,[2,12]),r(s,[2,17]),r(s,[2,18]),r(s,[2,22]),r(N,[2,122]),r(N,[2,123]),r(s,[2,46]),{34:[1,65]},{39:66,43:x,44:g,45:k},{34:[1,70]},{34:[1,71]},r(s,[2,112]),r(s,[2,30],{33:[1,72],35:[1,74],38:[1,73]}),{34:[1,75]},{34:[1,76],36:[1,77]},r(s,[2,23],{30:[1,78]}),r(_,[2,117]),r(s,[2,47],{33:[1,80],38:[1,79],42:[1,81]}),r(s,[2,48],{33:[1,83],35:[1,82],42:[1,84]}),r(P,[2,113]),r(P,[2,114]),r(P,[2,115]),r(s,[2,51],{35:[1,85],38:[1,86],42:[1,87]}),r(s,[2,62],{33:[1,90],35:[1,88],38:[1,89]}),{34:[1,91]},{39:92,43:x,44:g,45:k},{34:[1,93]},r(s,[2,25],{35:[1,94]}),{33:[1,95]},{33:[1,96]},{31:[1,97]},{39:98,43:x,44:g,45:k},{34:[1,99]},{34:[1,100]},{34:[1,101]},{34:[1,102]},{34:[1,103]},{34:[1,104]},{39:105,43:x,44:g,45:k},{34:[1,106]},{34:[1,107]},{39:108,43:x,44:g,45:k},{34:[1,109]},r(s,[2,31],{35:[1,111],38:[1,110]}),r(s,[2,32],{33:[1,113],35:[1,112]}),r(s,[2,33],{33:[1,114],38:[1,115]}),{34:[1,116],36:[1,117]},{34:[1,118]},{34:[1,119]},r(s,[2,24]),r(s,[2,49],{33:[1,120],42:[1,121]}),r(s,[2,53],{38:[1,122],42:[1,123]}),r(s,[2,63],{33:[1,125],38:[1,124]}),r(s,[2,50],{33:[1,126],42:[1,127]}),r(s,[2,55],{35:[1,128],42:[1,129]}),r(s,[2,66],{33:[1,131],35:[1,130]}),r(s,[2,52],{38:[1,132],42:[1,133]}),r(s,[2,54],{35:[1,134],42:[1,135]}),r(s,[2,67],{35:[1,137],38:[1,136]}),r(s,[2,64],{33:[1,139],38:[1,138]}),r(s,[2,65],{33:[1,141],35:[1,140]}),r(s,[2,68],{35:[1,143],38:[1,142]}),{39:144,43:x,44:g,45:k},{34:[1,145]},{34:[1,146]},{34:[1,147]},{34:[1,148]},{39:149,43:x,44:g,45:k},r(s,[2,26]),r(s,[2,27]),r(s,[2,28]),r(s,[2,29]),{34:[1,150]},{34:[1,151]},{39:152,43:x,44:g,45:k},{34:[1,153]},{39:154,43:x,44:g,45:k},{34:[1,155]},{34:[1,156]},{34:[1,157]},{34:[1,158]},{34:[1,159]},{34:[1,160]},{34:[1,161]},{39:162,43:x,44:g,45:k},{34:[1,163]},{34:[1,164]},{34:[1,165]},{39:166,43:x,44:g,45:k},{34:[1,167]},{39:168,43:x,44:g,45:k},{34:[1,169]},{34:[1,170]},{34:[1,171]},{39:172,43:x,44:g,45:k},{34:[1,173]},r(s,[2,37],{35:[1,174]}),r(s,[2,38],{38:[1,175]}),r(s,[2,36],{33:[1,176]}),r(s,[2,39],{35:[1,177]}),r(s,[2,34],{38:[1,178]}),r(s,[2,35],{33:[1,179]}),r(s,[2,60],{42:[1,180]}),r(s,[2,73],{33:[1,181]}),r(s,[2,61],{42:[1,182]}),r(s,[2,84],{38:[1,183]}),r(s,[2,74],{33:[1,184]}),r(s,[2,83],{38:[1,185]}),r(s,[2,59],{42:[1,186]}),r(s,[2,72],{33:[1,187]}),r(s,[2,58],{42:[1,188]}),r(s,[2,78],{35:[1,189]}),r(s,[2,71],{33:[1,190]}),r(s,[2,77],{35:[1,191]}),r(s,[2,57],{42:[1,192]}),r(s,[2,85],{38:[1,193]}),r(s,[2,56],{42:[1,194]}),r(s,[2,79],{35:[1,195]}),r(s,[2,80],{35:[1,196]}),r(s,[2,86],{38:[1,197]}),r(s,[2,70],{33:[1,198]}),r(s,[2,81],{38:[1,199]}),r(s,[2,69],{33:[1,200]}),r(s,[2,75],{35:[1,201]}),r(s,[2,76],{35:[1,202]}),r(s,[2,82],{38:[1,203]}),{34:[1,204]},{39:205,43:x,44:g,45:k},{34:[1,206]},{34:[1,207]},{39:208,43:x,44:g,45:k},{34:[1,209]},{34:[1,210]},{34:[1,211]},{34:[1,212]},{39:213,43:x,44:g,45:k},{34:[1,214]},{39:215,43:x,44:g,45:k},{34:[1,216]},{34:[1,217]},{34:[1,218]},{34:[1,219]},{34:[1,220]},{34:[1,221]},{34:[1,222]},{39:223,43:x,44:g,45:k},{34:[1,224]},{34:[1,225]},{34:[1,226]},{39:227,43:x,44:g,45:k},{34:[1,228]},{39:229,43:x,44:g,45:k},{34:[1,230]},{34:[1,231]},{34:[1,232]},{39:233,43:x,44:g,45:k},r(s,[2,40]),r(s,[2,42]),r(s,[2,41]),r(s,[2,43]),r(s,[2,45]),r(s,[2,44]),r(s,[2,101]),r(s,[2,102]),r(s,[2,99]),r(s,[2,100]),r(s,[2,104]),r(s,[2,103]),r(s,[2,108]),r(s,[2,107]),r(s,[2,106]),r(s,[2,105]),r(s,[2,110]),r(s,[2,109]),r(s,[2,98]),r(s,[2,97]),r(s,[2,96]),r(s,[2,95]),r(s,[2,93]),r(s,[2,94]),r(s,[2,92]),r(s,[2,91]),r(s,[2,90]),r(s,[2,89]),r(s,[2,87]),r(s,[2,88])],defaultActions:{9:[2,118],10:[2,1],11:[2,2],19:[2,3],27:[2,4],46:[2,120],47:[2,5]},parseError:function(l,u){if(u.recoverable)this.trace(l);else{var b=new Error(l);throw b.hash=u,b}},parse:function(l){var u=this,b=[0],i=[],E=[null],e=[],W=this.table,t="",Z=0,be=0,Re=2,ge=1,Ce=e.slice.call(arguments,1),L=Object.create(this.lexer),q={yy:{}};for(var ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ne)&&(q.yy[ne]=this.yy[ne]);L.setInput(l,q.yy),q.yy.lexer=L,q.yy.parser=this,typeof L.yylloc>"u"&&(L.yylloc={});var oe=L.yylloc;e.push(oe);var Le=L.options&&L.options.ranges;typeof q.yy.parseError=="function"?this.parseError=q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Me(){var j;return j=i.pop()||L.lex()||ge,typeof j!="number"&&(j instanceof Array&&(i=j,j=i.pop()),j=u.symbols_[j]||j),j}for(var S,Y,D,le,U={},$,z,de,ee;;){if(Y=b[b.length-1],this.defaultActions[Y]?D=this.defaultActions[Y]:((S===null||typeof S>"u")&&(S=Me()),D=W[Y]&&W[Y][S]),typeof D>"u"||!D.length||!D[0]){var he="";ee=[];for($ in W[Y])this.terminals_[$]&&$>Re&&ee.push("'"+this.terminals_[$]+"'");L.showPosition?he="Parse error on line "+(Z+1)+`: +import{c as A,s as Ae,g as Oe,a as Se,b as Ie,z as Ge,A as Pe,m as He,l as G,j as V,B as Ne,F as pe,h as De,x as Ve,G as ze,H as je}from"./index-0e08498d.js";var me=function(){var r=function(B,l,u,b){for(u=u||{},b=B.length;b--;u[B[b]]=l);return u},a=[1,4],o=[1,7],h=[1,5],c=[1,9],n=[1,6],f=[2,6],p=[1,16],v=[6,8,14,20,22,24,25,27,29,32,37,40,50,55],y=[8,14,20,22,24,25,27,29,32,37,40],m=[8,13,14,20,22,24,25,27,29,32,37,40],d=[1,26],_=[6,8,14,50,55],s=[8,14,55],C=[1,53],w=[1,52],N=[8,14,30,33,35,38,55],x=[1,67],g=[1,68],k=[1,69],P=[8,14,33,35,42,55],ae={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,GG:6,document:7,EOF:8,":":9,DIR:10,options:11,body:12,OPT:13,NL:14,line:15,statement:16,commitStatement:17,mergeStatement:18,cherryPickStatement:19,acc_title:20,acc_title_value:21,acc_descr:22,acc_descr_value:23,acc_descr_multiline_value:24,section:25,branchStatement:26,CHECKOUT:27,ref:28,BRANCH:29,ORDER:30,NUM:31,CHERRY_PICK:32,COMMIT_ID:33,STR:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,openDirective:46,typeDirective:47,closeDirective:48,argDirective:49,open_directive:50,type_directive:51,arg_directive:52,close_directive:53,ID:54,";":55,$accept:0,$end:1},terminals_:{2:"error",6:"GG",8:"EOF",9:":",10:"DIR",13:"OPT",14:"NL",20:"acc_title",21:"acc_title_value",22:"acc_descr",23:"acc_descr_value",24:"acc_descr_multiline_value",25:"section",27:"CHECKOUT",29:"BRANCH",30:"ORDER",31:"NUM",32:"CHERRY_PICK",33:"COMMIT_ID",34:"STR",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",50:"open_directive",51:"type_directive",52:"arg_directive",53:"close_directive",54:"ID",55:";"},productions_:[0,[3,2],[3,2],[3,3],[3,4],[3,5],[7,0],[7,2],[11,2],[11,1],[12,0],[12,2],[15,2],[15,1],[16,1],[16,1],[16,1],[16,2],[16,2],[16,1],[16,1],[16,1],[16,2],[26,2],[26,4],[19,3],[19,5],[19,5],[19,5],[19,5],[18,2],[18,4],[18,4],[18,4],[18,6],[18,6],[18,6],[18,6],[18,6],[18,6],[18,8],[18,8],[18,8],[18,8],[18,8],[18,8],[17,2],[17,3],[17,3],[17,5],[17,5],[17,3],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,3],[17,5],[17,5],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[41,0],[41,1],[39,1],[39,1],[39,1],[5,3],[5,5],[46,1],[47,1],[49,1],[48,1],[28,1],[28,1],[4,1],[4,1],[4,1]],performAction:function(l,u,b,i,E,e,W){var t=e.length-1;switch(E){case 3:return e[t];case 4:return e[t-1];case 5:return i.setDirection(e[t-3]),e[t-1];case 7:i.setOptions(e[t-1]),this.$=e[t];break;case 8:e[t-1]+=e[t],this.$=e[t-1];break;case 10:this.$=[];break;case 11:e[t-1].push(e[t]),this.$=e[t-1];break;case 12:this.$=e[t-1];break;case 17:this.$=e[t].trim(),i.setAccTitle(this.$);break;case 18:case 19:this.$=e[t].trim(),i.setAccDescription(this.$);break;case 20:i.addSection(e[t].substr(8)),this.$=e[t].substr(8);break;case 22:i.checkout(e[t]);break;case 23:i.branch(e[t]);break;case 24:i.branch(e[t-2],e[t]);break;case 25:i.cherryPick(e[t],"",void 0);break;case 26:i.cherryPick(e[t-2],"",e[t]);break;case 27:case 29:i.cherryPick(e[t-2],"","");break;case 28:i.cherryPick(e[t],"",e[t-2]);break;case 30:i.merge(e[t],"","","");break;case 31:i.merge(e[t-2],e[t],"","");break;case 32:i.merge(e[t-2],"",e[t],"");break;case 33:i.merge(e[t-2],"","",e[t]);break;case 34:i.merge(e[t-4],e[t],"",e[t-2]);break;case 35:i.merge(e[t-4],"",e[t],e[t-2]);break;case 36:i.merge(e[t-4],"",e[t-2],e[t]);break;case 37:i.merge(e[t-4],e[t-2],e[t],"");break;case 38:i.merge(e[t-4],e[t-2],"",e[t]);break;case 39:i.merge(e[t-4],e[t],e[t-2],"");break;case 40:i.merge(e[t-6],e[t-4],e[t-2],e[t]);break;case 41:i.merge(e[t-6],e[t],e[t-4],e[t-2]);break;case 42:i.merge(e[t-6],e[t-4],e[t],e[t-2]);break;case 43:i.merge(e[t-6],e[t-2],e[t-4],e[t]);break;case 44:i.merge(e[t-6],e[t],e[t-2],e[t-4]);break;case 45:i.merge(e[t-6],e[t-2],e[t],e[t-4]);break;case 46:i.commit(e[t]);break;case 47:i.commit("","",i.commitType.NORMAL,e[t]);break;case 48:i.commit("","",e[t],"");break;case 49:i.commit("","",e[t],e[t-2]);break;case 50:i.commit("","",e[t-2],e[t]);break;case 51:i.commit("",e[t],i.commitType.NORMAL,"");break;case 52:i.commit("",e[t-2],i.commitType.NORMAL,e[t]);break;case 53:i.commit("",e[t],i.commitType.NORMAL,e[t-2]);break;case 54:i.commit("",e[t-2],e[t],"");break;case 55:i.commit("",e[t],e[t-2],"");break;case 56:i.commit("",e[t-4],e[t-2],e[t]);break;case 57:i.commit("",e[t-4],e[t],e[t-2]);break;case 58:i.commit("",e[t-2],e[t-4],e[t]);break;case 59:i.commit("",e[t],e[t-4],e[t-2]);break;case 60:i.commit("",e[t],e[t-2],e[t-4]);break;case 61:i.commit("",e[t-2],e[t],e[t-4]);break;case 62:i.commit(e[t],"",i.commitType.NORMAL,"");break;case 63:i.commit(e[t],"",i.commitType.NORMAL,e[t-2]);break;case 64:i.commit(e[t-2],"",i.commitType.NORMAL,e[t]);break;case 65:i.commit(e[t-2],"",e[t],"");break;case 66:i.commit(e[t],"",e[t-2],"");break;case 67:i.commit(e[t],e[t-2],i.commitType.NORMAL,"");break;case 68:i.commit(e[t-2],e[t],i.commitType.NORMAL,"");break;case 69:i.commit(e[t-4],"",e[t-2],e[t]);break;case 70:i.commit(e[t-4],"",e[t],e[t-2]);break;case 71:i.commit(e[t-2],"",e[t-4],e[t]);break;case 72:i.commit(e[t],"",e[t-4],e[t-2]);break;case 73:i.commit(e[t],"",e[t-2],e[t-4]);break;case 74:i.commit(e[t-2],"",e[t],e[t-4]);break;case 75:i.commit(e[t-4],e[t],e[t-2],"");break;case 76:i.commit(e[t-4],e[t-2],e[t],"");break;case 77:i.commit(e[t-2],e[t],e[t-4],"");break;case 78:i.commit(e[t],e[t-2],e[t-4],"");break;case 79:i.commit(e[t],e[t-4],e[t-2],"");break;case 80:i.commit(e[t-2],e[t-4],e[t],"");break;case 81:i.commit(e[t-4],e[t],i.commitType.NORMAL,e[t-2]);break;case 82:i.commit(e[t-4],e[t-2],i.commitType.NORMAL,e[t]);break;case 83:i.commit(e[t-2],e[t],i.commitType.NORMAL,e[t-4]);break;case 84:i.commit(e[t],e[t-2],i.commitType.NORMAL,e[t-4]);break;case 85:i.commit(e[t],e[t-4],i.commitType.NORMAL,e[t-2]);break;case 86:i.commit(e[t-2],e[t-4],i.commitType.NORMAL,e[t]);break;case 87:i.commit(e[t-6],e[t-4],e[t-2],e[t]);break;case 88:i.commit(e[t-6],e[t-4],e[t],e[t-2]);break;case 89:i.commit(e[t-6],e[t-2],e[t-4],e[t]);break;case 90:i.commit(e[t-6],e[t],e[t-4],e[t-2]);break;case 91:i.commit(e[t-6],e[t-2],e[t],e[t-4]);break;case 92:i.commit(e[t-6],e[t],e[t-2],e[t-4]);break;case 93:i.commit(e[t-4],e[t-6],e[t-2],e[t]);break;case 94:i.commit(e[t-4],e[t-6],e[t],e[t-2]);break;case 95:i.commit(e[t-2],e[t-6],e[t-4],e[t]);break;case 96:i.commit(e[t],e[t-6],e[t-4],e[t-2]);break;case 97:i.commit(e[t-2],e[t-6],e[t],e[t-4]);break;case 98:i.commit(e[t],e[t-6],e[t-2],e[t-4]);break;case 99:i.commit(e[t],e[t-4],e[t-2],e[t-6]);break;case 100:i.commit(e[t-2],e[t-4],e[t],e[t-6]);break;case 101:i.commit(e[t],e[t-2],e[t-4],e[t-6]);break;case 102:i.commit(e[t-2],e[t],e[t-4],e[t-6]);break;case 103:i.commit(e[t-4],e[t-2],e[t],e[t-6]);break;case 104:i.commit(e[t-4],e[t],e[t-2],e[t-6]);break;case 105:i.commit(e[t-2],e[t-4],e[t-6],e[t]);break;case 106:i.commit(e[t],e[t-4],e[t-6],e[t-2]);break;case 107:i.commit(e[t-2],e[t],e[t-6],e[t-4]);break;case 108:i.commit(e[t],e[t-2],e[t-6],e[t-4]);break;case 109:i.commit(e[t-4],e[t-2],e[t-6],e[t]);break;case 110:i.commit(e[t-4],e[t],e[t-6],e[t-2]);break;case 111:this.$="";break;case 112:this.$=e[t];break;case 113:this.$=i.commitType.NORMAL;break;case 114:this.$=i.commitType.REVERSE;break;case 115:this.$=i.commitType.HIGHLIGHT;break;case 118:i.parseDirective("%%{","open_directive");break;case 119:i.parseDirective(e[t],"type_directive");break;case 120:e[t]=e[t].trim().replace(/'/g,'"'),i.parseDirective(e[t],"arg_directive");break;case 121:i.parseDirective("}%%","close_directive","gitGraph");break}},table:[{3:1,4:2,5:3,6:a,8:o,14:h,46:8,50:c,55:n},{1:[3]},{3:10,4:2,5:3,6:a,8:o,14:h,46:8,50:c,55:n},{3:11,4:2,5:3,6:a,8:o,14:h,46:8,50:c,55:n},{7:12,8:f,9:[1,13],10:[1,14],11:15,14:p},r(v,[2,124]),r(v,[2,125]),r(v,[2,126]),{47:17,51:[1,18]},{51:[2,118]},{1:[2,1]},{1:[2,2]},{8:[1,19]},{7:20,8:f,11:15,14:p},{9:[1,21]},r(y,[2,10],{12:22,13:[1,23]}),r(m,[2,9]),{9:[1,25],48:24,53:d},r([9,53],[2,119]),{1:[2,3]},{8:[1,27]},{7:28,8:f,11:15,14:p},{8:[2,7],14:[1,31],15:29,16:30,17:32,18:33,19:34,20:[1,35],22:[1,36],24:[1,37],25:[1,38],26:39,27:[1,40],29:[1,44],32:[1,43],37:[1,42],40:[1,41]},r(m,[2,8]),r(_,[2,116]),{49:45,52:[1,46]},r(_,[2,121]),{1:[2,4]},{8:[1,47]},r(y,[2,11]),{4:48,8:o,14:h,55:n},r(y,[2,13]),r(s,[2,14]),r(s,[2,15]),r(s,[2,16]),{21:[1,49]},{23:[1,50]},r(s,[2,19]),r(s,[2,20]),r(s,[2,21]),{28:51,34:C,54:w},r(s,[2,111],{41:54,33:[1,57],34:[1,59],35:[1,55],38:[1,56],42:[1,58]}),{28:60,34:C,54:w},{33:[1,61],35:[1,62]},{28:63,34:C,54:w},{48:64,53:d},{53:[2,120]},{1:[2,5]},r(y,[2,12]),r(s,[2,17]),r(s,[2,18]),r(s,[2,22]),r(N,[2,122]),r(N,[2,123]),r(s,[2,46]),{34:[1,65]},{39:66,43:x,44:g,45:k},{34:[1,70]},{34:[1,71]},r(s,[2,112]),r(s,[2,30],{33:[1,72],35:[1,74],38:[1,73]}),{34:[1,75]},{34:[1,76],36:[1,77]},r(s,[2,23],{30:[1,78]}),r(_,[2,117]),r(s,[2,47],{33:[1,80],38:[1,79],42:[1,81]}),r(s,[2,48],{33:[1,83],35:[1,82],42:[1,84]}),r(P,[2,113]),r(P,[2,114]),r(P,[2,115]),r(s,[2,51],{35:[1,85],38:[1,86],42:[1,87]}),r(s,[2,62],{33:[1,90],35:[1,88],38:[1,89]}),{34:[1,91]},{39:92,43:x,44:g,45:k},{34:[1,93]},r(s,[2,25],{35:[1,94]}),{33:[1,95]},{33:[1,96]},{31:[1,97]},{39:98,43:x,44:g,45:k},{34:[1,99]},{34:[1,100]},{34:[1,101]},{34:[1,102]},{34:[1,103]},{34:[1,104]},{39:105,43:x,44:g,45:k},{34:[1,106]},{34:[1,107]},{39:108,43:x,44:g,45:k},{34:[1,109]},r(s,[2,31],{35:[1,111],38:[1,110]}),r(s,[2,32],{33:[1,113],35:[1,112]}),r(s,[2,33],{33:[1,114],38:[1,115]}),{34:[1,116],36:[1,117]},{34:[1,118]},{34:[1,119]},r(s,[2,24]),r(s,[2,49],{33:[1,120],42:[1,121]}),r(s,[2,53],{38:[1,122],42:[1,123]}),r(s,[2,63],{33:[1,125],38:[1,124]}),r(s,[2,50],{33:[1,126],42:[1,127]}),r(s,[2,55],{35:[1,128],42:[1,129]}),r(s,[2,66],{33:[1,131],35:[1,130]}),r(s,[2,52],{38:[1,132],42:[1,133]}),r(s,[2,54],{35:[1,134],42:[1,135]}),r(s,[2,67],{35:[1,137],38:[1,136]}),r(s,[2,64],{33:[1,139],38:[1,138]}),r(s,[2,65],{33:[1,141],35:[1,140]}),r(s,[2,68],{35:[1,143],38:[1,142]}),{39:144,43:x,44:g,45:k},{34:[1,145]},{34:[1,146]},{34:[1,147]},{34:[1,148]},{39:149,43:x,44:g,45:k},r(s,[2,26]),r(s,[2,27]),r(s,[2,28]),r(s,[2,29]),{34:[1,150]},{34:[1,151]},{39:152,43:x,44:g,45:k},{34:[1,153]},{39:154,43:x,44:g,45:k},{34:[1,155]},{34:[1,156]},{34:[1,157]},{34:[1,158]},{34:[1,159]},{34:[1,160]},{34:[1,161]},{39:162,43:x,44:g,45:k},{34:[1,163]},{34:[1,164]},{34:[1,165]},{39:166,43:x,44:g,45:k},{34:[1,167]},{39:168,43:x,44:g,45:k},{34:[1,169]},{34:[1,170]},{34:[1,171]},{39:172,43:x,44:g,45:k},{34:[1,173]},r(s,[2,37],{35:[1,174]}),r(s,[2,38],{38:[1,175]}),r(s,[2,36],{33:[1,176]}),r(s,[2,39],{35:[1,177]}),r(s,[2,34],{38:[1,178]}),r(s,[2,35],{33:[1,179]}),r(s,[2,60],{42:[1,180]}),r(s,[2,73],{33:[1,181]}),r(s,[2,61],{42:[1,182]}),r(s,[2,84],{38:[1,183]}),r(s,[2,74],{33:[1,184]}),r(s,[2,83],{38:[1,185]}),r(s,[2,59],{42:[1,186]}),r(s,[2,72],{33:[1,187]}),r(s,[2,58],{42:[1,188]}),r(s,[2,78],{35:[1,189]}),r(s,[2,71],{33:[1,190]}),r(s,[2,77],{35:[1,191]}),r(s,[2,57],{42:[1,192]}),r(s,[2,85],{38:[1,193]}),r(s,[2,56],{42:[1,194]}),r(s,[2,79],{35:[1,195]}),r(s,[2,80],{35:[1,196]}),r(s,[2,86],{38:[1,197]}),r(s,[2,70],{33:[1,198]}),r(s,[2,81],{38:[1,199]}),r(s,[2,69],{33:[1,200]}),r(s,[2,75],{35:[1,201]}),r(s,[2,76],{35:[1,202]}),r(s,[2,82],{38:[1,203]}),{34:[1,204]},{39:205,43:x,44:g,45:k},{34:[1,206]},{34:[1,207]},{39:208,43:x,44:g,45:k},{34:[1,209]},{34:[1,210]},{34:[1,211]},{34:[1,212]},{39:213,43:x,44:g,45:k},{34:[1,214]},{39:215,43:x,44:g,45:k},{34:[1,216]},{34:[1,217]},{34:[1,218]},{34:[1,219]},{34:[1,220]},{34:[1,221]},{34:[1,222]},{39:223,43:x,44:g,45:k},{34:[1,224]},{34:[1,225]},{34:[1,226]},{39:227,43:x,44:g,45:k},{34:[1,228]},{39:229,43:x,44:g,45:k},{34:[1,230]},{34:[1,231]},{34:[1,232]},{39:233,43:x,44:g,45:k},r(s,[2,40]),r(s,[2,42]),r(s,[2,41]),r(s,[2,43]),r(s,[2,45]),r(s,[2,44]),r(s,[2,101]),r(s,[2,102]),r(s,[2,99]),r(s,[2,100]),r(s,[2,104]),r(s,[2,103]),r(s,[2,108]),r(s,[2,107]),r(s,[2,106]),r(s,[2,105]),r(s,[2,110]),r(s,[2,109]),r(s,[2,98]),r(s,[2,97]),r(s,[2,96]),r(s,[2,95]),r(s,[2,93]),r(s,[2,94]),r(s,[2,92]),r(s,[2,91]),r(s,[2,90]),r(s,[2,89]),r(s,[2,87]),r(s,[2,88])],defaultActions:{9:[2,118],10:[2,1],11:[2,2],19:[2,3],27:[2,4],46:[2,120],47:[2,5]},parseError:function(l,u){if(u.recoverable)this.trace(l);else{var b=new Error(l);throw b.hash=u,b}},parse:function(l){var u=this,b=[0],i=[],E=[null],e=[],W=this.table,t="",Z=0,be=0,Re=2,ge=1,Ce=e.slice.call(arguments,1),L=Object.create(this.lexer),q={yy:{}};for(var ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ne)&&(q.yy[ne]=this.yy[ne]);L.setInput(l,q.yy),q.yy.lexer=L,q.yy.parser=this,typeof L.yylloc>"u"&&(L.yylloc={});var oe=L.yylloc;e.push(oe);var Le=L.options&&L.options.ranges;typeof q.yy.parseError=="function"?this.parseError=q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Me(){var j;return j=i.pop()||L.lex()||ge,typeof j!="number"&&(j instanceof Array&&(i=j,j=i.pop()),j=u.symbols_[j]||j),j}for(var S,Y,D,le,U={},$,z,de,ee;;){if(Y=b[b.length-1],this.defaultActions[Y]?D=this.defaultActions[Y]:((S===null||typeof S>"u")&&(S=Me()),D=W[Y]&&W[Y][S]),typeof D>"u"||!D.length||!D[0]){var he="";ee=[];for($ in W[Y])this.terminals_[$]&&$>Re&&ee.push("'"+this.terminals_[$]+"'");L.showPosition?he="Parse error on line "+(Z+1)+`: `+L.showPosition()+` Expecting `+ee.join(", ")+", got '"+(this.terminals_[S]||S)+"'":he="Parse error on line "+(Z+1)+": Unexpected "+(S==ge?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(he,{text:L.match,token:this.terminals_[S]||S,line:L.yylineno,loc:oe,expected:ee})}if(D[0]instanceof Array&&D.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Y+", token: "+S);switch(D[0]){case 1:b.push(S),E.push(L.yytext),e.push(L.yylloc),b.push(D[1]),S=null,be=L.yyleng,t=L.yytext,Z=L.yylineno,oe=L.yylloc;break;case 2:if(z=this.productions_[D[1]][1],U.$=E[E.length-z],U._$={first_line:e[e.length-(z||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(z||1)].first_column,last_column:e[e.length-1].last_column},Le&&(U._$.range=[e[e.length-(z||1)].range[0],e[e.length-1].range[1]]),le=this.performAction.apply(U,[t,be,Z,q.yy,D[1],E,e].concat(Ce)),typeof le<"u")return le;z&&(b=b.slice(0,-1*z*2),E=E.slice(0,-1*z),e=e.slice(0,-1*z)),b.push(this.productions_[D[1]][0]),E.push(U.$),e.push(U._$),de=W[b[b.length-2]][b[b.length-1]],b.push(de);break;case 3:return!0}}return!0}},Te=function(){var B={EOF:1,parseError:function(u,b){if(this.yy.parser)this.yy.parser.parseError(u,b);else throw new Error(u)},setInput:function(l,u){return this.yy=u||this.yy||{},this._input=l,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var u=l.match(/(?:\r\n?|\n).*/g);return u?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},unput:function(l){var u=l.length,b=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),b.length-1&&(this.yylineno-=b.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:b?(b.length===i.length?this.yylloc.first_column:0)+i[i.length-b.length].length-b[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(l){this.unput(this.match.slice(l))},pastInput:function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var l=this.pastInput(),u=new Array(l.length+1).join("-");return l+this.upcomingInput()+` diff --git a/docs/assets/index-b4f98efc.js b/docs/assets/index-0e08498d.js similarity index 83% rename from docs/assets/index-b4f98efc.js rename to docs/assets/index-0e08498d.js index a6e6eb28..25260534 100644 --- a/docs/assets/index-b4f98efc.js +++ b/docs/assets/index-0e08498d.js @@ -6,7 +6,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var jg=Symbol.for("react.element"),jie=Symbol.for("react.portal"),Vie=Symbol.for("react.fragment"),qie=Symbol.for("react.strict_mode"),Hie=Symbol.for("react.profiler"),Uie=Symbol.for("react.provider"),Wie=Symbol.for("react.context"),Gie=Symbol.for("react.forward_ref"),Kie=Symbol.for("react.suspense"),Yie=Symbol.for("react.memo"),Zie=Symbol.for("react.lazy"),xz=Symbol.iterator;function Xie(e){return e===null||typeof e!="object"?null:(e=xz&&e[xz]||e["@@iterator"],typeof e=="function"?e:null)}var hB={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},pB=Object.assign,mB={};function Fp(e,t,n){this.props=e,this.context=t,this.refs=mB,this.updater=n||hB}Fp.prototype.isReactComponent={};Fp.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Fp.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function gB(){}gB.prototype=Fp.prototype;function j7(e,t,n){this.props=e,this.context=t,this.refs=mB,this.updater=n||hB}var V7=j7.prototype=new gB;V7.constructor=j7;pB(V7,Fp.prototype);V7.isPureReactComponent=!0;var Cz=Array.isArray,yB=Object.prototype.hasOwnProperty,q7={current:null},_B={key:!0,ref:!0,__self:!0,__source:!0};function bB(e,t,n){var r,i={},a=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)yB.call(t,r)&&!_B.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1>>1,ue=Q[de];if(0>>1;dei(ze,L))Ji(Ve,ze)?(Q[de]=Ve,Q[J]=L,de=J):(Q[de]=ze,Q[be]=L,de=be);else if(Ji(Ve,L))Q[de]=Ve,Q[J]=L,de=J;else break e}}return ce}function i(Q,ce){var L=Q.sortIndex-ce.sortIndex;return L!==0?L:Q.id-ce.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],c=[],u=1,f=null,h=3,m=!1,g=!1,b=!1,C=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(Q){for(var ce=n(c);ce!==null;){if(ce.callback===null)r(c);else if(ce.startTime<=Q)r(c),ce.sortIndex=ce.expirationTime,t(l,ce);else break;ce=n(c)}}function E(Q){if(b=!1,S(Q),!g)if(n(l)!==null)g=!0,fe(A);else{var ce=n(c);ce!==null&&ae(E,ce.startTime-Q)}}function A(Q,ce){g=!1,b&&(b=!1,w($),$=-1),m=!0;var L=h;try{for(S(ce),f=n(l);f!==null&&(!(f.expirationTime>ce)||Q&&!G());){var de=f.callback;if(typeof de=="function"){f.callback=null,h=f.priorityLevel;var ue=de(f.expirationTime<=ce);ce=e.unstable_now(),typeof ue=="function"?f.callback=ue:f===n(l)&&r(l),S(ce)}else r(l);f=n(l)}if(f!==null)var I=!0;else{var be=n(c);be!==null&&ae(E,be.startTime-ce),I=!1}return I}finally{f=null,h=L,m=!1}}var _=!1,T=null,$=-1,R=5,O=-1;function G(){return!(e.unstable_now()-OQ||125de?(Q.sortIndex=L,t(c,Q),n(l)===null&&Q===n(c)&&(b?(w($),$=-1):b=!0,ae(E,L-de))):(Q.sortIndex=ue,t(l,Q),g||m||(g=!0,fe(A))),Q},e.unstable_shouldYield=G,e.unstable_wrapCallback=function(Q){var ce=h;return function(){var L=h;h=ce;try{return Q.apply(this,arguments)}finally{h=L}}}})(xB);vB.exports=xB;var lae=vB.exports;/** + */(function(e){function t(Q,ce){var L=Q.length;Q.push(ce);e:for(;0>>1,ue=Q[de];if(0>>1;dei(ze,L))Ji(Ve,ze)?(Q[de]=Ve,Q[J]=L,de=J):(Q[de]=ze,Q[be]=L,de=be);else if(Ji(Ve,L))Q[de]=Ve,Q[J]=L,de=J;else break e}}return ce}function i(Q,ce){var L=Q.sortIndex-ce.sortIndex;return L!==0?L:Q.id-ce.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],c=[],u=1,f=null,h=3,m=!1,g=!1,b=!1,C=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(Q){for(var ce=n(c);ce!==null;){if(ce.callback===null)r(c);else if(ce.startTime<=Q)r(c),ce.sortIndex=ce.expirationTime,t(l,ce);else break;ce=n(c)}}function E(Q){if(b=!1,S(Q),!g)if(n(l)!==null)g=!0,fe(A);else{var ce=n(c);ce!==null&&ae(E,ce.startTime-Q)}}function A(Q,ce){g=!1,b&&(b=!1,w($),$=-1),m=!0;var L=h;try{for(S(ce),f=n(l);f!==null&&(!(f.expirationTime>ce)||Q&&!G());){var de=f.callback;if(typeof de=="function"){f.callback=null,h=f.priorityLevel;var ue=de(f.expirationTime<=ce);ce=e.unstable_now(),typeof ue=="function"?f.callback=ue:f===n(l)&&r(l),S(ce)}else r(l);f=n(l)}if(f!==null)var I=!0;else{var be=n(c);be!==null&&ae(E,be.startTime-ce),I=!1}return I}finally{f=null,h=L,m=!1}}var _=!1,T=null,$=-1,R=5,O=-1;function G(){return!(e.unstable_now()-OQ||125de?(Q.sortIndex=L,t(c,Q),n(l)===null&&Q===n(c)&&(b?(w($),$=-1):b=!0,ae(E,L-de))):(Q.sortIndex=ue,t(l,Q),g||m||(g=!0,fe(A))),Q},e.unstable_shouldYield=G,e.unstable_wrapCallback=function(Q){var ce=h;return function(){var L=h;h=ce;try{return Q.apply(this,arguments)}finally{h=L}}}})(xB);vB.exports=xB;var cae=vB.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var CB=F,Ca=lae;function Me(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),M5=Object.prototype.hasOwnProperty,cae=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Dz={},Ez={};function uae(e){return M5.call(Ez,e)?!0:M5.call(Dz,e)?!1:cae.test(e)?Ez[e]=!0:(Dz[e]=!0,!1)}function dae(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function fae(e,t,n,r){if(t===null||typeof t>"u"||dae(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Di(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Kr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Kr[e]=new Di(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Kr[t]=new Di(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Kr[e]=new Di(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Kr[e]=new Di(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Kr[e]=new Di(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Kr[e]=new Di(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Kr[e]=new Di(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Kr[e]=new Di(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Kr[e]=new Di(e,5,!1,e.toLowerCase(),null,!1,!1)});var W7=/[\-:]([a-z])/g;function G7(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(W7,G7);Kr[t]=new Di(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(W7,G7);Kr[t]=new Di(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(W7,G7);Kr[t]=new Di(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Kr[e]=new Di(e,1,!1,e.toLowerCase(),null,!1,!1)});Kr.xlinkHref=new Di("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Kr[e]=new Di(e,1,!1,e.toLowerCase(),null,!0,!0)});function K7(e,t,n,r){var i=Kr.hasOwnProperty(t)?Kr[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),M5=Object.prototype.hasOwnProperty,uae=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Dz={},Ez={};function dae(e){return M5.call(Ez,e)?!0:M5.call(Dz,e)?!1:uae.test(e)?Ez[e]=!0:(Dz[e]=!0,!1)}function fae(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function hae(e,t,n,r){if(t===null||typeof t>"u"||fae(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Di(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Kr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Kr[e]=new Di(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Kr[t]=new Di(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Kr[e]=new Di(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Kr[e]=new Di(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Kr[e]=new Di(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Kr[e]=new Di(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Kr[e]=new Di(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Kr[e]=new Di(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Kr[e]=new Di(e,5,!1,e.toLowerCase(),null,!1,!1)});var W7=/[\-:]([a-z])/g;function G7(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(W7,G7);Kr[t]=new Di(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(W7,G7);Kr[t]=new Di(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(W7,G7);Kr[t]=new Di(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Kr[e]=new Di(e,1,!1,e.toLowerCase(),null,!1,!1)});Kr.xlinkHref=new Di("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Kr[e]=new Di(e,1,!1,e.toLowerCase(),null,!0,!0)});function K7(e,t,n,r){var i=Kr.hasOwnProperty(t)?Kr[t]:null;(i!==null?i.type!==0:r||!(2s||i[o]!==a[s]){var l=` -`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{s4=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?P0(e):""}function hae(e){switch(e.tag){case 5:return P0(e.type);case 16:return P0("Lazy");case 13:return P0("Suspense");case 19:return P0("SuspenseList");case 0:case 2:case 15:return e=l4(e.type,!1),e;case 11:return e=l4(e.type.render,!1),e;case 1:return e=l4(e.type,!0),e;default:return""}}function I5(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case sh:return"Fragment";case oh:return"Portal";case O5:return"Profiler";case Y7:return"StrictMode";case N5:return"Suspense";case L5:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case EB:return(e.displayName||"Context")+".Consumer";case DB:return(e._context.displayName||"Context")+".Provider";case Z7:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X7:return t=e.displayName||null,t!==null?t:I5(e.type)||"Memo";case Ac:t=e._payload,e=e._init;try{return I5(e(t))}catch{}}return null}function pae(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return I5(t);case 8:return t===Y7?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function lu(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function AB(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function mae(e){var t=AB(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function zy(e){e._valueTracker||(e._valueTracker=mae(e))}function zB(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=AB(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ek(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function B5(e,t){var n=t.checked;return Xn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Az(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=lu(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function FB(e,t){t=t.checked,t!=null&&K7(e,"checked",t,!1)}function R5(e,t){FB(e,t);var n=lu(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?P5(e,t.type,n):t.hasOwnProperty("defaultValue")&&P5(e,t.type,lu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function zz(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function P5(e,t,n){(t!=="number"||ek(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var j0=Array.isArray;function zh(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Fy.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Km(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var fm={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},gae=["Webkit","ms","Moz","O"];Object.keys(fm).forEach(function(e){gae.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fm[t]=fm[e]})});function NB(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||fm.hasOwnProperty(e)&&fm[e]?(""+t).trim():t+"px"}function LB(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=NB(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var yae=Xn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function q5(e,t){if(t){if(yae[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Me(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Me(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Me(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Me(62))}}function H5(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var U5=null;function J7(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var W5=null,Fh=null,$h=null;function Mz(e){if(e=Hg(e)){if(typeof W5!="function")throw Error(Me(280));var t=e.stateNode;t&&(t=Uw(t),W5(e.stateNode,e.type,t))}}function IB(e){Fh?$h?$h.push(e):$h=[e]:Fh=e}function BB(){if(Fh){var e=Fh,t=$h;if($h=Fh=null,Mz(e),t)for(e=0;e>>=0,e===0?32:31-(Tae(e)/Aae|0)|0}var $y=64,My=4194304;function V0(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ik(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=V0(s):(a&=o,a!==0&&(r=V0(a)))}else o=n&~i,o!==0?r=V0(o):a!==0&&(r=V0(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Vg(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ho(t),e[t]=n}function Mae(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=pm),Vz=String.fromCharCode(32),qz=!1;function iR(e,t){switch(e){case"keyup":return soe.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function aR(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var lh=!1;function coe(e,t){switch(e){case"compositionend":return aR(t);case"keypress":return t.which!==32?null:(qz=!0,Vz);case"textInput":return e=t.data,e===Vz&&qz?null:e;default:return null}}function uoe(e,t){if(lh)return e==="compositionend"||!oC&&iR(e,t)?(e=nR(),$_=rC=Rc=null,lh=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Gz(n)}}function cR(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?cR(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function uR(){for(var e=window,t=ek();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ek(e.document)}return t}function sC(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function boe(e){var t=uR(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&cR(n.ownerDocument.documentElement,n)){if(r!==null&&sC(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=Kz(n,a);var o=Kz(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ch=null,J5=null,gm=null,Q5=!1;function Yz(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Q5||ch==null||ch!==ek(r)||(r=ch,"selectionStart"in r&&sC(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),gm&&eg(gm,r)||(gm=r,r=sk(J5,"onSelect"),0fh||(e.current=ax[fh],ax[fh]=null,fh--)}function An(e,t){fh++,ax[fh]=e.current,e.current=t}var cu={},si=ku(cu),Hi=ku(!1),Rd=cu;function Xh(e,t){var n=e.type.contextTypes;if(!n)return cu;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ui(e){return e=e.childContextTypes,e!=null}function ck(){In(Hi),In(si)}function nF(e,t,n){if(si.current!==cu)throw Error(Me(168));An(si,t),An(Hi,n)}function bR(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Me(108,pae(e)||"Unknown",i));return Xn({},n,r)}function uk(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||cu,Rd=si.current,An(si,e),An(Hi,Hi.current),!0}function rF(e,t,n){var r=e.stateNode;if(!r)throw Error(Me(169));n?(e=bR(e,t,Rd),r.__reactInternalMemoizedMergedChildContext=e,In(Hi),In(si),An(si,e)):In(Hi),An(Hi,n)}var bl=null,Ww=!1,v4=!1;function kR(e){bl===null?bl=[e]:bl.push(e)}function Foe(e){Ww=!0,kR(e)}function wu(){if(!v4&&bl!==null){v4=!0;var e=0,t=yn;try{var n=bl;for(yn=1;e>=o,i-=o,Cl=1<<32-Ho(t)+i|n<$?(R=T,T=null):R=T.sibling;var O=h(w,T,S[$],E);if(O===null){T===null&&(T=R);break}e&&T&&O.alternate===null&&t(w,T),k=a(O,k,$),_===null?A=O:_.sibling=O,_=O,T=R}if($===S.length)return n(w,T),Pn&&Qu(w,$),A;if(T===null){for(;$$?(R=T,T=null):R=T.sibling;var G=h(w,T,O.value,E);if(G===null){T===null&&(T=R);break}e&&T&&G.alternate===null&&t(w,T),k=a(G,k,$),_===null?A=G:_.sibling=G,_=G,T=R}if(O.done)return n(w,T),Pn&&Qu(w,$),A;if(T===null){for(;!O.done;$++,O=S.next())O=f(w,O.value,E),O!==null&&(k=a(O,k,$),_===null?A=O:_.sibling=O,_=O);return Pn&&Qu(w,$),A}for(T=r(w,T);!O.done;$++,O=S.next())O=m(T,w,$,O.value,E),O!==null&&(e&&O.alternate!==null&&T.delete(O.key===null?$:O.key),k=a(O,k,$),_===null?A=O:_.sibling=O,_=O);return e&&T.forEach(function(V){return t(w,V)}),Pn&&Qu(w,$),A}function C(w,k,S,E){if(typeof S=="object"&&S!==null&&S.type===sh&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case Ay:e:{for(var A=S.key,_=k;_!==null;){if(_.key===A){if(A=S.type,A===sh){if(_.tag===7){n(w,_.sibling),k=i(_,S.props.children),k.return=w,w=k;break e}}else if(_.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===Ac&&uF(A)===_.type){n(w,_.sibling),k=i(_,S.props),k.ref=x0(w,_,S),k.return=w,w=k;break e}n(w,_);break}else t(w,_);_=_.sibling}S.type===sh?(k=Sd(S.props.children,w.mode,E,S.key),k.return=w,w=k):(E=P_(S.type,S.key,S.props,null,w.mode,E),E.ref=x0(w,k,S),E.return=w,w=E)}return o(w);case oh:e:{for(_=S.key;k!==null;){if(k.key===_)if(k.tag===4&&k.stateNode.containerInfo===S.containerInfo&&k.stateNode.implementation===S.implementation){n(w,k.sibling),k=i(k,S.children||[]),k.return=w,w=k;break e}else{n(w,k);break}else t(w,k);k=k.sibling}k=z4(S,w.mode,E),k.return=w,w=k}return o(w);case Ac:return _=S._init,C(w,k,_(S._payload),E)}if(j0(S))return g(w,k,S,E);if(_0(S))return b(w,k,S,E);Py(w,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,k!==null&&k.tag===6?(n(w,k.sibling),k=i(k,S),k.return=w,w=k):(n(w,k),k=A4(S,w.mode,E),k.return=w,w=k),o(w)):n(w,k)}return C}var Qh=TR(!0),AR=TR(!1),Ug={},Ds=ku(Ug),ig=ku(Ug),ag=ku(Ug);function gd(e){if(e===Ug)throw Error(Me(174));return e}function gC(e,t){switch(An(ag,t),An(ig,e),An(Ds,Ug),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:V5(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=V5(t,e)}In(Ds),An(Ds,t)}function ep(){In(Ds),In(ig),In(ag)}function zR(e){gd(ag.current);var t=gd(Ds.current),n=V5(t,e.type);t!==n&&(An(ig,e),An(Ds,n))}function yC(e){ig.current===e&&(In(Ds),In(ig))}var Gn=ku(0);function gk(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var x4=[];function _C(){for(var e=0;en?n:4,e(!0);var r=C4.transition;C4.transition={};try{e(!1),t()}finally{yn=n,C4.transition=r}}function WR(){return fo().memoizedState}function Noe(e,t,n){var r=Xc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},GR(e))KR(t,n);else if(n=CR(e,t,n,r),n!==null){var i=ki();Uo(n,e,r,i),YR(n,t,r)}}function Loe(e,t,n){var r=Xc(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(GR(e))KR(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Zo(s,o)){var l=t.interleaved;l===null?(i.next=i,pC(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=CR(e,t,i,r),n!==null&&(i=ki(),Uo(n,e,r,i),YR(n,t,r))}}function GR(e){var t=e.alternate;return e===Zn||t!==null&&t===Zn}function KR(e,t){ym=yk=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function YR(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,eC(e,n)}}var _k={readContext:uo,useCallback:Xr,useContext:Xr,useEffect:Xr,useImperativeHandle:Xr,useInsertionEffect:Xr,useLayoutEffect:Xr,useMemo:Xr,useReducer:Xr,useRef:Xr,useState:Xr,useDebugValue:Xr,useDeferredValue:Xr,useTransition:Xr,useMutableSource:Xr,useSyncExternalStore:Xr,useId:Xr,unstable_isNewReconciler:!1},Ioe={readContext:uo,useCallback:function(e,t){return ds().memoizedState=[e,t===void 0?null:t],e},useContext:uo,useEffect:fF,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,L_(4194308,4,jR.bind(null,t,e),n)},useLayoutEffect:function(e,t){return L_(4194308,4,e,t)},useInsertionEffect:function(e,t){return L_(4,2,e,t)},useMemo:function(e,t){var n=ds();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ds();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Noe.bind(null,Zn,e),[r.memoizedState,e]},useRef:function(e){var t=ds();return e={current:e},t.memoizedState=e},useState:dF,useDebugValue:xC,useDeferredValue:function(e){return ds().memoizedState=e},useTransition:function(){var e=dF(!1),t=e[0];return e=Ooe.bind(null,e[1]),ds().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Zn,i=ds();if(Pn){if(n===void 0)throw Error(Me(407));n=n()}else{if(n=t(),Mr===null)throw Error(Me(349));jd&30||MR(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,fF(NR.bind(null,r,a,e),[e]),r.flags|=2048,lg(9,OR.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ds(),t=Mr.identifierPrefix;if(Pn){var n=Sl,r=Cl;n=(r&~(1<<32-Ho(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=og++,0")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{s4=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?P0(e):""}function pae(e){switch(e.tag){case 5:return P0(e.type);case 16:return P0("Lazy");case 13:return P0("Suspense");case 19:return P0("SuspenseList");case 0:case 2:case 15:return e=l4(e.type,!1),e;case 11:return e=l4(e.type.render,!1),e;case 1:return e=l4(e.type,!0),e;default:return""}}function I5(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case sh:return"Fragment";case oh:return"Portal";case O5:return"Profiler";case Y7:return"StrictMode";case N5:return"Suspense";case L5:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case EB:return(e.displayName||"Context")+".Consumer";case DB:return(e._context.displayName||"Context")+".Provider";case Z7:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X7:return t=e.displayName||null,t!==null?t:I5(e.type)||"Memo";case Ac:t=e._payload,e=e._init;try{return I5(e(t))}catch{}}return null}function mae(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return I5(t);case 8:return t===Y7?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function lu(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function AB(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function gae(e){var t=AB(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function zy(e){e._valueTracker||(e._valueTracker=gae(e))}function zB(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=AB(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ek(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function B5(e,t){var n=t.checked;return Xn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Az(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=lu(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function FB(e,t){t=t.checked,t!=null&&K7(e,"checked",t,!1)}function R5(e,t){FB(e,t);var n=lu(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?P5(e,t.type,n):t.hasOwnProperty("defaultValue")&&P5(e,t.type,lu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function zz(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function P5(e,t,n){(t!=="number"||ek(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var j0=Array.isArray;function zh(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Fy.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Km(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var fm={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},yae=["Webkit","ms","Moz","O"];Object.keys(fm).forEach(function(e){yae.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fm[t]=fm[e]})});function NB(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||fm.hasOwnProperty(e)&&fm[e]?(""+t).trim():t+"px"}function LB(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=NB(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var _ae=Xn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function q5(e,t){if(t){if(_ae[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Me(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Me(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Me(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Me(62))}}function H5(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var U5=null;function J7(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var W5=null,Fh=null,$h=null;function Mz(e){if(e=Hg(e)){if(typeof W5!="function")throw Error(Me(280));var t=e.stateNode;t&&(t=Uw(t),W5(e.stateNode,e.type,t))}}function IB(e){Fh?$h?$h.push(e):$h=[e]:Fh=e}function BB(){if(Fh){var e=Fh,t=$h;if($h=Fh=null,Mz(e),t)for(e=0;e>>=0,e===0?32:31-(Aae(e)/zae|0)|0}var $y=64,My=4194304;function V0(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ik(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=V0(s):(a&=o,a!==0&&(r=V0(a)))}else o=n&~i,o!==0?r=V0(o):a!==0&&(r=V0(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Vg(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ho(t),e[t]=n}function Oae(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=pm),Vz=String.fromCharCode(32),qz=!1;function iR(e,t){switch(e){case"keyup":return loe.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function aR(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var lh=!1;function uoe(e,t){switch(e){case"compositionend":return aR(t);case"keypress":return t.which!==32?null:(qz=!0,Vz);case"textInput":return e=t.data,e===Vz&&qz?null:e;default:return null}}function doe(e,t){if(lh)return e==="compositionend"||!oC&&iR(e,t)?(e=nR(),$_=rC=Rc=null,lh=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Gz(n)}}function cR(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?cR(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function uR(){for(var e=window,t=ek();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ek(e.document)}return t}function sC(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function koe(e){var t=uR(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&cR(n.ownerDocument.documentElement,n)){if(r!==null&&sC(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=Kz(n,a);var o=Kz(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ch=null,J5=null,gm=null,Q5=!1;function Yz(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Q5||ch==null||ch!==ek(r)||(r=ch,"selectionStart"in r&&sC(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),gm&&eg(gm,r)||(gm=r,r=sk(J5,"onSelect"),0fh||(e.current=ax[fh],ax[fh]=null,fh--)}function An(e,t){fh++,ax[fh]=e.current,e.current=t}var cu={},si=ku(cu),Hi=ku(!1),Rd=cu;function Xh(e,t){var n=e.type.contextTypes;if(!n)return cu;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ui(e){return e=e.childContextTypes,e!=null}function ck(){In(Hi),In(si)}function nF(e,t,n){if(si.current!==cu)throw Error(Me(168));An(si,t),An(Hi,n)}function bR(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Me(108,mae(e)||"Unknown",i));return Xn({},n,r)}function uk(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||cu,Rd=si.current,An(si,e),An(Hi,Hi.current),!0}function rF(e,t,n){var r=e.stateNode;if(!r)throw Error(Me(169));n?(e=bR(e,t,Rd),r.__reactInternalMemoizedMergedChildContext=e,In(Hi),In(si),An(si,e)):In(Hi),An(Hi,n)}var bl=null,Ww=!1,v4=!1;function kR(e){bl===null?bl=[e]:bl.push(e)}function $oe(e){Ww=!0,kR(e)}function wu(){if(!v4&&bl!==null){v4=!0;var e=0,t=yn;try{var n=bl;for(yn=1;e>=o,i-=o,Cl=1<<32-Ho(t)+i|n<$?(R=T,T=null):R=T.sibling;var O=h(w,T,S[$],E);if(O===null){T===null&&(T=R);break}e&&T&&O.alternate===null&&t(w,T),k=a(O,k,$),_===null?A=O:_.sibling=O,_=O,T=R}if($===S.length)return n(w,T),Pn&&Qu(w,$),A;if(T===null){for(;$$?(R=T,T=null):R=T.sibling;var G=h(w,T,O.value,E);if(G===null){T===null&&(T=R);break}e&&T&&G.alternate===null&&t(w,T),k=a(G,k,$),_===null?A=G:_.sibling=G,_=G,T=R}if(O.done)return n(w,T),Pn&&Qu(w,$),A;if(T===null){for(;!O.done;$++,O=S.next())O=f(w,O.value,E),O!==null&&(k=a(O,k,$),_===null?A=O:_.sibling=O,_=O);return Pn&&Qu(w,$),A}for(T=r(w,T);!O.done;$++,O=S.next())O=m(T,w,$,O.value,E),O!==null&&(e&&O.alternate!==null&&T.delete(O.key===null?$:O.key),k=a(O,k,$),_===null?A=O:_.sibling=O,_=O);return e&&T.forEach(function(V){return t(w,V)}),Pn&&Qu(w,$),A}function C(w,k,S,E){if(typeof S=="object"&&S!==null&&S.type===sh&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case Ay:e:{for(var A=S.key,_=k;_!==null;){if(_.key===A){if(A=S.type,A===sh){if(_.tag===7){n(w,_.sibling),k=i(_,S.props.children),k.return=w,w=k;break e}}else if(_.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===Ac&&uF(A)===_.type){n(w,_.sibling),k=i(_,S.props),k.ref=x0(w,_,S),k.return=w,w=k;break e}n(w,_);break}else t(w,_);_=_.sibling}S.type===sh?(k=Sd(S.props.children,w.mode,E,S.key),k.return=w,w=k):(E=P_(S.type,S.key,S.props,null,w.mode,E),E.ref=x0(w,k,S),E.return=w,w=E)}return o(w);case oh:e:{for(_=S.key;k!==null;){if(k.key===_)if(k.tag===4&&k.stateNode.containerInfo===S.containerInfo&&k.stateNode.implementation===S.implementation){n(w,k.sibling),k=i(k,S.children||[]),k.return=w,w=k;break e}else{n(w,k);break}else t(w,k);k=k.sibling}k=z4(S,w.mode,E),k.return=w,w=k}return o(w);case Ac:return _=S._init,C(w,k,_(S._payload),E)}if(j0(S))return g(w,k,S,E);if(_0(S))return b(w,k,S,E);Py(w,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,k!==null&&k.tag===6?(n(w,k.sibling),k=i(k,S),k.return=w,w=k):(n(w,k),k=A4(S,w.mode,E),k.return=w,w=k),o(w)):n(w,k)}return C}var Qh=TR(!0),AR=TR(!1),Ug={},Ds=ku(Ug),ig=ku(Ug),ag=ku(Ug);function gd(e){if(e===Ug)throw Error(Me(174));return e}function gC(e,t){switch(An(ag,t),An(ig,e),An(Ds,Ug),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:V5(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=V5(t,e)}In(Ds),An(Ds,t)}function ep(){In(Ds),In(ig),In(ag)}function zR(e){gd(ag.current);var t=gd(Ds.current),n=V5(t,e.type);t!==n&&(An(ig,e),An(Ds,n))}function yC(e){ig.current===e&&(In(Ds),In(ig))}var Gn=ku(0);function gk(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var x4=[];function _C(){for(var e=0;en?n:4,e(!0);var r=C4.transition;C4.transition={};try{e(!1),t()}finally{yn=n,C4.transition=r}}function WR(){return fo().memoizedState}function Loe(e,t,n){var r=Xc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},GR(e))KR(t,n);else if(n=CR(e,t,n,r),n!==null){var i=ki();Uo(n,e,r,i),YR(n,t,r)}}function Ioe(e,t,n){var r=Xc(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(GR(e))KR(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Zo(s,o)){var l=t.interleaved;l===null?(i.next=i,pC(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=CR(e,t,i,r),n!==null&&(i=ki(),Uo(n,e,r,i),YR(n,t,r))}}function GR(e){var t=e.alternate;return e===Zn||t!==null&&t===Zn}function KR(e,t){ym=yk=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function YR(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,eC(e,n)}}var _k={readContext:uo,useCallback:Xr,useContext:Xr,useEffect:Xr,useImperativeHandle:Xr,useInsertionEffect:Xr,useLayoutEffect:Xr,useMemo:Xr,useReducer:Xr,useRef:Xr,useState:Xr,useDebugValue:Xr,useDeferredValue:Xr,useTransition:Xr,useMutableSource:Xr,useSyncExternalStore:Xr,useId:Xr,unstable_isNewReconciler:!1},Boe={readContext:uo,useCallback:function(e,t){return ds().memoizedState=[e,t===void 0?null:t],e},useContext:uo,useEffect:fF,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,L_(4194308,4,jR.bind(null,t,e),n)},useLayoutEffect:function(e,t){return L_(4194308,4,e,t)},useInsertionEffect:function(e,t){return L_(4,2,e,t)},useMemo:function(e,t){var n=ds();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ds();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Loe.bind(null,Zn,e),[r.memoizedState,e]},useRef:function(e){var t=ds();return e={current:e},t.memoizedState=e},useState:dF,useDebugValue:xC,useDeferredValue:function(e){return ds().memoizedState=e},useTransition:function(){var e=dF(!1),t=e[0];return e=Noe.bind(null,e[1]),ds().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Zn,i=ds();if(Pn){if(n===void 0)throw Error(Me(407));n=n()}else{if(n=t(),Mr===null)throw Error(Me(349));jd&30||MR(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,fF(NR.bind(null,r,a,e),[e]),r.flags|=2048,lg(9,OR.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ds(),t=Mr.identifierPrefix;if(Pn){var n=Sl,r=Cl;n=(r&~(1<<32-Ho(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=og++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[_s]=t,e[rg]=r,iP(e,t,!1,!1),t.stateNode=e;e:{switch(o=H5(n,r),n){case"dialog":Mn("cancel",e),Mn("close",e),i=r;break;case"iframe":case"object":case"embed":Mn("load",e),i=r;break;case"video":case"audio":for(i=0;inp&&(t.flags|=128,r=!0,C0(a,!1),t.lanes=4194304)}else{if(!r)if(e=gk(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),C0(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Pn)return Jr(t),null}else 2*sr()-a.renderingStartTime>np&&n!==1073741824&&(t.flags|=128,r=!0,C0(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=sr(),t.sibling=null,n=Gn.current,An(Gn,r?n&1|2:n&1),t):(Jr(t),null);case 22:case 23:return AC(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ma&1073741824&&(Jr(t),t.subtreeFlags&6&&(t.flags|=8192)):Jr(t),null;case 24:return null;case 25:return null}throw Error(Me(156,t.tag))}function Uoe(e,t){switch(cC(t),t.tag){case 1:return Ui(t.type)&&ck(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ep(),In(Hi),In(si),_C(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return yC(t),null;case 13:if(In(Gn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Me(340));Jh()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return In(Gn),null;case 4:return ep(),null;case 10:return hC(t.type._context),null;case 22:case 23:return AC(),null;case 24:return null;default:return null}}var Vy=!1,ti=!1,Woe=typeof WeakSet=="function"?WeakSet:Set,tt=null;function gh(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){tr(e,t,r)}else n.current=null}function yx(e,t,n){try{n()}catch(r){tr(e,t,r)}}var wF=!1;function Goe(e,t){if(ex=ak,e=uR(),sC(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,s=-1,l=-1,c=0,u=0,f=e,h=null;t:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(s=o+i),f!==a||r!==0&&f.nodeType!==3||(l=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(m=f.firstChild)!==null;)h=f,f=m;for(;;){if(f===e)break t;if(h===n&&++c===i&&(s=o),h===a&&++u===r&&(l=o),(m=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=m}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(tx={focusedElem:e,selectionRange:n},ak=!1,tt=t;tt!==null;)if(t=tt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,tt=e;else for(;tt!==null;){t=tt;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var b=g.memoizedProps,C=g.memoizedState,w=t.stateNode,k=w.getSnapshotBeforeUpdate(t.elementType===t.type?b:No(t.type,b),C);w.__reactInternalSnapshotBeforeUpdate=k}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Me(163))}}catch(E){tr(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,tt=e;break}tt=t.return}return g=wF,wF=!1,g}function _m(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&yx(t,n,a)}i=i.next}while(i!==r)}}function Yw(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function _x(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function sP(e){var t=e.alternate;t!==null&&(e.alternate=null,sP(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_s],delete t[rg],delete t[ix],delete t[Aoe],delete t[zoe])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function lP(e){return e.tag===5||e.tag===3||e.tag===4}function vF(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||lP(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function bx(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=lk));else if(r!==4&&(e=e.child,e!==null))for(bx(e,t,n),e=e.sibling;e!==null;)bx(e,t,n),e=e.sibling}function kx(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(kx(e,t,n),e=e.sibling;e!==null;)kx(e,t,n),e=e.sibling}var Vr=null,Lo=!1;function pc(e,t,n){for(n=n.child;n!==null;)cP(e,t,n),n=n.sibling}function cP(e,t,n){if(Ss&&typeof Ss.onCommitFiberUnmount=="function")try{Ss.onCommitFiberUnmount(jw,n)}catch{}switch(n.tag){case 5:ti||gh(n,t);case 6:var r=Vr,i=Lo;Vr=null,pc(e,t,n),Vr=r,Lo=i,Vr!==null&&(Lo?(e=Vr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Vr.removeChild(n.stateNode));break;case 18:Vr!==null&&(Lo?(e=Vr,n=n.stateNode,e.nodeType===8?w4(e.parentNode,n):e.nodeType===1&&w4(e,n),Jm(e)):w4(Vr,n.stateNode));break;case 4:r=Vr,i=Lo,Vr=n.stateNode.containerInfo,Lo=!0,pc(e,t,n),Vr=r,Lo=i;break;case 0:case 11:case 14:case 15:if(!ti&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&yx(n,t,o),i=i.next}while(i!==r)}pc(e,t,n);break;case 1:if(!ti&&(gh(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){tr(n,t,s)}pc(e,t,n);break;case 21:pc(e,t,n);break;case 22:n.mode&1?(ti=(r=ti)||n.memoizedState!==null,pc(e,t,n),ti=r):pc(e,t,n);break;default:pc(e,t,n)}}function xF(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Woe),t.forEach(function(r){var i=nse.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Fo(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~a}if(r=i,r=sr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Yoe(r/1960))-r,10e?16:e,Pc===null)var r=!1;else{if(e=Pc,Pc=null,wk=0,on&6)throw Error(Me(331));var i=on;for(on|=4,tt=e.current;tt!==null;){var a=tt,o=a.child;if(tt.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lsr()-EC?Cd(e,0):DC|=n),Wi(e,t)}function yP(e,t){t===0&&(e.mode&1?(t=My,My<<=1,!(My&130023424)&&(My=4194304)):t=1);var n=ki();e=Il(e,t),e!==null&&(Vg(e,t,n),Wi(e,n))}function tse(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),yP(e,n)}function nse(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Me(314))}r!==null&&r.delete(t),yP(e,n)}var _P;_P=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Hi.current)Ri=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ri=!1,qoe(e,t,n);Ri=!!(e.flags&131072)}else Ri=!1,Pn&&t.flags&1048576&&wR(t,fk,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;I_(e,t),e=t.pendingProps;var i=Xh(t,si.current);Oh(t,n),i=kC(null,t,r,e,i,n);var a=wC();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ui(r)?(a=!0,uk(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,mC(t),i.updater=Gw,t.stateNode=i,i._reactInternals=t,ux(t,r,e,n),t=hx(null,t,r,!0,a,n)):(t.tag=0,Pn&&a&&lC(t),pi(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(I_(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=ise(r),e=No(r,e),i){case 0:t=fx(null,t,r,e,n);break e;case 1:t=_F(null,t,r,e,n);break e;case 11:t=gF(null,t,r,e,n);break e;case 14:t=yF(null,t,r,No(r.type,e),n);break e}throw Error(Me(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:No(r,i),fx(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:No(r,i),_F(e,t,r,i,n);case 3:e:{if(tP(t),e===null)throw Error(Me(387));r=t.pendingProps,a=t.memoizedState,i=a.element,SR(e,t),mk(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=tp(Error(Me(423)),t),t=bF(e,t,r,n,i);break e}else if(r!==i){i=tp(Error(Me(424)),t),t=bF(e,t,r,n,i);break e}else for(ka=Kc(t.stateNode.containerInfo.firstChild),wa=t,Pn=!0,Bo=null,n=AR(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Jh(),r===i){t=Bl(e,t,n);break e}pi(e,t,r,n)}t=t.child}return t;case 5:return zR(t),e===null&&sx(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,nx(r,i)?o=null:a!==null&&nx(r,a)&&(t.flags|=32),eP(e,t),pi(e,t,o,n),t.child;case 6:return e===null&&sx(t),null;case 13:return nP(e,t,n);case 4:return gC(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Qh(t,null,r,n):pi(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:No(r,i),gF(e,t,r,i,n);case 7:return pi(e,t,t.pendingProps,n),t.child;case 8:return pi(e,t,t.pendingProps.children,n),t.child;case 12:return pi(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,An(hk,r._currentValue),r._currentValue=o,a!==null)if(Zo(a.value,o)){if(a.children===i.children&&!Hi.current){t=Bl(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=Tl(-1,n&-n),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),lx(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(Me(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),lx(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}pi(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Oh(t,n),i=uo(i),r=r(i),t.flags|=1,pi(e,t,r,n),t.child;case 14:return r=t.type,i=No(r,t.pendingProps),i=No(r.type,i),yF(e,t,r,i,n);case 15:return JR(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:No(r,i),I_(e,t),t.tag=1,Ui(r)?(e=!0,uk(t)):e=!1,Oh(t,n),ER(t,r,i),ux(t,r,i,n),hx(null,t,r,!0,e,n);case 19:return rP(e,t,n);case 22:return QR(e,t,n)}throw Error(Me(156,t.tag))};function bP(e,t){return UB(e,t)}function rse(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function io(e,t,n,r){return new rse(e,t,n,r)}function FC(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ise(e){if(typeof e=="function")return FC(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Z7)return 11;if(e===X7)return 14}return 2}function Jc(e,t){var n=e.alternate;return n===null?(n=io(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function P_(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")FC(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case sh:return Sd(n.children,i,a,t);case Y7:o=8,i|=8;break;case O5:return e=io(12,n,t,i|2),e.elementType=O5,e.lanes=a,e;case N5:return e=io(13,n,t,i),e.elementType=N5,e.lanes=a,e;case L5:return e=io(19,n,t,i),e.elementType=L5,e.lanes=a,e;case TB:return Xw(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case DB:o=10;break e;case EB:o=9;break e;case Z7:o=11;break e;case X7:o=14;break e;case Ac:o=16,r=null;break e}throw Error(Me(130,e==null?e:typeof e,""))}return t=io(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Sd(e,t,n,r){return e=io(7,e,r,t),e.lanes=n,e}function Xw(e,t,n,r){return e=io(22,e,r,t),e.elementType=TB,e.lanes=n,e.stateNode={isHidden:!1},e}function A4(e,t,n){return e=io(6,e,null,t),e.lanes=n,e}function z4(e,t,n){return t=io(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ase(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=u4(0),this.expirationTimes=u4(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=u4(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function $C(e,t,n,r,i,a,o,s,l){return e=new ase(e,t,n,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=io(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},mC(a),e}function ose(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(xP)}catch(e){console.error(e)}}xP(),wB.exports=Aa;var Op=wB.exports,FF=Op;$5.createRoot=FF.createRoot,$5.hydrateRoot=FF.hydrateRoot;var CP={exports:{}},bn={};/** +`+a.stack}return{value:e,source:t,stack:i,digest:null}}function E4(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function dx(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var joe=typeof WeakMap=="function"?WeakMap:Map;function ZR(e,t,n){n=Tl(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){kk||(kk=!0,wx=r),dx(e,t)},n}function XR(e,t,n){n=Tl(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){dx(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){dx(e,t),typeof r!="function"&&(Zc===null?Zc=new Set([this]):Zc.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function hF(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new joe;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=tse.bind(null,e,t,n),t.then(e,e))}function pF(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function mF(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Tl(-1,1),t.tag=2,Yc(n,t,1))),n.lanes|=1),e)}var Voe=Gl.ReactCurrentOwner,Ri=!1;function pi(e,t,n,r){t.child=e===null?AR(t,null,n,r):Qh(t,e.child,n,r)}function gF(e,t,n,r,i){n=n.render;var a=t.ref;return Oh(t,i),r=kC(e,t,n,r,a,i),n=wC(),e!==null&&!Ri?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Bl(e,t,i)):(Pn&&n&&lC(t),t.flags|=1,pi(e,t,r,i),t.child)}function yF(e,t,n,r,i){if(e===null){var a=n.type;return typeof a=="function"&&!FC(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,JR(e,t,a,r,i)):(e=P_(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var o=a.memoizedProps;if(n=n.compare,n=n!==null?n:eg,n(o,r)&&e.ref===t.ref)return Bl(e,t,i)}return t.flags|=1,e=Jc(a,r),e.ref=t.ref,e.return=t,t.child=e}function JR(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(eg(a,r)&&e.ref===t.ref)if(Ri=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(Ri=!0);else return t.lanes=e.lanes,Bl(e,t,i)}return fx(e,t,n,r,i)}function QR(e,t,n){var r=t.pendingProps,i=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},An(yh,ma),ma|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,An(yh,ma),ma|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,An(yh,ma),ma|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,An(yh,ma),ma|=r;return pi(e,t,i,n),t.child}function eP(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function fx(e,t,n,r,i){var a=Ui(n)?Rd:si.current;return a=Xh(t,a),Oh(t,i),n=kC(e,t,n,r,a,i),r=wC(),e!==null&&!Ri?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Bl(e,t,i)):(Pn&&r&&lC(t),t.flags|=1,pi(e,t,n,i),t.child)}function _F(e,t,n,r,i){if(Ui(n)){var a=!0;uk(t)}else a=!1;if(Oh(t,i),t.stateNode===null)I_(e,t),ER(t,n,r),ux(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=uo(c):(c=Ui(n)?Rd:si.current,c=Xh(t,c));var u=n.getDerivedStateFromProps,f=typeof u=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==r||l!==c)&&cF(t,o,r,c),zc=!1;var h=t.memoizedState;o.state=h,mk(t,r,o,i),l=t.memoizedState,s!==r||h!==l||Hi.current||zc?(typeof u=="function"&&(cx(t,n,u,r),l=t.memoizedState),(s=zc||lF(t,n,s,r,h,l,c))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=c,r=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,SR(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:No(t.type,s),o.props=c,f=t.pendingProps,h=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=uo(l):(l=Ui(n)?Rd:si.current,l=Xh(t,l));var m=n.getDerivedStateFromProps;(u=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==f||h!==l)&&cF(t,o,r,l),zc=!1,h=t.memoizedState,o.state=h,mk(t,r,o,i);var g=t.memoizedState;s!==f||h!==g||Hi.current||zc?(typeof m=="function"&&(cx(t,n,m,r),g=t.memoizedState),(c=zc||lF(t,n,c,r,h,g,l)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,g,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,g,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),o.props=r,o.state=g,o.context=l,r=c):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return hx(e,t,n,r,a,i)}function hx(e,t,n,r,i,a){eP(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&rF(t,n,!1),Bl(e,t,a);r=t.stateNode,Voe.current=t;var s=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Qh(t,e.child,null,a),t.child=Qh(t,null,s,a)):pi(e,t,s,a),t.memoizedState=r.state,i&&rF(t,n,!0),t.child}function tP(e){var t=e.stateNode;t.pendingContext?nF(e,t.pendingContext,t.pendingContext!==t.context):t.context&&nF(e,t.context,!1),gC(e,t.containerInfo)}function bF(e,t,n,r,i){return Jh(),uC(i),t.flags|=256,pi(e,t,n,r),t.child}var px={dehydrated:null,treeContext:null,retryLane:0};function mx(e){return{baseLanes:e,cachePool:null,transitions:null}}function nP(e,t,n){var r=t.pendingProps,i=Gn.current,a=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),An(Gn,i&1),e===null)return sx(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:"hidden",children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=Xw(o,r,0,null),e=Sd(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=mx(n),t.memoizedState=px,e):CC(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return qoe(e,t,o,r,s,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Jc(i,l),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?a=Jc(s,a):(a=Sd(a,o,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?mx(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=px,r}return a=e.child,e=a.sibling,r=Jc(a,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function CC(e,t){return t=Xw({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function jy(e,t,n,r){return r!==null&&uC(r),Qh(t,e.child,null,n),e=CC(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function qoe(e,t,n,r,i,a,o){if(n)return t.flags&256?(t.flags&=-257,r=E4(Error(Me(422))),jy(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Xw({mode:"visible",children:r.children},i,0,null),a=Sd(a,i,o,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,t.mode&1&&Qh(t,e.child,null,o),t.child.memoizedState=mx(o),t.memoizedState=px,a);if(!(t.mode&1))return jy(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,a=Error(Me(419)),r=E4(a,r,void 0),jy(e,t,o,r)}if(s=(o&e.childLanes)!==0,Ri||s){if(r=Mr,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,Il(e,i),Uo(r,e,i,-1))}return zC(),r=E4(Error(Me(421))),jy(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=nse.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ka=Kc(i.nextSibling),wa=t,Pn=!0,Bo=null,e!==null&&(Xa[Ja++]=Cl,Xa[Ja++]=Sl,Xa[Ja++]=Pd,Cl=e.id,Sl=e.overflow,Pd=t),t=CC(t,r.children),t.flags|=4096,t)}function kF(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),lx(e.return,t,n)}function T4(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function rP(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(pi(e,t,r.children,n),r=Gn.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&kF(e,n,t);else if(e.tag===19)kF(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(An(Gn,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&gk(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),T4(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&gk(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}T4(t,!0,n,null,a);break;case"together":T4(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function I_(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Bl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Vd|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Me(153));if(t.child!==null){for(e=t.child,n=Jc(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Jc(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Hoe(e,t,n){switch(t.tag){case 3:tP(t),Jh();break;case 5:zR(t);break;case 1:Ui(t.type)&&uk(t);break;case 4:gC(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;An(hk,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(An(Gn,Gn.current&1),t.flags|=128,null):n&t.child.childLanes?nP(e,t,n):(An(Gn,Gn.current&1),e=Bl(e,t,n),e!==null?e.sibling:null);An(Gn,Gn.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return rP(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),An(Gn,Gn.current),r)break;return null;case 22:case 23:return t.lanes=0,QR(e,t,n)}return Bl(e,t,n)}var iP,gx,aP,oP;iP=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};gx=function(){};aP=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,gd(Ds.current);var a=null;switch(n){case"input":i=B5(e,i),r=B5(e,r),a=[];break;case"select":i=Xn({},i,{value:void 0}),r=Xn({},r,{value:void 0}),a=[];break;case"textarea":i=j5(e,i),r=j5(e,r),a=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=lk)}q5(n,r);var o;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var s=i[c];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Gm.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var l=r[c];if(s=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(a||(a=[]),a.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(a=a||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(a=a||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Gm.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Mn("scroll",e),a||s===l||(a=[])):(a=a||[]).push(c,l))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}};oP=function(e,t,n,r){n!==r&&(t.flags|=4)};function C0(e,t){if(!Pn)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Jr(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Uoe(e,t,n){var r=t.pendingProps;switch(cC(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Jr(t),null;case 1:return Ui(t.type)&&ck(),Jr(t),null;case 3:return r=t.stateNode,ep(),In(Hi),In(si),_C(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ry(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Bo!==null&&(Cx(Bo),Bo=null))),gx(e,t),Jr(t),null;case 5:yC(t);var i=gd(ag.current);if(n=t.type,e!==null&&t.stateNode!=null)aP(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Me(166));return Jr(t),null}if(e=gd(Ds.current),Ry(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[_s]=t,r[rg]=a,e=(t.mode&1)!==0,n){case"dialog":Mn("cancel",r),Mn("close",r);break;case"iframe":case"object":case"embed":Mn("load",r);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[_s]=t,e[rg]=r,iP(e,t,!1,!1),t.stateNode=e;e:{switch(o=H5(n,r),n){case"dialog":Mn("cancel",e),Mn("close",e),i=r;break;case"iframe":case"object":case"embed":Mn("load",e),i=r;break;case"video":case"audio":for(i=0;inp&&(t.flags|=128,r=!0,C0(a,!1),t.lanes=4194304)}else{if(!r)if(e=gk(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),C0(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Pn)return Jr(t),null}else 2*sr()-a.renderingStartTime>np&&n!==1073741824&&(t.flags|=128,r=!0,C0(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=sr(),t.sibling=null,n=Gn.current,An(Gn,r?n&1|2:n&1),t):(Jr(t),null);case 22:case 23:return AC(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ma&1073741824&&(Jr(t),t.subtreeFlags&6&&(t.flags|=8192)):Jr(t),null;case 24:return null;case 25:return null}throw Error(Me(156,t.tag))}function Woe(e,t){switch(cC(t),t.tag){case 1:return Ui(t.type)&&ck(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ep(),In(Hi),In(si),_C(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return yC(t),null;case 13:if(In(Gn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Me(340));Jh()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return In(Gn),null;case 4:return ep(),null;case 10:return hC(t.type._context),null;case 22:case 23:return AC(),null;case 24:return null;default:return null}}var Vy=!1,ti=!1,Goe=typeof WeakSet=="function"?WeakSet:Set,tt=null;function gh(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){tr(e,t,r)}else n.current=null}function yx(e,t,n){try{n()}catch(r){tr(e,t,r)}}var wF=!1;function Koe(e,t){if(ex=ak,e=uR(),sC(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,s=-1,l=-1,c=0,u=0,f=e,h=null;t:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(s=o+i),f!==a||r!==0&&f.nodeType!==3||(l=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(m=f.firstChild)!==null;)h=f,f=m;for(;;){if(f===e)break t;if(h===n&&++c===i&&(s=o),h===a&&++u===r&&(l=o),(m=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=m}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(tx={focusedElem:e,selectionRange:n},ak=!1,tt=t;tt!==null;)if(t=tt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,tt=e;else for(;tt!==null;){t=tt;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var b=g.memoizedProps,C=g.memoizedState,w=t.stateNode,k=w.getSnapshotBeforeUpdate(t.elementType===t.type?b:No(t.type,b),C);w.__reactInternalSnapshotBeforeUpdate=k}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Me(163))}}catch(E){tr(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,tt=e;break}tt=t.return}return g=wF,wF=!1,g}function _m(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&yx(t,n,a)}i=i.next}while(i!==r)}}function Yw(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function _x(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function sP(e){var t=e.alternate;t!==null&&(e.alternate=null,sP(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_s],delete t[rg],delete t[ix],delete t[zoe],delete t[Foe])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function lP(e){return e.tag===5||e.tag===3||e.tag===4}function vF(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||lP(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function bx(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=lk));else if(r!==4&&(e=e.child,e!==null))for(bx(e,t,n),e=e.sibling;e!==null;)bx(e,t,n),e=e.sibling}function kx(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(kx(e,t,n),e=e.sibling;e!==null;)kx(e,t,n),e=e.sibling}var Vr=null,Lo=!1;function pc(e,t,n){for(n=n.child;n!==null;)cP(e,t,n),n=n.sibling}function cP(e,t,n){if(Ss&&typeof Ss.onCommitFiberUnmount=="function")try{Ss.onCommitFiberUnmount(jw,n)}catch{}switch(n.tag){case 5:ti||gh(n,t);case 6:var r=Vr,i=Lo;Vr=null,pc(e,t,n),Vr=r,Lo=i,Vr!==null&&(Lo?(e=Vr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Vr.removeChild(n.stateNode));break;case 18:Vr!==null&&(Lo?(e=Vr,n=n.stateNode,e.nodeType===8?w4(e.parentNode,n):e.nodeType===1&&w4(e,n),Jm(e)):w4(Vr,n.stateNode));break;case 4:r=Vr,i=Lo,Vr=n.stateNode.containerInfo,Lo=!0,pc(e,t,n),Vr=r,Lo=i;break;case 0:case 11:case 14:case 15:if(!ti&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&yx(n,t,o),i=i.next}while(i!==r)}pc(e,t,n);break;case 1:if(!ti&&(gh(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){tr(n,t,s)}pc(e,t,n);break;case 21:pc(e,t,n);break;case 22:n.mode&1?(ti=(r=ti)||n.memoizedState!==null,pc(e,t,n),ti=r):pc(e,t,n);break;default:pc(e,t,n)}}function xF(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Goe),t.forEach(function(r){var i=rse.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Fo(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~a}if(r=i,r=sr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Zoe(r/1960))-r,10e?16:e,Pc===null)var r=!1;else{if(e=Pc,Pc=null,wk=0,on&6)throw Error(Me(331));var i=on;for(on|=4,tt=e.current;tt!==null;){var a=tt,o=a.child;if(tt.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lsr()-EC?Cd(e,0):DC|=n),Wi(e,t)}function yP(e,t){t===0&&(e.mode&1?(t=My,My<<=1,!(My&130023424)&&(My=4194304)):t=1);var n=ki();e=Il(e,t),e!==null&&(Vg(e,t,n),Wi(e,n))}function nse(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),yP(e,n)}function rse(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Me(314))}r!==null&&r.delete(t),yP(e,n)}var _P;_P=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Hi.current)Ri=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ri=!1,Hoe(e,t,n);Ri=!!(e.flags&131072)}else Ri=!1,Pn&&t.flags&1048576&&wR(t,fk,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;I_(e,t),e=t.pendingProps;var i=Xh(t,si.current);Oh(t,n),i=kC(null,t,r,e,i,n);var a=wC();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ui(r)?(a=!0,uk(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,mC(t),i.updater=Gw,t.stateNode=i,i._reactInternals=t,ux(t,r,e,n),t=hx(null,t,r,!0,a,n)):(t.tag=0,Pn&&a&&lC(t),pi(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(I_(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=ase(r),e=No(r,e),i){case 0:t=fx(null,t,r,e,n);break e;case 1:t=_F(null,t,r,e,n);break e;case 11:t=gF(null,t,r,e,n);break e;case 14:t=yF(null,t,r,No(r.type,e),n);break e}throw Error(Me(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:No(r,i),fx(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:No(r,i),_F(e,t,r,i,n);case 3:e:{if(tP(t),e===null)throw Error(Me(387));r=t.pendingProps,a=t.memoizedState,i=a.element,SR(e,t),mk(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=tp(Error(Me(423)),t),t=bF(e,t,r,n,i);break e}else if(r!==i){i=tp(Error(Me(424)),t),t=bF(e,t,r,n,i);break e}else for(ka=Kc(t.stateNode.containerInfo.firstChild),wa=t,Pn=!0,Bo=null,n=AR(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Jh(),r===i){t=Bl(e,t,n);break e}pi(e,t,r,n)}t=t.child}return t;case 5:return zR(t),e===null&&sx(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,nx(r,i)?o=null:a!==null&&nx(r,a)&&(t.flags|=32),eP(e,t),pi(e,t,o,n),t.child;case 6:return e===null&&sx(t),null;case 13:return nP(e,t,n);case 4:return gC(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Qh(t,null,r,n):pi(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:No(r,i),gF(e,t,r,i,n);case 7:return pi(e,t,t.pendingProps,n),t.child;case 8:return pi(e,t,t.pendingProps.children,n),t.child;case 12:return pi(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,An(hk,r._currentValue),r._currentValue=o,a!==null)if(Zo(a.value,o)){if(a.children===i.children&&!Hi.current){t=Bl(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=Tl(-1,n&-n),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),lx(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(Me(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),lx(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}pi(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Oh(t,n),i=uo(i),r=r(i),t.flags|=1,pi(e,t,r,n),t.child;case 14:return r=t.type,i=No(r,t.pendingProps),i=No(r.type,i),yF(e,t,r,i,n);case 15:return JR(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:No(r,i),I_(e,t),t.tag=1,Ui(r)?(e=!0,uk(t)):e=!1,Oh(t,n),ER(t,r,i),ux(t,r,i,n),hx(null,t,r,!0,e,n);case 19:return rP(e,t,n);case 22:return QR(e,t,n)}throw Error(Me(156,t.tag))};function bP(e,t){return UB(e,t)}function ise(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function io(e,t,n,r){return new ise(e,t,n,r)}function FC(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ase(e){if(typeof e=="function")return FC(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Z7)return 11;if(e===X7)return 14}return 2}function Jc(e,t){var n=e.alternate;return n===null?(n=io(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function P_(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")FC(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case sh:return Sd(n.children,i,a,t);case Y7:o=8,i|=8;break;case O5:return e=io(12,n,t,i|2),e.elementType=O5,e.lanes=a,e;case N5:return e=io(13,n,t,i),e.elementType=N5,e.lanes=a,e;case L5:return e=io(19,n,t,i),e.elementType=L5,e.lanes=a,e;case TB:return Xw(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case DB:o=10;break e;case EB:o=9;break e;case Z7:o=11;break e;case X7:o=14;break e;case Ac:o=16,r=null;break e}throw Error(Me(130,e==null?e:typeof e,""))}return t=io(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Sd(e,t,n,r){return e=io(7,e,r,t),e.lanes=n,e}function Xw(e,t,n,r){return e=io(22,e,r,t),e.elementType=TB,e.lanes=n,e.stateNode={isHidden:!1},e}function A4(e,t,n){return e=io(6,e,null,t),e.lanes=n,e}function z4(e,t,n){return t=io(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ose(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=u4(0),this.expirationTimes=u4(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=u4(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function $C(e,t,n,r,i,a,o,s,l){return e=new ose(e,t,n,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=io(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},mC(a),e}function sse(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(xP)}catch(e){console.error(e)}}xP(),wB.exports=Aa;var Op=wB.exports,FF=Op;$5.createRoot=FF.createRoot,$5.hydrateRoot=FF.hydrateRoot;var CP={exports:{}},bn={};/** * @license React * react-is.production.min.js * @@ -45,24 +45,24 @@ Error generating stack: `+a.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var LC=Symbol.for("react.element"),IC=Symbol.for("react.portal"),nv=Symbol.for("react.fragment"),rv=Symbol.for("react.strict_mode"),iv=Symbol.for("react.profiler"),av=Symbol.for("react.provider"),ov=Symbol.for("react.context"),dse=Symbol.for("react.server_context"),sv=Symbol.for("react.forward_ref"),lv=Symbol.for("react.suspense"),cv=Symbol.for("react.suspense_list"),uv=Symbol.for("react.memo"),dv=Symbol.for("react.lazy"),fse=Symbol.for("react.offscreen"),SP;SP=Symbol.for("react.module.reference");function ko(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case LC:switch(e=e.type,e){case nv:case iv:case rv:case lv:case cv:return e;default:switch(e=e&&e.$$typeof,e){case dse:case ov:case sv:case dv:case uv:case av:return e;default:return t}}case IC:return t}}}bn.ContextConsumer=ov;bn.ContextProvider=av;bn.Element=LC;bn.ForwardRef=sv;bn.Fragment=nv;bn.Lazy=dv;bn.Memo=uv;bn.Portal=IC;bn.Profiler=iv;bn.StrictMode=rv;bn.Suspense=lv;bn.SuspenseList=cv;bn.isAsyncMode=function(){return!1};bn.isConcurrentMode=function(){return!1};bn.isContextConsumer=function(e){return ko(e)===ov};bn.isContextProvider=function(e){return ko(e)===av};bn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===LC};bn.isForwardRef=function(e){return ko(e)===sv};bn.isFragment=function(e){return ko(e)===nv};bn.isLazy=function(e){return ko(e)===dv};bn.isMemo=function(e){return ko(e)===uv};bn.isPortal=function(e){return ko(e)===IC};bn.isProfiler=function(e){return ko(e)===iv};bn.isStrictMode=function(e){return ko(e)===rv};bn.isSuspense=function(e){return ko(e)===lv};bn.isSuspenseList=function(e){return ko(e)===cv};bn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===nv||e===iv||e===rv||e===lv||e===cv||e===fse||typeof e=="object"&&e!==null&&(e.$$typeof===dv||e.$$typeof===uv||e.$$typeof===av||e.$$typeof===ov||e.$$typeof===sv||e.$$typeof===SP||e.getModuleId!==void 0)};bn.typeOf=ko;CP.exports=bn;var DP=CP.exports;function hse(e){function t(ue,I,be,ze,J){for(var Ve=0,ye=0,We=0,Pe=0,Ge,Xe,Kt=0,Et=0,mt,K=mt=Ge=0,ie=0,he=0,Ie=0,xe=0,ke=be.length,Be=ke-1,dt,Re="",zt="",Ir="",pe="",Ce;ieGe)&&(xe=(Re=Re.replace(" ",":")).length),0ze&&(ze=(I=I.trim()).charCodeAt(0)),ze){case 38:return I.replace(w,"$1"+ue.trim());case 58:return ue.trim()+I.replace(w,"$1"+ue.trim());default:if(0<1*be&&0ye.charCodeAt(8))break;case 115:J=J.replace(ye,"-webkit-"+ye)+";"+J;break;case 207:case 102:J=J.replace(ye,"-webkit-"+(102be.charCodeAt(0)&&(be=be.trim()),de=be,be=[de],0Ge)&&(xe=(Re=Re.replace(" ",":")).length),0ze&&(ze=(I=I.trim()).charCodeAt(0)),ze){case 38:return I.replace(w,"$1"+ue.trim());case 58:return ue.trim()+I.replace(w,"$1"+ue.trim());default:if(0<1*be&&0ye.charCodeAt(8))break;case 115:J=J.replace(ye,"-webkit-"+ye)+";"+J;break;case 207:case 102:J=J.replace(ye,"-webkit-"+(102be.charCodeAt(0)&&(be=be.trim()),de=be,be=[de],01?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var Mse=function(){function e(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var t=e.prototype;return t.indexOfGroup=function(n){for(var r=0,i=0;i=this.groupSizes.length){for(var i=this.groupSizes,a=i.length,o=a;n>=o;)(o<<=1)<0&&Hd(16,""+n);this.groupSizes=new Uint32Array(o),this.groupSizes.set(i),this.length=o;for(var s=a;s=this.length||this.groupSizes[n]===0)return r;for(var i=this.groupSizes[n],a=this.indexOfGroup(n),o=a+i,s=a;s=wm&&(wm=t+1),j_.set(e,t),Sk.set(t,e)},Lse="style["+ip+'][data-styled-version="5.3.11"]',Ise=new RegExp("^"+ip+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Bse=function(e,t,n){for(var r,i=n.split(","),a=0,o=i.length;a=0;c--){var u=l[c];if(u&&u.nodeType===1&&u.hasAttribute(ip))return u}}(n),a=i!==void 0?i.nextSibling:null;r.setAttribute(ip,"active"),r.setAttribute("data-styled-version","5.3.11");var o=Pse();return o&&r.setAttribute("nonce",o),n.insertBefore(r,a),r},jse=function(){function e(n){var r=this.element=FP(n);r.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var a=document.styleSheets,o=0,s=a.length;o=0){var i=document.createTextNode(r),a=this.nodes[n];return this.element.insertBefore(i,a||null),this.length++,!0}return!1},t.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},t.getRule=function(n){return n0&&(f+=h+",")}),a+=""+c+u+'{content:"'+f+`"}/*!sc*/ -`}}}return a}(this)},e}(),Use=/(a)(d)/gi,RF=function(e){return String.fromCharCode(e+(e>25?39:97))};function Dx(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=RF(t%52)+n;return(RF(t%52)+n).replace(Use,"$1-$2")}var _h=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},MP=function(e){return _h(5381,e)};function Wse(e){for(var t=0;t>>0);if(!n.hasNameForId(i,s)){var l=r(o,"."+s,void 0,i);n.insertRules(i,s,l)}a.push(s),this.staticRulesId=s}else{for(var c=this.rules.length,u=_h(this.baseHash,r.hash),f="",h=0;h>>0);if(!n.hasNameForId(i,C)){var w=r(f,"."+C,void 0,i);n.insertRules(i,C,w)}a.push(C)}}return a.join(" ")},e}(),Yse=/^\s*\/\/.*$/gm,Zse=[":","[",".","#"];function Xse(e){var t,n,r,i,a=e===void 0?Qc:e,o=a.options,s=o===void 0?Qc:o,l=a.plugins,c=l===void 0?Ck:l,u=new hse(s),f=[],h=function(b){function C(w){if(w)try{b(w+"}")}catch{}}return function(w,k,S,E,A,_,T,$,R,O){switch(w){case 1:if(R===0&&k.charCodeAt(0)===64)return b(k+";"),"";break;case 2:if($===0)return k+"/*|*/";break;case 3:switch($){case 102:case 112:return b(S[0]+k),"";default:return k+(O===0?"/*|*/":"")}case-2:k.split("/*|*/}").forEach(C)}}}(function(b){f.push(b)}),m=function(b,C,w){return C===0&&Zse.indexOf(w[n.length])!==-1||w.match(i)?b:"."+t};function g(b,C,w,k){k===void 0&&(k="&");var S=b.replace(Yse,""),E=C&&w?w+" "+C+" { "+S+" }":S;return t=k,n=C,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),u(w||!C?"":C,E)}return u.use([].concat(c,[function(b,C,w){b===2&&w.length&&w[0].lastIndexOf(n)>0&&(w[0]=w[0].replace(r,m))},h,function(b){if(b===-2){var C=f;return f=[],C}}])),g.hash=c.length?c.reduce(function(b,C){return C.name||Hd(15),_h(b,C.name)},5381).toString():"",g}var OP=cn.createContext();OP.Consumer;var NP=cn.createContext(),Jse=(NP.Consumer,new $P),Ex=Xse();function Qse(){return F.useContext(OP)||Jse}function ele(){return F.useContext(NP)||Ex}var LP=function(){function e(t,n){var r=this;this.inject=function(i,a){a===void 0&&(a=Ex);var o=r.name+a.hash;i.hasNameForId(r.id,o)||i.insertRules(r.id,o,a(r.rules,o,"@keyframes"))},this.toString=function(){return Hd(12,String(r.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=n}return e.prototype.getName=function(t){return t===void 0&&(t=Ex),this.name+t.hash},e}(),tle=/([A-Z])/,nle=/([A-Z])/g,rle=/^ms-/,ile=function(e){return"-"+e.toLowerCase()};function PF(e){return tle.test(e)?e.replace(nle,ile).replace(rle,"-ms-"):e}var jF=function(e){return e==null||e===!1||e===""};function ap(e,t,n,r){if(Array.isArray(e)){for(var i,a=[],o=0,s=e.length;o1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,sle=/(^-|-$)/g;function F4(e){return e.replace(ole,"-").replace(sle,"")}var IP=function(e){return Dx(MP(e)>>>0)};function Wy(e){return typeof e=="string"&&!0}var Tx=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},lle=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function cle(e,t,n){var r=e[n];Tx(t)&&Tx(r)?BP(r,t):e[n]=t}function BP(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(O[$]=_[$]);return O}(t,["componentId"]),A=S&&S+"-"+(Wy(k)?k:F4(IF(k)));return RP(k,ks({},E,{attrs:h,componentId:A}),n)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(k){this._foldedDefaultProps=r?BP({},e.defaultProps,k):k}}),Object.defineProperty(g,"toString",{value:function(){return"."+g.styledComponentId}}),i&&Fse(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),g}var Ax=function(e){return function t(n,r,i){if(i===void 0&&(i=Qc),!DP.isValidElementType(r))return Hd(1,String(r));var a=function(){return n(r,i,Tn.apply(void 0,arguments))};return a.withConfig=function(o){return t(n,r,ks({},i,{},o))},a.attrs=function(o){return t(n,r,ks({},i,{attrs:Array.prototype.concat(i.attrs,o).filter(Boolean)}))},a}(RP,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){Ax[e]=Ax(e)});function PP(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{const{dom:e,editor:t,setLoading:n,editorFactory:r}=F.useContext(vv),i=F.useRef(null);return F.useEffect(()=>{const a=i.current;if(!r||!a)return;e.current=a;const o=r(a);if(o)return n(!0),o.create().then(s=>{t.current=s}).finally(()=>{n(!1)}).catch(console.error),()=>{var s;(s=t.current)==null||s.destroy()}},[e,t,r,n]),i},hle=()=>{const e=fle();return cn.createElement("div",{"data-milkdown-root":!0,ref:e})},ple=({children:e})=>{const t=F.useRef(void 0),[n,r]=F.useState(void 0),i=F.useRef(),[a,o]=F.useState(!0),s=F.useMemo(()=>({loading:a,dom:t,editor:i,setLoading:o,editorFactory:n,setEditorFactory:r}),[a,n]);return cn.createElement(vv.Provider,{value:s},e)},mle=(e,t=[])=>{const n=F.useContext(vv),r=F.useCallback(e,t);return F.useLayoutEffect(()=>{n.setEditorFactory(()=>r)},[n,r]),{loading:n.loading,get:()=>n.editor.current}},gle=()=>{const e=F.useContext(vv),t=F.useCallback(()=>e.editor.current,[e.editor]);return[e.loading,t]};var yle=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},jP=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},zx=(e,t,n)=>(yle(e,t,"access private method"),n),V_,Fx;let _le=class{constructor({node:t,view:n,getPos:r,decorations:i,innerDecorations:a,options:o}){jP(this,V_),this.selected=!1,this.selectNode=()=>{var s,l;this.selected=!0,(l=(s=this.options).selectNode)==null||l.call(s)},this.deselectNode=()=>{var s,l;this.selected=!1,(l=(s=this.options).deselectNode)==null||l.call(s)},this.shouldUpdate=s=>!(s.type!==this.node.type||s.sameMarkup(this.node)&&s.content.eq(this.node.content)),this.update=(s,l,c)=>{var u,f;const h=this.options.update;let m;return h&&(m=h(s,l,c)),typeof m!="boolean"&&(m=this.shouldUpdate(s)),this.node=s,this.decorations=l,this.innerDecorations=c,m&&((f=(u=this.options).onUpdate)==null||f.call(u)),m},this.shouldIgnoreMutation=s=>!this.dom||!this.contentDOM||this.node.isLeaf||this.node.isAtom?!0:s.type==="selection"?!1:this.contentDOM===s.target&&s.type==="attributes"?!0:!this.contentDOM.contains(s.target),this.ignoreMutation=s=>{if(!this.dom||!this.contentDOM)return!0;let l;const c=this.options.ignoreMutation;return c&&(l=c(s)),typeof l!="boolean"&&(l=this.shouldIgnoreMutation(s)),l},this.destroy=()=>{var s,l,c;(l=(s=this.options).destroy)==null||l.call(s),this.dom.remove(),(c=this.contentDOM)==null||c.remove()},this.setAttrs=s=>{const{dispatch:l,state:c}=this.view,u=this.getPos();if(typeof u=="number")return l(c.tr.setNodeMarkup(u,void 0,{...this.node.attrs,...s}))},this.node=t,this.view=n,this.getPos=r,this.decorations=i,this.innerDecorations=a,this.options=o,this.dom=this.createDOM(o.as),this.contentDOM=t.isLeaf?null:this.createContentDOM(o.contentAs),this.dom.setAttribute("data-node-view-root","true"),this.contentDOM&&(this.contentDOM.setAttribute("data-node-view-content","true"),this.contentDOM.style.whiteSpace="inherit"),this.setSelection=o.setSelection,this.stopEvent=o.stopEvent}createDOM(t){return zx(this,V_,Fx).call(this,t)}createContentDOM(t){return zx(this,V_,Fx).call(this,t)}get component(){return this.options.component}};V_=new WeakSet,Fx=function(e){const{node:t}=this;return e==null?document.createElement(t.isInline?"span":"div"):e instanceof HTMLElement?e:e instanceof Function?e(t):document.createElement(e)};let ble=class{constructor(t){this.view=t.view,this.options=t.options}get component(){return this.options.component}get root(){var t,n;let r=(n=(t=this.options).root)==null?void 0:n.call(t,this.view.dom);return r||(r=this.view.dom.parentElement??document.body),r}update(t,n){var r,i;this.view=t,this.prevState=n,(i=(r=this.options).update)==null||i.call(r,t,n)}destroy(){var t,n;(n=(t=this.options).destroy)==null||n.call(t)}};var $x,VP;let kle=class{constructor({pos:t,spec:n,options:r}){jP(this,$x),this.pos=t,this.options=r,this.spec=n,this.dom=zx(this,$x,VP).call(this,r.as),this.dom.setAttribute("data-widget-view-root","true")}bind(t,n){this.view=t,this.getPos=n}get component(){return this.options.component}};$x=new WeakSet,VP=function(e){return e instanceof HTMLElement?e:document.createElement(e)};let wle=e=>crypto.getRandomValues(new Uint8Array(e)),vle=(e,t,n)=>{let r=(2<{let o="";for(;;){let s=n(i),l=i;for(;l--;)if(o+=e[s[l]&r]||"",o.length===a)return o}}},qP=(e,t=21)=>vle(e,t,wle),UC=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");function qr(e){this.content=e}qr.prototype={constructor:qr,find:function(e){for(var t=0;t>1}};qr.from=function(e){if(e instanceof qr)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new qr(t)};function HP(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a){n+=i.nodeSize;continue}if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){for(let o=0;i.text[o]==a.text[o];o++)n++;return n}if(i.content.size||a.content.size){let o=HP(i.content,a.content,n+1);if(o!=null)return o}n+=i.nodeSize}}function UP(e,t,n,r){for(let i=e.childCount,a=t.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let o=e.child(--i),s=t.child(--a),l=o.nodeSize;if(o==s){n-=l,r-=l;continue}if(!o.sameMarkup(s))return{a:n,b:r};if(o.isText&&o.text!=s.text){let c=0,u=Math.min(o.text.length,s.text.length);for(;ct&&r(l,i+s,a||null,o)!==!1&&l.content.size){let u=s+1;l.nodesBetween(Math.max(0,t-u),Math.min(l.content.size,n-u),r,i+u)}s=c}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,n,r,i){let a="",o=!0;return this.nodesBetween(t,n,(s,l)=>{s.isText?(a+=s.text.slice(Math.max(t,l)-l,n-l),o=!r):s.isLeaf?(i?a+=typeof i=="function"?i(s):i:s.type.spec.leafText&&(a+=s.type.spec.leafText(s)),o=!r):!o&&s.isBlock&&(a+=r,o=!0)},0),a}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);at)for(let a=0,o=0;ot&&((on)&&(s.isText?s=s.cut(Math.max(0,t-o),Math.min(s.text.length,n-o)):s=s.cut(Math.max(0,t-o-1),Math.min(s.content.size,n-o-1))),r.push(s),i+=s.nodeSize),o=l}return new Ee(r,i)}cutByIndex(t,n){return t==n?Ee.empty:t==0&&n==this.content.length?this:new Ee(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new Ee(i,a)}addToStart(t){return new Ee([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new Ee(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let n=0;nthis.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let r=0,i=0;;r++){let a=this.child(r),o=i+a.nodeSize;if(o>=t)return o==t||n>0?Gy(r+1,o):Gy(r,i);i=o}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,n){if(!n)return Ee.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new Ee(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return Ee.empty;let n,r=0;for(let i=0;ithis.type.rank&&(n||(n=t.slice(0,i)),n.push(this),r=!0),n&&n.push(a)}}return n||(n=t.slice()),r||n.push(this),n}removeFromSet(t){for(let n=0;nr.type.rank-i.type.rank),n}}rn.none=[];class Ek extends Error{}class Ue{constructor(t,n,r){this.content=t,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=GP(this.content,t+this.openStart,n);return r&&new Ue(r,this.openStart,this.openEnd)}removeBetween(t,n){return new Ue(WP(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,n){if(!n)return Ue.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new Ue(Ee.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let a=t.firstChild;a&&!a.isLeaf&&(n||!a.type.spec.isolating);a=a.firstChild)r++;for(let a=t.lastChild;a&&!a.isLeaf&&(n||!a.type.spec.isolating);a=a.lastChild)i++;return new Ue(t,r,i)}}Ue.empty=new Ue(Ee.empty,0,0);function WP(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(r!=o)throw new RangeError("Removing non-flat range");return e.replaceChild(r,a.copy(WP(a.content,t-i-1,n-i-1)))}function GP(e,t,n,r){let{index:i,offset:a}=e.findIndex(t),o=e.maybeChild(i);if(a==t||o.isText)return r&&!r.canReplace(i,i,n)?null:e.cut(0,t).append(n).append(e.cut(t));let s=GP(o.content,t-a-1,n);return s&&e.replaceChild(i,o.copy(s))}function xle(e,t,n){if(n.openStart>e.depth)throw new Ek("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new Ek("Inconsistent open depths");return KP(e,t,n,0)}function KP(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function vm(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(Dd(e.nodeAfter,r),a++));for(let s=a;si&&Mx(e,t,i+1),o=r.depth>i&&Mx(n,r,i+1),s=[];return vm(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(YP(a,o),Dd(Ed(a,ZP(e,t,n,r,i+1)),s)):(a&&Dd(Ed(a,Tk(e,t,i+1)),s),vm(t,n,i,s),o&&Dd(Ed(o,Tk(n,r,i+1)),s)),vm(r,null,i,s),new Ee(s)}function Tk(e,t,n){let r=[];if(vm(null,e,n,r),e.depth>n){let i=Mx(e,t,n+1);Dd(Ed(i,Tk(e,t,n+1)),r)}return vm(t,null,n,r),new Ee(r)}function Cle(e,t){let n=t.depth-e.openStart,i=t.node(n).copy(e.content);for(let a=n-1;a>=0;a--)i=t.node(a).copy(Ee.from(i));return{start:i.resolveNoCache(e.openStart+n),end:i.resolveNoCache(i.content.size-e.openEnd-n)}}class dg{constructor(t,n,r){this.pos=t,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(t){return t==null?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[this.resolveDepth(t)*3]}index(t){return this.path[this.resolveDepth(t)*3+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&!this.textOffset?0:1)}start(t){return t=this.resolveDepth(t),t==0?0:this.path[t*3-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]}after(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]+this.path[t*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,n=this.index(this.depth);if(n==t.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=t.child(n);return r?t.child(n).cut(r):i}get nodeBefore(){let t=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(t).cut(0,n):t==0?null:this.parent.child(t-1)}posAtIndex(t,n){n=this.resolveDepth(n);let r=this.path[n*3],i=n==0?0:this.path[n*3-1]+1;for(let a=0;a0;n--)if(this.start(n)<=t&&this.end(n)>=t)return n;return 0}blockRange(t=this,n){if(t.pos=0;r--)if(t.pos<=this.end(r)&&(!n||n(this.node(r))))return new Ak(this,t,r);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos=0&&n<=t.content.size))throw new RangeError("Position "+n+" out of range");let r=[],i=0,a=n;for(let o=t;;){let{index:s,offset:l}=o.content.findIndex(a),c=a-l;if(r.push(o,s,i+l),!c||(o=o.child(s),o.isText))break;a=c-1,i+=l+1}return new dg(n,r,a)}static resolveCached(t,n){for(let i=0;it&&this.nodesBetween(t,n,a=>(r.isInSet(a.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),XP(this.marks,t)}contentMatchAt(t){let n=this.type.contentMatch.matchFragment(this.content,0,t);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(t,n,r=Ee.empty,i=0,a=r.childCount){let o=this.contentMatchAt(t).matchFragment(r,i,a),s=o&&o.matchFragment(this.content,n);if(!s||!s.validEnd)return!1;for(let l=i;ln.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let t={type:this.type.name};for(let n in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(n=>n.toJSON())),t}static fromJSON(t,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r=null;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(t.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return t.text(n.text,r)}let i=Ee.fromJSON(t,n.content);return t.nodeType(n.type).create(n.attrs,i,r)}}Wo.prototype.text=void 0;let Ele=class Ox extends Wo{constructor(t,n,r,i){if(super(t,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):XP(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,n){return this.text.slice(t,n)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new Ox(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new Ox(this.type,this.attrs,t,this.marks)}cut(t=0,n=this.text.length){return t==0&&n==this.text.length?this:this.withText(this.text.slice(t,n))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}};function XP(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class Ud{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new Tle(t,n);if(r.next==null)return Ud.empty;let i=JP(r);r.next&&r.err("Unexpected trailing text");let a=Nle(Ole(i));return Lle(a,r),a}matchType(t){for(let n=0;nc.createAndFill()));for(let c=0;c=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];function n(r){t.push(r);for(let i=0;i{let a=i+(r.validEnd?"*":" ")+" ";for(let o=0;o"+t.indexOf(r.next[o].next);return a}).join(` -`)}}Ud.empty=new Ud(!0);class Tle{constructor(t,n){this.string=t,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function JP(e){let t=[];do t.push(Ale(e));while(e.eat("|"));return t.length==1?t[0]:{type:"choice",exprs:t}}function Ale(e){let t=[];do t.push(zle(e));while(e.next&&e.next!=")"&&e.next!="|");return t.length==1?t[0]:{type:"seq",exprs:t}}function zle(e){let t=Mle(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else if(e.eat("{"))t=Fle(e,t);else break;return t}function qF(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function Fle(e,t){let n=qF(e),r=n;return e.eat(",")&&(e.next!="}"?r=qF(e):r=-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function $le(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let a in n){let o=n[a];o.groups.indexOf(t)>-1&&i.push(o)}return i.length==0&&e.err("No node type or group '"+t+"' found"),i}function Mle(e){if(e.eat("(")){let t=JP(e);return e.eat(")")||e.err("Missing closing paren"),t}else if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let t=$le(e,e.next).map(n=>(e.inline==null?e.inline=n.isInline:e.inline!=n.isInline&&e.err("Mixing inline and block content"),{type:"name",value:n}));return e.pos++,t.length==1?t[0]:{type:"choice",exprs:t}}}function Ole(e){let t=[[]];return i(a(e,0),n()),t;function n(){return t.push([])-1}function r(o,s,l){let c={term:l,to:s};return t[o].push(c),c}function i(o,s){o.forEach(l=>l.to=s)}function a(o,s){if(o.type=="choice")return o.exprs.reduce((l,c)=>l.concat(a(c,s)),[]);if(o.type=="seq")for(let l=0;;l++){let c=a(o.exprs[l],s);if(l==o.exprs.length-1)return c;i(c,s=n())}else if(o.type=="star"){let l=n();return r(s,l),i(a(o.expr,l),l),[r(l)]}else if(o.type=="plus"){let l=n();return i(a(o.expr,s),l),i(a(o.expr,l),l),[r(l)]}else{if(o.type=="opt")return[r(s)].concat(a(o.expr,s));if(o.type=="range"){let l=s;for(let c=0;c{e[o].forEach(({term:s,to:l})=>{if(!s)return;let c;for(let u=0;u{c||i.push([s,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let a=t[r.join(",")]=new Ud(r.indexOf(e.length-1)>-1);for(let o=0;o-1}allowsMarks(t){if(this.markSet==null)return!0;for(let n=0;nr[a]=new rj(a,n,o));let i=n.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let a in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};class Ile{constructor(t){this.hasDefault=Object.prototype.hasOwnProperty.call(t,"default"),this.default=t.default}get isRequired(){return!this.hasDefault}}class xv{constructor(t,n,r,i){this.name=t,this.rank=n,this.schema=r,this.spec=i,this.attrs=nj(i.attrs),this.excluded=null;let a=ej(this.attrs);this.instance=a?new rn(this,a):null}create(t=null){return!t&&this.instance?this.instance:new rn(this,tj(this.attrs,t))}static compile(t,n){let r=Object.create(null),i=0;return t.forEach((a,o)=>r[a]=new xv(a,i++,n,o)),r}removeFromSet(t){for(var n=0;n-1}}let Ble=class{constructor(t){this.cached=Object.create(null);let n=this.spec={};for(let i in t)n[i]=t[i];n.nodes=qr.from(t.nodes),n.marks=qr.from(t.marks||{}),this.nodes=zk.compile(this.spec.nodes,this),this.marks=xv.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let a=this.nodes[i],o=a.spec.content||"",s=a.spec.marks;a.contentMatch=r[o]||(r[o]=Ud.parse(o,this.nodes)),a.inlineContent=a.contentMatch.inlineContent,a.markSet=s=="_"?null:s?UF(this,s.split(" ")):s==""||!a.inlineContent?[]:null}for(let i in this.marks){let a=this.marks[i],o=a.spec.excludes;a.excluded=o==null?[a]:o==""?[]:UF(this,o.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,n=null,r,i){if(typeof t=="string")t=this.nodeType(t);else if(t instanceof zk){if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}else throw new RangeError("Invalid node type: "+t);return t.createChecked(n,r,i)}text(t,n){let r=this.nodes.text;return new Ele(r,r.defaultAttrs,t,rn.setFrom(n))}mark(t,n){return typeof t=="string"&&(t=this.marks[t]),t.create(n)}nodeFromJSON(t){return Wo.fromJSON(this,t)}markFromJSON(t){return rn.fromJSON(this,t)}nodeType(t){let n=this.nodes[t];if(!n)throw new RangeError("Unknown node type: "+t);return n}};function UF(e,t){let n=[];for(let r=0;r-1)&&n.push(o=l)}if(!o)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}class Wd{constructor(t,n){this.schema=t,this.rules=n,this.tags=[],this.styles=[],n.forEach(r=>{r.tag?this.tags.push(r):r.style&&this.styles.push(r)}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let i=t.nodes[r.node];return i.contentMatch.matchType(i)})}parse(t,n={}){let r=new GF(this,n,!1);return r.addAll(t,n.from,n.to),r.finish()}parseSlice(t,n={}){let r=new GF(this,n,!0);return r.addAll(t,n.from,n.to),Ue.maxOpen(r.finish())}matchTag(t,n,r){for(let i=r?this.tags.indexOf(r)+1:0;it.length&&(s.charCodeAt(t.length)!=61||s.slice(t.length+1)!=n))){if(o.getAttrs){let l=o.getAttrs(n);if(l===!1)continue;o.attrs=l||void 0}return o}}}static schemaRules(t){let n=[];function r(i){let a=i.priority==null?50:i.priority,o=0;for(;o{r(o=KF(o)),o.mark||o.ignore||o.clearMark||(o.mark=i)})}for(let i in t.nodes){let a=t.nodes[i].spec.parseDOM;a&&a.forEach(o=>{r(o=KF(o)),o.node||o.ignore||o.mark||(o.node=i)})}return n}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new Wd(t,Wd.schemaRules(t)))}}const ij={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Rle={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},aj={ol:!0,ul:!0},Fk=1,$k=2,xm=4;function WF(e,t,n){return t!=null?(t?Fk:0)|(t==="full"?$k:0):e&&e.whitespace=="pre"?Fk|$k:n&~xm}class Ky{constructor(t,n,r,i,a,o,s){this.type=t,this.attrs=n,this.marks=r,this.pendingMarks=i,this.solid=a,this.options=s,this.content=[],this.activeMarks=rn.none,this.stashMarks=[],this.match=o||(s&xm?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(Ee.from(t));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(t.type))?(this.match=r,i):null}}return this.match.findWrapping(t.type)}finish(t){if(!(this.options&Fk)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let a=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=a.withText(a.text.slice(0,a.text.length-i[0].length))}}let n=Ee.from(this.content);return!t&&this.match&&(n=n.append(this.match.fillBefore(Ee.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}popFromStashMark(t){for(let n=this.stashMarks.length-1;n>=0;n--)if(t.eq(this.stashMarks[n]))return this.stashMarks.splice(n,1)[0]}applyPending(t){for(let n=0,r=this.pendingMarks;n{o.clearMark(s)&&(r=s.addToSet(r))}):n=this.parser.schema.marks[o.mark].create(o.attrs).addToSet(n),o.consuming===!1)a=o;else break}return[n,r]}addElementByRule(t,n,r){let i,a,o;n.node?(a=this.parser.schema.nodes[n.node],a.isLeaf?this.insertNode(a.create(n.attrs))||this.leafFallback(t):i=this.enter(a,n.attrs||null,n.preserveWhitespace)):(o=this.parser.schema.marks[n.mark].create(n.attrs),this.addPendingMark(o));let s=this.top;if(a&&a.isLeaf)this.findInside(t);else if(r)this.addElement(t,r);else if(n.getContent)this.findInside(t),n.getContent(t,this.parser.schema).forEach(l=>this.insertNode(l));else{let l=t;typeof n.contentElement=="string"?l=t.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(t):n.contentElement&&(l=n.contentElement),this.findAround(t,l,!0),this.addAll(l)}i&&this.sync(s)&&this.open--,o&&this.removePendingMark(o,s)}addAll(t,n,r){let i=n||0;for(let a=n?t.childNodes[n]:t.firstChild,o=r==null?null:t.childNodes[r];a!=o;a=a.nextSibling,++i)this.findAtPoint(t,i),this.addDOM(a);this.findAtPoint(t,i)}findPlace(t){let n,r;for(let i=this.open;i>=0;i--){let a=this.nodes[i],o=a.findWrapping(t);if(o&&(!n||n.length>o.length)&&(n=o,r=a,!o.length)||a.solid)break}if(!n)return!1;this.sync(r);for(let i=0;ithis.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(t){for(let n=this.open;n>=0;n--)if(this.nodes[n]==t)return this.open=n,!0;return!1}get currentPos(){this.closeExtra();let t=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let i=r.length-1;i>=0;i--)t+=r[i].nodeSize;n&&t++}return t}findAtPoint(t,n){if(this.find)for(let r=0;r-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let n=t.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),a=-(r?r.depth+1:0)+(i?0:1),o=(s,l)=>{for(;s>=0;s--){let c=n[s];if(c==""){if(s==n.length-1||s==0)continue;for(;l>=a;l--)if(o(s-1,l))return!0;return!1}else{let u=l>0||l==0&&i?this.nodes[l].type:r&&l>=a?r.node(l-a).type:null;if(!u||u.name!=c&&u.groups.indexOf(c)==-1)return!1;l--}}return!0};return o(n.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}addPendingMark(t){let n=Hle(t,this.top.pendingMarks);n&&this.top.stashMarks.push(n),this.top.pendingMarks=t.addToSet(this.top.pendingMarks)}removePendingMark(t,n){for(let r=this.open;r>=0;r--){let i=this.nodes[r];if(i.pendingMarks.lastIndexOf(t)>-1)i.pendingMarks=t.removeFromSet(i.pendingMarks);else{i.activeMarks=t.removeFromSet(i.activeMarks);let o=i.popFromStashMark(t);o&&i.type&&i.type.allowsMarkType(o.type)&&(i.activeMarks=o.addToSet(i.activeMarks))}if(i==n)break}}}function Ple(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let r=t.nodeType==1?t.nodeName.toLowerCase():null;r&&aj.hasOwnProperty(r)&&n?(n.appendChild(t),t=n):r=="li"?n=t:r&&(n=null)}}function jle(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function Vle(e){let t=/\s*([\w-]+)\s*:\s*([^;]+)/g,n,r=[];for(;n=t.exec(e);)r.push(n[1],n[2].trim());return r}function KF(e){let t={};for(let n in e)t[n]=e[n];return t}function qle(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let a=[],o=s=>{a.push(s);for(let l=0;l{if(a.length||o.marks.length){let s=0,l=0;for(;s=0;i--){let a=this.serializeMark(t.marks[i],t.isInline,n);a&&((a.contentDOM||a.dom).appendChild(r),r=a.dom)}return r}serializeMark(t,n,r={}){let i=this.marks[t.type.name];return i&&ws.renderSpec(L4(r),i(t,n))}static renderSpec(t,n,r=null){if(typeof n=="string")return{dom:t.createTextNode(n)};if(n.nodeType!=null)return{dom:n};if(n.dom&&n.dom.nodeType!=null)return n;let i=n[0],a=i.indexOf(" ");a>0&&(r=i.slice(0,a),i=i.slice(a+1));let o,s=r?t.createElementNS(r,i):t.createElement(i),l=n[1],c=1;if(l&&typeof l=="object"&&l.nodeType==null&&!Array.isArray(l)){c=2;for(let u in l)if(l[u]!=null){let f=u.indexOf(" ");f>0?s.setAttributeNS(u.slice(0,f),u.slice(f+1),l[u]):s.setAttribute(u,l[u])}}for(let u=c;uc)throw new RangeError("Content hole must be the only child of its parent node");return{dom:s,contentDOM:s}}else{let{dom:h,contentDOM:m}=ws.renderSpec(t,f,r);if(s.appendChild(h),m){if(o)throw new RangeError("Multiple content holes");o=m}}}return{dom:s,contentDOM:o}}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new ws(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let n=YF(t.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(t){return YF(t.marks)}}function YF(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function L4(e){return e.document||window.document}const oj=65535,sj=Math.pow(2,16);function Ule(e,t){return e+t*sj}function ZF(e){return e&oj}function Wle(e){return(e-(e&oj))/sj}const lj=1,cj=2,q_=4,uj=8;class Nx{constructor(t,n,r){this.pos=t,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&uj)>0}get deletedBefore(){return(this.delInfo&(lj|q_))>0}get deletedAfter(){return(this.delInfo&(cj|q_))>0}get deletedAcross(){return(this.delInfo&q_)>0}}class to{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&to.empty)return to.empty}recover(t){let n=0,r=ZF(t);if(!this.inverted)for(let i=0;it)break;let c=this.ranges[s+a],u=this.ranges[s+o],f=l+c;if(t<=f){let h=c?t==l?-1:t==f?1:n:n,m=l+i+(h<0?0:u);if(r)return m;let g=t==(n<0?l:f)?null:Ule(s/3,t-l),b=t==l?cj:t==f?lj:q_;return(n<0?t!=l:t!=f)&&(b|=uj),new Nx(m,b,g)}i+=u-c}return r?t+i:new Nx(t+i,0,null)}touches(t,n){let r=0,i=ZF(n),a=this.inverted?2:1,o=this.inverted?1:2;for(let s=0;st)break;let c=this.ranges[s+a],u=l+c;if(t<=u&&s==i*3)return!0;r+=this.ranges[s+o]-c}return!1}forEach(t){let n=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,a=0;i=0;n--){let i=t.getMirror(n);this.appendMap(t.maps[n].invert(),i!=null&&i>n?r-i-1:void 0)}}invert(){let t=new Lh;return t.appendMappingInverted(this),t}map(t,n=1){if(this.mirror)return this._map(t,n,!0);for(let r=this.from;ra&&l!o.isAtom||!s.type.allowsMarkType(this.mark.type)?o:o.mark(this.mark.addToSet(o.marks)),i),n.openStart,n.openEnd);return Cr.fromReplace(t,this.from,this.to,a)}invert(){return new vs(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new Dl(n.pos,r.pos,this.mark)}merge(t){return t instanceof Dl&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new Dl(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Dl(n.from,n.to,t.markFromJSON(n.mark))}}Ji.jsonID("addMark",Dl);class vs extends Ji{constructor(t,n,r){super(),this.from=t,this.to=n,this.mark=r}apply(t){let n=t.slice(this.from,this.to),r=new Ue(WC(n.content,i=>i.mark(this.mark.removeFromSet(i.marks)),t),n.openStart,n.openEnd);return Cr.fromReplace(t,this.from,this.to,r)}invert(){return new Dl(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new vs(n.pos,r.pos,this.mark)}merge(t){return t instanceof vs&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new vs(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new vs(n.from,n.to,t.markFromJSON(n.mark))}}Ji.jsonID("removeMark",vs);class jc extends Ji{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return Cr.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return Cr.fromReplace(t,this.pos,this.pos+1,new Ue(Ee.from(r),0,n.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let i=0;ir.pos?null:new Wr(n.pos,r.pos,i,a,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Wr(n.from,n.to,n.gapFrom,n.gapTo,Ue.fromJSON(t,n.slice),n.insert,!!n.structure)}}Ji.jsonID("replaceAround",Wr);function Lx(e,t,n){let r=e.resolve(t),i=n-t,a=r.depth;for(;i>0&&a>0&&r.indexAfter(a)==r.node(a).childCount;)a--,i--;if(i>0){let o=r.node(a).maybeChild(r.indexAfter(a));for(;i>0;){if(!o||o.isLeaf)return!0;o=o.firstChild,i--}}return!1}function Gle(e,t,n,r){let i=[],a=[],o,s;e.doc.nodesBetween(t,n,(l,c,u)=>{if(!l.isInline)return;let f=l.marks;if(!r.isInSet(f)&&u.type.allowsMarkType(r.type)){let h=Math.max(c,t),m=Math.min(c+l.nodeSize,n),g=r.addToSet(f);for(let b=0;be.step(l)),a.forEach(l=>e.step(l))}function Kle(e,t,n,r){let i=[],a=0;e.doc.nodesBetween(t,n,(o,s)=>{if(!o.isInline)return;a++;let l=null;if(r instanceof xv){let c=o.marks,u;for(;u=r.isInSet(c);)(l||(l=[])).push(u),c=u.removeFromSet(c)}else r?r.isInSet(o.marks)&&(l=[r]):l=o.marks;if(l&&l.length){let c=Math.min(s+o.nodeSize,n);for(let u=0;ue.step(new vs(o.from,o.to,o.style)))}function Yle(e,t,n,r=n.contentMatch){let i=e.doc.nodeAt(t),a=[],o=t+1;for(let s=0;s=0;s--)e.step(a[s])}function Zle(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function Cv(e){let n=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let r=e.depth;;--r){let i=e.$from.node(r),a=e.$from.index(r),o=e.$to.indexAfter(r);if(rn;g--)b||r.index(g)>0?(b=!0,u=Ee.from(r.node(g).copy(u)),f++):l--;let h=Ee.empty,m=0;for(let g=a,b=!1;g>n;g--)b||i.after(g+1)=0;o--){if(r.size){let s=n[o].type.contentMatch.matchFragment(r);if(!s||!s.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=Ee.from(n[o].type.create(n[o].attrs,r))}let i=t.start,a=t.end;e.step(new Wr(i,a,i,a,new Ue(r,0,0),n.length,!0))}function tce(e,t,n,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let a=e.steps.length;e.doc.nodesBetween(t,n,(o,s)=>{if(o.isTextblock&&!o.hasMarkup(r,i)&&nce(e.doc,e.mapping.slice(a).map(s),r)){e.clearIncompatible(e.mapping.slice(a).map(s,1),r);let l=e.mapping.slice(a),c=l.map(s,1),u=l.map(s+o.nodeSize,1);return e.step(new Wr(c,u,c+1,u-1,new Ue(Ee.from(r.create(i,null,o.marks)),0,0),1,!0)),!1}})}function nce(e,t,n){let r=e.resolve(t),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function rce(e,t,n,r,i){let a=e.doc.nodeAt(t);if(!a)throw new RangeError("No node at given position");n||(n=a.type);let o=n.create(r,null,i||a.marks);if(a.isLeaf)return e.replaceWith(t,t+a.nodeSize,o);if(!n.validContent(a.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new Wr(t,t+a.nodeSize,t+1,t+a.nodeSize-1,new Ue(Ee.from(o),0,0),1,!0))}function Ih(e,t,n=1,r){let i=e.resolve(t),a=i.depth-n,o=r&&r[r.length-1]||i.parent;if(a<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!o.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let c=i.depth-1,u=n-2;c>a;c--,u--){let f=i.node(c),h=i.index(c);if(f.type.spec.isolating)return!1;let m=f.content.cutByIndex(h,f.childCount),g=r&&r[u+1];g&&(m=m.replaceChild(0,g.type.create(g.attrs)));let b=r&&r[u]||f;if(!f.canReplace(h+1,f.childCount)||!b.type.validContent(m))return!1}let s=i.indexAfter(a),l=r&&r[0];return i.node(a).canReplaceWith(s,s,l?l.type:i.node(a+1).type)}function ice(e,t,n=1,r){let i=e.doc.resolve(t),a=Ee.empty,o=Ee.empty;for(let s=i.depth,l=i.depth-n,c=n-1;s>l;s--,c--){a=Ee.from(i.node(s).copy(a));let u=r&&r[c];o=Ee.from(u?u.type.create(u.attrs,o):i.node(s).copy(o))}e.step(new ni(t,t,new Ue(a.append(o),n,n),!0))}function Sv(e,t){let n=e.resolve(t),r=n.index();return ace(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function ace(e,t){return!!(e&&t&&!e.isLeaf&&e.canAppend(t))}function oce(e,t,n){let r=new ni(t-n,t+n,Ue.empty,!0);e.step(r)}function sce(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(r.parentOffset==0)for(let i=r.depth-1;i>=0;i--){let a=r.index(i);if(r.node(i).canReplaceWith(a,a,n))return r.before(i+1);if(a>0)return null}if(r.parentOffset==r.parent.content.size)for(let i=r.depth-1;i>=0;i--){let a=r.indexAfter(i);if(r.node(i).canReplaceWith(a,a,n))return r.after(i+1);if(a=0;o--){let s=o==r.depth?0:r.pos<=(r.start(o+1)+r.end(o+1))/2?-1:1,l=r.index(o)+(s>0?1:0),c=r.node(o),u=!1;if(a==1)u=c.canReplace(l,l,i);else{let f=c.contentMatchAt(l).findWrapping(i.firstChild.type);u=f&&c.canReplaceWith(l,l,f[0])}if(u)return s==0?r.pos:s<0?r.before(o+1):r.after(o+1)}return null}function KC(e,t,n=t,r=Ue.empty){if(t==n&&!r.size)return null;let i=e.resolve(t),a=e.resolve(n);return dj(i,a,r)?new ni(t,n,r):new cce(i,a,r).fit()}function dj(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}class cce{constructor(t,n,r){this.$from=t,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=Ee.empty;for(let i=0;i<=t.depth;i++){let a=t.node(i);this.frontier.push({type:a.type,match:a.contentMatchAt(t.indexAfter(i))})}for(let i=t.depth;i>0;i--)this.placed=Ee.from(t.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(t<0?this.$to:r.doc.resolve(t));if(!i)return null;let a=this.placed,o=r.depth,s=i.depth;for(;o&&s&&a.childCount==1;)a=a.firstChild.content,o--,s--;let l=new Ue(a,o,s);return t>-1?new Wr(r.pos,t,this.$to.pos,this.$to.end(),l,n):l.size||r.pos!=this.$to.pos?new ni(r.pos,i.pos,l):null}findFittable(){let t=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,i=this.unplaced.openEnd;r1&&(i=0),a.type.spec.isolating&&i<=r){t=r;break}n=a.content}for(let n=1;n<=2;n++)for(let r=n==1?t:this.unplaced.openStart;r>=0;r--){let i,a=null;r?(a=B4(this.unplaced.content,r-1).firstChild,i=a.content):i=this.unplaced.content;let o=i.firstChild;for(let s=this.depth;s>=0;s--){let{type:l,match:c}=this.frontier[s],u,f=null;if(n==1&&(o?c.matchType(o.type)||(f=c.fillBefore(Ee.from(o),!1)):a&&l.compatibleContent(a.type)))return{sliceDepth:r,frontierDepth:s,parent:a,inject:f};if(n==2&&o&&(u=c.findWrapping(o.type)))return{sliceDepth:r,frontierDepth:s,parent:a,wrap:u};if(a&&c.matchType(a.type))break}}}openMore(){let{content:t,openStart:n,openEnd:r}=this.unplaced,i=B4(t,n);return!i.childCount||i.firstChild.isLeaf?!1:(this.unplaced=new Ue(t,n+1,Math.max(r,i.size+n>=t.size-r?n+1:0)),!0)}dropNode(){let{content:t,openStart:n,openEnd:r}=this.unplaced,i=B4(t,n);if(i.childCount<=1&&n>0){let a=t.size-n<=n+i.size;this.unplaced=new Ue(H0(t,n-1,1),n-1,a?n-1:r)}else this.unplaced=new Ue(H0(t,n,1),n,r)}placeNodes({sliceDepth:t,frontierDepth:n,parent:r,inject:i,wrap:a}){for(;this.depth>n;)this.closeFrontierNode();if(a)for(let b=0;b1||l==0||b.content.size)&&(f=C,u.push(fj(b.mark(h.allowedMarks(b.marks)),c==1?l:0,c==s.childCount?m:-1)))}let g=c==s.childCount;g||(m=-1),this.placed=U0(this.placed,n,Ee.from(u)),this.frontier[n].match=f,g&&m<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let b=0,C=s;b1&&i==this.$to.end(--r);)++i;return i}findCloseLevel(t){e:for(let n=Math.min(this.depth,t.depth);n>=0;n--){let{match:r,type:i}=this.frontier[n],a=n=0;s--){let{match:l,type:c}=this.frontier[s],u=R4(t,s,c,l,!0);if(!u||u.childCount)continue e}return{depth:n,fit:o,move:a?t.doc.resolve(t.after(n+1)):t}}}}close(t){let n=this.findCloseLevel(t);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=U0(this.placed,n.depth,n.fit)),t=n.move;for(let r=n.depth+1;r<=t.depth;r++){let i=t.node(r),a=i.type.contentMatch.fillBefore(i.content,!0,t.index(r));this.openFrontierNode(i.type,i.attrs,a)}return t}openFrontierNode(t,n=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(t),this.placed=U0(this.placed,this.depth,Ee.from(t.create(n,r))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(Ee.empty,!0);n.childCount&&(this.placed=U0(this.placed,this.frontier.length,n))}}function H0(e,t,n){return t==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(H0(e.firstChild.content,t-1,n)))}function U0(e,t,n){return t==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(U0(e.lastChild.content,t-1,n)))}function B4(e,t){for(let n=0;n1&&(r=r.replaceChild(0,fj(r.firstChild,t-1,r.childCount==1?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(Ee.empty,!0)))),e.copy(r)}function R4(e,t,n,r,i){let a=e.node(t),o=i?e.indexAfter(t):e.index(t);if(o==a.childCount&&!n.compatibleContent(a.type))return null;let s=r.fillBefore(a.content,!0,o);return s&&!uce(n,a.content,o)?s:null}function uce(e,t,n){for(let r=n;r0;h--,m--){let g=i.node(h).type.spec;if(g.defining||g.definingAsContext||g.isolating)break;o.indexOf(h)>-1?s=h:i.before(h)==m&&o.splice(1,0,-h)}let l=o.indexOf(s),c=[],u=r.openStart;for(let h=r.content,m=0;;m++){let g=h.firstChild;if(c.push(g),m==r.openStart)break;h=g.content}for(let h=u-1;h>=0;h--){let m=c[h].type,g=dce(m);if(g&&i.node(l).type!=m)u=h;else if(g||!m.isTextblock)break}for(let h=r.openStart;h>=0;h--){let m=(h+u+1)%(r.openStart+1),g=c[m];if(g)for(let b=0;b=0&&(e.replace(t,n,r),!(e.steps.length>f));h--){let m=o[h];m<0||(t=i.before(m),n=a.after(m))}}function hj(e,t,n,r,i){if(tr){let a=i.contentMatchAt(0),o=a.fillBefore(e).append(e);e=o.append(a.matchFragment(o).fillBefore(Ee.empty,!0))}return e}function hce(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let i=sce(e.doc,t,r.type);i!=null&&(t=n=i)}e.replaceRange(t,n,new Ue(Ee.from(r),0,0))}function pce(e,t,n){let r=e.doc.resolve(t),i=e.doc.resolve(n),a=pj(r,i);for(let o=0;o0&&(l||r.node(s-1).canReplace(r.index(s-1),i.indexAfter(s-1))))return e.delete(r.before(s),i.after(s))}for(let o=1;o<=r.depth&&o<=i.depth;o++)if(t-r.start(o)==r.depth-o&&n>r.end(o)&&i.end(o)-n!=i.depth-o)return e.delete(r.before(o),n);e.delete(t,n)}function pj(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let i=r;i>=0;i--){let a=e.start(i);if(at.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(a==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==a-1)&&n.push(i)}return n}class Bh extends Ji{constructor(t,n,r){super(),this.pos=t,this.attr=n,this.value=r}apply(t){let n=t.nodeAt(this.pos);if(!n)return Cr.fail("No node at attribute step's position");let r=Object.create(null);for(let a in n.attrs)r[a]=n.attrs[a];r[this.attr]=this.value;let i=n.type.create(r,null,n.marks);return Cr.fromReplace(t,this.pos,this.pos+1,new Ue(Ee.from(i),0,n.isLeaf?0:1))}getMap(){return to.empty}invert(t){return new Bh(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new Bh(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Bh(n.pos,n.attr,n.value)}}Ji.jsonID("attr",Bh);let sp=class extends Error{};sp=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n};sp.prototype=Object.create(Error.prototype);sp.prototype.constructor=sp;sp.prototype.name="TransformError";let mj=class{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new Lh}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let n=this.maybeStep(t);if(n.failed)throw new sp(n.failed);return this}maybeStep(t){let n=t.apply(this.doc);return n.failed||this.addStep(t,n.doc),n}get docChanged(){return this.steps.length>0}addStep(t,n){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=n}replace(t,n=t,r=Ue.empty){let i=KC(this.doc,t,n,r);return i&&this.step(i),this}replaceWith(t,n,r){return this.replace(t,n,new Ue(Ee.from(r),0,0))}delete(t,n){return this.replace(t,n,Ue.empty)}insert(t,n){return this.replaceWith(t,t,n)}replaceRange(t,n,r){return fce(this,t,n,r),this}replaceRangeWith(t,n,r){return hce(this,t,n,r),this}deleteRange(t,n){return pce(this,t,n),this}lift(t,n){return Xle(this,t,n),this}join(t,n=1){return oce(this,t,n),this}wrap(t,n){return ece(this,t,n),this}setBlockType(t,n=t,r,i=null){return tce(this,t,n,r,i),this}setNodeMarkup(t,n,r=null,i){return rce(this,t,n,r,i),this}setNodeAttribute(t,n,r){return this.step(new Bh(t,n,r)),this}addNodeMark(t,n){return this.step(new jc(t,n)),this}removeNodeMark(t,n){if(!(n instanceof rn)){let r=this.doc.nodeAt(t);if(!r)throw new RangeError("No node at position "+t);if(n=n.isInSet(r.marks),!n)return this}return this.step(new op(t,n)),this}split(t,n=1,r){return ice(this,t,n,r),this}addMark(t,n,r){return Gle(this,t,n,r),this}removeMark(t,n,r){return Kle(this,t,n,r),this}clearIncompatible(t,n,r){return Yle(this,t,n,r),this}};const P4=Object.create(null);let $t=class{constructor(t,n,r){this.$anchor=t,this.$head=n,this.ranges=r||[new gj(t.min(n),t.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let n=0;n=0;a--){let o=n<0?Yf(t.node(0),t.node(a),t.before(a+1),t.index(a),n,r):Yf(t.node(0),t.node(a),t.after(a+1),t.index(a)+1,n,r);if(o)return o}return null}static near(t,n=1){return this.findFrom(t,n)||this.findFrom(t,-n)||new va(t.node(0))}static atStart(t){return Yf(t,t,0,0,1)||new va(t)}static atEnd(t){return Yf(t,t,t.content.size,t.childCount,-1)||new va(t)}static fromJSON(t,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=P4[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(t,n)}static jsonID(t,n){if(t in P4)throw new RangeError("Duplicate use of selection JSON ID "+t);return P4[t]=n,n.prototype.jsonID=t,n}getBookmark(){return Nt.between(this.$anchor,this.$head).getBookmark()}};$t.prototype.visible=!0;class gj{constructor(t,n){this.$from=t,this.$to=n}}let JF=!1;function QF(e){!JF&&!e.parent.inlineContent&&(JF=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class Nt extends $t{constructor(t,n=t){QF(t),QF(n),super(t,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,n){let r=t.resolve(n.map(this.head));if(!r.parent.inlineContent)return $t.near(r);let i=t.resolve(n.map(this.anchor));return new Nt(i.parent.inlineContent?i:r,r)}replace(t,n=Ue.empty){if(super.replace(t,n),n==Ue.empty){let r=this.$from.marksAcross(this.$to);r&&t.ensureMarks(r)}}eq(t){return t instanceof Nt&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new Dv(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Nt(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,r=n){let i=t.resolve(n);return new this(i,r==n?i:t.resolve(r))}static between(t,n,r){let i=t.pos-n.pos;if((!r||i)&&(r=i>=0?1:-1),!n.parent.inlineContent){let a=$t.findFrom(n,r,!0)||$t.findFrom(n,-r,!0);if(a)n=a.$head;else return $t.near(n,r)}return t.parent.inlineContent||(i==0?t=n:(t=($t.findFrom(t,-r,!0)||$t.findFrom(t,r,!0)).$anchor,t.pos0?0:1);i>0?o=0;o+=i){let s=t.child(o);if(s.isAtom){if(!a&&Mt.isSelectable(s))return Mt.create(e,n-(i<0?s.nodeSize:0))}else{let l=Yf(e,s,n+i,i<0?s.childCount:0,i,a);if(l)return l}n+=s.nodeSize*i}return null}function e$(e,t,n){let r=e.steps.length-1;if(r{o==null&&(o=u)}),e.setSelection($t.near(e.doc.resolve(o),n))}const t$=1,Yy=2,n$=4;class gce extends mj{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor0}setStoredMarks(t){return this.storedMarks=t,this.updated|=Yy,this}ensureMarks(t){return rn.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&Yy)>0}addStep(t,n){super.addStep(t,n),this.updated=this.updated&~Yy,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,n=!0){let r=this.selection;return n&&(t=t.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||rn.none))),r.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,n,r){let i=this.doc.type.schema;if(n==null)return t?this.replaceSelectionWith(i.text(t),!0):this.deleteSelection();{if(r==null&&(r=n),r=r??n,!t)return this.deleteRange(n,r);let a=this.storedMarks;if(!a){let o=this.doc.resolve(n);a=r==n?o.marks():o.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,i.text(t,a)),this.selection.empty||this.setSelection($t.near(this.selection.$to)),this}}setMeta(t,n){return this.meta[typeof t=="string"?t:t.key]=n,this}getMeta(t){return this.meta[typeof t=="string"?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=n$,this}get scrolledIntoView(){return(this.updated&n$)>0}}function r$(e,t){return!t||!e?e:e.bind(t)}class W0{constructor(t,n,r){this.name=t,this.init=r$(n.init,r),this.apply=r$(n.apply,r)}}const yce=[new W0("doc",{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new W0("selection",{init(e,t){return e.selection||$t.atStart(t.doc)},apply(e){return e.selection}}),new W0("storedMarks",{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new W0("scrollToSelection",{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})];class j4{constructor(t,n){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=yce.slice(),n&&n.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new W0(r.key,r.spec.state,r))})}}class bh{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(t){return this.applyTransaction(t).state}filterTransaction(t,n=-1){for(let r=0;rr.toJSON())),t&&typeof t=="object")for(let r in t){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let i=t[r],a=i.spec.state;a&&a.toJSON&&(n[r]=a.toJSON.call(i,this[i.key]))}return n}static fromJSON(t,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");let i=new j4(t.schema,t.plugins),a=new bh(i);return i.fields.forEach(o=>{if(o.name=="doc")a.doc=Wo.fromJSON(t.schema,n.doc);else if(o.name=="selection")a.selection=$t.fromJSON(a.doc,n.selection);else if(o.name=="storedMarks")n.storedMarks&&(a.storedMarks=n.storedMarks.map(t.schema.markFromJSON));else{if(r)for(let s in r){let l=r[s],c=l.spec.state;if(l.key==o.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(n,s)){a[o.name]=c.fromJSON.call(l,t,n[s],a);return}}a[o.name]=o.init(t,a)}}),a}}function yj(e,t,n){for(let r in e){let i=e[r];i instanceof Function?i=i.bind(t):r=="handleDOMEvents"&&(i=yj(i,t,{})),n[r]=i}return n}class Bn{constructor(t){this.spec=t,this.props={},t.props&&yj(t.props,this,this.props),this.key=t.key?t.key.key:_j("plugin")}getState(t){return t[this.key]}}const V4=Object.create(null);function _j(e){return e in V4?e+"$"+ ++V4[e]:(V4[e]=0,e+"$")}class Fn{constructor(t="key"){this.key=_j(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}const _a=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},fg=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t};let i$=null;const gl=function(e,t,n){let r=i$||(i$=document.createRange());return r.setEnd(e,n??e.nodeValue.length),r.setStart(e,t||0),r},Gd=function(e,t,n,r){return n&&(a$(e,t,n,r,-1)||a$(e,t,n,r,1))},_ce=/^(img|br|input|textarea|hr)$/i;function a$(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:bs(e))){let a=e.parentNode;if(!a||a.nodeType!=1||kce(e)||_ce.test(e.nodeName)||e.contentEditable=="false")return!1;t=_a(e)+(i<0?0:1),e=a}else if(e.nodeType==1){if(e=e.childNodes[t+(i<0?-1:0)],e.contentEditable=="false")return!1;t=i<0?bs(e):0}else return!1}}function bs(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function bce(e,t,n){for(let r=t==0,i=t==bs(e);r||i;){if(e==n)return!0;let a=_a(e);if(e=e.parentNode,!e)return!1;r=r&&a==0,i=i&&a==bs(e)}}function kce(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const Ev=function(e){return e.focusNode&&Gd(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function ud(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function wce(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function vce(e,t,n){if(e.caretPositionFromPoint)try{let r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,offset:r.offset}}catch{}if(e.caretRangeFromPoint){let r=e.caretRangeFromPoint(t,n);if(r)return{node:r.startContainer,offset:r.startOffset}}}const Ms=typeof navigator<"u"?navigator:null,o$=typeof document<"u"?document:null,vu=Ms&&Ms.userAgent||"",Ix=/Edge\/(\d+)/.exec(vu),bj=/MSIE \d/.exec(vu),Bx=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(vu),Gi=!!(bj||Bx||Ix),eu=bj?document.documentMode:Bx?+Bx[1]:Ix?+Ix[1]:0,Xo=!Gi&&/gecko\/(\d+)/i.test(vu);Xo&&+(/Firefox\/(\d+)/.exec(vu)||[0,0])[1];const Rx=!Gi&&/Chrome\/(\d+)/.exec(vu),ri=!!Rx,xce=Rx?+Rx[1]:0,wi=!Gi&&!!Ms&&/Apple Computer/.test(Ms.vendor),lp=wi&&(/Mobile\/\w+/.test(vu)||!!Ms&&Ms.maxTouchPoints>2),Za=lp||(Ms?/Mac/.test(Ms.platform):!1),Cce=Ms?/Win/.test(Ms.platform):!1,Ro=/Android \d/.test(vu),Tv=!!o$&&"webkitFontSmoothing"in o$.documentElement.style,Sce=Tv?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function Dce(e){return{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function mc(e,t){return typeof e=="number"?e:e[t]}function Ece(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function s$(e,t,n){let r=e.someProp("scrollThreshold")||0,i=e.someProp("scrollMargin")||5,a=e.dom.ownerDocument;for(let o=n||e.dom;o;o=fg(o)){if(o.nodeType!=1)continue;let s=o,l=s==a.body,c=l?Dce(a):Ece(s),u=0,f=0;if(t.topc.bottom-mc(r,"bottom")&&(f=t.bottom-c.bottom+mc(i,"bottom")),t.leftc.right-mc(r,"right")&&(u=t.right-c.right+mc(i,"right")),u||f)if(l)a.defaultView.scrollBy(u,f);else{let h=s.scrollLeft,m=s.scrollTop;f&&(s.scrollTop+=f),u&&(s.scrollLeft+=u);let g=s.scrollLeft-h,b=s.scrollTop-m;t={left:t.left-g,top:t.top-b,right:t.right-g,bottom:t.bottom-b}}if(l)break}}function Tce(e){let t=e.dom.getBoundingClientRect(),n=Math.max(0,t.top),r,i;for(let a=(t.left+t.right)/2,o=n+1;o=n-20){r=s,i=l.top;break}}return{refDOM:r,refTop:i,stack:kj(e.dom)}}function kj(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=fg(r));return t}function Ace({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;wj(n,r==0?0:r-t)}function wj(e,t){for(let n=0;n=s){o=Math.max(g.bottom,o),s=Math.min(g.top,s);let b=g.left>t.left?g.left-t.left:g.right=(g.left+g.right)/2?1:0));continue}}else g.top>t.top&&!l&&g.left<=t.left&&g.right>=t.left&&(l=u,c={left:Math.max(g.left,Math.min(g.right,t.left)),top:g.top});!n&&(t.left>=g.right&&t.top>=g.top||t.left>=g.left&&t.top>=g.bottom)&&(a=f+1)}}return!n&&l&&(n=l,i=c,r=0),n&&n.nodeType==3?Fce(n,i):!n||r&&n.nodeType==1?{node:e,offset:a}:vj(n,i)}function Fce(e,t){let n=e.nodeValue.length,r=document.createRange();for(let i=0;i=(a.left+a.right)/2?1:0)}}return{node:e,offset:0}}function ZC(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function $ce(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left(o.left+o.right)/2?1:-1}return e.docView.posFromDOM(r,i,a)}function Oce(e,t,n,r){let i=-1;for(let a=t,o=!1;a!=e.dom;){let s=e.docView.nearestDesc(a,!0);if(!s)return null;if(s.dom.nodeType==1&&(s.node.isBlock&&s.parent&&!o||!s.contentDOM)){let l=s.dom.getBoundingClientRect();if(s.node.isBlock&&s.parent&&!o&&(o=!0,l.left>r.left||l.top>r.top?i=s.posBefore:(l.right-1?i:e.docView.posFromDOM(t,n,-1)}function xj(e,t,n){let r=e.childNodes.length;if(r&&n.topt.top&&i++}r==e.dom&&i==r.childNodes.length-1&&r.lastChild.nodeType==1&&t.top>r.lastChild.getBoundingClientRect().bottom?s=e.state.doc.content.size:(i==0||r.nodeType!=1||r.childNodes[i-1].nodeName!="BR")&&(s=Oce(e,r,i,t))}s==null&&(s=Mce(e,o,t));let l=e.docView.nearestDesc(o,!0);return{pos:s,inside:l?l.posAtStart-l.border:-1}}function l$(e){return e.top=0&&i==r.nodeValue.length?(l--,u=1):n<0?l--:c++,D0(bc(gl(r,l,c),u),u<0)}if(!e.state.doc.resolve(t-(a||0)).parent.inlineContent){if(a==null&&i&&(n<0||i==bs(r))){let l=r.childNodes[i-1];if(l.nodeType==1)return q4(l.getBoundingClientRect(),!1)}if(a==null&&i=0)}if(a==null&&i&&(n<0||i==bs(r))){let l=r.childNodes[i-1],c=l.nodeType==3?gl(l,bs(l)-(o?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(c)return D0(bc(c,1),!1)}if(a==null&&i=0)}function D0(e,t){if(e.width==0)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function q4(e,t){if(e.height==0)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function Sj(e,t,n){let r=e.state,i=e.root.activeElement;r!=t&&e.updateState(t),i!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),i!=e.dom&&i&&i.focus()}}function Ice(e,t,n){let r=t.selection,i=n=="up"?r.$from:r.$to;return Sj(e,t,()=>{let{node:a}=e.docView.domFromPos(i.pos,n=="up"?-1:1);for(;;){let s=e.docView.nearestDesc(a,!0);if(!s)break;if(s.node.isBlock){a=s.contentDOM||s.dom;break}a=s.dom.parentNode}let o=Cj(e,i.pos,1);for(let s=a.firstChild;s;s=s.nextSibling){let l;if(s.nodeType==1)l=s.getClientRects();else if(s.nodeType==3)l=gl(s,0,s.nodeValue.length).getClientRects();else continue;for(let c=0;cu.top+1&&(n=="up"?o.top-u.top>(u.bottom-o.top)*2:u.bottom-o.bottom>(o.bottom-u.top)*2))return!1}}return!0})}const Bce=/[\u0590-\u08ac]/;function Rce(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,a=!i,o=i==r.parent.content.size,s=e.domSelection();return!Bce.test(r.parent.textContent)||!s.modify?n=="left"||n=="backward"?a:o:Sj(e,t,()=>{let{focusNode:l,focusOffset:c,anchorNode:u,anchorOffset:f}=e.domSelectionRange(),h=s.caretBidiLevel;s.modify("move",n,"character");let m=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:g,focusOffset:b}=e.domSelectionRange(),C=g&&!m.contains(g.nodeType==1?g:g.parentNode)||l==g&&c==b;try{s.collapse(u,f),l&&(l!=u||c!=f)&&s.extend&&s.extend(l,c)}catch{}return h!=null&&(s.caretBidiLevel=h),C})}let c$=null,u$=null,d$=!1;function Pce(e,t,n){return c$==t&&u$==n?d$:(c$=t,u$=n,d$=n=="up"||n=="down"?Ice(e,t,n):Rce(e,t,n))}const so=0,f$=1,yd=2,Os=3;class Wg{constructor(t,n,r,i){this.parent=t,this.children=n,this.dom=r,this.contentDOM=i,this.dirty=so,r.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,n,r){return!1}matchesHack(t){return!1}parseRule(){return null}stopEvent(t){return!1}get size(){let t=0;for(let n=0;n_a(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))i=t.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let a=t;;a=a.parentNode){if(a==this.dom){i=!1;break}if(a.previousSibling)break}if(i==null&&n==t.childNodes.length)for(let a=t;;a=a.parentNode){if(a==this.dom){i=!0;break}if(a.nextSibling)break}}return i??r>0?this.posAtEnd:this.posAtStart}nearestDesc(t,n=!1){for(let r=!0,i=t;i;i=i.parentNode){let a=this.getDesc(i),o;if(a&&(!n||a.node))if(r&&(o=a.nodeDOM)&&!(o.nodeType==1?o.contains(t.nodeType==1?t:t.parentNode):o==t))r=!1;else return a}}getDesc(t){let n=t.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(t,n,r){for(let i=t;i;i=i.parentNode){let a=this.getDesc(i);if(a)return a.localPosFromDOM(t,n,r)}return-1}descAt(t){for(let n=0,r=0;nt||o instanceof Ej){i=t-a;break}a=s}if(i)return this.children[r].domFromPos(i-this.children[r].border,n);for(let a;r&&!(a=this.children[r-1]).size&&a instanceof Dj&&a.side>=0;r--);if(n<=0){let a,o=!0;for(;a=r?this.children[r-1]:null,!(!a||a.dom.parentNode==this.contentDOM);r--,o=!1);return a&&n&&o&&!a.border&&!a.domAtom?a.domFromPos(a.size,n):{node:this.contentDOM,offset:a?_a(a.dom)+1:0}}else{let a,o=!0;for(;a=r=u&&n<=c-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(t,n,u);t=o;for(let f=s;f>0;f--){let h=this.children[f-1];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(1)){i=_a(h.dom)+1;break}t-=h.size}i==-1&&(i=0)}if(i>-1&&(c>n||s==this.children.length-1)){n=c;for(let u=s+1;um&&on){let m=s;s=l,l=m}let h=document.createRange();h.setEnd(l.node,l.offset),h.setStart(s.node,s.offset),c.removeAllRanges(),c.addRange(h)}}ignoreMutation(t){return!this.contentDOM&&t.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,n){for(let r=0,i=0;i=r:tr){let s=r+a.border,l=o-a.border;if(t>=s&&n<=l){this.dirty=t==r||n==o?yd:f$,t==s&&n==l&&(a.contentLost||a.dom.parentNode!=this.contentDOM)?a.dirty=Os:a.markDirty(t-s,n-s);return}else a.dirty=a.dom==a.contentDOM&&a.dom.parentNode==this.contentDOM&&!a.children.length?yd:Os}r=o}this.dirty=yd}markParentsDirty(){let t=1;for(let n=this.parent;n;n=n.parent,t++){let r=t==1?yd:f$;n.dirty{if(!a)return i;if(a.parent)return a.parent.posBeforeChild(a)})),!n.type.spec.raw){if(o.nodeType!=1){let s=document.createElement("span");s.appendChild(o),o=s}o.contentEditable="false",o.classList.add("ProseMirror-widget")}super(t,[],o,null),this.widget=n,this.widget=n,a=this}matchesWidget(t){return this.dirty==so&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let n=this.widget.spec.stopEvent;return n?n(t):!1}ignoreMutation(t){return t.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class jce extends Wg{constructor(t,n,r,i){super(t,[],n,null),this.textDOM=r,this.text=i}get size(){return this.text.length}localPosFromDOM(t,n){return t!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return t.type==="characterData"&&t.target.nodeValue==t.oldValue}}class Kd extends Wg{constructor(t,n,r,i){super(t,[],r,i),this.mark=n}static create(t,n,r,i){let a=i.nodeViews[n.type.name],o=a&&a(n,i,r);return(!o||!o.dom)&&(o=ws.renderSpec(document,n.type.spec.toDOM(n,r))),new Kd(t,n,o.dom,o.contentDOM||o.dom)}parseRule(){return this.dirty&Os||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM||void 0}}matchesMark(t){return this.dirty!=Os&&this.mark.eq(t)}markDirty(t,n){if(super.markDirty(t,n),this.dirty!=so){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty0&&(a=Vx(a,0,t,r));for(let s=0;s{if(!l)return o;if(l.parent)return l.parent.posBeforeChild(l)},r,i),u=c&&c.dom,f=c&&c.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:f}=ws.renderSpec(document,n.type.spec.toDOM(n)));!f&&!n.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),n.type.spec.draggable&&(u.draggable=!0));let h=u;return u=zj(u,r,n),c?l=new Vce(t,n,r,i,u,f||null,h,c,a,o+1):n.isText?new Av(t,n,r,i,u,h,a):new tu(t,n,r,i,u,f||null,h,a,o+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(t.preserveWhitespace="full"),!this.contentDOM)t.getContent=()=>this.node.content;else if(!this.contentLost)t.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){t.contentElement=r.dom.parentNode;break}}t.contentElement||(t.getContent=()=>Ee.empty)}return t}matchesNode(t,n,r){return this.dirty==so&&t.eq(this.node)&&jx(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(t,n){let r=this.node.inlineContent,i=n,a=t.composing?this.localCompositionInfo(t,n):null,o=a&&a.pos>-1?a:null,s=a&&a.pos<0,l=new Hce(this,o&&o.node,t);Gce(this.node,this.innerDeco,(c,u,f)=>{c.spec.marks?l.syncToMarks(c.spec.marks,r,t):c.type.side>=0&&!f&&l.syncToMarks(u==this.node.childCount?rn.none:this.node.child(u).marks,r,t),l.placeWidget(c,t,i)},(c,u,f,h)=>{l.syncToMarks(c.marks,r,t);let m;l.findNodeMatch(c,u,f,h)||s&&t.state.selection.from>i&&t.state.selection.to-1&&l.updateNodeAt(c,u,f,m,t)||l.updateNextNode(c,u,f,t,h,i)||l.addNode(c,u,f,t,i),i+=c.nodeSize}),l.syncToMarks([],r,t),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==yd)&&(o&&this.protectLocalComposition(t,o),Tj(this.contentDOM,this.children,t),lp&&Kce(this.dom))}localCompositionInfo(t,n){let{from:r,to:i}=t.state.selection;if(!(t.state.selection instanceof Nt)||rn+this.node.content.size)return null;let a=t.domSelectionRange(),o=Yce(a.focusNode,a.focusOffset);if(!o||!this.dom.contains(o.parentNode))return null;if(this.node.inlineContent){let s=o.nodeValue,l=Zce(this.node.content,s,r-n,i-n);return l<0?null:{node:o,pos:l,text:s}}else return{node:o,pos:-1,text:""}}protectLocalComposition(t,{node:n,pos:r,text:i}){if(this.getDesc(n))return;let a=n;for(;a.parentNode!=this.contentDOM;a=a.parentNode){for(;a.previousSibling;)a.parentNode.removeChild(a.previousSibling);for(;a.nextSibling;)a.parentNode.removeChild(a.nextSibling);a.pmViewDesc&&(a.pmViewDesc=void 0)}let o=new jce(this,a,n,i);t.input.compositionNodes.push(o),this.children=Vx(this.children,r,r+i.length,t,o)}update(t,n,r,i){return this.dirty==Os||!t.sameMarkup(this.node)?!1:(this.updateInner(t,n,r,i),!0)}updateInner(t,n,r,i){this.updateOuterDeco(n),this.node=t,this.innerDeco=r,this.contentDOM&&this.updateChildren(i,this.posAtStart),this.dirty=so}updateOuterDeco(t){if(jx(t,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=Aj(this.dom,this.nodeDOM,Px(this.outerDeco,this.node,n),Px(t,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function h$(e,t,n,r,i){zj(r,t,e);let a=new tu(void 0,e,t,n,r,r,r,i,0);return a.contentDOM&&a.updateChildren(i,0),a}class Av extends tu{constructor(t,n,r,i,a,o,s){super(t,n,r,i,a,null,o,s,0)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,n,r,i){return this.dirty==Os||this.dirty!=so&&!this.inParent()||!t.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=so||t.text!=this.node.text)&&t.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=t.text,i.trackWrites==this.nodeDOM&&(i.trackWrites=null)),this.node=t,this.dirty=so,!0)}inParent(){let t=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,n,r){return t==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(t,n,r)}ignoreMutation(t){return t.type!="characterData"&&t.type!="selection"}slice(t,n,r){let i=this.node.cut(t,n),a=document.createTextNode(i.text);return new Av(this.parent,i,this.outerDeco,this.innerDeco,a,a,r)}markDirty(t,n){super.markDirty(t,n),this.dom!=this.nodeDOM&&(t==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=Os)}get domAtom(){return!1}}class Ej extends Wg{parseRule(){return{ignore:!0}}matchesHack(t){return this.dirty==so&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class Vce extends tu{constructor(t,n,r,i,a,o,s,l,c,u){super(t,n,r,i,a,o,s,c,u),this.spec=l}update(t,n,r,i){if(this.dirty==Os)return!1;if(this.spec.update){let a=this.spec.update(t,n,r);return a&&this.updateInner(t,n,r,i),a}else return!this.contentDOM&&!t.isLeaf?!1:super.update(t,n,r,i)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,n,r,i){this.spec.setSelection?this.spec.setSelection(t,n,r):super.setSelection(t,n,r,i)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return this.spec.stopEvent?this.spec.stopEvent(t):!1}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}function Tj(e,t,n){let r=e.firstChild,i=!1;for(let a=0;a>1,o=Math.min(a,t.length);for(;i-1)s>this.index&&(this.changed=!0,this.destroyBetween(this.index,s)),this.top=this.top.children[this.index];else{let l=Kd.create(this.top,t[a],n,r);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,a++}}findNodeMatch(t,n,r,i){let a=-1,o;if(i>=this.preMatch.index&&(o=this.preMatch.matches[i-this.preMatch.index]).parent==this.top&&o.matchesNode(t,n,r))a=this.top.children.indexOf(o,this.index);else for(let s=this.index,l=Math.min(this.top.children.length,s+5);s0;){let s;for(;;)if(r){let c=n.children[r-1];if(c instanceof Kd)n=c,r=c.children.length;else{s=c,r--;break}}else{if(n==t)break e;r=n.parent.children.indexOf(n),n=n.parent}let l=s.node;if(l){if(l!=e.child(i-1))break;--i,a.set(s,i),o.push(s)}}return{index:i,matched:a,matches:o.reverse()}}function Wce(e,t){return e.type.side-t.type.side}function Gce(e,t,n,r){let i=t.locals(e),a=0;if(i.length==0){for(let c=0;ca;)s.push(i[o++]);let h=a+u.nodeSize;if(u.isText){let g=h;o!g.inline):s.slice();r(u,m,t.forChild(a,u),f),a=h}}function Kce(e){if(e.nodeName=="UL"||e.nodeName=="OL"){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}function Yce(e,t){for(;;){if(e.nodeType==3)return e;if(e.nodeType==1&&t>0){if(e.childNodes.length>t&&e.childNodes[t].nodeType==3)return e.childNodes[t];e=e.childNodes[t-1],t=bs(e)}else if(e.nodeType==1&&t=n){let c=s=0&&c+t.length+s>=n)return s+c;if(n==r&&l.length>=r+t.length-s&&l.slice(r-s,r-s+t.length)==t)return r}}return-1}function Vx(e,t,n,r,i){let a=[];for(let o=0,s=0;o=n||u<=t?a.push(l):(cn&&a.push(l.slice(n-c,l.size,r)))}return a}function XC(e,t=null){let n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;let i=e.docView.nearestDesc(n.focusNode),a=i&&i.size==0,o=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(o<0)return null;let s=r.resolve(o),l,c;if(Ev(n)){for(l=s;i&&!i.node;)i=i.parent;let u=i.node;if(i&&u.isAtom&&Mt.isSelectable(u)&&i.parent&&!(u.isInline&&bce(n.focusNode,n.focusOffset,i.dom))){let f=i.posBefore;c=new Mt(o==f?s:r.resolve(f))}}else{let u=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(u<0)return null;l=r.resolve(u)}if(!c){let u=t=="pointer"||e.state.selection.head{(n.anchorNode!=r||n.anchorOffset!=i)&&(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{(!Fj(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})}function Jce(e){let t=e.domSelection(),n=document.createRange(),r=e.cursorWrapper.dom,i=r.nodeName=="IMG";i?n.setEnd(r.parentNode,_a(r)+1):n.setEnd(r,0),n.collapse(!1),t.removeAllRanges(),t.addRange(n),!i&&!e.state.selection.visible&&Gi&&eu<=11&&(r.disabled=!0,r.disabled=!1)}function $j(e,t){if(t instanceof Mt){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(_$(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else _$(e)}function _$(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function JC(e,t,n,r){return e.someProp("createSelectionBetween",i=>i(e,t,n))||Nt.between(t,n,r)}function b$(e){return e.editable&&!e.hasFocus()?!1:Mj(e)}function Mj(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(t.anchorNode.nodeType==3?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(t.focusNode.nodeType==3?t.focusNode.parentNode:t.focusNode))}catch{return!1}}function Qce(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return Gd(t.node,t.offset,n.anchorNode,n.anchorOffset)}function qx(e,t){let{$anchor:n,$head:r}=e.selection,i=t>0?n.max(r):n.min(r),a=i.parent.inlineContent?i.depth?e.doc.resolve(t>0?i.after():i.before()):null:i;return a&&$t.findFrom(a,t)}function dd(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function k$(e,t,n){let r=e.state.selection;if(r instanceof Nt){if(!r.empty||n.indexOf("s")>-1)return!1;if(e.endOfTextblock(t>0?"forward":"backward")){let i=qx(e.state,t);return i&&i instanceof Mt?dd(e,i):!1}else if(!(Za&&n.indexOf("m")>-1)){let i=r.$head,a=i.textOffset?null:t<0?i.nodeBefore:i.nodeAfter,o;if(!a||a.isText)return!1;let s=t<0?i.pos-a.nodeSize:i.pos;return a.isAtom||(o=e.docView.descAt(s))&&!o.contentDOM?Mt.isSelectable(a)?dd(e,new Mt(t<0?e.state.doc.resolve(i.pos-a.nodeSize):i)):Tv?dd(e,new Nt(e.state.doc.resolve(t<0?s:s+a.nodeSize))):!1:!1}}else{if(r instanceof Mt&&r.node.isInline)return dd(e,new Nt(t>0?r.$to:r.$from));{let i=qx(e.state,t);return i?dd(e,i):!1}}}function Mk(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function Sm(e){let t=e.pmViewDesc;return t&&t.size==0&&(e.nextSibling||e.nodeName!="BR")}function E0(e,t){return t<0?eue(e):Oj(e)}function eue(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,a,o=!1;for(Xo&&n.nodeType==1&&r0){if(n.nodeType!=1)break;{let s=n.childNodes[r-1];if(Sm(s))i=n,a=--r;else if(s.nodeType==3)n=s,r=n.nodeValue.length;else break}}else{if(Nj(n))break;{let s=n.previousSibling;for(;s&&Sm(s);)i=n.parentNode,a=_a(s),s=s.previousSibling;if(s)n=s,r=Mk(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}}o?Hx(e,n,r):i&&Hx(e,i,a)}function Oj(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i=Mk(n),a,o;for(;;)if(r{e.state==i&&Al(e)},50)}function w$(e,t){let n=e.state.doc.resolve(t);if(!(ri||Cce)&&n.parent.inlineContent){let i=e.coordsAtPos(t);if(t>n.start()){let a=e.coordsAtPos(t-1),o=(a.top+a.bottom)/2;if(o>i.top&&o1)return a.lefti.top&&o1)return a.left>i.left?"ltr":"rtl"}}return getComputedStyle(e.dom).direction=="rtl"?"rtl":"ltr"}function v$(e,t,n){let r=e.state.selection;if(r instanceof Nt&&!r.empty||n.indexOf("s")>-1||Za&&n.indexOf("m")>-1)return!1;let{$from:i,$to:a}=r;if(!i.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let o=qx(e.state,t);if(o&&o instanceof Mt)return dd(e,o)}if(!i.parent.inlineContent){let o=t<0?i:a,s=r instanceof va?$t.near(o,t):$t.findFrom(o,t);return s?dd(e,s):!1}return!1}function x$(e,t){if(!(e.state.selection instanceof Nt))return!0;let{$head:n,$anchor:r,empty:i}=e.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let a=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(a&&!a.isText){let o=e.state.tr;return t<0?o.delete(n.pos-a.nodeSize,n.pos):o.delete(n.pos,n.pos+a.nodeSize),e.dispatch(o),!0}return!1}function C$(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function tue(e){if(!wi||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&t.nodeType==1&&n==0&&t.firstChild&&t.firstChild.contentEditable=="false"){let r=t.firstChild;C$(e,r,"true"),setTimeout(()=>C$(e,r,"false"),20)}return!1}function nue(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function rue(e,t){let n=t.keyCode,r=nue(t);if(n==8||Za&&n==72&&r=="c")return x$(e,-1)||E0(e,-1);if(n==46&&!t.shiftKey||Za&&n==68&&r=="c")return x$(e,1)||E0(e,1);if(n==13||n==27)return!0;if(n==37||Za&&n==66&&r=="c"){let i=n==37?w$(e,e.state.selection.from)=="ltr"?-1:1:-1;return k$(e,i,r)||E0(e,i)}else if(n==39||Za&&n==70&&r=="c"){let i=n==39?w$(e,e.state.selection.from)=="ltr"?1:-1:1;return k$(e,i,r)||E0(e,i)}else{if(n==38||Za&&n==80&&r=="c")return v$(e,-1,r)||E0(e,-1);if(n==40||Za&&n==78&&r=="c")return tue(e)||v$(e,1,r)||Oj(e);if(r==(Za?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function Lj(e,t){e.someProp("transformCopied",m=>{t=m(t,e)});let n=[],{content:r,openStart:i,openEnd:a}=t;for(;i>1&&a>1&&r.childCount==1&&r.firstChild.childCount==1;){i--,a--;let m=r.firstChild;n.push(m.type.name,m.attrs!=m.type.defaultAttrs?m.attrs:null),r=m.content}let o=e.someProp("clipboardSerializer")||ws.fromSchema(e.state.schema),s=Vj(),l=s.createElement("div");l.appendChild(o.serializeFragment(r,{document:s}));let c=l.firstChild,u,f=0;for(;c&&c.nodeType==1&&(u=jj[c.nodeName.toLowerCase()]);){for(let m=u.length-1;m>=0;m--){let g=s.createElement(u[m]);for(;l.firstChild;)g.appendChild(l.firstChild);l.appendChild(g),f++}c=l.firstChild}c&&c.nodeType==1&&c.setAttribute("data-pm-slice",`${i} ${a}${f?` -${f}`:""} ${JSON.stringify(n)}`);let h=e.someProp("clipboardTextSerializer",m=>m(t,e))||t.content.textBetween(0,t.content.size,` - -`);return{dom:l,text:h}}function Ij(e,t,n,r,i){let a=i.parent.type.spec.code,o,s;if(!n&&!t)return null;let l=t&&(r||a||!n);if(l){if(e.someProp("transformPastedText",h=>{t=h(t,a||r,e)}),a)return t?new Ue(Ee.from(e.state.schema.text(t.replace(/\r\n?/g,` -`))),0,0):Ue.empty;let f=e.someProp("clipboardTextParser",h=>h(t,i,r,e));if(f)s=f;else{let h=i.marks(),{schema:m}=e.state,g=ws.fromSchema(m);o=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(b=>{let C=o.appendChild(document.createElement("p"));b&&C.appendChild(g.serializeNode(m.text(b,h)))})}}else e.someProp("transformPastedHTML",f=>{n=f(n,e)}),o=oue(n),Tv&&sue(o);let c=o&&o.querySelector("[data-pm-slice]"),u=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let f=+u[3];f>0;f--){let h=o.firstChild;for(;h&&h.nodeType!=1;)h=h.nextSibling;if(!h)break;o=h}if(s||(s=(e.someProp("clipboardParser")||e.someProp("domParser")||Wd.fromSchema(e.state.schema)).parseSlice(o,{preserveWhitespace:!!(l||u),context:i,ruleFromNode(h){return h.nodeName=="BR"&&!h.nextSibling&&h.parentNode&&!iue.test(h.parentNode.nodeName)?{ignore:!0}:null}})),u)s=lue(S$(s,+u[1],+u[2]),u[4]);else if(s=Ue.maxOpen(aue(s.content,i),!0),s.openStart||s.openEnd){let f=0,h=0;for(let m=s.content.firstChild;f{s=f(s,e)}),s}const iue=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function aue(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let i=t.node(n).contentMatchAt(t.index(n)),a,o=[];if(e.forEach(s=>{if(!o)return;let l=i.findWrapping(s.type),c;if(!l)return o=null;if(c=o.length&&a.length&&Rj(l,a,s,o[o.length-1],0))o[o.length-1]=c;else{o.length&&(o[o.length-1]=Pj(o[o.length-1],a.length));let u=Bj(s,l);o.push(u),i=i.matchType(u.type),a=l}}),o)return Ee.from(o)}return e}function Bj(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,Ee.from(e));return e}function Rj(e,t,n,r,i){if(i1&&(a=0),i=n&&(s=t<0?o.contentMatchAt(0).fillBefore(s,a<=i).append(s):s.append(o.contentMatchAt(o.childCount).fillBefore(Ee.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,o.copy(s))}function S$(e,t,n){return t]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=Vj().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(e),i;if((i=r&&jj[r[1].toLowerCase()])&&(e=i.map(a=>"<"+a+">").join("")+e+i.map(a=>"").reverse().join("")),n.innerHTML=e,i)for(let a=0;a=0;s-=2){let l=n.nodes[r[s]];if(!l||l.hasRequiredAttrs())break;i=Ee.from(l.create(r[s+1],i)),a++,o++}return new Ue(i,a,o)}const vi={},xi={},cue={touchstart:!0,touchmove:!0};class uue{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function due(e){for(let t in vi){let n=vi[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=r=>{hue(e,r)&&!QC(e,r)&&(e.editable||!(r.type in xi))&&n(e,r)},cue[t]?{passive:!0}:void 0)}wi&&e.dom.addEventListener("input",()=>null),Wx(e)}function Vc(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function fue(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function Wx(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=r=>QC(e,r))})}function QC(e,t){return e.someProp("handleDOMEvents",n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function hue(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function pue(e,t){!QC(e,t)&&vi[t.type]&&(e.editable||!(t.type in xi))&&vi[t.type](e,t)}xi.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!Hj(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(Ro&&ri&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),lp&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();e.input.lastIOSEnter=r,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==r&&(e.someProp("handleKeyDown",i=>i(e,ud(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",r=>r(e,n))||rue(e,n)?n.preventDefault():Vc(e,"key")};xi.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)};xi.keypress=(e,t)=>{let n=t;if(Hj(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||Za&&n.metaKey)return;if(e.someProp("handleKeyPress",i=>i(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof Nt)||!r.$from.sameParent(r.$to)){let i=String.fromCharCode(n.charCode);!/[\r\n]/.test(i)&&!e.someProp("handleTextInput",a=>a(e,r.$from.pos,r.$to.pos,i))&&e.dispatch(e.state.tr.insertText(i).scrollIntoView()),n.preventDefault()}};function zv(e){return{left:e.clientX,top:e.clientY}}function mue(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function eS(e,t,n,r,i){if(r==-1)return!1;let a=e.state.doc.resolve(r);for(let o=a.depth+1;o>0;o--)if(e.someProp(t,s=>o>a.depth?s(e,n,a.nodeAfter,a.before(o),i,!0):s(e,n,a.node(o),a.before(o),i,!1)))return!0;return!1}function Rh(e,t,n){e.focused||e.focus();let r=e.state.tr.setSelection(t);n=="pointer"&&r.setMeta("pointer",!0),e.dispatch(r)}function gue(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&Mt.isSelectable(r)?(Rh(e,new Mt(n),"pointer"),!0):!1}function yue(e,t){if(t==-1)return!1;let n=e.state.selection,r,i;n instanceof Mt&&(r=n.node);let a=e.state.doc.resolve(t);for(let o=a.depth+1;o>0;o--){let s=o>a.depth?a.nodeAfter:a.node(o);if(Mt.isSelectable(s)){r&&n.$from.depth>0&&o>=n.$from.depth&&a.before(n.$from.depth+1)==n.$from.pos?i=a.before(n.$from.depth):i=a.before(o);break}}return i!=null?(Rh(e,Mt.create(e.state.doc,i),"pointer"),!0):!1}function _ue(e,t,n,r,i){return eS(e,"handleClickOn",t,n,r)||e.someProp("handleClick",a=>a(e,t,r))||(i?yue(e,n):gue(e,n))}function bue(e,t,n,r){return eS(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",i=>i(e,t,r))}function kue(e,t,n,r){return eS(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",i=>i(e,t,r))||wue(e,n,r)}function wue(e,t,n){if(n.button!=0)return!1;let r=e.state.doc;if(t==-1)return r.inlineContent?(Rh(e,Nt.create(r,0,r.content.size),"pointer"),!0):!1;let i=r.resolve(t);for(let a=i.depth+1;a>0;a--){let o=a>i.depth?i.nodeAfter:i.node(a),s=i.before(a);if(o.inlineContent)Rh(e,Nt.create(r,s+1,s+1+o.content.size),"pointer");else if(Mt.isSelectable(o))Rh(e,Mt.create(r,s),"pointer");else continue;return!0}}function tS(e){return Ok(e)}const qj=Za?"metaKey":"ctrlKey";vi.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=tS(e),i=Date.now(),a="singleClick";i-e.input.lastClick.time<500&&mue(n,e.input.lastClick)&&!n[qj]&&(e.input.lastClick.type=="singleClick"?a="doubleClick":e.input.lastClick.type=="doubleClick"&&(a="tripleClick")),e.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:a};let o=e.posAtCoords(zv(n));o&&(a=="singleClick"?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new vue(e,o,n,!!r)):(a=="doubleClick"?bue:kue)(e,o.pos,o.inside,n)?n.preventDefault():Vc(e,"pointer"))};class vue{constructor(t,n,r,i){this.view=t,this.pos=n,this.event=r,this.flushed=i,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!r[qj],this.allowDefault=r.shiftKey;let a,o;if(n.inside>-1)a=t.state.doc.nodeAt(n.inside),o=n.inside;else{let u=t.state.doc.resolve(n.pos);a=u.parent,o=u.depth?u.before():0}const s=i?null:r.target,l=s?t.docView.nearestDesc(s,!0):null;this.target=l?l.dom:null;let{selection:c}=t.state;(r.button==0&&a.type.spec.draggable&&a.type.spec.selectable!==!1||c instanceof Mt&&c.from<=o&&c.to>o)&&(this.mightDrag={node:a,pos:o,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Xo&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),Vc(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Al(this.view)),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(zv(t))),this.updateAllowDefault(t),this.allowDefault||!n?Vc(this.view,"pointer"):_ue(this.view,n.pos,n.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||wi&&this.mightDrag&&!this.mightDrag.node.isAtom||ri&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(Rh(this.view,$t.near(this.view.state.doc.resolve(n.pos)),"pointer"),t.preventDefault()):Vc(this.view,"pointer")}move(t){this.updateAllowDefault(t),Vc(this.view,"pointer"),t.buttons==0&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}vi.touchstart=e=>{e.input.lastTouch=Date.now(),tS(e),Vc(e,"pointer")};vi.touchmove=e=>{e.input.lastTouch=Date.now(),Vc(e,"pointer")};vi.contextmenu=e=>tS(e);function Hj(e,t){return e.composing?!0:wi&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const xue=Ro?5e3:-1;xi.compositionstart=xi.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))e.markCursor=e.state.storedMarks||n.marks(),Ok(e,!0),e.markCursor=null;else if(Ok(e),Xo&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=e.domSelectionRange();for(let i=r.focusNode,a=r.focusOffset;i&&i.nodeType==1&&a!=0;){let o=a<0?i.lastChild:i.childNodes[a-1];if(!o)break;if(o.nodeType==3){e.domSelection().collapse(o,o.nodeValue.length);break}else i=o,a=-1}}e.input.composing=!0}Uj(e,xue)};xi.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionID++,Uj(e,20))};function Uj(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>Ok(e),t))}function Wj(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Cue());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function Cue(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function Ok(e,t=!1){if(!(Ro&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),Wj(e),t||e.docView&&e.docView.dirty){let n=XC(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):e.updateState(e.state),!0}return!1}}function Sue(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),i=document.createRange();i.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}const cp=Gi&&eu<15||lp&&Sce<604;vi.copy=xi.cut=(e,t)=>{let n=t,r=e.state.selection,i=n.type=="cut";if(r.empty)return;let a=cp?null:n.clipboardData,o=r.content(),{dom:s,text:l}=Lj(e,o);a?(n.preventDefault(),a.clearData(),a.setData("text/html",s.innerHTML),a.setData("text/plain",l)):Sue(e,s),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function Due(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function Eue(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let i=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?hg(e,r.value,null,i,t):hg(e,r.textContent,r.innerHTML,i,t)},50)}function hg(e,t,n,r,i){let a=Ij(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",l=>l(e,i,a||Ue.empty)))return!0;if(!a)return!1;let o=Due(a),s=o?e.state.tr.replaceSelectionWith(o,r):e.state.tr.replaceSelection(a);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}xi.paste=(e,t)=>{let n=t;if(e.composing&&!Ro)return;let r=cp?null:n.clipboardData,i=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&hg(e,r.getData("text/plain"),r.getData("text/html"),i,n)?n.preventDefault():Eue(e,n)};class Tue{constructor(t,n){this.slice=t,this.move=n}}const Gj=Za?"altKey":"ctrlKey";vi.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=e.state.selection,a=i.empty?null:e.posAtCoords(zv(n));if(!(a&&a.pos>=i.from&&a.pos<=(i instanceof Mt?i.to-1:i.to))){if(r&&r.mightDrag)e.dispatch(e.state.tr.setSelection(Mt.create(e.state.doc,r.mightDrag.pos)));else if(n.target&&n.target.nodeType==1){let c=e.docView.nearestDesc(n.target,!0);c&&c.node.type.spec.draggable&&c!=e.docView&&e.dispatch(e.state.tr.setSelection(Mt.create(e.state.doc,c.posBefore)))}}let o=e.state.selection.content(),{dom:s,text:l}=Lj(e,o);n.dataTransfer.clearData(),n.dataTransfer.setData(cp?"Text":"text/html",s.innerHTML),n.dataTransfer.effectAllowed="copyMove",cp||n.dataTransfer.setData("text/plain",l),e.dragging=new Tue(o,!n[Gj])};vi.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)};xi.dragover=xi.dragenter=(e,t)=>t.preventDefault();xi.drop=(e,t)=>{let n=t,r=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let i=e.posAtCoords(zv(n));if(!i)return;let a=e.state.doc.resolve(i.pos),o=r&&r.slice;o?e.someProp("transformPasted",g=>{o=g(o,e)}):o=Ij(e,n.dataTransfer.getData(cp?"Text":"text/plain"),cp?null:n.dataTransfer.getData("text/html"),!1,a);let s=!!(r&&!n[Gj]);if(e.someProp("handleDrop",g=>g(e,n,o||Ue.empty,s))){n.preventDefault();return}if(!o)return;n.preventDefault();let l=o?lce(e.state.doc,a.pos,o):a.pos;l==null&&(l=a.pos);let c=e.state.tr;s&&c.deleteSelection();let u=c.mapping.map(l),f=o.openStart==0&&o.openEnd==0&&o.content.childCount==1,h=c.doc;if(f?c.replaceRangeWith(u,u,o.content.firstChild):c.replaceRange(u,u,o),c.doc.eq(h))return;let m=c.doc.resolve(u);if(f&&Mt.isSelectable(o.content.firstChild)&&m.nodeAfter&&m.nodeAfter.sameMarkup(o.content.firstChild))c.setSelection(new Mt(m));else{let g=c.mapping.map(l);c.mapping.maps[c.mapping.maps.length-1].forEach((b,C,w,k)=>g=k),c.setSelection(JC(e,m,c.doc.resolve(g)))}e.focus(),e.dispatch(c.setMeta("uiEvent","drop"))};vi.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&Al(e)},20))};vi.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)};vi.beforeinput=(e,t)=>{if(ri&&Ro&&t.inputType=="deleteContentBackward"){e.domObserver.flushSoon();let{domChangeCount:r}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=r||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",a=>a(e,ud(8,"Backspace")))))return;let{$cursor:i}=e.state.selection;i&&i.pos>0&&e.dispatch(e.state.tr.delete(i.pos-1,i.pos).scrollIntoView())},50)}};for(let e in xi)vi[e]=xi[e];function pg(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class nS{constructor(t,n){this.toDOM=t,this.spec=n||Td,this.side=this.spec.side||0}map(t,n,r,i){let{pos:a,deleted:o}=t.mapResult(n.from+i,this.side<0?-1:1);return o?null:new $r(a-r,a-r,this)}valid(){return!0}eq(t){return this==t||t instanceof nS&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&pg(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class nu{constructor(t,n){this.attrs=t,this.spec=n||Td}map(t,n,r,i){let a=t.map(n.from+i,this.spec.inclusiveStart?-1:1)-r,o=t.map(n.to+i,this.spec.inclusiveEnd?1:-1)-r;return a>=o?null:new $r(a,o,this)}valid(t,n){return n.from=t&&(!a||a(s.spec))&&r.push(s.copy(s.from+i,s.to+i))}for(let o=0;ot){let s=this.children[o]+1;this.children[o+2].findInner(t-s,n-s,r,i+s,a)}}map(t,n,r){return this==ei||t.maps.length==0?this:this.mapInner(t,n,0,0,r||Td)}mapInner(t,n,r,i,a){let o;for(let s=0;s{let c=l+r,u;if(u=Yj(n,s,c)){for(i||(i=this.children.slice());as&&f.to=t){this.children[s]==t&&(r=this.children[s+2]);break}let a=t+1,o=a+n.content.size;for(let s=0;sa&&l.type instanceof nu){let c=Math.max(a,l.from)-a,u=Math.min(o,l.to)-a;ci.map(t,n,Td));return Lc.from(r)}forChild(t,n){if(n.isLeaf)return en.empty;let r=[];for(let i=0;in instanceof en)?t:t.reduce((n,r)=>n.concat(r instanceof en?r:r.members),[]))}}}function Aue(e,t,n,r,i,a,o){let s=e.slice();for(let c=0,u=a;c{let C=b-g-(m-h);for(let w=0;wk+u-f)continue;let S=s[w]+u-f;m>=S?s[w+1]=h<=S?-2:-1:g>=i&&C&&(s[w]+=C,s[w+1]+=C)}f+=C}),u=n.maps[c].map(u,-1)}let l=!1;for(let c=0;c=r.content.size){l=!0;continue}let h=n.map(e[c+1]+a,-1),m=h-i,{index:g,offset:b}=r.content.findIndex(f),C=r.maybeChild(g);if(C&&b==f&&b+C.nodeSize==m){let w=s[c+2].mapInner(n,C,u+1,e[c]+a+1,o);w!=ei?(s[c]=f,s[c+1]=m,s[c+2]=w):(s[c+1]=-2,l=!0)}else l=!0}if(l){let c=zue(s,e,t,n,i,a,o),u=Nk(c,r,0,o);t=u.local;for(let f=0;fn&&o.to{let c=Yj(e,s,l+n);if(c){a=!0;let u=Nk(c,s,n+l+1,r);u!=ei&&i.push(l,l+s.nodeSize,u)}});let o=Kj(a?Zj(e):e,-n).sort(Ad);for(let s=0;s0;)t++;e.splice(t,0,n)}function U4(e){let t=[];return e.someProp("decorations",n=>{let r=n(e.state);r&&r!=ei&&t.push(r)}),e.cursorWrapper&&t.push(en.create(e.state.doc,[e.cursorWrapper.deco])),Lc.from(t)}const Fue={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},$ue=Gi&&eu<=11;class Mue{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class Oue{constructor(t,n){this.view=t,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new Mue,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let i=0;ii.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),$ue&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,Fue)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let n=0;nthis.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(b$(this.view)){if(this.suppressingSelectionUpdates)return Al(this.view);if(Gi&&eu<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&Gd(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let n=new Set,r;for(let a=t.focusNode;a;a=fg(a))n.add(a);for(let a=t.anchorNode;a;a=fg(a))if(n.has(a)){r=a;break}let i=r&&this.view.docView.nearestDesc(r);if(i&&i.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let n=this.observer?this.observer.takeRecords():[];this.queue.length&&(n=this.queue.concat(n),this.queue.length=0);let r=t.domSelectionRange(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&b$(t)&&!this.ignoreSelectionChange(r),a=-1,o=-1,s=!1,l=[];if(t.editable)for(let u=0;u1){let u=l.filter(f=>f.nodeName=="BR");if(u.length==2){let f=u[0],h=u[1];f.parentNode&&f.parentNode.parentNode==h.parentNode?h.remove():f.remove()}}let c=null;a<0&&i&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)-1||i)&&(a>-1&&(t.docView.markDirty(a,o),Nue(t)),this.handleDOMChange(a,o,s,l),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(r)||Al(t),this.currentSelection.set(r))}registerMutation(t,n){if(n.indexOf(t.target)>-1)return null;let r=this.view.docView.nearestDesc(t.target);if(t.type=="attributes"&&(r==this.view.docView||t.attributeName=="contenteditable"||t.attributeName=="style"&&!t.oldValue&&!t.target.getAttribute("style"))||!r||r.ignoreMutation(t))return null;if(t.type=="childList"){for(let u=0;ui;C--){let w=r.childNodes[C-1],k=w.pmViewDesc;if(w.nodeName=="BR"&&!k){a=C;break}if(!k||k.size)break}let f=e.state.doc,h=e.someProp("domParser")||Wd.fromSchema(e.state.schema),m=f.resolve(o),g=null,b=h.parse(r,{topNode:m.parent,topMatch:m.parent.contentMatchAt(m.index()),topOpen:!0,from:i,to:a,preserveWhitespace:m.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:Bue,context:m});if(c&&c[0].pos!=null){let C=c[0].pos,w=c[1]&&c[1].pos;w==null&&(w=C),g={anchor:C+o,head:w+o}}return{doc:b,sel:g,from:o,to:s}}function Bue(e){let t=e.pmViewDesc;if(t)return t.parseRule();if(e.nodeName=="BR"&&e.parentNode){if(wi&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(e.parentNode.lastChild==e||wi&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if(e.nodeName=="IMG"&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}const Rue=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function Pue(e,t,n,r,i){if(t<0){let $=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,R=XC(e,$);if(R&&!e.state.selection.eq(R)){if(ri&&Ro&&e.input.lastKeyCode===13&&Date.now()-100G(e,ud(13,"Enter"))))return;let O=e.state.tr.setSelection(R);$=="pointer"?O.setMeta("pointer",!0):$=="key"&&O.scrollIntoView(),e.composing&&O.setMeta("composition",e.input.compositionID),e.dispatch(O)}return}let a=e.state.doc.resolve(t),o=a.sharedDepth(n);t=a.before(o+1),n=e.state.doc.resolve(n).after(o+1);let s=e.state.selection,l=Iue(e,t,n),c=e.state.doc,u=c.slice(l.from,l.to),f,h;e.input.lastKeyCode===8&&Date.now()-100Date.now()-225||Ro)&&i.some($=>$.nodeType==1&&!Rue.test($.nodeName))&&(!m||m.endA>=m.endB)&&e.someProp("handleKeyDown",$=>$(e,ud(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!m)if(r&&s instanceof Nt&&!s.empty&&s.$head.sameParent(s.$anchor)&&!e.composing&&!(l.sel&&l.sel.anchor!=l.sel.head))m={start:s.from,endA:s.to,endB:s.to};else{if(l.sel){let $=z$(e,e.state.doc,l.sel);if($&&!$.eq(e.state.selection)){let R=e.state.tr.setSelection($);e.composing&&R.setMeta("composition",e.input.compositionID),e.dispatch(R)}}return}if(ri&&e.cursorWrapper&&l.sel&&l.sel.anchor==e.cursorWrapper.deco.from&&l.sel.head==l.sel.anchor){let $=m.endB-m.start;l.sel={anchor:l.sel.anchor+$,head:l.sel.anchor+$}}e.input.domChangeCount++,e.state.selection.frome.state.selection.from&&m.start<=e.state.selection.from+2&&e.state.selection.from>=l.from?m.start=e.state.selection.from:m.endA=e.state.selection.to-2&&e.state.selection.to<=l.to&&(m.endB+=e.state.selection.to-m.endA,m.endA=e.state.selection.to)),Gi&&eu<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>l.from&&l.doc.textBetween(m.start-l.from-1,m.start-l.from+1)=="  "&&(m.start--,m.endA--,m.endB--);let g=l.doc.resolveNoCache(m.start-l.from),b=l.doc.resolveNoCache(m.endB-l.from),C=c.resolve(m.start),w=g.sameParent(b)&&g.parent.inlineContent&&C.end()>=m.endA,k;if((lp&&e.input.lastIOSEnter>Date.now()-225&&(!w||i.some($=>$.nodeName=="DIV"||$.nodeName=="P"))||!w&&g.pos$(e,ud(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>m.start&&Vue(c,m.start,m.endA,g,b)&&e.someProp("handleKeyDown",$=>$(e,ud(8,"Backspace")))){Ro&&ri&&e.domObserver.suppressSelectionUpdates();return}ri&&Ro&&m.endB==m.start&&(e.input.lastAndroidDelete=Date.now()),Ro&&!w&&g.start()!=b.start()&&b.parentOffset==0&&g.depth==b.depth&&l.sel&&l.sel.anchor==l.sel.head&&l.sel.head==m.endA&&(m.endB-=2,b=l.doc.resolveNoCache(m.endB-l.from),setTimeout(()=>{e.someProp("handleKeyDown",function($){return $(e,ud(13,"Enter"))})},20));let S=m.start,E=m.endA,A,_,T;if(w){if(g.pos==b.pos)Gi&&eu<=11&&g.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>Al(e),20)),A=e.state.tr.delete(S,E),_=c.resolve(m.start).marksAcross(c.resolve(m.endA));else if(m.endA==m.endB&&(T=jue(g.parent.content.cut(g.parentOffset,b.parentOffset),C.parent.content.cut(C.parentOffset,m.endA-C.start()))))A=e.state.tr,T.type=="add"?A.addMark(S,E,T.mark):A.removeMark(S,E,T.mark);else if(g.parent.child(g.index()).isText&&g.index()==b.index()-(b.textOffset?0:1)){let $=g.parent.textBetween(g.parentOffset,b.parentOffset);if(e.someProp("handleTextInput",R=>R(e,S,E,$)))return;A=e.state.tr.insertText($,S,E)}}if(A||(A=e.state.tr.replace(S,E,l.doc.slice(m.start-l.from,m.endB-l.from))),l.sel){let $=z$(e,A.doc,l.sel);$&&!(ri&&Ro&&e.composing&&$.empty&&(m.start!=m.endB||e.input.lastAndroidDeletet.content.size?null:JC(e,t.resolve(n.anchor),t.resolve(n.head))}function jue(e,t){let n=e.firstChild.marks,r=t.firstChild.marks,i=n,a=r,o,s,l;for(let u=0;uu.mark(s.addToSet(u.marks));else if(i.length==0&&a.length==1)s=a[0],o="remove",l=u=>u.mark(s.removeFromSet(u.marks));else return null;let c=[];for(let u=0;un||W4(o,!0,!1)0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,i++,t=!1;if(n){let a=e.node(r).maybeChild(e.indexAfter(r));for(;a&&!a.isLeaf;)a=a.firstChild,i++}return i}function que(e,t,n,r,i){let a=e.findDiffStart(t,n);if(a==null)return null;let{a:o,b:s}=e.findDiffEnd(t,n+e.size,n+t.size);if(i=="end"){let l=Math.max(0,a-Math.min(o,s));r-=o+l-a}if(o=o?a-r:0;a-=l,s=a+(s-o),o=a}else if(s=s?a-r:0;a-=l,o=a+(o-s),s=a}return{start:a,endA:o,endB:s}}class Hue{constructor(t,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new uue,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(N$),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):typeof t=="function"?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=M$(this),$$(this),this.nodeViews=O$(this),this.docView=h$(this.state.doc,F$(this),U4(this),this.dom,this),this.domObserver=new Oue(this,(r,i,a,o)=>Pue(this,r,i,a,o)),this.domObserver.start(),due(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let n in t)this._props[n]=t[n];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&Wx(this);let n=this._props;this._props=t,t.plugins&&(t.plugins.forEach(N$),this.directPlugins=t.plugins),this.updateStateInner(t.state,n)}setProps(t){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in t)n[r]=t[r];this.update(n)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,n){let r=this.state,i=!1,a=!1;t.storedMarks&&this.composing&&(Wj(this),a=!0),this.state=t;let o=r.plugins!=t.plugins||this._props.plugins!=n.plugins;if(o||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let h=O$(this);Wue(h,this.nodeViews)&&(this.nodeViews=h,i=!0)}(o||n.handleDOMEvents!=this._props.handleDOMEvents)&&Wx(this),this.editable=M$(this),$$(this);let s=U4(this),l=F$(this),c=r.plugins!=t.plugins&&!r.doc.eq(t.doc)?"reset":t.scrollToSelection>r.scrollToSelection?"to selection":"preserve",u=i||!this.docView.matchesNode(t.doc,l,s);(u||!t.selection.eq(r.selection))&&(a=!0);let f=c=="preserve"&&a&&this.dom.style.overflowAnchor==null&&Tce(this);if(a){this.domObserver.stop();let h=u&&(Gi||ri)&&!this.composing&&!r.selection.empty&&!t.selection.empty&&Uue(r.selection,t.selection);if(u){let m=ri?this.trackWrites=this.domSelectionRange().focusNode:null;(i||!this.docView.update(t.doc,l,s,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=h$(t.doc,l,s,this.dom,this)),m&&!this.trackWrites&&(h=!0)}h||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&Qce(this))?Al(this,h):($j(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),c=="reset"?this.dom.scrollTop=0:c=="to selection"?this.scrollToSelection():f&&Ace(f)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof Mt){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&s$(this,n.getBoundingClientRect(),t)}else s$(this,this.coordsAtPos(this.state.selection.head,1),t)}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(!t||t.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;nn.ownerDocument.getSelection()),this._root=n}return t||document}posAtCoords(t){return Nce(this,t)}coordsAtPos(t,n=1){return Cj(this,t,n)}domAtPos(t,n=0){return this.docView.domFromPos(t,n)}nodeDOM(t){let n=this.docView.descAt(t);return n?n.nodeDOM:null}posAtDOM(t,n,r=-1){let i=this.docView.posFromDOM(t,n,r);if(i==null)throw new RangeError("DOM position not inside the editor");return i}endOfTextblock(t,n){return Pce(this,n||this.state,t)}pasteHTML(t,n){return hg(this,"",t,!1,n||new ClipboardEvent("paste"))}pasteText(t,n){return hg(this,t,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(fue(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],U4(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return this.docView==null}dispatchEvent(t){return pue(this,t)}dispatch(t){let n=this._props.dispatchTransaction;n?n.call(this,t):this.updateState(this.state.apply(t))}domSelectionRange(){return wi&&this.root.nodeType===11&&wce(this.dom.ownerDocument)==this.dom?Lue(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function F$(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(e.state)),n)for(let r in n)r=="class"?t.class+=" "+n[r]:r=="style"?t.style=(t.style?t.style+";":"")+n[r]:!t[r]&&r!="contenteditable"&&r!="nodeName"&&(t[r]=String(n[r]))}),t.translate||(t.translate="no"),[$r.node(0,e.state.doc.content.size,t)]}function $$(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:$r.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function M$(e){return!e.someProp("editable",t=>t(e.state)===!1)}function Uue(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function O$(e){let t=Object.create(null);function n(r){for(let i in r)Object.prototype.hasOwnProperty.call(t,i)||(t[i]=r[i])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function Wue(e,t){let n=0,r=0;for(let i in e){if(e[i]!=t[i])return!0;n++}for(let i in t)r++;return n!=r}function N$(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}const Xj=F.createContext({contentRef:()=>{},view:null,getPos:()=>0,setAttrs:()=>{},node:null,selected:!1,decorations:[],innerDecorations:null}),es=()=>F.useContext(Xj),Jj=F.createContext(e=>{throw new Error("out of scope")}),aS=()=>F.useContext(Jj);let Gue=class extends _le{constructor(){super(...arguments),this.key=UC(),this.context={contentRef:t=>{t&&this.contentDOM&&t.firstChild!==this.contentDOM&&t.appendChild(this.contentDOM)},view:this.view,getPos:this.getPos,setAttrs:this.setAttrs,node:this.node,selected:this.selected,decorations:this.decorations,innerDecorations:this.innerDecorations},this.updateContext=()=>{Object.assign(this.context,{node:this.node,selected:this.selected,decorations:this.decorations,innerDecorations:this.innerDecorations})},this.render=()=>{const t=this.component;return Op.createPortal(cn.createElement(Xj.Provider,{value:this.context},cn.createElement(t,null)),this.dom,this.key)}}};const Qj=F.createContext({view:null}),Fv=()=>F.useContext(Qj),eV=F.createContext(e=>{throw new Error("out of scope")}),oS=()=>F.useContext(eV),Kue=(e,t)=>F.useCallback(n=>(r,i,a,o,s)=>{const l=new Gue({node:r,view:i,getPos:a,decorations:o,innerDecorations:s,options:{...n,onUpdate(){var c;(c=n.onUpdate)==null||c.call(n),e(l)},selectNode(){var c;(c=n.selectNode)==null||c.call(n),e(l)},deselectNode(){var c;(c=n.deselectNode)==null||c.call(n),e(l)},destroy(){var c;(c=n.destroy)==null||c.call(n),t(l)}}});return e(l,!1),l},[t,e]);let Yue=class extends ble{constructor(){super(...arguments),this.key=UC(),this.context={view:this.view,prevState:this.prevState},this.updateContext=()=>{Object.assign(this.context,{view:this.view,prevState:this.prevState})},this.render=()=>{const t=this.component;return Op.createPortal(cn.createElement(Qj.Provider,{value:this.context},cn.createElement(t,null)),this.root,this.key)}}};const Zue=(e,t)=>F.useCallback(n=>r=>{const i=new Yue({view:r,options:{...n,update:(a,o)=>{var s;(s=n.update)==null||s.call(n,a,o),e(i)},destroy:()=>{var a;(a=n.destroy)==null||a.call(n),t(i)}}});return e(i,!1),i},[t,e]),Xue=()=>{const[e,t]=F.useState({}),n=F.useRef(!1);F.useEffect(()=>(requestAnimationFrame(()=>{n.current=!0}),()=>{n.current=!1}),[]);const r=F.useCallback(o=>{n.current?Op.flushSync(o):o()},[]),i=F.useCallback((o,s=!0)=>{r(()=>{s&&o.updateContext(),t(l=>({...l,[o.key]:o.render()}))})},[r]),a=F.useCallback(o=>{r(()=>{t(s=>{const l={...s};return delete l[o.key],l})})},[r]);return{portals:e,renderReactRenderer:i,removeReactRenderer:a}},tV=F.createContext({view:null,getPos:()=>{}}),Np=()=>F.useContext(tV),nV=F.createContext(e=>{throw new Error("out of scope")}),$v=()=>F.useContext(nV);let Jue=class extends kle{constructor(){super(...arguments),this.key=UC(),this.context={view:this.view,getPos:this.getPos,spec:this.spec},this.updateContext=()=>{Object.assign(this.context,{view:this.view,getPos:this.getPos,spec:this.spec})},this.render=()=>{const t=this.component;return Op.createPortal(cn.createElement(tV.Provider,{value:this.context},cn.createElement(t,null)),this.dom,this.key)}}};const Que=(e,t)=>F.useCallback(n=>(r,i={})=>{const a=new Jue({pos:r,options:n}),o={...i,destroy:s=>{var l;(l=i.destroy)==null||l.call(i,s),t(a)}};return a.spec=o,$r.widget(r,(s,l)=>(a.bind(s,l),e(a),a.dom),o)},[t,e]),ede=({children:e})=>{const{renderReactRenderer:t,removeReactRenderer:n,portals:r}=Xue(),i=Kue(t,n),a=Zue(t,n),o=Que(t,n),s=F.useMemo(()=>Object.values(r),[r]);return cn.createElement(Jj.Provider,{value:i},cn.createElement(eV.Provider,{value:a},cn.createElement(nV.Provider,{value:o},e,s)))};let tde={data:""},nde=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||tde,rde=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,ide=/\/\*[^]*?\*\/| +/g,L$=/\n+/g,Ic=(e,t)=>{let n="",r="",i="";for(let a in e){let o=e[a];a[0]=="@"?a[1]=="i"?n=a+" "+o+";":r+=a[1]=="f"?Ic(o,a):a+"{"+Ic(o,a[1]=="k"?"":t)+"}":typeof o=="object"?r+=Ic(o,t?t.replace(/([^,])+/g,s=>a.replace(/(^:.*)|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,s):s?s+" "+l:l)):a):o!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Ic.p?Ic.p(a,o):a+":"+o+";")}return n+(t&&i?t+"{"+i+"}":i)+r},ol={},rV=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+rV(e[n]);return t}return e},ade=(e,t,n,r,i)=>{let a=rV(e),o=ol[a]||(ol[a]=(l=>{let c=0,u=11;for(;c>>0;return"go"+u})(a));if(!ol[o]){let l=a!==e?e:(c=>{let u,f,h=[{}];for(;u=rde.exec(c.replace(ide,""));)u[4]?h.shift():u[3]?(f=u[3].replace(L$," ").trim(),h.unshift(h[0][f]=h[0][f]||{})):h[0][u[1]]=u[2].replace(L$," ").trim();return h[0]})(e);ol[o]=Ic(i?{["@keyframes "+o]:l}:l,n?"":"."+o)}let s=n&&ol.g?ol.g:null;return n&&(ol.g=ol[o]),((l,c,u,f)=>{f?c.data=c.data.replace(f,l):c.data.indexOf(l)===-1&&(c.data=u?l+c.data:c.data+l)})(ol[o],t,r,s),o},ode=(e,t,n)=>e.reduce((r,i,a)=>{let o=t[a];if(o&&o.call){let s=o(n),l=s&&s.props&&s.props.className||/^go/.test(s)&&s;o=l?"."+l:s&&typeof s=="object"?s.props?"":Ic(s,""):s===!1?"":s}return r+i+(o??"")},"");function Mv(e){let t=this||{},n=e.call?e(t.p):e;return ade(n.unshift?n.raw?ode(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,nde(t.target),t.g,t.o,t.k)}let iV,Gx,Kx;Mv.bind({g:1});let Rl=Mv.bind({k:1});function sde(e,t,n,r){Ic.p=t,iV=e,Gx=n,Kx=r}function xu(e,t){let n=this||{};return function(){let r=arguments;function i(a,o){let s=Object.assign({},a),l=s.className||i.className;n.p=Object.assign({theme:Gx&&Gx()},s),n.o=/ *go\d+/.test(l),s.className=Mv.apply(n,r)+(l?" "+l:""),t&&(s.ref=o);let c=e;return e[0]&&(c=s.as||e,delete s.as),Kx&&c[0]&&Kx(s),iV(c,s)}return t?t(i):i}}var lde=e=>typeof e=="function",Lk=(e,t)=>lde(e)?e(t):e,cde=(()=>{let e=0;return()=>(++e).toString()})(),aV=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),ude=20,H_=new Map,dde=1e3,I$=e=>{if(H_.has(e))return;let t=setTimeout(()=>{H_.delete(e),sf({type:4,toastId:e})},dde);H_.set(e,t)},fde=e=>{let t=H_.get(e);t&&clearTimeout(t)},Yx=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,ude)};case 1:return t.toast.id&&fde(t.toast.id),{...e,toasts:e.toasts.map(a=>a.id===t.toast.id?{...a,...t.toast}:a)};case 2:let{toast:n}=t;return e.toasts.find(a=>a.id===n.id)?Yx(e,{type:1,toast:n}):Yx(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?I$(r):e.toasts.forEach(a=>{I$(a.id)}),{...e,toasts:e.toasts.map(a=>a.id===r||r===void 0?{...a,visible:!1}:a)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(a=>({...a,pauseDuration:a.pauseDuration+i}))}}},U_=[],W_={toasts:[],pausedAt:void 0},sf=e=>{W_=Yx(W_,e),U_.forEach(t=>{t(W_)})},hde={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},pde=(e={})=>{let[t,n]=F.useState(W_);F.useEffect(()=>(U_.push(n),()=>{let i=U_.indexOf(n);i>-1&&U_.splice(i,1)}),[t]);let r=t.toasts.map(i=>{var a,o;return{...e,...e[i.type],...i,duration:i.duration||((a=e[i.type])==null?void 0:a.duration)||(e==null?void 0:e.duration)||hde[i.type],style:{...e.style,...(o=e[i.type])==null?void 0:o.style,...i.style}}});return{...t,toasts:r}},mde=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||cde()}),Gg=e=>(t,n)=>{let r=mde(t,e,n);return sf({type:2,toast:r}),r.id},Pi=(e,t)=>Gg("blank")(e,t);Pi.error=Gg("error");Pi.success=Gg("success");Pi.loading=Gg("loading");Pi.custom=Gg("custom");Pi.dismiss=e=>{sf({type:3,toastId:e})};Pi.remove=e=>sf({type:4,toastId:e});Pi.promise=(e,t,n)=>{let r=Pi.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(i=>(Pi.success(Lk(t.success,i),{id:r,...n,...n==null?void 0:n.success}),i)).catch(i=>{Pi.error(Lk(t.error,i),{id:r,...n,...n==null?void 0:n.error})}),e};var gde=(e,t)=>{sf({type:1,toast:{id:e,height:t}})},yde=()=>{sf({type:5,time:Date.now()})},_de=e=>{let{toasts:t,pausedAt:n}=pde(e);F.useEffect(()=>{if(n)return;let a=Date.now(),o=t.map(s=>{if(s.duration===1/0)return;let l=(s.duration||0)+s.pauseDuration-(a-s.createdAt);if(l<0){s.visible&&Pi.dismiss(s.id);return}return setTimeout(()=>Pi.dismiss(s.id),l)});return()=>{o.forEach(s=>s&&clearTimeout(s))}},[t,n]);let r=F.useCallback(()=>{n&&sf({type:6,time:Date.now()})},[n]),i=F.useCallback((a,o)=>{let{reverseOrder:s=!1,gutter:l=8,defaultPosition:c}=o||{},u=t.filter(m=>(m.position||c)===(a.position||c)&&m.height),f=u.findIndex(m=>m.id===a.id),h=u.filter((m,g)=>gm.visible).slice(...s?[h+1]:[0,h]).reduce((m,g)=>m+(g.height||0)+l,0)},[t]);return{toasts:t,handlers:{updateHeight:gde,startPause:yde,endPause:r,calculateOffset:i}}},bde=Rl` + */var Nr=typeof Symbol=="function"&&Symbol.for,BC=Nr?Symbol.for("react.element"):60103,RC=Nr?Symbol.for("react.portal"):60106,fv=Nr?Symbol.for("react.fragment"):60107,hv=Nr?Symbol.for("react.strict_mode"):60108,pv=Nr?Symbol.for("react.profiler"):60114,mv=Nr?Symbol.for("react.provider"):60109,gv=Nr?Symbol.for("react.context"):60110,PC=Nr?Symbol.for("react.async_mode"):60111,yv=Nr?Symbol.for("react.concurrent_mode"):60111,_v=Nr?Symbol.for("react.forward_ref"):60112,bv=Nr?Symbol.for("react.suspense"):60113,_se=Nr?Symbol.for("react.suspense_list"):60120,kv=Nr?Symbol.for("react.memo"):60115,wv=Nr?Symbol.for("react.lazy"):60116,bse=Nr?Symbol.for("react.block"):60121,kse=Nr?Symbol.for("react.fundamental"):60117,wse=Nr?Symbol.for("react.responder"):60118,vse=Nr?Symbol.for("react.scope"):60119;function Fa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case BC:switch(e=e.type,e){case PC:case yv:case fv:case pv:case hv:case bv:return e;default:switch(e=e&&e.$$typeof,e){case gv:case _v:case wv:case kv:case mv:return e;default:return t}}case RC:return t}}}function TP(e){return Fa(e)===yv}kn.AsyncMode=PC;kn.ConcurrentMode=yv;kn.ContextConsumer=gv;kn.ContextProvider=mv;kn.Element=BC;kn.ForwardRef=_v;kn.Fragment=fv;kn.Lazy=wv;kn.Memo=kv;kn.Portal=RC;kn.Profiler=pv;kn.StrictMode=hv;kn.Suspense=bv;kn.isAsyncMode=function(e){return TP(e)||Fa(e)===PC};kn.isConcurrentMode=TP;kn.isContextConsumer=function(e){return Fa(e)===gv};kn.isContextProvider=function(e){return Fa(e)===mv};kn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===BC};kn.isForwardRef=function(e){return Fa(e)===_v};kn.isFragment=function(e){return Fa(e)===fv};kn.isLazy=function(e){return Fa(e)===wv};kn.isMemo=function(e){return Fa(e)===kv};kn.isPortal=function(e){return Fa(e)===RC};kn.isProfiler=function(e){return Fa(e)===pv};kn.isStrictMode=function(e){return Fa(e)===hv};kn.isSuspense=function(e){return Fa(e)===bv};kn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===fv||e===yv||e===pv||e===hv||e===bv||e===_se||typeof e=="object"&&e!==null&&(e.$$typeof===wv||e.$$typeof===kv||e.$$typeof===mv||e.$$typeof===gv||e.$$typeof===_v||e.$$typeof===kse||e.$$typeof===wse||e.$$typeof===vse||e.$$typeof===bse)};kn.typeOf=Fa;EP.exports=kn;var xse=EP.exports,jC=xse,Cse={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Sse={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Dse={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},AP={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},VC={};VC[jC.ForwardRef]=Dse;VC[jC.Memo]=AP;function MF(e){return jC.isMemo(e)?AP:VC[e.$$typeof]||Cse}var Ese=Object.defineProperty,Tse=Object.getOwnPropertyNames,OF=Object.getOwnPropertySymbols,Ase=Object.getOwnPropertyDescriptor,zse=Object.getPrototypeOf,NF=Object.prototype;function zP(e,t,n){if(typeof t!="string"){if(NF){var r=zse(t);r&&r!==NF&&zP(e,r,n)}var i=Tse(t);OF&&(i=i.concat(OF(t)));for(var a=MF(e),o=MF(t),s=0;s1?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var Ose=function(){function e(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var t=e.prototype;return t.indexOfGroup=function(n){for(var r=0,i=0;i=this.groupSizes.length){for(var i=this.groupSizes,a=i.length,o=a;n>=o;)(o<<=1)<0&&Hd(16,""+n);this.groupSizes=new Uint32Array(o),this.groupSizes.set(i),this.length=o;for(var s=a;s=this.length||this.groupSizes[n]===0)return r;for(var i=this.groupSizes[n],a=this.indexOfGroup(n),o=a+i,s=a;s=wm&&(wm=t+1),j_.set(e,t),Sk.set(t,e)},Ise="style["+ip+'][data-styled-version="5.3.11"]',Bse=new RegExp("^"+ip+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Rse=function(e,t,n){for(var r,i=n.split(","),a=0,o=i.length;a=0;c--){var u=l[c];if(u&&u.nodeType===1&&u.hasAttribute(ip))return u}}(n),a=i!==void 0?i.nextSibling:null;r.setAttribute(ip,"active"),r.setAttribute("data-styled-version","5.3.11");var o=jse();return o&&r.setAttribute("nonce",o),n.insertBefore(r,a),r},Vse=function(){function e(n){var r=this.element=FP(n);r.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var a=document.styleSheets,o=0,s=a.length;o=0){var i=document.createTextNode(r),a=this.nodes[n];return this.element.insertBefore(i,a||null),this.length++,!0}return!1},t.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},t.getRule=function(n){return n0&&(f+=h+",")}),a+=""+c+u+'{content:"'+f+`"}/*!sc*/ +`}}}return a}(this)},e}(),Wse=/(a)(d)/gi,RF=function(e){return String.fromCharCode(e+(e>25?39:97))};function Dx(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=RF(t%52)+n;return(RF(t%52)+n).replace(Wse,"$1-$2")}var _h=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},MP=function(e){return _h(5381,e)};function Gse(e){for(var t=0;t>>0);if(!n.hasNameForId(i,s)){var l=r(o,"."+s,void 0,i);n.insertRules(i,s,l)}a.push(s),this.staticRulesId=s}else{for(var c=this.rules.length,u=_h(this.baseHash,r.hash),f="",h=0;h>>0);if(!n.hasNameForId(i,C)){var w=r(f,"."+C,void 0,i);n.insertRules(i,C,w)}a.push(C)}}return a.join(" ")},e}(),Zse=/^\s*\/\/.*$/gm,Xse=[":","[",".","#"];function Jse(e){var t,n,r,i,a=e===void 0?Qc:e,o=a.options,s=o===void 0?Qc:o,l=a.plugins,c=l===void 0?Ck:l,u=new pse(s),f=[],h=function(b){function C(w){if(w)try{b(w+"}")}catch{}}return function(w,k,S,E,A,_,T,$,R,O){switch(w){case 1:if(R===0&&k.charCodeAt(0)===64)return b(k+";"),"";break;case 2:if($===0)return k+"/*|*/";break;case 3:switch($){case 102:case 112:return b(S[0]+k),"";default:return k+(O===0?"/*|*/":"")}case-2:k.split("/*|*/}").forEach(C)}}}(function(b){f.push(b)}),m=function(b,C,w){return C===0&&Xse.indexOf(w[n.length])!==-1||w.match(i)?b:"."+t};function g(b,C,w,k){k===void 0&&(k="&");var S=b.replace(Zse,""),E=C&&w?w+" "+C+" { "+S+" }":S;return t=k,n=C,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),u(w||!C?"":C,E)}return u.use([].concat(c,[function(b,C,w){b===2&&w.length&&w[0].lastIndexOf(n)>0&&(w[0]=w[0].replace(r,m))},h,function(b){if(b===-2){var C=f;return f=[],C}}])),g.hash=c.length?c.reduce(function(b,C){return C.name||Hd(15),_h(b,C.name)},5381).toString():"",g}var OP=cn.createContext();OP.Consumer;var NP=cn.createContext(),Qse=(NP.Consumer,new $P),Ex=Jse();function ele(){return F.useContext(OP)||Qse}function tle(){return F.useContext(NP)||Ex}var LP=function(){function e(t,n){var r=this;this.inject=function(i,a){a===void 0&&(a=Ex);var o=r.name+a.hash;i.hasNameForId(r.id,o)||i.insertRules(r.id,o,a(r.rules,o,"@keyframes"))},this.toString=function(){return Hd(12,String(r.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=n}return e.prototype.getName=function(t){return t===void 0&&(t=Ex),this.name+t.hash},e}(),nle=/([A-Z])/,rle=/([A-Z])/g,ile=/^ms-/,ale=function(e){return"-"+e.toLowerCase()};function PF(e){return nle.test(e)?e.replace(rle,ale).replace(ile,"-ms-"):e}var jF=function(e){return e==null||e===!1||e===""};function ap(e,t,n,r){if(Array.isArray(e)){for(var i,a=[],o=0,s=e.length;o1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,lle=/(^-|-$)/g;function F4(e){return e.replace(sle,"-").replace(lle,"")}var IP=function(e){return Dx(MP(e)>>>0)};function Wy(e){return typeof e=="string"&&!0}var Tx=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},cle=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function ule(e,t,n){var r=e[n];Tx(t)&&Tx(r)?BP(r,t):e[n]=t}function BP(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(O[$]=_[$]);return O}(t,["componentId"]),A=S&&S+"-"+(Wy(k)?k:F4(IF(k)));return RP(k,ks({},E,{attrs:h,componentId:A}),n)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(k){this._foldedDefaultProps=r?BP({},e.defaultProps,k):k}}),Object.defineProperty(g,"toString",{value:function(){return"."+g.styledComponentId}}),i&&$se(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),g}var Ax=function(e){return function t(n,r,i){if(i===void 0&&(i=Qc),!DP.isValidElementType(r))return Hd(1,String(r));var a=function(){return n(r,i,Tn.apply(void 0,arguments))};return a.withConfig=function(o){return t(n,r,ks({},i,{},o))},a.attrs=function(o){return t(n,r,ks({},i,{attrs:Array.prototype.concat(i.attrs,o).filter(Boolean)}))},a}(RP,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){Ax[e]=Ax(e)});function PP(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{const{dom:e,editor:t,setLoading:n,editorFactory:r}=F.useContext(vv),i=F.useRef(null);return F.useEffect(()=>{const a=i.current;if(!r||!a)return;e.current=a;const o=r(a);if(o)return n(!0),o.create().then(s=>{t.current=s}).finally(()=>{n(!1)}).catch(console.error),()=>{var s;(s=t.current)==null||s.destroy()}},[e,t,r,n]),i},ple=()=>{const e=hle();return cn.createElement("div",{"data-milkdown-root":!0,ref:e})},mle=({children:e})=>{const t=F.useRef(void 0),[n,r]=F.useState(void 0),i=F.useRef(),[a,o]=F.useState(!0),s=F.useMemo(()=>({loading:a,dom:t,editor:i,setLoading:o,editorFactory:n,setEditorFactory:r}),[a,n]);return cn.createElement(vv.Provider,{value:s},e)},gle=(e,t=[])=>{const n=F.useContext(vv),r=F.useCallback(e,t);return F.useLayoutEffect(()=>{n.setEditorFactory(()=>r)},[n,r]),{loading:n.loading,get:()=>n.editor.current}},jP=()=>{const e=F.useContext(vv),t=F.useCallback(()=>e.editor.current,[e.editor]);return[e.loading,t]};var yle=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},VP=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},zx=(e,t,n)=>(yle(e,t,"access private method"),n),V_,Fx;let _le=class{constructor({node:t,view:n,getPos:r,decorations:i,innerDecorations:a,options:o}){VP(this,V_),this.selected=!1,this.selectNode=()=>{var s,l;this.selected=!0,(l=(s=this.options).selectNode)==null||l.call(s)},this.deselectNode=()=>{var s,l;this.selected=!1,(l=(s=this.options).deselectNode)==null||l.call(s)},this.shouldUpdate=s=>!(s.type!==this.node.type||s.sameMarkup(this.node)&&s.content.eq(this.node.content)),this.update=(s,l,c)=>{var u,f;const h=this.options.update;let m;return h&&(m=h(s,l,c)),typeof m!="boolean"&&(m=this.shouldUpdate(s)),this.node=s,this.decorations=l,this.innerDecorations=c,m&&((f=(u=this.options).onUpdate)==null||f.call(u)),m},this.shouldIgnoreMutation=s=>!this.dom||!this.contentDOM||this.node.isLeaf||this.node.isAtom?!0:s.type==="selection"?!1:this.contentDOM===s.target&&s.type==="attributes"?!0:!this.contentDOM.contains(s.target),this.ignoreMutation=s=>{if(!this.dom||!this.contentDOM)return!0;let l;const c=this.options.ignoreMutation;return c&&(l=c(s)),typeof l!="boolean"&&(l=this.shouldIgnoreMutation(s)),l},this.destroy=()=>{var s,l,c;(l=(s=this.options).destroy)==null||l.call(s),this.dom.remove(),(c=this.contentDOM)==null||c.remove()},this.setAttrs=s=>{const{dispatch:l,state:c}=this.view,u=this.getPos();if(typeof u=="number")return l(c.tr.setNodeMarkup(u,void 0,{...this.node.attrs,...s}))},this.node=t,this.view=n,this.getPos=r,this.decorations=i,this.innerDecorations=a,this.options=o,this.dom=this.createDOM(o.as),this.contentDOM=t.isLeaf?null:this.createContentDOM(o.contentAs),this.dom.setAttribute("data-node-view-root","true"),this.contentDOM&&(this.contentDOM.setAttribute("data-node-view-content","true"),this.contentDOM.style.whiteSpace="inherit"),this.setSelection=o.setSelection,this.stopEvent=o.stopEvent}createDOM(t){return zx(this,V_,Fx).call(this,t)}createContentDOM(t){return zx(this,V_,Fx).call(this,t)}get component(){return this.options.component}};V_=new WeakSet,Fx=function(e){const{node:t}=this;return e==null?document.createElement(t.isInline?"span":"div"):e instanceof HTMLElement?e:e instanceof Function?e(t):document.createElement(e)};let ble=class{constructor(t){this.view=t.view,this.options=t.options}get component(){return this.options.component}get root(){var t,n;let r=(n=(t=this.options).root)==null?void 0:n.call(t,this.view.dom);return r||(r=this.view.dom.parentElement??document.body),r}update(t,n){var r,i;this.view=t,this.prevState=n,(i=(r=this.options).update)==null||i.call(r,t,n)}destroy(){var t,n;(n=(t=this.options).destroy)==null||n.call(t)}};var $x,qP;let kle=class{constructor({pos:t,spec:n,options:r}){VP(this,$x),this.pos=t,this.options=r,this.spec=n,this.dom=zx(this,$x,qP).call(this,r.as),this.dom.setAttribute("data-widget-view-root","true")}bind(t,n){this.view=t,this.getPos=n}get component(){return this.options.component}};$x=new WeakSet,qP=function(e){return e instanceof HTMLElement?e:document.createElement(e)};let wle=e=>crypto.getRandomValues(new Uint8Array(e)),vle=(e,t,n)=>{let r=(2<{let o="";for(;;){let s=n(i),l=i;for(;l--;)if(o+=e[s[l]&r]||"",o.length===a)return o}}},HP=(e,t=21)=>vle(e,t,wle),UC=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");function qr(e){this.content=e}qr.prototype={constructor:qr,find:function(e){for(var t=0;t>1}};qr.from=function(e){if(e instanceof qr)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new qr(t)};function UP(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a){n+=i.nodeSize;continue}if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){for(let o=0;i.text[o]==a.text[o];o++)n++;return n}if(i.content.size||a.content.size){let o=UP(i.content,a.content,n+1);if(o!=null)return o}n+=i.nodeSize}}function WP(e,t,n,r){for(let i=e.childCount,a=t.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let o=e.child(--i),s=t.child(--a),l=o.nodeSize;if(o==s){n-=l,r-=l;continue}if(!o.sameMarkup(s))return{a:n,b:r};if(o.isText&&o.text!=s.text){let c=0,u=Math.min(o.text.length,s.text.length);for(;ct&&r(l,i+s,a||null,o)!==!1&&l.content.size){let u=s+1;l.nodesBetween(Math.max(0,t-u),Math.min(l.content.size,n-u),r,i+u)}s=c}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,n,r,i){let a="",o=!0;return this.nodesBetween(t,n,(s,l)=>{s.isText?(a+=s.text.slice(Math.max(t,l)-l,n-l),o=!r):s.isLeaf?(i?a+=typeof i=="function"?i(s):i:s.type.spec.leafText&&(a+=s.type.spec.leafText(s)),o=!r):!o&&s.isBlock&&(a+=r,o=!0)},0),a}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);at)for(let a=0,o=0;ot&&((on)&&(s.isText?s=s.cut(Math.max(0,t-o),Math.min(s.text.length,n-o)):s=s.cut(Math.max(0,t-o-1),Math.min(s.content.size,n-o-1))),r.push(s),i+=s.nodeSize),o=l}return new Ee(r,i)}cutByIndex(t,n){return t==n?Ee.empty:t==0&&n==this.content.length?this:new Ee(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new Ee(i,a)}addToStart(t){return new Ee([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new Ee(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let n=0;nthis.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let r=0,i=0;;r++){let a=this.child(r),o=i+a.nodeSize;if(o>=t)return o==t||n>0?Gy(r+1,o):Gy(r,i);i=o}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,n){if(!n)return Ee.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new Ee(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return Ee.empty;let n,r=0;for(let i=0;ithis.type.rank&&(n||(n=t.slice(0,i)),n.push(this),r=!0),n&&n.push(a)}}return n||(n=t.slice()),r||n.push(this),n}removeFromSet(t){for(let n=0;nr.type.rank-i.type.rank),n}}rn.none=[];class Ek extends Error{}class Ue{constructor(t,n,r){this.content=t,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=KP(this.content,t+this.openStart,n);return r&&new Ue(r,this.openStart,this.openEnd)}removeBetween(t,n){return new Ue(GP(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,n){if(!n)return Ue.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new Ue(Ee.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let a=t.firstChild;a&&!a.isLeaf&&(n||!a.type.spec.isolating);a=a.firstChild)r++;for(let a=t.lastChild;a&&!a.isLeaf&&(n||!a.type.spec.isolating);a=a.lastChild)i++;return new Ue(t,r,i)}}Ue.empty=new Ue(Ee.empty,0,0);function GP(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(r!=o)throw new RangeError("Removing non-flat range");return e.replaceChild(r,a.copy(GP(a.content,t-i-1,n-i-1)))}function KP(e,t,n,r){let{index:i,offset:a}=e.findIndex(t),o=e.maybeChild(i);if(a==t||o.isText)return r&&!r.canReplace(i,i,n)?null:e.cut(0,t).append(n).append(e.cut(t));let s=KP(o.content,t-a-1,n);return s&&e.replaceChild(i,o.copy(s))}function xle(e,t,n){if(n.openStart>e.depth)throw new Ek("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new Ek("Inconsistent open depths");return YP(e,t,n,0)}function YP(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function vm(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(Dd(e.nodeAfter,r),a++));for(let s=a;si&&Mx(e,t,i+1),o=r.depth>i&&Mx(n,r,i+1),s=[];return vm(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(ZP(a,o),Dd(Ed(a,XP(e,t,n,r,i+1)),s)):(a&&Dd(Ed(a,Tk(e,t,i+1)),s),vm(t,n,i,s),o&&Dd(Ed(o,Tk(n,r,i+1)),s)),vm(r,null,i,s),new Ee(s)}function Tk(e,t,n){let r=[];if(vm(null,e,n,r),e.depth>n){let i=Mx(e,t,n+1);Dd(Ed(i,Tk(e,t,n+1)),r)}return vm(t,null,n,r),new Ee(r)}function Cle(e,t){let n=t.depth-e.openStart,i=t.node(n).copy(e.content);for(let a=n-1;a>=0;a--)i=t.node(a).copy(Ee.from(i));return{start:i.resolveNoCache(e.openStart+n),end:i.resolveNoCache(i.content.size-e.openEnd-n)}}class dg{constructor(t,n,r){this.pos=t,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(t){return t==null?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[this.resolveDepth(t)*3]}index(t){return this.path[this.resolveDepth(t)*3+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&!this.textOffset?0:1)}start(t){return t=this.resolveDepth(t),t==0?0:this.path[t*3-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]}after(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]+this.path[t*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,n=this.index(this.depth);if(n==t.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=t.child(n);return r?t.child(n).cut(r):i}get nodeBefore(){let t=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(t).cut(0,n):t==0?null:this.parent.child(t-1)}posAtIndex(t,n){n=this.resolveDepth(n);let r=this.path[n*3],i=n==0?0:this.path[n*3-1]+1;for(let a=0;a0;n--)if(this.start(n)<=t&&this.end(n)>=t)return n;return 0}blockRange(t=this,n){if(t.pos=0;r--)if(t.pos<=this.end(r)&&(!n||n(this.node(r))))return new Ak(this,t,r);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos=0&&n<=t.content.size))throw new RangeError("Position "+n+" out of range");let r=[],i=0,a=n;for(let o=t;;){let{index:s,offset:l}=o.content.findIndex(a),c=a-l;if(r.push(o,s,i+l),!c||(o=o.child(s),o.isText))break;a=c-1,i+=l+1}return new dg(n,r,a)}static resolveCached(t,n){for(let i=0;it&&this.nodesBetween(t,n,a=>(r.isInSet(a.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),JP(this.marks,t)}contentMatchAt(t){let n=this.type.contentMatch.matchFragment(this.content,0,t);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(t,n,r=Ee.empty,i=0,a=r.childCount){let o=this.contentMatchAt(t).matchFragment(r,i,a),s=o&&o.matchFragment(this.content,n);if(!s||!s.validEnd)return!1;for(let l=i;ln.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let t={type:this.type.name};for(let n in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(n=>n.toJSON())),t}static fromJSON(t,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r=null;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(t.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return t.text(n.text,r)}let i=Ee.fromJSON(t,n.content);return t.nodeType(n.type).create(n.attrs,i,r)}}Wo.prototype.text=void 0;let Ele=class Ox extends Wo{constructor(t,n,r,i){if(super(t,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):JP(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,n){return this.text.slice(t,n)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new Ox(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new Ox(this.type,this.attrs,t,this.marks)}cut(t=0,n=this.text.length){return t==0&&n==this.text.length?this:this.withText(this.text.slice(t,n))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}};function JP(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class Ud{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new Tle(t,n);if(r.next==null)return Ud.empty;let i=QP(r);r.next&&r.err("Unexpected trailing text");let a=Nle(Ole(i));return Lle(a,r),a}matchType(t){for(let n=0;nc.createAndFill()));for(let c=0;c=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];function n(r){t.push(r);for(let i=0;i{let a=i+(r.validEnd?"*":" ")+" ";for(let o=0;o"+t.indexOf(r.next[o].next);return a}).join(` +`)}}Ud.empty=new Ud(!0);class Tle{constructor(t,n){this.string=t,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function QP(e){let t=[];do t.push(Ale(e));while(e.eat("|"));return t.length==1?t[0]:{type:"choice",exprs:t}}function Ale(e){let t=[];do t.push(zle(e));while(e.next&&e.next!=")"&&e.next!="|");return t.length==1?t[0]:{type:"seq",exprs:t}}function zle(e){let t=Mle(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else if(e.eat("{"))t=Fle(e,t);else break;return t}function qF(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function Fle(e,t){let n=qF(e),r=n;return e.eat(",")&&(e.next!="}"?r=qF(e):r=-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function $le(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let a in n){let o=n[a];o.groups.indexOf(t)>-1&&i.push(o)}return i.length==0&&e.err("No node type or group '"+t+"' found"),i}function Mle(e){if(e.eat("(")){let t=QP(e);return e.eat(")")||e.err("Missing closing paren"),t}else if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let t=$le(e,e.next).map(n=>(e.inline==null?e.inline=n.isInline:e.inline!=n.isInline&&e.err("Mixing inline and block content"),{type:"name",value:n}));return e.pos++,t.length==1?t[0]:{type:"choice",exprs:t}}}function Ole(e){let t=[[]];return i(a(e,0),n()),t;function n(){return t.push([])-1}function r(o,s,l){let c={term:l,to:s};return t[o].push(c),c}function i(o,s){o.forEach(l=>l.to=s)}function a(o,s){if(o.type=="choice")return o.exprs.reduce((l,c)=>l.concat(a(c,s)),[]);if(o.type=="seq")for(let l=0;;l++){let c=a(o.exprs[l],s);if(l==o.exprs.length-1)return c;i(c,s=n())}else if(o.type=="star"){let l=n();return r(s,l),i(a(o.expr,l),l),[r(l)]}else if(o.type=="plus"){let l=n();return i(a(o.expr,s),l),i(a(o.expr,l),l),[r(l)]}else{if(o.type=="opt")return[r(s)].concat(a(o.expr,s));if(o.type=="range"){let l=s;for(let c=0;c{e[o].forEach(({term:s,to:l})=>{if(!s)return;let c;for(let u=0;u{c||i.push([s,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let a=t[r.join(",")]=new Ud(r.indexOf(e.length-1)>-1);for(let o=0;o-1}allowsMarks(t){if(this.markSet==null)return!0;for(let n=0;nr[a]=new ij(a,n,o));let i=n.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let a in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};class Ile{constructor(t){this.hasDefault=Object.prototype.hasOwnProperty.call(t,"default"),this.default=t.default}get isRequired(){return!this.hasDefault}}class xv{constructor(t,n,r,i){this.name=t,this.rank=n,this.schema=r,this.spec=i,this.attrs=rj(i.attrs),this.excluded=null;let a=tj(this.attrs);this.instance=a?new rn(this,a):null}create(t=null){return!t&&this.instance?this.instance:new rn(this,nj(this.attrs,t))}static compile(t,n){let r=Object.create(null),i=0;return t.forEach((a,o)=>r[a]=new xv(a,i++,n,o)),r}removeFromSet(t){for(var n=0;n-1}}let Ble=class{constructor(t){this.cached=Object.create(null);let n=this.spec={};for(let i in t)n[i]=t[i];n.nodes=qr.from(t.nodes),n.marks=qr.from(t.marks||{}),this.nodes=zk.compile(this.spec.nodes,this),this.marks=xv.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let a=this.nodes[i],o=a.spec.content||"",s=a.spec.marks;a.contentMatch=r[o]||(r[o]=Ud.parse(o,this.nodes)),a.inlineContent=a.contentMatch.inlineContent,a.markSet=s=="_"?null:s?UF(this,s.split(" ")):s==""||!a.inlineContent?[]:null}for(let i in this.marks){let a=this.marks[i],o=a.spec.excludes;a.excluded=o==null?[a]:o==""?[]:UF(this,o.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,n=null,r,i){if(typeof t=="string")t=this.nodeType(t);else if(t instanceof zk){if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}else throw new RangeError("Invalid node type: "+t);return t.createChecked(n,r,i)}text(t,n){let r=this.nodes.text;return new Ele(r,r.defaultAttrs,t,rn.setFrom(n))}mark(t,n){return typeof t=="string"&&(t=this.marks[t]),t.create(n)}nodeFromJSON(t){return Wo.fromJSON(this,t)}markFromJSON(t){return rn.fromJSON(this,t)}nodeType(t){let n=this.nodes[t];if(!n)throw new RangeError("Unknown node type: "+t);return n}};function UF(e,t){let n=[];for(let r=0;r-1)&&n.push(o=l)}if(!o)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}class Wd{constructor(t,n){this.schema=t,this.rules=n,this.tags=[],this.styles=[],n.forEach(r=>{r.tag?this.tags.push(r):r.style&&this.styles.push(r)}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let i=t.nodes[r.node];return i.contentMatch.matchType(i)})}parse(t,n={}){let r=new GF(this,n,!1);return r.addAll(t,n.from,n.to),r.finish()}parseSlice(t,n={}){let r=new GF(this,n,!0);return r.addAll(t,n.from,n.to),Ue.maxOpen(r.finish())}matchTag(t,n,r){for(let i=r?this.tags.indexOf(r)+1:0;it.length&&(s.charCodeAt(t.length)!=61||s.slice(t.length+1)!=n))){if(o.getAttrs){let l=o.getAttrs(n);if(l===!1)continue;o.attrs=l||void 0}return o}}}static schemaRules(t){let n=[];function r(i){let a=i.priority==null?50:i.priority,o=0;for(;o{r(o=KF(o)),o.mark||o.ignore||o.clearMark||(o.mark=i)})}for(let i in t.nodes){let a=t.nodes[i].spec.parseDOM;a&&a.forEach(o=>{r(o=KF(o)),o.node||o.ignore||o.mark||(o.node=i)})}return n}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new Wd(t,Wd.schemaRules(t)))}}const aj={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Rle={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},oj={ol:!0,ul:!0},Fk=1,$k=2,xm=4;function WF(e,t,n){return t!=null?(t?Fk:0)|(t==="full"?$k:0):e&&e.whitespace=="pre"?Fk|$k:n&~xm}class Ky{constructor(t,n,r,i,a,o,s){this.type=t,this.attrs=n,this.marks=r,this.pendingMarks=i,this.solid=a,this.options=s,this.content=[],this.activeMarks=rn.none,this.stashMarks=[],this.match=o||(s&xm?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(Ee.from(t));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(t.type))?(this.match=r,i):null}}return this.match.findWrapping(t.type)}finish(t){if(!(this.options&Fk)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let a=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=a.withText(a.text.slice(0,a.text.length-i[0].length))}}let n=Ee.from(this.content);return!t&&this.match&&(n=n.append(this.match.fillBefore(Ee.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}popFromStashMark(t){for(let n=this.stashMarks.length-1;n>=0;n--)if(t.eq(this.stashMarks[n]))return this.stashMarks.splice(n,1)[0]}applyPending(t){for(let n=0,r=this.pendingMarks;n{o.clearMark(s)&&(r=s.addToSet(r))}):n=this.parser.schema.marks[o.mark].create(o.attrs).addToSet(n),o.consuming===!1)a=o;else break}return[n,r]}addElementByRule(t,n,r){let i,a,o;n.node?(a=this.parser.schema.nodes[n.node],a.isLeaf?this.insertNode(a.create(n.attrs))||this.leafFallback(t):i=this.enter(a,n.attrs||null,n.preserveWhitespace)):(o=this.parser.schema.marks[n.mark].create(n.attrs),this.addPendingMark(o));let s=this.top;if(a&&a.isLeaf)this.findInside(t);else if(r)this.addElement(t,r);else if(n.getContent)this.findInside(t),n.getContent(t,this.parser.schema).forEach(l=>this.insertNode(l));else{let l=t;typeof n.contentElement=="string"?l=t.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(t):n.contentElement&&(l=n.contentElement),this.findAround(t,l,!0),this.addAll(l)}i&&this.sync(s)&&this.open--,o&&this.removePendingMark(o,s)}addAll(t,n,r){let i=n||0;for(let a=n?t.childNodes[n]:t.firstChild,o=r==null?null:t.childNodes[r];a!=o;a=a.nextSibling,++i)this.findAtPoint(t,i),this.addDOM(a);this.findAtPoint(t,i)}findPlace(t){let n,r;for(let i=this.open;i>=0;i--){let a=this.nodes[i],o=a.findWrapping(t);if(o&&(!n||n.length>o.length)&&(n=o,r=a,!o.length)||a.solid)break}if(!n)return!1;this.sync(r);for(let i=0;ithis.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(t){for(let n=this.open;n>=0;n--)if(this.nodes[n]==t)return this.open=n,!0;return!1}get currentPos(){this.closeExtra();let t=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let i=r.length-1;i>=0;i--)t+=r[i].nodeSize;n&&t++}return t}findAtPoint(t,n){if(this.find)for(let r=0;r-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let n=t.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),a=-(r?r.depth+1:0)+(i?0:1),o=(s,l)=>{for(;s>=0;s--){let c=n[s];if(c==""){if(s==n.length-1||s==0)continue;for(;l>=a;l--)if(o(s-1,l))return!0;return!1}else{let u=l>0||l==0&&i?this.nodes[l].type:r&&l>=a?r.node(l-a).type:null;if(!u||u.name!=c&&u.groups.indexOf(c)==-1)return!1;l--}}return!0};return o(n.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}addPendingMark(t){let n=Hle(t,this.top.pendingMarks);n&&this.top.stashMarks.push(n),this.top.pendingMarks=t.addToSet(this.top.pendingMarks)}removePendingMark(t,n){for(let r=this.open;r>=0;r--){let i=this.nodes[r];if(i.pendingMarks.lastIndexOf(t)>-1)i.pendingMarks=t.removeFromSet(i.pendingMarks);else{i.activeMarks=t.removeFromSet(i.activeMarks);let o=i.popFromStashMark(t);o&&i.type&&i.type.allowsMarkType(o.type)&&(i.activeMarks=o.addToSet(i.activeMarks))}if(i==n)break}}}function Ple(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let r=t.nodeType==1?t.nodeName.toLowerCase():null;r&&oj.hasOwnProperty(r)&&n?(n.appendChild(t),t=n):r=="li"?n=t:r&&(n=null)}}function jle(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function Vle(e){let t=/\s*([\w-]+)\s*:\s*([^;]+)/g,n,r=[];for(;n=t.exec(e);)r.push(n[1],n[2].trim());return r}function KF(e){let t={};for(let n in e)t[n]=e[n];return t}function qle(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let a=[],o=s=>{a.push(s);for(let l=0;l{if(a.length||o.marks.length){let s=0,l=0;for(;s=0;i--){let a=this.serializeMark(t.marks[i],t.isInline,n);a&&((a.contentDOM||a.dom).appendChild(r),r=a.dom)}return r}serializeMark(t,n,r={}){let i=this.marks[t.type.name];return i&&ws.renderSpec(L4(r),i(t,n))}static renderSpec(t,n,r=null){if(typeof n=="string")return{dom:t.createTextNode(n)};if(n.nodeType!=null)return{dom:n};if(n.dom&&n.dom.nodeType!=null)return n;let i=n[0],a=i.indexOf(" ");a>0&&(r=i.slice(0,a),i=i.slice(a+1));let o,s=r?t.createElementNS(r,i):t.createElement(i),l=n[1],c=1;if(l&&typeof l=="object"&&l.nodeType==null&&!Array.isArray(l)){c=2;for(let u in l)if(l[u]!=null){let f=u.indexOf(" ");f>0?s.setAttributeNS(u.slice(0,f),u.slice(f+1),l[u]):s.setAttribute(u,l[u])}}for(let u=c;uc)throw new RangeError("Content hole must be the only child of its parent node");return{dom:s,contentDOM:s}}else{let{dom:h,contentDOM:m}=ws.renderSpec(t,f,r);if(s.appendChild(h),m){if(o)throw new RangeError("Multiple content holes");o=m}}}return{dom:s,contentDOM:o}}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new ws(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let n=YF(t.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(t){return YF(t.marks)}}function YF(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function L4(e){return e.document||window.document}const sj=65535,lj=Math.pow(2,16);function Ule(e,t){return e+t*lj}function ZF(e){return e&sj}function Wle(e){return(e-(e&sj))/lj}const cj=1,uj=2,q_=4,dj=8;class Nx{constructor(t,n,r){this.pos=t,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&dj)>0}get deletedBefore(){return(this.delInfo&(cj|q_))>0}get deletedAfter(){return(this.delInfo&(uj|q_))>0}get deletedAcross(){return(this.delInfo&q_)>0}}class to{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&to.empty)return to.empty}recover(t){let n=0,r=ZF(t);if(!this.inverted)for(let i=0;it)break;let c=this.ranges[s+a],u=this.ranges[s+o],f=l+c;if(t<=f){let h=c?t==l?-1:t==f?1:n:n,m=l+i+(h<0?0:u);if(r)return m;let g=t==(n<0?l:f)?null:Ule(s/3,t-l),b=t==l?uj:t==f?cj:q_;return(n<0?t!=l:t!=f)&&(b|=dj),new Nx(m,b,g)}i+=u-c}return r?t+i:new Nx(t+i,0,null)}touches(t,n){let r=0,i=ZF(n),a=this.inverted?2:1,o=this.inverted?1:2;for(let s=0;st)break;let c=this.ranges[s+a],u=l+c;if(t<=u&&s==i*3)return!0;r+=this.ranges[s+o]-c}return!1}forEach(t){let n=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,a=0;i=0;n--){let i=t.getMirror(n);this.appendMap(t.maps[n].invert(),i!=null&&i>n?r-i-1:void 0)}}invert(){let t=new Lh;return t.appendMappingInverted(this),t}map(t,n=1){if(this.mirror)return this._map(t,n,!0);for(let r=this.from;ra&&l!o.isAtom||!s.type.allowsMarkType(this.mark.type)?o:o.mark(this.mark.addToSet(o.marks)),i),n.openStart,n.openEnd);return Cr.fromReplace(t,this.from,this.to,a)}invert(){return new vs(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new Dl(n.pos,r.pos,this.mark)}merge(t){return t instanceof Dl&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new Dl(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Dl(n.from,n.to,t.markFromJSON(n.mark))}}Ji.jsonID("addMark",Dl);class vs extends Ji{constructor(t,n,r){super(),this.from=t,this.to=n,this.mark=r}apply(t){let n=t.slice(this.from,this.to),r=new Ue(WC(n.content,i=>i.mark(this.mark.removeFromSet(i.marks)),t),n.openStart,n.openEnd);return Cr.fromReplace(t,this.from,this.to,r)}invert(){return new Dl(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new vs(n.pos,r.pos,this.mark)}merge(t){return t instanceof vs&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new vs(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new vs(n.from,n.to,t.markFromJSON(n.mark))}}Ji.jsonID("removeMark",vs);class jc extends Ji{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return Cr.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return Cr.fromReplace(t,this.pos,this.pos+1,new Ue(Ee.from(r),0,n.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let i=0;ir.pos?null:new Wr(n.pos,r.pos,i,a,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Wr(n.from,n.to,n.gapFrom,n.gapTo,Ue.fromJSON(t,n.slice),n.insert,!!n.structure)}}Ji.jsonID("replaceAround",Wr);function Lx(e,t,n){let r=e.resolve(t),i=n-t,a=r.depth;for(;i>0&&a>0&&r.indexAfter(a)==r.node(a).childCount;)a--,i--;if(i>0){let o=r.node(a).maybeChild(r.indexAfter(a));for(;i>0;){if(!o||o.isLeaf)return!0;o=o.firstChild,i--}}return!1}function Gle(e,t,n,r){let i=[],a=[],o,s;e.doc.nodesBetween(t,n,(l,c,u)=>{if(!l.isInline)return;let f=l.marks;if(!r.isInSet(f)&&u.type.allowsMarkType(r.type)){let h=Math.max(c,t),m=Math.min(c+l.nodeSize,n),g=r.addToSet(f);for(let b=0;be.step(l)),a.forEach(l=>e.step(l))}function Kle(e,t,n,r){let i=[],a=0;e.doc.nodesBetween(t,n,(o,s)=>{if(!o.isInline)return;a++;let l=null;if(r instanceof xv){let c=o.marks,u;for(;u=r.isInSet(c);)(l||(l=[])).push(u),c=u.removeFromSet(c)}else r?r.isInSet(o.marks)&&(l=[r]):l=o.marks;if(l&&l.length){let c=Math.min(s+o.nodeSize,n);for(let u=0;ue.step(new vs(o.from,o.to,o.style)))}function Yle(e,t,n,r=n.contentMatch){let i=e.doc.nodeAt(t),a=[],o=t+1;for(let s=0;s=0;s--)e.step(a[s])}function Zle(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function Cv(e){let n=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let r=e.depth;;--r){let i=e.$from.node(r),a=e.$from.index(r),o=e.$to.indexAfter(r);if(rn;g--)b||r.index(g)>0?(b=!0,u=Ee.from(r.node(g).copy(u)),f++):l--;let h=Ee.empty,m=0;for(let g=a,b=!1;g>n;g--)b||i.after(g+1)=0;o--){if(r.size){let s=n[o].type.contentMatch.matchFragment(r);if(!s||!s.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=Ee.from(n[o].type.create(n[o].attrs,r))}let i=t.start,a=t.end;e.step(new Wr(i,a,i,a,new Ue(r,0,0),n.length,!0))}function tce(e,t,n,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let a=e.steps.length;e.doc.nodesBetween(t,n,(o,s)=>{if(o.isTextblock&&!o.hasMarkup(r,i)&&nce(e.doc,e.mapping.slice(a).map(s),r)){e.clearIncompatible(e.mapping.slice(a).map(s,1),r);let l=e.mapping.slice(a),c=l.map(s,1),u=l.map(s+o.nodeSize,1);return e.step(new Wr(c,u,c+1,u-1,new Ue(Ee.from(r.create(i,null,o.marks)),0,0),1,!0)),!1}})}function nce(e,t,n){let r=e.resolve(t),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function rce(e,t,n,r,i){let a=e.doc.nodeAt(t);if(!a)throw new RangeError("No node at given position");n||(n=a.type);let o=n.create(r,null,i||a.marks);if(a.isLeaf)return e.replaceWith(t,t+a.nodeSize,o);if(!n.validContent(a.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new Wr(t,t+a.nodeSize,t+1,t+a.nodeSize-1,new Ue(Ee.from(o),0,0),1,!0))}function Ih(e,t,n=1,r){let i=e.resolve(t),a=i.depth-n,o=r&&r[r.length-1]||i.parent;if(a<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!o.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let c=i.depth-1,u=n-2;c>a;c--,u--){let f=i.node(c),h=i.index(c);if(f.type.spec.isolating)return!1;let m=f.content.cutByIndex(h,f.childCount),g=r&&r[u+1];g&&(m=m.replaceChild(0,g.type.create(g.attrs)));let b=r&&r[u]||f;if(!f.canReplace(h+1,f.childCount)||!b.type.validContent(m))return!1}let s=i.indexAfter(a),l=r&&r[0];return i.node(a).canReplaceWith(s,s,l?l.type:i.node(a+1).type)}function ice(e,t,n=1,r){let i=e.doc.resolve(t),a=Ee.empty,o=Ee.empty;for(let s=i.depth,l=i.depth-n,c=n-1;s>l;s--,c--){a=Ee.from(i.node(s).copy(a));let u=r&&r[c];o=Ee.from(u?u.type.create(u.attrs,o):i.node(s).copy(o))}e.step(new ni(t,t,new Ue(a.append(o),n,n),!0))}function Sv(e,t){let n=e.resolve(t),r=n.index();return ace(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function ace(e,t){return!!(e&&t&&!e.isLeaf&&e.canAppend(t))}function oce(e,t,n){let r=new ni(t-n,t+n,Ue.empty,!0);e.step(r)}function sce(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(r.parentOffset==0)for(let i=r.depth-1;i>=0;i--){let a=r.index(i);if(r.node(i).canReplaceWith(a,a,n))return r.before(i+1);if(a>0)return null}if(r.parentOffset==r.parent.content.size)for(let i=r.depth-1;i>=0;i--){let a=r.indexAfter(i);if(r.node(i).canReplaceWith(a,a,n))return r.after(i+1);if(a=0;o--){let s=o==r.depth?0:r.pos<=(r.start(o+1)+r.end(o+1))/2?-1:1,l=r.index(o)+(s>0?1:0),c=r.node(o),u=!1;if(a==1)u=c.canReplace(l,l,i);else{let f=c.contentMatchAt(l).findWrapping(i.firstChild.type);u=f&&c.canReplaceWith(l,l,f[0])}if(u)return s==0?r.pos:s<0?r.before(o+1):r.after(o+1)}return null}function KC(e,t,n=t,r=Ue.empty){if(t==n&&!r.size)return null;let i=e.resolve(t),a=e.resolve(n);return fj(i,a,r)?new ni(t,n,r):new cce(i,a,r).fit()}function fj(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}class cce{constructor(t,n,r){this.$from=t,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=Ee.empty;for(let i=0;i<=t.depth;i++){let a=t.node(i);this.frontier.push({type:a.type,match:a.contentMatchAt(t.indexAfter(i))})}for(let i=t.depth;i>0;i--)this.placed=Ee.from(t.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(t<0?this.$to:r.doc.resolve(t));if(!i)return null;let a=this.placed,o=r.depth,s=i.depth;for(;o&&s&&a.childCount==1;)a=a.firstChild.content,o--,s--;let l=new Ue(a,o,s);return t>-1?new Wr(r.pos,t,this.$to.pos,this.$to.end(),l,n):l.size||r.pos!=this.$to.pos?new ni(r.pos,i.pos,l):null}findFittable(){let t=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,i=this.unplaced.openEnd;r1&&(i=0),a.type.spec.isolating&&i<=r){t=r;break}n=a.content}for(let n=1;n<=2;n++)for(let r=n==1?t:this.unplaced.openStart;r>=0;r--){let i,a=null;r?(a=B4(this.unplaced.content,r-1).firstChild,i=a.content):i=this.unplaced.content;let o=i.firstChild;for(let s=this.depth;s>=0;s--){let{type:l,match:c}=this.frontier[s],u,f=null;if(n==1&&(o?c.matchType(o.type)||(f=c.fillBefore(Ee.from(o),!1)):a&&l.compatibleContent(a.type)))return{sliceDepth:r,frontierDepth:s,parent:a,inject:f};if(n==2&&o&&(u=c.findWrapping(o.type)))return{sliceDepth:r,frontierDepth:s,parent:a,wrap:u};if(a&&c.matchType(a.type))break}}}openMore(){let{content:t,openStart:n,openEnd:r}=this.unplaced,i=B4(t,n);return!i.childCount||i.firstChild.isLeaf?!1:(this.unplaced=new Ue(t,n+1,Math.max(r,i.size+n>=t.size-r?n+1:0)),!0)}dropNode(){let{content:t,openStart:n,openEnd:r}=this.unplaced,i=B4(t,n);if(i.childCount<=1&&n>0){let a=t.size-n<=n+i.size;this.unplaced=new Ue(H0(t,n-1,1),n-1,a?n-1:r)}else this.unplaced=new Ue(H0(t,n,1),n,r)}placeNodes({sliceDepth:t,frontierDepth:n,parent:r,inject:i,wrap:a}){for(;this.depth>n;)this.closeFrontierNode();if(a)for(let b=0;b1||l==0||b.content.size)&&(f=C,u.push(hj(b.mark(h.allowedMarks(b.marks)),c==1?l:0,c==s.childCount?m:-1)))}let g=c==s.childCount;g||(m=-1),this.placed=U0(this.placed,n,Ee.from(u)),this.frontier[n].match=f,g&&m<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let b=0,C=s;b1&&i==this.$to.end(--r);)++i;return i}findCloseLevel(t){e:for(let n=Math.min(this.depth,t.depth);n>=0;n--){let{match:r,type:i}=this.frontier[n],a=n=0;s--){let{match:l,type:c}=this.frontier[s],u=R4(t,s,c,l,!0);if(!u||u.childCount)continue e}return{depth:n,fit:o,move:a?t.doc.resolve(t.after(n+1)):t}}}}close(t){let n=this.findCloseLevel(t);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=U0(this.placed,n.depth,n.fit)),t=n.move;for(let r=n.depth+1;r<=t.depth;r++){let i=t.node(r),a=i.type.contentMatch.fillBefore(i.content,!0,t.index(r));this.openFrontierNode(i.type,i.attrs,a)}return t}openFrontierNode(t,n=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(t),this.placed=U0(this.placed,this.depth,Ee.from(t.create(n,r))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(Ee.empty,!0);n.childCount&&(this.placed=U0(this.placed,this.frontier.length,n))}}function H0(e,t,n){return t==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(H0(e.firstChild.content,t-1,n)))}function U0(e,t,n){return t==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(U0(e.lastChild.content,t-1,n)))}function B4(e,t){for(let n=0;n1&&(r=r.replaceChild(0,hj(r.firstChild,t-1,r.childCount==1?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(Ee.empty,!0)))),e.copy(r)}function R4(e,t,n,r,i){let a=e.node(t),o=i?e.indexAfter(t):e.index(t);if(o==a.childCount&&!n.compatibleContent(a.type))return null;let s=r.fillBefore(a.content,!0,o);return s&&!uce(n,a.content,o)?s:null}function uce(e,t,n){for(let r=n;r0;h--,m--){let g=i.node(h).type.spec;if(g.defining||g.definingAsContext||g.isolating)break;o.indexOf(h)>-1?s=h:i.before(h)==m&&o.splice(1,0,-h)}let l=o.indexOf(s),c=[],u=r.openStart;for(let h=r.content,m=0;;m++){let g=h.firstChild;if(c.push(g),m==r.openStart)break;h=g.content}for(let h=u-1;h>=0;h--){let m=c[h].type,g=dce(m);if(g&&i.node(l).type!=m)u=h;else if(g||!m.isTextblock)break}for(let h=r.openStart;h>=0;h--){let m=(h+u+1)%(r.openStart+1),g=c[m];if(g)for(let b=0;b=0&&(e.replace(t,n,r),!(e.steps.length>f));h--){let m=o[h];m<0||(t=i.before(m),n=a.after(m))}}function pj(e,t,n,r,i){if(tr){let a=i.contentMatchAt(0),o=a.fillBefore(e).append(e);e=o.append(a.matchFragment(o).fillBefore(Ee.empty,!0))}return e}function hce(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let i=sce(e.doc,t,r.type);i!=null&&(t=n=i)}e.replaceRange(t,n,new Ue(Ee.from(r),0,0))}function pce(e,t,n){let r=e.doc.resolve(t),i=e.doc.resolve(n),a=mj(r,i);for(let o=0;o0&&(l||r.node(s-1).canReplace(r.index(s-1),i.indexAfter(s-1))))return e.delete(r.before(s),i.after(s))}for(let o=1;o<=r.depth&&o<=i.depth;o++)if(t-r.start(o)==r.depth-o&&n>r.end(o)&&i.end(o)-n!=i.depth-o)return e.delete(r.before(o),n);e.delete(t,n)}function mj(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let i=r;i>=0;i--){let a=e.start(i);if(at.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(a==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==a-1)&&n.push(i)}return n}class Bh extends Ji{constructor(t,n,r){super(),this.pos=t,this.attr=n,this.value=r}apply(t){let n=t.nodeAt(this.pos);if(!n)return Cr.fail("No node at attribute step's position");let r=Object.create(null);for(let a in n.attrs)r[a]=n.attrs[a];r[this.attr]=this.value;let i=n.type.create(r,null,n.marks);return Cr.fromReplace(t,this.pos,this.pos+1,new Ue(Ee.from(i),0,n.isLeaf?0:1))}getMap(){return to.empty}invert(t){return new Bh(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new Bh(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Bh(n.pos,n.attr,n.value)}}Ji.jsonID("attr",Bh);let sp=class extends Error{};sp=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n};sp.prototype=Object.create(Error.prototype);sp.prototype.constructor=sp;sp.prototype.name="TransformError";let gj=class{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new Lh}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let n=this.maybeStep(t);if(n.failed)throw new sp(n.failed);return this}maybeStep(t){let n=t.apply(this.doc);return n.failed||this.addStep(t,n.doc),n}get docChanged(){return this.steps.length>0}addStep(t,n){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=n}replace(t,n=t,r=Ue.empty){let i=KC(this.doc,t,n,r);return i&&this.step(i),this}replaceWith(t,n,r){return this.replace(t,n,new Ue(Ee.from(r),0,0))}delete(t,n){return this.replace(t,n,Ue.empty)}insert(t,n){return this.replaceWith(t,t,n)}replaceRange(t,n,r){return fce(this,t,n,r),this}replaceRangeWith(t,n,r){return hce(this,t,n,r),this}deleteRange(t,n){return pce(this,t,n),this}lift(t,n){return Xle(this,t,n),this}join(t,n=1){return oce(this,t,n),this}wrap(t,n){return ece(this,t,n),this}setBlockType(t,n=t,r,i=null){return tce(this,t,n,r,i),this}setNodeMarkup(t,n,r=null,i){return rce(this,t,n,r,i),this}setNodeAttribute(t,n,r){return this.step(new Bh(t,n,r)),this}addNodeMark(t,n){return this.step(new jc(t,n)),this}removeNodeMark(t,n){if(!(n instanceof rn)){let r=this.doc.nodeAt(t);if(!r)throw new RangeError("No node at position "+t);if(n=n.isInSet(r.marks),!n)return this}return this.step(new op(t,n)),this}split(t,n=1,r){return ice(this,t,n,r),this}addMark(t,n,r){return Gle(this,t,n,r),this}removeMark(t,n,r){return Kle(this,t,n,r),this}clearIncompatible(t,n,r){return Yle(this,t,n,r),this}};const P4=Object.create(null);let $t=class{constructor(t,n,r){this.$anchor=t,this.$head=n,this.ranges=r||[new yj(t.min(n),t.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let n=0;n=0;a--){let o=n<0?Yf(t.node(0),t.node(a),t.before(a+1),t.index(a),n,r):Yf(t.node(0),t.node(a),t.after(a+1),t.index(a)+1,n,r);if(o)return o}return null}static near(t,n=1){return this.findFrom(t,n)||this.findFrom(t,-n)||new va(t.node(0))}static atStart(t){return Yf(t,t,0,0,1)||new va(t)}static atEnd(t){return Yf(t,t,t.content.size,t.childCount,-1)||new va(t)}static fromJSON(t,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=P4[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(t,n)}static jsonID(t,n){if(t in P4)throw new RangeError("Duplicate use of selection JSON ID "+t);return P4[t]=n,n.prototype.jsonID=t,n}getBookmark(){return Nt.between(this.$anchor,this.$head).getBookmark()}};$t.prototype.visible=!0;class yj{constructor(t,n){this.$from=t,this.$to=n}}let JF=!1;function QF(e){!JF&&!e.parent.inlineContent&&(JF=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class Nt extends $t{constructor(t,n=t){QF(t),QF(n),super(t,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,n){let r=t.resolve(n.map(this.head));if(!r.parent.inlineContent)return $t.near(r);let i=t.resolve(n.map(this.anchor));return new Nt(i.parent.inlineContent?i:r,r)}replace(t,n=Ue.empty){if(super.replace(t,n),n==Ue.empty){let r=this.$from.marksAcross(this.$to);r&&t.ensureMarks(r)}}eq(t){return t instanceof Nt&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new Dv(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Nt(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,r=n){let i=t.resolve(n);return new this(i,r==n?i:t.resolve(r))}static between(t,n,r){let i=t.pos-n.pos;if((!r||i)&&(r=i>=0?1:-1),!n.parent.inlineContent){let a=$t.findFrom(n,r,!0)||$t.findFrom(n,-r,!0);if(a)n=a.$head;else return $t.near(n,r)}return t.parent.inlineContent||(i==0?t=n:(t=($t.findFrom(t,-r,!0)||$t.findFrom(t,r,!0)).$anchor,t.pos0?0:1);i>0?o=0;o+=i){let s=t.child(o);if(s.isAtom){if(!a&&Mt.isSelectable(s))return Mt.create(e,n-(i<0?s.nodeSize:0))}else{let l=Yf(e,s,n+i,i<0?s.childCount:0,i,a);if(l)return l}n+=s.nodeSize*i}return null}function e$(e,t,n){let r=e.steps.length-1;if(r{o==null&&(o=u)}),e.setSelection($t.near(e.doc.resolve(o),n))}const t$=1,Yy=2,n$=4;class gce extends gj{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor0}setStoredMarks(t){return this.storedMarks=t,this.updated|=Yy,this}ensureMarks(t){return rn.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&Yy)>0}addStep(t,n){super.addStep(t,n),this.updated=this.updated&~Yy,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,n=!0){let r=this.selection;return n&&(t=t.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||rn.none))),r.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,n,r){let i=this.doc.type.schema;if(n==null)return t?this.replaceSelectionWith(i.text(t),!0):this.deleteSelection();{if(r==null&&(r=n),r=r??n,!t)return this.deleteRange(n,r);let a=this.storedMarks;if(!a){let o=this.doc.resolve(n);a=r==n?o.marks():o.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,i.text(t,a)),this.selection.empty||this.setSelection($t.near(this.selection.$to)),this}}setMeta(t,n){return this.meta[typeof t=="string"?t:t.key]=n,this}getMeta(t){return this.meta[typeof t=="string"?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=n$,this}get scrolledIntoView(){return(this.updated&n$)>0}}function r$(e,t){return!t||!e?e:e.bind(t)}class W0{constructor(t,n,r){this.name=t,this.init=r$(n.init,r),this.apply=r$(n.apply,r)}}const yce=[new W0("doc",{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new W0("selection",{init(e,t){return e.selection||$t.atStart(t.doc)},apply(e){return e.selection}}),new W0("storedMarks",{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new W0("scrollToSelection",{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})];class j4{constructor(t,n){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=yce.slice(),n&&n.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new W0(r.key,r.spec.state,r))})}}class bh{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(t){return this.applyTransaction(t).state}filterTransaction(t,n=-1){for(let r=0;rr.toJSON())),t&&typeof t=="object")for(let r in t){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let i=t[r],a=i.spec.state;a&&a.toJSON&&(n[r]=a.toJSON.call(i,this[i.key]))}return n}static fromJSON(t,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");let i=new j4(t.schema,t.plugins),a=new bh(i);return i.fields.forEach(o=>{if(o.name=="doc")a.doc=Wo.fromJSON(t.schema,n.doc);else if(o.name=="selection")a.selection=$t.fromJSON(a.doc,n.selection);else if(o.name=="storedMarks")n.storedMarks&&(a.storedMarks=n.storedMarks.map(t.schema.markFromJSON));else{if(r)for(let s in r){let l=r[s],c=l.spec.state;if(l.key==o.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(n,s)){a[o.name]=c.fromJSON.call(l,t,n[s],a);return}}a[o.name]=o.init(t,a)}}),a}}function _j(e,t,n){for(let r in e){let i=e[r];i instanceof Function?i=i.bind(t):r=="handleDOMEvents"&&(i=_j(i,t,{})),n[r]=i}return n}class Bn{constructor(t){this.spec=t,this.props={},t.props&&_j(t.props,this,this.props),this.key=t.key?t.key.key:bj("plugin")}getState(t){return t[this.key]}}const V4=Object.create(null);function bj(e){return e in V4?e+"$"+ ++V4[e]:(V4[e]=0,e+"$")}class Fn{constructor(t="key"){this.key=bj(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}const _a=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},fg=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t};let i$=null;const gl=function(e,t,n){let r=i$||(i$=document.createRange());return r.setEnd(e,n??e.nodeValue.length),r.setStart(e,t||0),r},Gd=function(e,t,n,r){return n&&(a$(e,t,n,r,-1)||a$(e,t,n,r,1))},_ce=/^(img|br|input|textarea|hr)$/i;function a$(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:bs(e))){let a=e.parentNode;if(!a||a.nodeType!=1||kce(e)||_ce.test(e.nodeName)||e.contentEditable=="false")return!1;t=_a(e)+(i<0?0:1),e=a}else if(e.nodeType==1){if(e=e.childNodes[t+(i<0?-1:0)],e.contentEditable=="false")return!1;t=i<0?bs(e):0}else return!1}}function bs(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function bce(e,t,n){for(let r=t==0,i=t==bs(e);r||i;){if(e==n)return!0;let a=_a(e);if(e=e.parentNode,!e)return!1;r=r&&a==0,i=i&&a==bs(e)}}function kce(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const Ev=function(e){return e.focusNode&&Gd(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function ud(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function wce(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function vce(e,t,n){if(e.caretPositionFromPoint)try{let r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,offset:r.offset}}catch{}if(e.caretRangeFromPoint){let r=e.caretRangeFromPoint(t,n);if(r)return{node:r.startContainer,offset:r.startOffset}}}const Ms=typeof navigator<"u"?navigator:null,o$=typeof document<"u"?document:null,vu=Ms&&Ms.userAgent||"",Ix=/Edge\/(\d+)/.exec(vu),kj=/MSIE \d/.exec(vu),Bx=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(vu),Gi=!!(kj||Bx||Ix),eu=kj?document.documentMode:Bx?+Bx[1]:Ix?+Ix[1]:0,Xo=!Gi&&/gecko\/(\d+)/i.test(vu);Xo&&+(/Firefox\/(\d+)/.exec(vu)||[0,0])[1];const Rx=!Gi&&/Chrome\/(\d+)/.exec(vu),ri=!!Rx,xce=Rx?+Rx[1]:0,wi=!Gi&&!!Ms&&/Apple Computer/.test(Ms.vendor),lp=wi&&(/Mobile\/\w+/.test(vu)||!!Ms&&Ms.maxTouchPoints>2),Za=lp||(Ms?/Mac/.test(Ms.platform):!1),Cce=Ms?/Win/.test(Ms.platform):!1,Ro=/Android \d/.test(vu),Tv=!!o$&&"webkitFontSmoothing"in o$.documentElement.style,Sce=Tv?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function Dce(e){return{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function mc(e,t){return typeof e=="number"?e:e[t]}function Ece(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function s$(e,t,n){let r=e.someProp("scrollThreshold")||0,i=e.someProp("scrollMargin")||5,a=e.dom.ownerDocument;for(let o=n||e.dom;o;o=fg(o)){if(o.nodeType!=1)continue;let s=o,l=s==a.body,c=l?Dce(a):Ece(s),u=0,f=0;if(t.topc.bottom-mc(r,"bottom")&&(f=t.bottom-c.bottom+mc(i,"bottom")),t.leftc.right-mc(r,"right")&&(u=t.right-c.right+mc(i,"right")),u||f)if(l)a.defaultView.scrollBy(u,f);else{let h=s.scrollLeft,m=s.scrollTop;f&&(s.scrollTop+=f),u&&(s.scrollLeft+=u);let g=s.scrollLeft-h,b=s.scrollTop-m;t={left:t.left-g,top:t.top-b,right:t.right-g,bottom:t.bottom-b}}if(l)break}}function Tce(e){let t=e.dom.getBoundingClientRect(),n=Math.max(0,t.top),r,i;for(let a=(t.left+t.right)/2,o=n+1;o=n-20){r=s,i=l.top;break}}return{refDOM:r,refTop:i,stack:wj(e.dom)}}function wj(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=fg(r));return t}function Ace({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;vj(n,r==0?0:r-t)}function vj(e,t){for(let n=0;n=s){o=Math.max(g.bottom,o),s=Math.min(g.top,s);let b=g.left>t.left?g.left-t.left:g.right=(g.left+g.right)/2?1:0));continue}}else g.top>t.top&&!l&&g.left<=t.left&&g.right>=t.left&&(l=u,c={left:Math.max(g.left,Math.min(g.right,t.left)),top:g.top});!n&&(t.left>=g.right&&t.top>=g.top||t.left>=g.left&&t.top>=g.bottom)&&(a=f+1)}}return!n&&l&&(n=l,i=c,r=0),n&&n.nodeType==3?Fce(n,i):!n||r&&n.nodeType==1?{node:e,offset:a}:xj(n,i)}function Fce(e,t){let n=e.nodeValue.length,r=document.createRange();for(let i=0;i=(a.left+a.right)/2?1:0)}}return{node:e,offset:0}}function ZC(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function $ce(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left(o.left+o.right)/2?1:-1}return e.docView.posFromDOM(r,i,a)}function Oce(e,t,n,r){let i=-1;for(let a=t,o=!1;a!=e.dom;){let s=e.docView.nearestDesc(a,!0);if(!s)return null;if(s.dom.nodeType==1&&(s.node.isBlock&&s.parent&&!o||!s.contentDOM)){let l=s.dom.getBoundingClientRect();if(s.node.isBlock&&s.parent&&!o&&(o=!0,l.left>r.left||l.top>r.top?i=s.posBefore:(l.right-1?i:e.docView.posFromDOM(t,n,-1)}function Cj(e,t,n){let r=e.childNodes.length;if(r&&n.topt.top&&i++}r==e.dom&&i==r.childNodes.length-1&&r.lastChild.nodeType==1&&t.top>r.lastChild.getBoundingClientRect().bottom?s=e.state.doc.content.size:(i==0||r.nodeType!=1||r.childNodes[i-1].nodeName!="BR")&&(s=Oce(e,r,i,t))}s==null&&(s=Mce(e,o,t));let l=e.docView.nearestDesc(o,!0);return{pos:s,inside:l?l.posAtStart-l.border:-1}}function l$(e){return e.top=0&&i==r.nodeValue.length?(l--,u=1):n<0?l--:c++,D0(bc(gl(r,l,c),u),u<0)}if(!e.state.doc.resolve(t-(a||0)).parent.inlineContent){if(a==null&&i&&(n<0||i==bs(r))){let l=r.childNodes[i-1];if(l.nodeType==1)return q4(l.getBoundingClientRect(),!1)}if(a==null&&i=0)}if(a==null&&i&&(n<0||i==bs(r))){let l=r.childNodes[i-1],c=l.nodeType==3?gl(l,bs(l)-(o?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(c)return D0(bc(c,1),!1)}if(a==null&&i=0)}function D0(e,t){if(e.width==0)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function q4(e,t){if(e.height==0)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function Dj(e,t,n){let r=e.state,i=e.root.activeElement;r!=t&&e.updateState(t),i!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),i!=e.dom&&i&&i.focus()}}function Ice(e,t,n){let r=t.selection,i=n=="up"?r.$from:r.$to;return Dj(e,t,()=>{let{node:a}=e.docView.domFromPos(i.pos,n=="up"?-1:1);for(;;){let s=e.docView.nearestDesc(a,!0);if(!s)break;if(s.node.isBlock){a=s.contentDOM||s.dom;break}a=s.dom.parentNode}let o=Sj(e,i.pos,1);for(let s=a.firstChild;s;s=s.nextSibling){let l;if(s.nodeType==1)l=s.getClientRects();else if(s.nodeType==3)l=gl(s,0,s.nodeValue.length).getClientRects();else continue;for(let c=0;cu.top+1&&(n=="up"?o.top-u.top>(u.bottom-o.top)*2:u.bottom-o.bottom>(o.bottom-u.top)*2))return!1}}return!0})}const Bce=/[\u0590-\u08ac]/;function Rce(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,a=!i,o=i==r.parent.content.size,s=e.domSelection();return!Bce.test(r.parent.textContent)||!s.modify?n=="left"||n=="backward"?a:o:Dj(e,t,()=>{let{focusNode:l,focusOffset:c,anchorNode:u,anchorOffset:f}=e.domSelectionRange(),h=s.caretBidiLevel;s.modify("move",n,"character");let m=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:g,focusOffset:b}=e.domSelectionRange(),C=g&&!m.contains(g.nodeType==1?g:g.parentNode)||l==g&&c==b;try{s.collapse(u,f),l&&(l!=u||c!=f)&&s.extend&&s.extend(l,c)}catch{}return h!=null&&(s.caretBidiLevel=h),C})}let c$=null,u$=null,d$=!1;function Pce(e,t,n){return c$==t&&u$==n?d$:(c$=t,u$=n,d$=n=="up"||n=="down"?Ice(e,t,n):Rce(e,t,n))}const so=0,f$=1,yd=2,Os=3;class Wg{constructor(t,n,r,i){this.parent=t,this.children=n,this.dom=r,this.contentDOM=i,this.dirty=so,r.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,n,r){return!1}matchesHack(t){return!1}parseRule(){return null}stopEvent(t){return!1}get size(){let t=0;for(let n=0;n_a(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))i=t.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let a=t;;a=a.parentNode){if(a==this.dom){i=!1;break}if(a.previousSibling)break}if(i==null&&n==t.childNodes.length)for(let a=t;;a=a.parentNode){if(a==this.dom){i=!0;break}if(a.nextSibling)break}}return i??r>0?this.posAtEnd:this.posAtStart}nearestDesc(t,n=!1){for(let r=!0,i=t;i;i=i.parentNode){let a=this.getDesc(i),o;if(a&&(!n||a.node))if(r&&(o=a.nodeDOM)&&!(o.nodeType==1?o.contains(t.nodeType==1?t:t.parentNode):o==t))r=!1;else return a}}getDesc(t){let n=t.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(t,n,r){for(let i=t;i;i=i.parentNode){let a=this.getDesc(i);if(a)return a.localPosFromDOM(t,n,r)}return-1}descAt(t){for(let n=0,r=0;nt||o instanceof Tj){i=t-a;break}a=s}if(i)return this.children[r].domFromPos(i-this.children[r].border,n);for(let a;r&&!(a=this.children[r-1]).size&&a instanceof Ej&&a.side>=0;r--);if(n<=0){let a,o=!0;for(;a=r?this.children[r-1]:null,!(!a||a.dom.parentNode==this.contentDOM);r--,o=!1);return a&&n&&o&&!a.border&&!a.domAtom?a.domFromPos(a.size,n):{node:this.contentDOM,offset:a?_a(a.dom)+1:0}}else{let a,o=!0;for(;a=r=u&&n<=c-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(t,n,u);t=o;for(let f=s;f>0;f--){let h=this.children[f-1];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(1)){i=_a(h.dom)+1;break}t-=h.size}i==-1&&(i=0)}if(i>-1&&(c>n||s==this.children.length-1)){n=c;for(let u=s+1;um&&on){let m=s;s=l,l=m}let h=document.createRange();h.setEnd(l.node,l.offset),h.setStart(s.node,s.offset),c.removeAllRanges(),c.addRange(h)}}ignoreMutation(t){return!this.contentDOM&&t.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,n){for(let r=0,i=0;i=r:tr){let s=r+a.border,l=o-a.border;if(t>=s&&n<=l){this.dirty=t==r||n==o?yd:f$,t==s&&n==l&&(a.contentLost||a.dom.parentNode!=this.contentDOM)?a.dirty=Os:a.markDirty(t-s,n-s);return}else a.dirty=a.dom==a.contentDOM&&a.dom.parentNode==this.contentDOM&&!a.children.length?yd:Os}r=o}this.dirty=yd}markParentsDirty(){let t=1;for(let n=this.parent;n;n=n.parent,t++){let r=t==1?yd:f$;n.dirty{if(!a)return i;if(a.parent)return a.parent.posBeforeChild(a)})),!n.type.spec.raw){if(o.nodeType!=1){let s=document.createElement("span");s.appendChild(o),o=s}o.contentEditable="false",o.classList.add("ProseMirror-widget")}super(t,[],o,null),this.widget=n,this.widget=n,a=this}matchesWidget(t){return this.dirty==so&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let n=this.widget.spec.stopEvent;return n?n(t):!1}ignoreMutation(t){return t.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class jce extends Wg{constructor(t,n,r,i){super(t,[],n,null),this.textDOM=r,this.text=i}get size(){return this.text.length}localPosFromDOM(t,n){return t!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return t.type==="characterData"&&t.target.nodeValue==t.oldValue}}class Kd extends Wg{constructor(t,n,r,i){super(t,[],r,i),this.mark=n}static create(t,n,r,i){let a=i.nodeViews[n.type.name],o=a&&a(n,i,r);return(!o||!o.dom)&&(o=ws.renderSpec(document,n.type.spec.toDOM(n,r))),new Kd(t,n,o.dom,o.contentDOM||o.dom)}parseRule(){return this.dirty&Os||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM||void 0}}matchesMark(t){return this.dirty!=Os&&this.mark.eq(t)}markDirty(t,n){if(super.markDirty(t,n),this.dirty!=so){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty0&&(a=Vx(a,0,t,r));for(let s=0;s{if(!l)return o;if(l.parent)return l.parent.posBeforeChild(l)},r,i),u=c&&c.dom,f=c&&c.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:f}=ws.renderSpec(document,n.type.spec.toDOM(n)));!f&&!n.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),n.type.spec.draggable&&(u.draggable=!0));let h=u;return u=Fj(u,r,n),c?l=new Vce(t,n,r,i,u,f||null,h,c,a,o+1):n.isText?new Av(t,n,r,i,u,h,a):new tu(t,n,r,i,u,f||null,h,a,o+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(t.preserveWhitespace="full"),!this.contentDOM)t.getContent=()=>this.node.content;else if(!this.contentLost)t.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){t.contentElement=r.dom.parentNode;break}}t.contentElement||(t.getContent=()=>Ee.empty)}return t}matchesNode(t,n,r){return this.dirty==so&&t.eq(this.node)&&jx(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(t,n){let r=this.node.inlineContent,i=n,a=t.composing?this.localCompositionInfo(t,n):null,o=a&&a.pos>-1?a:null,s=a&&a.pos<0,l=new Hce(this,o&&o.node,t);Gce(this.node,this.innerDeco,(c,u,f)=>{c.spec.marks?l.syncToMarks(c.spec.marks,r,t):c.type.side>=0&&!f&&l.syncToMarks(u==this.node.childCount?rn.none:this.node.child(u).marks,r,t),l.placeWidget(c,t,i)},(c,u,f,h)=>{l.syncToMarks(c.marks,r,t);let m;l.findNodeMatch(c,u,f,h)||s&&t.state.selection.from>i&&t.state.selection.to-1&&l.updateNodeAt(c,u,f,m,t)||l.updateNextNode(c,u,f,t,h,i)||l.addNode(c,u,f,t,i),i+=c.nodeSize}),l.syncToMarks([],r,t),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==yd)&&(o&&this.protectLocalComposition(t,o),Aj(this.contentDOM,this.children,t),lp&&Kce(this.dom))}localCompositionInfo(t,n){let{from:r,to:i}=t.state.selection;if(!(t.state.selection instanceof Nt)||rn+this.node.content.size)return null;let a=t.domSelectionRange(),o=Yce(a.focusNode,a.focusOffset);if(!o||!this.dom.contains(o.parentNode))return null;if(this.node.inlineContent){let s=o.nodeValue,l=Zce(this.node.content,s,r-n,i-n);return l<0?null:{node:o,pos:l,text:s}}else return{node:o,pos:-1,text:""}}protectLocalComposition(t,{node:n,pos:r,text:i}){if(this.getDesc(n))return;let a=n;for(;a.parentNode!=this.contentDOM;a=a.parentNode){for(;a.previousSibling;)a.parentNode.removeChild(a.previousSibling);for(;a.nextSibling;)a.parentNode.removeChild(a.nextSibling);a.pmViewDesc&&(a.pmViewDesc=void 0)}let o=new jce(this,a,n,i);t.input.compositionNodes.push(o),this.children=Vx(this.children,r,r+i.length,t,o)}update(t,n,r,i){return this.dirty==Os||!t.sameMarkup(this.node)?!1:(this.updateInner(t,n,r,i),!0)}updateInner(t,n,r,i){this.updateOuterDeco(n),this.node=t,this.innerDeco=r,this.contentDOM&&this.updateChildren(i,this.posAtStart),this.dirty=so}updateOuterDeco(t){if(jx(t,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=zj(this.dom,this.nodeDOM,Px(this.outerDeco,this.node,n),Px(t,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function h$(e,t,n,r,i){Fj(r,t,e);let a=new tu(void 0,e,t,n,r,r,r,i,0);return a.contentDOM&&a.updateChildren(i,0),a}class Av extends tu{constructor(t,n,r,i,a,o,s){super(t,n,r,i,a,null,o,s,0)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,n,r,i){return this.dirty==Os||this.dirty!=so&&!this.inParent()||!t.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=so||t.text!=this.node.text)&&t.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=t.text,i.trackWrites==this.nodeDOM&&(i.trackWrites=null)),this.node=t,this.dirty=so,!0)}inParent(){let t=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,n,r){return t==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(t,n,r)}ignoreMutation(t){return t.type!="characterData"&&t.type!="selection"}slice(t,n,r){let i=this.node.cut(t,n),a=document.createTextNode(i.text);return new Av(this.parent,i,this.outerDeco,this.innerDeco,a,a,r)}markDirty(t,n){super.markDirty(t,n),this.dom!=this.nodeDOM&&(t==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=Os)}get domAtom(){return!1}}class Tj extends Wg{parseRule(){return{ignore:!0}}matchesHack(t){return this.dirty==so&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class Vce extends tu{constructor(t,n,r,i,a,o,s,l,c,u){super(t,n,r,i,a,o,s,c,u),this.spec=l}update(t,n,r,i){if(this.dirty==Os)return!1;if(this.spec.update){let a=this.spec.update(t,n,r);return a&&this.updateInner(t,n,r,i),a}else return!this.contentDOM&&!t.isLeaf?!1:super.update(t,n,r,i)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,n,r,i){this.spec.setSelection?this.spec.setSelection(t,n,r):super.setSelection(t,n,r,i)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return this.spec.stopEvent?this.spec.stopEvent(t):!1}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}function Aj(e,t,n){let r=e.firstChild,i=!1;for(let a=0;a>1,o=Math.min(a,t.length);for(;i-1)s>this.index&&(this.changed=!0,this.destroyBetween(this.index,s)),this.top=this.top.children[this.index];else{let l=Kd.create(this.top,t[a],n,r);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,a++}}findNodeMatch(t,n,r,i){let a=-1,o;if(i>=this.preMatch.index&&(o=this.preMatch.matches[i-this.preMatch.index]).parent==this.top&&o.matchesNode(t,n,r))a=this.top.children.indexOf(o,this.index);else for(let s=this.index,l=Math.min(this.top.children.length,s+5);s0;){let s;for(;;)if(r){let c=n.children[r-1];if(c instanceof Kd)n=c,r=c.children.length;else{s=c,r--;break}}else{if(n==t)break e;r=n.parent.children.indexOf(n),n=n.parent}let l=s.node;if(l){if(l!=e.child(i-1))break;--i,a.set(s,i),o.push(s)}}return{index:i,matched:a,matches:o.reverse()}}function Wce(e,t){return e.type.side-t.type.side}function Gce(e,t,n,r){let i=t.locals(e),a=0;if(i.length==0){for(let c=0;ca;)s.push(i[o++]);let h=a+u.nodeSize;if(u.isText){let g=h;o!g.inline):s.slice();r(u,m,t.forChild(a,u),f),a=h}}function Kce(e){if(e.nodeName=="UL"||e.nodeName=="OL"){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}function Yce(e,t){for(;;){if(e.nodeType==3)return e;if(e.nodeType==1&&t>0){if(e.childNodes.length>t&&e.childNodes[t].nodeType==3)return e.childNodes[t];e=e.childNodes[t-1],t=bs(e)}else if(e.nodeType==1&&t=n){let c=s=0&&c+t.length+s>=n)return s+c;if(n==r&&l.length>=r+t.length-s&&l.slice(r-s,r-s+t.length)==t)return r}}return-1}function Vx(e,t,n,r,i){let a=[];for(let o=0,s=0;o=n||u<=t?a.push(l):(cn&&a.push(l.slice(n-c,l.size,r)))}return a}function XC(e,t=null){let n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;let i=e.docView.nearestDesc(n.focusNode),a=i&&i.size==0,o=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(o<0)return null;let s=r.resolve(o),l,c;if(Ev(n)){for(l=s;i&&!i.node;)i=i.parent;let u=i.node;if(i&&u.isAtom&&Mt.isSelectable(u)&&i.parent&&!(u.isInline&&bce(n.focusNode,n.focusOffset,i.dom))){let f=i.posBefore;c=new Mt(o==f?s:r.resolve(f))}}else{let u=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(u<0)return null;l=r.resolve(u)}if(!c){let u=t=="pointer"||e.state.selection.head{(n.anchorNode!=r||n.anchorOffset!=i)&&(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{(!$j(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})}function Jce(e){let t=e.domSelection(),n=document.createRange(),r=e.cursorWrapper.dom,i=r.nodeName=="IMG";i?n.setEnd(r.parentNode,_a(r)+1):n.setEnd(r,0),n.collapse(!1),t.removeAllRanges(),t.addRange(n),!i&&!e.state.selection.visible&&Gi&&eu<=11&&(r.disabled=!0,r.disabled=!1)}function Mj(e,t){if(t instanceof Mt){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(_$(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else _$(e)}function _$(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function JC(e,t,n,r){return e.someProp("createSelectionBetween",i=>i(e,t,n))||Nt.between(t,n,r)}function b$(e){return e.editable&&!e.hasFocus()?!1:Oj(e)}function Oj(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(t.anchorNode.nodeType==3?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(t.focusNode.nodeType==3?t.focusNode.parentNode:t.focusNode))}catch{return!1}}function Qce(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return Gd(t.node,t.offset,n.anchorNode,n.anchorOffset)}function qx(e,t){let{$anchor:n,$head:r}=e.selection,i=t>0?n.max(r):n.min(r),a=i.parent.inlineContent?i.depth?e.doc.resolve(t>0?i.after():i.before()):null:i;return a&&$t.findFrom(a,t)}function dd(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function k$(e,t,n){let r=e.state.selection;if(r instanceof Nt){if(!r.empty||n.indexOf("s")>-1)return!1;if(e.endOfTextblock(t>0?"forward":"backward")){let i=qx(e.state,t);return i&&i instanceof Mt?dd(e,i):!1}else if(!(Za&&n.indexOf("m")>-1)){let i=r.$head,a=i.textOffset?null:t<0?i.nodeBefore:i.nodeAfter,o;if(!a||a.isText)return!1;let s=t<0?i.pos-a.nodeSize:i.pos;return a.isAtom||(o=e.docView.descAt(s))&&!o.contentDOM?Mt.isSelectable(a)?dd(e,new Mt(t<0?e.state.doc.resolve(i.pos-a.nodeSize):i)):Tv?dd(e,new Nt(e.state.doc.resolve(t<0?s:s+a.nodeSize))):!1:!1}}else{if(r instanceof Mt&&r.node.isInline)return dd(e,new Nt(t>0?r.$to:r.$from));{let i=qx(e.state,t);return i?dd(e,i):!1}}}function Mk(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function Sm(e){let t=e.pmViewDesc;return t&&t.size==0&&(e.nextSibling||e.nodeName!="BR")}function E0(e,t){return t<0?eue(e):Nj(e)}function eue(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,a,o=!1;for(Xo&&n.nodeType==1&&r0){if(n.nodeType!=1)break;{let s=n.childNodes[r-1];if(Sm(s))i=n,a=--r;else if(s.nodeType==3)n=s,r=n.nodeValue.length;else break}}else{if(Lj(n))break;{let s=n.previousSibling;for(;s&&Sm(s);)i=n.parentNode,a=_a(s),s=s.previousSibling;if(s)n=s,r=Mk(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}}o?Hx(e,n,r):i&&Hx(e,i,a)}function Nj(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i=Mk(n),a,o;for(;;)if(r{e.state==i&&Al(e)},50)}function w$(e,t){let n=e.state.doc.resolve(t);if(!(ri||Cce)&&n.parent.inlineContent){let i=e.coordsAtPos(t);if(t>n.start()){let a=e.coordsAtPos(t-1),o=(a.top+a.bottom)/2;if(o>i.top&&o1)return a.lefti.top&&o1)return a.left>i.left?"ltr":"rtl"}}return getComputedStyle(e.dom).direction=="rtl"?"rtl":"ltr"}function v$(e,t,n){let r=e.state.selection;if(r instanceof Nt&&!r.empty||n.indexOf("s")>-1||Za&&n.indexOf("m")>-1)return!1;let{$from:i,$to:a}=r;if(!i.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let o=qx(e.state,t);if(o&&o instanceof Mt)return dd(e,o)}if(!i.parent.inlineContent){let o=t<0?i:a,s=r instanceof va?$t.near(o,t):$t.findFrom(o,t);return s?dd(e,s):!1}return!1}function x$(e,t){if(!(e.state.selection instanceof Nt))return!0;let{$head:n,$anchor:r,empty:i}=e.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let a=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(a&&!a.isText){let o=e.state.tr;return t<0?o.delete(n.pos-a.nodeSize,n.pos):o.delete(n.pos,n.pos+a.nodeSize),e.dispatch(o),!0}return!1}function C$(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function tue(e){if(!wi||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&t.nodeType==1&&n==0&&t.firstChild&&t.firstChild.contentEditable=="false"){let r=t.firstChild;C$(e,r,"true"),setTimeout(()=>C$(e,r,"false"),20)}return!1}function nue(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function rue(e,t){let n=t.keyCode,r=nue(t);if(n==8||Za&&n==72&&r=="c")return x$(e,-1)||E0(e,-1);if(n==46&&!t.shiftKey||Za&&n==68&&r=="c")return x$(e,1)||E0(e,1);if(n==13||n==27)return!0;if(n==37||Za&&n==66&&r=="c"){let i=n==37?w$(e,e.state.selection.from)=="ltr"?-1:1:-1;return k$(e,i,r)||E0(e,i)}else if(n==39||Za&&n==70&&r=="c"){let i=n==39?w$(e,e.state.selection.from)=="ltr"?1:-1:1;return k$(e,i,r)||E0(e,i)}else{if(n==38||Za&&n==80&&r=="c")return v$(e,-1,r)||E0(e,-1);if(n==40||Za&&n==78&&r=="c")return tue(e)||v$(e,1,r)||Nj(e);if(r==(Za?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function Ij(e,t){e.someProp("transformCopied",m=>{t=m(t,e)});let n=[],{content:r,openStart:i,openEnd:a}=t;for(;i>1&&a>1&&r.childCount==1&&r.firstChild.childCount==1;){i--,a--;let m=r.firstChild;n.push(m.type.name,m.attrs!=m.type.defaultAttrs?m.attrs:null),r=m.content}let o=e.someProp("clipboardSerializer")||ws.fromSchema(e.state.schema),s=qj(),l=s.createElement("div");l.appendChild(o.serializeFragment(r,{document:s}));let c=l.firstChild,u,f=0;for(;c&&c.nodeType==1&&(u=Vj[c.nodeName.toLowerCase()]);){for(let m=u.length-1;m>=0;m--){let g=s.createElement(u[m]);for(;l.firstChild;)g.appendChild(l.firstChild);l.appendChild(g),f++}c=l.firstChild}c&&c.nodeType==1&&c.setAttribute("data-pm-slice",`${i} ${a}${f?` -${f}`:""} ${JSON.stringify(n)}`);let h=e.someProp("clipboardTextSerializer",m=>m(t,e))||t.content.textBetween(0,t.content.size,` + +`);return{dom:l,text:h}}function Bj(e,t,n,r,i){let a=i.parent.type.spec.code,o,s;if(!n&&!t)return null;let l=t&&(r||a||!n);if(l){if(e.someProp("transformPastedText",h=>{t=h(t,a||r,e)}),a)return t?new Ue(Ee.from(e.state.schema.text(t.replace(/\r\n?/g,` +`))),0,0):Ue.empty;let f=e.someProp("clipboardTextParser",h=>h(t,i,r,e));if(f)s=f;else{let h=i.marks(),{schema:m}=e.state,g=ws.fromSchema(m);o=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(b=>{let C=o.appendChild(document.createElement("p"));b&&C.appendChild(g.serializeNode(m.text(b,h)))})}}else e.someProp("transformPastedHTML",f=>{n=f(n,e)}),o=oue(n),Tv&&sue(o);let c=o&&o.querySelector("[data-pm-slice]"),u=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let f=+u[3];f>0;f--){let h=o.firstChild;for(;h&&h.nodeType!=1;)h=h.nextSibling;if(!h)break;o=h}if(s||(s=(e.someProp("clipboardParser")||e.someProp("domParser")||Wd.fromSchema(e.state.schema)).parseSlice(o,{preserveWhitespace:!!(l||u),context:i,ruleFromNode(h){return h.nodeName=="BR"&&!h.nextSibling&&h.parentNode&&!iue.test(h.parentNode.nodeName)?{ignore:!0}:null}})),u)s=lue(S$(s,+u[1],+u[2]),u[4]);else if(s=Ue.maxOpen(aue(s.content,i),!0),s.openStart||s.openEnd){let f=0,h=0;for(let m=s.content.firstChild;f{s=f(s,e)}),s}const iue=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function aue(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let i=t.node(n).contentMatchAt(t.index(n)),a,o=[];if(e.forEach(s=>{if(!o)return;let l=i.findWrapping(s.type),c;if(!l)return o=null;if(c=o.length&&a.length&&Pj(l,a,s,o[o.length-1],0))o[o.length-1]=c;else{o.length&&(o[o.length-1]=jj(o[o.length-1],a.length));let u=Rj(s,l);o.push(u),i=i.matchType(u.type),a=l}}),o)return Ee.from(o)}return e}function Rj(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,Ee.from(e));return e}function Pj(e,t,n,r,i){if(i1&&(a=0),i=n&&(s=t<0?o.contentMatchAt(0).fillBefore(s,a<=i).append(s):s.append(o.contentMatchAt(o.childCount).fillBefore(Ee.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,o.copy(s))}function S$(e,t,n){return t]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=qj().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(e),i;if((i=r&&Vj[r[1].toLowerCase()])&&(e=i.map(a=>"<"+a+">").join("")+e+i.map(a=>"").reverse().join("")),n.innerHTML=e,i)for(let a=0;a=0;s-=2){let l=n.nodes[r[s]];if(!l||l.hasRequiredAttrs())break;i=Ee.from(l.create(r[s+1],i)),a++,o++}return new Ue(i,a,o)}const vi={},xi={},cue={touchstart:!0,touchmove:!0};class uue{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function due(e){for(let t in vi){let n=vi[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=r=>{hue(e,r)&&!QC(e,r)&&(e.editable||!(r.type in xi))&&n(e,r)},cue[t]?{passive:!0}:void 0)}wi&&e.dom.addEventListener("input",()=>null),Wx(e)}function Vc(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function fue(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function Wx(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=r=>QC(e,r))})}function QC(e,t){return e.someProp("handleDOMEvents",n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function hue(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function pue(e,t){!QC(e,t)&&vi[t.type]&&(e.editable||!(t.type in xi))&&vi[t.type](e,t)}xi.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!Uj(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(Ro&&ri&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),lp&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();e.input.lastIOSEnter=r,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==r&&(e.someProp("handleKeyDown",i=>i(e,ud(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",r=>r(e,n))||rue(e,n)?n.preventDefault():Vc(e,"key")};xi.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)};xi.keypress=(e,t)=>{let n=t;if(Uj(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||Za&&n.metaKey)return;if(e.someProp("handleKeyPress",i=>i(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof Nt)||!r.$from.sameParent(r.$to)){let i=String.fromCharCode(n.charCode);!/[\r\n]/.test(i)&&!e.someProp("handleTextInput",a=>a(e,r.$from.pos,r.$to.pos,i))&&e.dispatch(e.state.tr.insertText(i).scrollIntoView()),n.preventDefault()}};function zv(e){return{left:e.clientX,top:e.clientY}}function mue(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function eS(e,t,n,r,i){if(r==-1)return!1;let a=e.state.doc.resolve(r);for(let o=a.depth+1;o>0;o--)if(e.someProp(t,s=>o>a.depth?s(e,n,a.nodeAfter,a.before(o),i,!0):s(e,n,a.node(o),a.before(o),i,!1)))return!0;return!1}function Rh(e,t,n){e.focused||e.focus();let r=e.state.tr.setSelection(t);n=="pointer"&&r.setMeta("pointer",!0),e.dispatch(r)}function gue(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&Mt.isSelectable(r)?(Rh(e,new Mt(n),"pointer"),!0):!1}function yue(e,t){if(t==-1)return!1;let n=e.state.selection,r,i;n instanceof Mt&&(r=n.node);let a=e.state.doc.resolve(t);for(let o=a.depth+1;o>0;o--){let s=o>a.depth?a.nodeAfter:a.node(o);if(Mt.isSelectable(s)){r&&n.$from.depth>0&&o>=n.$from.depth&&a.before(n.$from.depth+1)==n.$from.pos?i=a.before(n.$from.depth):i=a.before(o);break}}return i!=null?(Rh(e,Mt.create(e.state.doc,i),"pointer"),!0):!1}function _ue(e,t,n,r,i){return eS(e,"handleClickOn",t,n,r)||e.someProp("handleClick",a=>a(e,t,r))||(i?yue(e,n):gue(e,n))}function bue(e,t,n,r){return eS(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",i=>i(e,t,r))}function kue(e,t,n,r){return eS(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",i=>i(e,t,r))||wue(e,n,r)}function wue(e,t,n){if(n.button!=0)return!1;let r=e.state.doc;if(t==-1)return r.inlineContent?(Rh(e,Nt.create(r,0,r.content.size),"pointer"),!0):!1;let i=r.resolve(t);for(let a=i.depth+1;a>0;a--){let o=a>i.depth?i.nodeAfter:i.node(a),s=i.before(a);if(o.inlineContent)Rh(e,Nt.create(r,s+1,s+1+o.content.size),"pointer");else if(Mt.isSelectable(o))Rh(e,Mt.create(r,s),"pointer");else continue;return!0}}function tS(e){return Ok(e)}const Hj=Za?"metaKey":"ctrlKey";vi.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=tS(e),i=Date.now(),a="singleClick";i-e.input.lastClick.time<500&&mue(n,e.input.lastClick)&&!n[Hj]&&(e.input.lastClick.type=="singleClick"?a="doubleClick":e.input.lastClick.type=="doubleClick"&&(a="tripleClick")),e.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:a};let o=e.posAtCoords(zv(n));o&&(a=="singleClick"?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new vue(e,o,n,!!r)):(a=="doubleClick"?bue:kue)(e,o.pos,o.inside,n)?n.preventDefault():Vc(e,"pointer"))};class vue{constructor(t,n,r,i){this.view=t,this.pos=n,this.event=r,this.flushed=i,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!r[Hj],this.allowDefault=r.shiftKey;let a,o;if(n.inside>-1)a=t.state.doc.nodeAt(n.inside),o=n.inside;else{let u=t.state.doc.resolve(n.pos);a=u.parent,o=u.depth?u.before():0}const s=i?null:r.target,l=s?t.docView.nearestDesc(s,!0):null;this.target=l?l.dom:null;let{selection:c}=t.state;(r.button==0&&a.type.spec.draggable&&a.type.spec.selectable!==!1||c instanceof Mt&&c.from<=o&&c.to>o)&&(this.mightDrag={node:a,pos:o,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Xo&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),Vc(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Al(this.view)),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(zv(t))),this.updateAllowDefault(t),this.allowDefault||!n?Vc(this.view,"pointer"):_ue(this.view,n.pos,n.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||wi&&this.mightDrag&&!this.mightDrag.node.isAtom||ri&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(Rh(this.view,$t.near(this.view.state.doc.resolve(n.pos)),"pointer"),t.preventDefault()):Vc(this.view,"pointer")}move(t){this.updateAllowDefault(t),Vc(this.view,"pointer"),t.buttons==0&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}vi.touchstart=e=>{e.input.lastTouch=Date.now(),tS(e),Vc(e,"pointer")};vi.touchmove=e=>{e.input.lastTouch=Date.now(),Vc(e,"pointer")};vi.contextmenu=e=>tS(e);function Uj(e,t){return e.composing?!0:wi&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const xue=Ro?5e3:-1;xi.compositionstart=xi.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))e.markCursor=e.state.storedMarks||n.marks(),Ok(e,!0),e.markCursor=null;else if(Ok(e),Xo&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=e.domSelectionRange();for(let i=r.focusNode,a=r.focusOffset;i&&i.nodeType==1&&a!=0;){let o=a<0?i.lastChild:i.childNodes[a-1];if(!o)break;if(o.nodeType==3){e.domSelection().collapse(o,o.nodeValue.length);break}else i=o,a=-1}}e.input.composing=!0}Wj(e,xue)};xi.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionID++,Wj(e,20))};function Wj(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>Ok(e),t))}function Gj(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Cue());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function Cue(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function Ok(e,t=!1){if(!(Ro&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),Gj(e),t||e.docView&&e.docView.dirty){let n=XC(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):e.updateState(e.state),!0}return!1}}function Sue(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),i=document.createRange();i.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}const cp=Gi&&eu<15||lp&&Sce<604;vi.copy=xi.cut=(e,t)=>{let n=t,r=e.state.selection,i=n.type=="cut";if(r.empty)return;let a=cp?null:n.clipboardData,o=r.content(),{dom:s,text:l}=Ij(e,o);a?(n.preventDefault(),a.clearData(),a.setData("text/html",s.innerHTML),a.setData("text/plain",l)):Sue(e,s),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function Due(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function Eue(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let i=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?hg(e,r.value,null,i,t):hg(e,r.textContent,r.innerHTML,i,t)},50)}function hg(e,t,n,r,i){let a=Bj(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",l=>l(e,i,a||Ue.empty)))return!0;if(!a)return!1;let o=Due(a),s=o?e.state.tr.replaceSelectionWith(o,r):e.state.tr.replaceSelection(a);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}xi.paste=(e,t)=>{let n=t;if(e.composing&&!Ro)return;let r=cp?null:n.clipboardData,i=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&hg(e,r.getData("text/plain"),r.getData("text/html"),i,n)?n.preventDefault():Eue(e,n)};class Tue{constructor(t,n){this.slice=t,this.move=n}}const Kj=Za?"altKey":"ctrlKey";vi.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=e.state.selection,a=i.empty?null:e.posAtCoords(zv(n));if(!(a&&a.pos>=i.from&&a.pos<=(i instanceof Mt?i.to-1:i.to))){if(r&&r.mightDrag)e.dispatch(e.state.tr.setSelection(Mt.create(e.state.doc,r.mightDrag.pos)));else if(n.target&&n.target.nodeType==1){let c=e.docView.nearestDesc(n.target,!0);c&&c.node.type.spec.draggable&&c!=e.docView&&e.dispatch(e.state.tr.setSelection(Mt.create(e.state.doc,c.posBefore)))}}let o=e.state.selection.content(),{dom:s,text:l}=Ij(e,o);n.dataTransfer.clearData(),n.dataTransfer.setData(cp?"Text":"text/html",s.innerHTML),n.dataTransfer.effectAllowed="copyMove",cp||n.dataTransfer.setData("text/plain",l),e.dragging=new Tue(o,!n[Kj])};vi.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)};xi.dragover=xi.dragenter=(e,t)=>t.preventDefault();xi.drop=(e,t)=>{let n=t,r=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let i=e.posAtCoords(zv(n));if(!i)return;let a=e.state.doc.resolve(i.pos),o=r&&r.slice;o?e.someProp("transformPasted",g=>{o=g(o,e)}):o=Bj(e,n.dataTransfer.getData(cp?"Text":"text/plain"),cp?null:n.dataTransfer.getData("text/html"),!1,a);let s=!!(r&&!n[Kj]);if(e.someProp("handleDrop",g=>g(e,n,o||Ue.empty,s))){n.preventDefault();return}if(!o)return;n.preventDefault();let l=o?lce(e.state.doc,a.pos,o):a.pos;l==null&&(l=a.pos);let c=e.state.tr;s&&c.deleteSelection();let u=c.mapping.map(l),f=o.openStart==0&&o.openEnd==0&&o.content.childCount==1,h=c.doc;if(f?c.replaceRangeWith(u,u,o.content.firstChild):c.replaceRange(u,u,o),c.doc.eq(h))return;let m=c.doc.resolve(u);if(f&&Mt.isSelectable(o.content.firstChild)&&m.nodeAfter&&m.nodeAfter.sameMarkup(o.content.firstChild))c.setSelection(new Mt(m));else{let g=c.mapping.map(l);c.mapping.maps[c.mapping.maps.length-1].forEach((b,C,w,k)=>g=k),c.setSelection(JC(e,m,c.doc.resolve(g)))}e.focus(),e.dispatch(c.setMeta("uiEvent","drop"))};vi.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&Al(e)},20))};vi.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)};vi.beforeinput=(e,t)=>{if(ri&&Ro&&t.inputType=="deleteContentBackward"){e.domObserver.flushSoon();let{domChangeCount:r}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=r||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",a=>a(e,ud(8,"Backspace")))))return;let{$cursor:i}=e.state.selection;i&&i.pos>0&&e.dispatch(e.state.tr.delete(i.pos-1,i.pos).scrollIntoView())},50)}};for(let e in xi)vi[e]=xi[e];function pg(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class nS{constructor(t,n){this.toDOM=t,this.spec=n||Td,this.side=this.spec.side||0}map(t,n,r,i){let{pos:a,deleted:o}=t.mapResult(n.from+i,this.side<0?-1:1);return o?null:new $r(a-r,a-r,this)}valid(){return!0}eq(t){return this==t||t instanceof nS&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&pg(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class nu{constructor(t,n){this.attrs=t,this.spec=n||Td}map(t,n,r,i){let a=t.map(n.from+i,this.spec.inclusiveStart?-1:1)-r,o=t.map(n.to+i,this.spec.inclusiveEnd?1:-1)-r;return a>=o?null:new $r(a,o,this)}valid(t,n){return n.from=t&&(!a||a(s.spec))&&r.push(s.copy(s.from+i,s.to+i))}for(let o=0;ot){let s=this.children[o]+1;this.children[o+2].findInner(t-s,n-s,r,i+s,a)}}map(t,n,r){return this==ei||t.maps.length==0?this:this.mapInner(t,n,0,0,r||Td)}mapInner(t,n,r,i,a){let o;for(let s=0;s{let c=l+r,u;if(u=Zj(n,s,c)){for(i||(i=this.children.slice());as&&f.to=t){this.children[s]==t&&(r=this.children[s+2]);break}let a=t+1,o=a+n.content.size;for(let s=0;sa&&l.type instanceof nu){let c=Math.max(a,l.from)-a,u=Math.min(o,l.to)-a;ci.map(t,n,Td));return Lc.from(r)}forChild(t,n){if(n.isLeaf)return en.empty;let r=[];for(let i=0;in instanceof en)?t:t.reduce((n,r)=>n.concat(r instanceof en?r:r.members),[]))}}}function Aue(e,t,n,r,i,a,o){let s=e.slice();for(let c=0,u=a;c{let C=b-g-(m-h);for(let w=0;wk+u-f)continue;let S=s[w]+u-f;m>=S?s[w+1]=h<=S?-2:-1:g>=i&&C&&(s[w]+=C,s[w+1]+=C)}f+=C}),u=n.maps[c].map(u,-1)}let l=!1;for(let c=0;c=r.content.size){l=!0;continue}let h=n.map(e[c+1]+a,-1),m=h-i,{index:g,offset:b}=r.content.findIndex(f),C=r.maybeChild(g);if(C&&b==f&&b+C.nodeSize==m){let w=s[c+2].mapInner(n,C,u+1,e[c]+a+1,o);w!=ei?(s[c]=f,s[c+1]=m,s[c+2]=w):(s[c+1]=-2,l=!0)}else l=!0}if(l){let c=zue(s,e,t,n,i,a,o),u=Nk(c,r,0,o);t=u.local;for(let f=0;fn&&o.to{let c=Zj(e,s,l+n);if(c){a=!0;let u=Nk(c,s,n+l+1,r);u!=ei&&i.push(l,l+s.nodeSize,u)}});let o=Yj(a?Xj(e):e,-n).sort(Ad);for(let s=0;s0;)t++;e.splice(t,0,n)}function U4(e){let t=[];return e.someProp("decorations",n=>{let r=n(e.state);r&&r!=ei&&t.push(r)}),e.cursorWrapper&&t.push(en.create(e.state.doc,[e.cursorWrapper.deco])),Lc.from(t)}const Fue={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},$ue=Gi&&eu<=11;class Mue{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class Oue{constructor(t,n){this.view=t,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new Mue,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let i=0;ii.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),$ue&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,Fue)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let n=0;nthis.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(b$(this.view)){if(this.suppressingSelectionUpdates)return Al(this.view);if(Gi&&eu<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&Gd(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let n=new Set,r;for(let a=t.focusNode;a;a=fg(a))n.add(a);for(let a=t.anchorNode;a;a=fg(a))if(n.has(a)){r=a;break}let i=r&&this.view.docView.nearestDesc(r);if(i&&i.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let n=this.observer?this.observer.takeRecords():[];this.queue.length&&(n=this.queue.concat(n),this.queue.length=0);let r=t.domSelectionRange(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&b$(t)&&!this.ignoreSelectionChange(r),a=-1,o=-1,s=!1,l=[];if(t.editable)for(let u=0;u1){let u=l.filter(f=>f.nodeName=="BR");if(u.length==2){let f=u[0],h=u[1];f.parentNode&&f.parentNode.parentNode==h.parentNode?h.remove():f.remove()}}let c=null;a<0&&i&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)-1||i)&&(a>-1&&(t.docView.markDirty(a,o),Nue(t)),this.handleDOMChange(a,o,s,l),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(r)||Al(t),this.currentSelection.set(r))}registerMutation(t,n){if(n.indexOf(t.target)>-1)return null;let r=this.view.docView.nearestDesc(t.target);if(t.type=="attributes"&&(r==this.view.docView||t.attributeName=="contenteditable"||t.attributeName=="style"&&!t.oldValue&&!t.target.getAttribute("style"))||!r||r.ignoreMutation(t))return null;if(t.type=="childList"){for(let u=0;ui;C--){let w=r.childNodes[C-1],k=w.pmViewDesc;if(w.nodeName=="BR"&&!k){a=C;break}if(!k||k.size)break}let f=e.state.doc,h=e.someProp("domParser")||Wd.fromSchema(e.state.schema),m=f.resolve(o),g=null,b=h.parse(r,{topNode:m.parent,topMatch:m.parent.contentMatchAt(m.index()),topOpen:!0,from:i,to:a,preserveWhitespace:m.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:Bue,context:m});if(c&&c[0].pos!=null){let C=c[0].pos,w=c[1]&&c[1].pos;w==null&&(w=C),g={anchor:C+o,head:w+o}}return{doc:b,sel:g,from:o,to:s}}function Bue(e){let t=e.pmViewDesc;if(t)return t.parseRule();if(e.nodeName=="BR"&&e.parentNode){if(wi&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(e.parentNode.lastChild==e||wi&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if(e.nodeName=="IMG"&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}const Rue=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function Pue(e,t,n,r,i){if(t<0){let $=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,R=XC(e,$);if(R&&!e.state.selection.eq(R)){if(ri&&Ro&&e.input.lastKeyCode===13&&Date.now()-100G(e,ud(13,"Enter"))))return;let O=e.state.tr.setSelection(R);$=="pointer"?O.setMeta("pointer",!0):$=="key"&&O.scrollIntoView(),e.composing&&O.setMeta("composition",e.input.compositionID),e.dispatch(O)}return}let a=e.state.doc.resolve(t),o=a.sharedDepth(n);t=a.before(o+1),n=e.state.doc.resolve(n).after(o+1);let s=e.state.selection,l=Iue(e,t,n),c=e.state.doc,u=c.slice(l.from,l.to),f,h;e.input.lastKeyCode===8&&Date.now()-100Date.now()-225||Ro)&&i.some($=>$.nodeType==1&&!Rue.test($.nodeName))&&(!m||m.endA>=m.endB)&&e.someProp("handleKeyDown",$=>$(e,ud(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!m)if(r&&s instanceof Nt&&!s.empty&&s.$head.sameParent(s.$anchor)&&!e.composing&&!(l.sel&&l.sel.anchor!=l.sel.head))m={start:s.from,endA:s.to,endB:s.to};else{if(l.sel){let $=z$(e,e.state.doc,l.sel);if($&&!$.eq(e.state.selection)){let R=e.state.tr.setSelection($);e.composing&&R.setMeta("composition",e.input.compositionID),e.dispatch(R)}}return}if(ri&&e.cursorWrapper&&l.sel&&l.sel.anchor==e.cursorWrapper.deco.from&&l.sel.head==l.sel.anchor){let $=m.endB-m.start;l.sel={anchor:l.sel.anchor+$,head:l.sel.anchor+$}}e.input.domChangeCount++,e.state.selection.frome.state.selection.from&&m.start<=e.state.selection.from+2&&e.state.selection.from>=l.from?m.start=e.state.selection.from:m.endA=e.state.selection.to-2&&e.state.selection.to<=l.to&&(m.endB+=e.state.selection.to-m.endA,m.endA=e.state.selection.to)),Gi&&eu<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>l.from&&l.doc.textBetween(m.start-l.from-1,m.start-l.from+1)=="  "&&(m.start--,m.endA--,m.endB--);let g=l.doc.resolveNoCache(m.start-l.from),b=l.doc.resolveNoCache(m.endB-l.from),C=c.resolve(m.start),w=g.sameParent(b)&&g.parent.inlineContent&&C.end()>=m.endA,k;if((lp&&e.input.lastIOSEnter>Date.now()-225&&(!w||i.some($=>$.nodeName=="DIV"||$.nodeName=="P"))||!w&&g.pos$(e,ud(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>m.start&&Vue(c,m.start,m.endA,g,b)&&e.someProp("handleKeyDown",$=>$(e,ud(8,"Backspace")))){Ro&&ri&&e.domObserver.suppressSelectionUpdates();return}ri&&Ro&&m.endB==m.start&&(e.input.lastAndroidDelete=Date.now()),Ro&&!w&&g.start()!=b.start()&&b.parentOffset==0&&g.depth==b.depth&&l.sel&&l.sel.anchor==l.sel.head&&l.sel.head==m.endA&&(m.endB-=2,b=l.doc.resolveNoCache(m.endB-l.from),setTimeout(()=>{e.someProp("handleKeyDown",function($){return $(e,ud(13,"Enter"))})},20));let S=m.start,E=m.endA,A,_,T;if(w){if(g.pos==b.pos)Gi&&eu<=11&&g.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>Al(e),20)),A=e.state.tr.delete(S,E),_=c.resolve(m.start).marksAcross(c.resolve(m.endA));else if(m.endA==m.endB&&(T=jue(g.parent.content.cut(g.parentOffset,b.parentOffset),C.parent.content.cut(C.parentOffset,m.endA-C.start()))))A=e.state.tr,T.type=="add"?A.addMark(S,E,T.mark):A.removeMark(S,E,T.mark);else if(g.parent.child(g.index()).isText&&g.index()==b.index()-(b.textOffset?0:1)){let $=g.parent.textBetween(g.parentOffset,b.parentOffset);if(e.someProp("handleTextInput",R=>R(e,S,E,$)))return;A=e.state.tr.insertText($,S,E)}}if(A||(A=e.state.tr.replace(S,E,l.doc.slice(m.start-l.from,m.endB-l.from))),l.sel){let $=z$(e,A.doc,l.sel);$&&!(ri&&Ro&&e.composing&&$.empty&&(m.start!=m.endB||e.input.lastAndroidDeletet.content.size?null:JC(e,t.resolve(n.anchor),t.resolve(n.head))}function jue(e,t){let n=e.firstChild.marks,r=t.firstChild.marks,i=n,a=r,o,s,l;for(let u=0;uu.mark(s.addToSet(u.marks));else if(i.length==0&&a.length==1)s=a[0],o="remove",l=u=>u.mark(s.removeFromSet(u.marks));else return null;let c=[];for(let u=0;un||W4(o,!0,!1)0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,i++,t=!1;if(n){let a=e.node(r).maybeChild(e.indexAfter(r));for(;a&&!a.isLeaf;)a=a.firstChild,i++}return i}function que(e,t,n,r,i){let a=e.findDiffStart(t,n);if(a==null)return null;let{a:o,b:s}=e.findDiffEnd(t,n+e.size,n+t.size);if(i=="end"){let l=Math.max(0,a-Math.min(o,s));r-=o+l-a}if(o=o?a-r:0;a-=l,s=a+(s-o),o=a}else if(s=s?a-r:0;a-=l,o=a+(o-s),s=a}return{start:a,endA:o,endB:s}}class Hue{constructor(t,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new uue,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(N$),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):typeof t=="function"?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=M$(this),$$(this),this.nodeViews=O$(this),this.docView=h$(this.state.doc,F$(this),U4(this),this.dom,this),this.domObserver=new Oue(this,(r,i,a,o)=>Pue(this,r,i,a,o)),this.domObserver.start(),due(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let n in t)this._props[n]=t[n];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&Wx(this);let n=this._props;this._props=t,t.plugins&&(t.plugins.forEach(N$),this.directPlugins=t.plugins),this.updateStateInner(t.state,n)}setProps(t){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in t)n[r]=t[r];this.update(n)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,n){let r=this.state,i=!1,a=!1;t.storedMarks&&this.composing&&(Gj(this),a=!0),this.state=t;let o=r.plugins!=t.plugins||this._props.plugins!=n.plugins;if(o||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let h=O$(this);Wue(h,this.nodeViews)&&(this.nodeViews=h,i=!0)}(o||n.handleDOMEvents!=this._props.handleDOMEvents)&&Wx(this),this.editable=M$(this),$$(this);let s=U4(this),l=F$(this),c=r.plugins!=t.plugins&&!r.doc.eq(t.doc)?"reset":t.scrollToSelection>r.scrollToSelection?"to selection":"preserve",u=i||!this.docView.matchesNode(t.doc,l,s);(u||!t.selection.eq(r.selection))&&(a=!0);let f=c=="preserve"&&a&&this.dom.style.overflowAnchor==null&&Tce(this);if(a){this.domObserver.stop();let h=u&&(Gi||ri)&&!this.composing&&!r.selection.empty&&!t.selection.empty&&Uue(r.selection,t.selection);if(u){let m=ri?this.trackWrites=this.domSelectionRange().focusNode:null;(i||!this.docView.update(t.doc,l,s,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=h$(t.doc,l,s,this.dom,this)),m&&!this.trackWrites&&(h=!0)}h||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&Qce(this))?Al(this,h):(Mj(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),c=="reset"?this.dom.scrollTop=0:c=="to selection"?this.scrollToSelection():f&&Ace(f)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof Mt){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&s$(this,n.getBoundingClientRect(),t)}else s$(this,this.coordsAtPos(this.state.selection.head,1),t)}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(!t||t.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;nn.ownerDocument.getSelection()),this._root=n}return t||document}posAtCoords(t){return Nce(this,t)}coordsAtPos(t,n=1){return Sj(this,t,n)}domAtPos(t,n=0){return this.docView.domFromPos(t,n)}nodeDOM(t){let n=this.docView.descAt(t);return n?n.nodeDOM:null}posAtDOM(t,n,r=-1){let i=this.docView.posFromDOM(t,n,r);if(i==null)throw new RangeError("DOM position not inside the editor");return i}endOfTextblock(t,n){return Pce(this,n||this.state,t)}pasteHTML(t,n){return hg(this,"",t,!1,n||new ClipboardEvent("paste"))}pasteText(t,n){return hg(this,t,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(fue(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],U4(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return this.docView==null}dispatchEvent(t){return pue(this,t)}dispatch(t){let n=this._props.dispatchTransaction;n?n.call(this,t):this.updateState(this.state.apply(t))}domSelectionRange(){return wi&&this.root.nodeType===11&&wce(this.dom.ownerDocument)==this.dom?Lue(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function F$(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(e.state)),n)for(let r in n)r=="class"?t.class+=" "+n[r]:r=="style"?t.style=(t.style?t.style+";":"")+n[r]:!t[r]&&r!="contenteditable"&&r!="nodeName"&&(t[r]=String(n[r]))}),t.translate||(t.translate="no"),[$r.node(0,e.state.doc.content.size,t)]}function $$(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:$r.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function M$(e){return!e.someProp("editable",t=>t(e.state)===!1)}function Uue(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function O$(e){let t=Object.create(null);function n(r){for(let i in r)Object.prototype.hasOwnProperty.call(t,i)||(t[i]=r[i])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function Wue(e,t){let n=0,r=0;for(let i in e){if(e[i]!=t[i])return!0;n++}for(let i in t)r++;return n!=r}function N$(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}const Jj=F.createContext({contentRef:()=>{},view:null,getPos:()=>0,setAttrs:()=>{},node:null,selected:!1,decorations:[],innerDecorations:null}),es=()=>F.useContext(Jj),Qj=F.createContext(e=>{throw new Error("out of scope")}),aS=()=>F.useContext(Qj);let Gue=class extends _le{constructor(){super(...arguments),this.key=UC(),this.context={contentRef:t=>{t&&this.contentDOM&&t.firstChild!==this.contentDOM&&t.appendChild(this.contentDOM)},view:this.view,getPos:this.getPos,setAttrs:this.setAttrs,node:this.node,selected:this.selected,decorations:this.decorations,innerDecorations:this.innerDecorations},this.updateContext=()=>{Object.assign(this.context,{node:this.node,selected:this.selected,decorations:this.decorations,innerDecorations:this.innerDecorations})},this.render=()=>{const t=this.component;return Op.createPortal(cn.createElement(Jj.Provider,{value:this.context},cn.createElement(t,null)),this.dom,this.key)}}};const eV=F.createContext({view:null}),Fv=()=>F.useContext(eV),tV=F.createContext(e=>{throw new Error("out of scope")}),oS=()=>F.useContext(tV),Kue=(e,t)=>F.useCallback(n=>(r,i,a,o,s)=>{const l=new Gue({node:r,view:i,getPos:a,decorations:o,innerDecorations:s,options:{...n,onUpdate(){var c;(c=n.onUpdate)==null||c.call(n),e(l)},selectNode(){var c;(c=n.selectNode)==null||c.call(n),e(l)},deselectNode(){var c;(c=n.deselectNode)==null||c.call(n),e(l)},destroy(){var c;(c=n.destroy)==null||c.call(n),t(l)}}});return e(l,!1),l},[t,e]);let Yue=class extends ble{constructor(){super(...arguments),this.key=UC(),this.context={view:this.view,prevState:this.prevState},this.updateContext=()=>{Object.assign(this.context,{view:this.view,prevState:this.prevState})},this.render=()=>{const t=this.component;return Op.createPortal(cn.createElement(eV.Provider,{value:this.context},cn.createElement(t,null)),this.root,this.key)}}};const Zue=(e,t)=>F.useCallback(n=>r=>{const i=new Yue({view:r,options:{...n,update:(a,o)=>{var s;(s=n.update)==null||s.call(n,a,o),e(i)},destroy:()=>{var a;(a=n.destroy)==null||a.call(n),t(i)}}});return e(i,!1),i},[t,e]),Xue=()=>{const[e,t]=F.useState({}),n=F.useRef(!1);F.useEffect(()=>(requestAnimationFrame(()=>{n.current=!0}),()=>{n.current=!1}),[]);const r=F.useCallback(o=>{n.current?Op.flushSync(o):o()},[]),i=F.useCallback((o,s=!0)=>{r(()=>{s&&o.updateContext(),t(l=>({...l,[o.key]:o.render()}))})},[r]),a=F.useCallback(o=>{r(()=>{t(s=>{const l={...s};return delete l[o.key],l})})},[r]);return{portals:e,renderReactRenderer:i,removeReactRenderer:a}},nV=F.createContext({view:null,getPos:()=>{}}),Np=()=>F.useContext(nV),rV=F.createContext(e=>{throw new Error("out of scope")}),$v=()=>F.useContext(rV);let Jue=class extends kle{constructor(){super(...arguments),this.key=UC(),this.context={view:this.view,getPos:this.getPos,spec:this.spec},this.updateContext=()=>{Object.assign(this.context,{view:this.view,getPos:this.getPos,spec:this.spec})},this.render=()=>{const t=this.component;return Op.createPortal(cn.createElement(nV.Provider,{value:this.context},cn.createElement(t,null)),this.dom,this.key)}}};const Que=(e,t)=>F.useCallback(n=>(r,i={})=>{const a=new Jue({pos:r,options:n}),o={...i,destroy:s=>{var l;(l=i.destroy)==null||l.call(i,s),t(a)}};return a.spec=o,$r.widget(r,(s,l)=>(a.bind(s,l),e(a),a.dom),o)},[t,e]),ede=({children:e})=>{const{renderReactRenderer:t,removeReactRenderer:n,portals:r}=Xue(),i=Kue(t,n),a=Zue(t,n),o=Que(t,n),s=F.useMemo(()=>Object.values(r),[r]);return cn.createElement(Qj.Provider,{value:i},cn.createElement(tV.Provider,{value:a},cn.createElement(rV.Provider,{value:o},e,s)))};let tde={data:""},nde=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||tde,rde=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,ide=/\/\*[^]*?\*\/| +/g,L$=/\n+/g,Ic=(e,t)=>{let n="",r="",i="";for(let a in e){let o=e[a];a[0]=="@"?a[1]=="i"?n=a+" "+o+";":r+=a[1]=="f"?Ic(o,a):a+"{"+Ic(o,a[1]=="k"?"":t)+"}":typeof o=="object"?r+=Ic(o,t?t.replace(/([^,])+/g,s=>a.replace(/(^:.*)|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,s):s?s+" "+l:l)):a):o!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Ic.p?Ic.p(a,o):a+":"+o+";")}return n+(t&&i?t+"{"+i+"}":i)+r},ol={},iV=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+iV(e[n]);return t}return e},ade=(e,t,n,r,i)=>{let a=iV(e),o=ol[a]||(ol[a]=(l=>{let c=0,u=11;for(;c>>0;return"go"+u})(a));if(!ol[o]){let l=a!==e?e:(c=>{let u,f,h=[{}];for(;u=rde.exec(c.replace(ide,""));)u[4]?h.shift():u[3]?(f=u[3].replace(L$," ").trim(),h.unshift(h[0][f]=h[0][f]||{})):h[0][u[1]]=u[2].replace(L$," ").trim();return h[0]})(e);ol[o]=Ic(i?{["@keyframes "+o]:l}:l,n?"":"."+o)}let s=n&&ol.g?ol.g:null;return n&&(ol.g=ol[o]),((l,c,u,f)=>{f?c.data=c.data.replace(f,l):c.data.indexOf(l)===-1&&(c.data=u?l+c.data:c.data+l)})(ol[o],t,r,s),o},ode=(e,t,n)=>e.reduce((r,i,a)=>{let o=t[a];if(o&&o.call){let s=o(n),l=s&&s.props&&s.props.className||/^go/.test(s)&&s;o=l?"."+l:s&&typeof s=="object"?s.props?"":Ic(s,""):s===!1?"":s}return r+i+(o??"")},"");function Mv(e){let t=this||{},n=e.call?e(t.p):e;return ade(n.unshift?n.raw?ode(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,nde(t.target),t.g,t.o,t.k)}let aV,Gx,Kx;Mv.bind({g:1});let Rl=Mv.bind({k:1});function sde(e,t,n,r){Ic.p=t,aV=e,Gx=n,Kx=r}function xu(e,t){let n=this||{};return function(){let r=arguments;function i(a,o){let s=Object.assign({},a),l=s.className||i.className;n.p=Object.assign({theme:Gx&&Gx()},s),n.o=/ *go\d+/.test(l),s.className=Mv.apply(n,r)+(l?" "+l:""),t&&(s.ref=o);let c=e;return e[0]&&(c=s.as||e,delete s.as),Kx&&c[0]&&Kx(s),aV(c,s)}return t?t(i):i}}var lde=e=>typeof e=="function",Lk=(e,t)=>lde(e)?e(t):e,cde=(()=>{let e=0;return()=>(++e).toString()})(),oV=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),ude=20,H_=new Map,dde=1e3,I$=e=>{if(H_.has(e))return;let t=setTimeout(()=>{H_.delete(e),sf({type:4,toastId:e})},dde);H_.set(e,t)},fde=e=>{let t=H_.get(e);t&&clearTimeout(t)},Yx=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,ude)};case 1:return t.toast.id&&fde(t.toast.id),{...e,toasts:e.toasts.map(a=>a.id===t.toast.id?{...a,...t.toast}:a)};case 2:let{toast:n}=t;return e.toasts.find(a=>a.id===n.id)?Yx(e,{type:1,toast:n}):Yx(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?I$(r):e.toasts.forEach(a=>{I$(a.id)}),{...e,toasts:e.toasts.map(a=>a.id===r||r===void 0?{...a,visible:!1}:a)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(a=>({...a,pauseDuration:a.pauseDuration+i}))}}},U_=[],W_={toasts:[],pausedAt:void 0},sf=e=>{W_=Yx(W_,e),U_.forEach(t=>{t(W_)})},hde={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},pde=(e={})=>{let[t,n]=F.useState(W_);F.useEffect(()=>(U_.push(n),()=>{let i=U_.indexOf(n);i>-1&&U_.splice(i,1)}),[t]);let r=t.toasts.map(i=>{var a,o;return{...e,...e[i.type],...i,duration:i.duration||((a=e[i.type])==null?void 0:a.duration)||(e==null?void 0:e.duration)||hde[i.type],style:{...e.style,...(o=e[i.type])==null?void 0:o.style,...i.style}}});return{...t,toasts:r}},mde=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||cde()}),Gg=e=>(t,n)=>{let r=mde(t,e,n);return sf({type:2,toast:r}),r.id},Pi=(e,t)=>Gg("blank")(e,t);Pi.error=Gg("error");Pi.success=Gg("success");Pi.loading=Gg("loading");Pi.custom=Gg("custom");Pi.dismiss=e=>{sf({type:3,toastId:e})};Pi.remove=e=>sf({type:4,toastId:e});Pi.promise=(e,t,n)=>{let r=Pi.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(i=>(Pi.success(Lk(t.success,i),{id:r,...n,...n==null?void 0:n.success}),i)).catch(i=>{Pi.error(Lk(t.error,i),{id:r,...n,...n==null?void 0:n.error})}),e};var gde=(e,t)=>{sf({type:1,toast:{id:e,height:t}})},yde=()=>{sf({type:5,time:Date.now()})},_de=e=>{let{toasts:t,pausedAt:n}=pde(e);F.useEffect(()=>{if(n)return;let a=Date.now(),o=t.map(s=>{if(s.duration===1/0)return;let l=(s.duration||0)+s.pauseDuration-(a-s.createdAt);if(l<0){s.visible&&Pi.dismiss(s.id);return}return setTimeout(()=>Pi.dismiss(s.id),l)});return()=>{o.forEach(s=>s&&clearTimeout(s))}},[t,n]);let r=F.useCallback(()=>{n&&sf({type:6,time:Date.now()})},[n]),i=F.useCallback((a,o)=>{let{reverseOrder:s=!1,gutter:l=8,defaultPosition:c}=o||{},u=t.filter(m=>(m.position||c)===(a.position||c)&&m.height),f=u.findIndex(m=>m.id===a.id),h=u.filter((m,g)=>gm.visible).slice(...s?[h+1]:[0,h]).reduce((m,g)=>m+(g.height||0)+l,0)},[t]);return{toasts:t,handlers:{updateHeight:gde,startPause:yde,endPause:r,calculateOffset:i}}},bde=Rl` from { transform: scale(0) rotate(45deg); opacity: 0; @@ -233,32 +233,32 @@ to { color: inherit; flex: 1 1 auto; white-space: pre-line; -`,Rde=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=aV()?[Nde,Lde]:[Mde(n),Ode(n)];return{animation:t?`${Rl(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Rl(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},Pde=F.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?Rde(e.position||t||"top-center",e.visible):{opacity:0},a=F.createElement($de,{toast:e}),o=F.createElement(Bde,{...e.ariaProps},Lk(e.message,e));return F.createElement(Ide,{className:e.className,style:{...i,...n,...e.style}},typeof r=="function"?r({icon:a,message:o}):F.createElement(F.Fragment,null,a,o))});sde(F.createElement);var jde=({id:e,className:t,style:n,onHeightUpdate:r,children:i})=>{let a=F.useCallback(o=>{if(o){let s=()=>{let l=o.getBoundingClientRect().height;r(e,l)};s(),new MutationObserver(s).observe(o,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return F.createElement("div",{ref:a,className:t,style:n},i)},Vde=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:aV()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}},qde=Mv` +`,Rde=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=oV()?[Nde,Lde]:[Mde(n),Ode(n)];return{animation:t?`${Rl(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Rl(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},Pde=F.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?Rde(e.position||t||"top-center",e.visible):{opacity:0},a=F.createElement($de,{toast:e}),o=F.createElement(Bde,{...e.ariaProps},Lk(e.message,e));return F.createElement(Ide,{className:e.className,style:{...i,...n,...e.style}},typeof r=="function"?r({icon:a,message:o}):F.createElement(F.Fragment,null,a,o))});sde(F.createElement);var jde=({id:e,className:t,style:n,onHeightUpdate:r,children:i})=>{let a=F.useCallback(o=>{if(o){let s=()=>{let l=o.getBoundingClientRect().height;r(e,l)};s(),new MutationObserver(s).observe(o,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return F.createElement("div",{ref:a,className:t,style:n},i)},Vde=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:oV()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}},qde=Mv` z-index: 9999; > * { pointer-events: auto; } -`,Zy=16,Hde=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,containerStyle:a,containerClassName:o})=>{let{toasts:s,handlers:l}=_de(n);return F.createElement("div",{style:{position:"fixed",zIndex:9999,top:Zy,left:Zy,right:Zy,bottom:Zy,pointerEvents:"none",...a},className:o,onMouseEnter:l.startPause,onMouseLeave:l.endPause},s.map(c=>{let u=c.position||t,f=l.calculateOffset(c,{reverseOrder:e,gutter:r,defaultPosition:t}),h=Vde(u,f);return F.createElement(jde,{id:c.id,key:c.id,onHeightUpdate:l.updateHeight,className:c.visible?qde:"",style:h},c.type==="custom"?Lk(c.message,c):i?i(c):F.createElement(Pde,{toast:c,position:u}))}))},Qi=(e=>(e.docTypeError="docTypeError",e.contextNotFound="contextNotFound",e.timerNotFound="timerNotFound",e.ctxCallOutOfScope="ctxCallOutOfScope",e.createNodeInParserFail="createNodeInParserFail",e.stackOverFlow="stackOverFlow",e.parserMatchError="parserMatchError",e.serializerMatchError="serializerMatchError",e.getAtomFromSchemaFail="getAtomFromSchemaFail",e.expectDomTypeError="expectDomTypeError",e.callCommandBeforeEditorView="callCommandBeforeEditorView",e.missingRootElement="missingRootElement",e.missingNodeInSchema="missingNodeInSchema",e.missingMarkInSchema="missingMarkInSchema",e.ctxNotBind="ctxNotBind",e.missingYjsDoc="missingYjsDoc",e))(Qi||{});let $a=class extends Error{constructor(t,n){super(n),this.name="MilkdownError",this.code=t}};const Ude=(e,t)=>typeof t=="function"?"[Function]":t,up=e=>JSON.stringify(e,Ude),Wde=e=>new $a(Qi.docTypeError,`Doc type error, unsupported type: ${up(e)}`),Gde=e=>new $a(Qi.contextNotFound,`Context "${e}" not found, do you forget to inject it?`),Kde=e=>new $a(Qi.timerNotFound,`Timer "${e}" not found, do you forget to record it?`),sS=()=>new $a(Qi.ctxCallOutOfScope,"Should not call a context out of the plugin."),Yde=(...e)=>{const t=e.reduce((n,r)=>{if(!r)return n;const i=a=>Array.isArray(a)?a.map(o=>i(o)).join(", "):a.toJSON?up(a.toJSON()):a.spec?up(a.spec):a.toString();return`${n}, ${i(r)}`},"Create prosemirror node from remark failed in parser");return new $a(Qi.createNodeInParserFail,t)},oV=()=>new $a(Qi.stackOverFlow,"Stack over flow, cannot pop on an empty stack."),Zde=e=>new $a(Qi.parserMatchError,`Cannot match target parser for node: ${up(e)}.`),Xde=e=>new $a(Qi.serializerMatchError,`Cannot match target serializer for node: ${up(e)}.`),Jde=(e,t)=>new $a(Qi.getAtomFromSchemaFail,`Cannot get ${e}: ${t} from schema.`),Ma=e=>new $a(Qi.expectDomTypeError,`Expect to be a dom, but get: ${up(e)}.`),Qde=()=>new $a(Qi.callCommandBeforeEditorView,"You're trying to call a command before editor view initialized, make sure to get commandManager from ctx after editor view has been initialized"),sV=e=>new $a(Qi.missingNodeInSchema,`Missing node in schema, milkdown cannot find "${e}" in schema.`),efe=e=>new $a(Qi.missingMarkInSchema,`Missing mark in schema, milkdown cannot find "${e}" in schema.`);var lV=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},lt=(e,t,n)=>(lV(e,t,"read from private field"),n?n.call(e):t.get(e)),nr=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},ln=(e,t,n,r)=>(lV(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);let cV=class{constructor(){this.sliceMap=new Map,this.get=t=>{const n=typeof t=="string"?[...this.sliceMap.values()].find(r=>r.type.name===t):this.sliceMap.get(t.id);if(!n){const r=typeof t=="string"?t:t.name;throw Gde(r)}return n},this.remove=t=>{const n=typeof t=="string"?[...this.sliceMap.values()].find(r=>r.type.name===t):this.sliceMap.get(t.id);n&&this.sliceMap.delete(n.type.id)},this.has=t=>typeof t=="string"?[...this.sliceMap.values()].some(n=>n.type.name===t):this.sliceMap.has(t.id)}};var us,kc,G0;let tfe=class{constructor(t,n,r){nr(this,us,void 0),nr(this,kc,void 0),nr(this,G0,void 0),ln(this,us,[]),ln(this,G0,()=>{lt(this,us).forEach(i=>i(lt(this,kc)))}),this.set=i=>{ln(this,kc,i),lt(this,G0).call(this)},this.get=()=>lt(this,kc),this.update=i=>{ln(this,kc,i(lt(this,kc))),lt(this,G0).call(this)},this.type=r,ln(this,kc,n),t.set(r.id,this)}on(t){return lt(this,us).push(t),()=>{ln(this,us,lt(this,us).filter(n=>n!==t))}}once(t){const n=this.on(r=>{t(r),n()});return n}off(t){ln(this,us,lt(this,us).filter(n=>n!==t))}offAll(){ln(this,us,[])}};us=new WeakMap,kc=new WeakMap,G0=new WeakMap;let nfe=class{constructor(t,n){this.id=Symbol(`Context-${n}`),this.name=n,this._defaultValue=t,this._typeInfo=()=>{throw sS()}}create(t,n=this._defaultValue){return new tfe(t,n,this)}};const un=(e,t)=>new nfe(e,t);var G_,K_,Y_,Xf,K0,td,Y0,Z0,X0;let rfe=class{constructor(t,n,r){nr(this,G_,void 0),nr(this,K_,void 0),nr(this,Y_,void 0),nr(this,Xf,void 0),nr(this,K0,void 0),nr(this,td,void 0),nr(this,Y0,void 0),nr(this,Z0,void 0),nr(this,X0,void 0),ln(this,Xf,new Set),ln(this,K0,new Set),ln(this,td,new Map),ln(this,Y0,new Map),this.read=()=>({metadata:lt(this,G_),injectedSlices:[...lt(this,Xf)].map(i=>({name:typeof i=="string"?i:i.name,value:lt(this,Z0).call(this,i)})),consumedSlices:[...lt(this,K0)].map(i=>({name:typeof i=="string"?i:i.name,value:lt(this,Z0).call(this,i)})),recordedTimers:[...lt(this,td)].map(([i,{duration:a}])=>({name:i.name,duration:a,status:lt(this,X0).call(this,i)})),waitTimers:[...lt(this,Y0)].map(([i,{duration:a}])=>({name:i.name,duration:a,status:lt(this,X0).call(this,i)}))}),this.onRecord=i=>{lt(this,td).set(i,{start:Date.now(),duration:0})},this.onClear=i=>{lt(this,td).delete(i)},this.onDone=i=>{const a=lt(this,td).get(i);a&&(a.duration=Date.now()-a.start)},this.onWait=(i,a)=>{const o=Date.now();a.finally(()=>{lt(this,Y0).set(i,{duration:Date.now()-o})})},this.onInject=i=>{lt(this,Xf).add(i)},this.onRemove=i=>{lt(this,Xf).delete(i)},this.onUse=i=>{lt(this,K0).add(i)},ln(this,Z0,i=>lt(this,K_).get(i).get()),ln(this,X0,i=>lt(this,Y_).get(i).status),ln(this,K_,t),ln(this,Y_,n),ln(this,G_,r)}};G_=new WeakMap,K_=new WeakMap,Y_=new WeakMap,Xf=new WeakMap,K0=new WeakMap,td=new WeakMap,Y0=new WeakMap,Z0=new WeakMap,X0=new WeakMap;var wc,vc,Z_,Mo;const uV=class{constructor(t,n,r){nr(this,wc,void 0),nr(this,vc,void 0),nr(this,Z_,void 0),nr(this,Mo,void 0),this.produce=i=>i&&Object.keys(i).length?new uV(lt(this,wc),lt(this,vc),{...i}):this,this.inject=(i,a)=>{var o;const s=i.create(lt(this,wc).sliceMap);return a!=null&&s.set(a),(o=lt(this,Mo))==null||o.onInject(i),this},this.remove=i=>{var a;return lt(this,wc).remove(i),(a=lt(this,Mo))==null||a.onRemove(i),this},this.record=i=>{var a;return i.create(lt(this,vc).store),(a=lt(this,Mo))==null||a.onRecord(i),this},this.clearTimer=i=>{var a;return lt(this,vc).remove(i),(a=lt(this,Mo))==null||a.onClear(i),this},this.isInjected=i=>lt(this,wc).has(i),this.isRecorded=i=>lt(this,vc).has(i),this.use=i=>{var a;return(a=lt(this,Mo))==null||a.onUse(i),lt(this,wc).get(i)},this.get=i=>this.use(i).get(),this.set=(i,a)=>this.use(i).set(a),this.update=(i,a)=>this.use(i).update(a),this.timer=i=>lt(this,vc).get(i),this.done=i=>{var a;this.timer(i).done(),(a=lt(this,Mo))==null||a.onDone(i)},this.wait=i=>{var a;const o=this.timer(i).start();return(a=lt(this,Mo))==null||a.onWait(i,o),o},this.waitTimers=async i=>{await Promise.all(this.get(i).map(a=>this.wait(a)))},ln(this,wc,t),ln(this,vc,n),ln(this,Z_,r),r&&ln(this,Mo,new rfe(t,n,r))}get meta(){return lt(this,Z_)}get inspector(){return lt(this,Mo)}};let ife=uV;wc=new WeakMap,vc=new WeakMap,Z_=new WeakMap,Mo=new WeakMap;let afe=class{constructor(){this.store=new Map,this.get=t=>{const n=this.store.get(t.id);if(!n)throw Kde(t.name);return n},this.remove=t=>{this.store.delete(t.id)},this.has=t=>this.store.has(t.id)}};var Jf,nd,J0,xc,Q0,X_;let ofe=class{constructor(t,n){nr(this,Jf,void 0),nr(this,nd,void 0),nr(this,J0,void 0),nr(this,xc,void 0),nr(this,Q0,void 0),nr(this,X_,void 0),ln(this,Jf,null),ln(this,nd,null),ln(this,xc,"pending"),this.start=()=>(lt(this,Jf)??ln(this,Jf,new Promise((r,i)=>{ln(this,nd,a=>{a instanceof CustomEvent&&a.detail.id===lt(this,J0)&&(ln(this,xc,"resolved"),lt(this,Q0).call(this),a.stopImmediatePropagation(),r())}),lt(this,X_).call(this,()=>{lt(this,xc)==="pending"&&ln(this,xc,"rejected"),lt(this,Q0).call(this),i(new Error(`Timing ${this.type.name} timeout.`))}),ln(this,xc,"pending"),addEventListener(this.type.name,lt(this,nd))})),lt(this,Jf)),this.done=()=>{const r=new CustomEvent(this.type.name,{detail:{id:lt(this,J0)}});dispatchEvent(r)},ln(this,Q0,()=>{lt(this,nd)&&removeEventListener(this.type.name,lt(this,nd))}),ln(this,X_,r=>{setTimeout(()=>{r()},this.type.timeout)}),ln(this,J0,Symbol(n.name)),this.type=n,t.set(n.id,this)}get status(){return lt(this,xc)}};Jf=new WeakMap,nd=new WeakMap,J0=new WeakMap,xc=new WeakMap,Q0=new WeakMap,X_=new WeakMap;let sfe=class{constructor(t,n=3e3){this.create=r=>new ofe(r,this),this.id=Symbol(`Timer-${t}`),this.name=t,this.timeout=n}};const Cu=(e,t=3e3)=>new sfe(e,t),lfe={};function lS(e,t){const n=t||lfe,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return dV(e,r,i)}function dV(e,t,n){if(cfe(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return B$(e.children,t,n)}return Array.isArray(e)?B$(e,t,n):""}function B$(e,t,n){const r=[];let i=-1;for(;++ii?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(xa(e,e.length,0,t),e):t}const R$={}.hasOwnProperty;function fV(e){const t={};let n=-1;for(;++no))return;const T=t.events.length;let $=T,R,O;for(;$--;)if(t.events[$][0]==="exit"&&t.events[$][1].type==="chunkFlow"){if(R){O=t.events[$][1].end;break}R=!0}for(w(r),_=T;_S;){const A=n[E];t.containerState=A[1],A[0].exit.call(t,e)}n.length=S}function k(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function kfe(e,t,n){return Yt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Bk(e){if(e===null||Cn(e)||Yd(e))return 1;if(Ov(e))return 2}function Nv(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),h=Object.assign({},e[n][1].start);j$(f,-l),j$(h,l),o={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:h},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},s.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Qa(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=Qa(c,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),c=Qa(c,Nv(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=Qa(c,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,c=Qa(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,xa(e,r-1,n-r+3,c),n=r+c.length-u-2;break}}for(n=-1;++n0&&Jt(_)?Yt(e,k,"linePrefix",a+1)(_):k(_)}function k(_){return _===null||st(_)?e.check(q$,b,E)(_):(e.enter("codeFlowValue"),S(_))}function S(_){return _===null||st(_)?(e.exit("codeFlowValue"),k(_)):(e.consume(_),S)}function E(_){return e.exit("codeFenced"),t(_)}function A(_,T,$){let R=0;return O;function O(Y){return _.enter("lineEnding"),_.consume(Y),_.exit("lineEnding"),G}function G(Y){return _.enter("codeFencedFence"),Jt(Y)?Yt(_,V,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Y):V(Y)}function V(Y){return Y===s?(_.enter("codeFencedFenceSequence"),Z(Y)):$(Y)}function Z(Y){return Y===s?(R++,_.consume(Y),Z):R>=o?(_.exit("codeFencedFenceSequence"),Jt(Y)?Yt(_,W,"whitespace")(Y):W(Y)):$(Y)}function W(Y){return Y===null||st(Y)?(_.exit("codeFencedFence"),T(Y)):$(Y)}}}function $fe(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const G4={name:"codeIndented",tokenize:Ofe},Mfe={tokenize:Nfe,partial:!0};function Ofe(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),Yt(e,a,"linePrefix",4+1)(c)}function a(c){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?l(c):st(c)?e.attempt(Mfe,o,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||st(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),t(c)}}function Nfe(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):st(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Yt(e,a,"linePrefix",4+1)(o)}function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):st(o)?i(o):n(o)}}const Lfe={name:"codeText",tokenize:Rfe,resolve:Ife,previous:Bfe};function Ife(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function yV(e,t,n,r,i,a,o,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return f;function f(w){return w===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(w),e.exit(a),h):w===null||w===32||w===41||Ik(w)?n(w):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),b(w))}function h(w){return w===62?(e.enter(a),e.consume(w),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),m(w))}function m(w){return w===62?(e.exit("chunkString"),e.exit(s),h(w)):w===null||w===60||st(w)?n(w):(e.consume(w),w===92?g:m)}function g(w){return w===60||w===62||w===92?(e.consume(w),m):m(w)}function b(w){return!u&&(w===null||w===41||Cn(w))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(w)):u999||m===null||m===91||m===93&&!l||m===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(m):m===93?(e.exit(a),e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):st(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),f(m))}function f(m){return m===null||m===91||m===93||st(m)||s++>999?(e.exit("chunkString"),u(m)):(e.consume(m),l||(l=!Jt(m)),m===92?h:f)}function h(m){return m===91||m===92||m===93?(e.consume(m),s++,f):f(m)}}function bV(e,t,n,r,i,a){let o;return s;function s(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),o=h===40?41:h,l):n(h)}function l(h){return h===o?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(a),c(h))}function c(h){return h===o?(e.exit(a),l(o)):h===null?n(h):st(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),Yt(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(h))}function u(h){return h===o||h===null||st(h)?(e.exit("chunkString"),c(h)):(e.consume(h),h===92?f:u)}function f(h){return h===o||h===92?(e.consume(h),u):u(h)}}function Dm(e,t){let n;return r;function r(i){return st(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Jt(i)?Yt(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function Go(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Wfe={name:"definition",tokenize:Kfe},Gfe={tokenize:Yfe,partial:!0};function Kfe(e,t,n){const r=this;let i;return a;function a(m){return e.enter("definition"),o(m)}function o(m){return _V.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function s(m){return i=Go(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),l):n(m)}function l(m){return Cn(m)?Dm(e,c)(m):c(m)}function c(m){return yV(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function u(m){return e.attempt(Gfe,f,f)(m)}function f(m){return Jt(m)?Yt(e,h,"whitespace")(m):h(m)}function h(m){return m===null||st(m)?(e.exit("definition"),r.parser.defined.push(i),t(m)):n(m)}}function Yfe(e,t,n){return r;function r(s){return Cn(s)?Dm(e,i)(s):n(s)}function i(s){return bV(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return Jt(s)?Yt(e,o,"whitespace")(s):o(s)}function o(s){return s===null||st(s)?t(s):n(s)}}const Zfe={name:"hardBreakEscape",tokenize:Xfe};function Xfe(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return st(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const Jfe={name:"headingAtx",tokenize:ehe,resolve:Qfe};function Qfe(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},xa(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function ehe(e,t,n){let r=0;return i;function i(u){return e.enter("atxHeading"),a(u)}function a(u){return e.enter("atxHeadingSequence"),o(u)}function o(u){return u===35&&r++<6?(e.consume(u),o):u===null||Cn(u)?(e.exit("atxHeadingSequence"),s(u)):n(u)}function s(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||st(u)?(e.exit("atxHeading"),t(u)):Jt(u)?Yt(e,s,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function l(u){return u===35?(e.consume(u),l):(e.exit("atxHeadingSequence"),s(u))}function c(u){return u===null||u===35||Cn(u)?(e.exit("atxHeadingText"),s(u)):(e.consume(u),c)}}const the=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],U$=["pre","script","style","textarea"],nhe={name:"htmlFlow",tokenize:ohe,resolveTo:ahe,concrete:!0},rhe={tokenize:lhe,partial:!0},ihe={tokenize:she,partial:!0};function ahe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function ohe(e,t,n){const r=this;let i,a,o,s,l;return c;function c(I){return u(I)}function u(I){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(I),f}function f(I){return I===33?(e.consume(I),h):I===47?(e.consume(I),a=!0,b):I===63?(e.consume(I),i=3,r.interrupt?t:L):gi(I)?(e.consume(I),o=String.fromCharCode(I),C):n(I)}function h(I){return I===45?(e.consume(I),i=2,m):I===91?(e.consume(I),i=5,s=0,g):gi(I)?(e.consume(I),i=4,r.interrupt?t:L):n(I)}function m(I){return I===45?(e.consume(I),r.interrupt?t:L):n(I)}function g(I){const be="CDATA[";return I===be.charCodeAt(s++)?(e.consume(I),s===be.length?r.interrupt?t:V:g):n(I)}function b(I){return gi(I)?(e.consume(I),o=String.fromCharCode(I),C):n(I)}function C(I){if(I===null||I===47||I===62||Cn(I)){const be=I===47,ze=o.toLowerCase();return!be&&!a&&U$.includes(ze)?(i=1,r.interrupt?t(I):V(I)):the.includes(o.toLowerCase())?(i=6,be?(e.consume(I),w):r.interrupt?t(I):V(I)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(I):a?k(I):S(I))}return I===45||ji(I)?(e.consume(I),o+=String.fromCharCode(I),C):n(I)}function w(I){return I===62?(e.consume(I),r.interrupt?t:V):n(I)}function k(I){return Jt(I)?(e.consume(I),k):O(I)}function S(I){return I===47?(e.consume(I),O):I===58||I===95||gi(I)?(e.consume(I),E):Jt(I)?(e.consume(I),S):O(I)}function E(I){return I===45||I===46||I===58||I===95||ji(I)?(e.consume(I),E):A(I)}function A(I){return I===61?(e.consume(I),_):Jt(I)?(e.consume(I),A):S(I)}function _(I){return I===null||I===60||I===61||I===62||I===96?n(I):I===34||I===39?(e.consume(I),l=I,T):Jt(I)?(e.consume(I),_):$(I)}function T(I){return I===l?(e.consume(I),l=null,R):I===null||st(I)?n(I):(e.consume(I),T)}function $(I){return I===null||I===34||I===39||I===47||I===60||I===61||I===62||I===96||Cn(I)?A(I):(e.consume(I),$)}function R(I){return I===47||I===62||Jt(I)?S(I):n(I)}function O(I){return I===62?(e.consume(I),G):n(I)}function G(I){return I===null||st(I)?V(I):Jt(I)?(e.consume(I),G):n(I)}function V(I){return I===45&&i===2?(e.consume(I),fe):I===60&&i===1?(e.consume(I),ae):I===62&&i===4?(e.consume(I),de):I===63&&i===3?(e.consume(I),L):I===93&&i===5?(e.consume(I),ce):st(I)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(rhe,ue,Z)(I)):I===null||st(I)?(e.exit("htmlFlowData"),Z(I)):(e.consume(I),V)}function Z(I){return e.check(ihe,W,ue)(I)}function W(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),Y}function Y(I){return I===null||st(I)?Z(I):(e.enter("htmlFlowData"),V(I))}function fe(I){return I===45?(e.consume(I),L):V(I)}function ae(I){return I===47?(e.consume(I),o="",Q):V(I)}function Q(I){if(I===62){const be=o.toLowerCase();return U$.includes(be)?(e.consume(I),de):V(I)}return gi(I)&&o.length<8?(e.consume(I),o+=String.fromCharCode(I),Q):V(I)}function ce(I){return I===93?(e.consume(I),L):V(I)}function L(I){return I===62?(e.consume(I),de):I===45&&i===2?(e.consume(I),L):V(I)}function de(I){return I===null||st(I)?(e.exit("htmlFlowData"),ue(I)):(e.consume(I),de)}function ue(I){return e.exit("htmlFlow"),t(I)}}function she(e,t,n){const r=this;return i;function i(o){return st(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function lhe(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Kg,t,n)}}const che={name:"htmlText",tokenize:uhe};function uhe(e,t,n){const r=this;let i,a,o;return s;function s(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),l}function l(L){return L===33?(e.consume(L),c):L===47?(e.consume(L),A):L===63?(e.consume(L),S):gi(L)?(e.consume(L),$):n(L)}function c(L){return L===45?(e.consume(L),u):L===91?(e.consume(L),a=0,g):gi(L)?(e.consume(L),k):n(L)}function u(L){return L===45?(e.consume(L),m):n(L)}function f(L){return L===null?n(L):L===45?(e.consume(L),h):st(L)?(o=f,ae(L)):(e.consume(L),f)}function h(L){return L===45?(e.consume(L),m):f(L)}function m(L){return L===62?fe(L):L===45?h(L):f(L)}function g(L){const de="CDATA[";return L===de.charCodeAt(a++)?(e.consume(L),a===de.length?b:g):n(L)}function b(L){return L===null?n(L):L===93?(e.consume(L),C):st(L)?(o=b,ae(L)):(e.consume(L),b)}function C(L){return L===93?(e.consume(L),w):b(L)}function w(L){return L===62?fe(L):L===93?(e.consume(L),w):b(L)}function k(L){return L===null||L===62?fe(L):st(L)?(o=k,ae(L)):(e.consume(L),k)}function S(L){return L===null?n(L):L===63?(e.consume(L),E):st(L)?(o=S,ae(L)):(e.consume(L),S)}function E(L){return L===62?fe(L):S(L)}function A(L){return gi(L)?(e.consume(L),_):n(L)}function _(L){return L===45||ji(L)?(e.consume(L),_):T(L)}function T(L){return st(L)?(o=T,ae(L)):Jt(L)?(e.consume(L),T):fe(L)}function $(L){return L===45||ji(L)?(e.consume(L),$):L===47||L===62||Cn(L)?R(L):n(L)}function R(L){return L===47?(e.consume(L),fe):L===58||L===95||gi(L)?(e.consume(L),O):st(L)?(o=R,ae(L)):Jt(L)?(e.consume(L),R):fe(L)}function O(L){return L===45||L===46||L===58||L===95||ji(L)?(e.consume(L),O):G(L)}function G(L){return L===61?(e.consume(L),V):st(L)?(o=G,ae(L)):Jt(L)?(e.consume(L),G):R(L)}function V(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),i=L,Z):st(L)?(o=V,ae(L)):Jt(L)?(e.consume(L),V):(e.consume(L),W)}function Z(L){return L===i?(e.consume(L),i=void 0,Y):L===null?n(L):st(L)?(o=Z,ae(L)):(e.consume(L),Z)}function W(L){return L===null||L===34||L===39||L===60||L===61||L===96?n(L):L===47||L===62||Cn(L)?R(L):(e.consume(L),W)}function Y(L){return L===47||L===62||Cn(L)?R(L):n(L)}function fe(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):n(L)}function ae(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),Q}function Q(L){return Jt(L)?Yt(e,ce,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):ce(L)}function ce(L){return e.enter("htmlTextData"),o(L)}}const cS={name:"labelEnd",tokenize:ghe,resolveTo:mhe,resolveAll:phe},dhe={tokenize:yhe},fhe={tokenize:_he},hhe={tokenize:bhe};function phe(e){let t=-1;for(;++t=3&&(c===null||st(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===i?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),Jt(c)?Yt(e,s,"whitespace")(c):s(c))}}const Oi={name:"list",tokenize:The,continuation:{tokenize:Ahe},exit:Fhe},Dhe={tokenize:$he,partial:!0},Ehe={tokenize:zhe,partial:!0};function The(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(m){const g=r.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||m===r.containerState.marker:Zx(m)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(J_,n,c)(m):c(m);if(!r.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(m)}return n(m)}function l(m){return Zx(m)&&++o<10?(e.consume(m),l):(!r.interrupt||o<2)&&(r.containerState.marker?m===r.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),c(m)):n(m)}function c(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||m,e.check(Kg,r.interrupt?n:u,e.attempt(Dhe,h,f))}function u(m){return r.containerState.initialBlankLine=!0,a++,h(m)}function f(m){return Jt(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),h):n(m)}function h(m){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function Ahe(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Kg,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Yt(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!Jt(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ehe,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Yt(e,e.attempt(Oi,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function zhe(e,t,n){const r=this;return Yt(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function Fhe(e){e.exit(this.containerState.type)}function $he(e,t,n){const r=this;return Yt(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(a){const o=r.events[r.events.length-1];return!Jt(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const W$={name:"setextUnderline",tokenize:Ohe,resolveTo:Mhe};function Mhe(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function Ohe(e,t,n){const r=this;let i;return a;function a(c){let u=r.events.length,f;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){f=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),Jt(c)?Yt(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||st(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const Nhe={tokenize:Lhe};function Lhe(e){const t=this,n=e.attempt(Kg,r,e.attempt(this.parser.constructs.flowInitial,i,Yt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(jfe,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Ihe={resolveAll:wV()},Bhe=kV("string"),Rhe=kV("text");function kV(e){return{tokenize:t,resolveAll:wV(e==="text"?Phe:void 0)};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,s);return o;function o(u){return c(u)?a(u):s(u)}function s(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),l}function l(u){return c(u)?(n.exit("data"),a(u)):(n.consume(u),l)}function c(u){if(u===null)return!0;const f=i[u];let h=-1;if(f)for(;++h-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function qhe(e,t){let n=-1;const r=[];let i;for(;++n{let{toasts:s,handlers:l}=_de(n);return F.createElement("div",{style:{position:"fixed",zIndex:9999,top:Zy,left:Zy,right:Zy,bottom:Zy,pointerEvents:"none",...a},className:o,onMouseEnter:l.startPause,onMouseLeave:l.endPause},s.map(c=>{let u=c.position||t,f=l.calculateOffset(c,{reverseOrder:e,gutter:r,defaultPosition:t}),h=Vde(u,f);return F.createElement(jde,{id:c.id,key:c.id,onHeightUpdate:l.updateHeight,className:c.visible?qde:"",style:h},c.type==="custom"?Lk(c.message,c):i?i(c):F.createElement(Pde,{toast:c,position:u}))}))},Qi=(e=>(e.docTypeError="docTypeError",e.contextNotFound="contextNotFound",e.timerNotFound="timerNotFound",e.ctxCallOutOfScope="ctxCallOutOfScope",e.createNodeInParserFail="createNodeInParserFail",e.stackOverFlow="stackOverFlow",e.parserMatchError="parserMatchError",e.serializerMatchError="serializerMatchError",e.getAtomFromSchemaFail="getAtomFromSchemaFail",e.expectDomTypeError="expectDomTypeError",e.callCommandBeforeEditorView="callCommandBeforeEditorView",e.missingRootElement="missingRootElement",e.missingNodeInSchema="missingNodeInSchema",e.missingMarkInSchema="missingMarkInSchema",e.ctxNotBind="ctxNotBind",e.missingYjsDoc="missingYjsDoc",e))(Qi||{});let $a=class extends Error{constructor(t,n){super(n),this.name="MilkdownError",this.code=t}};const Ude=(e,t)=>typeof t=="function"?"[Function]":t,up=e=>JSON.stringify(e,Ude),Wde=e=>new $a(Qi.docTypeError,`Doc type error, unsupported type: ${up(e)}`),Gde=e=>new $a(Qi.contextNotFound,`Context "${e}" not found, do you forget to inject it?`),Kde=e=>new $a(Qi.timerNotFound,`Timer "${e}" not found, do you forget to record it?`),sS=()=>new $a(Qi.ctxCallOutOfScope,"Should not call a context out of the plugin."),Yde=(...e)=>{const t=e.reduce((n,r)=>{if(!r)return n;const i=a=>Array.isArray(a)?a.map(o=>i(o)).join(", "):a.toJSON?up(a.toJSON()):a.spec?up(a.spec):a.toString();return`${n}, ${i(r)}`},"Create prosemirror node from remark failed in parser");return new $a(Qi.createNodeInParserFail,t)},sV=()=>new $a(Qi.stackOverFlow,"Stack over flow, cannot pop on an empty stack."),Zde=e=>new $a(Qi.parserMatchError,`Cannot match target parser for node: ${up(e)}.`),Xde=e=>new $a(Qi.serializerMatchError,`Cannot match target serializer for node: ${up(e)}.`),Jde=(e,t)=>new $a(Qi.getAtomFromSchemaFail,`Cannot get ${e}: ${t} from schema.`),Ma=e=>new $a(Qi.expectDomTypeError,`Expect to be a dom, but get: ${up(e)}.`),Qde=()=>new $a(Qi.callCommandBeforeEditorView,"You're trying to call a command before editor view initialized, make sure to get commandManager from ctx after editor view has been initialized"),lV=e=>new $a(Qi.missingNodeInSchema,`Missing node in schema, milkdown cannot find "${e}" in schema.`),efe=e=>new $a(Qi.missingMarkInSchema,`Missing mark in schema, milkdown cannot find "${e}" in schema.`);var cV=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},lt=(e,t,n)=>(cV(e,t,"read from private field"),n?n.call(e):t.get(e)),nr=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},ln=(e,t,n,r)=>(cV(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);let uV=class{constructor(){this.sliceMap=new Map,this.get=t=>{const n=typeof t=="string"?[...this.sliceMap.values()].find(r=>r.type.name===t):this.sliceMap.get(t.id);if(!n){const r=typeof t=="string"?t:t.name;throw Gde(r)}return n},this.remove=t=>{const n=typeof t=="string"?[...this.sliceMap.values()].find(r=>r.type.name===t):this.sliceMap.get(t.id);n&&this.sliceMap.delete(n.type.id)},this.has=t=>typeof t=="string"?[...this.sliceMap.values()].some(n=>n.type.name===t):this.sliceMap.has(t.id)}};var us,kc,G0;let tfe=class{constructor(t,n,r){nr(this,us,void 0),nr(this,kc,void 0),nr(this,G0,void 0),ln(this,us,[]),ln(this,G0,()=>{lt(this,us).forEach(i=>i(lt(this,kc)))}),this.set=i=>{ln(this,kc,i),lt(this,G0).call(this)},this.get=()=>lt(this,kc),this.update=i=>{ln(this,kc,i(lt(this,kc))),lt(this,G0).call(this)},this.type=r,ln(this,kc,n),t.set(r.id,this)}on(t){return lt(this,us).push(t),()=>{ln(this,us,lt(this,us).filter(n=>n!==t))}}once(t){const n=this.on(r=>{t(r),n()});return n}off(t){ln(this,us,lt(this,us).filter(n=>n!==t))}offAll(){ln(this,us,[])}};us=new WeakMap,kc=new WeakMap,G0=new WeakMap;let nfe=class{constructor(t,n){this.id=Symbol(`Context-${n}`),this.name=n,this._defaultValue=t,this._typeInfo=()=>{throw sS()}}create(t,n=this._defaultValue){return new tfe(t,n,this)}};const un=(e,t)=>new nfe(e,t);var G_,K_,Y_,Xf,K0,td,Y0,Z0,X0;let rfe=class{constructor(t,n,r){nr(this,G_,void 0),nr(this,K_,void 0),nr(this,Y_,void 0),nr(this,Xf,void 0),nr(this,K0,void 0),nr(this,td,void 0),nr(this,Y0,void 0),nr(this,Z0,void 0),nr(this,X0,void 0),ln(this,Xf,new Set),ln(this,K0,new Set),ln(this,td,new Map),ln(this,Y0,new Map),this.read=()=>({metadata:lt(this,G_),injectedSlices:[...lt(this,Xf)].map(i=>({name:typeof i=="string"?i:i.name,value:lt(this,Z0).call(this,i)})),consumedSlices:[...lt(this,K0)].map(i=>({name:typeof i=="string"?i:i.name,value:lt(this,Z0).call(this,i)})),recordedTimers:[...lt(this,td)].map(([i,{duration:a}])=>({name:i.name,duration:a,status:lt(this,X0).call(this,i)})),waitTimers:[...lt(this,Y0)].map(([i,{duration:a}])=>({name:i.name,duration:a,status:lt(this,X0).call(this,i)}))}),this.onRecord=i=>{lt(this,td).set(i,{start:Date.now(),duration:0})},this.onClear=i=>{lt(this,td).delete(i)},this.onDone=i=>{const a=lt(this,td).get(i);a&&(a.duration=Date.now()-a.start)},this.onWait=(i,a)=>{const o=Date.now();a.finally(()=>{lt(this,Y0).set(i,{duration:Date.now()-o})})},this.onInject=i=>{lt(this,Xf).add(i)},this.onRemove=i=>{lt(this,Xf).delete(i)},this.onUse=i=>{lt(this,K0).add(i)},ln(this,Z0,i=>lt(this,K_).get(i).get()),ln(this,X0,i=>lt(this,Y_).get(i).status),ln(this,K_,t),ln(this,Y_,n),ln(this,G_,r)}};G_=new WeakMap,K_=new WeakMap,Y_=new WeakMap,Xf=new WeakMap,K0=new WeakMap,td=new WeakMap,Y0=new WeakMap,Z0=new WeakMap,X0=new WeakMap;var wc,vc,Z_,Mo;const dV=class{constructor(t,n,r){nr(this,wc,void 0),nr(this,vc,void 0),nr(this,Z_,void 0),nr(this,Mo,void 0),this.produce=i=>i&&Object.keys(i).length?new dV(lt(this,wc),lt(this,vc),{...i}):this,this.inject=(i,a)=>{var o;const s=i.create(lt(this,wc).sliceMap);return a!=null&&s.set(a),(o=lt(this,Mo))==null||o.onInject(i),this},this.remove=i=>{var a;return lt(this,wc).remove(i),(a=lt(this,Mo))==null||a.onRemove(i),this},this.record=i=>{var a;return i.create(lt(this,vc).store),(a=lt(this,Mo))==null||a.onRecord(i),this},this.clearTimer=i=>{var a;return lt(this,vc).remove(i),(a=lt(this,Mo))==null||a.onClear(i),this},this.isInjected=i=>lt(this,wc).has(i),this.isRecorded=i=>lt(this,vc).has(i),this.use=i=>{var a;return(a=lt(this,Mo))==null||a.onUse(i),lt(this,wc).get(i)},this.get=i=>this.use(i).get(),this.set=(i,a)=>this.use(i).set(a),this.update=(i,a)=>this.use(i).update(a),this.timer=i=>lt(this,vc).get(i),this.done=i=>{var a;this.timer(i).done(),(a=lt(this,Mo))==null||a.onDone(i)},this.wait=i=>{var a;const o=this.timer(i).start();return(a=lt(this,Mo))==null||a.onWait(i,o),o},this.waitTimers=async i=>{await Promise.all(this.get(i).map(a=>this.wait(a)))},ln(this,wc,t),ln(this,vc,n),ln(this,Z_,r),r&&ln(this,Mo,new rfe(t,n,r))}get meta(){return lt(this,Z_)}get inspector(){return lt(this,Mo)}};let ife=dV;wc=new WeakMap,vc=new WeakMap,Z_=new WeakMap,Mo=new WeakMap;let afe=class{constructor(){this.store=new Map,this.get=t=>{const n=this.store.get(t.id);if(!n)throw Kde(t.name);return n},this.remove=t=>{this.store.delete(t.id)},this.has=t=>this.store.has(t.id)}};var Jf,nd,J0,xc,Q0,X_;let ofe=class{constructor(t,n){nr(this,Jf,void 0),nr(this,nd,void 0),nr(this,J0,void 0),nr(this,xc,void 0),nr(this,Q0,void 0),nr(this,X_,void 0),ln(this,Jf,null),ln(this,nd,null),ln(this,xc,"pending"),this.start=()=>(lt(this,Jf)??ln(this,Jf,new Promise((r,i)=>{ln(this,nd,a=>{a instanceof CustomEvent&&a.detail.id===lt(this,J0)&&(ln(this,xc,"resolved"),lt(this,Q0).call(this),a.stopImmediatePropagation(),r())}),lt(this,X_).call(this,()=>{lt(this,xc)==="pending"&&ln(this,xc,"rejected"),lt(this,Q0).call(this),i(new Error(`Timing ${this.type.name} timeout.`))}),ln(this,xc,"pending"),addEventListener(this.type.name,lt(this,nd))})),lt(this,Jf)),this.done=()=>{const r=new CustomEvent(this.type.name,{detail:{id:lt(this,J0)}});dispatchEvent(r)},ln(this,Q0,()=>{lt(this,nd)&&removeEventListener(this.type.name,lt(this,nd))}),ln(this,X_,r=>{setTimeout(()=>{r()},this.type.timeout)}),ln(this,J0,Symbol(n.name)),this.type=n,t.set(n.id,this)}get status(){return lt(this,xc)}};Jf=new WeakMap,nd=new WeakMap,J0=new WeakMap,xc=new WeakMap,Q0=new WeakMap,X_=new WeakMap;let sfe=class{constructor(t,n=3e3){this.create=r=>new ofe(r,this),this.id=Symbol(`Timer-${t}`),this.name=t,this.timeout=n}};const Cu=(e,t=3e3)=>new sfe(e,t),lfe={};function lS(e,t){const n=t||lfe,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return fV(e,r,i)}function fV(e,t,n){if(cfe(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return B$(e.children,t,n)}return Array.isArray(e)?B$(e,t,n):""}function B$(e,t,n){const r=[];let i=-1;for(;++ii?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(xa(e,e.length,0,t),e):t}const R$={}.hasOwnProperty;function hV(e){const t={};let n=-1;for(;++no))return;const T=t.events.length;let $=T,R,O;for(;$--;)if(t.events[$][0]==="exit"&&t.events[$][1].type==="chunkFlow"){if(R){O=t.events[$][1].end;break}R=!0}for(w(r),_=T;_S;){const A=n[E];t.containerState=A[1],A[0].exit.call(t,e)}n.length=S}function k(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function kfe(e,t,n){return Yt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Bk(e){if(e===null||Cn(e)||Yd(e))return 1;if(Ov(e))return 2}function Nv(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),h=Object.assign({},e[n][1].start);j$(f,-l),j$(h,l),o={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:h},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},s.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Qa(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=Qa(c,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),c=Qa(c,Nv(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=Qa(c,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,c=Qa(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,xa(e,r-1,n-r+3,c),n=r+c.length-u-2;break}}for(n=-1;++n0&&Jt(_)?Yt(e,k,"linePrefix",a+1)(_):k(_)}function k(_){return _===null||st(_)?e.check(q$,b,E)(_):(e.enter("codeFlowValue"),S(_))}function S(_){return _===null||st(_)?(e.exit("codeFlowValue"),k(_)):(e.consume(_),S)}function E(_){return e.exit("codeFenced"),t(_)}function A(_,T,$){let R=0;return O;function O(Y){return _.enter("lineEnding"),_.consume(Y),_.exit("lineEnding"),G}function G(Y){return _.enter("codeFencedFence"),Jt(Y)?Yt(_,V,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Y):V(Y)}function V(Y){return Y===s?(_.enter("codeFencedFenceSequence"),Z(Y)):$(Y)}function Z(Y){return Y===s?(R++,_.consume(Y),Z):R>=o?(_.exit("codeFencedFenceSequence"),Jt(Y)?Yt(_,W,"whitespace")(Y):W(Y)):$(Y)}function W(Y){return Y===null||st(Y)?(_.exit("codeFencedFence"),T(Y)):$(Y)}}}function $fe(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const G4={name:"codeIndented",tokenize:Ofe},Mfe={tokenize:Nfe,partial:!0};function Ofe(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),Yt(e,a,"linePrefix",4+1)(c)}function a(c){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?l(c):st(c)?e.attempt(Mfe,o,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||st(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),t(c)}}function Nfe(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):st(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Yt(e,a,"linePrefix",4+1)(o)}function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):st(o)?i(o):n(o)}}const Lfe={name:"codeText",tokenize:Rfe,resolve:Ife,previous:Bfe};function Ife(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function _V(e,t,n,r,i,a,o,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return f;function f(w){return w===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(w),e.exit(a),h):w===null||w===32||w===41||Ik(w)?n(w):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),b(w))}function h(w){return w===62?(e.enter(a),e.consume(w),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),m(w))}function m(w){return w===62?(e.exit("chunkString"),e.exit(s),h(w)):w===null||w===60||st(w)?n(w):(e.consume(w),w===92?g:m)}function g(w){return w===60||w===62||w===92?(e.consume(w),m):m(w)}function b(w){return!u&&(w===null||w===41||Cn(w))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(w)):u999||m===null||m===91||m===93&&!l||m===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(m):m===93?(e.exit(a),e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):st(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),f(m))}function f(m){return m===null||m===91||m===93||st(m)||s++>999?(e.exit("chunkString"),u(m)):(e.consume(m),l||(l=!Jt(m)),m===92?h:f)}function h(m){return m===91||m===92||m===93?(e.consume(m),s++,f):f(m)}}function kV(e,t,n,r,i,a){let o;return s;function s(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),o=h===40?41:h,l):n(h)}function l(h){return h===o?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(a),c(h))}function c(h){return h===o?(e.exit(a),l(o)):h===null?n(h):st(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),Yt(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(h))}function u(h){return h===o||h===null||st(h)?(e.exit("chunkString"),c(h)):(e.consume(h),h===92?f:u)}function f(h){return h===o||h===92?(e.consume(h),u):u(h)}}function Dm(e,t){let n;return r;function r(i){return st(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Jt(i)?Yt(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function Go(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Wfe={name:"definition",tokenize:Kfe},Gfe={tokenize:Yfe,partial:!0};function Kfe(e,t,n){const r=this;let i;return a;function a(m){return e.enter("definition"),o(m)}function o(m){return bV.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function s(m){return i=Go(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),l):n(m)}function l(m){return Cn(m)?Dm(e,c)(m):c(m)}function c(m){return _V(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function u(m){return e.attempt(Gfe,f,f)(m)}function f(m){return Jt(m)?Yt(e,h,"whitespace")(m):h(m)}function h(m){return m===null||st(m)?(e.exit("definition"),r.parser.defined.push(i),t(m)):n(m)}}function Yfe(e,t,n){return r;function r(s){return Cn(s)?Dm(e,i)(s):n(s)}function i(s){return kV(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return Jt(s)?Yt(e,o,"whitespace")(s):o(s)}function o(s){return s===null||st(s)?t(s):n(s)}}const Zfe={name:"hardBreakEscape",tokenize:Xfe};function Xfe(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return st(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const Jfe={name:"headingAtx",tokenize:ehe,resolve:Qfe};function Qfe(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},xa(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function ehe(e,t,n){let r=0;return i;function i(u){return e.enter("atxHeading"),a(u)}function a(u){return e.enter("atxHeadingSequence"),o(u)}function o(u){return u===35&&r++<6?(e.consume(u),o):u===null||Cn(u)?(e.exit("atxHeadingSequence"),s(u)):n(u)}function s(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||st(u)?(e.exit("atxHeading"),t(u)):Jt(u)?Yt(e,s,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function l(u){return u===35?(e.consume(u),l):(e.exit("atxHeadingSequence"),s(u))}function c(u){return u===null||u===35||Cn(u)?(e.exit("atxHeadingText"),s(u)):(e.consume(u),c)}}const the=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],U$=["pre","script","style","textarea"],nhe={name:"htmlFlow",tokenize:ohe,resolveTo:ahe,concrete:!0},rhe={tokenize:lhe,partial:!0},ihe={tokenize:she,partial:!0};function ahe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function ohe(e,t,n){const r=this;let i,a,o,s,l;return c;function c(I){return u(I)}function u(I){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(I),f}function f(I){return I===33?(e.consume(I),h):I===47?(e.consume(I),a=!0,b):I===63?(e.consume(I),i=3,r.interrupt?t:L):gi(I)?(e.consume(I),o=String.fromCharCode(I),C):n(I)}function h(I){return I===45?(e.consume(I),i=2,m):I===91?(e.consume(I),i=5,s=0,g):gi(I)?(e.consume(I),i=4,r.interrupt?t:L):n(I)}function m(I){return I===45?(e.consume(I),r.interrupt?t:L):n(I)}function g(I){const be="CDATA[";return I===be.charCodeAt(s++)?(e.consume(I),s===be.length?r.interrupt?t:V:g):n(I)}function b(I){return gi(I)?(e.consume(I),o=String.fromCharCode(I),C):n(I)}function C(I){if(I===null||I===47||I===62||Cn(I)){const be=I===47,ze=o.toLowerCase();return!be&&!a&&U$.includes(ze)?(i=1,r.interrupt?t(I):V(I)):the.includes(o.toLowerCase())?(i=6,be?(e.consume(I),w):r.interrupt?t(I):V(I)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(I):a?k(I):S(I))}return I===45||ji(I)?(e.consume(I),o+=String.fromCharCode(I),C):n(I)}function w(I){return I===62?(e.consume(I),r.interrupt?t:V):n(I)}function k(I){return Jt(I)?(e.consume(I),k):O(I)}function S(I){return I===47?(e.consume(I),O):I===58||I===95||gi(I)?(e.consume(I),E):Jt(I)?(e.consume(I),S):O(I)}function E(I){return I===45||I===46||I===58||I===95||ji(I)?(e.consume(I),E):A(I)}function A(I){return I===61?(e.consume(I),_):Jt(I)?(e.consume(I),A):S(I)}function _(I){return I===null||I===60||I===61||I===62||I===96?n(I):I===34||I===39?(e.consume(I),l=I,T):Jt(I)?(e.consume(I),_):$(I)}function T(I){return I===l?(e.consume(I),l=null,R):I===null||st(I)?n(I):(e.consume(I),T)}function $(I){return I===null||I===34||I===39||I===47||I===60||I===61||I===62||I===96||Cn(I)?A(I):(e.consume(I),$)}function R(I){return I===47||I===62||Jt(I)?S(I):n(I)}function O(I){return I===62?(e.consume(I),G):n(I)}function G(I){return I===null||st(I)?V(I):Jt(I)?(e.consume(I),G):n(I)}function V(I){return I===45&&i===2?(e.consume(I),fe):I===60&&i===1?(e.consume(I),ae):I===62&&i===4?(e.consume(I),de):I===63&&i===3?(e.consume(I),L):I===93&&i===5?(e.consume(I),ce):st(I)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(rhe,ue,Z)(I)):I===null||st(I)?(e.exit("htmlFlowData"),Z(I)):(e.consume(I),V)}function Z(I){return e.check(ihe,W,ue)(I)}function W(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),Y}function Y(I){return I===null||st(I)?Z(I):(e.enter("htmlFlowData"),V(I))}function fe(I){return I===45?(e.consume(I),L):V(I)}function ae(I){return I===47?(e.consume(I),o="",Q):V(I)}function Q(I){if(I===62){const be=o.toLowerCase();return U$.includes(be)?(e.consume(I),de):V(I)}return gi(I)&&o.length<8?(e.consume(I),o+=String.fromCharCode(I),Q):V(I)}function ce(I){return I===93?(e.consume(I),L):V(I)}function L(I){return I===62?(e.consume(I),de):I===45&&i===2?(e.consume(I),L):V(I)}function de(I){return I===null||st(I)?(e.exit("htmlFlowData"),ue(I)):(e.consume(I),de)}function ue(I){return e.exit("htmlFlow"),t(I)}}function she(e,t,n){const r=this;return i;function i(o){return st(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function lhe(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Kg,t,n)}}const che={name:"htmlText",tokenize:uhe};function uhe(e,t,n){const r=this;let i,a,o;return s;function s(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),l}function l(L){return L===33?(e.consume(L),c):L===47?(e.consume(L),A):L===63?(e.consume(L),S):gi(L)?(e.consume(L),$):n(L)}function c(L){return L===45?(e.consume(L),u):L===91?(e.consume(L),a=0,g):gi(L)?(e.consume(L),k):n(L)}function u(L){return L===45?(e.consume(L),m):n(L)}function f(L){return L===null?n(L):L===45?(e.consume(L),h):st(L)?(o=f,ae(L)):(e.consume(L),f)}function h(L){return L===45?(e.consume(L),m):f(L)}function m(L){return L===62?fe(L):L===45?h(L):f(L)}function g(L){const de="CDATA[";return L===de.charCodeAt(a++)?(e.consume(L),a===de.length?b:g):n(L)}function b(L){return L===null?n(L):L===93?(e.consume(L),C):st(L)?(o=b,ae(L)):(e.consume(L),b)}function C(L){return L===93?(e.consume(L),w):b(L)}function w(L){return L===62?fe(L):L===93?(e.consume(L),w):b(L)}function k(L){return L===null||L===62?fe(L):st(L)?(o=k,ae(L)):(e.consume(L),k)}function S(L){return L===null?n(L):L===63?(e.consume(L),E):st(L)?(o=S,ae(L)):(e.consume(L),S)}function E(L){return L===62?fe(L):S(L)}function A(L){return gi(L)?(e.consume(L),_):n(L)}function _(L){return L===45||ji(L)?(e.consume(L),_):T(L)}function T(L){return st(L)?(o=T,ae(L)):Jt(L)?(e.consume(L),T):fe(L)}function $(L){return L===45||ji(L)?(e.consume(L),$):L===47||L===62||Cn(L)?R(L):n(L)}function R(L){return L===47?(e.consume(L),fe):L===58||L===95||gi(L)?(e.consume(L),O):st(L)?(o=R,ae(L)):Jt(L)?(e.consume(L),R):fe(L)}function O(L){return L===45||L===46||L===58||L===95||ji(L)?(e.consume(L),O):G(L)}function G(L){return L===61?(e.consume(L),V):st(L)?(o=G,ae(L)):Jt(L)?(e.consume(L),G):R(L)}function V(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),i=L,Z):st(L)?(o=V,ae(L)):Jt(L)?(e.consume(L),V):(e.consume(L),W)}function Z(L){return L===i?(e.consume(L),i=void 0,Y):L===null?n(L):st(L)?(o=Z,ae(L)):(e.consume(L),Z)}function W(L){return L===null||L===34||L===39||L===60||L===61||L===96?n(L):L===47||L===62||Cn(L)?R(L):(e.consume(L),W)}function Y(L){return L===47||L===62||Cn(L)?R(L):n(L)}function fe(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):n(L)}function ae(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),Q}function Q(L){return Jt(L)?Yt(e,ce,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):ce(L)}function ce(L){return e.enter("htmlTextData"),o(L)}}const cS={name:"labelEnd",tokenize:ghe,resolveTo:mhe,resolveAll:phe},dhe={tokenize:yhe},fhe={tokenize:_he},hhe={tokenize:bhe};function phe(e){let t=-1;for(;++t=3&&(c===null||st(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===i?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),Jt(c)?Yt(e,s,"whitespace")(c):s(c))}}const Oi={name:"list",tokenize:The,continuation:{tokenize:Ahe},exit:Fhe},Dhe={tokenize:$he,partial:!0},Ehe={tokenize:zhe,partial:!0};function The(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(m){const g=r.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||m===r.containerState.marker:Zx(m)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(J_,n,c)(m):c(m);if(!r.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(m)}return n(m)}function l(m){return Zx(m)&&++o<10?(e.consume(m),l):(!r.interrupt||o<2)&&(r.containerState.marker?m===r.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),c(m)):n(m)}function c(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||m,e.check(Kg,r.interrupt?n:u,e.attempt(Dhe,h,f))}function u(m){return r.containerState.initialBlankLine=!0,a++,h(m)}function f(m){return Jt(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),h):n(m)}function h(m){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function Ahe(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Kg,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Yt(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!Jt(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ehe,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Yt(e,e.attempt(Oi,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function zhe(e,t,n){const r=this;return Yt(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function Fhe(e){e.exit(this.containerState.type)}function $he(e,t,n){const r=this;return Yt(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(a){const o=r.events[r.events.length-1];return!Jt(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const W$={name:"setextUnderline",tokenize:Ohe,resolveTo:Mhe};function Mhe(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function Ohe(e,t,n){const r=this;let i;return a;function a(c){let u=r.events.length,f;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){f=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),Jt(c)?Yt(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||st(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const Nhe={tokenize:Lhe};function Lhe(e){const t=this,n=e.attempt(Kg,r,e.attempt(this.parser.constructs.flowInitial,i,Yt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(jfe,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Ihe={resolveAll:vV()},Bhe=wV("string"),Rhe=wV("text");function wV(e){return{tokenize:t,resolveAll:vV(e==="text"?Phe:void 0)};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,s);return o;function o(u){return c(u)?a(u):s(u)}function s(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),l}function l(u){return c(u)?(n.exit("data"),a(u)):(n.consume(u),l)}function c(u){if(u===null)return!0;const f=i[u];let h=-1;if(f)for(;++h-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function qhe(e,t){let n=-1;const r=[];let i;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCharCode(n)}const rpe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function xV(e){return e.replace(rpe,ipe)}function ipe(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return vV(n.slice(a?2:1),a?16:10)}return mg(n)||e}function Em(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?K$(e.position):"start"in e||"end"in e?K$(e):"line"in e||"column"in e?Jx(e):""}function Jx(e){return Y$(e&&e.line)+":"+Y$(e&&e.column)}function K$(e){return Jx(e&&e.start)+"-"+Jx(e&&e.end)}function Y$(e){return e&&typeof e=="number"?e:1}const CV={}.hasOwnProperty,ape=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),ope(n)(npe(epe(n).document().write(tpe()(e,t,!0))))};function ope(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(xe),autolinkProtocol:G,autolinkEmail:G,atxHeading:s(K),blockQuote:s(Ge),characterEscape:G,characterReference:G,codeFenced:s(Xe),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:s(Xe,l),codeText:s(Kt,l),codeTextData:G,data:G,codeFlowValue:G,definition:s(Et),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:s(mt),hardBreakEscape:s(ie),hardBreakTrailing:s(ie),htmlFlow:s(he,l),htmlFlowData:G,htmlText:s(he,l),htmlTextData:G,image:s(Ie),label:l,link:s(xe),listItem:s(Be),listItemValue:g,listOrdered:s(ke,m),listUnordered:s(ke),paragraph:s(dt),reference:ze,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:s(K),strong:s(Re),thematicBreak:s(Ir)},exit:{atxHeading:u(),atxHeadingSequence:T,autolink:u(),autolinkEmail:Pe,autolinkProtocol:We,blockQuote:u(),characterEscapeValue:V,characterReferenceMarkerHexadecimal:Ve,characterReferenceMarkerNumeric:Ve,characterReferenceValue:ye,codeFenced:u(k),codeFencedFence:w,codeFencedFenceInfo:b,codeFencedFenceMeta:C,codeFlowValue:V,codeIndented:u(S),codeText:u(ae),codeTextData:V,data:V,definition:u(),definitionDestinationString:_,definitionLabelString:E,definitionTitleString:A,emphasis:u(),hardBreakEscape:u(W),hardBreakTrailing:u(W),htmlFlow:u(Y),htmlFlowData:V,htmlText:u(fe),htmlTextData:V,image:u(ce),label:de,labelText:L,lineEnding:Z,link:u(Q),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:J,resourceDestinationString:ue,resourceTitleString:I,resource:be,setextHeading:u(O),setextHeadingLineSequence:R,setextHeadingText:$,strong:u(),thematicBreak:u()}};SV(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(pe){let Ce={type:"root",children:[]};const it={stack:[Ce],tokenStack:[],config:t,enter:c,exit:f,buffer:l,resume:h,setData:a,getData:o},It=[];let Tt=-1;for(;++Tt0){const vn=it.tokenStack[it.tokenStack.length-1];(vn[1]||Z$).call(it,void 0,vn[0])}for(Ce.position={start:gc(pe.length>0?pe[0][1].start:{line:1,column:1,offset:0}),end:gc(pe.length>0?pe[pe.length-2][1].end:{line:1,column:1,offset:0})},Tt=-1;++Tt{const r=this.data("settings");return ape(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}const X$={}.hasOwnProperty;function lpe(e,t){const n=t||{};function r(i,...a){let o=r.invalid;const s=r.handlers;if(i&&X$.call(i,e)){const l=String(i[e]);o=X$.call(s,l)?s[l]:r.unknown}if(o)return o.call(this,i,...a)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}function Q_(e,t){let n=-1,r;if(t.extensions)for(;++n "),a.shift(2);const o=n.indentLines(n.containerFlow(e,a.current()),upe);return i(),o}function upe(e,t,n){return">"+(n?"":" ")+e}function DV(e,t){return J$(e,t.inConstruct,!0)&&!J$(e,t.notInConstruct,!1)}function J$(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++ro&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function e8(e,t){return!!(!t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function dpe(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function fpe(e,t,n,r){const i=dpe(n),a=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(e8(e,n)){const f=n.enter("codeIndented"),h=n.indentLines(a,hpe);return f(),h}const s=n.createTracker(r),l=i.repeat(Math.max(EV(a,i)+1,3)),c=n.enter("codeFenced");let u=s.move(l);if(e.lang){const f=n.enter(`codeFencedLang${o}`);u+=s.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),f()}if(e.lang&&e.meta){const f=n.enter(`codeFencedMeta${o}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{before:u,after:` +`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join("")}const Hhe={[42]:Oi,[43]:Oi,[45]:Oi,[48]:Oi,[49]:Oi,[50]:Oi,[51]:Oi,[52]:Oi,[53]:Oi,[54]:Oi,[55]:Oi,[56]:Oi,[57]:Oi,[62]:pV},Uhe={[91]:Wfe},Whe={[-2]:G4,[-1]:G4,[32]:G4},Ghe={[35]:Jfe,[42]:J_,[45]:[W$,J_],[60]:nhe,[61]:W$,[95]:J_,[96]:H$,[126]:H$},Khe={[38]:gV,[92]:mV},Yhe={[-5]:K4,[-4]:K4,[-3]:K4,[33]:khe,[38]:gV,[42]:Xx,[60]:[xfe,che],[91]:vhe,[92]:[Zfe,mV],[93]:cS,[95]:Xx,[96]:Lfe},Zhe={null:[Xx,Ihe]},Xhe={null:[42,95]},Jhe={null:[]},Qhe=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Xhe,contentInitial:Uhe,disable:Jhe,document:Hhe,flow:Ghe,flowInitial:Whe,insideSpan:Zhe,string:Khe,text:Yhe},Symbol.toStringTag,{value:"Module"}));function epe(e){const n=hV([Qhe,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:n,content:i(gfe),document:i(_fe),flow:i(Nhe),string:i(Bhe),text:i(Rhe)};return r;function i(a){return o;function o(s){return jhe(r,a,s)}}}const G$=/[\0\t\n\r]/g;function tpe(){let e=1,t="",n=!0,r;return i;function i(a,o,s){const l=[];let c,u,f,h,m;for(a=t+a.toString(o),f=0,t="",n&&(a.charCodeAt(0)===65279&&f++,n=void 0);f13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCharCode(n)}const rpe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function CV(e){return e.replace(rpe,ipe)}function ipe(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return xV(n.slice(a?2:1),a?16:10)}return mg(n)||e}function Em(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?K$(e.position):"start"in e||"end"in e?K$(e):"line"in e||"column"in e?Jx(e):""}function Jx(e){return Y$(e&&e.line)+":"+Y$(e&&e.column)}function K$(e){return Jx(e&&e.start)+"-"+Jx(e&&e.end)}function Y$(e){return e&&typeof e=="number"?e:1}const SV={}.hasOwnProperty,ape=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),ope(n)(npe(epe(n).document().write(tpe()(e,t,!0))))};function ope(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(xe),autolinkProtocol:G,autolinkEmail:G,atxHeading:s(K),blockQuote:s(Ge),characterEscape:G,characterReference:G,codeFenced:s(Xe),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:s(Xe,l),codeText:s(Kt,l),codeTextData:G,data:G,codeFlowValue:G,definition:s(Et),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:s(mt),hardBreakEscape:s(ie),hardBreakTrailing:s(ie),htmlFlow:s(he,l),htmlFlowData:G,htmlText:s(he,l),htmlTextData:G,image:s(Ie),label:l,link:s(xe),listItem:s(Be),listItemValue:g,listOrdered:s(ke,m),listUnordered:s(ke),paragraph:s(dt),reference:ze,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:s(K),strong:s(Re),thematicBreak:s(Ir)},exit:{atxHeading:u(),atxHeadingSequence:T,autolink:u(),autolinkEmail:Pe,autolinkProtocol:We,blockQuote:u(),characterEscapeValue:V,characterReferenceMarkerHexadecimal:Ve,characterReferenceMarkerNumeric:Ve,characterReferenceValue:ye,codeFenced:u(k),codeFencedFence:w,codeFencedFenceInfo:b,codeFencedFenceMeta:C,codeFlowValue:V,codeIndented:u(S),codeText:u(ae),codeTextData:V,data:V,definition:u(),definitionDestinationString:_,definitionLabelString:E,definitionTitleString:A,emphasis:u(),hardBreakEscape:u(W),hardBreakTrailing:u(W),htmlFlow:u(Y),htmlFlowData:V,htmlText:u(fe),htmlTextData:V,image:u(ce),label:de,labelText:L,lineEnding:Z,link:u(Q),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:J,resourceDestinationString:ue,resourceTitleString:I,resource:be,setextHeading:u(O),setextHeadingLineSequence:R,setextHeadingText:$,strong:u(),thematicBreak:u()}};DV(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(pe){let Ce={type:"root",children:[]};const it={stack:[Ce],tokenStack:[],config:t,enter:c,exit:f,buffer:l,resume:h,setData:a,getData:o},It=[];let Tt=-1;for(;++Tt0){const vn=it.tokenStack[it.tokenStack.length-1];(vn[1]||Z$).call(it,void 0,vn[0])}for(Ce.position={start:gc(pe.length>0?pe[0][1].start:{line:1,column:1,offset:0}),end:gc(pe.length>0?pe[pe.length-2][1].end:{line:1,column:1,offset:0})},Tt=-1;++Tt{const r=this.data("settings");return ape(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}const X$={}.hasOwnProperty;function lpe(e,t){const n=t||{};function r(i,...a){let o=r.invalid;const s=r.handlers;if(i&&X$.call(i,e)){const l=String(i[e]);o=X$.call(s,l)?s[l]:r.unknown}if(o)return o.call(this,i,...a)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}function Q_(e,t){let n=-1,r;if(t.extensions)for(;++n "),a.shift(2);const o=n.indentLines(n.containerFlow(e,a.current()),upe);return i(),o}function upe(e,t,n){return">"+(n?"":" ")+e}function EV(e,t){return J$(e,t.inConstruct,!0)&&!J$(e,t.notInConstruct,!1)}function J$(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++ro&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function e8(e,t){return!!(!t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function dpe(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function fpe(e,t,n,r){const i=dpe(n),a=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(e8(e,n)){const f=n.enter("codeIndented"),h=n.indentLines(a,hpe);return f(),h}const s=n.createTracker(r),l=i.repeat(Math.max(TV(a,i)+1,3)),c=n.enter("codeFenced");let u=s.move(l);if(e.lang){const f=n.enter(`codeFencedLang${o}`);u+=s.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),f()}if(e.lang&&e.meta){const f=n.enter(`codeFencedMeta${o}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{before:u,after:` `,encode:["`"],...s.current()})),f()}return u+=s.move(` `),a&&(u+=s.move(a+` `)),u+=s.move(l),c(),u}function hpe(e,t,n){return(n?"":" ")+e}function uS(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function ppe(e,t,n,r){const i=uS(n),a=i==='"'?"Quote":"Apostrophe",o=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":` -`,...l.current()}))),s(),e.title&&(s=n.enter(`title${a}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),o(),c}function mpe(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}TV.peek=gpe;function TV(e,t,n,r){const i=mpe(n),a=n.enter("emphasis"),o=n.createTracker(r);let s=o.move(i);return s+=o.move(n.containerPhrasing(e,{before:s,after:i,...o.current()})),s+=o.move(i),a(),s}function gpe(e,t,n){return n.options.emphasis||"*"}const Lv=function(e){if(e==null)return kpe;if(typeof e=="string")return bpe(e);if(typeof e=="object")return Array.isArray(e)?ype(e):_pe(e);if(typeof e=="function")return Iv(e);throw new Error("Expected function, string, or object as test")};function ype(e){const t=[];let n=-1;for(;++n":""))+")"})}return f;function f(){let h=[],m,g,b;if((!t||i(s,l,c[c.length-1]||null))&&(h=vpe(n(s,c)),h[0]===t8))return h;if(s.children&&h[0]!==n8)for(g=(r?s.children.length:-1)+a,b=c.concat(s);g>-1&&g{if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,t8}),!!((!e.depth||e.depth<3)&&lS(e)&&(t.options.setext||n))}function xpe(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(zV(e,n)){const u=n.enter("headingSetext"),f=n.enter("phrasing"),h=n.containerPhrasing(e,{...a.current(),before:` +`,...l.current()}))),s(),e.title&&(s=n.enter(`title${a}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),o(),c}function mpe(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}AV.peek=gpe;function AV(e,t,n,r){const i=mpe(n),a=n.enter("emphasis"),o=n.createTracker(r);let s=o.move(i);return s+=o.move(n.containerPhrasing(e,{before:s,after:i,...o.current()})),s+=o.move(i),a(),s}function gpe(e,t,n){return n.options.emphasis||"*"}const Lv=function(e){if(e==null)return kpe;if(typeof e=="string")return bpe(e);if(typeof e=="object")return Array.isArray(e)?ype(e):_pe(e);if(typeof e=="function")return Iv(e);throw new Error("Expected function, string, or object as test")};function ype(e){const t=[];let n=-1;for(;++n":""))+")"})}return f;function f(){let h=[],m,g,b;if((!t||i(s,l,c[c.length-1]||null))&&(h=vpe(n(s,c)),h[0]===t8))return h;if(s.children&&h[0]!==n8)for(g=(r?s.children.length:-1)+a,b=c.concat(s);g>-1&&g{if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,t8}),!!((!e.depth||e.depth<3)&&lS(e)&&(t.options.setext||n))}function xpe(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(FV(e,n)){const u=n.enter("headingSetext"),f=n.enter("phrasing"),h=n.containerPhrasing(e,{...a.current(),before:` `,after:` `});return f(),u(),h+` `+(i===1?"=":"-").repeat(h.length-(Math.max(h.lastIndexOf("\r"),h.lastIndexOf(` `))+1))}const o="#".repeat(i),s=n.enter("headingAtx"),l=n.enter("phrasing");a.move(o+" ");let c=n.containerPhrasing(e,{before:"# ",after:` -`,...a.current()});return/^[\t ]/.test(c)&&(c="&#x"+c.charCodeAt(0).toString(16).toUpperCase()+";"+c.slice(1)),c=c?o+" "+c:o,n.options.closeAtx&&(c+=" "+o),l(),s(),c}FV.peek=Cpe;function FV(e){return e.value||""}function Cpe(){return"<"}$V.peek=Spe;function $V(e,t,n,r){const i=uS(n),a=i==='"'?"Quote":"Apostrophe",o=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${a}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),c+=l.move(")"),o(),c}function Spe(){return"!"}MV.peek=Dpe;function MV(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let o=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();const u=n.stack;n.stack=[],o=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=u,a(),i==="full"||!c||c!==f?l+=s.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function Dpe(){return"!"}function dS(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}fS.peek=Epe;function fS(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a\u007F]/.test(e.url))}NV.peek=Tpe;function NV(e,t,n,r){const i=uS(n),a=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let s,l;if(OV(e,n)){const u=n.stack;n.stack=[],s=n.enter("autolink");let f=o.move("<");return f+=o.move(n.containerPhrasing(e,{before:f,after:">",...o.current()})),f+=o.move(">"),s(),n.stack=u,f}s=n.enter("link"),l=n.enter("label");let c=o.move("[");return c+=o.move(n.containerPhrasing(e,{before:c,after:"](",...o.current()})),c+=o.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(n.safe(e.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(l=n.enter("destinationRaw"),c+=o.move(n.safe(e.url,{before:c,after:e.title?" ":")",...o.current()}))),l(),e.title&&(l=n.enter(`title${a}`),c+=o.move(" "+i),c+=o.move(n.safe(e.title,{before:c,after:i,...o.current()})),c+=o.move(i),l()),c+=o.move(")"),s(),c}function Tpe(e,t,n){return OV(e,n)?"<":"["}LV.peek=Ape;function LV(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let o=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();const u=n.stack;n.stack=[],o=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=u,a(),i==="full"||!c||c!==f?l+=s.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function Ape(){return"["}function hS(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function zpe(e){const t=hS(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function IV(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Fpe(e){const t=IV(e),n=e.options.bulletOrderedOther;if(!n)return t==="."?")":".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrderedOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bulletOrdered` (`"+t+"`) and `bulletOrderedOther` (`"+n+"`) to be different");return n}function BV(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function $pe(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let o=e.ordered?IV(n):hS(n);const s=e.ordered?Fpe(n):zpe(n),l=n.bulletLastUsed;let c=!1;if(t&&(e.ordered?n.options.bulletOrderedOther:n.options.bulletOther)&&l&&o===l&&(c=!0),!e.ordered){const f=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),BV(n)===o&&f){let h=-1;for(;++h-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=n.createTracker(r);s.move(a+" ".repeat(o-a.length)),s.shift(o);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),u);return l(),c;function u(f,h,m){return h?(m?"":" ".repeat(o))+f:(m?a:a+" ".repeat(o-a.length))+f}}function Ope(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),o=n.containerPhrasing(e,r);return a(),i(),o}const Npe=Lv(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function Lpe(e,t,n,r){return(e.children.some(o=>Npe(o))?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Ipe(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}PV.peek=Bpe;function PV(e,t,n,r){const i=Ipe(n),a=n.enter("strong"),o=n.createTracker(r);let s=o.move(i+i);return s+=o.move(n.containerPhrasing(e,{before:s,after:i,...o.current()})),s+=o.move(i+i),a(),s}function Bpe(e,t,n){return n.options.strong||"*"}function Rpe(e,t,n,r){return n.safe(e.value,r)}function Ppe(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function jpe(e,t,n){const r=(BV(n)+(n.options.ruleSpaces?" ":"")).repeat(Ppe(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Vpe={blockquote:cpe,break:Q$,code:fpe,definition:ppe,emphasis:TV,hardBreak:Q$,heading:xpe,html:FV,image:$V,imageReference:MV,inlineCode:fS,link:NV,linkReference:LV,list:$pe,listItem:RV,paragraph:Ope,root:Lpe,strong:PV,text:Rpe,thematicBreak:jpe},qpe=[Hpe];function Hpe(e,t,n,r){if(t.type==="code"&&e8(t,r)&&(e.type==="list"||e.type===t.type&&e8(e,r))||e.type==="list"&&e.type===t.type&&!!e.ordered==!!t.ordered&&!(e.ordered?r.options.bulletOrderedOther:r.options.bulletOther))return!1;if("spread"in n&&typeof n.spread=="boolean")return e.type==="paragraph"&&(e.type===t.type||t.type==="definition"||t.type==="heading"&&zV(t,r))?void 0:n.spread?1:0}const Uu=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],Upe=[{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:` +`,...a.current()});return/^[\t ]/.test(c)&&(c="&#x"+c.charCodeAt(0).toString(16).toUpperCase()+";"+c.slice(1)),c=c?o+" "+c:o,n.options.closeAtx&&(c+=" "+o),l(),s(),c}$V.peek=Cpe;function $V(e){return e.value||""}function Cpe(){return"<"}MV.peek=Spe;function MV(e,t,n,r){const i=uS(n),a=i==='"'?"Quote":"Apostrophe",o=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${a}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),c+=l.move(")"),o(),c}function Spe(){return"!"}OV.peek=Dpe;function OV(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let o=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();const u=n.stack;n.stack=[],o=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=u,a(),i==="full"||!c||c!==f?l+=s.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function Dpe(){return"!"}function dS(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}fS.peek=Epe;function fS(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a\u007F]/.test(e.url))}LV.peek=Tpe;function LV(e,t,n,r){const i=uS(n),a=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let s,l;if(NV(e,n)){const u=n.stack;n.stack=[],s=n.enter("autolink");let f=o.move("<");return f+=o.move(n.containerPhrasing(e,{before:f,after:">",...o.current()})),f+=o.move(">"),s(),n.stack=u,f}s=n.enter("link"),l=n.enter("label");let c=o.move("[");return c+=o.move(n.containerPhrasing(e,{before:c,after:"](",...o.current()})),c+=o.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(n.safe(e.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(l=n.enter("destinationRaw"),c+=o.move(n.safe(e.url,{before:c,after:e.title?" ":")",...o.current()}))),l(),e.title&&(l=n.enter(`title${a}`),c+=o.move(" "+i),c+=o.move(n.safe(e.title,{before:c,after:i,...o.current()})),c+=o.move(i),l()),c+=o.move(")"),s(),c}function Tpe(e,t,n){return NV(e,n)?"<":"["}IV.peek=Ape;function IV(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let o=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();const u=n.stack;n.stack=[],o=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=u,a(),i==="full"||!c||c!==f?l+=s.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function Ape(){return"["}function hS(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function zpe(e){const t=hS(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function BV(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Fpe(e){const t=BV(e),n=e.options.bulletOrderedOther;if(!n)return t==="."?")":".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrderedOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bulletOrdered` (`"+t+"`) and `bulletOrderedOther` (`"+n+"`) to be different");return n}function RV(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function $pe(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let o=e.ordered?BV(n):hS(n);const s=e.ordered?Fpe(n):zpe(n),l=n.bulletLastUsed;let c=!1;if(t&&(e.ordered?n.options.bulletOrderedOther:n.options.bulletOther)&&l&&o===l&&(c=!0),!e.ordered){const f=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),RV(n)===o&&f){let h=-1;for(;++h-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=n.createTracker(r);s.move(a+" ".repeat(o-a.length)),s.shift(o);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),u);return l(),c;function u(f,h,m){return h?(m?"":" ".repeat(o))+f:(m?a:a+" ".repeat(o-a.length))+f}}function Ope(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),o=n.containerPhrasing(e,r);return a(),i(),o}const Npe=Lv(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function Lpe(e,t,n,r){return(e.children.some(o=>Npe(o))?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Ipe(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}jV.peek=Bpe;function jV(e,t,n,r){const i=Ipe(n),a=n.enter("strong"),o=n.createTracker(r);let s=o.move(i+i);return s+=o.move(n.containerPhrasing(e,{before:s,after:i,...o.current()})),s+=o.move(i+i),a(),s}function Bpe(e,t,n){return n.options.strong||"*"}function Rpe(e,t,n,r){return n.safe(e.value,r)}function Ppe(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function jpe(e,t,n){const r=(RV(n)+(n.options.ruleSpaces?" ":"")).repeat(Ppe(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Vpe={blockquote:cpe,break:Q$,code:fpe,definition:ppe,emphasis:AV,hardBreak:Q$,heading:xpe,html:$V,image:MV,imageReference:OV,inlineCode:fS,link:LV,linkReference:IV,list:$pe,listItem:PV,paragraph:Ope,root:Lpe,strong:jV,text:Rpe,thematicBreak:jpe},qpe=[Hpe];function Hpe(e,t,n,r){if(t.type==="code"&&e8(t,r)&&(e.type==="list"||e.type===t.type&&e8(e,r))||e.type==="list"&&e.type===t.type&&!!e.ordered==!!t.ordered&&!(e.ordered?r.options.bulletOrderedOther:r.options.bulletOther))return!1;if("spread"in n&&typeof n.spread=="boolean")return e.type==="paragraph"&&(e.type===t.type||t.type==="definition"||t.type==="heading"&&FV(t,r))?void 0:n.spread?1:0}const Uu=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],Upe=[{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:` `,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:Uu},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r ]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:Uu},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ \r *])`},{character:"*",inConstruct:"phrasing",notInConstruct:Uu},{atBreak:!0,character:"+",after:`(?:[ \r ])`},{atBreak:!0,character:"-",after:`(?:[ \r -])`},{atBreak:!0,before:"\\d+",character:".",after:`(?:[ \r -]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:Uu},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:Uu},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:Uu},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:Uu},{atBreak:!0,character:"~"}];function pS(e){return e.label||!e.identifier?e.label||"":xV(e.identifier)}function mS(e,t,n){const r=t.indexStack,i=e.children||[],a=[];let o=-1,s=n.before;r.push(-1);let l=t.createTracker(n);for(;++o0&&(s==="\r"||s===` -`)&&c.type==="html"&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),s=" ",l=t.createTracker(n),l.move(a.join(""))),a.push(l.move(t.handle(c,e,t,{...l.current(),before:s,after:u}))),s=a[a.length-1].slice(-1)}return r.pop(),a.join("")}function jV(e,t,n){const r=t.indexStack,i=e.children||[],a=t.createTracker(n),o=[];let s=-1;for(r.push(-1);++s"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:Uu},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:Uu},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:Uu},{atBreak:!0,character:"~"}];function pS(e){return e.label||!e.identifier?e.label||"":CV(e.identifier)}function mS(e,t,n){const r=t.indexStack,i=e.children||[],a=[];let o=-1,s=n.before;r.push(-1);let l=t.createTracker(n);for(;++o0&&(s==="\r"||s===` +`)&&c.type==="html"&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),s=" ",l=t.createTracker(n),l.move(a.join(""))),a.push(l.move(t.handle(c,e,t,{...l.current(),before:s,after:u}))),s=a[a.length-1].slice(-1)}return r.pop(),a.join("")}function VV(e,t,n){const r=t.indexStack,i=e.children||[],a=t.createTracker(n),o=[];let s=-1;for(r.push(-1);++s=c||u+1=c||u+1{const r=this.data("settings");return Ype(n,Object.assign({},r,e,{extensions:this.data("toMarkdownExtensions")||[]}))}})}function tM(e){if(e)throw e}/*! +`),r;function i(a){return n.stack.push(a),o;function o(){n.stack.pop()}}}function Zpe(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function Xpe(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}function Jpe(e,t){if(e.type==="definition"&&e.type===t.type)return 0}function Qpe(e,t){return mS(e,this,t)}function e0e(e,t){return VV(e,this,t)}function t0e(e,t){return Bv(this,e,t)}function r8(e){Object.assign(this,{Compiler:n=>{const r=this.data("settings");return Ype(n,Object.assign({},r,e,{extensions:this.data("toMarkdownExtensions")||[]}))}})}function tM(e){if(e)throw e}/*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh * @license MIT - */var n0e=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};const qV=Qo(n0e);var eb=Object.prototype.hasOwnProperty,HV=Object.prototype.toString,nM=Object.defineProperty,rM=Object.getOwnPropertyDescriptor,iM=function(t){return typeof Array.isArray=="function"?Array.isArray(t):HV.call(t)==="[object Array]"},aM=function(t){if(!t||HV.call(t)!=="[object Object]")return!1;var n=eb.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&eb.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||eb.call(t,i)},oM=function(t,n){nM&&n.name==="__proto__"?nM(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},sM=function(t,n){if(n==="__proto__")if(eb.call(t,n)){if(rM)return rM(t,n).value}else return;return t[n]},r0e=function e(){var t,n,r,i,a,o,s=arguments[0],l=1,c=arguments.length,u=!1;for(typeof s=="boolean"&&(u=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});lo.length;let l;s&&o.push(i);try{l=e.apply(this,o)}catch(c){const u=c;if(s&&n)throw u;return i(u)}s||(l instanceof Promise?l.then(a,i):l instanceof Error?i(l):a(l))}function i(o,...s){n||(n=!0,t(o,...s))}function a(o){i(null,o)}}class wo extends Error{constructor(t,n,r){const i=[null,null];let a={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof n=="string"&&(r=n,n=void 0),typeof r=="string"){const o=r.indexOf(":");o===-1?i[1]=r:(i[0]=r.slice(0,o),i[1]=r.slice(o+1))}n&&("type"in n||"position"in n?n.position&&(a=n.position):"start"in n||"end"in n?a=n:("line"in n||"column"in n)&&(a.start=n)),this.name=Em(n)||"1:1",this.message=typeof t=="object"?t.message:t,this.stack="",typeof t=="object"&&t.stack&&(this.stack=t.stack),this.reason=this.message,this.fatal,this.line=a.start.line,this.column=a.start.column,this.position=a,this.source=i[0],this.ruleId=i[1],this.file,this.actual,this.expected,this.url,this.note}}wo.prototype.file="";wo.prototype.name="";wo.prototype.reason="";wo.prototype.message="";wo.prototype.stack="";wo.prototype.fatal=null;wo.prototype.column=null;wo.prototype.line=null;wo.prototype.source=null;wo.prototype.ruleId=null;wo.prototype.position=null;const fs={basename:o0e,dirname:s0e,extname:l0e,join:c0e,sep:"/"};function o0e(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Yg(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.charCodeAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.charCodeAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.charCodeAt(i)===t.charCodeAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function s0e(e){if(Yg(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.charCodeAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.charCodeAt(0)===47?"/":".":t===1&&e.charCodeAt(0)===47?"//":e.slice(0,t)}function l0e(e){Yg(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const s=e.charCodeAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function c0e(...e){let t=-1,n;for(;++t0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function d0e(e,t){let n="",r=0,i=-1,a=0,o=-1,s,l;for(;++o<=e.length;){if(o2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function Yg(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const f0e={cwd:h0e};function h0e(){return"/"}function a8(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function p0e(e){if(typeof e=="string")e=new URL(e);else if(!a8(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return m0e(e)}function m0e(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n{if(_||!T||!$)A(_);else{const R=a.stringify(T,$);R==null||(k0e(R)?$.value=R:$.result=R),A(_,$)}});function A(_,T){_||!T?S(_):k?k(T):C(null,T)}}}function g(b){let C;a.freeze(),J4("processSync",a.Parser),Q4("processSync",a.Compiler);const w=T0(b);return a.process(w,k),fM("processSync","process",C),w;function k(S){C=!0,tM(S)}}}function uM(e,t){return typeof e=="function"&&e.prototype&&(_0e(e.prototype)||t in e.prototype)}function _0e(e){let t;for(t in e)if(UV.call(e,t))return!0;return!1}function J4(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function Q4(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function e6(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function dM(e){if(!i8(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function fM(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function T0(e){return b0e(e)?e:new g0e(e)}function b0e(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function k0e(e){return typeof e=="string"||qV(e)}let GV=class{},KV=class{constructor(){this.elements=[],this.size=()=>this.elements.length,this.top=()=>this.elements.at(-1),this.push=t=>{var n;(n=this.top())==null||n.push(t)},this.open=t=>{this.elements.push(t)},this.close=()=>{const t=this.elements.pop();if(!t)throw oV();return t}}},w0e=class YV extends GV{constructor(t,n,r){super(),this.type=t,this.content=n,this.attrs=r}push(t,...n){this.content.push(t,...n)}pop(){return this.content.pop()}static create(t,n,r){return new YV(t,n,r)}};var ZV=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},ua=(e,t,n)=>(ZV(e,t,"read from private field"),n?n.call(e):t.get(e)),Wu=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},t6=(e,t,n,r)=>(ZV(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),fl,tb,s8,l8,c8,nb,rb;const XV=class extends KV{constructor(t){super(),Wu(this,fl,rn.none),Wu(this,tb,n=>n.isText),Wu(this,s8,(n,r)=>{if(ua(this,tb).call(this,n)&&ua(this,tb).call(this,r)&&rn.sameSet(n.marks,r.marks))return this.schema.text(n.text+r.text,n.marks)}),Wu(this,l8,n=>{const r=Object.values({...this.schema.nodes,...this.schema.marks}).find(i=>i.spec.parseMarkdown.match(n));if(!r)throw Zde(n);return r}),Wu(this,c8,n=>{const r=ua(this,l8).call(this,n);r.spec.parseMarkdown.runner(this,n,r)}),this.injectRoot=(n,r,i)=>(this.openNode(r,i),this.next(n.children),this),this.openNode=(n,r)=>(this.open(w0e.create(n,[],r)),this),Wu(this,nb,()=>{t6(this,fl,rn.none);const n=this.close();return ua(this,rb).call(this,n.type,n.attrs,n.content)}),this.closeNode=()=>(ua(this,nb).call(this),this),Wu(this,rb,(n,r,i)=>{const a=n.createAndFill(r,i,ua(this,fl));if(!a)throw Yde(n,r,i);return this.push(a),a}),this.addNode=(n,r,i)=>(ua(this,rb).call(this,n,r,i),this),this.openMark=(n,r)=>{const i=n.create(r);return t6(this,fl,i.addToSet(ua(this,fl))),this},this.closeMark=n=>(t6(this,fl,n.removeFromSet(ua(this,fl))),this),this.addText=n=>{const r=this.top();if(!r)throw oV();const i=r.pop(),a=this.schema.text(n,ua(this,fl));if(!i)return r.push(a),this;const o=ua(this,s8).call(this,i,a);return o?(r.push(o),this):(r.push(i,a),this)},this.build=()=>{let n;do n=ua(this,nb).call(this);while(this.size());return n},this.next=(n=[])=>([n].flat().forEach(r=>ua(this,c8).call(this,r)),this),this.toDoc=()=>this.build(),this.run=(n,r)=>{const i=n.runSync(n.parse(r),r);return this.next(i),this},this.schema=t}};let JV=XV;fl=new WeakMap;tb=new WeakMap;s8=new WeakMap;l8=new WeakMap;c8=new WeakMap;nb=new WeakMap;rb=new WeakMap;JV.create=(e,t)=>{const n=new XV(e);return r=>(n.run(t,r),n.toDoc())};const QV=class extends GV{constructor(t,n,r,i={}){super(),this.type=t,this.children=n,this.value=r,this.props=i,this.push=(a,...o)=>{this.children||(this.children=[]),this.children.push(a,...o)},this.pop=()=>{var a;return(a=this.children)==null?void 0:a.pop()}}};let u8=QV;u8.create=(e,t,n,r={})=>new QV(e,t,n,r);var eq=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Qn=(e,t,n)=>(eq(e,t,"read from private field"),n?n.call(e):t.get(e)),Ha=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},hM=(e,t,n,r)=>(eq(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Cc,ib,d8,f8,ab,h8,ob,p8,em,sb,m8,lb;const v0e=e=>Object.prototype.hasOwnProperty.call(e,"size"),tq=class extends KV{constructor(t){super(),Ha(this,Cc,rn.none),Ha(this,ib,n=>{const r=Object.values({...this.schema.nodes,...this.schema.marks}).find(i=>i.spec.toMarkdown.match(n));if(!r)throw Xde(n.type);return r}),Ha(this,d8,n=>Qn(this,ib).call(this,n).spec.toMarkdown.runner(this,n)),Ha(this,f8,(n,r)=>Qn(this,ib).call(this,n).spec.toMarkdown.runner(this,n,r)),Ha(this,ab,n=>{const{marks:r}=n,i=a=>a.type.spec.priority??50;[...r].sort((a,o)=>i(a)-i(o)).every(a=>!Qn(this,f8).call(this,a,n))&&Qn(this,d8).call(this,n),r.forEach(a=>Qn(this,lb).call(this,a))}),Ha(this,h8,(n,r)=>{var i;if(n.type===r||((i=n.children)==null?void 0:i.length)!==1)return n;const a=c=>{var u;if(c.type===r)return c;if(((u=c.children)==null?void 0:u.length)!==1)return null;const[f]=c.children;return f?a(f):null},o=a(n);if(!o)return n;const s=o.children?[...o.children]:void 0,l={...n,children:s};return l.children=s,o.children=[l],o}),Ha(this,ob,n=>{const{children:r}=n;return r&&(n.children=r.reduce((i,a,o)=>{if(o===0)return[a];const s=i.at(-1);if(s&&s.isMark&&a.isMark){a=Qn(this,h8).call(this,a,s.type);const{children:l,...c}=a,{children:u,...f}=s;if(a.type===s.type&&l&&u&&JSON.stringify(c)===JSON.stringify(f)){const h={...f,children:[...u,...l]};return i.slice(0,-1).concat(Qn(this,ob).call(this,h))}}return i.concat(a)},[])),n}),Ha(this,p8,n=>{const r={...n.props,type:n.type};return n.children&&(r.children=n.children),n.value&&(r.value=n.value),r}),this.openNode=(n,r,i)=>(this.open(u8.create(n,void 0,r,i)),this),Ha(this,em,()=>{const n=this.close();return Qn(this,sb).call(this,n.type,n.children,n.value,n.props)}),this.closeNode=()=>(Qn(this,em).call(this),this),Ha(this,sb,(n,r,i,a)=>{const o=u8.create(n,r,i,a),s=Qn(this,ob).call(this,Qn(this,p8).call(this,o));return this.push(s),s}),this.addNode=(n,r,i,a)=>(Qn(this,sb).call(this,n,r,i,a),this),Ha(this,m8,(n,r,i,a)=>n.isInSet(Qn(this,Cc))?this:(hM(this,Cc,n.addToSet(Qn(this,Cc))),this.openNode(r,i,{...a,isMark:!0}))),Ha(this,lb,n=>{n.isInSet(Qn(this,Cc))&&(hM(this,Cc,n.type.removeFromSet(Qn(this,Cc))),Qn(this,em).call(this))}),this.withMark=(n,r,i,a)=>(Qn(this,m8).call(this,n,r,i,a),this),this.closeMark=n=>(Qn(this,lb).call(this,n),this),this.build=()=>{let n=null;do n=Qn(this,em).call(this);while(this.size());return n},this.next=n=>v0e(n)?(n.forEach(r=>{Qn(this,ab).call(this,r)}),this):(Qn(this,ab).call(this,n),this),this.toString=n=>n.stringify(this.build()),this.run=n=>(this.next(n),this),this.schema=t}};let nq=tq;Cc=new WeakMap;ib=new WeakMap;d8=new WeakMap;f8=new WeakMap;ab=new WeakMap;h8=new WeakMap;ob=new WeakMap;p8=new WeakMap;em=new WeakMap;sb=new WeakMap;m8=new WeakMap;lb=new WeakMap;nq.create=(e,t)=>{const n=new tq(e);return r=>(n.run(r),n.toString(t))};class Yl{constructor(t,n){this.match=t,this.match=t,this.handler=typeof n=="string"?x0e(n):n}}function x0e(e){return function(t,n,r,i){let a=e;if(n[1]){let o=n[0].lastIndexOf(n[1]);a+=n[0].slice(o+n[1].length),r+=o;let s=r-i;s>0&&(a=n[0].slice(o-s,o)+a,r=i)}return t.tr.insertText(a,r,i)}}function gS(e,t,n=null,r){return new Yl(e,(i,a,o,s)=>{let l=n instanceof Function?n(a):n,c=i.tr.delete(o,s),u=c.doc.resolve(o),f=u.blockRange(),h=f&&GC(f,t,l);if(!h)return null;c.wrap(f,h);let m=c.doc.resolve(o-1).nodeBefore;return m&&m.type==t&&Sv(c.doc,o-1)&&(!r||r(a,m))&&c.join(o-1),c})}function rq(e,t,n=null){return new Yl(e,(r,i,a,o)=>{let s=r.doc.resolve(a),l=n instanceof Function?n(i):n;return s.node(-1).canReplaceWith(s.index(-1),s.indexAfter(-1),t)?r.tr.delete(a,o).setBlockType(a,a,t,l):null})}const uu=typeof navigator<"u"?navigator:null,pM=typeof document<"u"?document:null,Du=uu&&uu.userAgent||"",g8=/Edge\/(\d+)/.exec(Du),iq=/MSIE \d/.exec(Du),y8=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Du),Rv=!!(iq||y8||g8),C0e=iq?document.documentMode:y8?+y8[1]:g8?+g8[1]:0,aq=!Rv&&/gecko\/(\d+)/i.test(Du),S0e=aq&&+(/Firefox\/(\d+)/.exec(Du)||[0,0])[1],_8=!Rv&&/Chrome\/(\d+)/.exec(Du),D0e=!!_8,E0e=_8?+_8[1]:0,oq=!Rv&&!!uu&&/Apple Computer/.test(uu.vendor),sq=oq&&(/Mobile\/\w+/.test(Du)||!!uu&&uu.maxTouchPoints>2),T0e=sq||(uu?/Mac/.test(uu.platform):!1),A0e=/Android \d/.test(Du),lq=!!pM&&"webkitFontSmoothing"in pM.documentElement.style,z0e=lq?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;var mM=Object.freeze({__proto__:null,ie:Rv,ie_version:C0e,gecko:aq,gecko_version:S0e,chrome:D0e,chrome_version:E0e,safari:oq,ios:sq,mac:T0e,android:A0e,webkit:lq,webkit_version:z0e});function n6(e,t,n,r,i,a){if(e.composing)return!1;const o=e.state,s=o.doc.resolve(t);if(s.parent.type.spec.code)return!1;const l=s.parent.textBetween(Math.max(0,s.parentOffset-500),s.parentOffset,void 0,"")+r;for(let c=0;c{const t=new Bn({key:F0e,isInputRules:!0,state:{init(){return null},apply(n,r){const i=n.getMeta(this);return i||(n.selectionSet||n.docChanged?null:r)}},props:{handleTextInput(n,r,i,a){return n6(n,r,i,a,e,t)},handleDOMEvents:{compositionend:n=>(setTimeout(()=>{const{$cursor:r}=n.state.selection;r&&n6(n,r.pos,r.pos,"",e,t)}),!1)},handleKeyDown(n,r){if(r.key!=="Enter")return!1;const{$cursor:i}=n.state.selection;return i?n6(n,i.pos,i.pos,` -`,e,t):!1}}});return t};var M0e=Object.defineProperty,O0e=Object.defineProperties,N0e=Object.getOwnPropertyDescriptors,gM=Object.getOwnPropertySymbols,L0e=Object.prototype.hasOwnProperty,I0e=Object.prototype.propertyIsEnumerable,yM=(e,t,n)=>t in e?M0e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,B0e=(e,t)=>{for(var n in t||(t={}))L0e.call(t,n)&&yM(e,n,t[n]);if(gM)for(var n of gM(t))I0e.call(t,n)&&yM(e,n,t[n]);return e},R0e=(e,t)=>O0e(e,N0e(t));function _M(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function cq(e,t,n){const i=e.state.doc.content.size,a=_M(t,0,i),o=_M(n,0,i),s=e.coordsAtPos(a),l=e.coordsAtPos(o,-1),c=Math.min(s.top,l.top),u=Math.max(s.bottom,l.bottom),f=Math.min(s.left,l.left),h=Math.max(s.right,l.right),m=h-f,g=u-c,w={top:c,bottom:u,left:f,right:h,width:m,height:g,x:f,y:c};return R0e(B0e({},w),{toJSON:()=>w})}const Pv=e=>Object.assign(Object.create(e),e).setTime(Date.now()),P0e=(e,t)=>Array.isArray(e)&&e.includes(t.type)||t.type===e,j0e=(e,t=!0)=>{const n=[];return e.descendants((r,i)=>{if(n.push({node:r,pos:i}),!t)return!1}),n},Rk=e=>(t,n)=>j0e(t,n).filter(r=>e(r.node)),V0e=(e,t,n)=>Rk(r=>!!t.isInSet(r.marks))(e,n),q0e=(e,t)=>{const n=t.nodes[e];if(!n)throw Jde("node",e);return n},H0e=e=>t=>{for(let n=t.depth;n>0;n--){const r=t.node(n);if(e(r))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:r}}},uq=e=>t=>H0e(e)(t.$from),dq=(e,t)=>{if(!(e instanceof Mt))return;const{node:n,$from:r}=e;if(P0e(t,n))return{node:n,pos:r.pos,start:r.start(r.depth),depth:r.depth}},fq=(e,t)=>e.selection.empty?!1:(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function U0e(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("backward",e):n.parentOffset>0)?null:n}const W0e=(e,t,n)=>{let r=U0e(e,n);if(!r)return!1;let i=hq(r);if(!i){let o=r.blockRange(),s=o&&Cv(o);return s==null?!1:(t&&t(e.tr.lift(o,s).scrollIntoView()),!0)}let a=i.nodeBefore;if(!a.type.spec.isolating&&mq(e,i,t))return!0;if(r.parent.content.size==0&&(dp(a,"end")||Mt.isSelectable(a))){let o=KC(e.doc,r.before(),r.after(),Ue.empty);if(o&&o.slice.size{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;a=hq(r)}let o=a&&a.nodeBefore;return!o||!Mt.isSelectable(o)?!1:(t&&t(e.tr.setSelection(Mt.create(e.doc,a.pos-o.nodeSize)).scrollIntoView()),!0)};function hq(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function K0e(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("forward",e):n.parentOffset{let r=K0e(e,n);if(!r)return!1;let i=pq(r);if(!i)return!1;let a=i.nodeAfter;if(mq(e,i,t))return!0;if(r.parent.content.size==0&&(dp(a,"start")||Mt.isSelectable(a))){let o=KC(e.doc,r.before(),r.after(),Ue.empty);if(o&&o.slice.size{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset=0;t--){let n=e.node(t);if(e.index(t)+1{let{$head:n,$anchor:r}=e.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(t&&t(e.tr.insertText(` -`).scrollIntoView()),!0)};function yS(e){for(let t=0;t{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),a=n.indexAfter(-1),o=yS(i.contentMatchAt(a));if(!o||!i.canReplaceWith(a,a,o))return!1;if(t){let s=n.after(),l=e.tr.replaceWith(s,s,o.createAndFill());l.setSelection($t.near(l.doc.resolve(s),1)),t(l.scrollIntoView())}return!0},Q0e=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof va||r.parent.inlineContent||i.parent.inlineContent)return!1;let a=yS(i.parent.contentMatchAt(i.indexAfter()));if(!a||!a.isTextblock)return!1;if(t){let o=(!r.parentOffset&&i.index(){let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let a=n.before();if(Ih(e.doc,a))return t&&t(e.tr.split(a).scrollIntoView()),!0}let r=n.blockRange(),i=r&&Cv(r);return i==null?!1:(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)};function tme(e){return(t,n)=>{let{$from:r,$to:i}=t.selection;if(t.selection instanceof Mt&&t.selection.node.isBlock)return!r.parentOffset||!Ih(t.doc,r.pos)?!1:(n&&n(t.tr.split(r.pos).scrollIntoView()),!0);if(!r.parent.isBlock)return!1;if(n){let a=i.parentOffset==i.parent.content.size,o=t.tr;(t.selection instanceof Nt||t.selection instanceof va)&&o.deleteSelection();let s=r.depth==0?null:yS(r.node(-1).contentMatchAt(r.indexAfter(-1))),l=e&&e(i.parent,a),c=l?[l]:a&&s?[{type:s}]:void 0,u=Ih(o.doc,o.mapping.map(r.pos),1,c);if(!c&&!u&&Ih(o.doc,o.mapping.map(r.pos),1,s?[{type:s}]:void 0)&&(s&&(c=[{type:s}]),u=!0),u&&(o.split(o.mapping.map(r.pos),1,c),!a&&!r.parentOffset&&r.parent.type!=s)){let f=o.mapping.map(r.before()),h=o.doc.resolve(f);s&&r.node(-1).canReplaceWith(h.index(),h.index()+1,s)&&o.setNodeMarkup(o.mapping.map(r.before()),s)}n(o.scrollIntoView())}return!0}}const nme=tme(),rme=(e,t)=>(t&&t(e.tr.setSelection(new va(e.doc))),!0);function ime(e,t,n){let r=t.nodeBefore,i=t.nodeAfter,a=t.index();return!r||!i||!r.type.compatibleContent(i.type)?!1:!r.content.size&&t.parent.canReplace(a-1,a)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),!0):!t.parent.canReplace(a,a+1)||!(i.isTextblock||Sv(e.doc,t.pos))?!1:(n&&n(e.tr.clearIncompatible(t.pos,r.type,r.contentMatchAt(r.childCount)).join(t.pos).scrollIntoView()),!0)}function mq(e,t,n){let r=t.nodeBefore,i=t.nodeAfter,a,o;if(r.type.spec.isolating||i.type.spec.isolating)return!1;if(ime(e,t,n))return!0;let s=t.parent.canReplace(t.index(),t.index()+1);if(s&&(a=(o=r.contentMatchAt(r.childCount)).findWrapping(i.type))&&o.matchType(a[0]||i.type).validEnd){if(n){let f=t.pos+i.nodeSize,h=Ee.empty;for(let b=a.length-1;b>=0;b--)h=Ee.from(a[b].create(null,h));h=Ee.from(r.copy(h));let m=e.tr.step(new Wr(t.pos-1,f,t.pos,f,new Ue(h,1,0),a.length,!0)),g=f+2*a.length;Sv(m.doc,g)&&m.join(g),n(m.scrollIntoView())}return!0}let l=$t.findFrom(t,1),c=l&&l.$from.blockRange(l.$to),u=c&&Cv(c);if(u!=null&&u>=t.depth)return n&&n(e.tr.lift(c,u).scrollIntoView()),!0;if(s&&dp(i,"start",!0)&&dp(r,"end")){let f=r,h=[];for(;h.push(f),!f.isTextblock;)f=f.lastChild;let m=i,g=1;for(;!m.isTextblock;m=m.firstChild)g++;if(f.canReplace(f.childCount,f.childCount,m.content)){if(n){let b=Ee.empty;for(let w=h.length-1;w>=0;w--)b=Ee.from(h[w].copy(b));let C=e.tr.step(new Wr(t.pos-h.length,t.pos+i.nodeSize,t.pos+g,t.pos+i.nodeSize-g,new Ue(b,h.length,0),0,!0));n(C.scrollIntoView())}return!0}}return!1}function gq(e){return function(t,n){let r=t.selection,i=e<0?r.$from:r.$to,a=i.depth;for(;i.node(a).isInline;){if(!a)return!1;a--}return i.node(a).isTextblock?(n&&n(t.tr.setSelection(Nt.create(t.doc,e<0?i.start(a):i.end(a)))),!0):!1}}const ame=gq(-1),ome=gq(1);function _S(e,t=null){return function(n,r){let{$from:i,$to:a}=n.selection,o=i.blockRange(a),s=o&&GC(o,e,t);return s?(r&&r(n.tr.wrap(o,s).scrollIntoView()),!0):!1}}function Zd(e,t=null){return function(n,r){let i=!1;for(let a=0;a{if(i)return!1;if(!(!l.isTextblock||l.hasMarkup(e,t)))if(l.type==e)i=!0;else{let u=n.doc.resolve(c),f=u.index();i=u.parent.canReplaceWith(f,f+1,e)}})}if(!i)return!1;if(r){let a=n.tr;for(let o=0;o{if(o)return!1;o=s.inlineContent&&s.type.allowsMarkType(n)}),o)return!0}return!1}function jv(e,t=null){return function(n,r){let{empty:i,$cursor:a,ranges:o}=n.selection;if(i&&!a||!sme(n.doc,o,e))return!1;if(r)if(a)e.isInSet(n.storedMarks||a.marks())?r(n.tr.removeStoredMark(e)):r(n.tr.addStoredMark(e.create(t)));else{let s=!1,l=n.tr;for(let c=0;!s&&c",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},ume=typeof navigator<"u"&&/Mac/.test(navigator.platform),dme=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Hr=0;Hr<10;Hr++)du[48+Hr]=du[96+Hr]=String(Hr);for(var Hr=1;Hr<=24;Hr++)du[Hr+111]="F"+Hr;for(var Hr=65;Hr<=90;Hr++)du[Hr]=String.fromCharCode(Hr+32),Pk[Hr]=String.fromCharCode(Hr);for(var i6 in du)Pk.hasOwnProperty(i6)||(Pk[i6]=du[i6]);function fme(e){var t=ume&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||dme&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?Pk:du)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const hme=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function pme(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n=="Space"&&(n=" ");let r,i,a,o;for(let s=0;s127)&&(a=du[r.keyCode])&&a!=i){let s=t[a6(a,r)];if(s&&s(n.state,n.dispatch,n))return!0}}return!1}}var kq=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},gt=(e,t,n)=>(kq(e,t,"read from private field"),n?n.call(e):t.get(e)),Pr=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Hn=(e,t,n,r)=>(kq(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);const Eu=(e,t)=>(e.meta={package:"@milkdown/core",group:"System",...t},e),wq={strong:(e,t,n,r)=>{const i=e.marker||n.options.strong||"*",a=n.enter("strong"),o=n.createTracker(r);let s=o.move(i+i);return s+=o.move(n.containerPhrasing(e,{before:s,after:i,...o.current()})),s+=o.move(i+i),a(),s},emphasis:(e,t,n,r)=>{const i=e.marker||n.options.emphasis||"*",a=n.enter("emphasis"),o=n.createTracker(r);let s=o.move(i);return s+=o.move(n.containerPhrasing(e,{before:s,after:i,...o.current()})),s+=o.move(i),a(),s}},cb=Cu("ConfigReady"),gme=e=>{const t=n=>(n.record(cb),async()=>(await e(n),n.done(cb),()=>{n.clearTimer(cb)}));return Eu(t,{displayName:"Config"}),t},zd=Cu("InitReady"),o6=un([],"initTimer"),kM=un({},"editor"),gg=un([],"inputRules"),Ns=un([],"prosePlugins"),yg=un([],"remarkPlugins"),_g=un([],"nodeView"),bg=un([],"markView"),Fd=un(o8().use(Qx).use(r8),"remark"),Tm=un({handlers:wq},"remarkStringifyOptions"),yme=e=>{const t=n=>(n.inject(kM,e).inject(Ns,[]).inject(yg,[]).inject(gg,[]).inject(_g,[]).inject(bg,[]).inject(Tm,{handlers:wq}).inject(Fd,o8().use(Qx).use(r8)).inject(o6,[cb]).record(zd),async()=>{await n.waitTimers(o6);const r=n.get(Tm);return n.set(Fd,o8().use(Qx).use(r8,r)),n.done(zd),()=>{n.remove(kM).remove(Ns).remove(yg).remove(gg).remove(_g).remove(bg).remove(Tm).remove(Fd).remove(o6).clearTimer(zd)}});return Eu(t,{displayName:"Init"}),t},Ko=Cu("SchemaReady"),s6=un([],"schemaTimer"),Es=un({},"schema"),Ph=un([],"nodes"),jh=un([],"marks"),wM=e=>{var t;return{...e,parseDOM:(t=e.parseDOM)==null?void 0:t.map(n=>({priority:e.priority,...n}))}},vq=e=>(e.inject(Es,{}).inject(Ph,[]).inject(jh,[]).inject(s6,[zd]).record(Ko),async()=>{await e.waitTimers(s6);const t=e.get(Fd),n=e.get(yg).reduce((o,s)=>o.use(s),t);e.set(Fd,n);const r=Object.fromEntries(e.get(Ph).map(([o,s])=>[o,wM(s)])),i=Object.fromEntries(e.get(jh).map(([o,s])=>[o,wM(s)])),a=new Ble({nodes:r,marks:i});return e.set(Es,a),e.done(Ko),()=>{e.remove(Es).remove(Ph).remove(jh).remove(s6).clearTimer(Ko)}});Eu(vq,{displayName:"Schema"});const ub=Cu("ParserReady"),xq=()=>{throw sS()},Vh=un(xq,"parser"),l6=un([],"parserTimer"),Cq=e=>(e.inject(Vh,xq).inject(l6,[Ko]).record(ub),async()=>{await e.waitTimers(l6);const t=e.get(Fd),n=e.get(Es);return e.set(Vh,JV.create(n,t)),e.done(ub),()=>{e.remove(Vh).remove(l6).clearTimer(ub)}});Eu(Cq,{displayName:"Parser"});const Am=Cu("SerializerReady"),c6=un([],"serializerTimer"),Sq=()=>{throw sS()},$d=un(Sq,"serializer"),Dq=e=>(e.inject($d,Sq).inject(c6,[Ko]).record(Am),async()=>{await e.waitTimers(c6);const t=e.get(Fd),n=e.get(Es);return e.set($d,nq.create(n,t)),e.done(Am),()=>{e.remove($d).remove(c6).clearTimer(Am)}});Eu(Dq,{displayName:"Serializer"});const db=un("","defaultValue"),tm=un({},"editorState"),u6=un(e=>e,"stateOptions"),d6=un([],"editorStateTimer"),fb=Cu("EditorStateReady"),_me=(e,t,n)=>{if(typeof e=="string")return t(e);if(e.type==="html")return Wd.fromSchema(n).parse(e.dom);if(e.type==="json")return Wo.fromJSON(n,e.value);throw Wde(e)},bme=new Fn("MILKDOWN_STATE_TRACKER"),Eq=e=>(e.inject(db,"").inject(tm,{}).inject(u6,t=>t).inject(d6,[ub,Am,Fm]).record(fb),async()=>{await e.waitTimers(d6);const t=e.get(Es),n=e.get(Vh),r=e.get(gg),i=e.get(u6),a=e.get(Ns),o=e.get(db),s=_me(o,n,t),l=[...a,new Bn({key:bme,state:{init:()=>{},apply:(f,h,m,g)=>{e.set(tm,g)}}}),$0e({rules:r}),_q(cme)];e.set(Ns,l);const c=i({schema:t,doc:s,plugins:l}),u=bh.create(c);return e.set(tm,u),e.done(fb),()=>{e.remove(db).remove(tm).remove(u6).remove(d6).clearTimer(fb)}});Eu(Eq,{displayName:"EditorState"});const hb=Cu("EditorViewReady"),ai=un({},"editorView"),f6=un([],"editorViewTimer"),zm=un({},"editorViewOptions"),pb=un(null,"root"),b8=un(null,"rootDOM"),k8=un({},"rootAttrs"),kme=(e,t)=>{const n=document.createElement("div");n.className="milkdown",e.appendChild(n),t.set(b8,n);const r=t.get(k8);return Object.entries(r).forEach(([i,a])=>n.setAttribute(i,a)),n},wme=e=>{e.classList.add("editor"),e.setAttribute("role","textbox")},vme=new Fn("MILKDOWN_VIEW_CLEAR"),Tq=e=>(e.inject(pb,document.body).inject(ai,{}).inject(zm,{}).inject(b8,null).inject(k8,{}).inject(f6,[fb]).record(hb),async()=>{await e.wait(zd);const t=e.get(pb)||document.body,n=typeof t=="string"?document.querySelector(t):t;e.update(Ns,l=>[new Bn({key:vme,view:c=>{const u=n?kme(n,e):void 0;return(()=>{if(u&&n){const f=c.dom;n.replaceChild(u,f),u.appendChild(f)}})(),{destroy:()=>{u!=null&&u.parentNode&&(u==null||u.parentNode.replaceChild(c.dom,u)),u==null||u.remove()}}}}),...l]),await e.waitTimers(f6);const r=e.get(tm),i=e.get(zm),a=Object.fromEntries(e.get(_g)),o=Object.fromEntries(e.get(bg)),s=new Hue(n,{state:r,nodeViews:a,markViews:o,...i});return wme(s.dom),e.set(ai,s),e.done(hb),()=>{s==null||s.destroy(),e.remove(pb).remove(ai).remove(zm).remove(b8).remove(k8).remove(f6).clearTimer(hb)}});Eu(Tq,{displayName:"EditorView"});var Qf,rd;let Aq=class{constructor(){Pr(this,Qf,void 0),Pr(this,rd,void 0),Hn(this,Qf,new cV),Hn(this,rd,null),this.setCtx=t=>{Hn(this,rd,t)}}get ctx(){return gt(this,rd)}create(t,n){const r=t.create(gt(this,Qf).sliceMap);return r.set(n),r}get(t){return gt(this,Qf).get(t).get()}remove(t){return gt(this,Qf).remove(t)}call(t,n){if(gt(this,rd)==null)throw Qde();const r=this.get(t)(n),i=gt(this,rd).get(ai);return r(i.state,i.dispatch,i)}};Qf=new WeakMap,rd=new WeakMap;const xme=(e="cmdKey")=>un(()=>()=>!1,e),Bt=un(new Aq,"commands"),h6=un([Ko],"commandsTimer"),Fm=Cu("CommandsReady"),zq=e=>{const t=new Aq;return t.setCtx(e),e.inject(Bt,t).inject(h6,[Ko]).record(Fm),async()=>(await e.waitTimers(h6),e.done(Fm),()=>{e.remove(Bt).remove(h6).clearTimer(Fm)})};Eu(zq,{displayName:"Commands"});var pn=(e=>(e.Idle="Idle",e.OnCreate="OnCreate",e.Created="Created",e.OnDestroy="OnDestroy",e.Destroyed="Destroyed",e))(pn||{}),eh,Ka,Sc,nm,mb,gb,fa,Dc,th,yb,nh,rm,_b,id,im;const Fq=class{constructor(){Pr(this,eh,void 0),Pr(this,Ka,void 0),Pr(this,Sc,void 0),Pr(this,nm,void 0),Pr(this,mb,void 0),Pr(this,gb,void 0),Pr(this,fa,void 0),Pr(this,Dc,void 0),Pr(this,th,void 0),Pr(this,yb,void 0),Pr(this,nh,void 0),Pr(this,rm,void 0),Pr(this,_b,void 0),Pr(this,id,void 0),Pr(this,im,void 0),Hn(this,eh,!1),Hn(this,Ka,"Idle"),Hn(this,Sc,[]),Hn(this,nm,()=>{}),Hn(this,mb,new cV),Hn(this,gb,new afe),Hn(this,fa,new Map),Hn(this,Dc,new Map),Hn(this,th,new ife(gt(this,mb),gt(this,gb))),Hn(this,yb,()=>{const t=gme(async r=>{await Promise.all(gt(this,Sc).map(i=>i(r)))}),n=[vq,Cq,Dq,zq,Eq,Tq,yme(this),t];gt(this,nh).call(this,n,gt(this,Dc))}),Hn(this,nh,(t,n)=>{t.forEach(r=>{const i=gt(this,th).produce(gt(this,eh)?r.meta:void 0),a=r(i);n.set(r,{ctx:i,handler:a,cleanup:void 0})})}),Hn(this,rm,(t,n=!1)=>Promise.all([t].flat().map(r=>{const i=gt(this,fa).get(r),a=i==null?void 0:i.cleanup;return n?gt(this,fa).delete(r):gt(this,fa).set(r,{ctx:void 0,handler:void 0,cleanup:void 0}),typeof a=="function"?a():a}))),Hn(this,_b,async()=>{await Promise.all([...gt(this,Dc).entries()].map(([t,{cleanup:n}])=>typeof n=="function"?n():n)),gt(this,Dc).clear()}),Hn(this,id,t=>{Hn(this,Ka,t),gt(this,nm).call(this,t)}),Hn(this,im,t=>[...t.entries()].map(async([n,r])=>{const{ctx:i,handler:a}=r;if(!a)return;const o=await a();t.set(n,{ctx:i,handler:a,cleanup:o})})),this.enableInspector=(t=!0)=>(Hn(this,eh,t),this),this.onStatusChange=t=>(Hn(this,nm,t),this),this.config=t=>(gt(this,Sc).push(t),this),this.removeConfig=t=>(Hn(this,Sc,gt(this,Sc).filter(n=>n!==t)),this),this.use=t=>{const n=[t].flat();return n.flat().forEach(r=>{gt(this,fa).set(r,{ctx:void 0,handler:void 0,cleanup:void 0})}),gt(this,Ka)==="Created"&>(this,nh).call(this,n,gt(this,fa)),this},this.remove=async t=>gt(this,Ka)==="OnCreate"?(console.warn("[Milkdown]: You are trying to remove plugins when the editor is creating, this is not recommended, please check your code."),new Promise(n=>{setTimeout(()=>{n(this.remove(t))},50)})):(await gt(this,rm).call(this,[t].flat(),!0),this),this.create=async()=>gt(this,Ka)==="OnCreate"?this:(gt(this,Ka)==="Created"&&await this.destroy(),gt(this,id).call(this,"OnCreate"),gt(this,yb).call(this),gt(this,nh).call(this,[...gt(this,fa).keys()],gt(this,fa)),await Promise.all([gt(this,im).call(this,gt(this,Dc)),gt(this,im).call(this,gt(this,fa))].flat()),gt(this,id).call(this,"Created"),this),this.destroy=async(t=!1)=>gt(this,Ka)==="Destroyed"||gt(this,Ka)==="OnDestroy"?this:gt(this,Ka)==="OnCreate"?new Promise(n=>{setTimeout(()=>{n(this.destroy(t))},50)}):(t&&Hn(this,Sc,[]),gt(this,id).call(this,"OnDestroy"),await gt(this,rm).call(this,[...gt(this,fa).keys()],t),await gt(this,_b).call(this),gt(this,id).call(this,"Destroyed"),this),this.action=t=>t(gt(this,th)),this.inspect=()=>gt(this,eh)?[...gt(this,Dc).values(),...gt(this,fa).values()].map(({ctx:t})=>{var n;return(n=t==null?void 0:t.inspector)==null?void 0:n.read()}).filter(t=>!!t):(console.warn("[Milkdown]: You are trying to collect inspection when inspector is disabled, please enable inspector by `editor.enableInspector()` first."),[])}static make(){return new Fq}get ctx(){return gt(this,th)}get status(){return gt(this,Ka)}};let Cme=Fq;eh=new WeakMap,Ka=new WeakMap,Sc=new WeakMap,nm=new WeakMap,mb=new WeakMap,gb=new WeakMap,fa=new WeakMap,Dc=new WeakMap,th=new WeakMap,yb=new WeakMap,nh=new WeakMap,rm=new WeakMap,_b=new WeakMap,id=new WeakMap,im=new WeakMap;const li=()=>{const[e,t]=gle();return{editor:t(),loading:e}},Sme=F.forwardRef((e,t)=>{const{editor:n,loading:r}=li();return F.useImperativeHandle(t,()=>({reset:()=>{r||!n||n.status!==pn.Created||n.action(i=>{const a=i.get(ai),{state:o}=a;a.dispatch(o.tr.replace(0,o.doc.content.size))})},getValue:()=>{if(!(r||!n||n.status!==pn.Created))return n.action(i=>{const a=i.get(ai),o=i.get($d),{state:s}=a;return o(s.tr.doc)})}})),j(hle,{})}),Dme="/notion-style-editor/assets/Figtree-Black-f203ff7e.ttf",Eme="/notion-style-editor/assets/Figtree-BlackItalic-d1cdd6a4.ttf",Tme="/notion-style-editor/assets/Figtree-Bold-c87c9df6.ttf",Ame="/notion-style-editor/assets/Figtree-BoldItalic-47a45360.ttf",zme="/notion-style-editor/assets/Figtree-ExtraBold-b118e896.ttf",Fme="/notion-style-editor/assets/Figtree-ExtraBoldItalic-8a55c98f.ttf",$me="/notion-style-editor/assets/Figtree-Italic-8f7a7c5f.ttf",Mme="/notion-style-editor/assets/Figtree-Light-af5b00eb.ttf",Ome="/notion-style-editor/assets/Figtree-LightItalic-efc83647.ttf",Nme="/notion-style-editor/assets/Figtree-Medium-8dac39a0.ttf",Lme="/notion-style-editor/assets/Figtree-MediumItalic-da65130c.ttf",Ime="/notion-style-editor/assets/Figtree-Regular-edf84b2d.ttf",Bme="/notion-style-editor/assets/Figtree-SemiBold-c16f4eee.ttf",Rme="/notion-style-editor/assets/Figtree-SemiBoldItalic-9df084e7.ttf",Pme=Tn(["@font-face{font-weight:300;font-family:Figtree;font-style:normal;src:local('Figtree'),url(",") format('truetype');}@font-face{font-weight:300;font-family:Figtree;font-style:italic;src:local('Figtree'),url(",") format('truetype');}@font-face{font-weight:400;font-family:Figtree;font-style:normal;src:local('Figtree'),url(",") format('truetype');}@font-face{font-weight:400;font-family:Figtree;font-style:italic;src:local('Figtree'),url(",") format('truetype');}@font-face{font-weight:500;font-family:Figtree;font-style:normal;src:local('Figtree'),url(",") format('truetype');}@font-face{font-weight:500;font-family:Figtree;font-style:italic;src:local('Figtree'),url(",") format('truetype');}@font-face{font-weight:600;font-family:Figtree;font-style:normal;src:local('Figtree'),url(",") format('truetype');}@font-face{font-weight:600;font-family:Figtree;font-style:italic;src:local('Figtree'),url(",") format('truetype');}@font-face{font-weight:700;font-family:Figtree;font-style:normal;src:local('Figtree'),url(",") format('truetype');}@font-face{font-weight:700;font-family:Figtree;font-style:italic;src:local('Figtree'),url(",") format('truetype');}@font-face{font-weight:800;font-family:Figtree;font-style:normal;src:local('Figtree'),url(",") format('truetype');}@font-face{font-weight:800;font-family:Figtree;font-style:italic;src:local('Figtree'),url(",") format('truetype');}@font-face{font-weight:900;font-family:Figtree;font-style:normal;src:local('Figtree'),url(",") format('truetype');}@font-face{font-weight:900;font-family:Figtree;font-style:italic;src:local('Figtree'),url(",") format('truetype');}"],Mme,Ome,Ime,$me,Nme,Lme,Bme,Rme,Tme,Ame,zme,Fme,Dme,Eme),jme="/notion-style-editor/assets/OpenSans-Bold-914b98c4.ttf",Vme="/notion-style-editor/assets/OpenSans-BoldItalic-256f1e0a.ttf",qme="/notion-style-editor/assets/OpenSans-ExtraBold-7eaf8525.ttf",Hme="/notion-style-editor/assets/OpenSans-ExtraBoldItalic-daccb094.ttf",Ume="/notion-style-editor/assets/OpenSans-Italic-2eecc792.ttf",Wme="/notion-style-editor/assets/OpenSans-Light-abca0004.ttf",Gme="/notion-style-editor/assets/OpenSans-LightItalic-1df8fcb9.ttf",Kme="/notion-style-editor/assets/OpenSans-Medium-bf3dc3e4.ttf",Yme="/notion-style-editor/assets/OpenSans-MediumItalic-cf5a2134.ttf",Zme="/notion-style-editor/assets/OpenSans-Regular-a0707e10.ttf",Xme="/notion-style-editor/assets/OpenSans-SemiBold-89275a1c.ttf",Jme="/notion-style-editor/assets/OpenSans-SemiBoldItalic-765e586b.ttf",Qme=Tn(["@font-face{font-weight:300;font-family:OpenSans;font-style:normal;src:local('OpenSans'),url(",") format('truetype');}@font-face{font-weight:300;font-family:OpenSans;font-style:italic;src:local('OpenSans'),url(",") format('truetype');}@font-face{font-weight:400;font-family:OpenSans;font-style:normal;src:local('OpenSans'),url(",") format('truetype');}@font-face{font-weight:400;font-family:OpenSans;font-style:italic;src:local('OpenSans'),url(",") format('truetype');}@font-face{font-weight:500;font-family:OpenSans;font-style:normal;src:local('OpenSans'),url(",") format('truetype');}@font-face{font-weight:500;font-family:OpenSans;font-style:italic;src:local('OpenSans'),url(",") format('truetype');}@font-face{font-weight:600;font-family:OpenSans;font-style:normal;src:local('OpenSans'),url(",") format('truetype');}@font-face{font-weight:600;font-family:OpenSans;font-style:italic;src:local('OpenSans'),url(",") format('truetype');}@font-face{font-weight:700;font-family:OpenSans;font-style:normal;src:local('OpenSans'),url(",") format('truetype');}@font-face{font-weight:700;font-family:OpenSans;font-style:italic;src:local('OpenSans'),url(",") format('truetype');}@font-face{font-weight:800;font-family:OpenSans;font-style:normal;src:local('OpenSans'),url(",") format('truetype');}@font-face{font-weight:800;font-family:OpenSans;font-style:italic;src:local('OpenSans'),url(",") format('truetype');}"],Wme,Gme,Zme,Ume,Kme,Yme,Xme,Jme,jme,Vme,qme,Hme),ege="/notion-style-editor/assets/SourceCodePro-Regular-a97f03d4.ttf",tge=Tn(["@font-face{font-family:SourceCodePro;font-style:normal;src:local('SourceCodePro'),url(",") format('truetype');}"],ege),nge=Tn(["",";",";",";"],Qme,tge,Pme),Xy={grey:"#6E7270",secondaryGrey:"#EAECEB",lightGrey:"#D6D6D6",secondaryLightGrey:"#F6F6F6",lightBlack:"#1F1F1F",white:"#FFFFFF",azure:"#E9F7F5",lightAzure:"#F8FBFB",lightGreen:"#68D391",green:"#45BAAC",transparentBlack:"rgba(0,0,0,0.17)",darkRed:"#EB0000"},Vt={fonts:{primary:"OpenSans",secondary:"SourceCodePro",figree:"Figtree"},sizes:{baseSize:16},components:{modal:{footer:{cancel:Xy.lightGrey,save:Xy.lightGreen},backdrop:{background:Xy.transparentBlack}},editor:{link:"#0836AA",mermaid:{lineColor:"#45BAAC",primaryColor:"#E9F7F5",primaryTextColor:"#1F1F1F",primaryBorderColor:"#45BAAC",secondaryColor:"#45BAAC",tertiaryColor:"#F6F6F6"}},selection:"#e9f7f5"},zIndexes:{menu:99,modal:{backdrop:100,container:101},dropdown:{container:99999}},colors:Xy,queries:{tablet:"426px",laptop:"700px",menuWithSpace:"724px"}},ee=e=>`${e/Vt.sizes.baseSize}rem`,rge=Tn(["position:absolute;left:-5000px;top:-5000px;"]),ige=Ae.div.withConfig({displayName:"EditorContainer"})(["width:100%;padding:"," "," ",";background-color:",";border:1px solid ",";border-radius:",";transition:border-color 0.2s ease-in;*{box-sizing:border-box;margin:0;padding:0;color:",";font-family:",";&::selection{background-color:",";}}&&&{.success-toaster div{color:",";}.error-toaster div{color:",";}.tippy-box{background-color:transparent;}.tippy-content{padding:0;}}",";&:hover,&:focus{border-color:",";}.ProseMirror-focused{border-color:",";outline:0;}.editor{position:relative;&::before{position:absolute;bottom:0;left:0;color:",";font-family:",";cursor:text;content:attr(data-placeholder);}blockquote{margin:"," 0;padding-left:",";border-left:4px solid ",";}ul,ol{padding-left:",";}li{padding-left:",";}p{margin:"," 0;}a{color:",";font-weight:600;text-decoration:none;}.emoji{width:",";height:",";}h1,h2,h3,h4,h5,h6{margin:"," 0;font-weight:bold;font-family:",";}h1{font-size:",";}h2{font-size:",";}}.tableWrapper{table{width:calc(100% - 14px);margin-top:",";margin-left:",";overflow:visible;font-size:",";border-collapse:collapse;th{position:relative;background-color:",";border-color:",";}th,td{padding:",";border-bottom:1px solid ",";&:not(:first-of-type){border-left:1px solid ",";}&:not(:last-of-type){border-right:1px solid ",";}&.selectedCell{background-color:",";}}}}"],ee(12),ee(12),ee(20),e=>e.theme.colors.white,e=>e.theme.colors.lightGrey,ee(6),e=>e.theme.colors.lightBlack,e=>e.theme.fonts.primary,e=>e.theme.components.selection,e=>e.theme.colors.white,e=>e.theme.colors.lightBlack,nge,e=>e.theme.colors.grey,e=>e.theme.colors.lightBlack,e=>e.theme.colors.grey,e=>e.theme.fonts.primary,ee(16),ee(20),e=>e.theme.colors.green,ee(20),ee(2),ee(16),e=>e.theme.components.editor.link,ee(16),ee(16),ee(16),e=>e.theme.fonts.figree,ee(32),ee(24),ee(12),ee(12),ee(14),e=>e.theme.colors.secondaryLightGrey,e=>e.theme.colors.white,ee(16),e=>e.theme.colors.lightGrey,e=>e.theme.colors.white,e=>e.theme.colors.white,e=>e.theme.colors.azure);qP("abcedfghicklmn",10);const Lt=(e,t)=>{const n=xme(e),r=i=>async()=>{r.key=n,await i.wait(Fm);const a=t(i);return i.get(Bt).create(n,a),r.run=o=>i.get(Bt).call(e,o),()=>{i.get(Bt).remove(n)}};return r},vo=e=>{const t=n=>async()=>{await n.wait(Ko);const r=e(n);return n.update(gg,i=>[...i,r]),t.inputRule=r,()=>{n.update(gg,i=>i.filter(a=>a!==r))}};return t},age=(e,t)=>{const n=r=>async()=>{const i=t(r);return r.update(jh,a=>[...a.filter(o=>o[0]!==e),[e,i]]),n.id=e,n.schema=i,()=>{r.update(jh,a=>a.filter(([o])=>o!==e))}};return n.type=r=>{const i=r.get(Es).marks[e];if(!i)throw efe(e);return i},n},kS=(e,t)=>{const n=r=>async()=>{const i=t(r);return r.update(Ph,a=>[...a.filter(o=>o[0]!==e),[e,i]]),n.id=e,n.schema=i,()=>{r.update(Ph,a=>a.filter(([o])=>o!==e))}};return n.type=r=>{const i=r.get(Es).nodes[e];if(!i)throw sV(e);return i},n},yr=e=>{let t;const n=r=>async()=>(await r.wait(Ko),t=e(r),r.update(Ns,i=>[...i,t]),()=>{r.update(Ns,i=>i.filter(a=>a!==t))});return n.plugin=()=>t,n.key=()=>t.spec.key,n},Ps=e=>{const t=n=>async()=>{await n.wait(zd);const r=e(n);return n.update(yg,i=>[...i,r]),t.plugin=r,()=>{n.update(yg,i=>i.filter(a=>a!==r))}};return t},oge=e=>{const t=n=>async()=>{await n.wait(Ko);const r=e(n),i=_q(r);return n.update(Ns,a=>[...a,i]),t.keymap=r,()=>{n.update(Ns,a=>a.filter(o=>o!==i))}};return t},jk=(e,t)=>{const n=r=>async()=>{await r.wait(Ko);const i=t(r);return e.type(r)instanceof zk?r.update(_g,a=>[...a,[e.id,i]]):r.update(bg,a=>[...a,[e.id,i]]),n.view=i,n.type=e,()=>{e.type(r)instanceof zk?r.update(_g,a=>a.filter(o=>o[0]!==e.id)):r.update(bg,a=>a.filter(o=>o[0]!==e.id))}};return n},Lr=(e,t)=>{const n=un(e,t),r=i=>(i.inject(n),()=>()=>{i.remove(n)});return r.key=n,r},cr=(e,t)=>{const n=Lr(t,e),r=kS(e,a=>a.get(n.key)(a)),i=[n,r];return i.id=r.id,i.node=r,i.type=a=>r.type(a),i.schema=r.schema,i.ctx=n,i.key=n.key,i.extendSchema=a=>o=>()=>{const s=o.get(n.key),l=a(s)(o);o.update(Ph,c=>[...c.filter(u=>u[0]!==e),[e,l]]),i.schema=l},i},Zg=(e,t)=>{const n=Lr(t,e),r=age(e,a=>a.get(n.key)(a)),i=[n,r];return i.id=r.id,i.mark=r,i.type=r.type,i.schema=r.schema,i.ctx=n,i.key=n.key,i.extendSchema=a=>o=>()=>{const s=o.get(n.key),l=a(s)(o);o.update(jh,c=>[...c.filter(u=>u[0]!==e),[e,l]]),i.schema=l},i},ea=(e,t)=>{const n=Object.fromEntries(Object.entries(t).map(([o,{shortcuts:s}])=>[o,s])),r=Lr(n,`${e}Keymap`),i=oge(o=>{const s=o.get(r.key),l=Object.entries(t).flatMap(([c,{command:u}])=>[s[c]].flat().map(f=>[f,u(o)]));return Object.fromEntries(l)}),a=[r,i];return a.ctx=r,a.shortcuts=i,a.key=r.key,a.keymap=i.keymap,a},xo=(e,t=()=>({}))=>Lr(t,`${e}Attr`),Xg=(e,t=()=>({}))=>Lr(t,`${e}Attr`);function sge(e,t){return n=>n.get(Bt).call(e,t)}const lge=(...e)=>{const t=e.length;let n=t;for(;n--;)if(typeof e[n]!="function")throw new TypeError("Expected a function");return(...r)=>{let i=0,a=t?e[i](...r):r[0];for(;++i{if(!e)return!1;if(Array.isArray(e))return e.length>1?!1:w8(e[0]);const t=e.content;return t?w8(t):e.type==="text"},cge=e=>{if(e.content.childCount===1){const t=e.content.firstChild;if((t==null?void 0:t.type.name)==="text"&&t.marks.length===0)return t;if((t==null?void 0:t.type.name)==="paragraph"&&t.childCount===1){const n=t.firstChild;if((n==null?void 0:n.type.name)==="text"&&n.marks.length===0)return n}}return!1},$q=yr(e=>{const t=e.get(Es);e.update(zm,r=>({...r,editable:r.editable??(()=>!0)}));const n=new Fn("MILKDOWN_CLIPBOARD");return new Bn({key:n,props:{handlePaste:(r,i)=>{var a,o;const s=e.get(Vh),l=(o=(a=r.props).editable)==null?void 0:o.call(a,r.state),{clipboardData:c}=i;if(!l||!c||r.state.selection.$from.node().type.spec.code)return!1;const u=c.getData("text/plain"),f=c.getData("vscode-editor-data");if(f){const w=JSON.parse(f),k=w==null?void 0:w.mode;if(u&&k){const{tr:S}=r.state,E=q0e("code_block",t);return S.replaceSelectionWith(E.create({language:k})).setSelection(Nt.near(S.doc.resolve(Math.max(0,S.selection.from-2)))).insertText(u.replace(/\r\n?/g,` + */var n0e=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};const HV=Qo(n0e);var eb=Object.prototype.hasOwnProperty,UV=Object.prototype.toString,nM=Object.defineProperty,rM=Object.getOwnPropertyDescriptor,iM=function(t){return typeof Array.isArray=="function"?Array.isArray(t):UV.call(t)==="[object Array]"},aM=function(t){if(!t||UV.call(t)!=="[object Object]")return!1;var n=eb.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&eb.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||eb.call(t,i)},oM=function(t,n){nM&&n.name==="__proto__"?nM(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},sM=function(t,n){if(n==="__proto__")if(eb.call(t,n)){if(rM)return rM(t,n).value}else return;return t[n]},r0e=function e(){var t,n,r,i,a,o,s=arguments[0],l=1,c=arguments.length,u=!1;for(typeof s=="boolean"&&(u=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});lo.length;let l;s&&o.push(i);try{l=e.apply(this,o)}catch(c){const u=c;if(s&&n)throw u;return i(u)}s||(l instanceof Promise?l.then(a,i):l instanceof Error?i(l):a(l))}function i(o,...s){n||(n=!0,t(o,...s))}function a(o){i(null,o)}}class wo extends Error{constructor(t,n,r){const i=[null,null];let a={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof n=="string"&&(r=n,n=void 0),typeof r=="string"){const o=r.indexOf(":");o===-1?i[1]=r:(i[0]=r.slice(0,o),i[1]=r.slice(o+1))}n&&("type"in n||"position"in n?n.position&&(a=n.position):"start"in n||"end"in n?a=n:("line"in n||"column"in n)&&(a.start=n)),this.name=Em(n)||"1:1",this.message=typeof t=="object"?t.message:t,this.stack="",typeof t=="object"&&t.stack&&(this.stack=t.stack),this.reason=this.message,this.fatal,this.line=a.start.line,this.column=a.start.column,this.position=a,this.source=i[0],this.ruleId=i[1],this.file,this.actual,this.expected,this.url,this.note}}wo.prototype.file="";wo.prototype.name="";wo.prototype.reason="";wo.prototype.message="";wo.prototype.stack="";wo.prototype.fatal=null;wo.prototype.column=null;wo.prototype.line=null;wo.prototype.source=null;wo.prototype.ruleId=null;wo.prototype.position=null;const fs={basename:o0e,dirname:s0e,extname:l0e,join:c0e,sep:"/"};function o0e(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Yg(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.charCodeAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.charCodeAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.charCodeAt(i)===t.charCodeAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function s0e(e){if(Yg(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.charCodeAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.charCodeAt(0)===47?"/":".":t===1&&e.charCodeAt(0)===47?"//":e.slice(0,t)}function l0e(e){Yg(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const s=e.charCodeAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function c0e(...e){let t=-1,n;for(;++t0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function d0e(e,t){let n="",r=0,i=-1,a=0,o=-1,s,l;for(;++o<=e.length;){if(o2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function Yg(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const f0e={cwd:h0e};function h0e(){return"/"}function a8(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function p0e(e){if(typeof e=="string")e=new URL(e);else if(!a8(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return m0e(e)}function m0e(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n{if(_||!T||!$)A(_);else{const R=a.stringify(T,$);R==null||(k0e(R)?$.value=R:$.result=R),A(_,$)}});function A(_,T){_||!T?S(_):k?k(T):C(null,T)}}}function g(b){let C;a.freeze(),J4("processSync",a.Parser),Q4("processSync",a.Compiler);const w=T0(b);return a.process(w,k),fM("processSync","process",C),w;function k(S){C=!0,tM(S)}}}function uM(e,t){return typeof e=="function"&&e.prototype&&(_0e(e.prototype)||t in e.prototype)}function _0e(e){let t;for(t in e)if(WV.call(e,t))return!0;return!1}function J4(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function Q4(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function e6(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function dM(e){if(!i8(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function fM(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function T0(e){return b0e(e)?e:new g0e(e)}function b0e(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function k0e(e){return typeof e=="string"||HV(e)}let KV=class{},YV=class{constructor(){this.elements=[],this.size=()=>this.elements.length,this.top=()=>this.elements.at(-1),this.push=t=>{var n;(n=this.top())==null||n.push(t)},this.open=t=>{this.elements.push(t)},this.close=()=>{const t=this.elements.pop();if(!t)throw sV();return t}}},w0e=class ZV extends KV{constructor(t,n,r){super(),this.type=t,this.content=n,this.attrs=r}push(t,...n){this.content.push(t,...n)}pop(){return this.content.pop()}static create(t,n,r){return new ZV(t,n,r)}};var XV=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},ua=(e,t,n)=>(XV(e,t,"read from private field"),n?n.call(e):t.get(e)),Wu=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},t6=(e,t,n,r)=>(XV(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),fl,tb,s8,l8,c8,nb,rb;const JV=class extends YV{constructor(t){super(),Wu(this,fl,rn.none),Wu(this,tb,n=>n.isText),Wu(this,s8,(n,r)=>{if(ua(this,tb).call(this,n)&&ua(this,tb).call(this,r)&&rn.sameSet(n.marks,r.marks))return this.schema.text(n.text+r.text,n.marks)}),Wu(this,l8,n=>{const r=Object.values({...this.schema.nodes,...this.schema.marks}).find(i=>i.spec.parseMarkdown.match(n));if(!r)throw Zde(n);return r}),Wu(this,c8,n=>{const r=ua(this,l8).call(this,n);r.spec.parseMarkdown.runner(this,n,r)}),this.injectRoot=(n,r,i)=>(this.openNode(r,i),this.next(n.children),this),this.openNode=(n,r)=>(this.open(w0e.create(n,[],r)),this),Wu(this,nb,()=>{t6(this,fl,rn.none);const n=this.close();return ua(this,rb).call(this,n.type,n.attrs,n.content)}),this.closeNode=()=>(ua(this,nb).call(this),this),Wu(this,rb,(n,r,i)=>{const a=n.createAndFill(r,i,ua(this,fl));if(!a)throw Yde(n,r,i);return this.push(a),a}),this.addNode=(n,r,i)=>(ua(this,rb).call(this,n,r,i),this),this.openMark=(n,r)=>{const i=n.create(r);return t6(this,fl,i.addToSet(ua(this,fl))),this},this.closeMark=n=>(t6(this,fl,n.removeFromSet(ua(this,fl))),this),this.addText=n=>{const r=this.top();if(!r)throw sV();const i=r.pop(),a=this.schema.text(n,ua(this,fl));if(!i)return r.push(a),this;const o=ua(this,s8).call(this,i,a);return o?(r.push(o),this):(r.push(i,a),this)},this.build=()=>{let n;do n=ua(this,nb).call(this);while(this.size());return n},this.next=(n=[])=>([n].flat().forEach(r=>ua(this,c8).call(this,r)),this),this.toDoc=()=>this.build(),this.run=(n,r)=>{const i=n.runSync(n.parse(r),r);return this.next(i),this},this.schema=t}};let QV=JV;fl=new WeakMap;tb=new WeakMap;s8=new WeakMap;l8=new WeakMap;c8=new WeakMap;nb=new WeakMap;rb=new WeakMap;QV.create=(e,t)=>{const n=new JV(e);return r=>(n.run(t,r),n.toDoc())};const eq=class extends KV{constructor(t,n,r,i={}){super(),this.type=t,this.children=n,this.value=r,this.props=i,this.push=(a,...o)=>{this.children||(this.children=[]),this.children.push(a,...o)},this.pop=()=>{var a;return(a=this.children)==null?void 0:a.pop()}}};let u8=eq;u8.create=(e,t,n,r={})=>new eq(e,t,n,r);var tq=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Qn=(e,t,n)=>(tq(e,t,"read from private field"),n?n.call(e):t.get(e)),Ha=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},hM=(e,t,n,r)=>(tq(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Cc,ib,d8,f8,ab,h8,ob,p8,em,sb,m8,lb;const v0e=e=>Object.prototype.hasOwnProperty.call(e,"size"),nq=class extends YV{constructor(t){super(),Ha(this,Cc,rn.none),Ha(this,ib,n=>{const r=Object.values({...this.schema.nodes,...this.schema.marks}).find(i=>i.spec.toMarkdown.match(n));if(!r)throw Xde(n.type);return r}),Ha(this,d8,n=>Qn(this,ib).call(this,n).spec.toMarkdown.runner(this,n)),Ha(this,f8,(n,r)=>Qn(this,ib).call(this,n).spec.toMarkdown.runner(this,n,r)),Ha(this,ab,n=>{const{marks:r}=n,i=a=>a.type.spec.priority??50;[...r].sort((a,o)=>i(a)-i(o)).every(a=>!Qn(this,f8).call(this,a,n))&&Qn(this,d8).call(this,n),r.forEach(a=>Qn(this,lb).call(this,a))}),Ha(this,h8,(n,r)=>{var i;if(n.type===r||((i=n.children)==null?void 0:i.length)!==1)return n;const a=c=>{var u;if(c.type===r)return c;if(((u=c.children)==null?void 0:u.length)!==1)return null;const[f]=c.children;return f?a(f):null},o=a(n);if(!o)return n;const s=o.children?[...o.children]:void 0,l={...n,children:s};return l.children=s,o.children=[l],o}),Ha(this,ob,n=>{const{children:r}=n;return r&&(n.children=r.reduce((i,a,o)=>{if(o===0)return[a];const s=i.at(-1);if(s&&s.isMark&&a.isMark){a=Qn(this,h8).call(this,a,s.type);const{children:l,...c}=a,{children:u,...f}=s;if(a.type===s.type&&l&&u&&JSON.stringify(c)===JSON.stringify(f)){const h={...f,children:[...u,...l]};return i.slice(0,-1).concat(Qn(this,ob).call(this,h))}}return i.concat(a)},[])),n}),Ha(this,p8,n=>{const r={...n.props,type:n.type};return n.children&&(r.children=n.children),n.value&&(r.value=n.value),r}),this.openNode=(n,r,i)=>(this.open(u8.create(n,void 0,r,i)),this),Ha(this,em,()=>{const n=this.close();return Qn(this,sb).call(this,n.type,n.children,n.value,n.props)}),this.closeNode=()=>(Qn(this,em).call(this),this),Ha(this,sb,(n,r,i,a)=>{const o=u8.create(n,r,i,a),s=Qn(this,ob).call(this,Qn(this,p8).call(this,o));return this.push(s),s}),this.addNode=(n,r,i,a)=>(Qn(this,sb).call(this,n,r,i,a),this),Ha(this,m8,(n,r,i,a)=>n.isInSet(Qn(this,Cc))?this:(hM(this,Cc,n.addToSet(Qn(this,Cc))),this.openNode(r,i,{...a,isMark:!0}))),Ha(this,lb,n=>{n.isInSet(Qn(this,Cc))&&(hM(this,Cc,n.type.removeFromSet(Qn(this,Cc))),Qn(this,em).call(this))}),this.withMark=(n,r,i,a)=>(Qn(this,m8).call(this,n,r,i,a),this),this.closeMark=n=>(Qn(this,lb).call(this,n),this),this.build=()=>{let n=null;do n=Qn(this,em).call(this);while(this.size());return n},this.next=n=>v0e(n)?(n.forEach(r=>{Qn(this,ab).call(this,r)}),this):(Qn(this,ab).call(this,n),this),this.toString=n=>n.stringify(this.build()),this.run=n=>(this.next(n),this),this.schema=t}};let rq=nq;Cc=new WeakMap;ib=new WeakMap;d8=new WeakMap;f8=new WeakMap;ab=new WeakMap;h8=new WeakMap;ob=new WeakMap;p8=new WeakMap;em=new WeakMap;sb=new WeakMap;m8=new WeakMap;lb=new WeakMap;rq.create=(e,t)=>{const n=new nq(e);return r=>(n.run(r),n.toString(t))};class Yl{constructor(t,n){this.match=t,this.match=t,this.handler=typeof n=="string"?x0e(n):n}}function x0e(e){return function(t,n,r,i){let a=e;if(n[1]){let o=n[0].lastIndexOf(n[1]);a+=n[0].slice(o+n[1].length),r+=o;let s=r-i;s>0&&(a=n[0].slice(o-s,o)+a,r=i)}return t.tr.insertText(a,r,i)}}function gS(e,t,n=null,r){return new Yl(e,(i,a,o,s)=>{let l=n instanceof Function?n(a):n,c=i.tr.delete(o,s),u=c.doc.resolve(o),f=u.blockRange(),h=f&&GC(f,t,l);if(!h)return null;c.wrap(f,h);let m=c.doc.resolve(o-1).nodeBefore;return m&&m.type==t&&Sv(c.doc,o-1)&&(!r||r(a,m))&&c.join(o-1),c})}function iq(e,t,n=null){return new Yl(e,(r,i,a,o)=>{let s=r.doc.resolve(a),l=n instanceof Function?n(i):n;return s.node(-1).canReplaceWith(s.index(-1),s.indexAfter(-1),t)?r.tr.delete(a,o).setBlockType(a,a,t,l):null})}const uu=typeof navigator<"u"?navigator:null,pM=typeof document<"u"?document:null,Du=uu&&uu.userAgent||"",g8=/Edge\/(\d+)/.exec(Du),aq=/MSIE \d/.exec(Du),y8=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Du),Rv=!!(aq||y8||g8),C0e=aq?document.documentMode:y8?+y8[1]:g8?+g8[1]:0,oq=!Rv&&/gecko\/(\d+)/i.test(Du),S0e=oq&&+(/Firefox\/(\d+)/.exec(Du)||[0,0])[1],_8=!Rv&&/Chrome\/(\d+)/.exec(Du),D0e=!!_8,E0e=_8?+_8[1]:0,sq=!Rv&&!!uu&&/Apple Computer/.test(uu.vendor),lq=sq&&(/Mobile\/\w+/.test(Du)||!!uu&&uu.maxTouchPoints>2),T0e=lq||(uu?/Mac/.test(uu.platform):!1),A0e=/Android \d/.test(Du),cq=!!pM&&"webkitFontSmoothing"in pM.documentElement.style,z0e=cq?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;var mM=Object.freeze({__proto__:null,ie:Rv,ie_version:C0e,gecko:oq,gecko_version:S0e,chrome:D0e,chrome_version:E0e,safari:sq,ios:lq,mac:T0e,android:A0e,webkit:cq,webkit_version:z0e});function n6(e,t,n,r,i,a){if(e.composing)return!1;const o=e.state,s=o.doc.resolve(t);if(s.parent.type.spec.code)return!1;const l=s.parent.textBetween(Math.max(0,s.parentOffset-500),s.parentOffset,void 0,"")+r;for(let c=0;c{const t=new Bn({key:F0e,isInputRules:!0,state:{init(){return null},apply(n,r){const i=n.getMeta(this);return i||(n.selectionSet||n.docChanged?null:r)}},props:{handleTextInput(n,r,i,a){return n6(n,r,i,a,e,t)},handleDOMEvents:{compositionend:n=>(setTimeout(()=>{const{$cursor:r}=n.state.selection;r&&n6(n,r.pos,r.pos,"",e,t)}),!1)},handleKeyDown(n,r){if(r.key!=="Enter")return!1;const{$cursor:i}=n.state.selection;return i?n6(n,i.pos,i.pos,` +`,e,t):!1}}});return t};var M0e=Object.defineProperty,O0e=Object.defineProperties,N0e=Object.getOwnPropertyDescriptors,gM=Object.getOwnPropertySymbols,L0e=Object.prototype.hasOwnProperty,I0e=Object.prototype.propertyIsEnumerable,yM=(e,t,n)=>t in e?M0e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,B0e=(e,t)=>{for(var n in t||(t={}))L0e.call(t,n)&&yM(e,n,t[n]);if(gM)for(var n of gM(t))I0e.call(t,n)&&yM(e,n,t[n]);return e},R0e=(e,t)=>O0e(e,N0e(t));function _M(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function uq(e,t,n){const i=e.state.doc.content.size,a=_M(t,0,i),o=_M(n,0,i),s=e.coordsAtPos(a),l=e.coordsAtPos(o,-1),c=Math.min(s.top,l.top),u=Math.max(s.bottom,l.bottom),f=Math.min(s.left,l.left),h=Math.max(s.right,l.right),m=h-f,g=u-c,w={top:c,bottom:u,left:f,right:h,width:m,height:g,x:f,y:c};return R0e(B0e({},w),{toJSON:()=>w})}const Pv=e=>Object.assign(Object.create(e),e).setTime(Date.now()),P0e=(e,t)=>Array.isArray(e)&&e.includes(t.type)||t.type===e,j0e=(e,t=!0)=>{const n=[];return e.descendants((r,i)=>{if(n.push({node:r,pos:i}),!t)return!1}),n},Rk=e=>(t,n)=>j0e(t,n).filter(r=>e(r.node)),V0e=(e,t,n)=>Rk(r=>!!t.isInSet(r.marks))(e,n),q0e=(e,t)=>{const n=t.nodes[e];if(!n)throw Jde("node",e);return n},H0e=e=>t=>{for(let n=t.depth;n>0;n--){const r=t.node(n);if(e(r))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:r}}},dq=e=>t=>H0e(e)(t.$from),fq=(e,t)=>{if(!(e instanceof Mt))return;const{node:n,$from:r}=e;if(P0e(t,n))return{node:n,pos:r.pos,start:r.start(r.depth),depth:r.depth}},hq=(e,t)=>e.selection.empty?!1:(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function U0e(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("backward",e):n.parentOffset>0)?null:n}const W0e=(e,t,n)=>{let r=U0e(e,n);if(!r)return!1;let i=pq(r);if(!i){let o=r.blockRange(),s=o&&Cv(o);return s==null?!1:(t&&t(e.tr.lift(o,s).scrollIntoView()),!0)}let a=i.nodeBefore;if(!a.type.spec.isolating&&gq(e,i,t))return!0;if(r.parent.content.size==0&&(dp(a,"end")||Mt.isSelectable(a))){let o=KC(e.doc,r.before(),r.after(),Ue.empty);if(o&&o.slice.size{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;a=pq(r)}let o=a&&a.nodeBefore;return!o||!Mt.isSelectable(o)?!1:(t&&t(e.tr.setSelection(Mt.create(e.doc,a.pos-o.nodeSize)).scrollIntoView()),!0)};function pq(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function K0e(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("forward",e):n.parentOffset{let r=K0e(e,n);if(!r)return!1;let i=mq(r);if(!i)return!1;let a=i.nodeAfter;if(gq(e,i,t))return!0;if(r.parent.content.size==0&&(dp(a,"start")||Mt.isSelectable(a))){let o=KC(e.doc,r.before(),r.after(),Ue.empty);if(o&&o.slice.size{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset=0;t--){let n=e.node(t);if(e.index(t)+1{let{$head:n,$anchor:r}=e.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(t&&t(e.tr.insertText(` +`).scrollIntoView()),!0)};function yS(e){for(let t=0;t{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),a=n.indexAfter(-1),o=yS(i.contentMatchAt(a));if(!o||!i.canReplaceWith(a,a,o))return!1;if(t){let s=n.after(),l=e.tr.replaceWith(s,s,o.createAndFill());l.setSelection($t.near(l.doc.resolve(s),1)),t(l.scrollIntoView())}return!0},Q0e=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof va||r.parent.inlineContent||i.parent.inlineContent)return!1;let a=yS(i.parent.contentMatchAt(i.indexAfter()));if(!a||!a.isTextblock)return!1;if(t){let o=(!r.parentOffset&&i.index(){let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let a=n.before();if(Ih(e.doc,a))return t&&t(e.tr.split(a).scrollIntoView()),!0}let r=n.blockRange(),i=r&&Cv(r);return i==null?!1:(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)};function tme(e){return(t,n)=>{let{$from:r,$to:i}=t.selection;if(t.selection instanceof Mt&&t.selection.node.isBlock)return!r.parentOffset||!Ih(t.doc,r.pos)?!1:(n&&n(t.tr.split(r.pos).scrollIntoView()),!0);if(!r.parent.isBlock)return!1;if(n){let a=i.parentOffset==i.parent.content.size,o=t.tr;(t.selection instanceof Nt||t.selection instanceof va)&&o.deleteSelection();let s=r.depth==0?null:yS(r.node(-1).contentMatchAt(r.indexAfter(-1))),l=e&&e(i.parent,a),c=l?[l]:a&&s?[{type:s}]:void 0,u=Ih(o.doc,o.mapping.map(r.pos),1,c);if(!c&&!u&&Ih(o.doc,o.mapping.map(r.pos),1,s?[{type:s}]:void 0)&&(s&&(c=[{type:s}]),u=!0),u&&(o.split(o.mapping.map(r.pos),1,c),!a&&!r.parentOffset&&r.parent.type!=s)){let f=o.mapping.map(r.before()),h=o.doc.resolve(f);s&&r.node(-1).canReplaceWith(h.index(),h.index()+1,s)&&o.setNodeMarkup(o.mapping.map(r.before()),s)}n(o.scrollIntoView())}return!0}}const nme=tme(),rme=(e,t)=>(t&&t(e.tr.setSelection(new va(e.doc))),!0);function ime(e,t,n){let r=t.nodeBefore,i=t.nodeAfter,a=t.index();return!r||!i||!r.type.compatibleContent(i.type)?!1:!r.content.size&&t.parent.canReplace(a-1,a)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),!0):!t.parent.canReplace(a,a+1)||!(i.isTextblock||Sv(e.doc,t.pos))?!1:(n&&n(e.tr.clearIncompatible(t.pos,r.type,r.contentMatchAt(r.childCount)).join(t.pos).scrollIntoView()),!0)}function gq(e,t,n){let r=t.nodeBefore,i=t.nodeAfter,a,o;if(r.type.spec.isolating||i.type.spec.isolating)return!1;if(ime(e,t,n))return!0;let s=t.parent.canReplace(t.index(),t.index()+1);if(s&&(a=(o=r.contentMatchAt(r.childCount)).findWrapping(i.type))&&o.matchType(a[0]||i.type).validEnd){if(n){let f=t.pos+i.nodeSize,h=Ee.empty;for(let b=a.length-1;b>=0;b--)h=Ee.from(a[b].create(null,h));h=Ee.from(r.copy(h));let m=e.tr.step(new Wr(t.pos-1,f,t.pos,f,new Ue(h,1,0),a.length,!0)),g=f+2*a.length;Sv(m.doc,g)&&m.join(g),n(m.scrollIntoView())}return!0}let l=$t.findFrom(t,1),c=l&&l.$from.blockRange(l.$to),u=c&&Cv(c);if(u!=null&&u>=t.depth)return n&&n(e.tr.lift(c,u).scrollIntoView()),!0;if(s&&dp(i,"start",!0)&&dp(r,"end")){let f=r,h=[];for(;h.push(f),!f.isTextblock;)f=f.lastChild;let m=i,g=1;for(;!m.isTextblock;m=m.firstChild)g++;if(f.canReplace(f.childCount,f.childCount,m.content)){if(n){let b=Ee.empty;for(let w=h.length-1;w>=0;w--)b=Ee.from(h[w].copy(b));let C=e.tr.step(new Wr(t.pos-h.length,t.pos+i.nodeSize,t.pos+g,t.pos+i.nodeSize-g,new Ue(b,h.length,0),0,!0));n(C.scrollIntoView())}return!0}}return!1}function yq(e){return function(t,n){let r=t.selection,i=e<0?r.$from:r.$to,a=i.depth;for(;i.node(a).isInline;){if(!a)return!1;a--}return i.node(a).isTextblock?(n&&n(t.tr.setSelection(Nt.create(t.doc,e<0?i.start(a):i.end(a)))),!0):!1}}const ame=yq(-1),ome=yq(1);function _S(e,t=null){return function(n,r){let{$from:i,$to:a}=n.selection,o=i.blockRange(a),s=o&&GC(o,e,t);return s?(r&&r(n.tr.wrap(o,s).scrollIntoView()),!0):!1}}function Zd(e,t=null){return function(n,r){let i=!1;for(let a=0;a{if(i)return!1;if(!(!l.isTextblock||l.hasMarkup(e,t)))if(l.type==e)i=!0;else{let u=n.doc.resolve(c),f=u.index();i=u.parent.canReplaceWith(f,f+1,e)}})}if(!i)return!1;if(r){let a=n.tr;for(let o=0;o{if(o)return!1;o=s.inlineContent&&s.type.allowsMarkType(n)}),o)return!0}return!1}function jv(e,t=null){return function(n,r){let{empty:i,$cursor:a,ranges:o}=n.selection;if(i&&!a||!sme(n.doc,o,e))return!1;if(r)if(a)e.isInSet(n.storedMarks||a.marks())?r(n.tr.removeStoredMark(e)):r(n.tr.addStoredMark(e.create(t)));else{let s=!1,l=n.tr;for(let c=0;!s&&c",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},ume=typeof navigator<"u"&&/Mac/.test(navigator.platform),dme=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Hr=0;Hr<10;Hr++)du[48+Hr]=du[96+Hr]=String(Hr);for(var Hr=1;Hr<=24;Hr++)du[Hr+111]="F"+Hr;for(var Hr=65;Hr<=90;Hr++)du[Hr]=String.fromCharCode(Hr+32),Pk[Hr]=String.fromCharCode(Hr);for(var i6 in du)Pk.hasOwnProperty(i6)||(Pk[i6]=du[i6]);function fme(e){var t=ume&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||dme&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?Pk:du)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const hme=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function pme(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n=="Space"&&(n=" ");let r,i,a,o;for(let s=0;s127)&&(a=du[r.keyCode])&&a!=i){let s=t[a6(a,r)];if(s&&s(n.state,n.dispatch,n))return!0}}return!1}}var wq=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},gt=(e,t,n)=>(wq(e,t,"read from private field"),n?n.call(e):t.get(e)),Pr=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Hn=(e,t,n,r)=>(wq(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);const Eu=(e,t)=>(e.meta={package:"@milkdown/core",group:"System",...t},e),vq={strong:(e,t,n,r)=>{const i=e.marker||n.options.strong||"*",a=n.enter("strong"),o=n.createTracker(r);let s=o.move(i+i);return s+=o.move(n.containerPhrasing(e,{before:s,after:i,...o.current()})),s+=o.move(i+i),a(),s},emphasis:(e,t,n,r)=>{const i=e.marker||n.options.emphasis||"*",a=n.enter("emphasis"),o=n.createTracker(r);let s=o.move(i);return s+=o.move(n.containerPhrasing(e,{before:s,after:i,...o.current()})),s+=o.move(i),a(),s}},cb=Cu("ConfigReady"),gme=e=>{const t=n=>(n.record(cb),async()=>(await e(n),n.done(cb),()=>{n.clearTimer(cb)}));return Eu(t,{displayName:"Config"}),t},zd=Cu("InitReady"),o6=un([],"initTimer"),kM=un({},"editor"),gg=un([],"inputRules"),Ns=un([],"prosePlugins"),yg=un([],"remarkPlugins"),_g=un([],"nodeView"),bg=un([],"markView"),Fd=un(o8().use(Qx).use(r8),"remark"),Tm=un({handlers:vq},"remarkStringifyOptions"),yme=e=>{const t=n=>(n.inject(kM,e).inject(Ns,[]).inject(yg,[]).inject(gg,[]).inject(_g,[]).inject(bg,[]).inject(Tm,{handlers:vq}).inject(Fd,o8().use(Qx).use(r8)).inject(o6,[cb]).record(zd),async()=>{await n.waitTimers(o6);const r=n.get(Tm);return n.set(Fd,o8().use(Qx).use(r8,r)),n.done(zd),()=>{n.remove(kM).remove(Ns).remove(yg).remove(gg).remove(_g).remove(bg).remove(Tm).remove(Fd).remove(o6).clearTimer(zd)}});return Eu(t,{displayName:"Init"}),t},Ko=Cu("SchemaReady"),s6=un([],"schemaTimer"),Es=un({},"schema"),Ph=un([],"nodes"),jh=un([],"marks"),wM=e=>{var t;return{...e,parseDOM:(t=e.parseDOM)==null?void 0:t.map(n=>({priority:e.priority,...n}))}},xq=e=>(e.inject(Es,{}).inject(Ph,[]).inject(jh,[]).inject(s6,[zd]).record(Ko),async()=>{await e.waitTimers(s6);const t=e.get(Fd),n=e.get(yg).reduce((o,s)=>o.use(s),t);e.set(Fd,n);const r=Object.fromEntries(e.get(Ph).map(([o,s])=>[o,wM(s)])),i=Object.fromEntries(e.get(jh).map(([o,s])=>[o,wM(s)])),a=new Ble({nodes:r,marks:i});return e.set(Es,a),e.done(Ko),()=>{e.remove(Es).remove(Ph).remove(jh).remove(s6).clearTimer(Ko)}});Eu(xq,{displayName:"Schema"});const ub=Cu("ParserReady"),Cq=()=>{throw sS()},Vh=un(Cq,"parser"),l6=un([],"parserTimer"),Sq=e=>(e.inject(Vh,Cq).inject(l6,[Ko]).record(ub),async()=>{await e.waitTimers(l6);const t=e.get(Fd),n=e.get(Es);return e.set(Vh,QV.create(n,t)),e.done(ub),()=>{e.remove(Vh).remove(l6).clearTimer(ub)}});Eu(Sq,{displayName:"Parser"});const Am=Cu("SerializerReady"),c6=un([],"serializerTimer"),Dq=()=>{throw sS()},$d=un(Dq,"serializer"),Eq=e=>(e.inject($d,Dq).inject(c6,[Ko]).record(Am),async()=>{await e.waitTimers(c6);const t=e.get(Fd),n=e.get(Es);return e.set($d,rq.create(n,t)),e.done(Am),()=>{e.remove($d).remove(c6).clearTimer(Am)}});Eu(Eq,{displayName:"Serializer"});const db=un("","defaultValue"),tm=un({},"editorState"),u6=un(e=>e,"stateOptions"),d6=un([],"editorStateTimer"),fb=Cu("EditorStateReady"),_me=(e,t,n)=>{if(typeof e=="string")return t(e);if(e.type==="html")return Wd.fromSchema(n).parse(e.dom);if(e.type==="json")return Wo.fromJSON(n,e.value);throw Wde(e)},bme=new Fn("MILKDOWN_STATE_TRACKER"),Tq=e=>(e.inject(db,"").inject(tm,{}).inject(u6,t=>t).inject(d6,[ub,Am,Fm]).record(fb),async()=>{await e.waitTimers(d6);const t=e.get(Es),n=e.get(Vh),r=e.get(gg),i=e.get(u6),a=e.get(Ns),o=e.get(db),s=_me(o,n,t),l=[...a,new Bn({key:bme,state:{init:()=>{},apply:(f,h,m,g)=>{e.set(tm,g)}}}),$0e({rules:r}),bq(cme)];e.set(Ns,l);const c=i({schema:t,doc:s,plugins:l}),u=bh.create(c);return e.set(tm,u),e.done(fb),()=>{e.remove(db).remove(tm).remove(u6).remove(d6).clearTimer(fb)}});Eu(Tq,{displayName:"EditorState"});const hb=Cu("EditorViewReady"),ai=un({},"editorView"),f6=un([],"editorViewTimer"),zm=un({},"editorViewOptions"),pb=un(null,"root"),b8=un(null,"rootDOM"),k8=un({},"rootAttrs"),kme=(e,t)=>{const n=document.createElement("div");n.className="milkdown",e.appendChild(n),t.set(b8,n);const r=t.get(k8);return Object.entries(r).forEach(([i,a])=>n.setAttribute(i,a)),n},wme=e=>{e.classList.add("editor"),e.setAttribute("role","textbox")},vme=new Fn("MILKDOWN_VIEW_CLEAR"),Aq=e=>(e.inject(pb,document.body).inject(ai,{}).inject(zm,{}).inject(b8,null).inject(k8,{}).inject(f6,[fb]).record(hb),async()=>{await e.wait(zd);const t=e.get(pb)||document.body,n=typeof t=="string"?document.querySelector(t):t;e.update(Ns,l=>[new Bn({key:vme,view:c=>{const u=n?kme(n,e):void 0;return(()=>{if(u&&n){const f=c.dom;n.replaceChild(u,f),u.appendChild(f)}})(),{destroy:()=>{u!=null&&u.parentNode&&(u==null||u.parentNode.replaceChild(c.dom,u)),u==null||u.remove()}}}}),...l]),await e.waitTimers(f6);const r=e.get(tm),i=e.get(zm),a=Object.fromEntries(e.get(_g)),o=Object.fromEntries(e.get(bg)),s=new Hue(n,{state:r,nodeViews:a,markViews:o,...i});return wme(s.dom),e.set(ai,s),e.done(hb),()=>{s==null||s.destroy(),e.remove(pb).remove(ai).remove(zm).remove(b8).remove(k8).remove(f6).clearTimer(hb)}});Eu(Aq,{displayName:"EditorView"});var Qf,rd;let zq=class{constructor(){Pr(this,Qf,void 0),Pr(this,rd,void 0),Hn(this,Qf,new uV),Hn(this,rd,null),this.setCtx=t=>{Hn(this,rd,t)}}get ctx(){return gt(this,rd)}create(t,n){const r=t.create(gt(this,Qf).sliceMap);return r.set(n),r}get(t){return gt(this,Qf).get(t).get()}remove(t){return gt(this,Qf).remove(t)}call(t,n){if(gt(this,rd)==null)throw Qde();const r=this.get(t)(n),i=gt(this,rd).get(ai);return r(i.state,i.dispatch,i)}};Qf=new WeakMap,rd=new WeakMap;const xme=(e="cmdKey")=>un(()=>()=>!1,e),Bt=un(new zq,"commands"),h6=un([Ko],"commandsTimer"),Fm=Cu("CommandsReady"),Fq=e=>{const t=new zq;return t.setCtx(e),e.inject(Bt,t).inject(h6,[Ko]).record(Fm),async()=>(await e.waitTimers(h6),e.done(Fm),()=>{e.remove(Bt).remove(h6).clearTimer(Fm)})};Eu(Fq,{displayName:"Commands"});var fn=(e=>(e.Idle="Idle",e.OnCreate="OnCreate",e.Created="Created",e.OnDestroy="OnDestroy",e.Destroyed="Destroyed",e))(fn||{}),eh,Ka,Sc,nm,mb,gb,fa,Dc,th,yb,nh,rm,_b,id,im;const $q=class{constructor(){Pr(this,eh,void 0),Pr(this,Ka,void 0),Pr(this,Sc,void 0),Pr(this,nm,void 0),Pr(this,mb,void 0),Pr(this,gb,void 0),Pr(this,fa,void 0),Pr(this,Dc,void 0),Pr(this,th,void 0),Pr(this,yb,void 0),Pr(this,nh,void 0),Pr(this,rm,void 0),Pr(this,_b,void 0),Pr(this,id,void 0),Pr(this,im,void 0),Hn(this,eh,!1),Hn(this,Ka,"Idle"),Hn(this,Sc,[]),Hn(this,nm,()=>{}),Hn(this,mb,new uV),Hn(this,gb,new afe),Hn(this,fa,new Map),Hn(this,Dc,new Map),Hn(this,th,new ife(gt(this,mb),gt(this,gb))),Hn(this,yb,()=>{const t=gme(async r=>{await Promise.all(gt(this,Sc).map(i=>i(r)))}),n=[xq,Sq,Eq,Fq,Tq,Aq,yme(this),t];gt(this,nh).call(this,n,gt(this,Dc))}),Hn(this,nh,(t,n)=>{t.forEach(r=>{const i=gt(this,th).produce(gt(this,eh)?r.meta:void 0),a=r(i);n.set(r,{ctx:i,handler:a,cleanup:void 0})})}),Hn(this,rm,(t,n=!1)=>Promise.all([t].flat().map(r=>{const i=gt(this,fa).get(r),a=i==null?void 0:i.cleanup;return n?gt(this,fa).delete(r):gt(this,fa).set(r,{ctx:void 0,handler:void 0,cleanup:void 0}),typeof a=="function"?a():a}))),Hn(this,_b,async()=>{await Promise.all([...gt(this,Dc).entries()].map(([t,{cleanup:n}])=>typeof n=="function"?n():n)),gt(this,Dc).clear()}),Hn(this,id,t=>{Hn(this,Ka,t),gt(this,nm).call(this,t)}),Hn(this,im,t=>[...t.entries()].map(async([n,r])=>{const{ctx:i,handler:a}=r;if(!a)return;const o=await a();t.set(n,{ctx:i,handler:a,cleanup:o})})),this.enableInspector=(t=!0)=>(Hn(this,eh,t),this),this.onStatusChange=t=>(Hn(this,nm,t),this),this.config=t=>(gt(this,Sc).push(t),this),this.removeConfig=t=>(Hn(this,Sc,gt(this,Sc).filter(n=>n!==t)),this),this.use=t=>{const n=[t].flat();return n.flat().forEach(r=>{gt(this,fa).set(r,{ctx:void 0,handler:void 0,cleanup:void 0})}),gt(this,Ka)==="Created"&>(this,nh).call(this,n,gt(this,fa)),this},this.remove=async t=>gt(this,Ka)==="OnCreate"?(console.warn("[Milkdown]: You are trying to remove plugins when the editor is creating, this is not recommended, please check your code."),new Promise(n=>{setTimeout(()=>{n(this.remove(t))},50)})):(await gt(this,rm).call(this,[t].flat(),!0),this),this.create=async()=>gt(this,Ka)==="OnCreate"?this:(gt(this,Ka)==="Created"&&await this.destroy(),gt(this,id).call(this,"OnCreate"),gt(this,yb).call(this),gt(this,nh).call(this,[...gt(this,fa).keys()],gt(this,fa)),await Promise.all([gt(this,im).call(this,gt(this,Dc)),gt(this,im).call(this,gt(this,fa))].flat()),gt(this,id).call(this,"Created"),this),this.destroy=async(t=!1)=>gt(this,Ka)==="Destroyed"||gt(this,Ka)==="OnDestroy"?this:gt(this,Ka)==="OnCreate"?new Promise(n=>{setTimeout(()=>{n(this.destroy(t))},50)}):(t&&Hn(this,Sc,[]),gt(this,id).call(this,"OnDestroy"),await gt(this,rm).call(this,[...gt(this,fa).keys()],t),await gt(this,_b).call(this),gt(this,id).call(this,"Destroyed"),this),this.action=t=>t(gt(this,th)),this.inspect=()=>gt(this,eh)?[...gt(this,Dc).values(),...gt(this,fa).values()].map(({ctx:t})=>{var n;return(n=t==null?void 0:t.inspector)==null?void 0:n.read()}).filter(t=>!!t):(console.warn("[Milkdown]: You are trying to collect inspection when inspector is disabled, please enable inspector by `editor.enableInspector()` first."),[])}static make(){return new $q}get ctx(){return gt(this,th)}get status(){return gt(this,Ka)}};let Cme=$q;eh=new WeakMap,Ka=new WeakMap,Sc=new WeakMap,nm=new WeakMap,mb=new WeakMap,gb=new WeakMap,fa=new WeakMap,Dc=new WeakMap,th=new WeakMap,yb=new WeakMap,nh=new WeakMap,rm=new WeakMap,_b=new WeakMap,id=new WeakMap,im=new WeakMap;const Sme=F.forwardRef((e,t)=>{const[n,r]=jP();return F.useImperativeHandle(t,()=>({reset:()=>{const i=r();n||!i||i.status!==fn.Created||i.action(a=>{const o=a.get(ai),{state:s}=o;o.dispatch(s.tr.replace(0,s.doc.content.size))})},getValue:()=>{const i=r();if(!(n||!i||i.status!==fn.Created))return i.action(a=>{const o=a.get(ai),s=a.get($d),{state:l}=o;return s(l.tr.doc)})}})),j(ple,{})}),Dme="/notion-style-editor/assets/Figtree-Black-f203ff7e.ttf",Eme="/notion-style-editor/assets/Figtree-BlackItalic-d1cdd6a4.ttf",Tme="/notion-style-editor/assets/Figtree-Bold-c87c9df6.ttf",Ame="/notion-style-editor/assets/Figtree-BoldItalic-47a45360.ttf",zme="/notion-style-editor/assets/Figtree-ExtraBold-b118e896.ttf",Fme="/notion-style-editor/assets/Figtree-ExtraBoldItalic-8a55c98f.ttf",$me="/notion-style-editor/assets/Figtree-Italic-8f7a7c5f.ttf",Mme="/notion-style-editor/assets/Figtree-Light-af5b00eb.ttf",Ome="/notion-style-editor/assets/Figtree-LightItalic-efc83647.ttf",Nme="/notion-style-editor/assets/Figtree-Medium-8dac39a0.ttf",Lme="/notion-style-editor/assets/Figtree-MediumItalic-da65130c.ttf",Ime="/notion-style-editor/assets/Figtree-Regular-edf84b2d.ttf",Bme="/notion-style-editor/assets/Figtree-SemiBold-c16f4eee.ttf",Rme="/notion-style-editor/assets/Figtree-SemiBoldItalic-9df084e7.ttf",Pme=Tn(["@font-face{font-weight:300;font-family:Figtree;font-style:normal;src:local('Figtree'),url(",") format('truetype');}@font-face{font-weight:300;font-family:Figtree;font-style:italic;src:local('Figtree'),url(",") format('truetype');}@font-face{font-weight:400;font-family:Figtree;font-style:normal;src:local('Figtree'),url(",") format('truetype');}@font-face{font-weight:400;font-family:Figtree;font-style:italic;src:local('Figtree'),url(",") format('truetype');}@font-face{font-weight:500;font-family:Figtree;font-style:normal;src:local('Figtree'),url(",") format('truetype');}@font-face{font-weight:500;font-family:Figtree;font-style:italic;src:local('Figtree'),url(",") format('truetype');}@font-face{font-weight:600;font-family:Figtree;font-style:normal;src:local('Figtree'),url(",") format('truetype');}@font-face{font-weight:600;font-family:Figtree;font-style:italic;src:local('Figtree'),url(",") format('truetype');}@font-face{font-weight:700;font-family:Figtree;font-style:normal;src:local('Figtree'),url(",") format('truetype');}@font-face{font-weight:700;font-family:Figtree;font-style:italic;src:local('Figtree'),url(",") format('truetype');}@font-face{font-weight:800;font-family:Figtree;font-style:normal;src:local('Figtree'),url(",") format('truetype');}@font-face{font-weight:800;font-family:Figtree;font-style:italic;src:local('Figtree'),url(",") format('truetype');}@font-face{font-weight:900;font-family:Figtree;font-style:normal;src:local('Figtree'),url(",") format('truetype');}@font-face{font-weight:900;font-family:Figtree;font-style:italic;src:local('Figtree'),url(",") format('truetype');}"],Mme,Ome,Ime,$me,Nme,Lme,Bme,Rme,Tme,Ame,zme,Fme,Dme,Eme),jme="/notion-style-editor/assets/OpenSans-Bold-914b98c4.ttf",Vme="/notion-style-editor/assets/OpenSans-BoldItalic-256f1e0a.ttf",qme="/notion-style-editor/assets/OpenSans-ExtraBold-7eaf8525.ttf",Hme="/notion-style-editor/assets/OpenSans-ExtraBoldItalic-daccb094.ttf",Ume="/notion-style-editor/assets/OpenSans-Italic-2eecc792.ttf",Wme="/notion-style-editor/assets/OpenSans-Light-abca0004.ttf",Gme="/notion-style-editor/assets/OpenSans-LightItalic-1df8fcb9.ttf",Kme="/notion-style-editor/assets/OpenSans-Medium-bf3dc3e4.ttf",Yme="/notion-style-editor/assets/OpenSans-MediumItalic-cf5a2134.ttf",Zme="/notion-style-editor/assets/OpenSans-Regular-a0707e10.ttf",Xme="/notion-style-editor/assets/OpenSans-SemiBold-89275a1c.ttf",Jme="/notion-style-editor/assets/OpenSans-SemiBoldItalic-765e586b.ttf",Qme=Tn(["@font-face{font-weight:300;font-family:OpenSans;font-style:normal;src:local('OpenSans'),url(",") format('truetype');}@font-face{font-weight:300;font-family:OpenSans;font-style:italic;src:local('OpenSans'),url(",") format('truetype');}@font-face{font-weight:400;font-family:OpenSans;font-style:normal;src:local('OpenSans'),url(",") format('truetype');}@font-face{font-weight:400;font-family:OpenSans;font-style:italic;src:local('OpenSans'),url(",") format('truetype');}@font-face{font-weight:500;font-family:OpenSans;font-style:normal;src:local('OpenSans'),url(",") format('truetype');}@font-face{font-weight:500;font-family:OpenSans;font-style:italic;src:local('OpenSans'),url(",") format('truetype');}@font-face{font-weight:600;font-family:OpenSans;font-style:normal;src:local('OpenSans'),url(",") format('truetype');}@font-face{font-weight:600;font-family:OpenSans;font-style:italic;src:local('OpenSans'),url(",") format('truetype');}@font-face{font-weight:700;font-family:OpenSans;font-style:normal;src:local('OpenSans'),url(",") format('truetype');}@font-face{font-weight:700;font-family:OpenSans;font-style:italic;src:local('OpenSans'),url(",") format('truetype');}@font-face{font-weight:800;font-family:OpenSans;font-style:normal;src:local('OpenSans'),url(",") format('truetype');}@font-face{font-weight:800;font-family:OpenSans;font-style:italic;src:local('OpenSans'),url(",") format('truetype');}"],Wme,Gme,Zme,Ume,Kme,Yme,Xme,Jme,jme,Vme,qme,Hme),ege="/notion-style-editor/assets/SourceCodePro-Regular-a97f03d4.ttf",tge=Tn(["@font-face{font-family:SourceCodePro;font-style:normal;src:local('SourceCodePro'),url(",") format('truetype');}"],ege),nge=Tn(["",";",";",";"],Qme,tge,Pme),Xy={grey:"#6E7270",secondaryGrey:"#EAECEB",lightGrey:"#D6D6D6",secondaryLightGrey:"#F6F6F6",lightBlack:"#1F1F1F",white:"#FFFFFF",azure:"#E9F7F5",lightAzure:"#F8FBFB",lightGreen:"#68D391",green:"#45BAAC",transparentBlack:"rgba(0,0,0,0.17)",darkRed:"#EB0000"},Vt={fonts:{primary:"OpenSans",secondary:"SourceCodePro",figree:"Figtree"},sizes:{baseSize:16},components:{modal:{footer:{cancel:Xy.lightGrey,save:Xy.lightGreen},backdrop:{background:Xy.transparentBlack}},editor:{link:"#0836AA",mermaid:{lineColor:"#45BAAC",primaryColor:"#E9F7F5",primaryTextColor:"#1F1F1F",primaryBorderColor:"#45BAAC",secondaryColor:"#45BAAC",tertiaryColor:"#F6F6F6"}},selection:"#e9f7f5"},zIndexes:{menu:99,modal:{backdrop:100,container:101},dropdown:{container:99999}},colors:Xy,queries:{tablet:"426px",laptop:"700px",menuWithSpace:"724px"}},ee=e=>`${e/Vt.sizes.baseSize}rem`,rge=Tn(["position:absolute;left:-5000px;top:-5000px;"]),ige=Ae.div.withConfig({displayName:"EditorContainer"})(["width:100%;padding:"," "," ",";background-color:",";border:1px solid ",";border-radius:",";transition:border-color 0.2s ease-in;*{box-sizing:border-box;margin:0;padding:0;color:",";font-family:",";&::selection{background-color:",";}}&&&{.success-toaster div{color:",";}.error-toaster div{color:",";}.tippy-box{background-color:transparent;}.tippy-content{padding:0;}}",";&:hover,&:focus{border-color:",";}.ProseMirror-focused{border-color:",";outline:0;}.editor{position:relative;&::before{position:absolute;bottom:0;left:0;color:",";font-family:",";cursor:text;content:attr(data-placeholder);}blockquote{margin:"," 0;padding-left:",";border-left:4px solid ",";}ul,ol{padding-left:",";}li{padding-left:",";}p{margin:"," 0;}a{color:",";font-weight:600;text-decoration:none;}.emoji{width:",";height:",";}h1,h2,h3,h4,h5,h6{margin:"," 0;font-weight:bold;font-family:",";}h1{font-size:",";}h2{font-size:",";}}.tableWrapper{table{width:calc(100% - 14px);margin-top:",";margin-left:",";overflow:visible;font-size:",";border-collapse:collapse;th{position:relative;background-color:",";border-color:",";}th,td{padding:",";border-bottom:1px solid ",";&:not(:first-of-type){border-left:1px solid ",";}&:not(:last-of-type){border-right:1px solid ",";}&.selectedCell{background-color:",";}}}}"],ee(12),ee(12),ee(20),e=>e.theme.colors.white,e=>e.theme.colors.lightGrey,ee(6),e=>e.theme.colors.lightBlack,e=>e.theme.fonts.primary,e=>e.theme.components.selection,e=>e.theme.colors.white,e=>e.theme.colors.lightBlack,nge,e=>e.theme.colors.grey,e=>e.theme.colors.lightBlack,e=>e.theme.colors.grey,e=>e.theme.fonts.primary,ee(16),ee(20),e=>e.theme.colors.green,ee(20),ee(2),ee(16),e=>e.theme.components.editor.link,ee(16),ee(16),ee(16),e=>e.theme.fonts.figree,ee(32),ee(24),ee(12),ee(12),ee(14),e=>e.theme.colors.secondaryLightGrey,e=>e.theme.colors.white,ee(16),e=>e.theme.colors.lightGrey,e=>e.theme.colors.white,e=>e.theme.colors.white,e=>e.theme.colors.azure);HP("abcedfghicklmn",10);const Lt=(e,t)=>{const n=xme(e),r=i=>async()=>{r.key=n,await i.wait(Fm);const a=t(i);return i.get(Bt).create(n,a),r.run=o=>i.get(Bt).call(e,o),()=>{i.get(Bt).remove(n)}};return r},vo=e=>{const t=n=>async()=>{await n.wait(Ko);const r=e(n);return n.update(gg,i=>[...i,r]),t.inputRule=r,()=>{n.update(gg,i=>i.filter(a=>a!==r))}};return t},age=(e,t)=>{const n=r=>async()=>{const i=t(r);return r.update(jh,a=>[...a.filter(o=>o[0]!==e),[e,i]]),n.id=e,n.schema=i,()=>{r.update(jh,a=>a.filter(([o])=>o!==e))}};return n.type=r=>{const i=r.get(Es).marks[e];if(!i)throw efe(e);return i},n},kS=(e,t)=>{const n=r=>async()=>{const i=t(r);return r.update(Ph,a=>[...a.filter(o=>o[0]!==e),[e,i]]),n.id=e,n.schema=i,()=>{r.update(Ph,a=>a.filter(([o])=>o!==e))}};return n.type=r=>{const i=r.get(Es).nodes[e];if(!i)throw lV(e);return i},n},yr=e=>{let t;const n=r=>async()=>(await r.wait(Ko),t=e(r),r.update(Ns,i=>[...i,t]),()=>{r.update(Ns,i=>i.filter(a=>a!==t))});return n.plugin=()=>t,n.key=()=>t.spec.key,n},Ps=e=>{const t=n=>async()=>{await n.wait(zd);const r=e(n);return n.update(yg,i=>[...i,r]),t.plugin=r,()=>{n.update(yg,i=>i.filter(a=>a!==r))}};return t},oge=e=>{const t=n=>async()=>{await n.wait(Ko);const r=e(n),i=bq(r);return n.update(Ns,a=>[...a,i]),t.keymap=r,()=>{n.update(Ns,a=>a.filter(o=>o!==i))}};return t},jk=(e,t)=>{const n=r=>async()=>{await r.wait(Ko);const i=t(r);return e.type(r)instanceof zk?r.update(_g,a=>[...a,[e.id,i]]):r.update(bg,a=>[...a,[e.id,i]]),n.view=i,n.type=e,()=>{e.type(r)instanceof zk?r.update(_g,a=>a.filter(o=>o[0]!==e.id)):r.update(bg,a=>a.filter(o=>o[0]!==e.id))}};return n},Lr=(e,t)=>{const n=un(e,t),r=i=>(i.inject(n),()=>()=>{i.remove(n)});return r.key=n,r},cr=(e,t)=>{const n=Lr(t,e),r=kS(e,a=>a.get(n.key)(a)),i=[n,r];return i.id=r.id,i.node=r,i.type=a=>r.type(a),i.schema=r.schema,i.ctx=n,i.key=n.key,i.extendSchema=a=>o=>()=>{const s=o.get(n.key),l=a(s)(o);o.update(Ph,c=>[...c.filter(u=>u[0]!==e),[e,l]]),i.schema=l},i},Zg=(e,t)=>{const n=Lr(t,e),r=age(e,a=>a.get(n.key)(a)),i=[n,r];return i.id=r.id,i.mark=r,i.type=r.type,i.schema=r.schema,i.ctx=n,i.key=n.key,i.extendSchema=a=>o=>()=>{const s=o.get(n.key),l=a(s)(o);o.update(jh,c=>[...c.filter(u=>u[0]!==e),[e,l]]),i.schema=l},i},ea=(e,t)=>{const n=Object.fromEntries(Object.entries(t).map(([o,{shortcuts:s}])=>[o,s])),r=Lr(n,`${e}Keymap`),i=oge(o=>{const s=o.get(r.key),l=Object.entries(t).flatMap(([c,{command:u}])=>[s[c]].flat().map(f=>[f,u(o)]));return Object.fromEntries(l)}),a=[r,i];return a.ctx=r,a.shortcuts=i,a.key=r.key,a.keymap=i.keymap,a},xo=(e,t=()=>({}))=>Lr(t,`${e}Attr`),Xg=(e,t=()=>({}))=>Lr(t,`${e}Attr`);function sge(e,t){return n=>n.get(Bt).call(e,t)}const lge=(...e)=>{const t=e.length;let n=t;for(;n--;)if(typeof e[n]!="function")throw new TypeError("Expected a function");return(...r)=>{let i=0,a=t?e[i](...r):r[0];for(;++i{if(!e)return!1;if(Array.isArray(e))return e.length>1?!1:w8(e[0]);const t=e.content;return t?w8(t):e.type==="text"},cge=e=>{if(e.content.childCount===1){const t=e.content.firstChild;if((t==null?void 0:t.type.name)==="text"&&t.marks.length===0)return t;if((t==null?void 0:t.type.name)==="paragraph"&&t.childCount===1){const n=t.firstChild;if((n==null?void 0:n.type.name)==="text"&&n.marks.length===0)return n}}return!1},Mq=yr(e=>{const t=e.get(Es);e.update(zm,r=>({...r,editable:r.editable??(()=>!0)}));const n=new Fn("MILKDOWN_CLIPBOARD");return new Bn({key:n,props:{handlePaste:(r,i)=>{var a,o;const s=e.get(Vh),l=(o=(a=r.props).editable)==null?void 0:o.call(a,r.state),{clipboardData:c}=i;if(!l||!c||r.state.selection.$from.node().type.spec.code)return!1;const u=c.getData("text/plain"),f=c.getData("vscode-editor-data");if(f){const w=JSON.parse(f),k=w==null?void 0:w.mode;if(u&&k){const{tr:S}=r.state,E=q0e("code_block",t);return S.replaceSelectionWith(E.create({language:k})).setSelection(Nt.near(S.doc.resolve(Math.max(0,S.selection.from-2)))).insertText(u.replace(/\r\n?/g,` `)),r.dispatch(S),!0}}const h=c.getData("text/html");if(h.length===0&&u.length===0)return!1;const m=Wd.fromSchema(t);let g;if(h.length===0){const w=s(u);if(!w||typeof w=="string")return!1;g=ws.fromSchema(t).serializeFragment(w.content)}else{const w=document.createElement("template");w.innerHTML=h,g=w.content.cloneNode(!0),w.remove()}const b=m.parseSlice(g),C=cge(b);return C?(r.dispatch(r.state.tr.replaceSelectionWith(C,!0)),!0):(r.dispatch(r.state.tr.replaceSelection(b)),!0)},clipboardTextSerializer:r=>{const i=e.get($d);if(w8(r.content.toJSON()))return r.content.textBetween(0,r.content.size,` -`);const a=t.topNodeType.createAndFill(void 0,r.content);return a?i(a):""}}})});$q.meta={displayName:"Prose",package:"@milkdown/plugin-clipboard"};var v8={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function r(_){return n.includes(_)}const i=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","HTMLElement",...n];function a(_){return i.includes(_)}const o=["null","undefined","string","number","bigint","boolean","symbol"];function s(_){return o.includes(_)}function l(_){return T=>typeof T===_}const{toString:c}=Object.prototype,u=_=>{const T=c.call(_).slice(8,-1);if(/HTML\w+Element/.test(T)&&h.domElement(_))return"HTMLElement";if(a(T))return T},f=_=>T=>u(T)===_;function h(_){if(_===null)return"null";switch(typeof _){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol"}if(h.observable(_))return"Observable";if(h.array(_))return"Array";if(h.buffer(_))return"Buffer";const T=u(_);if(T)return T;if(_ instanceof String||_ instanceof Boolean||_ instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}h.undefined=l("undefined"),h.string=l("string");const m=l("number");h.number=_=>m(_)&&!h.nan(_),h.bigint=l("bigint"),h.function_=l("function"),h.null_=_=>_===null,h.class_=_=>h.function_(_)&&_.toString().startsWith("class "),h.boolean=_=>_===!0||_===!1,h.symbol=l("symbol"),h.numericString=_=>h.string(_)&&!h.emptyStringOrWhitespace(_)&&!Number.isNaN(Number(_)),h.array=(_,T)=>Array.isArray(_)?h.function_(T)?_.every(T):!0:!1,h.buffer=_=>{var T,$,R,O;return(O=(R=($=(T=_)===null||T===void 0?void 0:T.constructor)===null||$===void 0?void 0:$.isBuffer)===null||R===void 0?void 0:R.call($,_))!==null&&O!==void 0?O:!1},h.nullOrUndefined=_=>h.null_(_)||h.undefined(_),h.object=_=>!h.null_(_)&&(typeof _=="object"||h.function_(_)),h.iterable=_=>{var T;return h.function_((T=_)===null||T===void 0?void 0:T[Symbol.iterator])},h.asyncIterable=_=>{var T;return h.function_((T=_)===null||T===void 0?void 0:T[Symbol.asyncIterator])},h.generator=_=>h.iterable(_)&&h.function_(_.next)&&h.function_(_.throw),h.asyncGenerator=_=>h.asyncIterable(_)&&h.function_(_.next)&&h.function_(_.throw),h.nativePromise=_=>f("Promise")(_);const g=_=>{var T,$;return h.function_((T=_)===null||T===void 0?void 0:T.then)&&h.function_(($=_)===null||$===void 0?void 0:$.catch)};h.promise=_=>h.nativePromise(_)||g(_),h.generatorFunction=f("GeneratorFunction"),h.asyncGeneratorFunction=_=>u(_)==="AsyncGeneratorFunction",h.asyncFunction=_=>u(_)==="AsyncFunction",h.boundFunction=_=>h.function_(_)&&!_.hasOwnProperty("prototype"),h.regExp=f("RegExp"),h.date=f("Date"),h.error=f("Error"),h.map=_=>f("Map")(_),h.set=_=>f("Set")(_),h.weakMap=_=>f("WeakMap")(_),h.weakSet=_=>f("WeakSet")(_),h.int8Array=f("Int8Array"),h.uint8Array=f("Uint8Array"),h.uint8ClampedArray=f("Uint8ClampedArray"),h.int16Array=f("Int16Array"),h.uint16Array=f("Uint16Array"),h.int32Array=f("Int32Array"),h.uint32Array=f("Uint32Array"),h.float32Array=f("Float32Array"),h.float64Array=f("Float64Array"),h.bigInt64Array=f("BigInt64Array"),h.bigUint64Array=f("BigUint64Array"),h.arrayBuffer=f("ArrayBuffer"),h.sharedArrayBuffer=f("SharedArrayBuffer"),h.dataView=f("DataView"),h.directInstanceOf=(_,T)=>Object.getPrototypeOf(_)===T.prototype,h.urlInstance=_=>f("URL")(_),h.urlString=_=>{if(!h.string(_))return!1;try{return new URL(_),!0}catch{return!1}},h.truthy=_=>!!_,h.falsy=_=>!_,h.nan=_=>Number.isNaN(_),h.primitive=_=>h.null_(_)||s(typeof _),h.integer=_=>Number.isInteger(_),h.safeInteger=_=>Number.isSafeInteger(_),h.plainObject=_=>{if(c.call(_)!=="[object Object]")return!1;const T=Object.getPrototypeOf(_);return T===null||T===Object.getPrototypeOf({})},h.typedArray=_=>r(u(_));const b=_=>h.safeInteger(_)&&_>=0;h.arrayLike=_=>!h.nullOrUndefined(_)&&!h.function_(_)&&b(_.length),h.inRange=(_,T)=>{if(h.number(T))return _>=Math.min(0,T)&&_<=Math.max(T,0);if(h.array(T)&&T.length===2)return _>=Math.min(...T)&&_<=Math.max(...T);throw new TypeError(`Invalid range: ${JSON.stringify(T)}`)};const C=1,w=["innerHTML","ownerDocument","style","attributes","nodeValue"];h.domElement=_=>h.object(_)&&_.nodeType===C&&h.string(_.nodeName)&&!h.plainObject(_)&&w.every(T=>T in _),h.observable=_=>{var T,$,R,O;return _?_===(($=(T=_)[Symbol.observable])===null||$===void 0?void 0:$.call(T))||_===((O=(R=_)["@@observable"])===null||O===void 0?void 0:O.call(R)):!1},h.nodeStream=_=>h.object(_)&&h.function_(_.pipe)&&!h.observable(_),h.infinite=_=>_===1/0||_===-1/0;const k=_=>T=>h.integer(T)&&Math.abs(T%2)===_;h.evenInteger=k(0),h.oddInteger=k(1),h.emptyArray=_=>h.array(_)&&_.length===0,h.nonEmptyArray=_=>h.array(_)&&_.length>0,h.emptyString=_=>h.string(_)&&_.length===0,h.nonEmptyString=_=>h.string(_)&&_.length>0;const S=_=>h.string(_)&&!/\S/.test(_);h.emptyStringOrWhitespace=_=>h.emptyString(_)||S(_),h.emptyObject=_=>h.object(_)&&!h.map(_)&&!h.set(_)&&Object.keys(_).length===0,h.nonEmptyObject=_=>h.object(_)&&!h.map(_)&&!h.set(_)&&Object.keys(_).length>0,h.emptySet=_=>h.set(_)&&_.size===0,h.nonEmptySet=_=>h.set(_)&&_.size>0,h.emptyMap=_=>h.map(_)&&_.size===0,h.nonEmptyMap=_=>h.map(_)&&_.size>0;const E=(_,T,$)=>{if(!h.function_(T))throw new TypeError(`Invalid predicate: ${JSON.stringify(T)}`);if($.length===0)throw new TypeError("Invalid number of values");return _.call($,T)};h.any=(_,...T)=>(h.array(_)?_:[_]).some(R=>E(Array.prototype.some,R,T)),h.all=(_,...T)=>E(Array.prototype.every,_,T);const A=(_,T,$)=>{if(!_)throw new TypeError(`Expected value which is \`${T}\`, received value of type \`${h($)}\`.`)};t.assert={undefined:_=>A(h.undefined(_),"undefined",_),string:_=>A(h.string(_),"string",_),number:_=>A(h.number(_),"number",_),bigint:_=>A(h.bigint(_),"bigint",_),function_:_=>A(h.function_(_),"Function",_),null_:_=>A(h.null_(_),"null",_),class_:_=>A(h.class_(_),"Class",_),boolean:_=>A(h.boolean(_),"boolean",_),symbol:_=>A(h.symbol(_),"symbol",_),numericString:_=>A(h.numericString(_),"string with a number",_),array:(_,T)=>{A(h.array(_),"Array",_),T&&_.forEach(T)},buffer:_=>A(h.buffer(_),"Buffer",_),nullOrUndefined:_=>A(h.nullOrUndefined(_),"null or undefined",_),object:_=>A(h.object(_),"Object",_),iterable:_=>A(h.iterable(_),"Iterable",_),asyncIterable:_=>A(h.asyncIterable(_),"AsyncIterable",_),generator:_=>A(h.generator(_),"Generator",_),asyncGenerator:_=>A(h.asyncGenerator(_),"AsyncGenerator",_),nativePromise:_=>A(h.nativePromise(_),"native Promise",_),promise:_=>A(h.promise(_),"Promise",_),generatorFunction:_=>A(h.generatorFunction(_),"GeneratorFunction",_),asyncGeneratorFunction:_=>A(h.asyncGeneratorFunction(_),"AsyncGeneratorFunction",_),asyncFunction:_=>A(h.asyncFunction(_),"AsyncFunction",_),boundFunction:_=>A(h.boundFunction(_),"Function",_),regExp:_=>A(h.regExp(_),"RegExp",_),date:_=>A(h.date(_),"Date",_),error:_=>A(h.error(_),"Error",_),map:_=>A(h.map(_),"Map",_),set:_=>A(h.set(_),"Set",_),weakMap:_=>A(h.weakMap(_),"WeakMap",_),weakSet:_=>A(h.weakSet(_),"WeakSet",_),int8Array:_=>A(h.int8Array(_),"Int8Array",_),uint8Array:_=>A(h.uint8Array(_),"Uint8Array",_),uint8ClampedArray:_=>A(h.uint8ClampedArray(_),"Uint8ClampedArray",_),int16Array:_=>A(h.int16Array(_),"Int16Array",_),uint16Array:_=>A(h.uint16Array(_),"Uint16Array",_),int32Array:_=>A(h.int32Array(_),"Int32Array",_),uint32Array:_=>A(h.uint32Array(_),"Uint32Array",_),float32Array:_=>A(h.float32Array(_),"Float32Array",_),float64Array:_=>A(h.float64Array(_),"Float64Array",_),bigInt64Array:_=>A(h.bigInt64Array(_),"BigInt64Array",_),bigUint64Array:_=>A(h.bigUint64Array(_),"BigUint64Array",_),arrayBuffer:_=>A(h.arrayBuffer(_),"ArrayBuffer",_),sharedArrayBuffer:_=>A(h.sharedArrayBuffer(_),"SharedArrayBuffer",_),dataView:_=>A(h.dataView(_),"DataView",_),urlInstance:_=>A(h.urlInstance(_),"URL",_),urlString:_=>A(h.urlString(_),"string with a URL",_),truthy:_=>A(h.truthy(_),"truthy",_),falsy:_=>A(h.falsy(_),"falsy",_),nan:_=>A(h.nan(_),"NaN",_),primitive:_=>A(h.primitive(_),"primitive",_),integer:_=>A(h.integer(_),"integer",_),safeInteger:_=>A(h.safeInteger(_),"integer",_),plainObject:_=>A(h.plainObject(_),"plain object",_),typedArray:_=>A(h.typedArray(_),"TypedArray",_),arrayLike:_=>A(h.arrayLike(_),"array-like",_),domElement:_=>A(h.domElement(_),"HTMLElement",_),observable:_=>A(h.observable(_),"Observable",_),nodeStream:_=>A(h.nodeStream(_),"Node.js Stream",_),infinite:_=>A(h.infinite(_),"infinite number",_),emptyArray:_=>A(h.emptyArray(_),"empty array",_),nonEmptyArray:_=>A(h.nonEmptyArray(_),"non-empty array",_),emptyString:_=>A(h.emptyString(_),"empty string",_),nonEmptyString:_=>A(h.nonEmptyString(_),"non-empty string",_),emptyStringOrWhitespace:_=>A(h.emptyStringOrWhitespace(_),"empty string or whitespace",_),emptyObject:_=>A(h.emptyObject(_),"empty object",_),nonEmptyObject:_=>A(h.nonEmptyObject(_),"non-empty object",_),emptySet:_=>A(h.emptySet(_),"empty set",_),nonEmptySet:_=>A(h.nonEmptySet(_),"non-empty set",_),emptyMap:_=>A(h.emptyMap(_),"empty map",_),nonEmptyMap:_=>A(h.nonEmptyMap(_),"non-empty map",_),evenInteger:_=>A(h.evenInteger(_),"even integer",_),oddInteger:_=>A(h.oddInteger(_),"odd integer",_),directInstanceOf:(_,T)=>A(h.directInstanceOf(_,T),"T",_),inRange:(_,T)=>A(h.inRange(_,T),"in range",_),any:(_,...T)=>A(h.any(_,...T),"predicate returns truthy for any value",T),all:(_,...T)=>A(h.all(_,...T),"predicate returns truthy for all values",T)},Object.defineProperties(h,{class:{value:h.class_},function:{value:h.function_},null:{value:h.null_}}),Object.defineProperties(t.assert,{class:{value:t.assert.class_},function:{value:t.assert.function_},null:{value:t.assert.null_}}),t.default=h,e.exports=h,e.exports.default=h,e.exports.assert=t.assert})(v8,v8.exports);var uge=v8.exports;const dge={keywords:["face","smile","happy","joy",":D","grin"],char:"😀",fitzpatrick_scale:!1,category:"people"},fge={keywords:["face","grimace","teeth"],char:"😬",fitzpatrick_scale:!1,category:"people"},hge={keywords:["face","happy","smile","joy","kawaii"],char:"😁",fitzpatrick_scale:!1,category:"people"},pge={keywords:["face","cry","tears","weep","happy","happytears","haha"],char:"😂",fitzpatrick_scale:!1,category:"people"},mge={keywords:["face","rolling","floor","laughing","lol","haha"],char:"🤣",fitzpatrick_scale:!1,category:"people"},gge={keywords:["face","celebration","woohoo"],char:"🥳",fitzpatrick_scale:!1,category:"people"},yge={keywords:["face","happy","joy","haha",":D",":)","smile","funny"],char:"😃",fitzpatrick_scale:!1,category:"people"},_ge={keywords:["face","happy","joy","funny","haha","laugh","like",":D",":)"],char:"😄",fitzpatrick_scale:!1,category:"people"},bge={keywords:["face","hot","happy","laugh","sweat","smile","relief"],char:"😅",fitzpatrick_scale:!1,category:"people"},kge={keywords:["happy","joy","lol","satisfied","haha","face","glad","XD","laugh"],char:"😆",fitzpatrick_scale:!1,category:"people"},wge={keywords:["face","angel","heaven","halo"],char:"😇",fitzpatrick_scale:!1,category:"people"},vge={keywords:["face","happy","mischievous","secret",";)","smile","eye"],char:"😉",fitzpatrick_scale:!1,category:"people"},xge={keywords:["face","smile","happy","flushed","crush","embarrassed","shy","joy"],char:"😊",fitzpatrick_scale:!1,category:"people"},Cge={keywords:["face","smile"],char:"🙂",fitzpatrick_scale:!1,category:"people"},Sge={keywords:["face","flipped","silly","smile"],char:"🙃",fitzpatrick_scale:!1,category:"people"},Dge={keywords:["face","blush","massage","happiness"],char:"☺️",fitzpatrick_scale:!1,category:"people"},Ege={keywords:["happy","joy","tongue","smile","face","silly","yummy","nom","delicious","savouring"],char:"😋",fitzpatrick_scale:!1,category:"people"},Tge={keywords:["face","relaxed","phew","massage","happiness"],char:"😌",fitzpatrick_scale:!1,category:"people"},Age={keywords:["face","love","like","affection","valentines","infatuation","crush","heart"],char:"😍",fitzpatrick_scale:!1,category:"people"},zge={keywords:["face","love","like","affection","valentines","infatuation","crush","hearts","adore"],char:"🥰",fitzpatrick_scale:!1,category:"people"},Fge={keywords:["face","love","like","affection","valentines","infatuation","kiss"],char:"😘",fitzpatrick_scale:!1,category:"people"},$ge={keywords:["love","like","face","3","valentines","infatuation","kiss"],char:"😗",fitzpatrick_scale:!1,category:"people"},Mge={keywords:["face","affection","valentines","infatuation","kiss"],char:"😙",fitzpatrick_scale:!1,category:"people"},Oge={keywords:["face","love","like","affection","valentines","infatuation","kiss"],char:"😚",fitzpatrick_scale:!1,category:"people"},Nge={keywords:["face","prank","childish","playful","mischievous","smile","wink","tongue"],char:"😜",fitzpatrick_scale:!1,category:"people"},Lge={keywords:["face","goofy","crazy"],char:"🤪",fitzpatrick_scale:!1,category:"people"},Ige={keywords:["face","distrust","scepticism","disapproval","disbelief","surprise"],char:"🤨",fitzpatrick_scale:!1,category:"people"},Bge={keywords:["face","stuffy","wealthy"],char:"🧐",fitzpatrick_scale:!1,category:"people"},Rge={keywords:["face","prank","playful","mischievous","smile","tongue"],char:"😝",fitzpatrick_scale:!1,category:"people"},Pge={keywords:["face","prank","childish","playful","mischievous","smile","tongue"],char:"😛",fitzpatrick_scale:!1,category:"people"},jge={keywords:["face","rich","dollar","money"],char:"🤑",fitzpatrick_scale:!1,category:"people"},Vge={keywords:["face","nerdy","geek","dork"],char:"🤓",fitzpatrick_scale:!1,category:"people"},qge={keywords:["face","cool","smile","summer","beach","sunglass"],char:"😎",fitzpatrick_scale:!1,category:"people"},Hge={keywords:["face","smile","starry","eyes","grinning"],char:"🤩",fitzpatrick_scale:!1,category:"people"},Uge={keywords:["face"],char:"🤡",fitzpatrick_scale:!1,category:"people"},Wge={keywords:["face","cowgirl","hat"],char:"🤠",fitzpatrick_scale:!1,category:"people"},Gge={keywords:["face","smile","hug"],char:"🤗",fitzpatrick_scale:!1,category:"people"},Kge={keywords:["face","smile","mean","prank","smug","sarcasm"],char:"😏",fitzpatrick_scale:!1,category:"people"},Yge={keywords:["face","hellokitty"],char:"😶",fitzpatrick_scale:!1,category:"people"},Zge={keywords:["indifference","meh",":|","neutral"],char:"😐",fitzpatrick_scale:!1,category:"people"},Xge={keywords:["face","indifferent","-_-","meh","deadpan"],char:"😑",fitzpatrick_scale:!1,category:"people"},Jge={keywords:["indifference","bored","straight face","serious","sarcasm","unimpressed","skeptical","dubious","side_eye"],char:"😒",fitzpatrick_scale:!1,category:"people"},Qge={keywords:["face","eyeroll","frustrated"],char:"🙄",fitzpatrick_scale:!1,category:"people"},e1e={keywords:["face","hmmm","think","consider"],char:"🤔",fitzpatrick_scale:!1,category:"people"},t1e={keywords:["face","lie","pinocchio"],char:"🤥",fitzpatrick_scale:!1,category:"people"},n1e={keywords:["face","whoops","shock","surprise"],char:"🤭",fitzpatrick_scale:!1,category:"people"},r1e={keywords:["face","quiet","shhh"],char:"🤫",fitzpatrick_scale:!1,category:"people"},i1e={keywords:["face","swearing","cursing","cussing","profanity","expletive"],char:"🤬",fitzpatrick_scale:!1,category:"people"},a1e={keywords:["face","shocked","mind","blown"],char:"🤯",fitzpatrick_scale:!1,category:"people"},o1e={keywords:["face","blush","shy","flattered"],char:"😳",fitzpatrick_scale:!1,category:"people"},s1e={keywords:["face","sad","upset","depressed",":("],char:"😞",fitzpatrick_scale:!1,category:"people"},l1e={keywords:["face","concern","nervous",":("],char:"😟",fitzpatrick_scale:!1,category:"people"},c1e={keywords:["mad","face","annoyed","frustrated"],char:"😠",fitzpatrick_scale:!1,category:"people"},u1e={keywords:["angry","mad","hate","despise"],char:"😡",fitzpatrick_scale:!1,category:"people"},d1e={keywords:["face","sad","depressed","upset"],char:"😔",fitzpatrick_scale:!1,category:"people"},f1e={keywords:["face","indifference","huh","weird","hmmm",":/"],char:"😕",fitzpatrick_scale:!1,category:"people"},h1e={keywords:["face","frowning","disappointed","sad","upset"],char:"🙁",fitzpatrick_scale:!1,category:"people"},p1e={keywords:["face","sad","upset","frown"],char:"☹",fitzpatrick_scale:!1,category:"people"},m1e={keywords:["face","sick","no","upset","oops"],char:"😣",fitzpatrick_scale:!1,category:"people"},g1e={keywords:["face","confused","sick","unwell","oops",":S"],char:"😖",fitzpatrick_scale:!1,category:"people"},y1e={keywords:["sick","whine","upset","frustrated"],char:"😫",fitzpatrick_scale:!1,category:"people"},_1e={keywords:["face","tired","sleepy","sad","frustrated","upset"],char:"😩",fitzpatrick_scale:!1,category:"people"},b1e={keywords:["face","begging","mercy"],char:"🥺",fitzpatrick_scale:!1,category:"people"},k1e={keywords:["face","gas","phew","proud","pride"],char:"😤",fitzpatrick_scale:!1,category:"people"},w1e={keywords:["face","surprise","impressed","wow","whoa",":O"],char:"😮",fitzpatrick_scale:!1,category:"people"},v1e={keywords:["face","munch","scared","omg"],char:"😱",fitzpatrick_scale:!1,category:"people"},x1e={keywords:["face","scared","terrified","nervous","oops","huh"],char:"😨",fitzpatrick_scale:!1,category:"people"},C1e={keywords:["face","nervous","sweat"],char:"😰",fitzpatrick_scale:!1,category:"people"},S1e={keywords:["face","woo","shh"],char:"😯",fitzpatrick_scale:!1,category:"people"},D1e={keywords:["face","aw","what"],char:"😦",fitzpatrick_scale:!1,category:"people"},E1e={keywords:["face","stunned","nervous"],char:"😧",fitzpatrick_scale:!1,category:"people"},T1e={keywords:["face","tears","sad","depressed","upset",":'("],char:"😢",fitzpatrick_scale:!1,category:"people"},A1e={keywords:["face","phew","sweat","nervous"],char:"😥",fitzpatrick_scale:!1,category:"people"},z1e={keywords:["face"],char:"🤤",fitzpatrick_scale:!1,category:"people"},F1e={keywords:["face","tired","rest","nap"],char:"😪",fitzpatrick_scale:!1,category:"people"},$1e={keywords:["face","hot","sad","tired","exercise"],char:"😓",fitzpatrick_scale:!1,category:"people"},M1e={keywords:["face","feverish","heat","red","sweating"],char:"🥵",fitzpatrick_scale:!1,category:"people"},O1e={keywords:["face","blue","freezing","frozen","frostbite","icicles"],char:"🥶",fitzpatrick_scale:!1,category:"people"},N1e={keywords:["face","cry","tears","sad","upset","depressed"],char:"😭",fitzpatrick_scale:!1,category:"people"},L1e={keywords:["spent","unconscious","xox","dizzy"],char:"😵",fitzpatrick_scale:!1,category:"people"},I1e={keywords:["face","xox","surprised","poisoned"],char:"😲",fitzpatrick_scale:!1,category:"people"},B1e={keywords:["face","sealed","zipper","secret"],char:"🤐",fitzpatrick_scale:!1,category:"people"},R1e={keywords:["face","vomit","gross","green","sick","throw up","ill"],char:"🤢",fitzpatrick_scale:!1,category:"people"},P1e={keywords:["face","gesundheit","sneeze","sick","allergy"],char:"🤧",fitzpatrick_scale:!1,category:"people"},j1e={keywords:["face","sick"],char:"🤮",fitzpatrick_scale:!1,category:"people"},V1e={keywords:["face","sick","ill","disease"],char:"😷",fitzpatrick_scale:!1,category:"people"},q1e={keywords:["sick","temperature","thermometer","cold","fever"],char:"🤒",fitzpatrick_scale:!1,category:"people"},H1e={keywords:["injured","clumsy","bandage","hurt"],char:"🤕",fitzpatrick_scale:!1,category:"people"},U1e={keywords:["face","dizzy","intoxicated","tipsy","wavy"],char:"🥴",fitzpatrick_scale:!1,category:"people"},W1e={keywords:["face","tired","sleepy","night","zzz"],char:"😴",fitzpatrick_scale:!1,category:"people"},G1e={keywords:["sleepy","tired","dream"],char:"💤",fitzpatrick_scale:!1,category:"people"},K1e={keywords:["hankey","shitface","fail","turd","shit"],char:"💩",fitzpatrick_scale:!1,category:"people"},Y1e={keywords:["devil","horns"],char:"😈",fitzpatrick_scale:!1,category:"people"},Z1e={keywords:["devil","angry","horns"],char:"👿",fitzpatrick_scale:!1,category:"people"},X1e={keywords:["monster","red","mask","halloween","scary","creepy","devil","demon","japanese","ogre"],char:"👹",fitzpatrick_scale:!1,category:"people"},J1e={keywords:["red","evil","mask","monster","scary","creepy","japanese","goblin"],char:"👺",fitzpatrick_scale:!1,category:"people"},Q1e={keywords:["dead","skeleton","creepy","death"],char:"💀",fitzpatrick_scale:!1,category:"people"},eye={keywords:["halloween","spooky","scary"],char:"👻",fitzpatrick_scale:!1,category:"people"},tye={keywords:["UFO","paul","weird","outer_space"],char:"👽",fitzpatrick_scale:!1,category:"people"},nye={keywords:["computer","machine","bot"],char:"🤖",fitzpatrick_scale:!1,category:"people"},rye={keywords:["animal","cats","happy","smile"],char:"😺",fitzpatrick_scale:!1,category:"people"},iye={keywords:["animal","cats","smile"],char:"😸",fitzpatrick_scale:!1,category:"people"},aye={keywords:["animal","cats","haha","happy","tears"],char:"😹",fitzpatrick_scale:!1,category:"people"},oye={keywords:["animal","love","like","affection","cats","valentines","heart"],char:"😻",fitzpatrick_scale:!1,category:"people"},sye={keywords:["animal","cats","smirk"],char:"😼",fitzpatrick_scale:!1,category:"people"},lye={keywords:["animal","cats","kiss"],char:"😽",fitzpatrick_scale:!1,category:"people"},cye={keywords:["animal","cats","munch","scared","scream"],char:"🙀",fitzpatrick_scale:!1,category:"people"},uye={keywords:["animal","tears","weep","sad","cats","upset","cry"],char:"😿",fitzpatrick_scale:!1,category:"people"},dye={keywords:["animal","cats"],char:"😾",fitzpatrick_scale:!1,category:"people"},fye={keywords:["hands","gesture","cupped","prayer"],char:"🤲",fitzpatrick_scale:!0,category:"people"},hye={keywords:["gesture","hooray","yea","celebration","hands"],char:"🙌",fitzpatrick_scale:!0,category:"people"},pye={keywords:["hands","praise","applause","congrats","yay"],char:"👏",fitzpatrick_scale:!0,category:"people"},mye={keywords:["hands","gesture","goodbye","solong","farewell","hello","hi","palm"],char:"👋",fitzpatrick_scale:!0,category:"people"},gye={keywords:["hands","gesture"],char:"🤙",fitzpatrick_scale:!0,category:"people"},yye={keywords:["angry","violence","fist","hit","attack","hand"],char:"👊",fitzpatrick_scale:!0,category:"people"},_ye={keywords:["fingers","hand","grasp"],char:"✊",fitzpatrick_scale:!0,category:"people"},bye={keywords:["hand","fistbump"],char:"🤛",fitzpatrick_scale:!0,category:"people"},kye={keywords:["hand","fistbump"],char:"🤜",fitzpatrick_scale:!0,category:"people"},wye={keywords:["fingers","ohyeah","hand","peace","victory","two"],char:"✌",fitzpatrick_scale:!0,category:"people"},vye={keywords:["fingers","limbs","perfect","ok","okay"],char:"👌",fitzpatrick_scale:!0,category:"people"},xye={keywords:["fingers","stop","highfive","palm","ban"],char:"✋",fitzpatrick_scale:!0,category:"people"},Cye={keywords:["fingers","raised","backhand"],char:"🤚",fitzpatrick_scale:!0,category:"people"},Sye={keywords:["fingers","butterfly","hands","open"],char:"👐",fitzpatrick_scale:!0,category:"people"},Dye={keywords:["arm","flex","hand","summer","strong","biceps"],char:"💪",fitzpatrick_scale:!0,category:"people"},Eye={keywords:["please","hope","wish","namaste","highfive"],char:"🙏",fitzpatrick_scale:!0,category:"people"},Tye={keywords:["kick","stomp"],char:"🦶",fitzpatrick_scale:!0,category:"people"},Aye={keywords:["kick","limb"],char:"🦵",fitzpatrick_scale:!0,category:"people"},zye={keywords:["agreement","shake"],char:"🤝",fitzpatrick_scale:!1,category:"people"},Fye={keywords:["hand","fingers","direction","up"],char:"☝",fitzpatrick_scale:!0,category:"people"},$ye={keywords:["fingers","hand","direction","up"],char:"👆",fitzpatrick_scale:!0,category:"people"},Mye={keywords:["fingers","hand","direction","down"],char:"👇",fitzpatrick_scale:!0,category:"people"},Oye={keywords:["direction","fingers","hand","left"],char:"👈",fitzpatrick_scale:!0,category:"people"},Nye={keywords:["fingers","hand","direction","right"],char:"👉",fitzpatrick_scale:!0,category:"people"},Lye={keywords:["hand","fingers","rude","middle","flipping"],char:"🖕",fitzpatrick_scale:!0,category:"people"},Iye={keywords:["hand","fingers","palm"],char:"🖐",fitzpatrick_scale:!0,category:"people"},Bye={keywords:["hand","fingers","gesture"],char:"🤟",fitzpatrick_scale:!0,category:"people"},Rye={keywords:["hand","fingers","evil_eye","sign_of_horns","rock_on"],char:"🤘",fitzpatrick_scale:!0,category:"people"},Pye={keywords:["good","lucky"],char:"🤞",fitzpatrick_scale:!0,category:"people"},jye={keywords:["hand","fingers","spock","star trek"],char:"🖖",fitzpatrick_scale:!0,category:"people"},Vye={keywords:["lower_left_ballpoint_pen","stationery","write","compose"],char:"✍",fitzpatrick_scale:!0,category:"people"},qye={keywords:["camera","phone"],char:"🤳",fitzpatrick_scale:!0,category:"people"},Hye={keywords:["beauty","manicure","finger","fashion","nail"],char:"💅",fitzpatrick_scale:!0,category:"people"},Uye={keywords:["mouth","kiss"],char:"👄",fitzpatrick_scale:!1,category:"people"},Wye={keywords:["teeth","dentist"],char:"🦷",fitzpatrick_scale:!1,category:"people"},Gye={keywords:["mouth","playful"],char:"👅",fitzpatrick_scale:!1,category:"people"},Kye={keywords:["face","hear","sound","listen"],char:"👂",fitzpatrick_scale:!0,category:"people"},Yye={keywords:["smell","sniff"],char:"👃",fitzpatrick_scale:!0,category:"people"},Zye={keywords:["face","look","see","watch","stare"],char:"👁",fitzpatrick_scale:!1,category:"people"},Xye={keywords:["look","watch","stalk","peek","see"],char:"👀",fitzpatrick_scale:!1,category:"people"},Jye={keywords:["smart","intelligent"],char:"🧠",fitzpatrick_scale:!1,category:"people"},Qye={keywords:["user","person","human"],char:"👤",fitzpatrick_scale:!1,category:"people"},e_e={keywords:["user","person","human","group","team"],char:"👥",fitzpatrick_scale:!1,category:"people"},t_e={keywords:["user","person","human","sing","say","talk"],char:"🗣",fitzpatrick_scale:!1,category:"people"},n_e={keywords:["child","boy","girl","toddler"],char:"👶",fitzpatrick_scale:!0,category:"people"},r_e={keywords:["gender-neutral","young"],char:"🧒",fitzpatrick_scale:!0,category:"people"},i_e={keywords:["man","male","guy","teenager"],char:"👦",fitzpatrick_scale:!0,category:"people"},a_e={keywords:["female","woman","teenager"],char:"👧",fitzpatrick_scale:!0,category:"people"},o_e={keywords:["gender-neutral","person"],char:"🧑",fitzpatrick_scale:!0,category:"people"},s_e={keywords:["mustache","father","dad","guy","classy","sir","moustache"],char:"👨",fitzpatrick_scale:!0,category:"people"},l_e={keywords:["female","girls","lady"],char:"👩",fitzpatrick_scale:!0,category:"people"},c_e={keywords:["woman","female","girl","blonde","person"],char:"👱‍♀️",fitzpatrick_scale:!0,category:"people"},u_e={keywords:["man","male","boy","blonde","guy","person"],char:"👱",fitzpatrick_scale:!0,category:"people"},d_e={keywords:["person","bewhiskered"],char:"🧔",fitzpatrick_scale:!0,category:"people"},f_e={keywords:["human","elder","senior","gender-neutral"],char:"🧓",fitzpatrick_scale:!0,category:"people"},h_e={keywords:["human","male","men","old","elder","senior"],char:"👴",fitzpatrick_scale:!0,category:"people"},p_e={keywords:["human","female","women","lady","old","elder","senior"],char:"👵",fitzpatrick_scale:!0,category:"people"},m_e={keywords:["male","boy","chinese"],char:"👲",fitzpatrick_scale:!0,category:"people"},g_e={keywords:["female","hijab","mantilla","tichel"],char:"🧕",fitzpatrick_scale:!0,category:"people"},y_e={keywords:["female","indian","hinduism","arabs","woman"],char:"👳‍♀️",fitzpatrick_scale:!0,category:"people"},__e={keywords:["male","indian","hinduism","arabs"],char:"👳",fitzpatrick_scale:!0,category:"people"},b_e={keywords:["woman","police","law","legal","enforcement","arrest","911","female"],char:"👮‍♀️",fitzpatrick_scale:!0,category:"people"},k_e={keywords:["man","police","law","legal","enforcement","arrest","911"],char:"👮",fitzpatrick_scale:!0,category:"people"},w_e={keywords:["female","human","wip","build","construction","worker","labor","woman"],char:"👷‍♀️",fitzpatrick_scale:!0,category:"people"},v_e={keywords:["male","human","wip","guy","build","construction","worker","labor"],char:"👷",fitzpatrick_scale:!0,category:"people"},x_e={keywords:["uk","gb","british","female","royal","woman"],char:"💂‍♀️",fitzpatrick_scale:!0,category:"people"},C_e={keywords:["uk","gb","british","male","guy","royal"],char:"💂",fitzpatrick_scale:!0,category:"people"},S_e={keywords:["human","spy","detective","female","woman"],char:"🕵️‍♀️",fitzpatrick_scale:!0,category:"people"},D_e={keywords:["human","spy","detective"],char:"🕵",fitzpatrick_scale:!0,category:"people"},E_e={keywords:["doctor","nurse","therapist","healthcare","woman","human"],char:"👩‍⚕️",fitzpatrick_scale:!0,category:"people"},T_e={keywords:["doctor","nurse","therapist","healthcare","man","human"],char:"👨‍⚕️",fitzpatrick_scale:!0,category:"people"},A_e={keywords:["rancher","gardener","woman","human"],char:"👩‍🌾",fitzpatrick_scale:!0,category:"people"},z_e={keywords:["rancher","gardener","man","human"],char:"👨‍🌾",fitzpatrick_scale:!0,category:"people"},F_e={keywords:["chef","woman","human"],char:"👩‍🍳",fitzpatrick_scale:!0,category:"people"},$_e={keywords:["chef","man","human"],char:"👨‍🍳",fitzpatrick_scale:!0,category:"people"},M_e={keywords:["graduate","woman","human"],char:"👩‍🎓",fitzpatrick_scale:!0,category:"people"},O_e={keywords:["graduate","man","human"],char:"👨‍🎓",fitzpatrick_scale:!0,category:"people"},N_e={keywords:["rockstar","entertainer","woman","human"],char:"👩‍🎤",fitzpatrick_scale:!0,category:"people"},L_e={keywords:["rockstar","entertainer","man","human"],char:"👨‍🎤",fitzpatrick_scale:!0,category:"people"},I_e={keywords:["instructor","professor","woman","human"],char:"👩‍🏫",fitzpatrick_scale:!0,category:"people"},B_e={keywords:["instructor","professor","man","human"],char:"👨‍🏫",fitzpatrick_scale:!0,category:"people"},R_e={keywords:["assembly","industrial","woman","human"],char:"👩‍🏭",fitzpatrick_scale:!0,category:"people"},P_e={keywords:["assembly","industrial","man","human"],char:"👨‍🏭",fitzpatrick_scale:!0,category:"people"},j_e={keywords:["coder","developer","engineer","programmer","software","woman","human","laptop","computer"],char:"👩‍💻",fitzpatrick_scale:!0,category:"people"},V_e={keywords:["coder","developer","engineer","programmer","software","man","human","laptop","computer"],char:"👨‍💻",fitzpatrick_scale:!0,category:"people"},q_e={keywords:["business","manager","woman","human"],char:"👩‍💼",fitzpatrick_scale:!0,category:"people"},H_e={keywords:["business","manager","man","human"],char:"👨‍💼",fitzpatrick_scale:!0,category:"people"},U_e={keywords:["plumber","woman","human","wrench"],char:"👩‍🔧",fitzpatrick_scale:!0,category:"people"},W_e={keywords:["plumber","man","human","wrench"],char:"👨‍🔧",fitzpatrick_scale:!0,category:"people"},G_e={keywords:["biologist","chemist","engineer","physicist","woman","human"],char:"👩‍🔬",fitzpatrick_scale:!0,category:"people"},K_e={keywords:["biologist","chemist","engineer","physicist","man","human"],char:"👨‍🔬",fitzpatrick_scale:!0,category:"people"},Y_e={keywords:["painter","woman","human"],char:"👩‍🎨",fitzpatrick_scale:!0,category:"people"},Z_e={keywords:["painter","man","human"],char:"👨‍🎨",fitzpatrick_scale:!0,category:"people"},X_e={keywords:["fireman","woman","human"],char:"👩‍🚒",fitzpatrick_scale:!0,category:"people"},J_e={keywords:["fireman","man","human"],char:"👨‍🚒",fitzpatrick_scale:!0,category:"people"},Q_e={keywords:["aviator","plane","woman","human"],char:"👩‍✈️",fitzpatrick_scale:!0,category:"people"},ebe={keywords:["aviator","plane","man","human"],char:"👨‍✈️",fitzpatrick_scale:!0,category:"people"},tbe={keywords:["space","rocket","woman","human"],char:"👩‍🚀",fitzpatrick_scale:!0,category:"people"},nbe={keywords:["space","rocket","man","human"],char:"👨‍🚀",fitzpatrick_scale:!0,category:"people"},rbe={keywords:["justice","court","woman","human"],char:"👩‍⚖️",fitzpatrick_scale:!0,category:"people"},ibe={keywords:["justice","court","man","human"],char:"👨‍⚖️",fitzpatrick_scale:!0,category:"people"},abe={keywords:["woman","female","good","heroine","superpowers"],char:"🦸‍♀️",fitzpatrick_scale:!0,category:"people"},obe={keywords:["man","male","good","hero","superpowers"],char:"🦸‍♂️",fitzpatrick_scale:!0,category:"people"},sbe={keywords:["woman","female","evil","bad","criminal","heroine","superpowers"],char:"🦹‍♀️",fitzpatrick_scale:!0,category:"people"},lbe={keywords:["man","male","evil","bad","criminal","hero","superpowers"],char:"🦹‍♂️",fitzpatrick_scale:!0,category:"people"},cbe={keywords:["woman","female","xmas","mother christmas"],char:"🤶",fitzpatrick_scale:!0,category:"people"},ube={keywords:["festival","man","male","xmas","father christmas"],char:"🎅",fitzpatrick_scale:!0,category:"people"},dbe={keywords:["woman","female","mage","witch"],char:"🧙‍♀️",fitzpatrick_scale:!0,category:"people"},fbe={keywords:["man","male","mage","sorcerer"],char:"🧙‍♂️",fitzpatrick_scale:!0,category:"people"},hbe={keywords:["woman","female"],char:"🧝‍♀️",fitzpatrick_scale:!0,category:"people"},pbe={keywords:["man","male"],char:"🧝‍♂️",fitzpatrick_scale:!0,category:"people"},mbe={keywords:["woman","female"],char:"🧛‍♀️",fitzpatrick_scale:!0,category:"people"},gbe={keywords:["man","male","dracula"],char:"🧛‍♂️",fitzpatrick_scale:!0,category:"people"},ybe={keywords:["woman","female","undead","walking dead"],char:"🧟‍♀️",fitzpatrick_scale:!1,category:"people"},_be={keywords:["man","male","dracula","undead","walking dead"],char:"🧟‍♂️",fitzpatrick_scale:!1,category:"people"},bbe={keywords:["woman","female"],char:"🧞‍♀️",fitzpatrick_scale:!1,category:"people"},kbe={keywords:["man","male"],char:"🧞‍♂️",fitzpatrick_scale:!1,category:"people"},wbe={keywords:["woman","female","merwoman","ariel"],char:"🧜‍♀️",fitzpatrick_scale:!0,category:"people"},vbe={keywords:["man","male","triton"],char:"🧜‍♂️",fitzpatrick_scale:!0,category:"people"},xbe={keywords:["woman","female"],char:"🧚‍♀️",fitzpatrick_scale:!0,category:"people"},Cbe={keywords:["man","male"],char:"🧚‍♂️",fitzpatrick_scale:!0,category:"people"},Sbe={keywords:["heaven","wings","halo"],char:"👼",fitzpatrick_scale:!0,category:"people"},Dbe={keywords:["baby"],char:"🤰",fitzpatrick_scale:!0,category:"people"},Ebe={keywords:["nursing","baby"],char:"🤱",fitzpatrick_scale:!0,category:"people"},Tbe={keywords:["girl","woman","female","blond","crown","royal","queen"],char:"👸",fitzpatrick_scale:!0,category:"people"},Abe={keywords:["boy","man","male","crown","royal","king"],char:"🤴",fitzpatrick_scale:!0,category:"people"},zbe={keywords:["couple","marriage","wedding","woman","bride"],char:"👰",fitzpatrick_scale:!0,category:"people"},Fbe={keywords:["couple","marriage","wedding","groom"],char:"🤵",fitzpatrick_scale:!0,category:"people"},$be={keywords:["woman","walking","exercise","race","running","female"],char:"🏃‍♀️",fitzpatrick_scale:!0,category:"people"},Mbe={keywords:["man","walking","exercise","race","running"],char:"🏃",fitzpatrick_scale:!0,category:"people"},Obe={keywords:["human","feet","steps","woman","female"],char:"🚶‍♀️",fitzpatrick_scale:!0,category:"people"},Nbe={keywords:["human","feet","steps"],char:"🚶",fitzpatrick_scale:!0,category:"people"},Lbe={keywords:["female","girl","woman","fun"],char:"💃",fitzpatrick_scale:!0,category:"people"},Ibe={keywords:["male","boy","fun","dancer"],char:"🕺",fitzpatrick_scale:!0,category:"people"},Bbe={keywords:["female","bunny","women","girls"],char:"👯",fitzpatrick_scale:!1,category:"people"},Rbe={keywords:["male","bunny","men","boys"],char:"👯‍♂️",fitzpatrick_scale:!1,category:"people"},Pbe={keywords:["pair","people","human","love","date","dating","like","affection","valentines","marriage"],char:"👫",fitzpatrick_scale:!1,category:"people"},jbe={keywords:["pair","couple","love","like","bromance","friendship","people","human"],char:"👬",fitzpatrick_scale:!1,category:"people"},Vbe={keywords:["pair","friendship","couple","love","like","female","people","human"],char:"👭",fitzpatrick_scale:!1,category:"people"},qbe={keywords:["woman","female","girl"],char:"🙇‍♀️",fitzpatrick_scale:!0,category:"people"},Hbe={keywords:["man","male","boy"],char:"🙇",fitzpatrick_scale:!0,category:"people"},Ube={keywords:["man","male","boy","disbelief"],char:"🤦‍♂️",fitzpatrick_scale:!0,category:"people"},Wbe={keywords:["woman","female","girl","disbelief"],char:"🤦‍♀️",fitzpatrick_scale:!0,category:"people"},Gbe={keywords:["woman","female","girl","confused","indifferent","doubt"],char:"🤷",fitzpatrick_scale:!0,category:"people"},Kbe={keywords:["man","male","boy","confused","indifferent","doubt"],char:"🤷‍♂️",fitzpatrick_scale:!0,category:"people"},Ybe={keywords:["female","girl","woman","human","information"],char:"💁",fitzpatrick_scale:!0,category:"people"},Zbe={keywords:["male","boy","man","human","information"],char:"💁‍♂️",fitzpatrick_scale:!0,category:"people"},Xbe={keywords:["female","girl","woman","nope"],char:"🙅",fitzpatrick_scale:!0,category:"people"},Jbe={keywords:["male","boy","man","nope"],char:"🙅‍♂️",fitzpatrick_scale:!0,category:"people"},Qbe={keywords:["women","girl","female","pink","human","woman"],char:"🙆",fitzpatrick_scale:!0,category:"people"},eke={keywords:["men","boy","male","blue","human","man"],char:"🙆‍♂️",fitzpatrick_scale:!0,category:"people"},tke={keywords:["female","girl","woman"],char:"🙋",fitzpatrick_scale:!0,category:"people"},nke={keywords:["male","boy","man"],char:"🙋‍♂️",fitzpatrick_scale:!0,category:"people"},rke={keywords:["female","girl","woman"],char:"🙎",fitzpatrick_scale:!0,category:"people"},ike={keywords:["male","boy","man"],char:"🙎‍♂️",fitzpatrick_scale:!0,category:"people"},ake={keywords:["female","girl","woman","sad","depressed","discouraged","unhappy"],char:"🙍",fitzpatrick_scale:!0,category:"people"},oke={keywords:["male","boy","man","sad","depressed","discouraged","unhappy"],char:"🙍‍♂️",fitzpatrick_scale:!0,category:"people"},ske={keywords:["female","girl","woman"],char:"💇",fitzpatrick_scale:!0,category:"people"},lke={keywords:["male","boy","man"],char:"💇‍♂️",fitzpatrick_scale:!0,category:"people"},cke={keywords:["female","girl","woman","head"],char:"💆",fitzpatrick_scale:!0,category:"people"},uke={keywords:["male","boy","man","head"],char:"💆‍♂️",fitzpatrick_scale:!0,category:"people"},dke={keywords:["female","woman","spa","steamroom","sauna"],char:"🧖‍♀️",fitzpatrick_scale:!0,category:"people"},fke={keywords:["male","man","spa","steamroom","sauna"],char:"🧖‍♂️",fitzpatrick_scale:!0,category:"people"},hke={keywords:["pair","love","like","affection","human","dating","valentines","marriage"],char:"💑",fitzpatrick_scale:!1,category:"people"},pke={keywords:["pair","love","like","affection","human","dating","valentines","marriage"],char:"👩‍❤️‍👩",fitzpatrick_scale:!1,category:"people"},mke={keywords:["pair","love","like","affection","human","dating","valentines","marriage"],char:"👨‍❤️‍👨",fitzpatrick_scale:!1,category:"people"},gke={keywords:["pair","valentines","love","like","dating","marriage"],char:"💏",fitzpatrick_scale:!1,category:"people"},yke={keywords:["pair","valentines","love","like","dating","marriage"],char:"👩‍❤️‍💋‍👩",fitzpatrick_scale:!1,category:"people"},_ke={keywords:["pair","valentines","love","like","dating","marriage"],char:"👨‍❤️‍💋‍👨",fitzpatrick_scale:!1,category:"people"},bke={keywords:["home","parents","child","mom","dad","father","mother","people","human"],char:"👪",fitzpatrick_scale:!1,category:"people"},kke={keywords:["home","parents","people","human","child"],char:"👨‍👩‍👧",fitzpatrick_scale:!1,category:"people"},wke={keywords:["home","parents","people","human","children"],char:"👨‍👩‍👧‍👦",fitzpatrick_scale:!1,category:"people"},vke={keywords:["home","parents","people","human","children"],char:"👨‍👩‍👦‍👦",fitzpatrick_scale:!1,category:"people"},xke={keywords:["home","parents","people","human","children"],char:"👨‍👩‍👧‍👧",fitzpatrick_scale:!1,category:"people"},Cke={keywords:["home","parents","people","human","children"],char:"👩‍👩‍👦",fitzpatrick_scale:!1,category:"people"},Ske={keywords:["home","parents","people","human","children"],char:"👩‍👩‍👧",fitzpatrick_scale:!1,category:"people"},Dke={keywords:["home","parents","people","human","children"],char:"👩‍👩‍👧‍👦",fitzpatrick_scale:!1,category:"people"},Eke={keywords:["home","parents","people","human","children"],char:"👩‍👩‍👦‍👦",fitzpatrick_scale:!1,category:"people"},Tke={keywords:["home","parents","people","human","children"],char:"👩‍👩‍👧‍👧",fitzpatrick_scale:!1,category:"people"},Ake={keywords:["home","parents","people","human","children"],char:"👨‍👨‍👦",fitzpatrick_scale:!1,category:"people"},zke={keywords:["home","parents","people","human","children"],char:"👨‍👨‍👧",fitzpatrick_scale:!1,category:"people"},Fke={keywords:["home","parents","people","human","children"],char:"👨‍👨‍👧‍👦",fitzpatrick_scale:!1,category:"people"},$ke={keywords:["home","parents","people","human","children"],char:"👨‍👨‍👦‍👦",fitzpatrick_scale:!1,category:"people"},Mke={keywords:["home","parents","people","human","children"],char:"👨‍👨‍👧‍👧",fitzpatrick_scale:!1,category:"people"},Oke={keywords:["home","parent","people","human","child"],char:"👩‍👦",fitzpatrick_scale:!1,category:"people"},Nke={keywords:["home","parent","people","human","child"],char:"👩‍👧",fitzpatrick_scale:!1,category:"people"},Lke={keywords:["home","parent","people","human","children"],char:"👩‍👧‍👦",fitzpatrick_scale:!1,category:"people"},Ike={keywords:["home","parent","people","human","children"],char:"👩‍👦‍👦",fitzpatrick_scale:!1,category:"people"},Bke={keywords:["home","parent","people","human","children"],char:"👩‍👧‍👧",fitzpatrick_scale:!1,category:"people"},Rke={keywords:["home","parent","people","human","child"],char:"👨‍👦",fitzpatrick_scale:!1,category:"people"},Pke={keywords:["home","parent","people","human","child"],char:"👨‍👧",fitzpatrick_scale:!1,category:"people"},jke={keywords:["home","parent","people","human","children"],char:"👨‍👧‍👦",fitzpatrick_scale:!1,category:"people"},Vke={keywords:["home","parent","people","human","children"],char:"👨‍👦‍👦",fitzpatrick_scale:!1,category:"people"},qke={keywords:["home","parent","people","human","children"],char:"👨‍👧‍👧",fitzpatrick_scale:!1,category:"people"},Hke={keywords:["ball","crochet","knit"],char:"🧶",fitzpatrick_scale:!1,category:"people"},Uke={keywords:["needle","sewing","spool","string"],char:"🧵",fitzpatrick_scale:!1,category:"people"},Wke={keywords:["jacket"],char:"🧥",fitzpatrick_scale:!1,category:"people"},Gke={keywords:["doctor","experiment","scientist","chemist"],char:"🥼",fitzpatrick_scale:!1,category:"people"},Kke={keywords:["fashion","shopping_bags","female"],char:"👚",fitzpatrick_scale:!1,category:"people"},Yke={keywords:["fashion","cloth","casual","shirt","tee"],char:"👕",fitzpatrick_scale:!1,category:"people"},Zke={keywords:["fashion","shopping"],char:"👖",fitzpatrick_scale:!1,category:"people"},Xke={keywords:["shirt","suitup","formal","fashion","cloth","business"],char:"👔",fitzpatrick_scale:!1,category:"people"},Jke={keywords:["clothes","fashion","shopping"],char:"👗",fitzpatrick_scale:!1,category:"people"},Qke={keywords:["swimming","female","woman","girl","fashion","beach","summer"],char:"👙",fitzpatrick_scale:!1,category:"people"},ewe={keywords:["dress","fashion","women","female","japanese"],char:"👘",fitzpatrick_scale:!1,category:"people"},twe={keywords:["female","girl","fashion","woman"],char:"💄",fitzpatrick_scale:!1,category:"people"},nwe={keywords:["face","lips","love","like","affection","valentines"],char:"💋",fitzpatrick_scale:!1,category:"people"},rwe={keywords:["feet","tracking","walking","beach"],char:"👣",fitzpatrick_scale:!1,category:"people"},iwe={keywords:["ballet","slip-on","slipper"],char:"🥿",fitzpatrick_scale:!1,category:"people"},awe={keywords:["fashion","shoes","female","pumps","stiletto"],char:"👠",fitzpatrick_scale:!1,category:"people"},owe={keywords:["shoes","fashion","flip flops"],char:"👡",fitzpatrick_scale:!1,category:"people"},swe={keywords:["shoes","fashion"],char:"👢",fitzpatrick_scale:!1,category:"people"},lwe={keywords:["fashion","male"],char:"👞",fitzpatrick_scale:!1,category:"people"},cwe={keywords:["shoes","sports","sneakers"],char:"👟",fitzpatrick_scale:!1,category:"people"},uwe={keywords:["backpacking","camping","hiking"],char:"🥾",fitzpatrick_scale:!1,category:"people"},dwe={keywords:["stockings","clothes"],char:"🧦",fitzpatrick_scale:!1,category:"people"},fwe={keywords:["hands","winter","clothes"],char:"🧤",fitzpatrick_scale:!1,category:"people"},hwe={keywords:["neck","winter","clothes"],char:"🧣",fitzpatrick_scale:!1,category:"people"},pwe={keywords:["fashion","accessories","female","lady","spring"],char:"👒",fitzpatrick_scale:!1,category:"people"},mwe={keywords:["magic","gentleman","classy","circus"],char:"🎩",fitzpatrick_scale:!1,category:"people"},gwe={keywords:["cap","baseball"],char:"🧢",fitzpatrick_scale:!1,category:"people"},ywe={keywords:["construction","build"],char:"⛑",fitzpatrick_scale:!1,category:"people"},_we={keywords:["school","college","degree","university","graduation","cap","hat","legal","learn","education"],char:"🎓",fitzpatrick_scale:!1,category:"people"},bwe={keywords:["king","kod","leader","royalty","lord"],char:"👑",fitzpatrick_scale:!1,category:"people"},kwe={keywords:["student","education","bag","backpack"],char:"🎒",fitzpatrick_scale:!1,category:"people"},wwe={keywords:["packing","travel"],char:"🧳",fitzpatrick_scale:!1,category:"people"},vwe={keywords:["bag","accessories","shopping"],char:"👝",fitzpatrick_scale:!1,category:"people"},xwe={keywords:["fashion","accessories","money","sales","shopping"],char:"👛",fitzpatrick_scale:!1,category:"people"},Cwe={keywords:["fashion","accessory","accessories","shopping"],char:"👜",fitzpatrick_scale:!1,category:"people"},Swe={keywords:["business","documents","work","law","legal","job","career"],char:"💼",fitzpatrick_scale:!1,category:"people"},Dwe={keywords:["fashion","accessories","eyesight","nerdy","dork","geek"],char:"👓",fitzpatrick_scale:!1,category:"people"},Ewe={keywords:["face","cool","accessories"],char:"🕶",fitzpatrick_scale:!1,category:"people"},Twe={keywords:["eyes","protection","safety"],char:"🥽",fitzpatrick_scale:!1,category:"people"},Awe={keywords:["wedding","propose","marriage","valentines","diamond","fashion","jewelry","gem","engagement"],char:"💍",fitzpatrick_scale:!1,category:"people"},zwe={keywords:["weather","rain","drizzle"],char:"🌂",fitzpatrick_scale:!1,category:"people"},Fwe={keywords:["animal","friend","nature","woof","puppy","pet","faithful"],char:"🐶",fitzpatrick_scale:!1,category:"animals_and_nature"},$we={keywords:["animal","meow","nature","pet","kitten"],char:"🐱",fitzpatrick_scale:!1,category:"animals_and_nature"},Mwe={keywords:["animal","nature","cheese_wedge","rodent"],char:"🐭",fitzpatrick_scale:!1,category:"animals_and_nature"},Owe={keywords:["animal","nature"],char:"🐹",fitzpatrick_scale:!1,category:"animals_and_nature"},Nwe={keywords:["animal","nature","pet","spring","magic","bunny"],char:"🐰",fitzpatrick_scale:!1,category:"animals_and_nature"},Lwe={keywords:["animal","nature","face"],char:"🦊",fitzpatrick_scale:!1,category:"animals_and_nature"},Iwe={keywords:["animal","nature","wild"],char:"🐻",fitzpatrick_scale:!1,category:"animals_and_nature"},Bwe={keywords:["animal","nature","panda"],char:"🐼",fitzpatrick_scale:!1,category:"animals_and_nature"},Rwe={keywords:["animal","nature"],char:"🐨",fitzpatrick_scale:!1,category:"animals_and_nature"},Pwe={keywords:["animal","cat","danger","wild","nature","roar"],char:"🐯",fitzpatrick_scale:!1,category:"animals_and_nature"},jwe={keywords:["animal","nature"],char:"🦁",fitzpatrick_scale:!1,category:"animals_and_nature"},Vwe={keywords:["beef","ox","animal","nature","moo","milk"],char:"🐮",fitzpatrick_scale:!1,category:"animals_and_nature"},qwe={keywords:["animal","oink","nature"],char:"🐷",fitzpatrick_scale:!1,category:"animals_and_nature"},Hwe={keywords:["animal","oink"],char:"🐽",fitzpatrick_scale:!1,category:"animals_and_nature"},Uwe={keywords:["animal","nature","croak","toad"],char:"🐸",fitzpatrick_scale:!1,category:"animals_and_nature"},Wwe={keywords:["animal","nature","ocean","sea"],char:"🦑",fitzpatrick_scale:!1,category:"animals_and_nature"},Gwe={keywords:["animal","creature","ocean","sea","nature","beach"],char:"🐙",fitzpatrick_scale:!1,category:"animals_and_nature"},Kwe={keywords:["animal","ocean","nature","seafood"],char:"🦐",fitzpatrick_scale:!1,category:"animals_and_nature"},Ywe={keywords:["animal","nature","circus"],char:"🐵",fitzpatrick_scale:!1,category:"animals_and_nature"},Zwe={keywords:["animal","nature","circus"],char:"🦍",fitzpatrick_scale:!1,category:"animals_and_nature"},Xwe={keywords:["monkey","animal","nature","haha"],char:"🙈",fitzpatrick_scale:!1,category:"animals_and_nature"},Jwe={keywords:["animal","monkey","nature"],char:"🙉",fitzpatrick_scale:!1,category:"animals_and_nature"},Qwe={keywords:["monkey","animal","nature","omg"],char:"🙊",fitzpatrick_scale:!1,category:"animals_and_nature"},eve={keywords:["animal","nature","banana","circus"],char:"🐒",fitzpatrick_scale:!1,category:"animals_and_nature"},tve={keywords:["animal","cluck","nature","bird"],char:"🐔",fitzpatrick_scale:!1,category:"animals_and_nature"},nve={keywords:["animal","nature"],char:"🐧",fitzpatrick_scale:!1,category:"animals_and_nature"},rve={keywords:["animal","nature","fly","tweet","spring"],char:"🐦",fitzpatrick_scale:!1,category:"animals_and_nature"},ive={keywords:["animal","chicken","bird"],char:"🐤",fitzpatrick_scale:!1,category:"animals_and_nature"},ave={keywords:["animal","chicken","egg","born","baby","bird"],char:"🐣",fitzpatrick_scale:!1,category:"animals_and_nature"},ove={keywords:["animal","chicken","baby","bird"],char:"🐥",fitzpatrick_scale:!1,category:"animals_and_nature"},sve={keywords:["animal","nature","bird","mallard"],char:"🦆",fitzpatrick_scale:!1,category:"animals_and_nature"},lve={keywords:["animal","nature","bird"],char:"🦅",fitzpatrick_scale:!1,category:"animals_and_nature"},cve={keywords:["animal","nature","bird","hoot"],char:"🦉",fitzpatrick_scale:!1,category:"animals_and_nature"},uve={keywords:["animal","nature","blind","vampire"],char:"🦇",fitzpatrick_scale:!1,category:"animals_and_nature"},dve={keywords:["animal","nature","wild"],char:"🐺",fitzpatrick_scale:!1,category:"animals_and_nature"},fve={keywords:["animal","nature"],char:"🐗",fitzpatrick_scale:!1,category:"animals_and_nature"},hve={keywords:["animal","brown","nature"],char:"🐴",fitzpatrick_scale:!1,category:"animals_and_nature"},pve={keywords:["animal","nature","mystical"],char:"🦄",fitzpatrick_scale:!1,category:"animals_and_nature"},mve={keywords:["animal","insect","nature","bug","spring","honey"],char:"🐝",fitzpatrick_scale:!1,category:"animals_and_nature"},gve={keywords:["animal","insect","nature","worm"],char:"🐛",fitzpatrick_scale:!1,category:"animals_and_nature"},yve={keywords:["animal","insect","nature","caterpillar"],char:"🦋",fitzpatrick_scale:!1,category:"animals_and_nature"},_ve={keywords:["slow","animal","shell"],char:"🐌",fitzpatrick_scale:!1,category:"animals_and_nature"},bve={keywords:["animal","insect","nature","ladybug"],char:"🐞",fitzpatrick_scale:!1,category:"animals_and_nature"},kve={keywords:["animal","insect","nature","bug"],char:"🐜",fitzpatrick_scale:!1,category:"animals_and_nature"},wve={keywords:["animal","cricket","chirp"],char:"🦗",fitzpatrick_scale:!1,category:"animals_and_nature"},vve={keywords:["animal","arachnid"],char:"🕷",fitzpatrick_scale:!1,category:"animals_and_nature"},xve={keywords:["animal","arachnid"],char:"🦂",fitzpatrick_scale:!1,category:"animals_and_nature"},Cve={keywords:["animal","crustacean"],char:"🦀",fitzpatrick_scale:!1,category:"animals_and_nature"},Sve={keywords:["animal","evil","nature","hiss","python"],char:"🐍",fitzpatrick_scale:!1,category:"animals_and_nature"},Dve={keywords:["animal","nature","reptile"],char:"🦎",fitzpatrick_scale:!1,category:"animals_and_nature"},Eve={keywords:["animal","nature","dinosaur","brachiosaurus","brontosaurus","diplodocus","extinct"],char:"🦕",fitzpatrick_scale:!1,category:"animals_and_nature"},Tve={keywords:["animal","slow","nature","tortoise"],char:"🐢",fitzpatrick_scale:!1,category:"animals_and_nature"},Ave={keywords:["animal","swim","ocean","beach","nemo"],char:"🐠",fitzpatrick_scale:!1,category:"animals_and_nature"},zve={keywords:["animal","food","nature"],char:"🐟",fitzpatrick_scale:!1,category:"animals_and_nature"},Fve={keywords:["animal","nature","food","sea","ocean"],char:"🐡",fitzpatrick_scale:!1,category:"animals_and_nature"},$ve={keywords:["animal","nature","fish","sea","ocean","flipper","fins","beach"],char:"🐬",fitzpatrick_scale:!1,category:"animals_and_nature"},Mve={keywords:["animal","nature","fish","sea","ocean","jaws","fins","beach"],char:"🦈",fitzpatrick_scale:!1,category:"animals_and_nature"},Ove={keywords:["animal","nature","sea","ocean"],char:"🐳",fitzpatrick_scale:!1,category:"animals_and_nature"},Nve={keywords:["animal","nature","sea","ocean"],char:"🐋",fitzpatrick_scale:!1,category:"animals_and_nature"},Lve={keywords:["animal","nature","reptile","lizard","alligator"],char:"🐊",fitzpatrick_scale:!1,category:"animals_and_nature"},Ive={keywords:["animal","nature"],char:"🐆",fitzpatrick_scale:!1,category:"animals_and_nature"},Bve={keywords:["animal","nature","stripes","safari"],char:"🦓",fitzpatrick_scale:!1,category:"animals_and_nature"},Rve={keywords:["animal","nature","roar"],char:"🐅",fitzpatrick_scale:!1,category:"animals_and_nature"},Pve={keywords:["animal","nature","ox","cow"],char:"🐃",fitzpatrick_scale:!1,category:"animals_and_nature"},jve={keywords:["animal","cow","beef"],char:"🐂",fitzpatrick_scale:!1,category:"animals_and_nature"},Vve={keywords:["beef","ox","animal","nature","moo","milk"],char:"🐄",fitzpatrick_scale:!1,category:"animals_and_nature"},qve={keywords:["animal","nature","horns","venison"],char:"🦌",fitzpatrick_scale:!1,category:"animals_and_nature"},Hve={keywords:["animal","hot","desert","hump"],char:"🐪",fitzpatrick_scale:!1,category:"animals_and_nature"},Uve={keywords:["animal","nature","hot","desert","hump"],char:"🐫",fitzpatrick_scale:!1,category:"animals_and_nature"},Wve={keywords:["animal","nature","spots","safari"],char:"🦒",fitzpatrick_scale:!1,category:"animals_and_nature"},Gve={keywords:["animal","nature","nose","th","circus"],char:"🐘",fitzpatrick_scale:!1,category:"animals_and_nature"},Kve={keywords:["animal","nature","horn"],char:"🦏",fitzpatrick_scale:!1,category:"animals_and_nature"},Yve={keywords:["animal","nature"],char:"🐐",fitzpatrick_scale:!1,category:"animals_and_nature"},Zve={keywords:["animal","sheep","nature"],char:"🐏",fitzpatrick_scale:!1,category:"animals_and_nature"},Xve={keywords:["animal","nature","wool","shipit"],char:"🐑",fitzpatrick_scale:!1,category:"animals_and_nature"},Jve={keywords:["animal","gamble","luck"],char:"🐎",fitzpatrick_scale:!1,category:"animals_and_nature"},Qve={keywords:["animal","nature"],char:"🐖",fitzpatrick_scale:!1,category:"animals_and_nature"},e2e={keywords:["animal","mouse","rodent"],char:"🐀",fitzpatrick_scale:!1,category:"animals_and_nature"},t2e={keywords:["animal","nature","rodent"],char:"🐁",fitzpatrick_scale:!1,category:"animals_and_nature"},n2e={keywords:["animal","nature","chicken"],char:"🐓",fitzpatrick_scale:!1,category:"animals_and_nature"},r2e={keywords:["animal","bird"],char:"🦃",fitzpatrick_scale:!1,category:"animals_and_nature"},i2e={keywords:["animal","bird"],char:"🕊",fitzpatrick_scale:!1,category:"animals_and_nature"},a2e={keywords:["animal","nature","friend","doge","pet","faithful"],char:"🐕",fitzpatrick_scale:!1,category:"animals_and_nature"},o2e={keywords:["dog","animal","101","nature","pet"],char:"🐩",fitzpatrick_scale:!1,category:"animals_and_nature"},s2e={keywords:["animal","meow","pet","cats"],char:"🐈",fitzpatrick_scale:!1,category:"animals_and_nature"},l2e={keywords:["animal","nature","pet","magic","spring"],char:"🐇",fitzpatrick_scale:!1,category:"animals_and_nature"},c2e={keywords:["animal","nature","rodent","squirrel"],char:"🐿",fitzpatrick_scale:!1,category:"animals_and_nature"},u2e={keywords:["animal","nature","spiny"],char:"🦔",fitzpatrick_scale:!1,category:"animals_and_nature"},d2e={keywords:["animal","nature"],char:"🦝",fitzpatrick_scale:!1,category:"animals_and_nature"},f2e={keywords:["animal","nature","alpaca"],char:"🦙",fitzpatrick_scale:!1,category:"animals_and_nature"},h2e={keywords:["animal","nature"],char:"🦛",fitzpatrick_scale:!1,category:"animals_and_nature"},p2e={keywords:["animal","nature","australia","joey","hop","marsupial"],char:"🦘",fitzpatrick_scale:!1,category:"animals_and_nature"},m2e={keywords:["animal","nature","honey"],char:"🦡",fitzpatrick_scale:!1,category:"animals_and_nature"},g2e={keywords:["animal","nature","bird"],char:"🦢",fitzpatrick_scale:!1,category:"animals_and_nature"},y2e={keywords:["animal","nature","peahen","bird"],char:"🦚",fitzpatrick_scale:!1,category:"animals_and_nature"},_2e={keywords:["animal","nature","bird","pirate","talk"],char:"🦜",fitzpatrick_scale:!1,category:"animals_and_nature"},b2e={keywords:["animal","nature","bisque","claws","seafood"],char:"🦞",fitzpatrick_scale:!1,category:"animals_and_nature"},k2e={keywords:["animal","nature","insect","malaria"],char:"🦟",fitzpatrick_scale:!1,category:"animals_and_nature"},w2e={keywords:["animal","tracking","footprints","dog","cat","pet","feet"],char:"🐾",fitzpatrick_scale:!1,category:"animals_and_nature"},v2e={keywords:["animal","myth","nature","chinese","green"],char:"🐉",fitzpatrick_scale:!1,category:"animals_and_nature"},x2e={keywords:["animal","myth","nature","chinese","green"],char:"🐲",fitzpatrick_scale:!1,category:"animals_and_nature"},C2e={keywords:["vegetable","plant","nature"],char:"🌵",fitzpatrick_scale:!1,category:"animals_and_nature"},S2e={keywords:["festival","vacation","december","xmas","celebration"],char:"🎄",fitzpatrick_scale:!1,category:"animals_and_nature"},D2e={keywords:["plant","nature"],char:"🌲",fitzpatrick_scale:!1,category:"animals_and_nature"},E2e={keywords:["plant","nature"],char:"🌳",fitzpatrick_scale:!1,category:"animals_and_nature"},T2e={keywords:["plant","vegetable","nature","summer","beach","mojito","tropical"],char:"🌴",fitzpatrick_scale:!1,category:"animals_and_nature"},A2e={keywords:["plant","nature","grass","lawn","spring"],char:"🌱",fitzpatrick_scale:!1,category:"animals_and_nature"},z2e={keywords:["vegetable","plant","medicine","weed","grass","lawn"],char:"🌿",fitzpatrick_scale:!1,category:"animals_and_nature"},F2e={keywords:["vegetable","plant","nature","irish","clover"],char:"☘",fitzpatrick_scale:!1,category:"animals_and_nature"},$2e={keywords:["vegetable","plant","nature","lucky","irish"],char:"🍀",fitzpatrick_scale:!1,category:"animals_and_nature"},M2e={keywords:["plant","nature","vegetable","panda","pine_decoration"],char:"🎍",fitzpatrick_scale:!1,category:"animals_and_nature"},O2e={keywords:["plant","nature","branch","summer"],char:"🎋",fitzpatrick_scale:!1,category:"animals_and_nature"},N2e={keywords:["nature","plant","tree","vegetable","grass","lawn","spring"],char:"🍃",fitzpatrick_scale:!1,category:"animals_and_nature"},L2e={keywords:["nature","plant","vegetable","leaves"],char:"🍂",fitzpatrick_scale:!1,category:"animals_and_nature"},I2e={keywords:["nature","plant","vegetable","ca","fall"],char:"🍁",fitzpatrick_scale:!1,category:"animals_and_nature"},B2e={keywords:["nature","plant"],char:"🌾",fitzpatrick_scale:!1,category:"animals_and_nature"},R2e={keywords:["plant","vegetable","flowers","beach"],char:"🌺",fitzpatrick_scale:!1,category:"animals_and_nature"},P2e={keywords:["nature","plant","fall"],char:"🌻",fitzpatrick_scale:!1,category:"animals_and_nature"},j2e={keywords:["flowers","valentines","love","spring"],char:"🌹",fitzpatrick_scale:!1,category:"animals_and_nature"},V2e={keywords:["plant","nature","flower"],char:"🥀",fitzpatrick_scale:!1,category:"animals_and_nature"},q2e={keywords:["flowers","plant","nature","summer","spring"],char:"🌷",fitzpatrick_scale:!1,category:"animals_and_nature"},H2e={keywords:["nature","flowers","yellow"],char:"🌼",fitzpatrick_scale:!1,category:"animals_and_nature"},U2e={keywords:["nature","plant","spring","flower"],char:"🌸",fitzpatrick_scale:!1,category:"animals_and_nature"},W2e={keywords:["flowers","nature","spring"],char:"💐",fitzpatrick_scale:!1,category:"animals_and_nature"},G2e={keywords:["plant","vegetable"],char:"🍄",fitzpatrick_scale:!1,category:"animals_and_nature"},K2e={keywords:["food","squirrel"],char:"🌰",fitzpatrick_scale:!1,category:"animals_and_nature"},Y2e={keywords:["halloween","light","pumpkin","creepy","fall"],char:"🎃",fitzpatrick_scale:!1,category:"animals_and_nature"},Z2e={keywords:["nature","sea","beach"],char:"🐚",fitzpatrick_scale:!1,category:"animals_and_nature"},X2e={keywords:["animal","insect","arachnid","silk"],char:"🕸",fitzpatrick_scale:!1,category:"animals_and_nature"},J2e={keywords:["globe","world","USA","international"],char:"🌎",fitzpatrick_scale:!1,category:"animals_and_nature"},Q2e={keywords:["globe","world","international"],char:"🌍",fitzpatrick_scale:!1,category:"animals_and_nature"},e3e={keywords:["globe","world","east","international"],char:"🌏",fitzpatrick_scale:!1,category:"animals_and_nature"},t3e={keywords:["nature","yellow","twilight","planet","space","night","evening","sleep"],char:"🌕",fitzpatrick_scale:!1,category:"animals_and_nature"},n3e={keywords:["nature","twilight","planet","space","night","evening","sleep","waxing_gibbous_moon"],char:"🌖",fitzpatrick_scale:!1,category:"animals_and_nature"},r3e={keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌗",fitzpatrick_scale:!1,category:"animals_and_nature"},i3e={keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌘",fitzpatrick_scale:!1,category:"animals_and_nature"},a3e={keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌑",fitzpatrick_scale:!1,category:"animals_and_nature"},o3e={keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌒",fitzpatrick_scale:!1,category:"animals_and_nature"},s3e={keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌓",fitzpatrick_scale:!1,category:"animals_and_nature"},l3e={keywords:["nature","night","sky","gray","twilight","planet","space","evening","sleep"],char:"🌔",fitzpatrick_scale:!1,category:"animals_and_nature"},c3e={keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌚",fitzpatrick_scale:!1,category:"animals_and_nature"},u3e={keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌝",fitzpatrick_scale:!1,category:"animals_and_nature"},d3e={keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌛",fitzpatrick_scale:!1,category:"animals_and_nature"},f3e={keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌜",fitzpatrick_scale:!1,category:"animals_and_nature"},h3e={keywords:["nature","morning","sky"],char:"🌞",fitzpatrick_scale:!1,category:"animals_and_nature"},p3e={keywords:["night","sleep","sky","evening","magic"],char:"🌙",fitzpatrick_scale:!1,category:"animals_and_nature"},m3e={keywords:["night","yellow"],char:"⭐",fitzpatrick_scale:!1,category:"animals_and_nature"},g3e={keywords:["night","sparkle","awesome","good","magic"],char:"🌟",fitzpatrick_scale:!1,category:"animals_and_nature"},y3e={keywords:["star","sparkle","shoot","magic"],char:"💫",fitzpatrick_scale:!1,category:"animals_and_nature"},_3e={keywords:["stars","shine","shiny","cool","awesome","good","magic"],char:"✨",fitzpatrick_scale:!1,category:"animals_and_nature"},b3e={keywords:["space"],char:"☄",fitzpatrick_scale:!1,category:"animals_and_nature"},k3e={keywords:["weather","nature","brightness","summer","beach","spring"],char:"☀️",fitzpatrick_scale:!1,category:"animals_and_nature"},w3e={keywords:["weather"],char:"🌤",fitzpatrick_scale:!1,category:"animals_and_nature"},v3e={keywords:["weather","nature","cloudy","morning","fall","spring"],char:"⛅",fitzpatrick_scale:!1,category:"animals_and_nature"},x3e={keywords:["weather"],char:"🌥",fitzpatrick_scale:!1,category:"animals_and_nature"},C3e={keywords:["weather"],char:"🌦",fitzpatrick_scale:!1,category:"animals_and_nature"},S3e={keywords:["weather","sky"],char:"☁️",fitzpatrick_scale:!1,category:"animals_and_nature"},D3e={keywords:["weather"],char:"🌧",fitzpatrick_scale:!1,category:"animals_and_nature"},E3e={keywords:["weather","lightning"],char:"⛈",fitzpatrick_scale:!1,category:"animals_and_nature"},T3e={keywords:["weather","thunder"],char:"🌩",fitzpatrick_scale:!1,category:"animals_and_nature"},A3e={keywords:["thunder","weather","lightning bolt","fast"],char:"⚡",fitzpatrick_scale:!1,category:"animals_and_nature"},z3e={keywords:["hot","cook","flame"],char:"🔥",fitzpatrick_scale:!1,category:"animals_and_nature"},F3e={keywords:["bomb","explode","explosion","collision","blown"],char:"💥",fitzpatrick_scale:!1,category:"animals_and_nature"},$3e={keywords:["winter","season","cold","weather","christmas","xmas"],char:"❄️",fitzpatrick_scale:!1,category:"animals_and_nature"},M3e={keywords:["weather"],char:"🌨",fitzpatrick_scale:!1,category:"animals_and_nature"},O3e={keywords:["winter","season","cold","weather","christmas","xmas","frozen","without_snow"],char:"⛄",fitzpatrick_scale:!1,category:"animals_and_nature"},N3e={keywords:["winter","season","cold","weather","christmas","xmas","frozen"],char:"☃",fitzpatrick_scale:!1,category:"animals_and_nature"},L3e={keywords:["gust","air"],char:"🌬",fitzpatrick_scale:!1,category:"animals_and_nature"},I3e={keywords:["wind","air","fast","shoo","fart","smoke","puff"],char:"💨",fitzpatrick_scale:!1,category:"animals_and_nature"},B3e={keywords:["weather","cyclone","twister"],char:"🌪",fitzpatrick_scale:!1,category:"animals_and_nature"},R3e={keywords:["weather"],char:"🌫",fitzpatrick_scale:!1,category:"animals_and_nature"},P3e={keywords:["weather","spring"],char:"☂",fitzpatrick_scale:!1,category:"animals_and_nature"},j3e={keywords:["rainy","weather","spring"],char:"☔",fitzpatrick_scale:!1,category:"animals_and_nature"},V3e={keywords:["water","drip","faucet","spring"],char:"💧",fitzpatrick_scale:!1,category:"animals_and_nature"},q3e={keywords:["water","drip","oops"],char:"💦",fitzpatrick_scale:!1,category:"animals_and_nature"},H3e={keywords:["sea","water","wave","nature","tsunami","disaster"],char:"🌊",fitzpatrick_scale:!1,category:"animals_and_nature"},U3e={keywords:["fruit","nature"],char:"🍏",fitzpatrick_scale:!1,category:"food_and_drink"},W3e={keywords:["fruit","mac","school"],char:"🍎",fitzpatrick_scale:!1,category:"food_and_drink"},G3e={keywords:["fruit","nature","food"],char:"🍐",fitzpatrick_scale:!1,category:"food_and_drink"},K3e={keywords:["food","fruit","nature","orange"],char:"🍊",fitzpatrick_scale:!1,category:"food_and_drink"},Y3e={keywords:["fruit","nature"],char:"🍋",fitzpatrick_scale:!1,category:"food_and_drink"},Z3e={keywords:["fruit","food","monkey"],char:"🍌",fitzpatrick_scale:!1,category:"food_and_drink"},X3e={keywords:["fruit","food","picnic","summer"],char:"🍉",fitzpatrick_scale:!1,category:"food_and_drink"},J3e={keywords:["fruit","food","wine"],char:"🍇",fitzpatrick_scale:!1,category:"food_and_drink"},Q3e={keywords:["fruit","food","nature"],char:"🍓",fitzpatrick_scale:!1,category:"food_and_drink"},e4e={keywords:["fruit","nature","food"],char:"🍈",fitzpatrick_scale:!1,category:"food_and_drink"},t4e={keywords:["food","fruit"],char:"🍒",fitzpatrick_scale:!1,category:"food_and_drink"},n4e={keywords:["fruit","nature","food"],char:"🍑",fitzpatrick_scale:!1,category:"food_and_drink"},r4e={keywords:["fruit","nature","food"],char:"🍍",fitzpatrick_scale:!1,category:"food_and_drink"},i4e={keywords:["fruit","nature","food","palm"],char:"🥥",fitzpatrick_scale:!1,category:"food_and_drink"},a4e={keywords:["fruit","food"],char:"🥝",fitzpatrick_scale:!1,category:"food_and_drink"},o4e={keywords:["fruit","food","tropical"],char:"🥭",fitzpatrick_scale:!1,category:"food_and_drink"},s4e={keywords:["fruit","food"],char:"🥑",fitzpatrick_scale:!1,category:"food_and_drink"},l4e={keywords:["fruit","food","vegetable"],char:"🥦",fitzpatrick_scale:!1,category:"food_and_drink"},c4e={keywords:["fruit","vegetable","nature","food"],char:"🍅",fitzpatrick_scale:!1,category:"food_and_drink"},u4e={keywords:["vegetable","nature","food","aubergine"],char:"🍆",fitzpatrick_scale:!1,category:"food_and_drink"},d4e={keywords:["fruit","food","pickle"],char:"🥒",fitzpatrick_scale:!1,category:"food_and_drink"},f4e={keywords:["vegetable","food","orange"],char:"🥕",fitzpatrick_scale:!1,category:"food_and_drink"},h4e={keywords:["food","spicy","chilli","chili"],char:"🌶",fitzpatrick_scale:!1,category:"food_and_drink"},p4e={keywords:["food","tuber","vegatable","starch"],char:"🥔",fitzpatrick_scale:!1,category:"food_and_drink"},m4e={keywords:["food","vegetable","plant"],char:"🌽",fitzpatrick_scale:!1,category:"food_and_drink"},g4e={keywords:["food","vegetable","plant","bok choy","cabbage","kale","lettuce"],char:"🥬",fitzpatrick_scale:!1,category:"food_and_drink"},y4e={keywords:["food","nature"],char:"🍠",fitzpatrick_scale:!1,category:"food_and_drink"},_4e={keywords:["food","nut"],char:"🥜",fitzpatrick_scale:!1,category:"food_and_drink"},b4e={keywords:["bees","sweet","kitchen"],char:"🍯",fitzpatrick_scale:!1,category:"food_and_drink"},k4e={keywords:["food","bread","french"],char:"🥐",fitzpatrick_scale:!1,category:"food_and_drink"},w4e={keywords:["food","wheat","breakfast","toast"],char:"🍞",fitzpatrick_scale:!1,category:"food_and_drink"},v4e={keywords:["food","bread","french"],char:"🥖",fitzpatrick_scale:!1,category:"food_and_drink"},x4e={keywords:["food","bread","bakery","schmear"],char:"🥯",fitzpatrick_scale:!1,category:"food_and_drink"},C4e={keywords:["food","bread","twisted"],char:"🥨",fitzpatrick_scale:!1,category:"food_and_drink"},S4e={keywords:["food","chadder"],char:"🧀",fitzpatrick_scale:!1,category:"food_and_drink"},D4e={keywords:["food","chicken","breakfast"],char:"🥚",fitzpatrick_scale:!1,category:"food_and_drink"},E4e={keywords:["food","breakfast","pork","pig","meat"],char:"🥓",fitzpatrick_scale:!1,category:"food_and_drink"},T4e={keywords:["food","cow","meat","cut","chop","lambchop","porkchop"],char:"🥩",fitzpatrick_scale:!1,category:"food_and_drink"},A4e={keywords:["food","breakfast","flapjacks","hotcakes"],char:"🥞",fitzpatrick_scale:!1,category:"food_and_drink"},z4e={keywords:["food","meat","drumstick","bird","chicken","turkey"],char:"🍗",fitzpatrick_scale:!1,category:"food_and_drink"},F4e={keywords:["good","food","drumstick"],char:"🍖",fitzpatrick_scale:!1,category:"food_and_drink"},$4e={keywords:["skeleton"],char:"🦴",fitzpatrick_scale:!1,category:"food_and_drink"},M4e={keywords:["food","animal","appetizer","summer"],char:"🍤",fitzpatrick_scale:!1,category:"food_and_drink"},O4e={keywords:["food","breakfast","kitchen","egg"],char:"🍳",fitzpatrick_scale:!1,category:"food_and_drink"},N4e={keywords:["meat","fast food","beef","cheeseburger","mcdonalds","burger king"],char:"🍔",fitzpatrick_scale:!1,category:"food_and_drink"},L4e={keywords:["chips","snack","fast food"],char:"🍟",fitzpatrick_scale:!1,category:"food_and_drink"},I4e={keywords:["food","flatbread","stuffed","gyro"],char:"🥙",fitzpatrick_scale:!1,category:"food_and_drink"},B4e={keywords:["food","frankfurter"],char:"🌭",fitzpatrick_scale:!1,category:"food_and_drink"},R4e={keywords:["food","party"],char:"🍕",fitzpatrick_scale:!1,category:"food_and_drink"},P4e={keywords:["food","lunch","bread"],char:"🥪",fitzpatrick_scale:!1,category:"food_and_drink"},j4e={keywords:["food","soup"],char:"🥫",fitzpatrick_scale:!1,category:"food_and_drink"},V4e={keywords:["food","italian","noodle"],char:"🍝",fitzpatrick_scale:!1,category:"food_and_drink"},q4e={keywords:["food","mexican"],char:"🌮",fitzpatrick_scale:!1,category:"food_and_drink"},H4e={keywords:["food","mexican"],char:"🌯",fitzpatrick_scale:!1,category:"food_and_drink"},U4e={keywords:["food","healthy","lettuce"],char:"🥗",fitzpatrick_scale:!1,category:"food_and_drink"},W4e={keywords:["food","cooking","casserole","paella"],char:"🥘",fitzpatrick_scale:!1,category:"food_and_drink"},G4e={keywords:["food","japanese","noodle","chopsticks"],char:"🍜",fitzpatrick_scale:!1,category:"food_and_drink"},K4e={keywords:["food","meat","soup"],char:"🍲",fitzpatrick_scale:!1,category:"food_and_drink"},Y4e={keywords:["food","japan","sea","beach","narutomaki","pink","swirl","kamaboko","surimi","ramen"],char:"🍥",fitzpatrick_scale:!1,category:"food_and_drink"},Z4e={keywords:["food","prophecy"],char:"🥠",fitzpatrick_scale:!1,category:"food_and_drink"},X4e={keywords:["food","fish","japanese","rice"],char:"🍣",fitzpatrick_scale:!1,category:"food_and_drink"},J4e={keywords:["food","japanese","box"],char:"🍱",fitzpatrick_scale:!1,category:"food_and_drink"},Q4e={keywords:["food","spicy","hot","indian"],char:"🍛",fitzpatrick_scale:!1,category:"food_and_drink"},e6e={keywords:["food","japanese"],char:"🍙",fitzpatrick_scale:!1,category:"food_and_drink"},t6e={keywords:["food","china","asian"],char:"🍚",fitzpatrick_scale:!1,category:"food_and_drink"},n6e={keywords:["food","japanese"],char:"🍘",fitzpatrick_scale:!1,category:"food_and_drink"},r6e={keywords:["food","japanese"],char:"🍢",fitzpatrick_scale:!1,category:"food_and_drink"},i6e={keywords:["food","dessert","sweet","japanese","barbecue","meat"],char:"🍡",fitzpatrick_scale:!1,category:"food_and_drink"},a6e={keywords:["hot","dessert","summer"],char:"🍧",fitzpatrick_scale:!1,category:"food_and_drink"},o6e={keywords:["food","hot","dessert"],char:"🍨",fitzpatrick_scale:!1,category:"food_and_drink"},s6e={keywords:["food","hot","dessert","summer"],char:"🍦",fitzpatrick_scale:!1,category:"food_and_drink"},l6e={keywords:["food","dessert","pastry"],char:"🥧",fitzpatrick_scale:!1,category:"food_and_drink"},c6e={keywords:["food","dessert"],char:"🍰",fitzpatrick_scale:!1,category:"food_and_drink"},u6e={keywords:["food","dessert","bakery","sweet"],char:"🧁",fitzpatrick_scale:!1,category:"food_and_drink"},d6e={keywords:["food","autumn"],char:"🥮",fitzpatrick_scale:!1,category:"food_and_drink"},f6e={keywords:["food","dessert","cake"],char:"🎂",fitzpatrick_scale:!1,category:"food_and_drink"},h6e={keywords:["dessert","food"],char:"🍮",fitzpatrick_scale:!1,category:"food_and_drink"},p6e={keywords:["snack","dessert","sweet","lolly"],char:"🍬",fitzpatrick_scale:!1,category:"food_and_drink"},m6e={keywords:["food","snack","candy","sweet"],char:"🍭",fitzpatrick_scale:!1,category:"food_and_drink"},g6e={keywords:["food","snack","dessert","sweet"],char:"🍫",fitzpatrick_scale:!1,category:"food_and_drink"},y6e={keywords:["food","movie theater","films","snack"],char:"🍿",fitzpatrick_scale:!1,category:"food_and_drink"},_6e={keywords:["food","empanada","pierogi","potsticker"],char:"🥟",fitzpatrick_scale:!1,category:"food_and_drink"},b6e={keywords:["food","dessert","snack","sweet","donut"],char:"🍩",fitzpatrick_scale:!1,category:"food_and_drink"},k6e={keywords:["food","snack","oreo","chocolate","sweet","dessert"],char:"🍪",fitzpatrick_scale:!1,category:"food_and_drink"},w6e={keywords:["beverage","drink","cow"],char:"🥛",fitzpatrick_scale:!1,category:"food_and_drink"},v6e={keywords:["relax","beverage","drink","drunk","party","pub","summer","alcohol","booze"],char:"🍺",fitzpatrick_scale:!1,category:"food_and_drink"},x6e={keywords:["relax","beverage","drink","drunk","party","pub","summer","alcohol","booze"],char:"🍻",fitzpatrick_scale:!1,category:"food_and_drink"},C6e={keywords:["beverage","drink","party","alcohol","celebrate","cheers","wine","champagne","toast"],char:"🥂",fitzpatrick_scale:!1,category:"food_and_drink"},S6e={keywords:["drink","beverage","drunk","alcohol","booze"],char:"🍷",fitzpatrick_scale:!1,category:"food_and_drink"},D6e={keywords:["drink","beverage","drunk","alcohol","liquor","booze","bourbon","scotch","whisky","glass","shot"],char:"🥃",fitzpatrick_scale:!1,category:"food_and_drink"},E6e={keywords:["drink","drunk","alcohol","beverage","booze","mojito"],char:"🍸",fitzpatrick_scale:!1,category:"food_and_drink"},T6e={keywords:["beverage","cocktail","summer","beach","alcohol","booze","mojito"],char:"🍹",fitzpatrick_scale:!1,category:"food_and_drink"},A6e={keywords:["drink","wine","bottle","celebration"],char:"🍾",fitzpatrick_scale:!1,category:"food_and_drink"},z6e={keywords:["wine","drink","drunk","beverage","japanese","alcohol","booze"],char:"🍶",fitzpatrick_scale:!1,category:"food_and_drink"},F6e={keywords:["drink","bowl","breakfast","green","british"],char:"🍵",fitzpatrick_scale:!1,category:"food_and_drink"},$6e={keywords:["drink","soda"],char:"🥤",fitzpatrick_scale:!1,category:"food_and_drink"},M6e={keywords:["beverage","caffeine","latte","espresso"],char:"☕",fitzpatrick_scale:!1,category:"food_and_drink"},O6e={keywords:["food","container","milk"],char:"🍼",fitzpatrick_scale:!1,category:"food_and_drink"},N6e={keywords:["condiment","shaker"],char:"🧂",fitzpatrick_scale:!1,category:"food_and_drink"},L6e={keywords:["cutlery","kitchen","tableware"],char:"🥄",fitzpatrick_scale:!1,category:"food_and_drink"},I6e={keywords:["cutlery","kitchen"],char:"🍴",fitzpatrick_scale:!1,category:"food_and_drink"},B6e={keywords:["food","eat","meal","lunch","dinner","restaurant"],char:"🍽",fitzpatrick_scale:!1,category:"food_and_drink"},R6e={keywords:["food","breakfast","cereal","oatmeal","porridge"],char:"🥣",fitzpatrick_scale:!1,category:"food_and_drink"},P6e={keywords:["food","leftovers"],char:"🥡",fitzpatrick_scale:!1,category:"food_and_drink"},j6e={keywords:["food"],char:"🥢",fitzpatrick_scale:!1,category:"food_and_drink"},V6e={keywords:["sports","football"],char:"⚽",fitzpatrick_scale:!1,category:"activity"},q6e={keywords:["sports","balls","NBA"],char:"🏀",fitzpatrick_scale:!1,category:"activity"},H6e={keywords:["sports","balls","NFL"],char:"🏈",fitzpatrick_scale:!1,category:"activity"},U6e={keywords:["sports","balls"],char:"⚾",fitzpatrick_scale:!1,category:"activity"},W6e={keywords:["sports","balls"],char:"🥎",fitzpatrick_scale:!1,category:"activity"},G6e={keywords:["sports","balls","green"],char:"🎾",fitzpatrick_scale:!1,category:"activity"},K6e={keywords:["sports","balls"],char:"🏐",fitzpatrick_scale:!1,category:"activity"},Y6e={keywords:["sports","team"],char:"🏉",fitzpatrick_scale:!1,category:"activity"},Z6e={keywords:["sports","frisbee","ultimate"],char:"🥏",fitzpatrick_scale:!1,category:"activity"},X6e={keywords:["sports","business","flag","hole","summer"],char:"⛳",fitzpatrick_scale:!1,category:"activity"},J6e={keywords:["sports","business","woman","female"],char:"🏌️‍♀️",fitzpatrick_scale:!1,category:"activity"},Q6e={keywords:["sports","business"],char:"🏌",fitzpatrick_scale:!0,category:"activity"},e5e={keywords:["sports","pingpong"],char:"🏓",fitzpatrick_scale:!1,category:"activity"},t5e={keywords:["sports"],char:"🏸",fitzpatrick_scale:!1,category:"activity"},n5e={keywords:["sports"],char:"🥅",fitzpatrick_scale:!1,category:"activity"},r5e={keywords:["sports"],char:"🏒",fitzpatrick_scale:!1,category:"activity"},i5e={keywords:["sports"],char:"🏑",fitzpatrick_scale:!1,category:"activity"},a5e={keywords:["sports","ball","stick"],char:"🥍",fitzpatrick_scale:!1,category:"activity"},o5e={keywords:["sports"],char:"🏏",fitzpatrick_scale:!1,category:"activity"},s5e={keywords:["sports","winter","cold","snow"],char:"🎿",fitzpatrick_scale:!1,category:"activity"},l5e={keywords:["sports","winter","snow"],char:"⛷",fitzpatrick_scale:!1,category:"activity"},c5e={keywords:["sports","winter"],char:"🏂",fitzpatrick_scale:!0,category:"activity"},u5e={keywords:["sports","fencing","sword"],char:"🤺",fitzpatrick_scale:!1,category:"activity"},d5e={keywords:["sports","wrestlers"],char:"🤼‍♀️",fitzpatrick_scale:!1,category:"activity"},f5e={keywords:["sports","wrestlers"],char:"🤼‍♂️",fitzpatrick_scale:!1,category:"activity"},h5e={keywords:["gymnastics"],char:"🤸‍♀️",fitzpatrick_scale:!0,category:"activity"},p5e={keywords:["gymnastics"],char:"🤸‍♂️",fitzpatrick_scale:!0,category:"activity"},m5e={keywords:["sports"],char:"🤾‍♀️",fitzpatrick_scale:!0,category:"activity"},g5e={keywords:["sports"],char:"🤾‍♂️",fitzpatrick_scale:!0,category:"activity"},y5e={keywords:["sports"],char:"⛸",fitzpatrick_scale:!1,category:"activity"},_5e={keywords:["sports"],char:"🥌",fitzpatrick_scale:!1,category:"activity"},b5e={keywords:["board"],char:"🛹",fitzpatrick_scale:!1,category:"activity"},k5e={keywords:["sleigh","luge","toboggan"],char:"🛷",fitzpatrick_scale:!1,category:"activity"},w5e={keywords:["sports"],char:"🏹",fitzpatrick_scale:!1,category:"activity"},v5e={keywords:["food","hobby","summer"],char:"🎣",fitzpatrick_scale:!1,category:"activity"},x5e={keywords:["sports","fighting"],char:"🥊",fitzpatrick_scale:!1,category:"activity"},C5e={keywords:["judo","karate","taekwondo"],char:"🥋",fitzpatrick_scale:!1,category:"activity"},S5e={keywords:["sports","hobby","water","ship","woman","female"],char:"🚣‍♀️",fitzpatrick_scale:!0,category:"activity"},D5e={keywords:["sports","hobby","water","ship"],char:"🚣",fitzpatrick_scale:!0,category:"activity"},E5e={keywords:["sports","hobby","woman","female","rock"],char:"🧗‍♀️",fitzpatrick_scale:!0,category:"activity"},T5e={keywords:["sports","hobby","man","male","rock"],char:"🧗‍♂️",fitzpatrick_scale:!0,category:"activity"},A5e={keywords:["sports","exercise","human","athlete","water","summer","woman","female"],char:"🏊‍♀️",fitzpatrick_scale:!0,category:"activity"},z5e={keywords:["sports","exercise","human","athlete","water","summer"],char:"🏊",fitzpatrick_scale:!0,category:"activity"},F5e={keywords:["sports","pool"],char:"🤽‍♀️",fitzpatrick_scale:!0,category:"activity"},$5e={keywords:["sports","pool"],char:"🤽‍♂️",fitzpatrick_scale:!0,category:"activity"},M5e={keywords:["woman","female","meditation","yoga","serenity","zen","mindfulness"],char:"🧘‍♀️",fitzpatrick_scale:!0,category:"activity"},O5e={keywords:["man","male","meditation","yoga","serenity","zen","mindfulness"],char:"🧘‍♂️",fitzpatrick_scale:!0,category:"activity"},N5e={keywords:["sports","ocean","sea","summer","beach","woman","female"],char:"🏄‍♀️",fitzpatrick_scale:!0,category:"activity"},L5e={keywords:["sports","ocean","sea","summer","beach"],char:"🏄",fitzpatrick_scale:!0,category:"activity"},I5e={keywords:["clean","shower","bathroom"],char:"🛀",fitzpatrick_scale:!0,category:"activity"},B5e={keywords:["sports","human","woman","female"],char:"⛹️‍♀️",fitzpatrick_scale:!0,category:"activity"},R5e={keywords:["sports","human"],char:"⛹",fitzpatrick_scale:!0,category:"activity"},P5e={keywords:["sports","training","exercise","woman","female"],char:"🏋️‍♀️",fitzpatrick_scale:!0,category:"activity"},j5e={keywords:["sports","training","exercise"],char:"🏋",fitzpatrick_scale:!0,category:"activity"},V5e={keywords:["sports","bike","exercise","hipster","woman","female"],char:"🚴‍♀️",fitzpatrick_scale:!0,category:"activity"},q5e={keywords:["sports","bike","exercise","hipster"],char:"🚴",fitzpatrick_scale:!0,category:"activity"},H5e={keywords:["transportation","sports","human","race","bike","woman","female"],char:"🚵‍♀️",fitzpatrick_scale:!0,category:"activity"},U5e={keywords:["transportation","sports","human","race","bike"],char:"🚵",fitzpatrick_scale:!0,category:"activity"},W5e={keywords:["animal","betting","competition","gambling","luck"],char:"🏇",fitzpatrick_scale:!0,category:"activity"},G5e={keywords:["suit","business","levitate","hover","jump"],char:"🕴",fitzpatrick_scale:!0,category:"activity"},K5e={keywords:["win","award","contest","place","ftw","ceremony"],char:"🏆",fitzpatrick_scale:!1,category:"activity"},Y5e={keywords:["play","pageant"],char:"🎽",fitzpatrick_scale:!1,category:"activity"},Z5e={keywords:["award","winning"],char:"🏅",fitzpatrick_scale:!1,category:"activity"},X5e={keywords:["award","winning","army"],char:"🎖",fitzpatrick_scale:!1,category:"activity"},J5e={keywords:["sports","cause","support","awareness"],char:"🎗",fitzpatrick_scale:!1,category:"activity"},Q5e={keywords:["flower","decoration","military"],char:"🏵",fitzpatrick_scale:!1,category:"activity"},exe={keywords:["event","concert","pass"],char:"🎫",fitzpatrick_scale:!1,category:"activity"},txe={keywords:["sports","concert","entrance"],char:"🎟",fitzpatrick_scale:!1,category:"activity"},nxe={keywords:["acting","theater","drama"],char:"🎭",fitzpatrick_scale:!1,category:"activity"},rxe={keywords:["design","paint","draw","colors"],char:"🎨",fitzpatrick_scale:!1,category:"activity"},ixe={keywords:["festival","carnival","party"],char:"🎪",fitzpatrick_scale:!1,category:"activity"},axe={keywords:["juggle","balance","skill","multitask"],char:"🤹‍♀️",fitzpatrick_scale:!0,category:"activity"},oxe={keywords:["juggle","balance","skill","multitask"],char:"🤹‍♂️",fitzpatrick_scale:!0,category:"activity"},sxe={keywords:["sound","music","PA","sing","talkshow"],char:"🎤",fitzpatrick_scale:!1,category:"activity"},lxe={keywords:["music","score","gadgets"],char:"🎧",fitzpatrick_scale:!1,category:"activity"},cxe={keywords:["treble","clef","compose"],char:"🎼",fitzpatrick_scale:!1,category:"activity"},uxe={keywords:["piano","instrument","compose"],char:"🎹",fitzpatrick_scale:!1,category:"activity"},dxe={keywords:["music","instrument","drumsticks","snare"],char:"🥁",fitzpatrick_scale:!1,category:"activity"},fxe={keywords:["music","instrument","jazz","blues"],char:"🎷",fitzpatrick_scale:!1,category:"activity"},hxe={keywords:["music","brass"],char:"🎺",fitzpatrick_scale:!1,category:"activity"},pxe={keywords:["music","instrument"],char:"🎸",fitzpatrick_scale:!1,category:"activity"},mxe={keywords:["music","instrument","orchestra","symphony"],char:"🎻",fitzpatrick_scale:!1,category:"activity"},gxe={keywords:["movie","film","record"],char:"🎬",fitzpatrick_scale:!1,category:"activity"},yxe={keywords:["play","console","PS4","controller"],char:"🎮",fitzpatrick_scale:!1,category:"activity"},_xe={keywords:["game","arcade","play"],char:"👾",fitzpatrick_scale:!1,category:"activity"},bxe={keywords:["game","play","bar","target","bullseye"],char:"🎯",fitzpatrick_scale:!1,category:"activity"},kxe={keywords:["dice","random","tabletop","play","luck"],char:"🎲",fitzpatrick_scale:!1,category:"activity"},wxe={keywords:["expendable"],char:"♟",fitzpatrick_scale:!1,category:"activity"},vxe={keywords:["bet","gamble","vegas","fruit machine","luck","casino"],char:"🎰",fitzpatrick_scale:!1,category:"activity"},xxe={keywords:["interlocking","puzzle","piece"],char:"🧩",fitzpatrick_scale:!1,category:"activity"},Cxe={keywords:["sports","fun","play"],char:"🎳",fitzpatrick_scale:!1,category:"activity"},Sxe={keywords:["red","transportation","vehicle"],char:"🚗",fitzpatrick_scale:!1,category:"travel_and_places"},Dxe={keywords:["uber","vehicle","cars","transportation"],char:"🚕",fitzpatrick_scale:!1,category:"travel_and_places"},Exe={keywords:["transportation","vehicle"],char:"🚙",fitzpatrick_scale:!1,category:"travel_and_places"},Txe={keywords:["car","vehicle","transportation"],char:"🚌",fitzpatrick_scale:!1,category:"travel_and_places"},Axe={keywords:["bart","transportation","vehicle"],char:"🚎",fitzpatrick_scale:!1,category:"travel_and_places"},zxe={keywords:["sports","race","fast","formula","f1"],char:"🏎",fitzpatrick_scale:!1,category:"travel_and_places"},Fxe={keywords:["vehicle","cars","transportation","law","legal","enforcement"],char:"🚓",fitzpatrick_scale:!1,category:"travel_and_places"},$xe={keywords:["health","911","hospital"],char:"🚑",fitzpatrick_scale:!1,category:"travel_and_places"},Mxe={keywords:["transportation","cars","vehicle"],char:"🚒",fitzpatrick_scale:!1,category:"travel_and_places"},Oxe={keywords:["vehicle","car","transportation"],char:"🚐",fitzpatrick_scale:!1,category:"travel_and_places"},Nxe={keywords:["cars","transportation"],char:"🚚",fitzpatrick_scale:!1,category:"travel_and_places"},Lxe={keywords:["vehicle","cars","transportation","express"],char:"🚛",fitzpatrick_scale:!1,category:"travel_and_places"},Ixe={keywords:["vehicle","car","farming","agriculture"],char:"🚜",fitzpatrick_scale:!1,category:"travel_and_places"},Bxe={keywords:["vehicle","kick","razor"],char:"🛴",fitzpatrick_scale:!1,category:"travel_and_places"},Rxe={keywords:["race","sports","fast"],char:"🏍",fitzpatrick_scale:!1,category:"travel_and_places"},Pxe={keywords:["sports","bicycle","exercise","hipster"],char:"🚲",fitzpatrick_scale:!1,category:"travel_and_places"},jxe={keywords:["vehicle","vespa","sasha"],char:"🛵",fitzpatrick_scale:!1,category:"travel_and_places"},Vxe={keywords:["police","ambulance","911","emergency","alert","error","pinged","law","legal"],char:"🚨",fitzpatrick_scale:!1,category:"travel_and_places"},qxe={keywords:["vehicle","law","legal","enforcement","911"],char:"🚔",fitzpatrick_scale:!1,category:"travel_and_places"},Hxe={keywords:["vehicle","transportation"],char:"🚍",fitzpatrick_scale:!1,category:"travel_and_places"},Uxe={keywords:["car","vehicle","transportation"],char:"🚘",fitzpatrick_scale:!1,category:"travel_and_places"},Wxe={keywords:["vehicle","cars","uber"],char:"🚖",fitzpatrick_scale:!1,category:"travel_and_places"},Gxe={keywords:["transportation","vehicle","ski"],char:"🚡",fitzpatrick_scale:!1,category:"travel_and_places"},Kxe={keywords:["transportation","vehicle","ski"],char:"🚠",fitzpatrick_scale:!1,category:"travel_and_places"},Yxe={keywords:["vehicle","transportation"],char:"🚟",fitzpatrick_scale:!1,category:"travel_and_places"},Zxe={keywords:["transportation","vehicle"],char:"🚃",fitzpatrick_scale:!1,category:"travel_and_places"},Xxe={keywords:["transportation","vehicle","carriage","public","travel"],char:"🚋",fitzpatrick_scale:!1,category:"travel_and_places"},Jxe={keywords:["transportation","vehicle"],char:"🚝",fitzpatrick_scale:!1,category:"travel_and_places"},Qxe={keywords:["transportation","vehicle"],char:"🚄",fitzpatrick_scale:!1,category:"travel_and_places"},e8e={keywords:["transportation","vehicle","speed","fast","public","travel"],char:"🚅",fitzpatrick_scale:!1,category:"travel_and_places"},t8e={keywords:["transportation","vehicle"],char:"🚈",fitzpatrick_scale:!1,category:"travel_and_places"},n8e={keywords:["transportation","vehicle"],char:"🚞",fitzpatrick_scale:!1,category:"travel_and_places"},r8e={keywords:["transportation","vehicle","train"],char:"🚂",fitzpatrick_scale:!1,category:"travel_and_places"},i8e={keywords:["transportation","vehicle"],char:"🚆",fitzpatrick_scale:!1,category:"travel_and_places"},a8e={keywords:["transportation","blue-square","mrt","underground","tube"],char:"🚇",fitzpatrick_scale:!1,category:"travel_and_places"},o8e={keywords:["transportation","vehicle"],char:"🚊",fitzpatrick_scale:!1,category:"travel_and_places"},s8e={keywords:["transportation","vehicle","public"],char:"🚉",fitzpatrick_scale:!1,category:"travel_and_places"},l8e={keywords:["transportation","vehicle","ufo"],char:"🛸",fitzpatrick_scale:!1,category:"travel_and_places"},c8e={keywords:["transportation","vehicle","fly"],char:"🚁",fitzpatrick_scale:!1,category:"travel_and_places"},u8e={keywords:["flight","transportation","fly","vehicle"],char:"🛩",fitzpatrick_scale:!1,category:"travel_and_places"},d8e={keywords:["vehicle","transportation","flight","fly"],char:"✈️",fitzpatrick_scale:!1,category:"travel_and_places"},f8e={keywords:["airport","flight","landing"],char:"🛫",fitzpatrick_scale:!1,category:"travel_and_places"},h8e={keywords:["airport","flight","boarding"],char:"🛬",fitzpatrick_scale:!1,category:"travel_and_places"},p8e={keywords:["ship","summer","transportation","water","sailing"],char:"⛵",fitzpatrick_scale:!1,category:"travel_and_places"},m8e={keywords:["ship"],char:"🛥",fitzpatrick_scale:!1,category:"travel_and_places"},g8e={keywords:["ship","transportation","vehicle","summer"],char:"🚤",fitzpatrick_scale:!1,category:"travel_and_places"},y8e={keywords:["boat","ship","yacht"],char:"⛴",fitzpatrick_scale:!1,category:"travel_and_places"},_8e={keywords:["yacht","cruise","ferry"],char:"🛳",fitzpatrick_scale:!1,category:"travel_and_places"},b8e={keywords:["launch","ship","staffmode","NASA","outer space","outer_space","fly"],char:"🚀",fitzpatrick_scale:!1,category:"travel_and_places"},k8e={keywords:["communication","gps","orbit","spaceflight","NASA","ISS"],char:"🛰",fitzpatrick_scale:!1,category:"travel_and_places"},w8e={keywords:["sit","airplane","transport","bus","flight","fly"],char:"💺",fitzpatrick_scale:!1,category:"travel_and_places"},v8e={keywords:["boat","paddle","water","ship"],char:"🛶",fitzpatrick_scale:!1,category:"travel_and_places"},x8e={keywords:["ship","ferry","sea","boat"],char:"⚓",fitzpatrick_scale:!1,category:"travel_and_places"},C8e={keywords:["wip","progress","caution","warning"],char:"🚧",fitzpatrick_scale:!1,category:"travel_and_places"},S8e={keywords:["gas station","petroleum"],char:"⛽",fitzpatrick_scale:!1,category:"travel_and_places"},D8e={keywords:["transportation","wait"],char:"🚏",fitzpatrick_scale:!1,category:"travel_and_places"},E8e={keywords:["transportation","driving"],char:"🚦",fitzpatrick_scale:!1,category:"travel_and_places"},T8e={keywords:["transportation","signal"],char:"🚥",fitzpatrick_scale:!1,category:"travel_and_places"},A8e={keywords:["contest","finishline","race","gokart"],char:"🏁",fitzpatrick_scale:!1,category:"travel_and_places"},z8e={keywords:["transportation","titanic","deploy"],char:"🚢",fitzpatrick_scale:!1,category:"travel_and_places"},F8e={keywords:["photo","carnival","londoneye"],char:"🎡",fitzpatrick_scale:!1,category:"travel_and_places"},$8e={keywords:["carnival","playground","photo","fun"],char:"🎢",fitzpatrick_scale:!1,category:"travel_and_places"},M8e={keywords:["photo","carnival"],char:"🎠",fitzpatrick_scale:!1,category:"travel_and_places"},O8e={keywords:["wip","working","progress"],char:"🏗",fitzpatrick_scale:!1,category:"travel_and_places"},N8e={keywords:["photo","mountain"],char:"🌁",fitzpatrick_scale:!1,category:"travel_and_places"},L8e={keywords:["photo","japanese"],char:"🗼",fitzpatrick_scale:!1,category:"travel_and_places"},I8e={keywords:["building","industry","pollution","smoke"],char:"🏭",fitzpatrick_scale:!1,category:"travel_and_places"},B8e={keywords:["photo","summer","water","fresh"],char:"⛲",fitzpatrick_scale:!1,category:"travel_and_places"},R8e={keywords:["photo","japan","asia","tsukimi"],char:"🎑",fitzpatrick_scale:!1,category:"travel_and_places"},P8e={keywords:["photo","nature","environment"],char:"⛰",fitzpatrick_scale:!1,category:"travel_and_places"},j8e={keywords:["photo","nature","environment","winter","cold"],char:"🏔",fitzpatrick_scale:!1,category:"travel_and_places"},V8e={keywords:["photo","mountain","nature","japanese"],char:"🗻",fitzpatrick_scale:!1,category:"travel_and_places"},q8e={keywords:["photo","nature","disaster"],char:"🌋",fitzpatrick_scale:!1,category:"travel_and_places"},H8e={keywords:["nation","country","japanese","asia"],char:"🗾",fitzpatrick_scale:!1,category:"travel_and_places"},U8e={keywords:["photo","outdoors","tent"],char:"🏕",fitzpatrick_scale:!1,category:"travel_and_places"},W8e={keywords:["photo","camping","outdoors"],char:"⛺",fitzpatrick_scale:!1,category:"travel_and_places"},G8e={keywords:["photo","environment","nature"],char:"🏞",fitzpatrick_scale:!1,category:"travel_and_places"},K8e={keywords:["road","cupertino","interstate","highway"],char:"🛣",fitzpatrick_scale:!1,category:"travel_and_places"},Y8e={keywords:["train","transportation"],char:"🛤",fitzpatrick_scale:!1,category:"travel_and_places"},Z8e={keywords:["morning","view","vacation","photo"],char:"🌅",fitzpatrick_scale:!1,category:"travel_and_places"},X8e={keywords:["view","vacation","photo"],char:"🌄",fitzpatrick_scale:!1,category:"travel_and_places"},J8e={keywords:["photo","warm","saharah"],char:"🏜",fitzpatrick_scale:!1,category:"travel_and_places"},Q8e={keywords:["weather","summer","sunny","sand","mojito"],char:"🏖",fitzpatrick_scale:!1,category:"travel_and_places"},e7e={keywords:["photo","tropical","mojito"],char:"🏝",fitzpatrick_scale:!1,category:"travel_and_places"},t7e={keywords:["photo","good morning","dawn"],char:"🌇",fitzpatrick_scale:!1,category:"travel_and_places"},n7e={keywords:["photo","evening","sky","buildings"],char:"🌆",fitzpatrick_scale:!1,category:"travel_and_places"},r7e={keywords:["photo","night life","urban"],char:"🏙",fitzpatrick_scale:!1,category:"travel_and_places"},i7e={keywords:["evening","city","downtown"],char:"🌃",fitzpatrick_scale:!1,category:"travel_and_places"},a7e={keywords:["photo","sanfrancisco"],char:"🌉",fitzpatrick_scale:!1,category:"travel_and_places"},o7e={keywords:["photo","space","stars"],char:"🌌",fitzpatrick_scale:!1,category:"travel_and_places"},s7e={keywords:["night","photo"],char:"🌠",fitzpatrick_scale:!1,category:"travel_and_places"},l7e={keywords:["stars","night","shine"],char:"🎇",fitzpatrick_scale:!1,category:"travel_and_places"},c7e={keywords:["photo","festival","carnival","congratulations"],char:"🎆",fitzpatrick_scale:!1,category:"travel_and_places"},u7e={keywords:["nature","happy","unicorn_face","photo","sky","spring"],char:"🌈",fitzpatrick_scale:!1,category:"travel_and_places"},d7e={keywords:["buildings","photo"],char:"🏘",fitzpatrick_scale:!1,category:"travel_and_places"},f7e={keywords:["building","royalty","history"],char:"🏰",fitzpatrick_scale:!1,category:"travel_and_places"},h7e={keywords:["photo","building"],char:"🏯",fitzpatrick_scale:!1,category:"travel_and_places"},p7e={keywords:["photo","place","sports","concert","venue"],char:"🏟",fitzpatrick_scale:!1,category:"travel_and_places"},m7e={keywords:["american","newyork"],char:"🗽",fitzpatrick_scale:!1,category:"travel_and_places"},g7e={keywords:["building","home"],char:"🏠",fitzpatrick_scale:!1,category:"travel_and_places"},y7e={keywords:["home","plant","nature"],char:"🏡",fitzpatrick_scale:!1,category:"travel_and_places"},_7e={keywords:["abandon","evict","broken","building"],char:"🏚",fitzpatrick_scale:!1,category:"travel_and_places"},b7e={keywords:["building","bureau","work"],char:"🏢",fitzpatrick_scale:!1,category:"travel_and_places"},k7e={keywords:["building","shopping","mall"],char:"🏬",fitzpatrick_scale:!1,category:"travel_and_places"},w7e={keywords:["building","envelope","communication"],char:"🏣",fitzpatrick_scale:!1,category:"travel_and_places"},v7e={keywords:["building","email"],char:"🏤",fitzpatrick_scale:!1,category:"travel_and_places"},x7e={keywords:["building","health","surgery","doctor"],char:"🏥",fitzpatrick_scale:!1,category:"travel_and_places"},C7e={keywords:["building","money","sales","cash","business","enterprise"],char:"🏦",fitzpatrick_scale:!1,category:"travel_and_places"},S7e={keywords:["building","accomodation","checkin"],char:"🏨",fitzpatrick_scale:!1,category:"travel_and_places"},D7e={keywords:["building","shopping","groceries"],char:"🏪",fitzpatrick_scale:!1,category:"travel_and_places"},E7e={keywords:["building","student","education","learn","teach"],char:"🏫",fitzpatrick_scale:!1,category:"travel_and_places"},T7e={keywords:["like","affection","dating"],char:"🏩",fitzpatrick_scale:!1,category:"travel_and_places"},A7e={keywords:["love","like","affection","couple","marriage","bride","groom"],char:"💒",fitzpatrick_scale:!1,category:"travel_and_places"},z7e={keywords:["art","culture","history"],char:"🏛",fitzpatrick_scale:!1,category:"travel_and_places"},F7e={keywords:["building","religion","christ"],char:"⛪",fitzpatrick_scale:!1,category:"travel_and_places"},$7e={keywords:["islam","worship","minaret"],char:"🕌",fitzpatrick_scale:!1,category:"travel_and_places"},M7e={keywords:["judaism","worship","temple","jewish"],char:"🕍",fitzpatrick_scale:!1,category:"travel_and_places"},O7e={keywords:["mecca","mosque","islam"],char:"🕋",fitzpatrick_scale:!1,category:"travel_and_places"},N7e={keywords:["temple","japan","kyoto"],char:"⛩",fitzpatrick_scale:!1,category:"travel_and_places"},L7e={keywords:["time","accessories"],char:"⌚",fitzpatrick_scale:!1,category:"objects"},I7e={keywords:["technology","apple","gadgets","dial"],char:"📱",fitzpatrick_scale:!1,category:"objects"},B7e={keywords:["iphone","incoming"],char:"📲",fitzpatrick_scale:!1,category:"objects"},R7e={keywords:["technology","laptop","screen","display","monitor"],char:"💻",fitzpatrick_scale:!1,category:"objects"},P7e={keywords:["technology","computer","type","input","text"],char:"⌨",fitzpatrick_scale:!1,category:"objects"},j7e={keywords:["technology","computing","screen"],char:"🖥",fitzpatrick_scale:!1,category:"objects"},V7e={keywords:["paper","ink"],char:"🖨",fitzpatrick_scale:!1,category:"objects"},q7e={keywords:["click"],char:"🖱",fitzpatrick_scale:!1,category:"objects"},H7e={keywords:["technology","trackpad"],char:"🖲",fitzpatrick_scale:!1,category:"objects"},U7e={keywords:["game","play"],char:"🕹",fitzpatrick_scale:!1,category:"objects"},W7e={keywords:["tool"],char:"🗜",fitzpatrick_scale:!1,category:"objects"},G7e={keywords:["technology","record","data","disk","90s"],char:"💽",fitzpatrick_scale:!1,category:"objects"},K7e={keywords:["oldschool","technology","save","90s","80s"],char:"💾",fitzpatrick_scale:!1,category:"objects"},Y7e={keywords:["technology","dvd","disk","disc","90s"],char:"💿",fitzpatrick_scale:!1,category:"objects"},Z7e={keywords:["cd","disk","disc"],char:"📀",fitzpatrick_scale:!1,category:"objects"},X7e={keywords:["record","video","oldschool","90s","80s"],char:"📼",fitzpatrick_scale:!1,category:"objects"},J7e={keywords:["gadgets","photography"],char:"📷",fitzpatrick_scale:!1,category:"objects"},Q7e={keywords:["photography","gadgets"],char:"📸",fitzpatrick_scale:!1,category:"objects"},eCe={keywords:["film","record"],char:"📹",fitzpatrick_scale:!1,category:"objects"},tCe={keywords:["film","record"],char:"🎥",fitzpatrick_scale:!1,category:"objects"},nCe={keywords:["video","tape","record","movie"],char:"📽",fitzpatrick_scale:!1,category:"objects"},rCe={keywords:["movie"],char:"🎞",fitzpatrick_scale:!1,category:"objects"},iCe={keywords:["technology","communication","dial"],char:"📞",fitzpatrick_scale:!1,category:"objects"},aCe={keywords:["technology","communication","dial","telephone"],char:"☎️",fitzpatrick_scale:!1,category:"objects"},oCe={keywords:["bbcall","oldschool","90s"],char:"📟",fitzpatrick_scale:!1,category:"objects"},sCe={keywords:["communication","technology"],char:"📠",fitzpatrick_scale:!1,category:"objects"},lCe={keywords:["technology","program","oldschool","show","television"],char:"📺",fitzpatrick_scale:!1,category:"objects"},cCe={keywords:["communication","music","podcast","program"],char:"📻",fitzpatrick_scale:!1,category:"objects"},uCe={keywords:["sing","recording","artist","talkshow"],char:"🎙",fitzpatrick_scale:!1,category:"objects"},dCe={keywords:["scale"],char:"🎚",fitzpatrick_scale:!1,category:"objects"},fCe={keywords:["dial"],char:"🎛",fitzpatrick_scale:!1,category:"objects"},hCe={keywords:["magnetic","navigation","orienteering"],char:"🧭",fitzpatrick_scale:!1,category:"objects"},pCe={keywords:["time","deadline"],char:"⏱",fitzpatrick_scale:!1,category:"objects"},mCe={keywords:["alarm"],char:"⏲",fitzpatrick_scale:!1,category:"objects"},gCe={keywords:["time","wake"],char:"⏰",fitzpatrick_scale:!1,category:"objects"},yCe={keywords:["time"],char:"🕰",fitzpatrick_scale:!1,category:"objects"},_Ce={keywords:["oldschool","time","countdown"],char:"⏳",fitzpatrick_scale:!1,category:"objects"},bCe={keywords:["time","clock","oldschool","limit","exam","quiz","test"],char:"⌛",fitzpatrick_scale:!1,category:"objects"},kCe={keywords:["communication","future","radio","space"],char:"📡",fitzpatrick_scale:!1,category:"objects"},wCe={keywords:["power","energy","sustain"],char:"🔋",fitzpatrick_scale:!1,category:"objects"},vCe={keywords:["charger","power"],char:"🔌",fitzpatrick_scale:!1,category:"objects"},xCe={keywords:["light","electricity","idea"],char:"💡",fitzpatrick_scale:!1,category:"objects"},CCe={keywords:["dark","camping","sight","night"],char:"🔦",fitzpatrick_scale:!1,category:"objects"},SCe={keywords:["fire","wax"],char:"🕯",fitzpatrick_scale:!1,category:"objects"},DCe={keywords:["quench"],char:"🧯",fitzpatrick_scale:!1,category:"objects"},ECe={keywords:["bin","trash","rubbish","garbage","toss"],char:"🗑",fitzpatrick_scale:!1,category:"objects"},TCe={keywords:["barrell"],char:"🛢",fitzpatrick_scale:!1,category:"objects"},ACe={keywords:["dollar","bills","payment","sale"],char:"💸",fitzpatrick_scale:!1,category:"objects"},zCe={keywords:["money","sales","bill","currency"],char:"💵",fitzpatrick_scale:!1,category:"objects"},FCe={keywords:["money","sales","japanese","dollar","currency"],char:"💴",fitzpatrick_scale:!1,category:"objects"},$Ce={keywords:["money","sales","dollar","currency"],char:"💶",fitzpatrick_scale:!1,category:"objects"},MCe={keywords:["british","sterling","money","sales","bills","uk","england","currency"],char:"💷",fitzpatrick_scale:!1,category:"objects"},OCe={keywords:["dollar","payment","coins","sale"],char:"💰",fitzpatrick_scale:!1,category:"objects"},NCe={keywords:["money","sales","dollar","bill","payment","shopping"],char:"💳",fitzpatrick_scale:!1,category:"objects"},LCe={keywords:["blue","ruby","diamond","jewelry"],char:"💎",fitzpatrick_scale:!1,category:"objects"},ICe={keywords:["law","fairness","weight"],char:"⚖",fitzpatrick_scale:!1,category:"objects"},BCe={keywords:["tools","diy","fix","maintainer","mechanic"],char:"🧰",fitzpatrick_scale:!1,category:"objects"},RCe={keywords:["tools","diy","ikea","fix","maintainer"],char:"🔧",fitzpatrick_scale:!1,category:"objects"},PCe={keywords:["tools","build","create"],char:"🔨",fitzpatrick_scale:!1,category:"objects"},jCe={keywords:["tools","build","create"],char:"⚒",fitzpatrick_scale:!1,category:"objects"},VCe={keywords:["tools","build","create"],char:"🛠",fitzpatrick_scale:!1,category:"objects"},qCe={keywords:["tools","dig"],char:"⛏",fitzpatrick_scale:!1,category:"objects"},HCe={keywords:["handy","tools","fix"],char:"🔩",fitzpatrick_scale:!1,category:"objects"},UCe={keywords:["cog"],char:"⚙",fitzpatrick_scale:!1,category:"objects"},WCe={keywords:["bricks"],char:"🧱",fitzpatrick_scale:!1,category:"objects"},GCe={keywords:["lock","arrest"],char:"⛓",fitzpatrick_scale:!1,category:"objects"},KCe={keywords:["attraction","magnetic"],char:"🧲",fitzpatrick_scale:!1,category:"objects"},YCe={keywords:["violence","weapon","pistol","revolver"],char:"🔫",fitzpatrick_scale:!1,category:"objects"},ZCe={keywords:["boom","explode","explosion","terrorism"],char:"💣",fitzpatrick_scale:!1,category:"objects"},XCe={keywords:["dynamite","boom","explode","explosion","explosive"],char:"🧨",fitzpatrick_scale:!1,category:"objects"},JCe={keywords:["knife","blade","cutlery","kitchen","weapon"],char:"🔪",fitzpatrick_scale:!1,category:"objects"},QCe={keywords:["weapon"],char:"🗡",fitzpatrick_scale:!1,category:"objects"},eSe={keywords:["weapon"],char:"⚔",fitzpatrick_scale:!1,category:"objects"},tSe={keywords:["protection","security"],char:"🛡",fitzpatrick_scale:!1,category:"objects"},nSe={keywords:["kills","tobacco","cigarette","joint","smoke"],char:"🚬",fitzpatrick_scale:!1,category:"objects"},rSe={keywords:["poison","danger","deadly","scary","death","pirate","evil"],char:"☠",fitzpatrick_scale:!1,category:"objects"},iSe={keywords:["vampire","dead","die","death","rip","graveyard","cemetery","casket","funeral","box"],char:"⚰",fitzpatrick_scale:!1,category:"objects"},aSe={keywords:["dead","die","death","rip","ashes"],char:"⚱",fitzpatrick_scale:!1,category:"objects"},oSe={keywords:["vase","jar"],char:"🏺",fitzpatrick_scale:!1,category:"objects"},sSe={keywords:["disco","party","magic","circus","fortune_teller"],char:"🔮",fitzpatrick_scale:!1,category:"objects"},lSe={keywords:["dhikr","religious"],char:"📿",fitzpatrick_scale:!1,category:"objects"},cSe={keywords:["bead","charm"],char:"🧿",fitzpatrick_scale:!1,category:"objects"},uSe={keywords:["hair","salon","style"],char:"💈",fitzpatrick_scale:!1,category:"objects"},dSe={keywords:["distilling","science","experiment","chemistry"],char:"⚗",fitzpatrick_scale:!1,category:"objects"},fSe={keywords:["stars","space","zoom","science","astronomy"],char:"🔭",fitzpatrick_scale:!1,category:"objects"},hSe={keywords:["laboratory","experiment","zoomin","science","study"],char:"🔬",fitzpatrick_scale:!1,category:"objects"},pSe={keywords:["embarrassing"],char:"🕳",fitzpatrick_scale:!1,category:"objects"},mSe={keywords:["health","medicine","doctor","pharmacy","drug"],char:"💊",fitzpatrick_scale:!1,category:"objects"},gSe={keywords:["health","hospital","drugs","blood","medicine","needle","doctor","nurse"],char:"💉",fitzpatrick_scale:!1,category:"objects"},ySe={keywords:["biologist","genetics","life"],char:"🧬",fitzpatrick_scale:!1,category:"objects"},_Se={keywords:["amoeba","bacteria","germs"],char:"🦠",fitzpatrick_scale:!1,category:"objects"},bSe={keywords:["bacteria","biology","culture","lab"],char:"🧫",fitzpatrick_scale:!1,category:"objects"},kSe={keywords:["chemistry","experiment","lab","science"],char:"🧪",fitzpatrick_scale:!1,category:"objects"},wSe={keywords:["weather","temperature","hot","cold"],char:"🌡",fitzpatrick_scale:!1,category:"objects"},vSe={keywords:["cleaning","sweeping","witch"],char:"🧹",fitzpatrick_scale:!1,category:"objects"},xSe={keywords:["laundry"],char:"🧺",fitzpatrick_scale:!1,category:"objects"},CSe={keywords:["roll"],char:"🧻",fitzpatrick_scale:!1,category:"objects"},SSe={keywords:["sale","tag"],char:"🏷",fitzpatrick_scale:!1,category:"objects"},DSe={keywords:["favorite","label","save"],char:"🔖",fitzpatrick_scale:!1,category:"objects"},ESe={keywords:["restroom","wc","washroom","bathroom","potty"],char:"🚽",fitzpatrick_scale:!1,category:"objects"},TSe={keywords:["clean","water","bathroom"],char:"🚿",fitzpatrick_scale:!1,category:"objects"},ASe={keywords:["clean","shower","bathroom"],char:"🛁",fitzpatrick_scale:!1,category:"objects"},zSe={keywords:["bar","bathing","cleaning","lather"],char:"🧼",fitzpatrick_scale:!1,category:"objects"},FSe={keywords:["absorbing","cleaning","porous"],char:"🧽",fitzpatrick_scale:!1,category:"objects"},$Se={keywords:["moisturizer","sunscreen"],char:"🧴",fitzpatrick_scale:!1,category:"objects"},MSe={keywords:["lock","door","password"],char:"🔑",fitzpatrick_scale:!1,category:"objects"},OSe={keywords:["lock","door","password"],char:"🗝",fitzpatrick_scale:!1,category:"objects"},NSe={keywords:["read","chill"],char:"🛋",fitzpatrick_scale:!1,category:"objects"},LSe={keywords:["bed","rest"],char:"🛌",fitzpatrick_scale:!0,category:"objects"},ISe={keywords:["sleep","rest"],char:"🛏",fitzpatrick_scale:!1,category:"objects"},BSe={keywords:["house","entry","exit"],char:"🚪",fitzpatrick_scale:!1,category:"objects"},RSe={keywords:["service"],char:"🛎",fitzpatrick_scale:!1,category:"objects"},PSe={keywords:["plush","stuffed"],char:"🧸",fitzpatrick_scale:!1,category:"objects"},jSe={keywords:["photography"],char:"🖼",fitzpatrick_scale:!1,category:"objects"},VSe={keywords:["location","direction"],char:"🗺",fitzpatrick_scale:!1,category:"objects"},qSe={keywords:["weather","summer"],char:"⛱",fitzpatrick_scale:!1,category:"objects"},HSe={keywords:["rock","easter island","moai"],char:"🗿",fitzpatrick_scale:!1,category:"objects"},USe={keywords:["mall","buy","purchase"],char:"🛍",fitzpatrick_scale:!1,category:"objects"},WSe={keywords:["trolley"],char:"🛒",fitzpatrick_scale:!1,category:"objects"},GSe={keywords:["party","celebration","birthday","circus"],char:"🎈",fitzpatrick_scale:!1,category:"objects"},KSe={keywords:["fish","japanese","koinobori","carp","banner"],char:"🎏",fitzpatrick_scale:!1,category:"objects"},YSe={keywords:["decoration","pink","girl","bowtie"],char:"🎀",fitzpatrick_scale:!1,category:"objects"},ZSe={keywords:["present","birthday","christmas","xmas"],char:"🎁",fitzpatrick_scale:!1,category:"objects"},XSe={keywords:["festival","party","birthday","circus"],char:"🎊",fitzpatrick_scale:!1,category:"objects"},JSe={keywords:["party","congratulations","birthday","magic","circus","celebration"],char:"🎉",fitzpatrick_scale:!1,category:"objects"},QSe={keywords:["japanese","toy","kimono"],char:"🎎",fitzpatrick_scale:!1,category:"objects"},e9e={keywords:["nature","ding","spring","bell"],char:"🎐",fitzpatrick_scale:!1,category:"objects"},t9e={keywords:["japanese","nation","country","border"],char:"🎌",fitzpatrick_scale:!1,category:"objects"},n9e={keywords:["light","paper","halloween","spooky"],char:"🏮",fitzpatrick_scale:!1,category:"objects"},r9e={keywords:["gift"],char:"🧧",fitzpatrick_scale:!1,category:"objects"},i9e={keywords:["letter","postal","inbox","communication"],char:"✉️",fitzpatrick_scale:!1,category:"objects"},a9e={keywords:["email","communication"],char:"📩",fitzpatrick_scale:!1,category:"objects"},o9e={keywords:["email","inbox"],char:"📨",fitzpatrick_scale:!1,category:"objects"},s9e={keywords:["email","like","affection","envelope","valentines"],char:"💌",fitzpatrick_scale:!1,category:"objects"},l9e={keywords:["email","letter","envelope"],char:"📮",fitzpatrick_scale:!1,category:"objects"},c9e={keywords:["email","communication","inbox"],char:"📪",fitzpatrick_scale:!1,category:"objects"},u9e={keywords:["email","inbox","communication"],char:"📫",fitzpatrick_scale:!1,category:"objects"},d9e={keywords:["email","inbox","communication"],char:"📬",fitzpatrick_scale:!1,category:"objects"},f9e={keywords:["email","inbox"],char:"📭",fitzpatrick_scale:!1,category:"objects"},h9e={keywords:["instrument","music"],char:"📯",fitzpatrick_scale:!1,category:"objects"},p9e={keywords:["email","documents"],char:"📥",fitzpatrick_scale:!1,category:"objects"},m9e={keywords:["inbox","email"],char:"📤",fitzpatrick_scale:!1,category:"objects"},g9e={keywords:["documents","ancient","history","paper"],char:"📜",fitzpatrick_scale:!1,category:"objects"},y9e={keywords:["documents","office","paper"],char:"📃",fitzpatrick_scale:!1,category:"objects"},_9e={keywords:["favorite","save","order","tidy"],char:"📑",fitzpatrick_scale:!1,category:"objects"},b9e={keywords:["accounting","expenses"],char:"🧾",fitzpatrick_scale:!1,category:"objects"},k9e={keywords:["graph","presentation","stats"],char:"📊",fitzpatrick_scale:!1,category:"objects"},w9e={keywords:["graph","presentation","stats","recovery","business","economics","money","sales","good","success"],char:"📈",fitzpatrick_scale:!1,category:"objects"},v9e={keywords:["graph","presentation","stats","recession","business","economics","money","sales","bad","failure"],char:"📉",fitzpatrick_scale:!1,category:"objects"},x9e={keywords:["documents","office","paper","information"],char:"📄",fitzpatrick_scale:!1,category:"objects"},C9e={keywords:["calendar","schedule"],char:"📅",fitzpatrick_scale:!1,category:"objects"},S9e={keywords:["schedule","date","planning"],char:"📆",fitzpatrick_scale:!1,category:"objects"},D9e={keywords:["date","schedule","planning"],char:"🗓",fitzpatrick_scale:!1,category:"objects"},E9e={keywords:["business","stationery"],char:"📇",fitzpatrick_scale:!1,category:"objects"},T9e={keywords:["business","stationery"],char:"🗃",fitzpatrick_scale:!1,category:"objects"},A9e={keywords:["election","vote"],char:"🗳",fitzpatrick_scale:!1,category:"objects"},z9e={keywords:["filing","organizing"],char:"🗄",fitzpatrick_scale:!1,category:"objects"},F9e={keywords:["stationery","documents"],char:"📋",fitzpatrick_scale:!1,category:"objects"},$9e={keywords:["memo","stationery"],char:"🗒",fitzpatrick_scale:!1,category:"objects"},M9e={keywords:["documents","business","office"],char:"📁",fitzpatrick_scale:!1,category:"objects"},O9e={keywords:["documents","load"],char:"📂",fitzpatrick_scale:!1,category:"objects"},N9e={keywords:["organizing","business","stationery"],char:"🗂",fitzpatrick_scale:!1,category:"objects"},L9e={keywords:["press","headline"],char:"🗞",fitzpatrick_scale:!1,category:"objects"},I9e={keywords:["press","headline"],char:"📰",fitzpatrick_scale:!1,category:"objects"},B9e={keywords:["stationery","record","notes","paper","study"],char:"📓",fitzpatrick_scale:!1,category:"objects"},R9e={keywords:["read","library","knowledge","textbook","learn"],char:"📕",fitzpatrick_scale:!1,category:"objects"},P9e={keywords:["read","library","knowledge","study"],char:"📗",fitzpatrick_scale:!1,category:"objects"},j9e={keywords:["read","library","knowledge","learn","study"],char:"📘",fitzpatrick_scale:!1,category:"objects"},V9e={keywords:["read","library","knowledge","textbook","study"],char:"📙",fitzpatrick_scale:!1,category:"objects"},q9e={keywords:["classroom","notes","record","paper","study"],char:"📔",fitzpatrick_scale:!1,category:"objects"},H9e={keywords:["notes","paper"],char:"📒",fitzpatrick_scale:!1,category:"objects"},U9e={keywords:["literature","library","study"],char:"📚",fitzpatrick_scale:!1,category:"objects"},W9e={keywords:["book","read","library","knowledge","literature","learn","study"],char:"📖",fitzpatrick_scale:!1,category:"objects"},G9e={keywords:["diaper"],char:"🧷",fitzpatrick_scale:!1,category:"objects"},K9e={keywords:["rings","url"],char:"🔗",fitzpatrick_scale:!1,category:"objects"},Y9e={keywords:["documents","stationery"],char:"📎",fitzpatrick_scale:!1,category:"objects"},Z9e={keywords:["documents","stationery"],char:"🖇",fitzpatrick_scale:!1,category:"objects"},X9e={keywords:["stationery","cut"],char:"✂️",fitzpatrick_scale:!1,category:"objects"},J9e={keywords:["stationery","math","architect","sketch"],char:"📐",fitzpatrick_scale:!1,category:"objects"},Q9e={keywords:["stationery","calculate","length","math","school","drawing","architect","sketch"],char:"📏",fitzpatrick_scale:!1,category:"objects"},eDe={keywords:["calculation"],char:"🧮",fitzpatrick_scale:!1,category:"objects"},tDe={keywords:["stationery","mark","here"],char:"📌",fitzpatrick_scale:!1,category:"objects"},nDe={keywords:["stationery","location","map","here"],char:"📍",fitzpatrick_scale:!1,category:"objects"},rDe={keywords:["mark","milestone","place"],char:"🚩",fitzpatrick_scale:!1,category:"objects"},iDe={keywords:["losing","loser","lost","surrender","give up","fail"],char:"🏳",fitzpatrick_scale:!1,category:"objects"},aDe={keywords:["pirate"],char:"🏴",fitzpatrick_scale:!1,category:"objects"},oDe={keywords:["flag","rainbow","pride","gay","lgbt","glbt","queer","homosexual","lesbian","bisexual","transgender"],char:"🏳️‍🌈",fitzpatrick_scale:!1,category:"objects"},sDe={keywords:["security","privacy"],char:"🔐",fitzpatrick_scale:!1,category:"objects"},lDe={keywords:["security","password","padlock"],char:"🔒",fitzpatrick_scale:!1,category:"objects"},cDe={keywords:["privacy","security"],char:"🔓",fitzpatrick_scale:!1,category:"objects"},uDe={keywords:["security","secret"],char:"🔏",fitzpatrick_scale:!1,category:"objects"},dDe={keywords:["stationery","writing","write"],char:"🖊",fitzpatrick_scale:!1,category:"objects"},fDe={keywords:["stationery","writing","write"],char:"🖋",fitzpatrick_scale:!1,category:"objects"},hDe={keywords:["pen","stationery","writing","write"],char:"✒️",fitzpatrick_scale:!1,category:"objects"},pDe={keywords:["write","documents","stationery","pencil","paper","writing","legal","exam","quiz","test","study","compose"],char:"📝",fitzpatrick_scale:!1,category:"objects"},mDe={keywords:["stationery","write","paper","writing","school","study"],char:"✏️",fitzpatrick_scale:!1,category:"objects"},gDe={keywords:["drawing","creativity"],char:"🖍",fitzpatrick_scale:!1,category:"objects"},yDe={keywords:["drawing","creativity","art"],char:"🖌",fitzpatrick_scale:!1,category:"objects"},_De={keywords:["search","zoom","find","detective"],char:"🔍",fitzpatrick_scale:!1,category:"objects"},bDe={keywords:["search","zoom","find","detective"],char:"🔎",fitzpatrick_scale:!1,category:"objects"},kDe={keywords:["love","like","valentines"],char:"❤️",fitzpatrick_scale:!1,category:"symbols"},wDe={keywords:["love","like","affection","valentines"],char:"🧡",fitzpatrick_scale:!1,category:"symbols"},vDe={keywords:["love","like","affection","valentines"],char:"💛",fitzpatrick_scale:!1,category:"symbols"},xDe={keywords:["love","like","affection","valentines"],char:"💚",fitzpatrick_scale:!1,category:"symbols"},CDe={keywords:["love","like","affection","valentines"],char:"💙",fitzpatrick_scale:!1,category:"symbols"},SDe={keywords:["love","like","affection","valentines"],char:"💜",fitzpatrick_scale:!1,category:"symbols"},DDe={keywords:["evil"],char:"🖤",fitzpatrick_scale:!1,category:"symbols"},EDe={keywords:["sad","sorry","break","heart","heartbreak"],char:"💔",fitzpatrick_scale:!1,category:"symbols"},TDe={keywords:["decoration","love"],char:"❣",fitzpatrick_scale:!1,category:"symbols"},ADe={keywords:["love","like","affection","valentines","heart"],char:"💕",fitzpatrick_scale:!1,category:"symbols"},zDe={keywords:["love","like","affection","valentines"],char:"💞",fitzpatrick_scale:!1,category:"symbols"},FDe={keywords:["love","like","affection","valentines","pink","heart"],char:"💓",fitzpatrick_scale:!1,category:"symbols"},$De={keywords:["like","love","affection","valentines","pink"],char:"💗",fitzpatrick_scale:!1,category:"symbols"},MDe={keywords:["love","like","affection","valentines"],char:"💖",fitzpatrick_scale:!1,category:"symbols"},ODe={keywords:["love","like","heart","affection","valentines"],char:"💘",fitzpatrick_scale:!1,category:"symbols"},NDe={keywords:["love","valentines"],char:"💝",fitzpatrick_scale:!1,category:"symbols"},LDe={keywords:["purple-square","love","like"],char:"💟",fitzpatrick_scale:!1,category:"symbols"},IDe={keywords:["hippie"],char:"☮",fitzpatrick_scale:!1,category:"symbols"},BDe={keywords:["christianity"],char:"✝",fitzpatrick_scale:!1,category:"symbols"},RDe={keywords:["islam"],char:"☪",fitzpatrick_scale:!1,category:"symbols"},PDe={keywords:["hinduism","buddhism","sikhism","jainism"],char:"🕉",fitzpatrick_scale:!1,category:"symbols"},jDe={keywords:["hinduism","buddhism","sikhism","jainism"],char:"☸",fitzpatrick_scale:!1,category:"symbols"},VDe={keywords:["judaism"],char:"✡",fitzpatrick_scale:!1,category:"symbols"},qDe={keywords:["purple-square","religion","jewish","hexagram"],char:"🔯",fitzpatrick_scale:!1,category:"symbols"},HDe={keywords:["hanukkah","candles","jewish"],char:"🕎",fitzpatrick_scale:!1,category:"symbols"},UDe={keywords:["balance"],char:"☯",fitzpatrick_scale:!1,category:"symbols"},WDe={keywords:["suppedaneum","religion"],char:"☦",fitzpatrick_scale:!1,category:"symbols"},GDe={keywords:["religion","church","temple","prayer"],char:"🛐",fitzpatrick_scale:!1,category:"symbols"},KDe={keywords:["sign","purple-square","constellation","astrology"],char:"⛎",fitzpatrick_scale:!1,category:"symbols"},YDe={keywords:["sign","purple-square","zodiac","astrology"],char:"♈",fitzpatrick_scale:!1,category:"symbols"},ZDe={keywords:["purple-square","sign","zodiac","astrology"],char:"♉",fitzpatrick_scale:!1,category:"symbols"},XDe={keywords:["sign","zodiac","purple-square","astrology"],char:"♊",fitzpatrick_scale:!1,category:"symbols"},JDe={keywords:["sign","zodiac","purple-square","astrology"],char:"♋",fitzpatrick_scale:!1,category:"symbols"},QDe={keywords:["sign","purple-square","zodiac","astrology"],char:"♌",fitzpatrick_scale:!1,category:"symbols"},eEe={keywords:["sign","zodiac","purple-square","astrology"],char:"♍",fitzpatrick_scale:!1,category:"symbols"},tEe={keywords:["sign","purple-square","zodiac","astrology"],char:"♎",fitzpatrick_scale:!1,category:"symbols"},nEe={keywords:["sign","zodiac","purple-square","astrology","scorpio"],char:"♏",fitzpatrick_scale:!1,category:"symbols"},rEe={keywords:["sign","zodiac","purple-square","astrology"],char:"♐",fitzpatrick_scale:!1,category:"symbols"},iEe={keywords:["sign","zodiac","purple-square","astrology"],char:"♑",fitzpatrick_scale:!1,category:"symbols"},aEe={keywords:["sign","purple-square","zodiac","astrology"],char:"♒",fitzpatrick_scale:!1,category:"symbols"},oEe={keywords:["purple-square","sign","zodiac","astrology"],char:"♓",fitzpatrick_scale:!1,category:"symbols"},sEe={keywords:["purple-square","words"],char:"🆔",fitzpatrick_scale:!1,category:"symbols"},lEe={keywords:["science","physics","chemistry"],char:"⚛",fitzpatrick_scale:!1,category:"symbols"},cEe={keywords:["kanji","japanese","chinese","empty","sky","blue-square"],char:"🈳",fitzpatrick_scale:!1,category:"symbols"},uEe={keywords:["cut","divide","chinese","kanji","pink-square"],char:"🈹",fitzpatrick_scale:!1,category:"symbols"},dEe={keywords:["nuclear","danger"],char:"☢",fitzpatrick_scale:!1,category:"symbols"},fEe={keywords:["danger"],char:"☣",fitzpatrick_scale:!1,category:"symbols"},hEe={keywords:["mute","orange-square","silence","quiet"],char:"📴",fitzpatrick_scale:!1,category:"symbols"},pEe={keywords:["orange-square","phone"],char:"📳",fitzpatrick_scale:!1,category:"symbols"},mEe={keywords:["orange-square","chinese","have","kanji"],char:"🈶",fitzpatrick_scale:!1,category:"symbols"},gEe={keywords:["nothing","chinese","kanji","japanese","orange-square"],char:"🈚",fitzpatrick_scale:!1,category:"symbols"},yEe={keywords:["chinese","japanese","kanji","orange-square"],char:"🈸",fitzpatrick_scale:!1,category:"symbols"},_Ee={keywords:["japanese","opening hours","orange-square"],char:"🈺",fitzpatrick_scale:!1,category:"symbols"},bEe={keywords:["chinese","month","moon","japanese","orange-square","kanji"],char:"🈷️",fitzpatrick_scale:!1,category:"symbols"},kEe={keywords:["orange-square","shape","polygon"],char:"✴️",fitzpatrick_scale:!1,category:"symbols"},wEe={keywords:["words","orange-square"],char:"🆚",fitzpatrick_scale:!1,category:"symbols"},vEe={keywords:["ok","good","chinese","kanji","agree","yes","orange-circle"],char:"🉑",fitzpatrick_scale:!1,category:"symbols"},xEe={keywords:["japanese","spring"],char:"💮",fitzpatrick_scale:!1,category:"symbols"},CEe={keywords:["chinese","kanji","obtain","get","circle"],char:"🉐",fitzpatrick_scale:!1,category:"symbols"},SEe={keywords:["privacy","chinese","sshh","kanji","red-circle"],char:"㊙️",fitzpatrick_scale:!1,category:"symbols"},DEe={keywords:["chinese","kanji","japanese","red-circle"],char:"㊗️",fitzpatrick_scale:!1,category:"symbols"},EEe={keywords:["japanese","chinese","join","kanji","red-square"],char:"🈴",fitzpatrick_scale:!1,category:"symbols"},TEe={keywords:["full","chinese","japanese","red-square","kanji"],char:"🈵",fitzpatrick_scale:!1,category:"symbols"},AEe={keywords:["kanji","japanese","chinese","forbidden","limit","restricted","red-square"],char:"🈲",fitzpatrick_scale:!1,category:"symbols"},zEe={keywords:["red-square","alphabet","letter"],char:"🅰️",fitzpatrick_scale:!1,category:"symbols"},FEe={keywords:["red-square","alphabet","letter"],char:"🅱️",fitzpatrick_scale:!1,category:"symbols"},$Ee={keywords:["red-square","alphabet"],char:"🆎",fitzpatrick_scale:!1,category:"symbols"},MEe={keywords:["alphabet","words","red-square"],char:"🆑",fitzpatrick_scale:!1,category:"symbols"},OEe={keywords:["alphabet","red-square","letter"],char:"🅾️",fitzpatrick_scale:!1,category:"symbols"},NEe={keywords:["help","red-square","words","emergency","911"],char:"🆘",fitzpatrick_scale:!1,category:"symbols"},LEe={keywords:["limit","security","privacy","bad","denied","stop","circle"],char:"⛔",fitzpatrick_scale:!1,category:"symbols"},IEe={keywords:["fire","forbid"],char:"📛",fitzpatrick_scale:!1,category:"symbols"},BEe={keywords:["forbid","stop","limit","denied","disallow","circle"],char:"🚫",fitzpatrick_scale:!1,category:"symbols"},REe={keywords:["no","delete","remove","cancel","red"],char:"❌",fitzpatrick_scale:!1,category:"symbols"},PEe={keywords:["circle","round"],char:"⭕",fitzpatrick_scale:!1,category:"symbols"},jEe={keywords:["stop"],char:"🛑",fitzpatrick_scale:!1,category:"symbols"},VEe={keywords:["angry","mad"],char:"💢",fitzpatrick_scale:!1,category:"symbols"},qEe={keywords:["bath","warm","relax"],char:"♨️",fitzpatrick_scale:!1,category:"symbols"},HEe={keywords:["rules","crossing","walking","circle"],char:"🚷",fitzpatrick_scale:!1,category:"symbols"},UEe={keywords:["trash","bin","garbage","circle"],char:"🚯",fitzpatrick_scale:!1,category:"symbols"},WEe={keywords:["cyclist","prohibited","circle"],char:"🚳",fitzpatrick_scale:!1,category:"symbols"},GEe={keywords:["18","drink","pub","night","minor","circle"],char:"🔞",fitzpatrick_scale:!1,category:"symbols"},KEe={keywords:["iphone","mute","circle"],char:"📵",fitzpatrick_scale:!1,category:"symbols"},YEe={keywords:["heavy_exclamation_mark","danger","surprise","punctuation","wow","warning"],char:"❗",fitzpatrick_scale:!1,category:"symbols"},ZEe={keywords:["surprise","punctuation","gray","wow","warning"],char:"❕",fitzpatrick_scale:!1,category:"symbols"},XEe={keywords:["doubt","confused"],char:"❓",fitzpatrick_scale:!1,category:"symbols"},JEe={keywords:["doubts","gray","huh","confused"],char:"❔",fitzpatrick_scale:!1,category:"symbols"},QEe={keywords:["exclamation","surprise"],char:"‼️",fitzpatrick_scale:!1,category:"symbols"},eTe={keywords:["wat","punctuation","surprise"],char:"⁉️",fitzpatrick_scale:!1,category:"symbols"},tTe={keywords:["sun","afternoon","warm","summer"],char:"🔅",fitzpatrick_scale:!1,category:"symbols"},nTe={keywords:["sun","light"],char:"🔆",fitzpatrick_scale:!1,category:"symbols"},rTe={keywords:["weapon","spear"],char:"🔱",fitzpatrick_scale:!1,category:"symbols"},iTe={keywords:["decorative","scout"],char:"⚜",fitzpatrick_scale:!1,category:"symbols"},aTe={keywords:["graph","presentation","stats","business","economics","bad"],char:"〽️",fitzpatrick_scale:!1,category:"symbols"},oTe={keywords:["exclamation","wip","alert","error","problem","issue"],char:"⚠️",fitzpatrick_scale:!1,category:"symbols"},sTe={keywords:["school","warning","danger","sign","driving","yellow-diamond"],char:"🚸",fitzpatrick_scale:!1,category:"symbols"},lTe={keywords:["badge","shield"],char:"🔰",fitzpatrick_scale:!1,category:"symbols"},cTe={keywords:["arrow","environment","garbage","trash"],char:"♻️",fitzpatrick_scale:!1,category:"symbols"},uTe={keywords:["chinese","point","green-square","kanji"],char:"🈯",fitzpatrick_scale:!1,category:"symbols"},dTe={keywords:["green-square","graph","presentation","stats"],char:"💹",fitzpatrick_scale:!1,category:"symbols"},fTe={keywords:["stars","green-square","awesome","good","fireworks"],char:"❇️",fitzpatrick_scale:!1,category:"symbols"},hTe={keywords:["star","sparkle","green-square"],char:"✳️",fitzpatrick_scale:!1,category:"symbols"},pTe={keywords:["x","green-square","no","deny"],char:"❎",fitzpatrick_scale:!1,category:"symbols"},mTe={keywords:["green-square","ok","agree","vote","election","answer","tick"],char:"✅",fitzpatrick_scale:!1,category:"symbols"},gTe={keywords:["jewel","blue","gem","crystal","fancy"],char:"💠",fitzpatrick_scale:!1,category:"symbols"},yTe={keywords:["weather","swirl","blue","cloud","vortex","spiral","whirlpool","spin","tornado","hurricane","typhoon"],char:"🌀",fitzpatrick_scale:!1,category:"symbols"},_Te={keywords:["tape","cassette"],char:"➿",fitzpatrick_scale:!1,category:"symbols"},bTe={keywords:["earth","international","world","internet","interweb","i18n"],char:"🌐",fitzpatrick_scale:!1,category:"symbols"},kTe={keywords:["alphabet","blue-circle","letter"],char:"Ⓜ️",fitzpatrick_scale:!1,category:"symbols"},wTe={keywords:["money","sales","cash","blue-square","payment","bank"],char:"🏧",fitzpatrick_scale:!1,category:"symbols"},vTe={keywords:["japanese","blue-square","katakana"],char:"🈂️",fitzpatrick_scale:!1,category:"symbols"},xTe={keywords:["custom","blue-square"],char:"🛂",fitzpatrick_scale:!1,category:"symbols"},CTe={keywords:["passport","border","blue-square"],char:"🛃",fitzpatrick_scale:!1,category:"symbols"},STe={keywords:["blue-square","airport","transport"],char:"🛄",fitzpatrick_scale:!1,category:"symbols"},DTe={keywords:["blue-square","travel"],char:"🛅",fitzpatrick_scale:!1,category:"symbols"},ETe={keywords:["blue-square","disabled","a11y","accessibility"],char:"♿",fitzpatrick_scale:!1,category:"symbols"},TTe={keywords:["cigarette","blue-square","smell","smoke"],char:"🚭",fitzpatrick_scale:!1,category:"symbols"},ATe={keywords:["toilet","restroom","blue-square"],char:"🚾",fitzpatrick_scale:!1,category:"symbols"},zTe={keywords:["cars","blue-square","alphabet","letter"],char:"🅿️",fitzpatrick_scale:!1,category:"symbols"},FTe={keywords:["blue-square","liquid","restroom","cleaning","faucet"],char:"🚰",fitzpatrick_scale:!1,category:"symbols"},$Te={keywords:["toilet","restroom","wc","blue-square","gender","male"],char:"🚹",fitzpatrick_scale:!1,category:"symbols"},MTe={keywords:["purple-square","woman","female","toilet","loo","restroom","gender"],char:"🚺",fitzpatrick_scale:!1,category:"symbols"},OTe={keywords:["orange-square","child"],char:"🚼",fitzpatrick_scale:!1,category:"symbols"},NTe={keywords:["blue-square","toilet","refresh","wc","gender"],char:"🚻",fitzpatrick_scale:!1,category:"symbols"},LTe={keywords:["blue-square","sign","human","info"],char:"🚮",fitzpatrick_scale:!1,category:"symbols"},ITe={keywords:["blue-square","record","film","movie","curtain","stage","theater"],char:"🎦",fitzpatrick_scale:!1,category:"symbols"},BTe={keywords:["blue-square","reception","phone","internet","connection","wifi","bluetooth","bars"],char:"📶",fitzpatrick_scale:!1,category:"symbols"},RTe={keywords:["blue-square","here","katakana","japanese","destination"],char:"🈁",fitzpatrick_scale:!1,category:"symbols"},PTe={keywords:["blue-square","words","shape","icon"],char:"🆖",fitzpatrick_scale:!1,category:"symbols"},jTe={keywords:["good","agree","yes","blue-square"],char:"🆗",fitzpatrick_scale:!1,category:"symbols"},VTe={keywords:["blue-square","above","high"],char:"🆙",fitzpatrick_scale:!1,category:"symbols"},qTe={keywords:["words","blue-square"],char:"🆒",fitzpatrick_scale:!1,category:"symbols"},HTe={keywords:["blue-square","words"],char:"🆓",fitzpatrick_scale:!1,category:"symbols"},UTe={keywords:["0","numbers","blue-square","null"],char:"0️⃣",fitzpatrick_scale:!1,category:"symbols"},WTe={keywords:["blue-square","numbers","1"],char:"1️⃣",fitzpatrick_scale:!1,category:"symbols"},GTe={keywords:["numbers","2","prime","blue-square"],char:"2️⃣",fitzpatrick_scale:!1,category:"symbols"},KTe={keywords:["3","numbers","prime","blue-square"],char:"3️⃣",fitzpatrick_scale:!1,category:"symbols"},YTe={keywords:["4","numbers","blue-square"],char:"4️⃣",fitzpatrick_scale:!1,category:"symbols"},ZTe={keywords:["5","numbers","blue-square","prime"],char:"5️⃣",fitzpatrick_scale:!1,category:"symbols"},XTe={keywords:["6","numbers","blue-square"],char:"6️⃣",fitzpatrick_scale:!1,category:"symbols"},JTe={keywords:["7","numbers","blue-square","prime"],char:"7️⃣",fitzpatrick_scale:!1,category:"symbols"},QTe={keywords:["8","blue-square","numbers"],char:"8️⃣",fitzpatrick_scale:!1,category:"symbols"},eAe={keywords:["blue-square","numbers","9"],char:"9️⃣",fitzpatrick_scale:!1,category:"symbols"},tAe={keywords:["numbers","10","blue-square"],char:"🔟",fitzpatrick_scale:!1,category:"symbols"},nAe={keywords:["star","keycap"],char:"*⃣",fitzpatrick_scale:!1,category:"symbols"},rAe={keywords:["blue-square"],char:"⏏️",fitzpatrick_scale:!1,category:"symbols"},iAe={keywords:["blue-square","right","direction","play"],char:"▶️",fitzpatrick_scale:!1,category:"symbols"},aAe={keywords:["pause","blue-square"],char:"⏸",fitzpatrick_scale:!1,category:"symbols"},oAe={keywords:["forward","next","blue-square"],char:"⏭",fitzpatrick_scale:!1,category:"symbols"},sAe={keywords:["blue-square"],char:"⏹",fitzpatrick_scale:!1,category:"symbols"},lAe={keywords:["blue-square"],char:"⏺",fitzpatrick_scale:!1,category:"symbols"},cAe={keywords:["blue-square","play","pause"],char:"⏯",fitzpatrick_scale:!1,category:"symbols"},uAe={keywords:["backward"],char:"⏮",fitzpatrick_scale:!1,category:"symbols"},dAe={keywords:["blue-square","play","speed","continue"],char:"⏩",fitzpatrick_scale:!1,category:"symbols"},fAe={keywords:["play","blue-square"],char:"⏪",fitzpatrick_scale:!1,category:"symbols"},hAe={keywords:["blue-square","shuffle","music","random"],char:"🔀",fitzpatrick_scale:!1,category:"symbols"},pAe={keywords:["loop","record"],char:"🔁",fitzpatrick_scale:!1,category:"symbols"},mAe={keywords:["blue-square","loop"],char:"🔂",fitzpatrick_scale:!1,category:"symbols"},gAe={keywords:["blue-square","left","direction"],char:"◀️",fitzpatrick_scale:!1,category:"symbols"},yAe={keywords:["blue-square","triangle","direction","point","forward","top"],char:"🔼",fitzpatrick_scale:!1,category:"symbols"},_Ae={keywords:["blue-square","direction","bottom"],char:"🔽",fitzpatrick_scale:!1,category:"symbols"},bAe={keywords:["blue-square","direction","top"],char:"⏫",fitzpatrick_scale:!1,category:"symbols"},kAe={keywords:["blue-square","direction","bottom"],char:"⏬",fitzpatrick_scale:!1,category:"symbols"},wAe={keywords:["blue-square","next"],char:"➡️",fitzpatrick_scale:!1,category:"symbols"},vAe={keywords:["blue-square","previous","back"],char:"⬅️",fitzpatrick_scale:!1,category:"symbols"},xAe={keywords:["blue-square","continue","top","direction"],char:"⬆️",fitzpatrick_scale:!1,category:"symbols"},CAe={keywords:["blue-square","direction","bottom"],char:"⬇️",fitzpatrick_scale:!1,category:"symbols"},SAe={keywords:["blue-square","point","direction","diagonal","northeast"],char:"↗️",fitzpatrick_scale:!1,category:"symbols"},DAe={keywords:["blue-square","direction","diagonal","southeast"],char:"↘️",fitzpatrick_scale:!1,category:"symbols"},EAe={keywords:["blue-square","direction","diagonal","southwest"],char:"↙️",fitzpatrick_scale:!1,category:"symbols"},TAe={keywords:["blue-square","point","direction","diagonal","northwest"],char:"↖️",fitzpatrick_scale:!1,category:"symbols"},AAe={keywords:["blue-square","direction","way","vertical"],char:"↕️",fitzpatrick_scale:!1,category:"symbols"},zAe={keywords:["shape","direction","horizontal","sideways"],char:"↔️",fitzpatrick_scale:!1,category:"symbols"},FAe={keywords:["blue-square","sync","cycle"],char:"🔄",fitzpatrick_scale:!1,category:"symbols"},$Ae={keywords:["blue-square","return","rotate","direction"],char:"↪️",fitzpatrick_scale:!1,category:"symbols"},MAe={keywords:["back","return","blue-square","undo","enter"],char:"↩️",fitzpatrick_scale:!1,category:"symbols"},OAe={keywords:["blue-square","direction","top"],char:"⤴️",fitzpatrick_scale:!1,category:"symbols"},NAe={keywords:["blue-square","direction","bottom"],char:"⤵️",fitzpatrick_scale:!1,category:"symbols"},LAe={keywords:["symbol","blue-square","twitter"],char:"#️⃣",fitzpatrick_scale:!1,category:"symbols"},IAe={keywords:["blue-square","alphabet","letter"],char:"ℹ️",fitzpatrick_scale:!1,category:"symbols"},BAe={keywords:["blue-square","alphabet"],char:"🔤",fitzpatrick_scale:!1,category:"symbols"},RAe={keywords:["blue-square","alphabet"],char:"🔡",fitzpatrick_scale:!1,category:"symbols"},PAe={keywords:["alphabet","words","blue-square"],char:"🔠",fitzpatrick_scale:!1,category:"symbols"},jAe={keywords:["blue-square","music","note","ampersand","percent","glyphs","characters"],char:"🔣",fitzpatrick_scale:!1,category:"symbols"},VAe={keywords:["score","tone","sound"],char:"🎵",fitzpatrick_scale:!1,category:"symbols"},qAe={keywords:["music","score"],char:"🎶",fitzpatrick_scale:!1,category:"symbols"},HAe={keywords:["draw","line","moustache","mustache","squiggle","scribble"],char:"〰️",fitzpatrick_scale:!1,category:"symbols"},UAe={keywords:["scribble","draw","shape","squiggle"],char:"➰",fitzpatrick_scale:!1,category:"symbols"},WAe={keywords:["ok","nike","answer","yes","tick"],char:"✔️",fitzpatrick_scale:!1,category:"symbols"},GAe={keywords:["sync","cycle","round","repeat"],char:"🔃",fitzpatrick_scale:!1,category:"symbols"},KAe={keywords:["math","calculation","addition","more","increase"],char:"➕",fitzpatrick_scale:!1,category:"symbols"},YAe={keywords:["math","calculation","subtract","less"],char:"➖",fitzpatrick_scale:!1,category:"symbols"},ZAe={keywords:["divide","math","calculation"],char:"➗",fitzpatrick_scale:!1,category:"symbols"},XAe={keywords:["math","calculation"],char:"✖️",fitzpatrick_scale:!1,category:"symbols"},JAe={keywords:["forever"],char:"♾",fitzpatrick_scale:!1,category:"symbols"},QAe={keywords:["money","sales","payment","currency","buck"],char:"💲",fitzpatrick_scale:!1,category:"symbols"},eze={keywords:["money","sales","dollar","travel"],char:"💱",fitzpatrick_scale:!1,category:"symbols"},tze={keywords:["ip","license","circle","law","legal"],char:"©️",fitzpatrick_scale:!1,category:"symbols"},nze={keywords:["alphabet","circle"],char:"®️",fitzpatrick_scale:!1,category:"symbols"},rze={keywords:["trademark","brand","law","legal"],char:"™️",fitzpatrick_scale:!1,category:"symbols"},ize={keywords:["words","arrow"],char:"🔚",fitzpatrick_scale:!1,category:"symbols"},aze={keywords:["arrow","words","return"],char:"🔙",fitzpatrick_scale:!1,category:"symbols"},oze={keywords:["arrow","words"],char:"🔛",fitzpatrick_scale:!1,category:"symbols"},sze={keywords:["words","blue-square"],char:"🔝",fitzpatrick_scale:!1,category:"symbols"},lze={keywords:["arrow","words"],char:"🔜",fitzpatrick_scale:!1,category:"symbols"},cze={keywords:["ok","agree","confirm","black-square","vote","election","yes","tick"],char:"☑️",fitzpatrick_scale:!1,category:"symbols"},uze={keywords:["input","old","music","circle"],char:"🔘",fitzpatrick_scale:!1,category:"symbols"},dze={keywords:["shape","round"],char:"⚪",fitzpatrick_scale:!1,category:"symbols"},fze={keywords:["shape","button","round"],char:"⚫",fitzpatrick_scale:!1,category:"symbols"},hze={keywords:["shape","error","danger"],char:"🔴",fitzpatrick_scale:!1,category:"symbols"},pze={keywords:["shape","icon","button"],char:"🔵",fitzpatrick_scale:!1,category:"symbols"},mze={keywords:["shape","jewel","gem"],char:"🔸",fitzpatrick_scale:!1,category:"symbols"},gze={keywords:["shape","jewel","gem"],char:"🔹",fitzpatrick_scale:!1,category:"symbols"},yze={keywords:["shape","jewel","gem"],char:"🔶",fitzpatrick_scale:!1,category:"symbols"},_ze={keywords:["shape","jewel","gem"],char:"🔷",fitzpatrick_scale:!1,category:"symbols"},bze={keywords:["shape","direction","up","top"],char:"🔺",fitzpatrick_scale:!1,category:"symbols"},kze={keywords:["shape","icon"],char:"▪️",fitzpatrick_scale:!1,category:"symbols"},wze={keywords:["shape","icon"],char:"▫️",fitzpatrick_scale:!1,category:"symbols"},vze={keywords:["shape","icon","button"],char:"⬛",fitzpatrick_scale:!1,category:"symbols"},xze={keywords:["shape","icon","stone","button"],char:"⬜",fitzpatrick_scale:!1,category:"symbols"},Cze={keywords:["shape","direction","bottom"],char:"🔻",fitzpatrick_scale:!1,category:"symbols"},Sze={keywords:["shape","button","icon"],char:"◼️",fitzpatrick_scale:!1,category:"symbols"},Dze={keywords:["shape","stone","icon"],char:"◻️",fitzpatrick_scale:!1,category:"symbols"},Eze={keywords:["icon","shape","button"],char:"◾",fitzpatrick_scale:!1,category:"symbols"},Tze={keywords:["shape","stone","icon","button"],char:"◽",fitzpatrick_scale:!1,category:"symbols"},Aze={keywords:["shape","input","frame"],char:"🔲",fitzpatrick_scale:!1,category:"symbols"},zze={keywords:["shape","input"],char:"🔳",fitzpatrick_scale:!1,category:"symbols"},Fze={keywords:["sound","volume","silence","broadcast"],char:"🔈",fitzpatrick_scale:!1,category:"symbols"},$ze={keywords:["volume","speaker","broadcast"],char:"🔉",fitzpatrick_scale:!1,category:"symbols"},Mze={keywords:["volume","noise","noisy","speaker","broadcast"],char:"🔊",fitzpatrick_scale:!1,category:"symbols"},Oze={keywords:["sound","volume","silence","quiet"],char:"🔇",fitzpatrick_scale:!1,category:"symbols"},Nze={keywords:["sound","speaker","volume"],char:"📣",fitzpatrick_scale:!1,category:"symbols"},Lze={keywords:["volume","sound"],char:"📢",fitzpatrick_scale:!1,category:"symbols"},Ize={keywords:["sound","notification","christmas","xmas","chime"],char:"🔔",fitzpatrick_scale:!1,category:"symbols"},Bze={keywords:["sound","volume","mute","quiet","silent"],char:"🔕",fitzpatrick_scale:!1,category:"symbols"},Rze={keywords:["poker","cards","game","play","magic"],char:"🃏",fitzpatrick_scale:!1,category:"symbols"},Pze={keywords:["game","play","chinese","kanji"],char:"🀄",fitzpatrick_scale:!1,category:"symbols"},jze={keywords:["poker","cards","suits","magic"],char:"♠️",fitzpatrick_scale:!1,category:"symbols"},Vze={keywords:["poker","cards","magic","suits"],char:"♣️",fitzpatrick_scale:!1,category:"symbols"},qze={keywords:["poker","cards","magic","suits"],char:"♥️",fitzpatrick_scale:!1,category:"symbols"},Hze={keywords:["poker","cards","magic","suits"],char:"♦️",fitzpatrick_scale:!1,category:"symbols"},Uze={keywords:["game","sunset","red"],char:"🎴",fitzpatrick_scale:!1,category:"symbols"},Wze={keywords:["bubble","cloud","speech","thinking","dream"],char:"💭",fitzpatrick_scale:!1,category:"symbols"},Gze={keywords:["caption","speech","thinking","mad"],char:"🗯",fitzpatrick_scale:!1,category:"symbols"},Kze={keywords:["bubble","words","message","talk","chatting"],char:"💬",fitzpatrick_scale:!1,category:"symbols"},Yze={keywords:["words","message","talk","chatting"],char:"🗨",fitzpatrick_scale:!1,category:"symbols"},Zze={keywords:["time","late","early","schedule"],char:"🕐",fitzpatrick_scale:!1,category:"symbols"},Xze={keywords:["time","late","early","schedule"],char:"🕑",fitzpatrick_scale:!1,category:"symbols"},Jze={keywords:["time","late","early","schedule"],char:"🕒",fitzpatrick_scale:!1,category:"symbols"},Qze={keywords:["time","late","early","schedule"],char:"🕓",fitzpatrick_scale:!1,category:"symbols"},eFe={keywords:["time","late","early","schedule"],char:"🕔",fitzpatrick_scale:!1,category:"symbols"},tFe={keywords:["time","late","early","schedule","dawn","dusk"],char:"🕕",fitzpatrick_scale:!1,category:"symbols"},nFe={keywords:["time","late","early","schedule"],char:"🕖",fitzpatrick_scale:!1,category:"symbols"},rFe={keywords:["time","late","early","schedule"],char:"🕗",fitzpatrick_scale:!1,category:"symbols"},iFe={keywords:["time","late","early","schedule"],char:"🕘",fitzpatrick_scale:!1,category:"symbols"},aFe={keywords:["time","late","early","schedule"],char:"🕙",fitzpatrick_scale:!1,category:"symbols"},oFe={keywords:["time","late","early","schedule"],char:"🕚",fitzpatrick_scale:!1,category:"symbols"},sFe={keywords:["time","noon","midnight","midday","late","early","schedule"],char:"🕛",fitzpatrick_scale:!1,category:"symbols"},lFe={keywords:["time","late","early","schedule"],char:"🕜",fitzpatrick_scale:!1,category:"symbols"},cFe={keywords:["time","late","early","schedule"],char:"🕝",fitzpatrick_scale:!1,category:"symbols"},uFe={keywords:["time","late","early","schedule"],char:"🕞",fitzpatrick_scale:!1,category:"symbols"},dFe={keywords:["time","late","early","schedule"],char:"🕟",fitzpatrick_scale:!1,category:"symbols"},fFe={keywords:["time","late","early","schedule"],char:"🕠",fitzpatrick_scale:!1,category:"symbols"},hFe={keywords:["time","late","early","schedule"],char:"🕡",fitzpatrick_scale:!1,category:"symbols"},pFe={keywords:["time","late","early","schedule"],char:"🕢",fitzpatrick_scale:!1,category:"symbols"},mFe={keywords:["time","late","early","schedule"],char:"🕣",fitzpatrick_scale:!1,category:"symbols"},gFe={keywords:["time","late","early","schedule"],char:"🕤",fitzpatrick_scale:!1,category:"symbols"},yFe={keywords:["time","late","early","schedule"],char:"🕥",fitzpatrick_scale:!1,category:"symbols"},_Fe={keywords:["time","late","early","schedule"],char:"🕦",fitzpatrick_scale:!1,category:"symbols"},bFe={keywords:["time","late","early","schedule"],char:"🕧",fitzpatrick_scale:!1,category:"symbols"},kFe={keywords:["af","flag","nation","country","banner"],char:"🇦🇫",fitzpatrick_scale:!1,category:"flags"},wFe={keywords:["Åland","islands","flag","nation","country","banner"],char:"🇦🇽",fitzpatrick_scale:!1,category:"flags"},vFe={keywords:["al","flag","nation","country","banner"],char:"🇦🇱",fitzpatrick_scale:!1,category:"flags"},xFe={keywords:["dz","flag","nation","country","banner"],char:"🇩🇿",fitzpatrick_scale:!1,category:"flags"},CFe={keywords:["american","ws","flag","nation","country","banner"],char:"🇦🇸",fitzpatrick_scale:!1,category:"flags"},SFe={keywords:["ad","flag","nation","country","banner"],char:"🇦🇩",fitzpatrick_scale:!1,category:"flags"},DFe={keywords:["ao","flag","nation","country","banner"],char:"🇦🇴",fitzpatrick_scale:!1,category:"flags"},EFe={keywords:["ai","flag","nation","country","banner"],char:"🇦🇮",fitzpatrick_scale:!1,category:"flags"},TFe={keywords:["aq","flag","nation","country","banner"],char:"🇦🇶",fitzpatrick_scale:!1,category:"flags"},AFe={keywords:["antigua","barbuda","flag","nation","country","banner"],char:"🇦🇬",fitzpatrick_scale:!1,category:"flags"},zFe={keywords:["ar","flag","nation","country","banner"],char:"🇦🇷",fitzpatrick_scale:!1,category:"flags"},FFe={keywords:["am","flag","nation","country","banner"],char:"🇦🇲",fitzpatrick_scale:!1,category:"flags"},$Fe={keywords:["aw","flag","nation","country","banner"],char:"🇦🇼",fitzpatrick_scale:!1,category:"flags"},MFe={keywords:["au","flag","nation","country","banner"],char:"🇦🇺",fitzpatrick_scale:!1,category:"flags"},OFe={keywords:["at","flag","nation","country","banner"],char:"🇦🇹",fitzpatrick_scale:!1,category:"flags"},NFe={keywords:["az","flag","nation","country","banner"],char:"🇦🇿",fitzpatrick_scale:!1,category:"flags"},LFe={keywords:["bs","flag","nation","country","banner"],char:"🇧🇸",fitzpatrick_scale:!1,category:"flags"},IFe={keywords:["bh","flag","nation","country","banner"],char:"🇧🇭",fitzpatrick_scale:!1,category:"flags"},BFe={keywords:["bd","flag","nation","country","banner"],char:"🇧🇩",fitzpatrick_scale:!1,category:"flags"},RFe={keywords:["bb","flag","nation","country","banner"],char:"🇧🇧",fitzpatrick_scale:!1,category:"flags"},PFe={keywords:["by","flag","nation","country","banner"],char:"🇧🇾",fitzpatrick_scale:!1,category:"flags"},jFe={keywords:["be","flag","nation","country","banner"],char:"🇧🇪",fitzpatrick_scale:!1,category:"flags"},VFe={keywords:["bz","flag","nation","country","banner"],char:"🇧🇿",fitzpatrick_scale:!1,category:"flags"},qFe={keywords:["bj","flag","nation","country","banner"],char:"🇧🇯",fitzpatrick_scale:!1,category:"flags"},HFe={keywords:["bm","flag","nation","country","banner"],char:"🇧🇲",fitzpatrick_scale:!1,category:"flags"},UFe={keywords:["bt","flag","nation","country","banner"],char:"🇧🇹",fitzpatrick_scale:!1,category:"flags"},WFe={keywords:["bo","flag","nation","country","banner"],char:"🇧🇴",fitzpatrick_scale:!1,category:"flags"},GFe={keywords:["bonaire","flag","nation","country","banner"],char:"🇧🇶",fitzpatrick_scale:!1,category:"flags"},KFe={keywords:["bosnia","herzegovina","flag","nation","country","banner"],char:"🇧🇦",fitzpatrick_scale:!1,category:"flags"},YFe={keywords:["bw","flag","nation","country","banner"],char:"🇧🇼",fitzpatrick_scale:!1,category:"flags"},ZFe={keywords:["br","flag","nation","country","banner"],char:"🇧🇷",fitzpatrick_scale:!1,category:"flags"},XFe={keywords:["british","indian","ocean","territory","flag","nation","country","banner"],char:"🇮🇴",fitzpatrick_scale:!1,category:"flags"},JFe={keywords:["british","virgin","islands","bvi","flag","nation","country","banner"],char:"🇻🇬",fitzpatrick_scale:!1,category:"flags"},QFe={keywords:["bn","darussalam","flag","nation","country","banner"],char:"🇧🇳",fitzpatrick_scale:!1,category:"flags"},e$e={keywords:["bg","flag","nation","country","banner"],char:"🇧🇬",fitzpatrick_scale:!1,category:"flags"},t$e={keywords:["burkina","faso","flag","nation","country","banner"],char:"🇧🇫",fitzpatrick_scale:!1,category:"flags"},n$e={keywords:["bi","flag","nation","country","banner"],char:"🇧🇮",fitzpatrick_scale:!1,category:"flags"},r$e={keywords:["cabo","verde","flag","nation","country","banner"],char:"🇨🇻",fitzpatrick_scale:!1,category:"flags"},i$e={keywords:["kh","flag","nation","country","banner"],char:"🇰🇭",fitzpatrick_scale:!1,category:"flags"},a$e={keywords:["cm","flag","nation","country","banner"],char:"🇨🇲",fitzpatrick_scale:!1,category:"flags"},o$e={keywords:["ca","flag","nation","country","banner"],char:"🇨🇦",fitzpatrick_scale:!1,category:"flags"},s$e={keywords:["canary","islands","flag","nation","country","banner"],char:"🇮🇨",fitzpatrick_scale:!1,category:"flags"},l$e={keywords:["cayman","islands","flag","nation","country","banner"],char:"🇰🇾",fitzpatrick_scale:!1,category:"flags"},c$e={keywords:["central","african","republic","flag","nation","country","banner"],char:"🇨🇫",fitzpatrick_scale:!1,category:"flags"},u$e={keywords:["td","flag","nation","country","banner"],char:"🇹🇩",fitzpatrick_scale:!1,category:"flags"},d$e={keywords:["flag","nation","country","banner"],char:"🇨🇱",fitzpatrick_scale:!1,category:"flags"},f$e={keywords:["china","chinese","prc","flag","country","nation","banner"],char:"🇨🇳",fitzpatrick_scale:!1,category:"flags"},h$e={keywords:["christmas","island","flag","nation","country","banner"],char:"🇨🇽",fitzpatrick_scale:!1,category:"flags"},p$e={keywords:["cocos","keeling","islands","flag","nation","country","banner"],char:"🇨🇨",fitzpatrick_scale:!1,category:"flags"},m$e={keywords:["co","flag","nation","country","banner"],char:"🇨🇴",fitzpatrick_scale:!1,category:"flags"},g$e={keywords:["km","flag","nation","country","banner"],char:"🇰🇲",fitzpatrick_scale:!1,category:"flags"},y$e={keywords:["congo","flag","nation","country","banner"],char:"🇨🇬",fitzpatrick_scale:!1,category:"flags"},_$e={keywords:["congo","democratic","republic","flag","nation","country","banner"],char:"🇨🇩",fitzpatrick_scale:!1,category:"flags"},b$e={keywords:["cook","islands","flag","nation","country","banner"],char:"🇨🇰",fitzpatrick_scale:!1,category:"flags"},k$e={keywords:["costa","rica","flag","nation","country","banner"],char:"🇨🇷",fitzpatrick_scale:!1,category:"flags"},w$e={keywords:["hr","flag","nation","country","banner"],char:"🇭🇷",fitzpatrick_scale:!1,category:"flags"},v$e={keywords:["cu","flag","nation","country","banner"],char:"🇨🇺",fitzpatrick_scale:!1,category:"flags"},x$e={keywords:["curaçao","flag","nation","country","banner"],char:"🇨🇼",fitzpatrick_scale:!1,category:"flags"},C$e={keywords:["cy","flag","nation","country","banner"],char:"🇨🇾",fitzpatrick_scale:!1,category:"flags"},S$e={keywords:["cz","flag","nation","country","banner"],char:"🇨🇿",fitzpatrick_scale:!1,category:"flags"},D$e={keywords:["dk","flag","nation","country","banner"],char:"🇩🇰",fitzpatrick_scale:!1,category:"flags"},E$e={keywords:["dj","flag","nation","country","banner"],char:"🇩🇯",fitzpatrick_scale:!1,category:"flags"},T$e={keywords:["dm","flag","nation","country","banner"],char:"🇩🇲",fitzpatrick_scale:!1,category:"flags"},A$e={keywords:["dominican","republic","flag","nation","country","banner"],char:"🇩🇴",fitzpatrick_scale:!1,category:"flags"},z$e={keywords:["ec","flag","nation","country","banner"],char:"🇪🇨",fitzpatrick_scale:!1,category:"flags"},F$e={keywords:["eg","flag","nation","country","banner"],char:"🇪🇬",fitzpatrick_scale:!1,category:"flags"},$$e={keywords:["el","salvador","flag","nation","country","banner"],char:"🇸🇻",fitzpatrick_scale:!1,category:"flags"},M$e={keywords:["equatorial","gn","flag","nation","country","banner"],char:"🇬🇶",fitzpatrick_scale:!1,category:"flags"},O$e={keywords:["er","flag","nation","country","banner"],char:"🇪🇷",fitzpatrick_scale:!1,category:"flags"},N$e={keywords:["ee","flag","nation","country","banner"],char:"🇪🇪",fitzpatrick_scale:!1,category:"flags"},L$e={keywords:["et","flag","nation","country","banner"],char:"🇪🇹",fitzpatrick_scale:!1,category:"flags"},I$e={keywords:["european","union","flag","banner"],char:"🇪🇺",fitzpatrick_scale:!1,category:"flags"},B$e={keywords:["falkland","islands","malvinas","flag","nation","country","banner"],char:"🇫🇰",fitzpatrick_scale:!1,category:"flags"},R$e={keywords:["faroe","islands","flag","nation","country","banner"],char:"🇫🇴",fitzpatrick_scale:!1,category:"flags"},P$e={keywords:["fj","flag","nation","country","banner"],char:"🇫🇯",fitzpatrick_scale:!1,category:"flags"},j$e={keywords:["fi","flag","nation","country","banner"],char:"🇫🇮",fitzpatrick_scale:!1,category:"flags"},V$e={keywords:["banner","flag","nation","france","french","country"],char:"🇫🇷",fitzpatrick_scale:!1,category:"flags"},q$e={keywords:["french","guiana","flag","nation","country","banner"],char:"🇬🇫",fitzpatrick_scale:!1,category:"flags"},H$e={keywords:["french","polynesia","flag","nation","country","banner"],char:"🇵🇫",fitzpatrick_scale:!1,category:"flags"},U$e={keywords:["french","southern","territories","flag","nation","country","banner"],char:"🇹🇫",fitzpatrick_scale:!1,category:"flags"},W$e={keywords:["ga","flag","nation","country","banner"],char:"🇬🇦",fitzpatrick_scale:!1,category:"flags"},G$e={keywords:["gm","flag","nation","country","banner"],char:"🇬🇲",fitzpatrick_scale:!1,category:"flags"},K$e={keywords:["ge","flag","nation","country","banner"],char:"🇬🇪",fitzpatrick_scale:!1,category:"flags"},Y$e={keywords:["german","nation","flag","country","banner"],char:"🇩🇪",fitzpatrick_scale:!1,category:"flags"},Z$e={keywords:["gh","flag","nation","country","banner"],char:"🇬🇭",fitzpatrick_scale:!1,category:"flags"},X$e={keywords:["gi","flag","nation","country","banner"],char:"🇬🇮",fitzpatrick_scale:!1,category:"flags"},J$e={keywords:["gr","flag","nation","country","banner"],char:"🇬🇷",fitzpatrick_scale:!1,category:"flags"},Q$e={keywords:["gl","flag","nation","country","banner"],char:"🇬🇱",fitzpatrick_scale:!1,category:"flags"},eMe={keywords:["gd","flag","nation","country","banner"],char:"🇬🇩",fitzpatrick_scale:!1,category:"flags"},tMe={keywords:["gp","flag","nation","country","banner"],char:"🇬🇵",fitzpatrick_scale:!1,category:"flags"},nMe={keywords:["gu","flag","nation","country","banner"],char:"🇬🇺",fitzpatrick_scale:!1,category:"flags"},rMe={keywords:["gt","flag","nation","country","banner"],char:"🇬🇹",fitzpatrick_scale:!1,category:"flags"},iMe={keywords:["gg","flag","nation","country","banner"],char:"🇬🇬",fitzpatrick_scale:!1,category:"flags"},aMe={keywords:["gn","flag","nation","country","banner"],char:"🇬🇳",fitzpatrick_scale:!1,category:"flags"},oMe={keywords:["gw","bissau","flag","nation","country","banner"],char:"🇬🇼",fitzpatrick_scale:!1,category:"flags"},sMe={keywords:["gy","flag","nation","country","banner"],char:"🇬🇾",fitzpatrick_scale:!1,category:"flags"},lMe={keywords:["ht","flag","nation","country","banner"],char:"🇭🇹",fitzpatrick_scale:!1,category:"flags"},cMe={keywords:["hn","flag","nation","country","banner"],char:"🇭🇳",fitzpatrick_scale:!1,category:"flags"},uMe={keywords:["hong","kong","flag","nation","country","banner"],char:"🇭🇰",fitzpatrick_scale:!1,category:"flags"},dMe={keywords:["hu","flag","nation","country","banner"],char:"🇭🇺",fitzpatrick_scale:!1,category:"flags"},fMe={keywords:["is","flag","nation","country","banner"],char:"🇮🇸",fitzpatrick_scale:!1,category:"flags"},hMe={keywords:["in","flag","nation","country","banner"],char:"🇮🇳",fitzpatrick_scale:!1,category:"flags"},pMe={keywords:["flag","nation","country","banner"],char:"🇮🇩",fitzpatrick_scale:!1,category:"flags"},mMe={keywords:["iran,","islamic","republic","flag","nation","country","banner"],char:"🇮🇷",fitzpatrick_scale:!1,category:"flags"},gMe={keywords:["iq","flag","nation","country","banner"],char:"🇮🇶",fitzpatrick_scale:!1,category:"flags"},yMe={keywords:["ie","flag","nation","country","banner"],char:"🇮🇪",fitzpatrick_scale:!1,category:"flags"},_Me={keywords:["isle","man","flag","nation","country","banner"],char:"🇮🇲",fitzpatrick_scale:!1,category:"flags"},bMe={keywords:["il","flag","nation","country","banner"],char:"🇮🇱",fitzpatrick_scale:!1,category:"flags"},kMe={keywords:["italy","flag","nation","country","banner"],char:"🇮🇹",fitzpatrick_scale:!1,category:"flags"},wMe={keywords:["ivory","coast","flag","nation","country","banner"],char:"🇨🇮",fitzpatrick_scale:!1,category:"flags"},vMe={keywords:["jm","flag","nation","country","banner"],char:"🇯🇲",fitzpatrick_scale:!1,category:"flags"},xMe={keywords:["japanese","nation","flag","country","banner"],char:"🇯🇵",fitzpatrick_scale:!1,category:"flags"},CMe={keywords:["je","flag","nation","country","banner"],char:"🇯🇪",fitzpatrick_scale:!1,category:"flags"},SMe={keywords:["jo","flag","nation","country","banner"],char:"🇯🇴",fitzpatrick_scale:!1,category:"flags"},DMe={keywords:["kz","flag","nation","country","banner"],char:"🇰🇿",fitzpatrick_scale:!1,category:"flags"},EMe={keywords:["ke","flag","nation","country","banner"],char:"🇰🇪",fitzpatrick_scale:!1,category:"flags"},TMe={keywords:["ki","flag","nation","country","banner"],char:"🇰🇮",fitzpatrick_scale:!1,category:"flags"},AMe={keywords:["xk","flag","nation","country","banner"],char:"🇽🇰",fitzpatrick_scale:!1,category:"flags"},zMe={keywords:["kw","flag","nation","country","banner"],char:"🇰🇼",fitzpatrick_scale:!1,category:"flags"},FMe={keywords:["kg","flag","nation","country","banner"],char:"🇰🇬",fitzpatrick_scale:!1,category:"flags"},$Me={keywords:["lao","democratic","republic","flag","nation","country","banner"],char:"🇱🇦",fitzpatrick_scale:!1,category:"flags"},MMe={keywords:["lv","flag","nation","country","banner"],char:"🇱🇻",fitzpatrick_scale:!1,category:"flags"},OMe={keywords:["lb","flag","nation","country","banner"],char:"🇱🇧",fitzpatrick_scale:!1,category:"flags"},NMe={keywords:["ls","flag","nation","country","banner"],char:"🇱🇸",fitzpatrick_scale:!1,category:"flags"},LMe={keywords:["lr","flag","nation","country","banner"],char:"🇱🇷",fitzpatrick_scale:!1,category:"flags"},IMe={keywords:["ly","flag","nation","country","banner"],char:"🇱🇾",fitzpatrick_scale:!1,category:"flags"},BMe={keywords:["li","flag","nation","country","banner"],char:"🇱🇮",fitzpatrick_scale:!1,category:"flags"},RMe={keywords:["lt","flag","nation","country","banner"],char:"🇱🇹",fitzpatrick_scale:!1,category:"flags"},PMe={keywords:["lu","flag","nation","country","banner"],char:"🇱🇺",fitzpatrick_scale:!1,category:"flags"},jMe={keywords:["macao","flag","nation","country","banner"],char:"🇲🇴",fitzpatrick_scale:!1,category:"flags"},VMe={keywords:["macedonia,","flag","nation","country","banner"],char:"🇲🇰",fitzpatrick_scale:!1,category:"flags"},qMe={keywords:["mg","flag","nation","country","banner"],char:"🇲🇬",fitzpatrick_scale:!1,category:"flags"},HMe={keywords:["mw","flag","nation","country","banner"],char:"🇲🇼",fitzpatrick_scale:!1,category:"flags"},UMe={keywords:["my","flag","nation","country","banner"],char:"🇲🇾",fitzpatrick_scale:!1,category:"flags"},WMe={keywords:["mv","flag","nation","country","banner"],char:"🇲🇻",fitzpatrick_scale:!1,category:"flags"},GMe={keywords:["ml","flag","nation","country","banner"],char:"🇲🇱",fitzpatrick_scale:!1,category:"flags"},KMe={keywords:["mt","flag","nation","country","banner"],char:"🇲🇹",fitzpatrick_scale:!1,category:"flags"},YMe={keywords:["marshall","islands","flag","nation","country","banner"],char:"🇲🇭",fitzpatrick_scale:!1,category:"flags"},ZMe={keywords:["mq","flag","nation","country","banner"],char:"🇲🇶",fitzpatrick_scale:!1,category:"flags"},XMe={keywords:["mr","flag","nation","country","banner"],char:"🇲🇷",fitzpatrick_scale:!1,category:"flags"},JMe={keywords:["mu","flag","nation","country","banner"],char:"🇲🇺",fitzpatrick_scale:!1,category:"flags"},QMe={keywords:["yt","flag","nation","country","banner"],char:"🇾🇹",fitzpatrick_scale:!1,category:"flags"},eOe={keywords:["mx","flag","nation","country","banner"],char:"🇲🇽",fitzpatrick_scale:!1,category:"flags"},tOe={keywords:["micronesia,","federated","states","flag","nation","country","banner"],char:"🇫🇲",fitzpatrick_scale:!1,category:"flags"},nOe={keywords:["moldova,","republic","flag","nation","country","banner"],char:"🇲🇩",fitzpatrick_scale:!1,category:"flags"},rOe={keywords:["mc","flag","nation","country","banner"],char:"🇲🇨",fitzpatrick_scale:!1,category:"flags"},iOe={keywords:["mn","flag","nation","country","banner"],char:"🇲🇳",fitzpatrick_scale:!1,category:"flags"},aOe={keywords:["me","flag","nation","country","banner"],char:"🇲🇪",fitzpatrick_scale:!1,category:"flags"},oOe={keywords:["ms","flag","nation","country","banner"],char:"🇲🇸",fitzpatrick_scale:!1,category:"flags"},sOe={keywords:["ma","flag","nation","country","banner"],char:"🇲🇦",fitzpatrick_scale:!1,category:"flags"},lOe={keywords:["mz","flag","nation","country","banner"],char:"🇲🇿",fitzpatrick_scale:!1,category:"flags"},cOe={keywords:["mm","flag","nation","country","banner"],char:"🇲🇲",fitzpatrick_scale:!1,category:"flags"},uOe={keywords:["na","flag","nation","country","banner"],char:"🇳🇦",fitzpatrick_scale:!1,category:"flags"},dOe={keywords:["nr","flag","nation","country","banner"],char:"🇳🇷",fitzpatrick_scale:!1,category:"flags"},fOe={keywords:["np","flag","nation","country","banner"],char:"🇳🇵",fitzpatrick_scale:!1,category:"flags"},hOe={keywords:["nl","flag","nation","country","banner"],char:"🇳🇱",fitzpatrick_scale:!1,category:"flags"},pOe={keywords:["new","caledonia","flag","nation","country","banner"],char:"🇳🇨",fitzpatrick_scale:!1,category:"flags"},mOe={keywords:["new","zealand","flag","nation","country","banner"],char:"🇳🇿",fitzpatrick_scale:!1,category:"flags"},gOe={keywords:["ni","flag","nation","country","banner"],char:"🇳🇮",fitzpatrick_scale:!1,category:"flags"},yOe={keywords:["ne","flag","nation","country","banner"],char:"🇳🇪",fitzpatrick_scale:!1,category:"flags"},_Oe={keywords:["flag","nation","country","banner"],char:"🇳🇬",fitzpatrick_scale:!1,category:"flags"},bOe={keywords:["nu","flag","nation","country","banner"],char:"🇳🇺",fitzpatrick_scale:!1,category:"flags"},kOe={keywords:["norfolk","island","flag","nation","country","banner"],char:"🇳🇫",fitzpatrick_scale:!1,category:"flags"},wOe={keywords:["northern","mariana","islands","flag","nation","country","banner"],char:"🇲🇵",fitzpatrick_scale:!1,category:"flags"},vOe={keywords:["north","korea","nation","flag","country","banner"],char:"🇰🇵",fitzpatrick_scale:!1,category:"flags"},xOe={keywords:["no","flag","nation","country","banner"],char:"🇳🇴",fitzpatrick_scale:!1,category:"flags"},COe={keywords:["om_symbol","flag","nation","country","banner"],char:"🇴🇲",fitzpatrick_scale:!1,category:"flags"},SOe={keywords:["pk","flag","nation","country","banner"],char:"🇵🇰",fitzpatrick_scale:!1,category:"flags"},DOe={keywords:["pw","flag","nation","country","banner"],char:"🇵🇼",fitzpatrick_scale:!1,category:"flags"},EOe={keywords:["palestine","palestinian","territories","flag","nation","country","banner"],char:"🇵🇸",fitzpatrick_scale:!1,category:"flags"},TOe={keywords:["pa","flag","nation","country","banner"],char:"🇵🇦",fitzpatrick_scale:!1,category:"flags"},AOe={keywords:["papua","new","guinea","flag","nation","country","banner"],char:"🇵🇬",fitzpatrick_scale:!1,category:"flags"},zOe={keywords:["py","flag","nation","country","banner"],char:"🇵🇾",fitzpatrick_scale:!1,category:"flags"},FOe={keywords:["pe","flag","nation","country","banner"],char:"🇵🇪",fitzpatrick_scale:!1,category:"flags"},$Oe={keywords:["ph","flag","nation","country","banner"],char:"🇵🇭",fitzpatrick_scale:!1,category:"flags"},MOe={keywords:["pitcairn","flag","nation","country","banner"],char:"🇵🇳",fitzpatrick_scale:!1,category:"flags"},OOe={keywords:["pl","flag","nation","country","banner"],char:"🇵🇱",fitzpatrick_scale:!1,category:"flags"},NOe={keywords:["pt","flag","nation","country","banner"],char:"🇵🇹",fitzpatrick_scale:!1,category:"flags"},LOe={keywords:["puerto","rico","flag","nation","country","banner"],char:"🇵🇷",fitzpatrick_scale:!1,category:"flags"},IOe={keywords:["qa","flag","nation","country","banner"],char:"🇶🇦",fitzpatrick_scale:!1,category:"flags"},BOe={keywords:["réunion","flag","nation","country","banner"],char:"🇷🇪",fitzpatrick_scale:!1,category:"flags"},ROe={keywords:["ro","flag","nation","country","banner"],char:"🇷🇴",fitzpatrick_scale:!1,category:"flags"},POe={keywords:["russian","federation","flag","nation","country","banner"],char:"🇷🇺",fitzpatrick_scale:!1,category:"flags"},jOe={keywords:["rw","flag","nation","country","banner"],char:"🇷🇼",fitzpatrick_scale:!1,category:"flags"},VOe={keywords:["saint","barthélemy","flag","nation","country","banner"],char:"🇧🇱",fitzpatrick_scale:!1,category:"flags"},qOe={keywords:["saint","helena","ascension","tristan","cunha","flag","nation","country","banner"],char:"🇸🇭",fitzpatrick_scale:!1,category:"flags"},HOe={keywords:["saint","kitts","nevis","flag","nation","country","banner"],char:"🇰🇳",fitzpatrick_scale:!1,category:"flags"},UOe={keywords:["saint","lucia","flag","nation","country","banner"],char:"🇱🇨",fitzpatrick_scale:!1,category:"flags"},WOe={keywords:["saint","pierre","miquelon","flag","nation","country","banner"],char:"🇵🇲",fitzpatrick_scale:!1,category:"flags"},GOe={keywords:["saint","vincent","grenadines","flag","nation","country","banner"],char:"🇻🇨",fitzpatrick_scale:!1,category:"flags"},KOe={keywords:["ws","flag","nation","country","banner"],char:"🇼🇸",fitzpatrick_scale:!1,category:"flags"},YOe={keywords:["san","marino","flag","nation","country","banner"],char:"🇸🇲",fitzpatrick_scale:!1,category:"flags"},ZOe={keywords:["sao","tome","principe","flag","nation","country","banner"],char:"🇸🇹",fitzpatrick_scale:!1,category:"flags"},XOe={keywords:["flag","nation","country","banner"],char:"🇸🇦",fitzpatrick_scale:!1,category:"flags"},JOe={keywords:["sn","flag","nation","country","banner"],char:"🇸🇳",fitzpatrick_scale:!1,category:"flags"},QOe={keywords:["rs","flag","nation","country","banner"],char:"🇷🇸",fitzpatrick_scale:!1,category:"flags"},eNe={keywords:["sc","flag","nation","country","banner"],char:"🇸🇨",fitzpatrick_scale:!1,category:"flags"},tNe={keywords:["sierra","leone","flag","nation","country","banner"],char:"🇸🇱",fitzpatrick_scale:!1,category:"flags"},nNe={keywords:["sg","flag","nation","country","banner"],char:"🇸🇬",fitzpatrick_scale:!1,category:"flags"},rNe={keywords:["sint","maarten","dutch","flag","nation","country","banner"],char:"🇸🇽",fitzpatrick_scale:!1,category:"flags"},iNe={keywords:["sk","flag","nation","country","banner"],char:"🇸🇰",fitzpatrick_scale:!1,category:"flags"},aNe={keywords:["si","flag","nation","country","banner"],char:"🇸🇮",fitzpatrick_scale:!1,category:"flags"},oNe={keywords:["solomon","islands","flag","nation","country","banner"],char:"🇸🇧",fitzpatrick_scale:!1,category:"flags"},sNe={keywords:["so","flag","nation","country","banner"],char:"🇸🇴",fitzpatrick_scale:!1,category:"flags"},lNe={keywords:["south","africa","flag","nation","country","banner"],char:"🇿🇦",fitzpatrick_scale:!1,category:"flags"},cNe={keywords:["south","georgia","sandwich","islands","flag","nation","country","banner"],char:"🇬🇸",fitzpatrick_scale:!1,category:"flags"},uNe={keywords:["south","korea","nation","flag","country","banner"],char:"🇰🇷",fitzpatrick_scale:!1,category:"flags"},dNe={keywords:["south","sd","flag","nation","country","banner"],char:"🇸🇸",fitzpatrick_scale:!1,category:"flags"},fNe={keywords:["spain","flag","nation","country","banner"],char:"🇪🇸",fitzpatrick_scale:!1,category:"flags"},hNe={keywords:["sri","lanka","flag","nation","country","banner"],char:"🇱🇰",fitzpatrick_scale:!1,category:"flags"},pNe={keywords:["sd","flag","nation","country","banner"],char:"🇸🇩",fitzpatrick_scale:!1,category:"flags"},mNe={keywords:["sr","flag","nation","country","banner"],char:"🇸🇷",fitzpatrick_scale:!1,category:"flags"},gNe={keywords:["sz","flag","nation","country","banner"],char:"🇸🇿",fitzpatrick_scale:!1,category:"flags"},yNe={keywords:["se","flag","nation","country","banner"],char:"🇸🇪",fitzpatrick_scale:!1,category:"flags"},_Ne={keywords:["ch","flag","nation","country","banner"],char:"🇨🇭",fitzpatrick_scale:!1,category:"flags"},bNe={keywords:["syrian","arab","republic","flag","nation","country","banner"],char:"🇸🇾",fitzpatrick_scale:!1,category:"flags"},kNe={keywords:["tw","flag","nation","country","banner"],char:"🇹🇼",fitzpatrick_scale:!1,category:"flags"},wNe={keywords:["tj","flag","nation","country","banner"],char:"🇹🇯",fitzpatrick_scale:!1,category:"flags"},vNe={keywords:["tanzania,","united","republic","flag","nation","country","banner"],char:"🇹🇿",fitzpatrick_scale:!1,category:"flags"},xNe={keywords:["th","flag","nation","country","banner"],char:"🇹🇭",fitzpatrick_scale:!1,category:"flags"},CNe={keywords:["timor","leste","flag","nation","country","banner"],char:"🇹🇱",fitzpatrick_scale:!1,category:"flags"},SNe={keywords:["tg","flag","nation","country","banner"],char:"🇹🇬",fitzpatrick_scale:!1,category:"flags"},DNe={keywords:["tk","flag","nation","country","banner"],char:"🇹🇰",fitzpatrick_scale:!1,category:"flags"},ENe={keywords:["to","flag","nation","country","banner"],char:"🇹🇴",fitzpatrick_scale:!1,category:"flags"},TNe={keywords:["trinidad","tobago","flag","nation","country","banner"],char:"🇹🇹",fitzpatrick_scale:!1,category:"flags"},ANe={keywords:["tn","flag","nation","country","banner"],char:"🇹🇳",fitzpatrick_scale:!1,category:"flags"},zNe={keywords:["turkey","flag","nation","country","banner"],char:"🇹🇷",fitzpatrick_scale:!1,category:"flags"},FNe={keywords:["flag","nation","country","banner"],char:"🇹🇲",fitzpatrick_scale:!1,category:"flags"},$Ne={keywords:["turks","caicos","islands","flag","nation","country","banner"],char:"🇹🇨",fitzpatrick_scale:!1,category:"flags"},MNe={keywords:["flag","nation","country","banner"],char:"🇹🇻",fitzpatrick_scale:!1,category:"flags"},ONe={keywords:["ug","flag","nation","country","banner"],char:"🇺🇬",fitzpatrick_scale:!1,category:"flags"},NNe={keywords:["ua","flag","nation","country","banner"],char:"🇺🇦",fitzpatrick_scale:!1,category:"flags"},LNe={keywords:["united","arab","emirates","flag","nation","country","banner"],char:"🇦🇪",fitzpatrick_scale:!1,category:"flags"},INe={keywords:["united","kingdom","great","britain","northern","ireland","flag","nation","country","banner","british","UK","english","england","union jack"],char:"🇬🇧",fitzpatrick_scale:!1,category:"flags"},BNe={keywords:["flag","english"],char:"🏴󠁧󠁢󠁥󠁮󠁧󠁿",fitzpatrick_scale:!1,category:"flags"},RNe={keywords:["flag","scottish"],char:"🏴󠁧󠁢󠁳󠁣󠁴󠁿",fitzpatrick_scale:!1,category:"flags"},PNe={keywords:["flag","welsh"],char:"🏴󠁧󠁢󠁷󠁬󠁳󠁿",fitzpatrick_scale:!1,category:"flags"},jNe={keywords:["united","states","america","flag","nation","country","banner"],char:"🇺🇸",fitzpatrick_scale:!1,category:"flags"},VNe={keywords:["virgin","islands","us","flag","nation","country","banner"],char:"🇻🇮",fitzpatrick_scale:!1,category:"flags"},qNe={keywords:["uy","flag","nation","country","banner"],char:"🇺🇾",fitzpatrick_scale:!1,category:"flags"},HNe={keywords:["uz","flag","nation","country","banner"],char:"🇺🇿",fitzpatrick_scale:!1,category:"flags"},UNe={keywords:["vu","flag","nation","country","banner"],char:"🇻🇺",fitzpatrick_scale:!1,category:"flags"},WNe={keywords:["vatican","city","flag","nation","country","banner"],char:"🇻🇦",fitzpatrick_scale:!1,category:"flags"},GNe={keywords:["ve","bolivarian","republic","flag","nation","country","banner"],char:"🇻🇪",fitzpatrick_scale:!1,category:"flags"},KNe={keywords:["viet","nam","flag","nation","country","banner"],char:"🇻🇳",fitzpatrick_scale:!1,category:"flags"},YNe={keywords:["wallis","futuna","flag","nation","country","banner"],char:"🇼🇫",fitzpatrick_scale:!1,category:"flags"},ZNe={keywords:["western","sahara","flag","nation","country","banner"],char:"🇪🇭",fitzpatrick_scale:!1,category:"flags"},XNe={keywords:["ye","flag","nation","country","banner"],char:"🇾🇪",fitzpatrick_scale:!1,category:"flags"},JNe={keywords:["zm","flag","nation","country","banner"],char:"🇿🇲",fitzpatrick_scale:!1,category:"flags"},QNe={keywords:["zw","flag","nation","country","banner"],char:"🇿🇼",fitzpatrick_scale:!1,category:"flags"},eLe={keywords:["un","flag","banner"],char:"🇺🇳",fitzpatrick_scale:!1,category:"flags"},tLe={keywords:["skull","crossbones","flag","banner"],char:"🏴‍☠️",fitzpatrick_scale:!1,category:"flags"},nLe={100:{keywords:["score","perfect","numbers","century","exam","quiz","test","pass","hundred"],char:"💯",fitzpatrick_scale:!1,category:"symbols"},1234:{keywords:["numbers","blue-square"],char:"🔢",fitzpatrick_scale:!1,category:"symbols"},grinning:dge,grimacing:fge,grin:hge,joy:pge,rofl:mge,partying:gge,smiley:yge,smile:_ge,sweat_smile:bge,laughing:kge,innocent:wge,wink:vge,blush:xge,slightly_smiling_face:Cge,upside_down_face:Sge,relaxed:Dge,yum:Ege,relieved:Tge,heart_eyes:Age,smiling_face_with_three_hearts:zge,kissing_heart:Fge,kissing:$ge,kissing_smiling_eyes:Mge,kissing_closed_eyes:Oge,stuck_out_tongue_winking_eye:Nge,zany:Lge,raised_eyebrow:Ige,monocle:Bge,stuck_out_tongue_closed_eyes:Rge,stuck_out_tongue:Pge,money_mouth_face:jge,nerd_face:Vge,sunglasses:qge,star_struck:Hge,clown_face:Uge,cowboy_hat_face:Wge,hugs:Gge,smirk:Kge,no_mouth:Yge,neutral_face:Zge,expressionless:Xge,unamused:Jge,roll_eyes:Qge,thinking:e1e,lying_face:t1e,hand_over_mouth:n1e,shushing:r1e,symbols_over_mouth:i1e,exploding_head:a1e,flushed:o1e,disappointed:s1e,worried:l1e,angry:c1e,rage:u1e,pensive:d1e,confused:f1e,slightly_frowning_face:h1e,frowning_face:p1e,persevere:m1e,confounded:g1e,tired_face:y1e,weary:_1e,pleading:b1e,triumph:k1e,open_mouth:w1e,scream:v1e,fearful:x1e,cold_sweat:C1e,hushed:S1e,frowning:D1e,anguished:E1e,cry:T1e,disappointed_relieved:A1e,drooling_face:z1e,sleepy:F1e,sweat:$1e,hot:M1e,cold:O1e,sob:N1e,dizzy_face:L1e,astonished:I1e,zipper_mouth_face:B1e,nauseated_face:R1e,sneezing_face:P1e,vomiting:j1e,mask:V1e,face_with_thermometer:q1e,face_with_head_bandage:H1e,woozy:U1e,sleeping:W1e,zzz:G1e,poop:K1e,smiling_imp:Y1e,imp:Z1e,japanese_ogre:X1e,japanese_goblin:J1e,skull:Q1e,ghost:eye,alien:tye,robot:nye,smiley_cat:rye,smile_cat:iye,joy_cat:aye,heart_eyes_cat:oye,smirk_cat:sye,kissing_cat:lye,scream_cat:cye,crying_cat_face:uye,pouting_cat:dye,palms_up:fye,raised_hands:hye,clap:pye,wave:mye,call_me_hand:gye,"+1":{keywords:["thumbsup","yes","awesome","good","agree","accept","cool","hand","like"],char:"👍",fitzpatrick_scale:!0,category:"people"},"-1":{keywords:["thumbsdown","no","dislike","hand"],char:"👎",fitzpatrick_scale:!0,category:"people"},facepunch:yye,fist:_ye,fist_left:bye,fist_right:kye,v:wye,ok_hand:vye,raised_hand:xye,raised_back_of_hand:Cye,open_hands:Sye,muscle:Dye,pray:Eye,foot:Tye,leg:Aye,handshake:zye,point_up:Fye,point_up_2:$ye,point_down:Mye,point_left:Oye,point_right:Nye,fu:Lye,raised_hand_with_fingers_splayed:Iye,love_you:Bye,metal:Rye,crossed_fingers:Pye,vulcan_salute:jye,writing_hand:Vye,selfie:qye,nail_care:Hye,lips:Uye,tooth:Wye,tongue:Gye,ear:Kye,nose:Yye,eye:Zye,eyes:Xye,brain:Jye,bust_in_silhouette:Qye,busts_in_silhouette:e_e,speaking_head:t_e,baby:n_e,child:r_e,boy:i_e,girl:a_e,adult:o_e,man:s_e,woman:l_e,blonde_woman:c_e,blonde_man:u_e,bearded_person:d_e,older_adult:f_e,older_man:h_e,older_woman:p_e,man_with_gua_pi_mao:m_e,woman_with_headscarf:g_e,woman_with_turban:y_e,man_with_turban:__e,policewoman:b_e,policeman:k_e,construction_worker_woman:w_e,construction_worker_man:v_e,guardswoman:x_e,guardsman:C_e,female_detective:S_e,male_detective:D_e,woman_health_worker:E_e,man_health_worker:T_e,woman_farmer:A_e,man_farmer:z_e,woman_cook:F_e,man_cook:$_e,woman_student:M_e,man_student:O_e,woman_singer:N_e,man_singer:L_e,woman_teacher:I_e,man_teacher:B_e,woman_factory_worker:R_e,man_factory_worker:P_e,woman_technologist:j_e,man_technologist:V_e,woman_office_worker:q_e,man_office_worker:H_e,woman_mechanic:U_e,man_mechanic:W_e,woman_scientist:G_e,man_scientist:K_e,woman_artist:Y_e,man_artist:Z_e,woman_firefighter:X_e,man_firefighter:J_e,woman_pilot:Q_e,man_pilot:ebe,woman_astronaut:tbe,man_astronaut:nbe,woman_judge:rbe,man_judge:ibe,woman_superhero:abe,man_superhero:obe,woman_supervillain:sbe,man_supervillain:lbe,mrs_claus:cbe,santa:ube,sorceress:dbe,wizard:fbe,woman_elf:hbe,man_elf:pbe,woman_vampire:mbe,man_vampire:gbe,woman_zombie:ybe,man_zombie:_be,woman_genie:bbe,man_genie:kbe,mermaid:wbe,merman:vbe,woman_fairy:xbe,man_fairy:Cbe,angel:Sbe,pregnant_woman:Dbe,breastfeeding:Ebe,princess:Tbe,prince:Abe,bride_with_veil:zbe,man_in_tuxedo:Fbe,running_woman:$be,running_man:Mbe,walking_woman:Obe,walking_man:Nbe,dancer:Lbe,man_dancing:Ibe,dancing_women:Bbe,dancing_men:Rbe,couple:Pbe,two_men_holding_hands:jbe,two_women_holding_hands:Vbe,bowing_woman:qbe,bowing_man:Hbe,man_facepalming:Ube,woman_facepalming:Wbe,woman_shrugging:Gbe,man_shrugging:Kbe,tipping_hand_woman:Ybe,tipping_hand_man:Zbe,no_good_woman:Xbe,no_good_man:Jbe,ok_woman:Qbe,ok_man:eke,raising_hand_woman:tke,raising_hand_man:nke,pouting_woman:rke,pouting_man:ike,frowning_woman:ake,frowning_man:oke,haircut_woman:ske,haircut_man:lke,massage_woman:cke,massage_man:uke,woman_in_steamy_room:dke,man_in_steamy_room:fke,couple_with_heart_woman_man:hke,couple_with_heart_woman_woman:pke,couple_with_heart_man_man:mke,couplekiss_man_woman:gke,couplekiss_woman_woman:yke,couplekiss_man_man:_ke,family_man_woman_boy:bke,family_man_woman_girl:kke,family_man_woman_girl_boy:wke,family_man_woman_boy_boy:vke,family_man_woman_girl_girl:xke,family_woman_woman_boy:Cke,family_woman_woman_girl:Ske,family_woman_woman_girl_boy:Dke,family_woman_woman_boy_boy:Eke,family_woman_woman_girl_girl:Tke,family_man_man_boy:Ake,family_man_man_girl:zke,family_man_man_girl_boy:Fke,family_man_man_boy_boy:$ke,family_man_man_girl_girl:Mke,family_woman_boy:Oke,family_woman_girl:Nke,family_woman_girl_boy:Lke,family_woman_boy_boy:Ike,family_woman_girl_girl:Bke,family_man_boy:Rke,family_man_girl:Pke,family_man_girl_boy:jke,family_man_boy_boy:Vke,family_man_girl_girl:qke,yarn:Hke,thread:Uke,coat:Wke,labcoat:Gke,womans_clothes:Kke,tshirt:Yke,jeans:Zke,necktie:Xke,dress:Jke,bikini:Qke,kimono:ewe,lipstick:twe,kiss:nwe,footprints:rwe,flat_shoe:iwe,high_heel:awe,sandal:owe,boot:swe,mans_shoe:lwe,athletic_shoe:cwe,hiking_boot:uwe,socks:dwe,gloves:fwe,scarf:hwe,womans_hat:pwe,tophat:mwe,billed_hat:gwe,rescue_worker_helmet:ywe,mortar_board:_we,crown:bwe,school_satchel:kwe,luggage:wwe,pouch:vwe,purse:xwe,handbag:Cwe,briefcase:Swe,eyeglasses:Dwe,dark_sunglasses:Ewe,goggles:Twe,ring:Awe,closed_umbrella:zwe,dog:Fwe,cat:$we,mouse:Mwe,hamster:Owe,rabbit:Nwe,fox_face:Lwe,bear:Iwe,panda_face:Bwe,koala:Rwe,tiger:Pwe,lion:jwe,cow:Vwe,pig:qwe,pig_nose:Hwe,frog:Uwe,squid:Wwe,octopus:Gwe,shrimp:Kwe,monkey_face:Ywe,gorilla:Zwe,see_no_evil:Xwe,hear_no_evil:Jwe,speak_no_evil:Qwe,monkey:eve,chicken:tve,penguin:nve,bird:rve,baby_chick:ive,hatching_chick:ave,hatched_chick:ove,duck:sve,eagle:lve,owl:cve,bat:uve,wolf:dve,boar:fve,horse:hve,unicorn:pve,honeybee:mve,bug:gve,butterfly:yve,snail:_ve,beetle:bve,ant:kve,grasshopper:wve,spider:vve,scorpion:xve,crab:Cve,snake:Sve,lizard:Dve,"t-rex":{keywords:["animal","nature","dinosaur","tyrannosaurus","extinct"],char:"🦖",fitzpatrick_scale:!1,category:"animals_and_nature"},sauropod:Eve,turtle:Tve,tropical_fish:Ave,fish:zve,blowfish:Fve,dolphin:$ve,shark:Mve,whale:Ove,whale2:Nve,crocodile:Lve,leopard:Ive,zebra:Bve,tiger2:Rve,water_buffalo:Pve,ox:jve,cow2:Vve,deer:qve,dromedary_camel:Hve,camel:Uve,giraffe:Wve,elephant:Gve,rhinoceros:Kve,goat:Yve,ram:Zve,sheep:Xve,racehorse:Jve,pig2:Qve,rat:e2e,mouse2:t2e,rooster:n2e,turkey:r2e,dove:i2e,dog2:a2e,poodle:o2e,cat2:s2e,rabbit2:l2e,chipmunk:c2e,hedgehog:u2e,raccoon:d2e,llama:f2e,hippopotamus:h2e,kangaroo:p2e,badger:m2e,swan:g2e,peacock:y2e,parrot:_2e,lobster:b2e,mosquito:k2e,paw_prints:w2e,dragon:v2e,dragon_face:x2e,cactus:C2e,christmas_tree:S2e,evergreen_tree:D2e,deciduous_tree:E2e,palm_tree:T2e,seedling:A2e,herb:z2e,shamrock:F2e,four_leaf_clover:$2e,bamboo:M2e,tanabata_tree:O2e,leaves:N2e,fallen_leaf:L2e,maple_leaf:I2e,ear_of_rice:B2e,hibiscus:R2e,sunflower:P2e,rose:j2e,wilted_flower:V2e,tulip:q2e,blossom:H2e,cherry_blossom:U2e,bouquet:W2e,mushroom:G2e,chestnut:K2e,jack_o_lantern:Y2e,shell:Z2e,spider_web:X2e,earth_americas:J2e,earth_africa:Q2e,earth_asia:e3e,full_moon:t3e,waning_gibbous_moon:n3e,last_quarter_moon:r3e,waning_crescent_moon:i3e,new_moon:a3e,waxing_crescent_moon:o3e,first_quarter_moon:s3e,waxing_gibbous_moon:l3e,new_moon_with_face:c3e,full_moon_with_face:u3e,first_quarter_moon_with_face:d3e,last_quarter_moon_with_face:f3e,sun_with_face:h3e,crescent_moon:p3e,star:m3e,star2:g3e,dizzy:y3e,sparkles:_3e,comet:b3e,sunny:k3e,sun_behind_small_cloud:w3e,partly_sunny:v3e,sun_behind_large_cloud:x3e,sun_behind_rain_cloud:C3e,cloud:S3e,cloud_with_rain:D3e,cloud_with_lightning_and_rain:E3e,cloud_with_lightning:T3e,zap:A3e,fire:z3e,boom:F3e,snowflake:$3e,cloud_with_snow:M3e,snowman:O3e,snowman_with_snow:N3e,wind_face:L3e,dash:I3e,tornado:B3e,fog:R3e,open_umbrella:P3e,umbrella:j3e,droplet:V3e,sweat_drops:q3e,ocean:H3e,green_apple:U3e,apple:W3e,pear:G3e,tangerine:K3e,lemon:Y3e,banana:Z3e,watermelon:X3e,grapes:J3e,strawberry:Q3e,melon:e4e,cherries:t4e,peach:n4e,pineapple:r4e,coconut:i4e,kiwi_fruit:a4e,mango:o4e,avocado:s4e,broccoli:l4e,tomato:c4e,eggplant:u4e,cucumber:d4e,carrot:f4e,hot_pepper:h4e,potato:p4e,corn:m4e,leafy_greens:g4e,sweet_potato:y4e,peanuts:_4e,honey_pot:b4e,croissant:k4e,bread:w4e,baguette_bread:v4e,bagel:x4e,pretzel:C4e,cheese:S4e,egg:D4e,bacon:E4e,steak:T4e,pancakes:A4e,poultry_leg:z4e,meat_on_bone:F4e,bone:$4e,fried_shrimp:M4e,fried_egg:O4e,hamburger:N4e,fries:L4e,stuffed_flatbread:I4e,hotdog:B4e,pizza:R4e,sandwich:P4e,canned_food:j4e,spaghetti:V4e,taco:q4e,burrito:H4e,green_salad:U4e,shallow_pan_of_food:W4e,ramen:G4e,stew:K4e,fish_cake:Y4e,fortune_cookie:Z4e,sushi:X4e,bento:J4e,curry:Q4e,rice_ball:e6e,rice:t6e,rice_cracker:n6e,oden:r6e,dango:i6e,shaved_ice:a6e,ice_cream:o6e,icecream:s6e,pie:l6e,cake:c6e,cupcake:u6e,moon_cake:d6e,birthday:f6e,custard:h6e,candy:p6e,lollipop:m6e,chocolate_bar:g6e,popcorn:y6e,dumpling:_6e,doughnut:b6e,cookie:k6e,milk_glass:w6e,beer:v6e,beers:x6e,clinking_glasses:C6e,wine_glass:S6e,tumbler_glass:D6e,cocktail:E6e,tropical_drink:T6e,champagne:A6e,sake:z6e,tea:F6e,cup_with_straw:$6e,coffee:M6e,baby_bottle:O6e,salt:N6e,spoon:L6e,fork_and_knife:I6e,plate_with_cutlery:B6e,bowl_with_spoon:R6e,takeout_box:P6e,chopsticks:j6e,soccer:V6e,basketball:q6e,football:H6e,baseball:U6e,softball:W6e,tennis:G6e,volleyball:K6e,rugby_football:Y6e,flying_disc:Z6e,"8ball":{keywords:["pool","hobby","game","luck","magic"],char:"🎱",fitzpatrick_scale:!1,category:"activity"},golf:X6e,golfing_woman:J6e,golfing_man:Q6e,ping_pong:e5e,badminton:t5e,goal_net:n5e,ice_hockey:r5e,field_hockey:i5e,lacrosse:a5e,cricket:o5e,ski:s5e,skier:l5e,snowboarder:c5e,person_fencing:u5e,women_wrestling:d5e,men_wrestling:f5e,woman_cartwheeling:h5e,man_cartwheeling:p5e,woman_playing_handball:m5e,man_playing_handball:g5e,ice_skate:y5e,curling_stone:_5e,skateboard:b5e,sled:k5e,bow_and_arrow:w5e,fishing_pole_and_fish:v5e,boxing_glove:x5e,martial_arts_uniform:C5e,rowing_woman:S5e,rowing_man:D5e,climbing_woman:E5e,climbing_man:T5e,swimming_woman:A5e,swimming_man:z5e,woman_playing_water_polo:F5e,man_playing_water_polo:$5e,woman_in_lotus_position:M5e,man_in_lotus_position:O5e,surfing_woman:N5e,surfing_man:L5e,bath:I5e,basketball_woman:B5e,basketball_man:R5e,weight_lifting_woman:P5e,weight_lifting_man:j5e,biking_woman:V5e,biking_man:q5e,mountain_biking_woman:H5e,mountain_biking_man:U5e,horse_racing:W5e,business_suit_levitating:G5e,trophy:K5e,running_shirt_with_sash:Y5e,medal_sports:Z5e,medal_military:X5e,"1st_place_medal":{keywords:["award","winning","first"],char:"🥇",fitzpatrick_scale:!1,category:"activity"},"2nd_place_medal":{keywords:["award","second"],char:"🥈",fitzpatrick_scale:!1,category:"activity"},"3rd_place_medal":{keywords:["award","third"],char:"🥉",fitzpatrick_scale:!1,category:"activity"},reminder_ribbon:J5e,rosette:Q5e,ticket:exe,tickets:txe,performing_arts:nxe,art:rxe,circus_tent:ixe,woman_juggling:axe,man_juggling:oxe,microphone:sxe,headphones:lxe,musical_score:cxe,musical_keyboard:uxe,drum:dxe,saxophone:fxe,trumpet:hxe,guitar:pxe,violin:mxe,clapper:gxe,video_game:yxe,space_invader:_xe,dart:bxe,game_die:kxe,chess_pawn:wxe,slot_machine:vxe,jigsaw:xxe,bowling:Cxe,red_car:Sxe,taxi:Dxe,blue_car:Exe,bus:Txe,trolleybus:Axe,racing_car:zxe,police_car:Fxe,ambulance:$xe,fire_engine:Mxe,minibus:Oxe,truck:Nxe,articulated_lorry:Lxe,tractor:Ixe,kick_scooter:Bxe,motorcycle:Rxe,bike:Pxe,motor_scooter:jxe,rotating_light:Vxe,oncoming_police_car:qxe,oncoming_bus:Hxe,oncoming_automobile:Uxe,oncoming_taxi:Wxe,aerial_tramway:Gxe,mountain_cableway:Kxe,suspension_railway:Yxe,railway_car:Zxe,train:Xxe,monorail:Jxe,bullettrain_side:Qxe,bullettrain_front:e8e,light_rail:t8e,mountain_railway:n8e,steam_locomotive:r8e,train2:i8e,metro:a8e,tram:o8e,station:s8e,flying_saucer:l8e,helicopter:c8e,small_airplane:u8e,airplane:d8e,flight_departure:f8e,flight_arrival:h8e,sailboat:p8e,motor_boat:m8e,speedboat:g8e,ferry:y8e,passenger_ship:_8e,rocket:b8e,artificial_satellite:k8e,seat:w8e,canoe:v8e,anchor:x8e,construction:C8e,fuelpump:S8e,busstop:D8e,vertical_traffic_light:E8e,traffic_light:T8e,checkered_flag:A8e,ship:z8e,ferris_wheel:F8e,roller_coaster:$8e,carousel_horse:M8e,building_construction:O8e,foggy:N8e,tokyo_tower:L8e,factory:I8e,fountain:B8e,rice_scene:R8e,mountain:P8e,mountain_snow:j8e,mount_fuji:V8e,volcano:q8e,japan:H8e,camping:U8e,tent:W8e,national_park:G8e,motorway:K8e,railway_track:Y8e,sunrise:Z8e,sunrise_over_mountains:X8e,desert:J8e,beach_umbrella:Q8e,desert_island:e7e,city_sunrise:t7e,city_sunset:n7e,cityscape:r7e,night_with_stars:i7e,bridge_at_night:a7e,milky_way:o7e,stars:s7e,sparkler:l7e,fireworks:c7e,rainbow:u7e,houses:d7e,european_castle:f7e,japanese_castle:h7e,stadium:p7e,statue_of_liberty:m7e,house:g7e,house_with_garden:y7e,derelict_house:_7e,office:b7e,department_store:k7e,post_office:w7e,european_post_office:v7e,hospital:x7e,bank:C7e,hotel:S7e,convenience_store:D7e,school:E7e,love_hotel:T7e,wedding:A7e,classical_building:z7e,church:F7e,mosque:$7e,synagogue:M7e,kaaba:O7e,shinto_shrine:N7e,watch:L7e,iphone:I7e,calling:B7e,computer:R7e,keyboard:P7e,desktop_computer:j7e,printer:V7e,computer_mouse:q7e,trackball:H7e,joystick:U7e,clamp:W7e,minidisc:G7e,floppy_disk:K7e,cd:Y7e,dvd:Z7e,vhs:X7e,camera:J7e,camera_flash:Q7e,video_camera:eCe,movie_camera:tCe,film_projector:nCe,film_strip:rCe,telephone_receiver:iCe,phone:aCe,pager:oCe,fax:sCe,tv:lCe,radio:cCe,studio_microphone:uCe,level_slider:dCe,control_knobs:fCe,compass:hCe,stopwatch:pCe,timer_clock:mCe,alarm_clock:gCe,mantelpiece_clock:yCe,hourglass_flowing_sand:_Ce,hourglass:bCe,satellite:kCe,battery:wCe,electric_plug:vCe,bulb:xCe,flashlight:CCe,candle:SCe,fire_extinguisher:DCe,wastebasket:ECe,oil_drum:TCe,money_with_wings:ACe,dollar:zCe,yen:FCe,euro:$Ce,pound:MCe,moneybag:OCe,credit_card:NCe,gem:LCe,balance_scale:ICe,toolbox:BCe,wrench:RCe,hammer:PCe,hammer_and_pick:jCe,hammer_and_wrench:VCe,pick:qCe,nut_and_bolt:HCe,gear:UCe,brick:WCe,chains:GCe,magnet:KCe,gun:YCe,bomb:ZCe,firecracker:XCe,hocho:JCe,dagger:QCe,crossed_swords:eSe,shield:tSe,smoking:nSe,skull_and_crossbones:rSe,coffin:iSe,funeral_urn:aSe,amphora:oSe,crystal_ball:sSe,prayer_beads:lSe,nazar_amulet:cSe,barber:uSe,alembic:dSe,telescope:fSe,microscope:hSe,hole:pSe,pill:mSe,syringe:gSe,dna:ySe,microbe:_Se,petri_dish:bSe,test_tube:kSe,thermometer:wSe,broom:vSe,basket:xSe,toilet_paper:CSe,label:SSe,bookmark:DSe,toilet:ESe,shower:TSe,bathtub:ASe,soap:zSe,sponge:FSe,lotion_bottle:$Se,key:MSe,old_key:OSe,couch_and_lamp:NSe,sleeping_bed:LSe,bed:ISe,door:BSe,bellhop_bell:RSe,teddy_bear:PSe,framed_picture:jSe,world_map:VSe,parasol_on_ground:qSe,moyai:HSe,shopping:USe,shopping_cart:WSe,balloon:GSe,flags:KSe,ribbon:YSe,gift:ZSe,confetti_ball:XSe,tada:JSe,dolls:QSe,wind_chime:e9e,crossed_flags:t9e,izakaya_lantern:n9e,red_envelope:r9e,email:i9e,envelope_with_arrow:a9e,incoming_envelope:o9e,"e-mail":{keywords:["communication","inbox"],char:"📧",fitzpatrick_scale:!1,category:"objects"},love_letter:s9e,postbox:l9e,mailbox_closed:c9e,mailbox:u9e,mailbox_with_mail:d9e,mailbox_with_no_mail:f9e,package:{keywords:["mail","gift","cardboard","box","moving"],char:"📦",fitzpatrick_scale:!1,category:"objects"},postal_horn:h9e,inbox_tray:p9e,outbox_tray:m9e,scroll:g9e,page_with_curl:y9e,bookmark_tabs:_9e,receipt:b9e,bar_chart:k9e,chart_with_upwards_trend:w9e,chart_with_downwards_trend:v9e,page_facing_up:x9e,date:C9e,calendar:S9e,spiral_calendar:D9e,card_index:E9e,card_file_box:T9e,ballot_box:A9e,file_cabinet:z9e,clipboard:F9e,spiral_notepad:$9e,file_folder:M9e,open_file_folder:O9e,card_index_dividers:N9e,newspaper_roll:L9e,newspaper:I9e,notebook:B9e,closed_book:R9e,green_book:P9e,blue_book:j9e,orange_book:V9e,notebook_with_decorative_cover:q9e,ledger:H9e,books:U9e,open_book:W9e,safety_pin:G9e,link:K9e,paperclip:Y9e,paperclips:Z9e,scissors:X9e,triangular_ruler:J9e,straight_ruler:Q9e,abacus:eDe,pushpin:tDe,round_pushpin:nDe,triangular_flag_on_post:rDe,white_flag:iDe,black_flag:aDe,rainbow_flag:oDe,closed_lock_with_key:sDe,lock:lDe,unlock:cDe,lock_with_ink_pen:uDe,pen:dDe,fountain_pen:fDe,black_nib:hDe,memo:pDe,pencil2:mDe,crayon:gDe,paintbrush:yDe,mag:_De,mag_right:bDe,heart:kDe,orange_heart:wDe,yellow_heart:vDe,green_heart:xDe,blue_heart:CDe,purple_heart:SDe,black_heart:DDe,broken_heart:EDe,heavy_heart_exclamation:TDe,two_hearts:ADe,revolving_hearts:zDe,heartbeat:FDe,heartpulse:$De,sparkling_heart:MDe,cupid:ODe,gift_heart:NDe,heart_decoration:LDe,peace_symbol:IDe,latin_cross:BDe,star_and_crescent:RDe,om:PDe,wheel_of_dharma:jDe,star_of_david:VDe,six_pointed_star:qDe,menorah:HDe,yin_yang:UDe,orthodox_cross:WDe,place_of_worship:GDe,ophiuchus:KDe,aries:YDe,taurus:ZDe,gemini:XDe,cancer:JDe,leo:QDe,virgo:eEe,libra:tEe,scorpius:nEe,sagittarius:rEe,capricorn:iEe,aquarius:aEe,pisces:oEe,id:sEe,atom_symbol:lEe,u7a7a:cEe,u5272:uEe,radioactive:dEe,biohazard:fEe,mobile_phone_off:hEe,vibration_mode:pEe,u6709:mEe,u7121:gEe,u7533:yEe,u55b6:_Ee,u6708:bEe,eight_pointed_black_star:kEe,vs:wEe,accept:vEe,white_flower:xEe,ideograph_advantage:CEe,secret:SEe,congratulations:DEe,u5408:EEe,u6e80:TEe,u7981:AEe,a:zEe,b:FEe,ab:$Ee,cl:MEe,o2:OEe,sos:NEe,no_entry:LEe,name_badge:IEe,no_entry_sign:BEe,x:REe,o:PEe,stop_sign:jEe,anger:VEe,hotsprings:qEe,no_pedestrians:HEe,do_not_litter:UEe,no_bicycles:WEe,"non-potable_water":{keywords:["drink","faucet","tap","circle"],char:"🚱",fitzpatrick_scale:!1,category:"symbols"},underage:GEe,no_mobile_phones:KEe,exclamation:YEe,grey_exclamation:ZEe,question:XEe,grey_question:JEe,bangbang:QEe,interrobang:eTe,low_brightness:tTe,high_brightness:nTe,trident:rTe,fleur_de_lis:iTe,part_alternation_mark:aTe,warning:oTe,children_crossing:sTe,beginner:lTe,recycle:cTe,u6307:uTe,chart:dTe,sparkle:fTe,eight_spoked_asterisk:hTe,negative_squared_cross_mark:pTe,white_check_mark:mTe,diamond_shape_with_a_dot_inside:gTe,cyclone:yTe,loop:_Te,globe_with_meridians:bTe,m:kTe,atm:wTe,sa:vTe,passport_control:xTe,customs:CTe,baggage_claim:STe,left_luggage:DTe,wheelchair:ETe,no_smoking:TTe,wc:ATe,parking:zTe,potable_water:FTe,mens:$Te,womens:MTe,baby_symbol:OTe,restroom:NTe,put_litter_in_its_place:LTe,cinema:ITe,signal_strength:BTe,koko:RTe,ng:PTe,ok:jTe,up:VTe,cool:qTe,new:{keywords:["blue-square","words","start"],char:"🆕",fitzpatrick_scale:!1,category:"symbols"},free:HTe,zero:UTe,one:WTe,two:GTe,three:KTe,four:YTe,five:ZTe,six:XTe,seven:JTe,eight:QTe,nine:eAe,keycap_ten:tAe,asterisk:nAe,eject_button:rAe,arrow_forward:iAe,pause_button:aAe,next_track_button:oAe,stop_button:sAe,record_button:lAe,play_or_pause_button:cAe,previous_track_button:uAe,fast_forward:dAe,rewind:fAe,twisted_rightwards_arrows:hAe,repeat:pAe,repeat_one:mAe,arrow_backward:gAe,arrow_up_small:yAe,arrow_down_small:_Ae,arrow_double_up:bAe,arrow_double_down:kAe,arrow_right:wAe,arrow_left:vAe,arrow_up:xAe,arrow_down:CAe,arrow_upper_right:SAe,arrow_lower_right:DAe,arrow_lower_left:EAe,arrow_upper_left:TAe,arrow_up_down:AAe,left_right_arrow:zAe,arrows_counterclockwise:FAe,arrow_right_hook:$Ae,leftwards_arrow_with_hook:MAe,arrow_heading_up:OAe,arrow_heading_down:NAe,hash:LAe,information_source:IAe,abc:BAe,abcd:RAe,capital_abcd:PAe,symbols:jAe,musical_note:VAe,notes:qAe,wavy_dash:HAe,curly_loop:UAe,heavy_check_mark:WAe,arrows_clockwise:GAe,heavy_plus_sign:KAe,heavy_minus_sign:YAe,heavy_division_sign:ZAe,heavy_multiplication_x:XAe,infinity:JAe,heavy_dollar_sign:QAe,currency_exchange:eze,copyright:tze,registered:nze,tm:rze,end:ize,back:aze,on:oze,top:sze,soon:lze,ballot_box_with_check:cze,radio_button:uze,white_circle:dze,black_circle:fze,red_circle:hze,large_blue_circle:pze,small_orange_diamond:mze,small_blue_diamond:gze,large_orange_diamond:yze,large_blue_diamond:_ze,small_red_triangle:bze,black_small_square:kze,white_small_square:wze,black_large_square:vze,white_large_square:xze,small_red_triangle_down:Cze,black_medium_square:Sze,white_medium_square:Dze,black_medium_small_square:Eze,white_medium_small_square:Tze,black_square_button:Aze,white_square_button:zze,speaker:Fze,sound:$ze,loud_sound:Mze,mute:Oze,mega:Nze,loudspeaker:Lze,bell:Ize,no_bell:Bze,black_joker:Rze,mahjong:Pze,spades:jze,clubs:Vze,hearts:qze,diamonds:Hze,flower_playing_cards:Uze,thought_balloon:Wze,right_anger_bubble:Gze,speech_balloon:Kze,left_speech_bubble:Yze,clock1:Zze,clock2:Xze,clock3:Jze,clock4:Qze,clock5:eFe,clock6:tFe,clock7:nFe,clock8:rFe,clock9:iFe,clock10:aFe,clock11:oFe,clock12:sFe,clock130:lFe,clock230:cFe,clock330:uFe,clock430:dFe,clock530:fFe,clock630:hFe,clock730:pFe,clock830:mFe,clock930:gFe,clock1030:yFe,clock1130:_Fe,clock1230:bFe,afghanistan:kFe,aland_islands:wFe,albania:vFe,algeria:xFe,american_samoa:CFe,andorra:SFe,angola:DFe,anguilla:EFe,antarctica:TFe,antigua_barbuda:AFe,argentina:zFe,armenia:FFe,aruba:$Fe,australia:MFe,austria:OFe,azerbaijan:NFe,bahamas:LFe,bahrain:IFe,bangladesh:BFe,barbados:RFe,belarus:PFe,belgium:jFe,belize:VFe,benin:qFe,bermuda:HFe,bhutan:UFe,bolivia:WFe,caribbean_netherlands:GFe,bosnia_herzegovina:KFe,botswana:YFe,brazil:ZFe,british_indian_ocean_territory:XFe,british_virgin_islands:JFe,brunei:QFe,bulgaria:e$e,burkina_faso:t$e,burundi:n$e,cape_verde:r$e,cambodia:i$e,cameroon:a$e,canada:o$e,canary_islands:s$e,cayman_islands:l$e,central_african_republic:c$e,chad:u$e,chile:d$e,cn:f$e,christmas_island:h$e,cocos_islands:p$e,colombia:m$e,comoros:g$e,congo_brazzaville:y$e,congo_kinshasa:_$e,cook_islands:b$e,costa_rica:k$e,croatia:w$e,cuba:v$e,curacao:x$e,cyprus:C$e,czech_republic:S$e,denmark:D$e,djibouti:E$e,dominica:T$e,dominican_republic:A$e,ecuador:z$e,egypt:F$e,el_salvador:$$e,equatorial_guinea:M$e,eritrea:O$e,estonia:N$e,ethiopia:L$e,eu:I$e,falkland_islands:B$e,faroe_islands:R$e,fiji:P$e,finland:j$e,fr:V$e,french_guiana:q$e,french_polynesia:H$e,french_southern_territories:U$e,gabon:W$e,gambia:G$e,georgia:K$e,de:Y$e,ghana:Z$e,gibraltar:X$e,greece:J$e,greenland:Q$e,grenada:eMe,guadeloupe:tMe,guam:nMe,guatemala:rMe,guernsey:iMe,guinea:aMe,guinea_bissau:oMe,guyana:sMe,haiti:lMe,honduras:cMe,hong_kong:uMe,hungary:dMe,iceland:fMe,india:hMe,indonesia:pMe,iran:mMe,iraq:gMe,ireland:yMe,isle_of_man:_Me,israel:bMe,it:kMe,cote_divoire:wMe,jamaica:vMe,jp:xMe,jersey:CMe,jordan:SMe,kazakhstan:DMe,kenya:EMe,kiribati:TMe,kosovo:AMe,kuwait:zMe,kyrgyzstan:FMe,laos:$Me,latvia:MMe,lebanon:OMe,lesotho:NMe,liberia:LMe,libya:IMe,liechtenstein:BMe,lithuania:RMe,luxembourg:PMe,macau:jMe,macedonia:VMe,madagascar:qMe,malawi:HMe,malaysia:UMe,maldives:WMe,mali:GMe,malta:KMe,marshall_islands:YMe,martinique:ZMe,mauritania:XMe,mauritius:JMe,mayotte:QMe,mexico:eOe,micronesia:tOe,moldova:nOe,monaco:rOe,mongolia:iOe,montenegro:aOe,montserrat:oOe,morocco:sOe,mozambique:lOe,myanmar:cOe,namibia:uOe,nauru:dOe,nepal:fOe,netherlands:hOe,new_caledonia:pOe,new_zealand:mOe,nicaragua:gOe,niger:yOe,nigeria:_Oe,niue:bOe,norfolk_island:kOe,northern_mariana_islands:wOe,north_korea:vOe,norway:xOe,oman:COe,pakistan:SOe,palau:DOe,palestinian_territories:EOe,panama:TOe,papua_new_guinea:AOe,paraguay:zOe,peru:FOe,philippines:$Oe,pitcairn_islands:MOe,poland:OOe,portugal:NOe,puerto_rico:LOe,qatar:IOe,reunion:BOe,romania:ROe,ru:POe,rwanda:jOe,st_barthelemy:VOe,st_helena:qOe,st_kitts_nevis:HOe,st_lucia:UOe,st_pierre_miquelon:WOe,st_vincent_grenadines:GOe,samoa:KOe,san_marino:YOe,sao_tome_principe:ZOe,saudi_arabia:XOe,senegal:JOe,serbia:QOe,seychelles:eNe,sierra_leone:tNe,singapore:nNe,sint_maarten:rNe,slovakia:iNe,slovenia:aNe,solomon_islands:oNe,somalia:sNe,south_africa:lNe,south_georgia_south_sandwich_islands:cNe,kr:uNe,south_sudan:dNe,es:fNe,sri_lanka:hNe,sudan:pNe,suriname:mNe,swaziland:gNe,sweden:yNe,switzerland:_Ne,syria:bNe,taiwan:kNe,tajikistan:wNe,tanzania:vNe,thailand:xNe,timor_leste:CNe,togo:SNe,tokelau:DNe,tonga:ENe,trinidad_tobago:TNe,tunisia:ANe,tr:zNe,turkmenistan:FNe,turks_caicos_islands:$Ne,tuvalu:MNe,uganda:ONe,ukraine:NNe,united_arab_emirates:LNe,uk:INe,england:BNe,scotland:RNe,wales:PNe,us:jNe,us_virgin_islands:VNe,uruguay:qNe,uzbekistan:HNe,vanuatu:UNe,vatican_city:WNe,venezuela:GNe,vietnam:KNe,wallis_futuna:YNe,western_sahara:ZNe,yemen:XNe,zambia:JNe,zimbabwe:QNe,united_nations:eLe,pirate_flag:tLe},rLe=["grinning","smiley","smile","grin","laughing","sweat_smile","joy","rofl","relaxed","blush","innocent","slightly_smiling_face","upside_down_face","wink","relieved","heart_eyes","smiling_face_with_three_hearts","kissing_heart","kissing","kissing_smiling_eyes","kissing_closed_eyes","yum","stuck_out_tongue","stuck_out_tongue_closed_eyes","stuck_out_tongue_winking_eye","zany","raised_eyebrow","monocle","nerd_face","sunglasses","star_struck","partying","smirk","unamused","disappointed","pensive","worried","confused","slightly_frowning_face","frowning_face","persevere","confounded","tired_face","weary","pleading","cry","sob","triumph","angry","rage","symbols_over_mouth","exploding_head","flushed","hot","cold","scream","fearful","cold_sweat","disappointed_relieved","sweat","hugs","thinking","hand_over_mouth","shushing","lying_face","no_mouth","neutral_face","expressionless","grimacing","roll_eyes","hushed","frowning","anguished","open_mouth","astonished","sleeping","drooling_face","sleepy","dizzy_face","zipper_mouth_face","woozy","nauseated_face","vomiting","sneezing_face","mask","face_with_thermometer","face_with_head_bandage","money_mouth_face","cowboy_hat_face","smiling_imp","imp","japanese_ogre","japanese_goblin","clown_face","poop","ghost","skull","skull_and_crossbones","alien","space_invader","robot","jack_o_lantern","smiley_cat","smile_cat","joy_cat","heart_eyes_cat","smirk_cat","kissing_cat","scream_cat","crying_cat_face","pouting_cat","palms_up","open_hands","raised_hands","clap","handshake","+1","-1","facepunch","fist","fist_left","fist_right","crossed_fingers","v","love_you","metal","ok_hand","point_left","point_right","point_up","point_down","point_up_2","raised_hand","raised_back_of_hand","raised_hand_with_fingers_splayed","vulcan_salute","wave","call_me_hand","muscle","fu","writing_hand","pray","foot","leg","ring","lipstick","kiss","lips","tooth","tongue","ear","nose","footprints","eye","eyes","brain","speaking_head","bust_in_silhouette","busts_in_silhouette","baby","girl","child","boy","woman","adult","man","blonde_woman","blonde_man","bearded_person","older_woman","older_adult","older_man","man_with_gua_pi_mao","woman_with_headscarf","woman_with_turban","man_with_turban","policewoman","policeman","construction_worker_woman","construction_worker_man","guardswoman","guardsman","female_detective","male_detective","woman_health_worker","man_health_worker","woman_farmer","man_farmer","woman_cook","man_cook","woman_student","man_student","woman_singer","man_singer","woman_teacher","man_teacher","woman_factory_worker","man_factory_worker","woman_technologist","man_technologist","woman_office_worker","man_office_worker","woman_mechanic","man_mechanic","woman_scientist","man_scientist","woman_artist","man_artist","woman_firefighter","man_firefighter","woman_pilot","man_pilot","woman_astronaut","man_astronaut","woman_judge","man_judge","bride_with_veil","man_in_tuxedo","princess","prince","woman_superhero","man_superhero","woman_supervillain","man_supervillain","mrs_claus","santa","sorceress","wizard","woman_elf","man_elf","woman_vampire","man_vampire","woman_zombie","man_zombie","woman_genie","man_genie","mermaid","merman","woman_fairy","man_fairy","angel","pregnant_woman","breastfeeding","bowing_woman","bowing_man","tipping_hand_woman","tipping_hand_man","no_good_woman","no_good_man","ok_woman","ok_man","raising_hand_woman","raising_hand_man","woman_facepalming","man_facepalming","woman_shrugging","man_shrugging","pouting_woman","pouting_man","frowning_woman","frowning_man","haircut_woman","haircut_man","massage_woman","massage_man","woman_in_steamy_room","man_in_steamy_room","nail_care","selfie","dancer","man_dancing","dancing_women","dancing_men","business_suit_levitating","walking_woman","walking_man","running_woman","running_man","couple","two_women_holding_hands","two_men_holding_hands","couple_with_heart_woman_man","couple_with_heart_woman_woman","couple_with_heart_man_man","couplekiss_man_woman","couplekiss_woman_woman","couplekiss_man_man","family_man_woman_boy","family_man_woman_girl","family_man_woman_girl_boy","family_man_woman_boy_boy","family_man_woman_girl_girl","family_woman_woman_boy","family_woman_woman_girl","family_woman_woman_girl_boy","family_woman_woman_boy_boy","family_woman_woman_girl_girl","family_man_man_boy","family_man_man_girl","family_man_man_girl_boy","family_man_man_boy_boy","family_man_man_girl_girl","family_woman_boy","family_woman_girl","family_woman_girl_boy","family_woman_boy_boy","family_woman_girl_girl","family_man_boy","family_man_girl","family_man_girl_boy","family_man_boy_boy","family_man_girl_girl","yarn","thread","coat","labcoat","womans_clothes","tshirt","jeans","necktie","dress","bikini","kimono","flat_shoe","high_heel","sandal","boot","mans_shoe","athletic_shoe","hiking_boot","socks","gloves","scarf","tophat","billed_hat","womans_hat","mortar_board","rescue_worker_helmet","crown","pouch","purse","handbag","briefcase","school_satchel","luggage","eyeglasses","dark_sunglasses","goggles","closed_umbrella","dog","cat","mouse","hamster","rabbit","fox_face","bear","panda_face","koala","tiger","lion","cow","pig","pig_nose","frog","monkey_face","see_no_evil","hear_no_evil","speak_no_evil","monkey","chicken","penguin","bird","baby_chick","hatching_chick","hatched_chick","duck","eagle","owl","bat","wolf","boar","horse","unicorn","honeybee","bug","butterfly","snail","shell","beetle","ant","mosquito","grasshopper","spider","spider_web","scorpion","turtle","snake","lizard","t-rex","sauropod","octopus","squid","shrimp","lobster","crab","blowfish","tropical_fish","fish","dolphin","whale","whale2","shark","crocodile","tiger2","leopard","zebra","gorilla","elephant","hippopotamus","rhinoceros","dromedary_camel","giraffe","kangaroo","camel","water_buffalo","ox","cow2","racehorse","pig2","ram","sheep","llama","goat","deer","dog2","poodle","cat2","rooster","turkey","peacock","parrot","swan","dove","rabbit2","raccoon","badger","rat","mouse2","chipmunk","hedgehog","paw_prints","dragon","dragon_face","cactus","christmas_tree","evergreen_tree","deciduous_tree","palm_tree","seedling","herb","shamrock","four_leaf_clover","bamboo","tanabata_tree","leaves","fallen_leaf","maple_leaf","ear_of_rice","hibiscus","sunflower","rose","wilted_flower","tulip","blossom","cherry_blossom","bouquet","mushroom","earth_americas","earth_africa","earth_asia","full_moon","waning_gibbous_moon","last_quarter_moon","waning_crescent_moon","new_moon","waxing_crescent_moon","first_quarter_moon","waxing_gibbous_moon","new_moon_with_face","full_moon_with_face","first_quarter_moon_with_face","last_quarter_moon_with_face","sun_with_face","crescent_moon","star","star2","dizzy","sparkles","comet","sunny","sun_behind_small_cloud","partly_sunny","sun_behind_large_cloud","sun_behind_rain_cloud","cloud","cloud_with_rain","cloud_with_lightning_and_rain","cloud_with_lightning","zap","fire","boom","snowflake","cloud_with_snow","snowman","snowman_with_snow","wind_face","dash","tornado","fog","open_umbrella","umbrella","droplet","sweat_drops","ocean","green_apple","apple","pear","tangerine","lemon","banana","watermelon","grapes","strawberry","melon","cherries","peach","mango","pineapple","coconut","kiwi_fruit","tomato","eggplant","avocado","broccoli","leafy_greens","cucumber","hot_pepper","corn","carrot","potato","sweet_potato","croissant","bagel","bread","baguette_bread","pretzel","cheese","egg","fried_egg","pancakes","bacon","steak","poultry_leg","meat_on_bone","bone","hotdog","hamburger","fries","pizza","sandwich","stuffed_flatbread","taco","burrito","green_salad","shallow_pan_of_food","canned_food","spaghetti","ramen","stew","curry","sushi","bento","fried_shrimp","rice_ball","rice","rice_cracker","fish_cake","fortune_cookie","moon_cake","oden","dango","shaved_ice","ice_cream","icecream","pie","cupcake","cake","birthday","custard","lollipop","candy","chocolate_bar","popcorn","doughnut","dumpling","cookie","chestnut","peanuts","honey_pot","milk_glass","baby_bottle","coffee","tea","cup_with_straw","sake","beer","beers","clinking_glasses","wine_glass","tumbler_glass","cocktail","tropical_drink","champagne","spoon","fork_and_knife","plate_with_cutlery","bowl_with_spoon","takeout_box","chopsticks","salt","soccer","basketball","football","baseball","softball","tennis","volleyball","rugby_football","flying_disc","8ball","golf","golfing_woman","golfing_man","ping_pong","badminton","goal_net","ice_hockey","field_hockey","lacrosse","cricket","ski","skier","snowboarder","person_fencing","women_wrestling","men_wrestling","woman_cartwheeling","man_cartwheeling","woman_playing_handball","man_playing_handball","ice_skate","curling_stone","skateboard","sled","bow_and_arrow","fishing_pole_and_fish","boxing_glove","martial_arts_uniform","rowing_woman","rowing_man","climbing_woman","climbing_man","swimming_woman","swimming_man","woman_playing_water_polo","man_playing_water_polo","woman_in_lotus_position","man_in_lotus_position","surfing_woman","surfing_man","basketball_woman","basketball_man","weight_lifting_woman","weight_lifting_man","biking_woman","biking_man","mountain_biking_woman","mountain_biking_man","horse_racing","trophy","running_shirt_with_sash","medal_sports","medal_military","1st_place_medal","2nd_place_medal","3rd_place_medal","reminder_ribbon","rosette","ticket","tickets","performing_arts","art","circus_tent","woman_juggling","man_juggling","microphone","headphones","musical_score","musical_keyboard","drum","saxophone","trumpet","guitar","violin","clapper","video_game","dart","game_die","chess_pawn","slot_machine","jigsaw","bowling","red_car","taxi","blue_car","bus","trolleybus","racing_car","police_car","ambulance","fire_engine","minibus","truck","articulated_lorry","tractor","kick_scooter","motorcycle","bike","motor_scooter","rotating_light","oncoming_police_car","oncoming_bus","oncoming_automobile","oncoming_taxi","aerial_tramway","mountain_cableway","suspension_railway","railway_car","train","monorail","bullettrain_side","bullettrain_front","light_rail","mountain_railway","steam_locomotive","train2","metro","tram","station","flying_saucer","helicopter","small_airplane","airplane","flight_departure","flight_arrival","sailboat","motor_boat","speedboat","ferry","passenger_ship","rocket","artificial_satellite","seat","canoe","anchor","construction","fuelpump","busstop","vertical_traffic_light","traffic_light","ship","ferris_wheel","roller_coaster","carousel_horse","building_construction","foggy","tokyo_tower","factory","fountain","rice_scene","mountain","mountain_snow","mount_fuji","volcano","japan","camping","tent","national_park","motorway","railway_track","sunrise","sunrise_over_mountains","desert","beach_umbrella","desert_island","city_sunrise","city_sunset","cityscape","night_with_stars","bridge_at_night","milky_way","stars","sparkler","fireworks","rainbow","houses","european_castle","japanese_castle","stadium","statue_of_liberty","house","house_with_garden","derelict_house","office","department_store","post_office","european_post_office","hospital","bank","hotel","convenience_store","school","love_hotel","wedding","classical_building","church","mosque","synagogue","kaaba","shinto_shrine","watch","iphone","calling","computer","keyboard","desktop_computer","printer","computer_mouse","trackball","joystick","clamp","minidisc","floppy_disk","cd","dvd","vhs","camera","camera_flash","video_camera","movie_camera","film_projector","film_strip","telephone_receiver","phone","pager","fax","tv","radio","studio_microphone","level_slider","control_knobs","compass","stopwatch","timer_clock","alarm_clock","mantelpiece_clock","hourglass_flowing_sand","hourglass","satellite","battery","electric_plug","bulb","flashlight","candle","fire_extinguisher","wastebasket","oil_drum","money_with_wings","dollar","yen","euro","pound","moneybag","credit_card","gem","balance_scale","toolbox","wrench","hammer","hammer_and_pick","hammer_and_wrench","pick","nut_and_bolt","gear","brick","chains","magnet","gun","bomb","firecracker","hocho","dagger","crossed_swords","shield","smoking","coffin","funeral_urn","amphora","crystal_ball","prayer_beads","nazar_amulet","barber","alembic","telescope","microscope","hole","pill","syringe","dna","microbe","petri_dish","test_tube","thermometer","broom","basket","toilet_paper","label","bookmark","toilet","shower","bathtub","bath","soap","sponge","lotion_bottle","key","old_key","couch_and_lamp","sleeping_bed","bed","door","bellhop_bell","teddy_bear","framed_picture","world_map","parasol_on_ground","moyai","shopping","shopping_cart","balloon","flags","ribbon","gift","confetti_ball","tada","dolls","wind_chime","crossed_flags","izakaya_lantern","red_envelope","email","envelope_with_arrow","incoming_envelope","e-mail","love_letter","postbox","mailbox_closed","mailbox","mailbox_with_mail","mailbox_with_no_mail","package","postal_horn","inbox_tray","outbox_tray","scroll","page_with_curl","bookmark_tabs","receipt","bar_chart","chart_with_upwards_trend","chart_with_downwards_trend","page_facing_up","date","calendar","spiral_calendar","card_index","card_file_box","ballot_box","file_cabinet","clipboard","spiral_notepad","file_folder","open_file_folder","card_index_dividers","newspaper_roll","newspaper","notebook","closed_book","green_book","blue_book","orange_book","notebook_with_decorative_cover","ledger","books","open_book","safety_pin","link","paperclip","paperclips","scissors","triangular_ruler","straight_ruler","abacus","pushpin","round_pushpin","closed_lock_with_key","lock","unlock","lock_with_ink_pen","pen","fountain_pen","black_nib","memo","pencil2","crayon","paintbrush","mag","mag_right","heart","orange_heart","yellow_heart","green_heart","blue_heart","purple_heart","black_heart","broken_heart","heavy_heart_exclamation","two_hearts","revolving_hearts","heartbeat","heartpulse","sparkling_heart","cupid","gift_heart","heart_decoration","peace_symbol","latin_cross","star_and_crescent","om","wheel_of_dharma","star_of_david","six_pointed_star","menorah","yin_yang","orthodox_cross","place_of_worship","ophiuchus","aries","taurus","gemini","cancer","leo","virgo","libra","scorpius","sagittarius","capricorn","aquarius","pisces","id","atom_symbol","u7a7a","u5272","radioactive","biohazard","mobile_phone_off","vibration_mode","u6709","u7121","u7533","u55b6","u6708","eight_pointed_black_star","vs","accept","white_flower","ideograph_advantage","secret","congratulations","u5408","u6e80","u7981","a","b","ab","cl","o2","sos","no_entry","name_badge","no_entry_sign","x","o","stop_sign","anger","hotsprings","no_pedestrians","do_not_litter","no_bicycles","non-potable_water","underage","no_mobile_phones","exclamation","grey_exclamation","question","grey_question","bangbang","interrobang","100","low_brightness","high_brightness","trident","fleur_de_lis","part_alternation_mark","warning","children_crossing","beginner","recycle","u6307","chart","sparkle","eight_spoked_asterisk","negative_squared_cross_mark","white_check_mark","diamond_shape_with_a_dot_inside","cyclone","loop","globe_with_meridians","m","atm","zzz","sa","passport_control","customs","baggage_claim","left_luggage","wheelchair","no_smoking","wc","parking","potable_water","mens","womens","baby_symbol","restroom","put_litter_in_its_place","cinema","signal_strength","koko","ng","ok","up","cool","new","free","zero","one","two","three","four","five","six","seven","eight","nine","keycap_ten","asterisk","1234","eject_button","arrow_forward","pause_button","next_track_button","stop_button","record_button","play_or_pause_button","previous_track_button","fast_forward","rewind","twisted_rightwards_arrows","repeat","repeat_one","arrow_backward","arrow_up_small","arrow_down_small","arrow_double_up","arrow_double_down","arrow_right","arrow_left","arrow_up","arrow_down","arrow_upper_right","arrow_lower_right","arrow_lower_left","arrow_upper_left","arrow_up_down","left_right_arrow","arrows_counterclockwise","arrow_right_hook","leftwards_arrow_with_hook","arrow_heading_up","arrow_heading_down","hash","information_source","abc","abcd","capital_abcd","symbols","musical_note","notes","wavy_dash","curly_loop","heavy_check_mark","arrows_clockwise","heavy_plus_sign","heavy_minus_sign","heavy_division_sign","heavy_multiplication_x","infinity","heavy_dollar_sign","currency_exchange","copyright","registered","tm","end","back","on","top","soon","ballot_box_with_check","radio_button","white_circle","black_circle","red_circle","large_blue_circle","small_orange_diamond","small_blue_diamond","large_orange_diamond","large_blue_diamond","small_red_triangle","black_small_square","white_small_square","black_large_square","white_large_square","small_red_triangle_down","black_medium_square","white_medium_square","black_medium_small_square","white_medium_small_square","black_square_button","white_square_button","speaker","sound","loud_sound","mute","mega","loudspeaker","bell","no_bell","black_joker","mahjong","spades","clubs","hearts","diamonds","flower_playing_cards","thought_balloon","right_anger_bubble","speech_balloon","left_speech_bubble","clock1","clock2","clock3","clock4","clock5","clock6","clock7","clock8","clock9","clock10","clock11","clock12","clock130","clock230","clock330","clock430","clock530","clock630","clock730","clock830","clock930","clock1030","clock1130","clock1230","white_flag","black_flag","pirate_flag","checkered_flag","triangular_flag_on_post","rainbow_flag","united_nations","afghanistan","aland_islands","albania","algeria","american_samoa","andorra","angola","anguilla","antarctica","antigua_barbuda","argentina","armenia","aruba","australia","austria","azerbaijan","bahamas","bahrain","bangladesh","barbados","belarus","belgium","belize","benin","bermuda","bhutan","bolivia","caribbean_netherlands","bosnia_herzegovina","botswana","brazil","british_indian_ocean_territory","british_virgin_islands","brunei","bulgaria","burkina_faso","burundi","cape_verde","cambodia","cameroon","canada","canary_islands","cayman_islands","central_african_republic","chad","chile","cn","christmas_island","cocos_islands","colombia","comoros","congo_brazzaville","congo_kinshasa","cook_islands","costa_rica","croatia","cuba","curacao","cyprus","czech_republic","denmark","djibouti","dominica","dominican_republic","ecuador","egypt","el_salvador","equatorial_guinea","eritrea","estonia","ethiopia","eu","falkland_islands","faroe_islands","fiji","finland","fr","french_guiana","french_polynesia","french_southern_territories","gabon","gambia","georgia","de","ghana","gibraltar","greece","greenland","grenada","guadeloupe","guam","guatemala","guernsey","guinea","guinea_bissau","guyana","haiti","honduras","hong_kong","hungary","iceland","india","indonesia","iran","iraq","ireland","isle_of_man","israel","it","cote_divoire","jamaica","jp","jersey","jordan","kazakhstan","kenya","kiribati","kosovo","kuwait","kyrgyzstan","laos","latvia","lebanon","lesotho","liberia","libya","liechtenstein","lithuania","luxembourg","macau","macedonia","madagascar","malawi","malaysia","maldives","mali","malta","marshall_islands","martinique","mauritania","mauritius","mayotte","mexico","micronesia","moldova","monaco","mongolia","montenegro","montserrat","morocco","mozambique","myanmar","namibia","nauru","nepal","netherlands","new_caledonia","new_zealand","nicaragua","niger","nigeria","niue","norfolk_island","northern_mariana_islands","north_korea","norway","oman","pakistan","palau","palestinian_territories","panama","papua_new_guinea","paraguay","peru","philippines","pitcairn_islands","poland","portugal","puerto_rico","qatar","reunion","romania","ru","rwanda","st_barthelemy","st_helena","st_kitts_nevis","st_lucia","st_pierre_miquelon","st_vincent_grenadines","samoa","san_marino","sao_tome_principe","saudi_arabia","senegal","serbia","seychelles","sierra_leone","singapore","sint_maarten","slovakia","slovenia","solomon_islands","somalia","south_africa","south_georgia_south_sandwich_islands","kr","south_sudan","es","sri_lanka","sudan","suriname","swaziland","sweden","switzerland","syria","taiwan","tajikistan","tanzania","thailand","timor_leste","togo","tokelau","tonga","trinidad_tobago","tunisia","tr","turkmenistan","turks_caicos_islands","tuvalu","uganda","ukraine","united_arab_emirates","uk","england","scotland","wales","us","us_virgin_islands","uruguay","uzbekistan","vanuatu","vatican_city","venezuela","vietnam","wallis_futuna","western_sahara","yemen","zambia","zimbabwe"];var iLe={lib:nLe,ordered:rLe,fitzpatrick_scale_modifiers:["🏻","🏼","🏽","🏾","🏿"]};const aLe=Qo(iLe);var oLe=()=>{const e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i="\\u1ab0-\\u1aff",a="\\u1dc0-\\u1dff",o=t+n+r+i+a,s="\\ufe0e\\ufe0f",l="\\uD83D\\uDC69\\uD83C\\uDFFB\\u200D\\uD83C\\uDF93",c=`[${e}]`,u=`[${o}]`,f="\\ud83c[\\udffb-\\udfff]",h=`(?:${u}|${f})`,m=`[^${e}]`,g="(?:\\uD83C[\\uDDE6-\\uDDFF]){2}",b="[\\ud800-\\udbff][\\udc00-\\udfff]",C="\\u200d",w="(?:\\ud83c\\udff4\\udb40\\udc67\\udb40\\udc62\\udb40(?:\\udc65|\\udc73|\\udc77)\\udb40(?:\\udc6e|\\udc63|\\udc6c)\\udb40(?:\\udc67|\\udc74|\\udc73)\\udb40\\udc7f)",k=`[${l}]`,S=`${h}?`,E=`[${s}]?`,A=`(?:${C}(?:${[m,g,b].join("|")})${E+S})*`,_=E+S+A,$=`(?:${[`${m}${u}?`,u,g,b,c,k].join("|")})`;return new RegExp(`${w}|${f}(?=${f})|${$+_}`,"g")};const sLe=Qo(oLe);sLe();var lLe=String.fromCharCode(65039),cLe=new RegExp(lLe,"g");function uLe(e){return e.replace(cLe,"")}function dLe(e){return/:.+:/.test(e)?e.slice(1,-1):e}var Mq=Object.entries(aLe.lib).map(([e,{char:t}])=>[e,t]),fLe=new Map(Mq);new Map(Mq.map(([e,t])=>[uLe(t),e]));var hLe=e=>(uge.assert.string(e),fLe.get(dLe(e))),pLe=typeof Bi=="object"&&Bi&&Bi.Object===Object&&Bi,Oq=pLe,mLe=Oq,gLe=typeof self=="object"&&self&&self.Object===Object&&self,yLe=mLe||gLe||Function("return this")(),Tu=yLe,_Le=Tu,bLe=_Le.Symbol,wS=bLe;function kLe(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n-1&&e%1==0&&e<=VIe}var Pq=qIe,HIe=Iq,UIe=Pq;function WIe(e){return e!=null&&UIe(e.length)&&!HIe(e)}var jq=WIe,GIe=Array.isArray,Vq=GIe;function KIe(e){return e!=null&&typeof e=="object"}var Vv=KIe,YIe=Jg,ZIe=Vq,XIe=Vv,JIe="[object String]";function QIe(e){return typeof e=="string"||!ZIe(e)&&XIe(e)&&YIe(e)==JIe}var eBe=QIe;function tBe(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}var nBe=tBe;function rBe(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var iBe=rBe;function aBe(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var oBe=aBe;function sBe(e){return e.split("")}var lBe=sBe,cBe="\\ud800-\\udfff",uBe="\\u0300-\\u036f",dBe="\\ufe20-\\ufe2f",fBe="\\u20d0-\\u20ff",hBe=uBe+dBe+fBe,pBe="\\ufe0e\\ufe0f",mBe="\\u200d",gBe=RegExp("["+mBe+cBe+hBe+pBe+"]");function yBe(e){return gBe.test(e)}var _Be=yBe,qq="\\ud800-\\udfff",bBe="\\u0300-\\u036f",kBe="\\ufe20-\\ufe2f",wBe="\\u20d0-\\u20ff",vBe=bBe+kBe+wBe,xBe="\\ufe0e\\ufe0f",CBe="["+qq+"]",T8="["+vBe+"]",A8="\\ud83c[\\udffb-\\udfff]",SBe="(?:"+T8+"|"+A8+")",Hq="[^"+qq+"]",Uq="(?:\\ud83c[\\udde6-\\uddff]){2}",Wq="[\\ud800-\\udbff][\\udc00-\\udfff]",DBe="\\u200d",Gq=SBe+"?",Kq="["+xBe+"]?",EBe="(?:"+DBe+"(?:"+[Hq,Uq,Wq].join("|")+")"+Kq+Gq+")*",TBe=Kq+Gq+EBe,ABe="(?:"+[Hq+T8+"?",T8,Uq,Wq,CBe].join("|")+")",zBe=RegExp(A8+"(?="+A8+")|"+ABe+TBe,"g");function FBe(e){return e.match(zBe)||[]}var $Be=FBe,MBe=lBe,OBe=_Be,NBe=$Be;function LBe(e){return OBe(e)?NBe(e):MBe(e)}var IBe=LBe;function BBe(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n-1&&e%1==0&&e-1?t===e.length-1?(e=e.substring(0,t),fp(e)):(e=e.substr(t+1),fp(e)):e}function Xq(e){return typeof e=="string"&&e.length>0?":"+e+":":e}function Uht(e){return typeof e=="string"&&e[0]!==":"?Xq(e):e}var Wht=String.fromCharCode(65039),Ght=new RegExp(Wht,"g");function hp(e){return e.replace(Ght,"")}var vS=Object.keys(Pl).reduce(function(e,t){return e[hp(Pl[t])]=t,e},{}),_n={emoji:Pl};_n._get=function(t){return vS[hp(t)]?t:Pl.hasOwnProperty(t)?Pl[t]:Uht(t)};_n.get=function(t){return t=fp(t),_n._get(t)};_n.find=function(t){return _n.findByName(t)||_n.findByCode(t)};_n.findByName=function(t){var n=fp(t),r=Pl[n];return r?{emoji:r,key:n}:void 0};_n.findByCode=function(t){var n=hp(t),r=vS[n];return r?{emoji:Pl[r],key:r}:void 0};_n.hasEmoji=function(t){return _n.hasEmojiByName(t)||_n.hasEmojiByCode(t)};_n.hasEmojiByName=function(t){var n=_n.findByName(t);return!!n&&n.key===fp(t)};_n.hasEmojiByCode=function(t){var n=_n.findByCode(t);return!!n&&hp(n.emoji)===hp(t)};_n.which=function(t,n){var r=hp(t),i=vS[r];return n?Xq(i):i};_n.emojify=function(t,n,r){return t?t.split(qht).map(function(a,o){if(o%2===0)return a;var s=_n._get(a),l=s.indexOf(":")>-1;return l&&typeof n=="function"?n(a):!l&&typeof r=="function"?r(s,a):s}).join(""):""};_n.random=function(){var t=Object.keys(Pl),n=Math.floor(Math.random()*t.length),r=t[n],i=_n._get(r);return{key:r,emoji:i}};_n.search=function(t){var n=Object.keys(Pl),r=fp(t),i=n.filter(function(a){return a.toString().indexOf(r)===0});return i.map(function(a){return{key:a,emoji:_n._get(a)}})};_n.unemojify=function(t){if(!t)return"";var n=Zq(t);return n.map(function(r){return _n.which(r,!0)||r}).join("")};_n.replace=function(t,n,r){if(!t)return"";var i=typeof n=="function"?n:function(){return n},a=Zq(t),o=a.map(function(s,l){var c=_n.findByCode(s);return c&&r&&a[l+1]===" "&&(a[l+1]=""),c?i(c):s}).join("");return r?o.replace(Hht,""):o};_n.strip=function(t){return _n.replace(t,"",!0)};var Kht=_n,Yht=Kht;const g6=Qo(Yht),NM=[{name:"angry",emoji:"😠",tags:["mad","annoyed"],description:"angry face",emoticons:[">:(",">:[",">:-(",">:-[",">=(",">=[",">=-(",">=-["]},{name:"blush",emoji:"😊",tags:["proud"],description:"smiling face with smiling eyes",emoticons:[':")',':"]',':"D',':-")',':-"]',':-"D','=")','="]','="D','=-")','=-"]','=-"D']},{name:"broken_heart",emoji:"💔",tags:[],description:"broken heart",emoticons:["<\\3","0?{type:"text",value:T}:void 0),T!==!1&&(C!==A&&S.push({type:"text",value:f.value.slice(C,A)}),Array.isArray(T)?S.push(...T):T&&S.push(T),C=A+E[0].length,k=!0),!g.global)break;E=g.exec(f.value)}return k?(Ce}const Jht=/:\+1:|:-1:|:[\w-]+:/g,Qht=/[$@|*'",;.=:\-)([\]\\/<>038BOopPsSdDxXzZ]{2,5}/g,BM=/_/g,ept=/(?:_|-(?!1))/g,tpt={padSpaceAfter:!1,emoticon:!1,accessible:!1};function npt(e){const t=Object.assign({},tpt,e),n=!!t.padSpaceAfter,r=!!t.emoticon,i=!!t.accessible;function a(u,f){return{type:"text",meta:null,value:u,data:{hName:"span",hProperties:{role:"img",ariaLabel:f},hChildren:[{type:"text",value:u}]}}}function o(u){const f=NM.find(w=>w.emoticons.includes(u)),h=NM.find(w=>w.emoticons.includes(u.slice(0,-1))),m=f||h;if(!m)return!1;const g=!f&&h?u.slice(-1):"",b=n?" ":"",C=m.emoji+b+g;return i?a(C,m.name+" emoticon"):C}function s(u){let f=g6.get(u);if(u.endsWith("_man:")&&f===u){const h="man-"+u.slice(1,-5).replace(BM,"-"),m=g6.get(h);m!==h&&(f=m)}else if(u.endsWith("_woman:")&&f===u){const h="woman-"+u.slice(1,-7).replace(BM,"-"),m=g6.get(h);m!==h&&(f=m)}if(f===u)return!1;if(n&&(f=f+" "),i){const h=u.slice(1,-1).replace(ept," ")+" emoji";return a(f,h)}return f}const l=[[Jht,s]];r&&l.push([Qht,o]);function c(u){Jq(u,l)}return c}/*! Copyright Twitter Inc. and other contributors. Licensed under MIT */var rpt=function(){var e={base:"https://twemoji.maxcdn.com/v/14.0.2/",ext:".png",size:"72x72",className:"emoji",convert:{fromCodePoint:k,toCodePoint:_},onerror:function(){this.parentNode&&this.parentNode.replaceChild(l(this.alt,!1),this)},parse:S,replace:E,test:A},t={"&":"&","<":"<",">":">","'":"'",'"':"""},n=/(?:\ud83d\udc68\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffc-\udfff]|\ud83e\uddd1\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffb\udffd-\udfff]|\ud83e\uddd1\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffb\udffc\udffe\udfff]|\ud83e\uddd1\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffb-\udffd\udfff]|\ud83e\uddd1\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffb-\udffe]|\ud83d\udc68\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffb\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffc-\udfff]|\ud83d\udc68\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffc\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb\udffd-\udfff]|\ud83d\udc68\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffd\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb\udffc\udffe\udfff]|\ud83d\udc68\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffe\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb-\udffd\udfff]|\ud83d\udc68\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udfff\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb-\udffe]|\ud83d\udc69\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffc-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffc-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb\udffd-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffb\udffd-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb\udffc\udffe\udfff]|\ud83d\udc69\ud83c\udffd\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffb\udffc\udffe\udfff]|\ud83d\udc69\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffe\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb-\udffd\udfff]|\ud83d\udc69\ud83c\udffe\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffb-\udffd\udfff]|\ud83d\udc69\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udfff\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb-\udffe]|\ud83d\udc69\ud83c\udfff\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffb-\udffe]|\ud83e\uddd1\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffc-\udfff]|\ud83e\uddd1\ud83c\udffb\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffb\udffd-\udfff]|\ud83e\uddd1\ud83c\udffc\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffb\udffc\udffe\udfff]|\ud83e\uddd1\ud83c\udffd\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffb-\udffd\udfff]|\ud83e\uddd1\ud83c\udffe\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffb-\udffe]|\ud83e\uddd1\ud83c\udfff\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68|\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d[\udc68\udc69]|\ud83e\udef1\ud83c\udffb\u200d\ud83e\udef2\ud83c[\udffc-\udfff]|\ud83e\udef1\ud83c\udffc\u200d\ud83e\udef2\ud83c[\udffb\udffd-\udfff]|\ud83e\udef1\ud83c\udffd\u200d\ud83e\udef2\ud83c[\udffb\udffc\udffe\udfff]|\ud83e\udef1\ud83c\udffe\u200d\ud83e\udef2\ud83c[\udffb-\udffd\udfff]|\ud83e\udef1\ud83c\udfff\u200d\ud83e\udef2\ud83c[\udffb-\udffe]|\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc68|\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d[\udc68\udc69]|\ud83e\uddd1\u200d\ud83e\udd1d\u200d\ud83e\uddd1|\ud83d\udc6b\ud83c[\udffb-\udfff]|\ud83d\udc6c\ud83c[\udffb-\udfff]|\ud83d\udc6d\ud83c[\udffb-\udfff]|\ud83d\udc8f\ud83c[\udffb-\udfff]|\ud83d\udc91\ud83c[\udffb-\udfff]|\ud83e\udd1d\ud83c[\udffb-\udfff]|\ud83d[\udc6b-\udc6d\udc8f\udc91]|\ud83e\udd1d)|(?:\ud83d[\udc68\udc69]|\ud83e\uddd1)(?:\ud83c[\udffb-\udfff])?\u200d(?:\u2695\ufe0f|\u2696\ufe0f|\u2708\ufe0f|\ud83c[\udf3e\udf73\udf7c\udf84\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e[\uddaf-\uddb3\uddbc\uddbd])|(?:\ud83c[\udfcb\udfcc]|\ud83d[\udd74\udd75]|\u26f9)((?:\ud83c[\udffb-\udfff]|\ufe0f)\u200d[\u2640\u2642]\ufe0f)|(?:\ud83c[\udfc3\udfc4\udfca]|\ud83d[\udc6e\udc70\udc71\udc73\udc77\udc81\udc82\udc86\udc87\ude45-\ude47\ude4b\ude4d\ude4e\udea3\udeb4-\udeb6]|\ud83e[\udd26\udd35\udd37-\udd39\udd3d\udd3e\uddb8\uddb9\uddcd-\uddcf\uddd4\uddd6-\udddd])(?:\ud83c[\udffb-\udfff])?\u200d[\u2640\u2642]\ufe0f|(?:\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83c\udff3\ufe0f\u200d\u26a7\ufe0f|\ud83c\udff3\ufe0f\u200d\ud83c\udf08|\ud83d\ude36\u200d\ud83c\udf2b\ufe0f|\u2764\ufe0f\u200d\ud83d\udd25|\u2764\ufe0f\u200d\ud83e\ude79|\ud83c\udff4\u200d\u2620\ufe0f|\ud83d\udc15\u200d\ud83e\uddba|\ud83d\udc3b\u200d\u2744\ufe0f|\ud83d\udc41\u200d\ud83d\udde8|\ud83d\udc68\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83d\udc6f\u200d\u2640\ufe0f|\ud83d\udc6f\u200d\u2642\ufe0f|\ud83d\ude2e\u200d\ud83d\udca8|\ud83d\ude35\u200d\ud83d\udcab|\ud83e\udd3c\u200d\u2640\ufe0f|\ud83e\udd3c\u200d\u2642\ufe0f|\ud83e\uddde\u200d\u2640\ufe0f|\ud83e\uddde\u200d\u2642\ufe0f|\ud83e\udddf\u200d\u2640\ufe0f|\ud83e\udddf\u200d\u2642\ufe0f|\ud83d\udc08\u200d\u2b1b)|[#*0-9]\ufe0f?\u20e3|(?:[©®\u2122\u265f]\ufe0f)|(?:\ud83c[\udc04\udd70\udd71\udd7e\udd7f\ude02\ude1a\ude2f\ude37\udf21\udf24-\udf2c\udf36\udf7d\udf96\udf97\udf99-\udf9b\udf9e\udf9f\udfcd\udfce\udfd4-\udfdf\udff3\udff5\udff7]|\ud83d[\udc3f\udc41\udcfd\udd49\udd4a\udd6f\udd70\udd73\udd76-\udd79\udd87\udd8a-\udd8d\udda5\udda8\uddb1\uddb2\uddbc\uddc2-\uddc4\uddd1-\uddd3\udddc-\uddde\udde1\udde3\udde8\uddef\uddf3\uddfa\udecb\udecd-\udecf\udee0-\udee5\udee9\udef0\udef3]|[\u203c\u2049\u2139\u2194-\u2199\u21a9\u21aa\u231a\u231b\u2328\u23cf\u23ed-\u23ef\u23f1\u23f2\u23f8-\u23fa\u24c2\u25aa\u25ab\u25b6\u25c0\u25fb-\u25fe\u2600-\u2604\u260e\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262a\u262e\u262f\u2638-\u263a\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267b\u267f\u2692-\u2697\u2699\u269b\u269c\u26a0\u26a1\u26a7\u26aa\u26ab\u26b0\u26b1\u26bd\u26be\u26c4\u26c5\u26c8\u26cf\u26d1\u26d3\u26d4\u26e9\u26ea\u26f0-\u26f5\u26f8\u26fa\u26fd\u2702\u2708\u2709\u270f\u2712\u2714\u2716\u271d\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u2764\u27a1\u2934\u2935\u2b05-\u2b07\u2b1b\u2b1c\u2b50\u2b55\u3030\u303d\u3297\u3299])(?:\ufe0f|(?!\ufe0e))|(?:(?:\ud83c[\udfcb\udfcc]|\ud83d[\udd74\udd75\udd90]|[\u261d\u26f7\u26f9\u270c\u270d])(?:\ufe0f|(?!\ufe0e))|(?:\ud83c[\udf85\udfc2-\udfc4\udfc7\udfca]|\ud83d[\udc42\udc43\udc46-\udc50\udc66-\udc69\udc6e\udc70-\udc78\udc7c\udc81-\udc83\udc85-\udc87\udcaa\udd7a\udd95\udd96\ude45-\ude47\ude4b-\ude4f\udea3\udeb4-\udeb6\udec0\udecc]|\ud83e[\udd0c\udd0f\udd18-\udd1c\udd1e\udd1f\udd26\udd30-\udd39\udd3d\udd3e\udd77\uddb5\uddb6\uddb8\uddb9\uddbb\uddcd-\uddcf\uddd1-\udddd\udec3-\udec5\udef0-\udef6]|[\u270a\u270b]))(?:\ud83c[\udffb-\udfff])?|(?:\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc65\udb40\udc6e\udb40\udc67\udb40\udc7f|\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc73\udb40\udc63\udb40\udc74\udb40\udc7f|\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc77\udb40\udc6c\udb40\udc73\udb40\udc7f|\ud83c\udde6\ud83c[\udde8-\uddec\uddee\uddf1\uddf2\uddf4\uddf6-\uddfa\uddfc\uddfd\uddff]|\ud83c\udde7\ud83c[\udde6\udde7\udde9-\uddef\uddf1-\uddf4\uddf6-\uddf9\uddfb\uddfc\uddfe\uddff]|\ud83c\udde8\ud83c[\udde6\udde8\udde9\uddeb-\uddee\uddf0-\uddf5\uddf7\uddfa-\uddff]|\ud83c\udde9\ud83c[\uddea\uddec\uddef\uddf0\uddf2\uddf4\uddff]|\ud83c\uddea\ud83c[\udde6\udde8\uddea\uddec\udded\uddf7-\uddfa]|\ud83c\uddeb\ud83c[\uddee-\uddf0\uddf2\uddf4\uddf7]|\ud83c\uddec\ud83c[\udde6\udde7\udde9-\uddee\uddf1-\uddf3\uddf5-\uddfa\uddfc\uddfe]|\ud83c\udded\ud83c[\uddf0\uddf2\uddf3\uddf7\uddf9\uddfa]|\ud83c\uddee\ud83c[\udde8-\uddea\uddf1-\uddf4\uddf6-\uddf9]|\ud83c\uddef\ud83c[\uddea\uddf2\uddf4\uddf5]|\ud83c\uddf0\ud83c[\uddea\uddec-\uddee\uddf2\uddf3\uddf5\uddf7\uddfc\uddfe\uddff]|\ud83c\uddf1\ud83c[\udde6-\udde8\uddee\uddf0\uddf7-\uddfb\uddfe]|\ud83c\uddf2\ud83c[\udde6\udde8-\udded\uddf0-\uddff]|\ud83c\uddf3\ud83c[\udde6\udde8\uddea-\uddec\uddee\uddf1\uddf4\uddf5\uddf7\uddfa\uddff]|\ud83c\uddf4\ud83c\uddf2|\ud83c\uddf5\ud83c[\udde6\uddea-\udded\uddf0-\uddf3\uddf7-\uddf9\uddfc\uddfe]|\ud83c\uddf6\ud83c\udde6|\ud83c\uddf7\ud83c[\uddea\uddf4\uddf8\uddfa\uddfc]|\ud83c\uddf8\ud83c[\udde6-\uddea\uddec-\uddf4\uddf7-\uddf9\uddfb\uddfd-\uddff]|\ud83c\uddf9\ud83c[\udde6\udde8\udde9\uddeb-\udded\uddef-\uddf4\uddf7\uddf9\uddfb\uddfc\uddff]|\ud83c\uddfa\ud83c[\udde6\uddec\uddf2\uddf3\uddf8\uddfe\uddff]|\ud83c\uddfb\ud83c[\udde6\udde8\uddea\uddec\uddee\uddf3\uddfa]|\ud83c\uddfc\ud83c[\uddeb\uddf8]|\ud83c\uddfd\ud83c\uddf0|\ud83c\uddfe\ud83c[\uddea\uddf9]|\ud83c\uddff\ud83c[\udde6\uddf2\uddfc]|\ud83c[\udccf\udd8e\udd91-\udd9a\udde6-\uddff\ude01\ude32-\ude36\ude38-\ude3a\ude50\ude51\udf00-\udf20\udf2d-\udf35\udf37-\udf7c\udf7e-\udf84\udf86-\udf93\udfa0-\udfc1\udfc5\udfc6\udfc8\udfc9\udfcf-\udfd3\udfe0-\udff0\udff4\udff8-\udfff]|\ud83d[\udc00-\udc3e\udc40\udc44\udc45\udc51-\udc65\udc6a\udc6f\udc79-\udc7b\udc7d-\udc80\udc84\udc88-\udc8e\udc90\udc92-\udca9\udcab-\udcfc\udcff-\udd3d\udd4b-\udd4e\udd50-\udd67\udda4\uddfb-\ude44\ude48-\ude4a\ude80-\udea2\udea4-\udeb3\udeb7-\udebf\udec1-\udec5\uded0-\uded2\uded5-\uded7\udedd-\udedf\udeeb\udeec\udef4-\udefc\udfe0-\udfeb\udff0]|\ud83e[\udd0d\udd0e\udd10-\udd17\udd20-\udd25\udd27-\udd2f\udd3a\udd3c\udd3f-\udd45\udd47-\udd76\udd78-\uddb4\uddb7\uddba\uddbc-\uddcc\uddd0\uddde-\uddff\ude70-\ude74\ude78-\ude7c\ude80-\ude86\ude90-\udeac\udeb0-\udeba\udec0-\udec2\uded0-\uded9\udee0-\udee7]|[\u23e9-\u23ec\u23f0\u23f3\u267e\u26ce\u2705\u2728\u274c\u274e\u2753-\u2755\u2795-\u2797\u27b0\u27bf\ue50a])|\ufe0f/g,r=/\uFE0F/g,i=String.fromCharCode(8205),a=/[&<>'"]/g,o=/^(?:iframe|noframes|noscript|script|select|style|textarea)$/,s=String.fromCharCode;return e;function l(T,$){return document.createTextNode($?T.replace(r,""):T)}function c(T){return T.replace(a,b)}function u(T,$){return"".concat($.base,$.size,"/",T,$.ext)}function f(T,$){for(var R=T.childNodes,O=R.length,G,V;O--;)G=R[O],V=G.nodeType,V===3?$.push(G):V===1&&!("ownerSVGElement"in G)&&!o.test(G.nodeName.toLowerCase())&&f(G,$);return $}function h(T){return _(T.indexOf(i)<0?T.replace(r,""):T)}function m(T,$){for(var R=f(T,[]),O=R.length,G,V,Z,W,Y,fe,ae,Q,ce,L,de,ue,I;O--;){for(Z=!1,W=document.createDocumentFragment(),Y=R[O],fe=Y.nodeValue,Q=0;ae=n.exec(fe);){if(ce=ae.index,ce!==Q&&W.appendChild(l(fe.slice(Q,ce),!0)),de=ae[0],ue=h(de),Q=ce+de.length,I=$.callback(ue,$),ue&&I){L=new Image,L.onerror=$.onerror,L.setAttribute("draggable","false"),G=$.attributes(de,ue);for(V in G)G.hasOwnProperty(V)&&V.indexOf("on")!==0&&!L.hasAttribute(V)&&L.setAttribute(V,G[V]);L.className=$.className,L.alt=de,L.src=I,Z=!0,W.appendChild(L)}L||W.appendChild(l(de,!1)),L=null}Z&&(Q")}return O})}function b(T){return t[T]}function C(){return null}function w(T){return typeof T=="number"?T+"x"+T:T}function k(T){var $=typeof T=="string"?parseInt(T,16):T;return $<65536?s($):($-=65536,s(55296+($>>10),56320+($&1023)))}function S(T,$){return(!$||typeof $=="function")&&($={callback:$}),(typeof T=="string"?g:m)(T,{callback:$.callback||u,attributes:typeof $.attributes=="function"?$.attributes:C,base:typeof $.base=="string"?$.base:e.base,ext:$.ext||e.ext,size:$.folder||w($.size||e.size),className:$.className||e.className,onerror:$.onerror||e.onerror})}function E(T,$){return String(T).replace(n,$)}function A(T){n.lastIndex=0;var $=n.test(T);return n.lastIndex=0,$}function _(T,$){for(var R=[],O=0,G=0,V=0;V/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,apt=e=>({title:e}),Qq=(e,t)=>rpt.parse(e,{attributes:apt,base:"https://cdn.jsdelivr.net/gh/twitter/twemoji/assets/",...t}),RM=ipt(),opt=e=>!!e.children,spt=e=>!!e.value;function lpt(e,t){return n(e,0,null)[0];function n(r,i,a){if(opt(r)){const o=[];for(let s=0,l=r.children.length;s()=>{function t(n){lpt(n,r=>{if(!spt(r))return[r];const i=r.value,a=[];let o,s=i;for(;o=RM.exec(s);){const{index:l}=o,c=o[0];c&&(l>0&&a.push({...r,value:s.slice(0,l)}),a.push({...r,value:Qq(c,e),type:"emoji"}),s=s.slice(l+c.length)),RM.lastIndex=0}return s.length&&a.push({...r,value:s}),a})}return t},cf=(e,t)=>(Object.assign(e,{meta:{package:"@milkdown/plugin-emoji",...t}}),e),Hv=Lr({},"emojiConfig");cf(Hv,{displayName:"Ctx"});const xS=xo("emoji",()=>({span:{},img:{}}));cf(xS,{displayName:"Attr"});const Uv=cr("emoji",e=>({group:"inline",inline:!0,attrs:{html:{default:""}},parseDOM:[{tag:'span[data-type="emoji"]',getAttrs:t=>{if(!(t instanceof HTMLElement))throw Ma(t);return{html:t.innerHTML}}}],toDOM:t=>{var n;const r=e.get(xS.key)(t),i=document.createElement("span");i.innerHTML=t.attrs.html;const a=(n=i.firstElementChild)==null?void 0:n.cloneNode();return i.remove(),a&&a instanceof HTMLElement&&Object.entries(r.img).forEach(([o,s])=>a.setAttribute(o,s)),["span",{...r.container,"data-type":"emoji"},a]},parseMarkdown:{match:({type:t})=>t==="emoji",runner:(t,n,r)=>{t.addNode(r,{html:n.value})}},toMarkdown:{match:t=>t.type.name==="emoji",runner:(t,n)=>{const r=document.createElement("span");r.innerHTML=n.attrs.html;const i=r.querySelector("img"),a=(i==null?void 0:i.title)||(i==null?void 0:i.alt);r.remove(),t.addNode("text",void 0,a)}}}));cf(Uv.node,{displayName:"NodeSchema"});cf(Uv.ctx,{displayName:"NodeSchemaCtx"});const eH=vo(e=>new Yl(/(:([^:\s]+):)$/,(t,n,r,i)=>{const a=n[0];if(!a)return null;const o=hLe(a);if(!o||a.includes(o))return null;const s=Qq(o,e.get(Hv.key).twemojiOptions);return t.tr.setMeta("emoji",!0).replaceRangeWith(r,i,Uv.type(e).create({html:s})).scrollIntoView()}));cf(eH,{displayName:"InputRule"});const tH=Ps(()=>npt);cf(tH,{displayName:"Remark"});const nH=Ps(e=>cpt(e.get(Hv.key).twemojiOptions));cf(nH,{displayName:"Remark"});const upt=[xS,Hv,tH,nH,Uv,eH].flat();var Hk=200,Or=function(){};Or.prototype.append=function(t){return t.length?(t=Or.from(t),!this.length&&t||t.length=n?Or.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,n))};Or.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)};Or.prototype.forEach=function(t,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(t,n,r,0):this.forEachInvertedInner(t,n,r,0)};Or.prototype.map=function(t,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var i=[];return this.forEach(function(a,o){return i.push(t(a,o))},n,r),i};Or.from=function(t){return t instanceof Or?t:t&&t.length?new rH(t):Or.empty};var rH=function(e){function t(r){e.call(this),this.values=r}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(i,a){return i==0&&a==this.length?this:new t(this.values.slice(i,a))},t.prototype.getInner=function(i){return this.values[i]},t.prototype.forEachInner=function(i,a,o,s){for(var l=a;l=o;l--)if(i(this.values[l],s+l)===!1)return!1},t.prototype.leafAppend=function(i){if(this.length+i.length<=Hk)return new t(this.values.concat(i.flatten()))},t.prototype.leafPrepend=function(i){if(this.length+i.length<=Hk)return new t(i.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(Or);Or.empty=new rH([]);var dpt=function(e){function t(n,r){e.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(r){return rs&&this.right.forEachInner(r,Math.max(i-s,0),Math.min(this.length,a)-s,o+s)===!1)return!1},t.prototype.forEachInvertedInner=function(r,i,a,o){var s=this.left.length;if(i>s&&this.right.forEachInvertedInner(r,i-s,Math.max(a,s)-s,o+s)===!1||a=a?this.right.slice(r-a,i-a):this.left.slice(r,a).append(this.right.slice(0,i-a))},t.prototype.leafAppend=function(r){var i=this.right.leafAppend(r);if(i)return new t(this.left,i)},t.prototype.leafPrepend=function(r){var i=this.left.leafPrepend(r);if(i)return new t(i,this.right)},t.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new t(this.left,new t(this.right,r)):new t(this,r)},t}(Or);const fpt=500;class Po{constructor(t,n){this.items=t,this.eventCount=n}popEvent(t,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let i,a;n&&(i=this.remapping(r,this.items.length),a=i.maps.length);let o=t.tr,s,l,c=[],u=[];return this.items.forEach((f,h)=>{if(!f.step){i||(i=this.remapping(r,h+1),a=i.maps.length),a--,u.push(f);return}if(i){u.push(new hs(f.map));let m=f.step.map(i.slice(a)),g;m&&o.maybeStep(m).doc&&(g=o.mapping.maps[o.mapping.maps.length-1],c.push(new hs(g,void 0,void 0,c.length+u.length))),a--,g&&i.appendMap(g,a)}else o.maybeStep(f.step);if(f.selection)return s=i?f.selection.map(i.slice(a)):f.selection,l=new Po(this.items.slice(0,r).append(u.reverse().concat(c)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:o,selection:s}}addTransform(t,n,r,i){let a=[],o=this.eventCount,s=this.items,l=!i&&s.length?s.get(s.length-1):null;for(let u=0;uppt&&(s=hpt(s,c),o-=c),new Po(s.append(a),o)}remapping(t,n){let r=new Lh;return this.items.forEach((i,a)=>{let o=i.mirrorOffset!=null&&a-i.mirrorOffset>=t?r.maps.length-i.mirrorOffset:void 0;r.appendMap(i.map,o)},t,n),r}addMaps(t){return this.eventCount==0?this:new Po(this.items.append(t.map(n=>new hs(n))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;let r=[],i=Math.max(0,this.items.length-n),a=t.mapping,o=t.steps.length,s=this.eventCount;this.items.forEach(h=>{h.selection&&s--},i);let l=n;this.items.forEach(h=>{let m=a.getMirror(--l);if(m==null)return;o=Math.min(o,m);let g=a.maps[m];if(h.step){let b=t.steps[m].invert(t.docs[m]),C=h.selection&&h.selection.map(a.slice(l+1,m));C&&s++,r.push(new hs(g,b,C))}else r.push(new hs(g))},i);let c=[];for(let h=n;hfpt&&(f=f.compress(this.items.length-r.length)),f}emptyItemCount(){let t=0;return this.items.forEach(n=>{n.step||t++}),t}compress(t=this.items.length){let n=this.remapping(0,t),r=n.maps.length,i=[],a=0;return this.items.forEach((o,s)=>{if(s>=t)i.push(o),o.selection&&a++;else if(o.step){let l=o.step.map(n.slice(r)),c=l&&l.getMap();if(r--,c&&n.appendMap(c,r),l){let u=o.selection&&o.selection.map(n.slice(r));u&&a++;let f=new hs(c.invert(),l,u),h,m=i.length-1;(h=i.length&&i[m].merge(f))?i[m]=h:i.push(f)}}else o.map&&r--},this.items.length,0),new Po(Or.from(i.reverse()),a)}}Po.empty=new Po(Or.empty,0);function hpt(e,t){let n;return e.forEach((r,i)=>{if(r.selection&&t--==0)return n=i,!1}),e.slice(n)}class hs{constructor(t,n,r,i){this.map=t,this.step=n,this.selection=r,this.mirrorOffset=i}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new hs(n.getMap().invert(),n,this.selection)}}}class Fc{constructor(t,n,r,i,a){this.done=t,this.undone=n,this.prevRanges=r,this.prevTime=i,this.prevComposition=a}}const ppt=20;function mpt(e,t,n,r){let i=n.getMeta(Ts),a;if(i)return i.historyState;n.getMeta(ypt)&&(e=new Fc(e.done,e.undone,null,0,-1));let o=n.getMeta("appendedTransaction");if(n.steps.length==0)return e;if(o&&o.getMeta(Ts))return o.getMeta(Ts).redo?new Fc(e.done.addTransform(n,void 0,r,bb(t)),e.undone,PM(n.mapping.maps[n.steps.length-1]),e.prevTime,e.prevComposition):new Fc(e.done,e.undone.addTransform(n,void 0,r,bb(t)),null,e.prevTime,e.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(o&&o.getMeta("addToHistory")===!1)){let s=n.getMeta("composition"),l=e.prevTime==0||!o&&e.prevComposition!=s&&(e.prevTime<(n.time||0)-r.newGroupDelay||!gpt(n,e.prevRanges)),c=o?y6(e.prevRanges,n.mapping):PM(n.mapping.maps[n.steps.length-1]);return new Fc(e.done.addTransform(n,l?t.selection.getBookmark():void 0,r,bb(t)),Po.empty,c,n.time,s??e.prevComposition)}else return(a=n.getMeta("rebased"))?new Fc(e.done.rebased(n,a),e.undone.rebased(n,a),y6(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new Fc(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),y6(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function gpt(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((r,i)=>{for(let a=0;a=t[a]&&(n=!0)}),n}function PM(e){let t=[];return e.forEach((n,r,i,a)=>t.push(i,a)),t}function y6(e,t){if(!e)return null;let n=[];for(let r=0;r{let n=Ts.getState(e);return!n||n.done.eventCount==0?!1:(t&&iH(n,e,t,!1),!0)},oH=(e,t)=>{let n=Ts.getState(e);return!n||n.undone.eventCount==0?!1:(t&&iH(n,e,t,!0),!0)};function bpt(e){let t=Ts.getState(e);return t?t.done.eventCount:0}function kpt(e){let t=Ts.getState(e);return t?t.undone.eventCount:0}const Bp=(e,t)=>(Object.assign(e,{meta:{package:"@milkdown/plugin-history",...t}}),e),e1=Lt("Undo",()=>()=>aH);Bp(e1,{displayName:"Command"});const CS=Lt("Undo",()=>()=>oH);Bp(e1,{displayName:"Command"});const SS=Lr({},"historyProviderConfig");Bp(SS,{displayName:"Ctx"});const sH=yr(e=>_pt(e.get(SS.key)));Bp(sH,{displayName:"Ctx"});const DS=ea("historyKeymap",{Undo:{shortcuts:"Mod-z",command:e=>{const t=e.get(Bt);return()=>t.call(e1.key)}},Redo:{shortcuts:["Mod-y","Shift-Mod-z"],command:e=>{const t=e.get(Bt);return()=>t.call(CS.key)}}});Bp(DS.ctx,{displayName:"KeymapCtx"});Bp(DS.shortcuts,{displayName:"Keymap"});const wpt=[SS,sH,DS,e1,CS].flat(),ES=Lr({shouldAppend:e=>!(!e||["heading","paragraph"].includes(e.type.name)),getNode:e=>e.schema.nodes.paragraph.create()},"trailingConfig");ES.meta={package:"@milkdown/plugin-trailing",displayName:"Ctx"};const lH=yr(e=>{const t=new Fn("MILKDOWN_TRAILING"),{shouldAppend:n,getNode:r}=e.get(ES.key),i=new Bn({key:t,state:{init:(a,o)=>{const s=o.tr.doc.lastChild;return n(s,o)},apply:(a,o,s,l)=>{if(!a.docChanged)return o;const c=a.doc.lastChild;return n(c,l)}},appendTransaction:(a,o,s)=>{const{doc:l,tr:c}=s,u=r==null?void 0:r(s),f=i.getState(s),h=l.content.size;if(!(!f||!u))return c.insert(h,u)}});return i});lH.meta={package:"@milkdown/plugin-trailing",displayName:"Prose"};const vpt=[ES,lH];var xpt="Expected a function",VM=0/0,Cpt="[object Symbol]",Spt=/^\s+|\s+$/g,Dpt=/^[-+]0x[0-9a-f]+$/i,Ept=/^0b[01]+$/i,Tpt=/^0o[0-7]+$/i,Apt=parseInt,zpt=typeof Bi=="object"&&Bi&&Bi.Object===Object&&Bi,Fpt=typeof self=="object"&&self&&self.Object===Object&&self,$pt=zpt||Fpt||Function("return this")(),Mpt=Object.prototype,Opt=Mpt.toString,Npt=Math.max,Lpt=Math.min,b6=function(){return $pt.Date.now()};function Ipt(e,t,n){var r,i,a,o,s,l,c=0,u=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(xpt);t=qM(t)||0,z8(n)&&(u=!!n.leading,f="maxWait"in n,a=f?Npt(qM(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h);function m(_){var T=r,$=i;return r=i=void 0,c=_,o=e.apply($,T),o}function g(_){return c=_,s=setTimeout(w,t),u?m(_):o}function b(_){var T=_-l,$=_-c,R=t-T;return f?Lpt(R,a-$):R}function C(_){var T=_-l,$=_-c;return l===void 0||T>=t||T<0||f&&$>=a}function w(){var _=b6();if(C(_))return k(_);s=setTimeout(w,b(_))}function k(_){return s=void 0,h&&r?m(_):(r=i=void 0,o)}function S(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function E(){return s===void 0?o:k(b6())}function A(){var _=b6(),T=C(_);if(r=arguments,i=this,l=_,T){if(s===void 0)return g(l);if(f)return s=setTimeout(w,t),m(l)}return s===void 0&&(s=setTimeout(w,t)),o}return A.cancel=S,A.flush=E,A}function z8(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Bpt(e){return!!e&&typeof e=="object"}function Rpt(e){return typeof e=="symbol"||Bpt(e)&&Opt.call(e)==Cpt}function qM(e){if(typeof e=="number")return e;if(Rpt(e))return VM;if(z8(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=z8(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Spt,"");var n=Ept.test(e);return n||Tpt.test(e)?Apt(e.slice(2),n?2:8):Dpt.test(e)?VM:+e}var Ppt=Ipt;const TS=Qo(Ppt);var Ki="top",ho="bottom",po="right",Yi="left",AS="auto",t1=[Ki,ho,po,Yi],pp="start",kg="end",jpt="clippingParents",cH="viewport",z0="popper",Vpt="reference",HM=t1.reduce(function(e,t){return e.concat([t+"-"+pp,t+"-"+kg])},[]),uH=[].concat(t1,[AS]).reduce(function(e,t){return e.concat([t,t+"-"+pp,t+"-"+kg])},[]),qpt="beforeRead",Hpt="read",Upt="afterRead",Wpt="beforeMain",Gpt="main",Kpt="afterMain",Ypt="beforeWrite",Zpt="write",Xpt="afterWrite",Jpt=[qpt,Hpt,Upt,Wpt,Gpt,Kpt,Ypt,Zpt,Xpt];function Ls(e){return e?(e.nodeName||"").toLowerCase():null}function Sa(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Xd(e){var t=Sa(e).Element;return e instanceof t||e instanceof Element}function lo(e){var t=Sa(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function zS(e){if(typeof ShadowRoot>"u")return!1;var t=Sa(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Qpt(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},a=t.elements[n];!lo(a)||!Ls(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(o){var s=i[o];s===!1?a.removeAttribute(o):a.setAttribute(o,s===!0?"":s)}))})}function e0t(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],a=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=o.reduce(function(l,c){return l[c]="",l},{});!lo(i)||!Ls(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}const dH={name:"applyStyles",enabled:!0,phase:"write",fn:Qpt,effect:e0t,requires:["computeStyles"]};function As(e){return e.split("-")[0]}var Md=Math.max,Uk=Math.min,mp=Math.round;function F8(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function fH(){return!/^((?!chrome|android).)*safari/i.test(F8())}function gp(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&lo(e)&&(i=e.offsetWidth>0&&mp(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&mp(r.height)/e.offsetHeight||1);var o=Xd(e)?Sa(e):window,s=o.visualViewport,l=!fH()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/i,u=(r.top+(l&&s?s.offsetTop:0))/a,f=r.width/i,h=r.height/a;return{width:f,height:h,top:u,right:c+f,bottom:u+h,left:c,x:c,y:u}}function FS(e){var t=gp(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function hH(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&zS(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function jl(e){return Sa(e).getComputedStyle(e)}function t0t(e){return["table","td","th"].indexOf(Ls(e))>=0}function Au(e){return((Xd(e)?e.ownerDocument:e.document)||window.document).documentElement}function Wv(e){return Ls(e)==="html"?e:e.assignedSlot||e.parentNode||(zS(e)?e.host:null)||Au(e)}function UM(e){return!lo(e)||jl(e).position==="fixed"?null:e.offsetParent}function n0t(e){var t=/firefox/i.test(F8()),n=/Trident/i.test(F8());if(n&&lo(e)){var r=jl(e);if(r.position==="fixed")return null}var i=Wv(e);for(zS(i)&&(i=i.host);lo(i)&&["html","body"].indexOf(Ls(i))<0;){var a=jl(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function n1(e){for(var t=Sa(e),n=UM(e);n&&t0t(n)&&jl(n).position==="static";)n=UM(n);return n&&(Ls(n)==="html"||Ls(n)==="body"&&jl(n).position==="static")?t:n||n0t(e)||t}function $S(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function $m(e,t,n){return Md(e,Uk(t,n))}function r0t(e,t,n){var r=$m(e,t,n);return r>n?n:r}function pH(){return{top:0,right:0,bottom:0,left:0}}function mH(e){return Object.assign({},pH(),e)}function gH(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var i0t=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,mH(typeof t!="number"?t:gH(t,t1))};function a0t(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=As(n.placement),l=$S(s),c=[Yi,po].indexOf(s)>=0,u=c?"height":"width";if(!(!a||!o)){var f=i0t(i.padding,n),h=FS(a),m=l==="y"?Ki:Yi,g=l==="y"?ho:po,b=n.rects.reference[u]+n.rects.reference[l]-o[l]-n.rects.popper[u],C=o[l]-n.rects.reference[l],w=n1(a),k=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,S=b/2-C/2,E=f[m],A=k-h[u]-f[g],_=k/2-h[u]/2+S,T=$m(E,_,A),$=l;n.modifiersData[r]=(t={},t[$]=T,t.centerOffset=T-_,t)}}function o0t(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||hH(t.elements.popper,i)&&(t.elements.arrow=i))}const s0t={name:"arrow",enabled:!0,phase:"main",fn:a0t,effect:o0t,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function yp(e){return e.split("-")[1]}var l0t={top:"auto",right:"auto",bottom:"auto",left:"auto"};function c0t(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:mp(n*i)/i||0,y:mp(r*i)/i||0}}function WM(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,h=o.x,m=h===void 0?0:h,g=o.y,b=g===void 0?0:g,C=typeof u=="function"?u({x:m,y:b}):{x:m,y:b};m=C.x,b=C.y;var w=o.hasOwnProperty("x"),k=o.hasOwnProperty("y"),S=Yi,E=Ki,A=window;if(c){var _=n1(n),T="clientHeight",$="clientWidth";if(_===Sa(n)&&(_=Au(n),jl(_).position!=="static"&&s==="absolute"&&(T="scrollHeight",$="scrollWidth")),_=_,i===Ki||(i===Yi||i===po)&&a===kg){E=ho;var R=f&&_===A&&A.visualViewport?A.visualViewport.height:_[T];b-=R-r.height,b*=l?1:-1}if(i===Yi||(i===Ki||i===ho)&&a===kg){S=po;var O=f&&_===A&&A.visualViewport?A.visualViewport.width:_[$];m-=O-r.width,m*=l?1:-1}}var G=Object.assign({position:s},c&&l0t),V=u===!0?c0t({x:m,y:b},Sa(n)):{x:m,y:b};if(m=V.x,b=V.y,l){var Z;return Object.assign({},G,(Z={},Z[E]=k?"0":"",Z[S]=w?"0":"",Z.transform=(A.devicePixelRatio||1)<=1?"translate("+m+"px, "+b+"px)":"translate3d("+m+"px, "+b+"px, 0)",Z))}return Object.assign({},G,(t={},t[E]=k?b+"px":"",t[S]=w?m+"px":"",t.transform="",t))}function u0t(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:As(t.placement),variation:yp(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,WM(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,WM(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const d0t={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:u0t,data:{}};var Jy={passive:!0};function f0t(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,s=o===void 0?!0:o,l=Sa(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",n.update,Jy)}),s&&l.addEventListener("resize",n.update,Jy),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Jy)}),s&&l.removeEventListener("resize",n.update,Jy)}}const h0t={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:f0t,data:{}};var p0t={left:"right",right:"left",bottom:"top",top:"bottom"};function kb(e){return e.replace(/left|right|bottom|top/g,function(t){return p0t[t]})}var m0t={start:"end",end:"start"};function GM(e){return e.replace(/start|end/g,function(t){return m0t[t]})}function MS(e){var t=Sa(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function OS(e){return gp(Au(e)).left+MS(e).scrollLeft}function g0t(e,t){var n=Sa(e),r=Au(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;var c=fH();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s+OS(e),y:l}}function y0t(e){var t,n=Au(e),r=MS(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=Md(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Md(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+OS(e),l=-r.scrollTop;return jl(i||n).direction==="rtl"&&(s+=Md(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}function NS(e){var t=jl(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function yH(e){return["html","body","#document"].indexOf(Ls(e))>=0?e.ownerDocument.body:lo(e)&&NS(e)?e:yH(Wv(e))}function Mm(e,t){var n;t===void 0&&(t=[]);var r=yH(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=Sa(r),o=i?[a].concat(a.visualViewport||[],NS(r)?r:[]):r,s=t.concat(o);return i?s:s.concat(Mm(Wv(o)))}function $8(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function _0t(e,t){var n=gp(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function KM(e,t,n){return t===cH?$8(g0t(e,n)):Xd(t)?_0t(t,n):$8(y0t(Au(e)))}function b0t(e){var t=Mm(Wv(e)),n=["absolute","fixed"].indexOf(jl(e).position)>=0,r=n&&lo(e)?n1(e):e;return Xd(r)?t.filter(function(i){return Xd(i)&&hH(i,r)&&Ls(i)!=="body"}):[]}function k0t(e,t,n,r){var i=t==="clippingParents"?b0t(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(l,c){var u=KM(e,c,r);return l.top=Md(u.top,l.top),l.right=Uk(u.right,l.right),l.bottom=Uk(u.bottom,l.bottom),l.left=Md(u.left,l.left),l},KM(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function _H(e){var t=e.reference,n=e.element,r=e.placement,i=r?As(r):null,a=r?yp(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case Ki:l={x:o,y:t.y-n.height};break;case ho:l={x:o,y:t.y+t.height};break;case po:l={x:t.x+t.width,y:s};break;case Yi:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?$S(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case pp:l[c]=l[c]-(t[u]/2-n[u]/2);break;case kg:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function wg(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,l=s===void 0?jpt:s,c=n.rootBoundary,u=c===void 0?cH:c,f=n.elementContext,h=f===void 0?z0:f,m=n.altBoundary,g=m===void 0?!1:m,b=n.padding,C=b===void 0?0:b,w=mH(typeof C!="number"?C:gH(C,t1)),k=h===z0?Vpt:z0,S=e.rects.popper,E=e.elements[g?k:h],A=k0t(Xd(E)?E:E.contextElement||Au(e.elements.popper),l,u,o),_=gp(e.elements.reference),T=_H({reference:_,element:S,strategy:"absolute",placement:i}),$=$8(Object.assign({},S,T)),R=h===z0?$:_,O={top:A.top-R.top+w.top,bottom:R.bottom-A.bottom+w.bottom,left:A.left-R.left+w.left,right:R.right-A.right+w.right},G=e.modifiersData.offset;if(h===z0&&G){var V=G[i];Object.keys(O).forEach(function(Z){var W=[po,ho].indexOf(Z)>=0?1:-1,Y=[Ki,ho].indexOf(Z)>=0?"y":"x";O[Z]+=V[Y]*W})}return O}function w0t(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?uH:l,u=yp(r),f=u?s?HM:HM.filter(function(g){return yp(g)===u}):t1,h=f.filter(function(g){return c.indexOf(g)>=0});h.length===0&&(h=f);var m=h.reduce(function(g,b){return g[b]=wg(e,{placement:b,boundary:i,rootBoundary:a,padding:o})[As(b)],g},{});return Object.keys(m).sort(function(g,b){return m[g]-m[b]})}function v0t(e){if(As(e)===AS)return[];var t=kb(e);return[GM(e),t,GM(t)]}function x0t(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!0:o,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,h=n.altBoundary,m=n.flipVariations,g=m===void 0?!0:m,b=n.allowedAutoPlacements,C=t.options.placement,w=As(C),k=w===C,S=l||(k||!g?[kb(C)]:v0t(C)),E=[C].concat(S).reduce(function(be,ze){return be.concat(As(ze)===AS?w0t(t,{placement:ze,boundary:u,rootBoundary:f,padding:c,flipVariations:g,allowedAutoPlacements:b}):ze)},[]),A=t.rects.reference,_=t.rects.popper,T=new Map,$=!0,R=E[0],O=0;O=0,Y=W?"width":"height",fe=wg(t,{placement:G,boundary:u,rootBoundary:f,altBoundary:h,padding:c}),ae=W?Z?po:Yi:Z?ho:Ki;A[Y]>_[Y]&&(ae=kb(ae));var Q=kb(ae),ce=[];if(a&&ce.push(fe[V]<=0),s&&ce.push(fe[ae]<=0,fe[Q]<=0),ce.every(function(be){return be})){R=G,$=!1;break}T.set(G,ce)}if($)for(var L=g?3:1,de=function(ze){var J=E.find(function(Ve){var ye=T.get(Ve);if(ye)return ye.slice(0,ze).every(function(We){return We})});if(J)return R=J,"break"},ue=L;ue>0;ue--){var I=de(ue);if(I==="break")break}t.placement!==R&&(t.modifiersData[r]._skip=!0,t.placement=R,t.reset=!0)}}const C0t={name:"flip",enabled:!0,phase:"main",fn:x0t,requiresIfExists:["offset"],data:{_skip:!1}};function YM(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ZM(e){return[Ki,po,ho,Yi].some(function(t){return e[t]>=0})}function S0t(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=wg(t,{elementContext:"reference"}),s=wg(t,{altBoundary:!0}),l=YM(o,r),c=YM(s,i,a),u=ZM(l),f=ZM(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const D0t={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:S0t};function E0t(e,t,n){var r=As(e),i=[Yi,Ki].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[Yi,po].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function T0t(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=uH.reduce(function(u,f){return u[f]=E0t(f,t.rects,a),u},{}),s=o[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=o}const A0t={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:T0t};function z0t(e){var t=e.state,n=e.name;t.modifiersData[n]=_H({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const F0t={name:"popperOffsets",enabled:!0,phase:"read",fn:z0t,data:{}};function $0t(e){return e==="x"?"y":"x"}function M0t(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!1:o,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,h=n.tether,m=h===void 0?!0:h,g=n.tetherOffset,b=g===void 0?0:g,C=wg(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),w=As(t.placement),k=yp(t.placement),S=!k,E=$S(w),A=$0t(E),_=t.modifiersData.popperOffsets,T=t.rects.reference,$=t.rects.popper,R=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,O=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),G=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(_){if(a){var Z,W=E==="y"?Ki:Yi,Y=E==="y"?ho:po,fe=E==="y"?"height":"width",ae=_[E],Q=ae+C[W],ce=ae-C[Y],L=m?-$[fe]/2:0,de=k===pp?T[fe]:$[fe],ue=k===pp?-$[fe]:-T[fe],I=t.elements.arrow,be=m&&I?FS(I):{width:0,height:0},ze=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:pH(),J=ze[W],Ve=ze[Y],ye=$m(0,T[fe],be[fe]),We=S?T[fe]/2-L-ye-J-O.mainAxis:de-ye-J-O.mainAxis,Pe=S?-T[fe]/2+L+ye+Ve+O.mainAxis:ue+ye+Ve+O.mainAxis,Ge=t.elements.arrow&&n1(t.elements.arrow),Xe=Ge?E==="y"?Ge.clientTop||0:Ge.clientLeft||0:0,Kt=(Z=G==null?void 0:G[E])!=null?Z:0,Et=ae+We-Kt-Xe,mt=ae+Pe-Kt,K=$m(m?Uk(Q,Et):Q,ae,m?Md(ce,mt):ce);_[E]=K,V[E]=K-ae}if(s){var ie,he=E==="x"?Ki:Yi,Ie=E==="x"?ho:po,xe=_[A],ke=A==="y"?"height":"width",Be=xe+C[he],dt=xe-C[Ie],Re=[Ki,Yi].indexOf(w)!==-1,zt=(ie=G==null?void 0:G[A])!=null?ie:0,Ir=Re?Be:xe-T[ke]-$[ke]-zt+O.altAxis,pe=Re?xe+T[ke]+$[ke]-zt-O.altAxis:dt,Ce=m&&Re?r0t(Ir,xe,pe):$m(m?Ir:Be,xe,m?pe:dt);_[A]=Ce,V[A]=Ce-xe}t.modifiersData[r]=V}}const O0t={name:"preventOverflow",enabled:!0,phase:"main",fn:M0t,requiresIfExists:["offset"]};function N0t(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function L0t(e){return e===Sa(e)||!lo(e)?MS(e):N0t(e)}function I0t(e){var t=e.getBoundingClientRect(),n=mp(t.width)/e.offsetWidth||1,r=mp(t.height)/e.offsetHeight||1;return n!==1||r!==1}function B0t(e,t,n){n===void 0&&(n=!1);var r=lo(t),i=lo(t)&&I0t(t),a=Au(t),o=gp(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ls(t)!=="body"||NS(a))&&(s=L0t(t)),lo(t)?(l=gp(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=OS(a))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function R0t(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function i(a){n.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||i(a)}),r}function P0t(e){var t=R0t(e);return Jpt.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function j0t(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function V0t(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var XM={placement:"bottom",modifiers:[],strategy:"absolute"};function JM(){for(var e=arguments.length,t=new Array(e),n=0;n-1}function xH(e,t){return typeof e=="function"?e.apply(void 0,t):e}function QM(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function K0t(e){return e.split(/\s+/).filter(Boolean)}function rh(e){return[].concat(e)}function eO(e,t){e.indexOf(t)===-1&&e.push(t)}function Y0t(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function Z0t(e){return e.split("-")[0]}function Wk(e){return[].slice.call(e)}function tO(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function Om(){return document.createElement("div")}function Gv(e){return["Element","Fragment"].some(function(t){return LS(e,t)})}function X0t(e){return LS(e,"NodeList")}function J0t(e){return LS(e,"MouseEvent")}function Q0t(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function emt(e){return Gv(e)?[e]:X0t(e)?Wk(e):Array.isArray(e)?e:Wk(document.querySelectorAll(e))}function w6(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function nO(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function tmt(e){var t,n=rh(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function nmt(e,t){var n=t.clientX,r=t.clientY;return e.every(function(i){var a=i.popperRect,o=i.popperState,s=i.props,l=s.interactiveBorder,c=Z0t(o.placement),u=o.modifiersData.offset;if(!u)return!0;var f=c==="bottom"?u.top.y:0,h=c==="top"?u.bottom.y:0,m=c==="right"?u.left.x:0,g=c==="left"?u.right.x:0,b=a.top-r+f>l,C=r-a.bottom-h>l,w=a.left-n+m>l,k=n-a.right-g>l;return b||C||w||k})}function v6(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[r](i,n)})}function rO(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var gs={isTouch:!1},iO=0;function rmt(){gs.isTouch||(gs.isTouch=!0,window.performance&&document.addEventListener("mousemove",CH))}function CH(){var e=performance.now();e-iO<20&&(gs.isTouch=!1,document.removeEventListener("mousemove",CH)),iO=e}function imt(){var e=document.activeElement;if(Q0t(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function amt(){document.addEventListener("touchstart",rmt,od),window.addEventListener("blur",imt)}var omt=typeof window<"u"&&typeof document<"u",smt=omt?!!window.msCrypto:!1,lmt={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},cmt={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},qo=Object.assign({appendTo:vH,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},lmt,cmt),umt=Object.keys(qo),dmt=function(t){var n=Object.keys(t);n.forEach(function(r){qo[r]=t[r]})};function SH(e){var t=e.plugins||[],n=t.reduce(function(r,i){var a=i.name,o=i.defaultValue;if(a){var s;r[a]=e[a]!==void 0?e[a]:(s=qo[a])!=null?s:o}return r},{});return Object.assign({},e,n)}function fmt(e,t){var n=t?Object.keys(SH(Object.assign({},qo,{plugins:t}))):umt,r=n.reduce(function(i,a){var o=(e.getAttribute("data-tippy-"+a)||"").trim();if(!o)return i;if(a==="content")i[a]=o;else try{i[a]=JSON.parse(o)}catch{i[a]=o}return i},{});return r}function aO(e,t){var n=Object.assign({},t,{content:xH(t.content,[e])},t.ignoreAttributes?{}:fmt(e,t.plugins));return n.aria=Object.assign({},qo.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}var hmt=function(){return"innerHTML"};function M8(e,t){e[hmt()]=t}function oO(e){var t=Om();return e===!0?t.className=kH:(t.className=wH,Gv(e)?t.appendChild(e):M8(t,e)),t}function sO(e,t){Gv(t.content)?(M8(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?M8(e,t.content):e.textContent=t.content)}function O8(e){var t=e.firstElementChild,n=Wk(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(bH)}),arrow:n.find(function(r){return r.classList.contains(kH)||r.classList.contains(wH)}),backdrop:n.find(function(r){return r.classList.contains(G0t)})}}function DH(e){var t=Om(),n=Om();n.className=W0t,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Om();r.className=bH,r.setAttribute("data-state","hidden"),sO(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props);function i(a,o){var s=O8(t),l=s.box,c=s.content,u=s.arrow;o.theme?l.setAttribute("data-theme",o.theme):l.removeAttribute("data-theme"),typeof o.animation=="string"?l.setAttribute("data-animation",o.animation):l.removeAttribute("data-animation"),o.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof o.maxWidth=="number"?o.maxWidth+"px":o.maxWidth,o.role?l.setAttribute("role",o.role):l.removeAttribute("role"),(a.content!==o.content||a.allowHTML!==o.allowHTML)&&sO(c,e.props),o.arrow?u?a.arrow!==o.arrow&&(l.removeChild(u),l.appendChild(oO(o.arrow))):l.appendChild(oO(o.arrow)):u&&l.removeChild(u)}return{popper:t,onUpdate:i}}DH.$$tippy=!0;var pmt=1,Qy=[],x6=[];function mmt(e,t){var n=aO(e,Object.assign({},qo,SH(tO(t)))),r,i,a,o=!1,s=!1,l=!1,c=!1,u,f,h,m=[],g=QM(Et,n.interactiveDebounce),b,C=pmt++,w=null,k=Y0t(n.plugins),S={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},E={id:C,reference:e,popper:Om(),popperInstance:w,props:n,state:S,plugins:k,clearDelayTimeouts:Ir,setProps:pe,setContent:Ce,show:it,hide:It,hideWithInteractivity:Tt,enable:Re,disable:zt,unmount:vn,destroy:Tr};if(!n.render)return E;var A=n.render(E),_=A.popper,T=A.onUpdate;_.setAttribute("data-tippy-root",""),_.id="tippy-"+E.id,E.popper=_,e._tippy=E,_._tippy=E;var $=k.map(function(ge){return ge.fn(E)}),R=e.hasAttribute("aria-expanded");return Ge(),L(),ae(),Q("onCreate",[E]),n.showOnCreate&&Be(),_.addEventListener("mouseenter",function(){E.props.interactive&&E.state.isVisible&&E.clearDelayTimeouts()}),_.addEventListener("mouseleave",function(){E.props.interactive&&E.props.trigger.indexOf("mouseenter")>=0&&W().addEventListener("mousemove",g)}),E;function O(){var ge=E.props.touch;return Array.isArray(ge)?ge:[ge,0]}function G(){return O()[0]==="hold"}function V(){var ge;return!!((ge=E.props.render)!=null&&ge.$$tippy)}function Z(){return b||e}function W(){var ge=Z().parentNode;return ge?tmt(ge):document}function Y(){return O8(_)}function fe(ge){return E.state.isMounted&&!E.state.isVisible||gs.isTouch||u&&u.type==="focus"?0:k6(E.props.delay,ge?0:1,qo.delay)}function ae(ge){ge===void 0&&(ge=!1),_.style.pointerEvents=E.props.interactive&&!ge?"":"none",_.style.zIndex=""+E.props.zIndex}function Q(ge,Ye,nt){if(nt===void 0&&(nt=!0),$.forEach(function(Pt){Pt[ge]&&Pt[ge].apply(Pt,Ye)}),nt){var ct;(ct=E.props)[ge].apply(ct,Ye)}}function ce(){var ge=E.props.aria;if(ge.content){var Ye="aria-"+ge.content,nt=_.id,ct=rh(E.props.triggerTarget||e);ct.forEach(function(Pt){var Dt=Pt.getAttribute(Ye);if(E.state.isVisible)Pt.setAttribute(Ye,Dt?Dt+" "+nt:nt);else{var rr=Dt&&Dt.replace(nt,"").trim();rr?Pt.setAttribute(Ye,rr):Pt.removeAttribute(Ye)}})}}function L(){if(!(R||!E.props.aria.expanded)){var ge=rh(E.props.triggerTarget||e);ge.forEach(function(Ye){E.props.interactive?Ye.setAttribute("aria-expanded",E.state.isVisible&&Ye===Z()?"true":"false"):Ye.removeAttribute("aria-expanded")})}}function de(){W().removeEventListener("mousemove",g),Qy=Qy.filter(function(ge){return ge!==g})}function ue(ge){if(!(gs.isTouch&&(l||ge.type==="mousedown"))){var Ye=ge.composedPath&&ge.composedPath()[0]||ge.target;if(!(E.props.interactive&&rO(_,Ye))){if(rh(E.props.triggerTarget||e).some(function(nt){return rO(nt,Ye)})){if(gs.isTouch||E.state.isVisible&&E.props.trigger.indexOf("click")>=0)return}else Q("onClickOutside",[E,ge]);E.props.hideOnClick===!0&&(E.clearDelayTimeouts(),E.hide(),s=!0,setTimeout(function(){s=!1}),E.state.isMounted||J())}}}function I(){l=!0}function be(){l=!1}function ze(){var ge=W();ge.addEventListener("mousedown",ue,!0),ge.addEventListener("touchend",ue,od),ge.addEventListener("touchstart",be,od),ge.addEventListener("touchmove",I,od)}function J(){var ge=W();ge.removeEventListener("mousedown",ue,!0),ge.removeEventListener("touchend",ue,od),ge.removeEventListener("touchstart",be,od),ge.removeEventListener("touchmove",I,od)}function Ve(ge,Ye){We(ge,function(){!E.state.isVisible&&_.parentNode&&_.parentNode.contains(_)&&Ye()})}function ye(ge,Ye){We(ge,Ye)}function We(ge,Ye){var nt=Y().box;function ct(Pt){Pt.target===nt&&(v6(nt,"remove",ct),Ye())}if(ge===0)return Ye();v6(nt,"remove",f),v6(nt,"add",ct),f=ct}function Pe(ge,Ye,nt){nt===void 0&&(nt=!1);var ct=rh(E.props.triggerTarget||e);ct.forEach(function(Pt){Pt.addEventListener(ge,Ye,nt),m.push({node:Pt,eventType:ge,handler:Ye,options:nt})})}function Ge(){G()&&(Pe("touchstart",Kt,{passive:!0}),Pe("touchend",mt,{passive:!0})),K0t(E.props.trigger).forEach(function(ge){if(ge!=="manual")switch(Pe(ge,Kt),ge){case"mouseenter":Pe("mouseleave",mt);break;case"focus":Pe(smt?"focusout":"blur",K);break;case"focusin":Pe("focusout",K);break}})}function Xe(){m.forEach(function(ge){var Ye=ge.node,nt=ge.eventType,ct=ge.handler,Pt=ge.options;Ye.removeEventListener(nt,ct,Pt)}),m=[]}function Kt(ge){var Ye,nt=!1;if(!(!E.state.isEnabled||ie(ge)||s)){var ct=((Ye=u)==null?void 0:Ye.type)==="focus";u=ge,b=ge.currentTarget,L(),!E.state.isVisible&&J0t(ge)&&Qy.forEach(function(Pt){return Pt(ge)}),ge.type==="click"&&(E.props.trigger.indexOf("mouseenter")<0||o)&&E.props.hideOnClick!==!1&&E.state.isVisible?nt=!0:Be(ge),ge.type==="click"&&(o=!nt),nt&&!ct&&dt(ge)}}function Et(ge){var Ye=ge.target,nt=Z().contains(Ye)||_.contains(Ye);if(!(ge.type==="mousemove"&&nt)){var ct=ke().concat(_).map(function(Pt){var Dt,rr=Pt._tippy,So=(Dt=rr.popperInstance)==null?void 0:Dt.state;return So?{popperRect:Pt.getBoundingClientRect(),popperState:So,props:n}:null}).filter(Boolean);nmt(ct,ge)&&(de(),dt(ge))}}function mt(ge){var Ye=ie(ge)||E.props.trigger.indexOf("click")>=0&&o;if(!Ye){if(E.props.interactive){E.hideWithInteractivity(ge);return}dt(ge)}}function K(ge){E.props.trigger.indexOf("focusin")<0&&ge.target!==Z()||E.props.interactive&&ge.relatedTarget&&_.contains(ge.relatedTarget)||dt(ge)}function ie(ge){return gs.isTouch?G()!==ge.type.indexOf("touch")>=0:!1}function he(){Ie();var ge=E.props,Ye=ge.popperOptions,nt=ge.placement,ct=ge.offset,Pt=ge.getReferenceClientRect,Dt=ge.moveTransition,rr=V()?O8(_).arrow:null,So=Pt?{getBoundingClientRect:Pt,contextElement:Pt.contextElement||Z()}:e,tc={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Gs){var ns=Gs.state;if(V()){var Ks=Y(),Ys=Ks.box;["placement","reference-hidden","escaped"].forEach(function(rc){rc==="placement"?Ys.setAttribute("data-placement",ns.placement):ns.attributes.popper["data-popper-"+rc]?Ys.setAttribute("data-"+rc,""):Ys.removeAttribute("data-"+rc)}),ns.attributes.popper={}}}},ra=[{name:"offset",options:{offset:ct}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Dt}},tc];V()&&rr&&ra.push({name:"arrow",options:{element:rr,padding:3}}),ra.push.apply(ra,(Ye==null?void 0:Ye.modifiers)||[]),E.popperInstance=U0t(So,_,Object.assign({},Ye,{placement:nt,onFirstUpdate:h,modifiers:ra}))}function Ie(){E.popperInstance&&(E.popperInstance.destroy(),E.popperInstance=null)}function xe(){var ge=E.props.appendTo,Ye,nt=Z();E.props.interactive&&ge===vH||ge==="parent"?Ye=nt.parentNode:Ye=xH(ge,[nt]),Ye.contains(_)||Ye.appendChild(_),E.state.isMounted=!0,he()}function ke(){return Wk(_.querySelectorAll("[data-tippy-root]"))}function Be(ge){E.clearDelayTimeouts(),ge&&Q("onTrigger",[E,ge]),ze();var Ye=fe(!0),nt=O(),ct=nt[0],Pt=nt[1];gs.isTouch&&ct==="hold"&&Pt&&(Ye=Pt),Ye?r=setTimeout(function(){E.show()},Ye):E.show()}function dt(ge){if(E.clearDelayTimeouts(),Q("onUntrigger",[E,ge]),!E.state.isVisible){J();return}if(!(E.props.trigger.indexOf("mouseenter")>=0&&E.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(ge.type)>=0&&o)){var Ye=fe(!1);Ye?i=setTimeout(function(){E.state.isVisible&&E.hide()},Ye):a=requestAnimationFrame(function(){E.hide()})}}function Re(){E.state.isEnabled=!0}function zt(){E.hide(),E.state.isEnabled=!1}function Ir(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(a)}function pe(ge){if(!E.state.isDestroyed){Q("onBeforeUpdate",[E,ge]),Xe();var Ye=E.props,nt=aO(e,Object.assign({},Ye,tO(ge),{ignoreAttributes:!0}));E.props=nt,Ge(),Ye.interactiveDebounce!==nt.interactiveDebounce&&(de(),g=QM(Et,nt.interactiveDebounce)),Ye.triggerTarget&&!nt.triggerTarget?rh(Ye.triggerTarget).forEach(function(ct){ct.removeAttribute("aria-expanded")}):nt.triggerTarget&&e.removeAttribute("aria-expanded"),L(),ae(),T&&T(Ye,nt),E.popperInstance&&(he(),ke().forEach(function(ct){requestAnimationFrame(ct._tippy.popperInstance.forceUpdate)})),Q("onAfterUpdate",[E,ge])}}function Ce(ge){E.setProps({content:ge})}function it(){var ge=E.state.isVisible,Ye=E.state.isDestroyed,nt=!E.state.isEnabled,ct=gs.isTouch&&!E.props.touch,Pt=k6(E.props.duration,0,qo.duration);if(!(ge||Ye||nt||ct)&&!Z().hasAttribute("disabled")&&(Q("onShow",[E],!1),E.props.onShow(E)!==!1)){if(E.state.isVisible=!0,V()&&(_.style.visibility="visible"),ae(),ze(),E.state.isMounted||(_.style.transition="none"),V()){var Dt=Y(),rr=Dt.box,So=Dt.content;w6([rr,So],0)}h=function(){var ra;if(!(!E.state.isVisible||c)){if(c=!0,_.offsetHeight,_.style.transition=E.props.moveTransition,V()&&E.props.animation){var nc=Y(),Gs=nc.box,ns=nc.content;w6([Gs,ns],Pt),nO([Gs,ns],"visible")}ce(),L(),eO(x6,E),(ra=E.popperInstance)==null||ra.forceUpdate(),Q("onMount",[E]),E.props.animation&&V()&&ye(Pt,function(){E.state.isShown=!0,Q("onShown",[E])})}},xe()}}function It(){var ge=!E.state.isVisible,Ye=E.state.isDestroyed,nt=!E.state.isEnabled,ct=k6(E.props.duration,1,qo.duration);if(!(ge||Ye||nt)&&(Q("onHide",[E],!1),E.props.onHide(E)!==!1)){if(E.state.isVisible=!1,E.state.isShown=!1,c=!1,o=!1,V()&&(_.style.visibility="hidden"),de(),J(),ae(!0),V()){var Pt=Y(),Dt=Pt.box,rr=Pt.content;E.props.animation&&(w6([Dt,rr],ct),nO([Dt,rr],"hidden"))}ce(),L(),E.props.animation?V()&&Ve(ct,E.unmount):E.unmount()}}function Tt(ge){W().addEventListener("mousemove",g),eO(Qy,g),g(ge)}function vn(){E.state.isVisible&&E.hide(),E.state.isMounted&&(Ie(),ke().forEach(function(ge){ge._tippy.unmount()}),_.parentNode&&_.parentNode.removeChild(_),x6=x6.filter(function(ge){return ge!==E}),E.state.isMounted=!1,Q("onHidden",[E]))}function Tr(){E.state.isDestroyed||(E.clearDelayTimeouts(),E.unmount(),Xe(),delete e._tippy,E.state.isDestroyed=!0,Q("onDestroy",[E]))}}function Rp(e,t){t===void 0&&(t={});var n=qo.plugins.concat(t.plugins||[]);amt();var r=Object.assign({},t,{plugins:n}),i=emt(e),a=i.reduce(function(o,s){var l=s&&mmt(s,r);return l&&o.push(l),o},[]);return Gv(e)?a[0]:a}Rp.defaultProps=qo;Rp.setDefaultProps=dmt;Rp.currentInput=gs;Object.assign({},dH,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});Rp.setDefaultProps({render:DH});var IS=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},ls=(e,t,n)=>(IS(e,t,"read from private field"),n?n.call(e):t.get(e)),Pf=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},F0=(e,t,n,r)=>(IS(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),gmt=(e,t,n)=>(IS(e,t,"access private method"),n),hl,wb,vb,xb,Cb,N8,EH;let TH=class{constructor(t){Pf(this,N8),Pf(this,hl,void 0),Pf(this,wb,void 0),Pf(this,vb,void 0),Pf(this,xb,void 0),Pf(this,Cb,void 0),F0(this,Cb,(n,r)=>{const{state:i,composing:a}=n,{selection:o,doc:s}=i,{ranges:l}=o,c=Math.min(...l.map(h=>h.$from.pos)),u=Math.max(...l.map(h=>h.$to.pos)),f=r&&r.doc.eq(s)&&r.selection.eq(o);if(ls(this,hl)??F0(this,hl,Rp(n.dom,{trigger:"manual",interactive:!0,...ls(this,wb),content:this.element})),!(a||f)){if(!ls(this,xb).call(this,n,r)){this.hide();return}ls(this,hl).setProps({getReferenceClientRect:()=>cq(n,c,u)}),this.show()}}),this.update=(n,r)=>{TS(ls(this,Cb),ls(this,vb))(n,r)},this.destroy=()=>{var n;(n=ls(this,hl))==null||n.destroy()},this.show=()=>{var n;(n=ls(this,hl))==null||n.show()},this.hide=()=>{var n;(n=ls(this,hl))==null||n.hide()},this.getInstance=()=>ls(this,hl),this.element=t.content,F0(this,wb,t.tippyOptions??{}),F0(this,vb,t.debounce??200),F0(this,xb,t.shouldShow??gmt(this,N8,EH))}};hl=new WeakMap,wb=new WeakMap,vb=new WeakMap,xb=new WeakMap,Cb=new WeakMap,N8=new WeakSet,EH=function(e){const{doc:t,selection:n}=e.state,{empty:r,from:i,to:a}=n,o=!t.textBetween(i,a).length&&e.state.selection instanceof Nt,s=this.element.contains(document.activeElement),l=!e.hasFocus()&&!s,c=!e.editable;return!(l||r||o||c)};const AH=e=>{const t=Lr({},`${e}_TOOLTIP_SPEC`),n=yr(i=>{const a=i.get(t.key);return new Bn({key:new Fn(`${e}_TOOLTIP`),...a})}),r=[t,n];return r.key=t.key,r.pluginKey=n.key,t.meta={package:"@milkdown/plugin-tooltip",displayName:`Ctx|${e}`},n.meta={package:"@milkdown/plugin-tooltip",displayName:`Prose|${e}`},r},ymt=[["ß","ss"],["ẞ","Ss"],["ä","ae"],["Ä","Ae"],["ö","oe"],["Ö","Oe"],["ü","ue"],["Ü","Ue"],["À","A"],["Á","A"],["Â","A"],["Ã","A"],["Ä","Ae"],["Å","A"],["Æ","AE"],["Ç","C"],["È","E"],["É","E"],["Ê","E"],["Ë","E"],["Ì","I"],["Í","I"],["Î","I"],["Ï","I"],["Ð","D"],["Ñ","N"],["Ò","O"],["Ó","O"],["Ô","O"],["Õ","O"],["Ö","Oe"],["Ő","O"],["Ø","O"],["Ù","U"],["Ú","U"],["Û","U"],["Ü","Ue"],["Ű","U"],["Ý","Y"],["Þ","TH"],["ß","ss"],["à","a"],["á","a"],["â","a"],["ã","a"],["ä","ae"],["å","a"],["æ","ae"],["ç","c"],["è","e"],["é","e"],["ê","e"],["ë","e"],["ì","i"],["í","i"],["î","i"],["ï","i"],["ð","d"],["ñ","n"],["ò","o"],["ó","o"],["ô","o"],["õ","o"],["ö","oe"],["ő","o"],["ø","o"],["ù","u"],["ú","u"],["û","u"],["ü","ue"],["ű","u"],["ý","y"],["þ","th"],["ÿ","y"],["ẞ","SS"],["à","a"],["À","A"],["á","a"],["Á","A"],["â","a"],["Â","A"],["ã","a"],["Ã","A"],["è","e"],["È","E"],["é","e"],["É","E"],["ê","e"],["Ê","E"],["ì","i"],["Ì","I"],["í","i"],["Í","I"],["ò","o"],["Ò","O"],["ó","o"],["Ó","O"],["ô","o"],["Ô","O"],["õ","o"],["Õ","O"],["ù","u"],["Ù","U"],["ú","u"],["Ú","U"],["ý","y"],["Ý","Y"],["ă","a"],["Ă","A"],["Đ","D"],["đ","d"],["ĩ","i"],["Ĩ","I"],["ũ","u"],["Ũ","U"],["ơ","o"],["Ơ","O"],["ư","u"],["Ư","U"],["ạ","a"],["Ạ","A"],["ả","a"],["Ả","A"],["ấ","a"],["Ấ","A"],["ầ","a"],["Ầ","A"],["ẩ","a"],["Ẩ","A"],["ẫ","a"],["Ẫ","A"],["ậ","a"],["Ậ","A"],["ắ","a"],["Ắ","A"],["ằ","a"],["Ằ","A"],["ẳ","a"],["Ẳ","A"],["ẵ","a"],["Ẵ","A"],["ặ","a"],["Ặ","A"],["ẹ","e"],["Ẹ","E"],["ẻ","e"],["Ẻ","E"],["ẽ","e"],["Ẽ","E"],["ế","e"],["Ế","E"],["ề","e"],["Ề","E"],["ể","e"],["Ể","E"],["ễ","e"],["Ễ","E"],["ệ","e"],["Ệ","E"],["ỉ","i"],["Ỉ","I"],["ị","i"],["Ị","I"],["ọ","o"],["Ọ","O"],["ỏ","o"],["Ỏ","O"],["ố","o"],["Ố","O"],["ồ","o"],["Ồ","O"],["ổ","o"],["Ổ","O"],["ỗ","o"],["Ỗ","O"],["ộ","o"],["Ộ","O"],["ớ","o"],["Ớ","O"],["ờ","o"],["Ờ","O"],["ở","o"],["Ở","O"],["ỡ","o"],["Ỡ","O"],["ợ","o"],["Ợ","O"],["ụ","u"],["Ụ","U"],["ủ","u"],["Ủ","U"],["ứ","u"],["Ứ","U"],["ừ","u"],["Ừ","U"],["ử","u"],["Ử","U"],["ữ","u"],["Ữ","U"],["ự","u"],["Ự","U"],["ỳ","y"],["Ỳ","Y"],["ỵ","y"],["Ỵ","Y"],["ỷ","y"],["Ỷ","Y"],["ỹ","y"],["Ỹ","Y"],["ء","e"],["آ","a"],["أ","a"],["ؤ","w"],["إ","i"],["ئ","y"],["ا","a"],["ب","b"],["ة","t"],["ت","t"],["ث","th"],["ج","j"],["ح","h"],["خ","kh"],["د","d"],["ذ","dh"],["ر","r"],["ز","z"],["س","s"],["ش","sh"],["ص","s"],["ض","d"],["ط","t"],["ظ","z"],["ع","e"],["غ","gh"],["ـ","_"],["ف","f"],["ق","q"],["ك","k"],["ل","l"],["م","m"],["ن","n"],["ه","h"],["و","w"],["ى","a"],["ي","y"],["َ‎","a"],["ُ","u"],["ِ‎","i"],["٠","0"],["١","1"],["٢","2"],["٣","3"],["٤","4"],["٥","5"],["٦","6"],["٧","7"],["٨","8"],["٩","9"],["چ","ch"],["ک","k"],["گ","g"],["پ","p"],["ژ","zh"],["ی","y"],["۰","0"],["۱","1"],["۲","2"],["۳","3"],["۴","4"],["۵","5"],["۶","6"],["۷","7"],["۸","8"],["۹","9"],["ټ","p"],["ځ","z"],["څ","c"],["ډ","d"],["ﺫ","d"],["ﺭ","r"],["ړ","r"],["ﺯ","z"],["ږ","g"],["ښ","x"],["ګ","g"],["ڼ","n"],["ۀ","e"],["ې","e"],["ۍ","ai"],["ٹ","t"],["ڈ","d"],["ڑ","r"],["ں","n"],["ہ","h"],["ھ","h"],["ے","e"],["А","A"],["а","a"],["Б","B"],["б","b"],["В","V"],["в","v"],["Г","G"],["г","g"],["Д","D"],["д","d"],["ъе","ye"],["Ъе","Ye"],["ъЕ","yE"],["ЪЕ","YE"],["Е","E"],["е","e"],["Ё","Yo"],["ё","yo"],["Ж","Zh"],["ж","zh"],["З","Z"],["з","z"],["И","I"],["и","i"],["ый","iy"],["Ый","Iy"],["ЫЙ","IY"],["ыЙ","iY"],["Й","Y"],["й","y"],["К","K"],["к","k"],["Л","L"],["л","l"],["М","M"],["м","m"],["Н","N"],["н","n"],["О","O"],["о","o"],["П","P"],["п","p"],["Р","R"],["р","r"],["С","S"],["с","s"],["Т","T"],["т","t"],["У","U"],["у","u"],["Ф","F"],["ф","f"],["Х","Kh"],["х","kh"],["Ц","Ts"],["ц","ts"],["Ч","Ch"],["ч","ch"],["Ш","Sh"],["ш","sh"],["Щ","Sch"],["щ","sch"],["Ъ",""],["ъ",""],["Ы","Y"],["ы","y"],["Ь",""],["ь",""],["Э","E"],["э","e"],["Ю","Yu"],["ю","yu"],["Я","Ya"],["я","ya"],["ă","a"],["Ă","A"],["ș","s"],["Ș","S"],["ț","t"],["Ț","T"],["ţ","t"],["Ţ","T"],["ş","s"],["Ş","S"],["ç","c"],["Ç","C"],["ğ","g"],["Ğ","G"],["ı","i"],["İ","I"],["ա","a"],["Ա","A"],["բ","b"],["Բ","B"],["գ","g"],["Գ","G"],["դ","d"],["Դ","D"],["ե","ye"],["Ե","Ye"],["զ","z"],["Զ","Z"],["է","e"],["Է","E"],["ը","y"],["Ը","Y"],["թ","t"],["Թ","T"],["ժ","zh"],["Ժ","Zh"],["ի","i"],["Ի","I"],["լ","l"],["Լ","L"],["խ","kh"],["Խ","Kh"],["ծ","ts"],["Ծ","Ts"],["կ","k"],["Կ","K"],["հ","h"],["Հ","H"],["ձ","dz"],["Ձ","Dz"],["ղ","gh"],["Ղ","Gh"],["ճ","tch"],["Ճ","Tch"],["մ","m"],["Մ","M"],["յ","y"],["Յ","Y"],["ն","n"],["Ն","N"],["շ","sh"],["Շ","Sh"],["ո","vo"],["Ո","Vo"],["չ","ch"],["Չ","Ch"],["պ","p"],["Պ","P"],["ջ","j"],["Ջ","J"],["ռ","r"],["Ռ","R"],["ս","s"],["Ս","S"],["վ","v"],["Վ","V"],["տ","t"],["Տ","T"],["ր","r"],["Ր","R"],["ց","c"],["Ց","C"],["ու","u"],["ՈՒ","U"],["Ու","U"],["փ","p"],["Փ","P"],["ք","q"],["Ք","Q"],["օ","o"],["Օ","O"],["ֆ","f"],["Ֆ","F"],["և","yev"],["ა","a"],["ბ","b"],["გ","g"],["დ","d"],["ე","e"],["ვ","v"],["ზ","z"],["თ","t"],["ი","i"],["კ","k"],["ლ","l"],["მ","m"],["ნ","n"],["ო","o"],["პ","p"],["ჟ","zh"],["რ","r"],["ს","s"],["ტ","t"],["უ","u"],["ფ","ph"],["ქ","q"],["ღ","gh"],["ყ","k"],["შ","sh"],["ჩ","ch"],["ც","ts"],["ძ","dz"],["წ","ts"],["ჭ","tch"],["ხ","kh"],["ჯ","j"],["ჰ","h"],["č","c"],["ď","d"],["ě","e"],["ň","n"],["ř","r"],["š","s"],["ť","t"],["ů","u"],["ž","z"],["Č","C"],["Ď","D"],["Ě","E"],["Ň","N"],["Ř","R"],["Š","S"],["Ť","T"],["Ů","U"],["Ž","Z"],["ހ","h"],["ށ","sh"],["ނ","n"],["ރ","r"],["ބ","b"],["ޅ","lh"],["ކ","k"],["އ","a"],["ވ","v"],["މ","m"],["ފ","f"],["ދ","dh"],["ތ","th"],["ލ","l"],["ގ","g"],["ޏ","gn"],["ސ","s"],["ޑ","d"],["ޒ","z"],["ޓ","t"],["ޔ","y"],["ޕ","p"],["ޖ","j"],["ޗ","ch"],["ޘ","tt"],["ޙ","hh"],["ޚ","kh"],["ޛ","th"],["ޜ","z"],["ޝ","sh"],["ޞ","s"],["ޟ","d"],["ޠ","t"],["ޡ","z"],["ޢ","a"],["ޣ","gh"],["ޤ","q"],["ޥ","w"],["ަ","a"],["ާ","aa"],["ި","i"],["ީ","ee"],["ު","u"],["ޫ","oo"],["ެ","e"],["ޭ","ey"],["ޮ","o"],["ޯ","oa"],["ް",""],["α","a"],["β","v"],["γ","g"],["δ","d"],["ε","e"],["ζ","z"],["η","i"],["θ","th"],["ι","i"],["κ","k"],["λ","l"],["μ","m"],["ν","n"],["ξ","ks"],["ο","o"],["π","p"],["ρ","r"],["σ","s"],["τ","t"],["υ","y"],["φ","f"],["χ","x"],["ψ","ps"],["ω","o"],["ά","a"],["έ","e"],["ί","i"],["ό","o"],["ύ","y"],["ή","i"],["ώ","o"],["ς","s"],["ϊ","i"],["ΰ","y"],["ϋ","y"],["ΐ","i"],["Α","A"],["Β","B"],["Γ","G"],["Δ","D"],["Ε","E"],["Ζ","Z"],["Η","I"],["Θ","TH"],["Ι","I"],["Κ","K"],["Λ","L"],["Μ","M"],["Ν","N"],["Ξ","KS"],["Ο","O"],["Π","P"],["Ρ","R"],["Σ","S"],["Τ","T"],["Υ","Y"],["Φ","F"],["Χ","X"],["Ψ","PS"],["Ω","O"],["Ά","A"],["Έ","E"],["Ί","I"],["Ό","O"],["Ύ","Y"],["Ή","I"],["Ώ","O"],["Ϊ","I"],["Ϋ","Y"],["ā","a"],["ē","e"],["ģ","g"],["ī","i"],["ķ","k"],["ļ","l"],["ņ","n"],["ū","u"],["Ā","A"],["Ē","E"],["Ģ","G"],["Ī","I"],["Ķ","K"],["Ļ","L"],["Ņ","N"],["Ū","U"],["č","c"],["š","s"],["ž","z"],["Č","C"],["Š","S"],["Ž","Z"],["ą","a"],["č","c"],["ę","e"],["ė","e"],["į","i"],["š","s"],["ų","u"],["ū","u"],["ž","z"],["Ą","A"],["Č","C"],["Ę","E"],["Ė","E"],["Į","I"],["Š","S"],["Ų","U"],["Ū","U"],["Ќ","Kj"],["ќ","kj"],["Љ","Lj"],["љ","lj"],["Њ","Nj"],["њ","nj"],["Тс","Ts"],["тс","ts"],["ą","a"],["ć","c"],["ę","e"],["ł","l"],["ń","n"],["ś","s"],["ź","z"],["ż","z"],["Ą","A"],["Ć","C"],["Ę","E"],["Ł","L"],["Ń","N"],["Ś","S"],["Ź","Z"],["Ż","Z"],["Є","Ye"],["І","I"],["Ї","Yi"],["Ґ","G"],["є","ye"],["і","i"],["ї","yi"],["ґ","g"],["IJ","IJ"],["ij","ij"],["¢","c"],["¥","Y"],["߿","b"],["৳","t"],["૱","Bo"],["฿","B"],["₠","CE"],["₡","C"],["₢","Cr"],["₣","F"],["₥","m"],["₦","N"],["₧","Pt"],["₨","Rs"],["₩","W"],["₫","s"],["€","E"],["₭","K"],["₮","T"],["₯","Dp"],["₰","S"],["₱","P"],["₲","G"],["₳","A"],["₴","S"],["₵","C"],["₶","tt"],["₷","S"],["₸","T"],["₹","R"],["₺","L"],["₽","P"],["₿","B"],["﹩","$"],["¢","c"],["¥","Y"],["₩","W"],["𝐀","A"],["𝐁","B"],["𝐂","C"],["𝐃","D"],["𝐄","E"],["𝐅","F"],["𝐆","G"],["𝐇","H"],["𝐈","I"],["𝐉","J"],["𝐊","K"],["𝐋","L"],["𝐌","M"],["𝐍","N"],["𝐎","O"],["𝐏","P"],["𝐐","Q"],["𝐑","R"],["𝐒","S"],["𝐓","T"],["𝐔","U"],["𝐕","V"],["𝐖","W"],["𝐗","X"],["𝐘","Y"],["𝐙","Z"],["𝐚","a"],["𝐛","b"],["𝐜","c"],["𝐝","d"],["𝐞","e"],["𝐟","f"],["𝐠","g"],["𝐡","h"],["𝐢","i"],["𝐣","j"],["𝐤","k"],["𝐥","l"],["𝐦","m"],["𝐧","n"],["𝐨","o"],["𝐩","p"],["𝐪","q"],["𝐫","r"],["𝐬","s"],["𝐭","t"],["𝐮","u"],["𝐯","v"],["𝐰","w"],["𝐱","x"],["𝐲","y"],["𝐳","z"],["𝐴","A"],["𝐵","B"],["𝐶","C"],["𝐷","D"],["𝐸","E"],["𝐹","F"],["𝐺","G"],["𝐻","H"],["𝐼","I"],["𝐽","J"],["𝐾","K"],["𝐿","L"],["𝑀","M"],["𝑁","N"],["𝑂","O"],["𝑃","P"],["𝑄","Q"],["𝑅","R"],["𝑆","S"],["𝑇","T"],["𝑈","U"],["𝑉","V"],["𝑊","W"],["𝑋","X"],["𝑌","Y"],["𝑍","Z"],["𝑎","a"],["𝑏","b"],["𝑐","c"],["𝑑","d"],["𝑒","e"],["𝑓","f"],["𝑔","g"],["𝑖","i"],["𝑗","j"],["𝑘","k"],["𝑙","l"],["𝑚","m"],["𝑛","n"],["𝑜","o"],["𝑝","p"],["𝑞","q"],["𝑟","r"],["𝑠","s"],["𝑡","t"],["𝑢","u"],["𝑣","v"],["𝑤","w"],["𝑥","x"],["𝑦","y"],["𝑧","z"],["𝑨","A"],["𝑩","B"],["𝑪","C"],["𝑫","D"],["𝑬","E"],["𝑭","F"],["𝑮","G"],["𝑯","H"],["𝑰","I"],["𝑱","J"],["𝑲","K"],["𝑳","L"],["𝑴","M"],["𝑵","N"],["𝑶","O"],["𝑷","P"],["𝑸","Q"],["𝑹","R"],["𝑺","S"],["𝑻","T"],["𝑼","U"],["𝑽","V"],["𝑾","W"],["𝑿","X"],["𝒀","Y"],["𝒁","Z"],["𝒂","a"],["𝒃","b"],["𝒄","c"],["𝒅","d"],["𝒆","e"],["𝒇","f"],["𝒈","g"],["𝒉","h"],["𝒊","i"],["𝒋","j"],["𝒌","k"],["𝒍","l"],["𝒎","m"],["𝒏","n"],["𝒐","o"],["𝒑","p"],["𝒒","q"],["𝒓","r"],["𝒔","s"],["𝒕","t"],["𝒖","u"],["𝒗","v"],["𝒘","w"],["𝒙","x"],["𝒚","y"],["𝒛","z"],["𝒜","A"],["𝒞","C"],["𝒟","D"],["𝒢","g"],["𝒥","J"],["𝒦","K"],["𝒩","N"],["𝒪","O"],["𝒫","P"],["𝒬","Q"],["𝒮","S"],["𝒯","T"],["𝒰","U"],["𝒱","V"],["𝒲","W"],["𝒳","X"],["𝒴","Y"],["𝒵","Z"],["𝒶","a"],["𝒷","b"],["𝒸","c"],["𝒹","d"],["𝒻","f"],["𝒽","h"],["𝒾","i"],["𝒿","j"],["𝓀","h"],["𝓁","l"],["𝓂","m"],["𝓃","n"],["𝓅","p"],["𝓆","q"],["𝓇","r"],["𝓈","s"],["𝓉","t"],["𝓊","u"],["𝓋","v"],["𝓌","w"],["𝓍","x"],["𝓎","y"],["𝓏","z"],["𝓐","A"],["𝓑","B"],["𝓒","C"],["𝓓","D"],["𝓔","E"],["𝓕","F"],["𝓖","G"],["𝓗","H"],["𝓘","I"],["𝓙","J"],["𝓚","K"],["𝓛","L"],["𝓜","M"],["𝓝","N"],["𝓞","O"],["𝓟","P"],["𝓠","Q"],["𝓡","R"],["𝓢","S"],["𝓣","T"],["𝓤","U"],["𝓥","V"],["𝓦","W"],["𝓧","X"],["𝓨","Y"],["𝓩","Z"],["𝓪","a"],["𝓫","b"],["𝓬","c"],["𝓭","d"],["𝓮","e"],["𝓯","f"],["𝓰","g"],["𝓱","h"],["𝓲","i"],["𝓳","j"],["𝓴","k"],["𝓵","l"],["𝓶","m"],["𝓷","n"],["𝓸","o"],["𝓹","p"],["𝓺","q"],["𝓻","r"],["𝓼","s"],["𝓽","t"],["𝓾","u"],["𝓿","v"],["𝔀","w"],["𝔁","x"],["𝔂","y"],["𝔃","z"],["𝔄","A"],["𝔅","B"],["𝔇","D"],["𝔈","E"],["𝔉","F"],["𝔊","G"],["𝔍","J"],["𝔎","K"],["𝔏","L"],["𝔐","M"],["𝔑","N"],["𝔒","O"],["𝔓","P"],["𝔔","Q"],["𝔖","S"],["𝔗","T"],["𝔘","U"],["𝔙","V"],["𝔚","W"],["𝔛","X"],["𝔜","Y"],["𝔞","a"],["𝔟","b"],["𝔠","c"],["𝔡","d"],["𝔢","e"],["𝔣","f"],["𝔤","g"],["𝔥","h"],["𝔦","i"],["𝔧","j"],["𝔨","k"],["𝔩","l"],["𝔪","m"],["𝔫","n"],["𝔬","o"],["𝔭","p"],["𝔮","q"],["𝔯","r"],["𝔰","s"],["𝔱","t"],["𝔲","u"],["𝔳","v"],["𝔴","w"],["𝔵","x"],["𝔶","y"],["𝔷","z"],["𝔸","A"],["𝔹","B"],["𝔻","D"],["𝔼","E"],["𝔽","F"],["𝔾","G"],["𝕀","I"],["𝕁","J"],["𝕂","K"],["𝕃","L"],["𝕄","M"],["𝕆","N"],["𝕊","S"],["𝕋","T"],["𝕌","U"],["𝕍","V"],["𝕎","W"],["𝕏","X"],["𝕐","Y"],["𝕒","a"],["𝕓","b"],["𝕔","c"],["𝕕","d"],["𝕖","e"],["𝕗","f"],["𝕘","g"],["𝕙","h"],["𝕚","i"],["𝕛","j"],["𝕜","k"],["𝕝","l"],["𝕞","m"],["𝕟","n"],["𝕠","o"],["𝕡","p"],["𝕢","q"],["𝕣","r"],["𝕤","s"],["𝕥","t"],["𝕦","u"],["𝕧","v"],["𝕨","w"],["𝕩","x"],["𝕪","y"],["𝕫","z"],["𝕬","A"],["𝕭","B"],["𝕮","C"],["𝕯","D"],["𝕰","E"],["𝕱","F"],["𝕲","G"],["𝕳","H"],["𝕴","I"],["𝕵","J"],["𝕶","K"],["𝕷","L"],["𝕸","M"],["𝕹","N"],["𝕺","O"],["𝕻","P"],["𝕼","Q"],["𝕽","R"],["𝕾","S"],["𝕿","T"],["𝖀","U"],["𝖁","V"],["𝖂","W"],["𝖃","X"],["𝖄","Y"],["𝖅","Z"],["𝖆","a"],["𝖇","b"],["𝖈","c"],["𝖉","d"],["𝖊","e"],["𝖋","f"],["𝖌","g"],["𝖍","h"],["𝖎","i"],["𝖏","j"],["𝖐","k"],["𝖑","l"],["𝖒","m"],["𝖓","n"],["𝖔","o"],["𝖕","p"],["𝖖","q"],["𝖗","r"],["𝖘","s"],["𝖙","t"],["𝖚","u"],["𝖛","v"],["𝖜","w"],["𝖝","x"],["𝖞","y"],["𝖟","z"],["𝖠","A"],["𝖡","B"],["𝖢","C"],["𝖣","D"],["𝖤","E"],["𝖥","F"],["𝖦","G"],["𝖧","H"],["𝖨","I"],["𝖩","J"],["𝖪","K"],["𝖫","L"],["𝖬","M"],["𝖭","N"],["𝖮","O"],["𝖯","P"],["𝖰","Q"],["𝖱","R"],["𝖲","S"],["𝖳","T"],["𝖴","U"],["𝖵","V"],["𝖶","W"],["𝖷","X"],["𝖸","Y"],["𝖹","Z"],["𝖺","a"],["𝖻","b"],["𝖼","c"],["𝖽","d"],["𝖾","e"],["𝖿","f"],["𝗀","g"],["𝗁","h"],["𝗂","i"],["𝗃","j"],["𝗄","k"],["𝗅","l"],["𝗆","m"],["𝗇","n"],["𝗈","o"],["𝗉","p"],["𝗊","q"],["𝗋","r"],["𝗌","s"],["𝗍","t"],["𝗎","u"],["𝗏","v"],["𝗐","w"],["𝗑","x"],["𝗒","y"],["𝗓","z"],["𝗔","A"],["𝗕","B"],["𝗖","C"],["𝗗","D"],["𝗘","E"],["𝗙","F"],["𝗚","G"],["𝗛","H"],["𝗜","I"],["𝗝","J"],["𝗞","K"],["𝗟","L"],["𝗠","M"],["𝗡","N"],["𝗢","O"],["𝗣","P"],["𝗤","Q"],["𝗥","R"],["𝗦","S"],["𝗧","T"],["𝗨","U"],["𝗩","V"],["𝗪","W"],["𝗫","X"],["𝗬","Y"],["𝗭","Z"],["𝗮","a"],["𝗯","b"],["𝗰","c"],["𝗱","d"],["𝗲","e"],["𝗳","f"],["𝗴","g"],["𝗵","h"],["𝗶","i"],["𝗷","j"],["𝗸","k"],["𝗹","l"],["𝗺","m"],["𝗻","n"],["𝗼","o"],["𝗽","p"],["𝗾","q"],["𝗿","r"],["𝘀","s"],["𝘁","t"],["𝘂","u"],["𝘃","v"],["𝘄","w"],["𝘅","x"],["𝘆","y"],["𝘇","z"],["𝘈","A"],["𝘉","B"],["𝘊","C"],["𝘋","D"],["𝘌","E"],["𝘍","F"],["𝘎","G"],["𝘏","H"],["𝘐","I"],["𝘑","J"],["𝘒","K"],["𝘓","L"],["𝘔","M"],["𝘕","N"],["𝘖","O"],["𝘗","P"],["𝘘","Q"],["𝘙","R"],["𝘚","S"],["𝘛","T"],["𝘜","U"],["𝘝","V"],["𝘞","W"],["𝘟","X"],["𝘠","Y"],["𝘡","Z"],["𝘢","a"],["𝘣","b"],["𝘤","c"],["𝘥","d"],["𝘦","e"],["𝘧","f"],["𝘨","g"],["𝘩","h"],["𝘪","i"],["𝘫","j"],["𝘬","k"],["𝘭","l"],["𝘮","m"],["𝘯","n"],["𝘰","o"],["𝘱","p"],["𝘲","q"],["𝘳","r"],["𝘴","s"],["𝘵","t"],["𝘶","u"],["𝘷","v"],["𝘸","w"],["𝘹","x"],["𝘺","y"],["𝘻","z"],["𝘼","A"],["𝘽","B"],["𝘾","C"],["𝘿","D"],["𝙀","E"],["𝙁","F"],["𝙂","G"],["𝙃","H"],["𝙄","I"],["𝙅","J"],["𝙆","K"],["𝙇","L"],["𝙈","M"],["𝙉","N"],["𝙊","O"],["𝙋","P"],["𝙌","Q"],["𝙍","R"],["𝙎","S"],["𝙏","T"],["𝙐","U"],["𝙑","V"],["𝙒","W"],["𝙓","X"],["𝙔","Y"],["𝙕","Z"],["𝙖","a"],["𝙗","b"],["𝙘","c"],["𝙙","d"],["𝙚","e"],["𝙛","f"],["𝙜","g"],["𝙝","h"],["𝙞","i"],["𝙟","j"],["𝙠","k"],["𝙡","l"],["𝙢","m"],["𝙣","n"],["𝙤","o"],["𝙥","p"],["𝙦","q"],["𝙧","r"],["𝙨","s"],["𝙩","t"],["𝙪","u"],["𝙫","v"],["𝙬","w"],["𝙭","x"],["𝙮","y"],["𝙯","z"],["𝙰","A"],["𝙱","B"],["𝙲","C"],["𝙳","D"],["𝙴","E"],["𝙵","F"],["𝙶","G"],["𝙷","H"],["𝙸","I"],["𝙹","J"],["𝙺","K"],["𝙻","L"],["𝙼","M"],["𝙽","N"],["𝙾","O"],["𝙿","P"],["𝚀","Q"],["𝚁","R"],["𝚂","S"],["𝚃","T"],["𝚄","U"],["𝚅","V"],["𝚆","W"],["𝚇","X"],["𝚈","Y"],["𝚉","Z"],["𝚊","a"],["𝚋","b"],["𝚌","c"],["𝚍","d"],["𝚎","e"],["𝚏","f"],["𝚐","g"],["𝚑","h"],["𝚒","i"],["𝚓","j"],["𝚔","k"],["𝚕","l"],["𝚖","m"],["𝚗","n"],["𝚘","o"],["𝚙","p"],["𝚚","q"],["𝚛","r"],["𝚜","s"],["𝚝","t"],["𝚞","u"],["𝚟","v"],["𝚠","w"],["𝚡","x"],["𝚢","y"],["𝚣","z"],["𝚤","l"],["𝚥","j"],["𝛢","A"],["𝛣","B"],["𝛤","G"],["𝛥","D"],["𝛦","E"],["𝛧","Z"],["𝛨","I"],["𝛩","TH"],["𝛪","I"],["𝛫","K"],["𝛬","L"],["𝛭","M"],["𝛮","N"],["𝛯","KS"],["𝛰","O"],["𝛱","P"],["𝛲","R"],["𝛳","TH"],["𝛴","S"],["𝛵","T"],["𝛶","Y"],["𝛷","F"],["𝛸","x"],["𝛹","PS"],["𝛺","O"],["𝛻","D"],["𝛼","a"],["𝛽","b"],["𝛾","g"],["𝛿","d"],["𝜀","e"],["𝜁","z"],["𝜂","i"],["𝜃","th"],["𝜄","i"],["𝜅","k"],["𝜆","l"],["𝜇","m"],["𝜈","n"],["𝜉","ks"],["𝜊","o"],["𝜋","p"],["𝜌","r"],["𝜍","s"],["𝜎","s"],["𝜏","t"],["𝜐","y"],["𝜑","f"],["𝜒","x"],["𝜓","ps"],["𝜔","o"],["𝜕","d"],["𝜖","E"],["𝜗","TH"],["𝜘","K"],["𝜙","f"],["𝜚","r"],["𝜛","p"],["𝜜","A"],["𝜝","V"],["𝜞","G"],["𝜟","D"],["𝜠","E"],["𝜡","Z"],["𝜢","I"],["𝜣","TH"],["𝜤","I"],["𝜥","K"],["𝜦","L"],["𝜧","M"],["𝜨","N"],["𝜩","KS"],["𝜪","O"],["𝜫","P"],["𝜬","S"],["𝜭","TH"],["𝜮","S"],["𝜯","T"],["𝜰","Y"],["𝜱","F"],["𝜲","X"],["𝜳","PS"],["𝜴","O"],["𝜵","D"],["𝜶","a"],["𝜷","v"],["𝜸","g"],["𝜹","d"],["𝜺","e"],["𝜻","z"],["𝜼","i"],["𝜽","th"],["𝜾","i"],["𝜿","k"],["𝝀","l"],["𝝁","m"],["𝝂","n"],["𝝃","ks"],["𝝄","o"],["𝝅","p"],["𝝆","r"],["𝝇","s"],["𝝈","s"],["𝝉","t"],["𝝊","y"],["𝝋","f"],["𝝌","x"],["𝝍","ps"],["𝝎","o"],["𝝏","a"],["𝝐","e"],["𝝑","i"],["𝝒","k"],["𝝓","f"],["𝝔","r"],["𝝕","p"],["𝝖","A"],["𝝗","B"],["𝝘","G"],["𝝙","D"],["𝝚","E"],["𝝛","Z"],["𝝜","I"],["𝝝","TH"],["𝝞","I"],["𝝟","K"],["𝝠","L"],["𝝡","M"],["𝝢","N"],["𝝣","KS"],["𝝤","O"],["𝝥","P"],["𝝦","R"],["𝝧","TH"],["𝝨","S"],["𝝩","T"],["𝝪","Y"],["𝝫","F"],["𝝬","X"],["𝝭","PS"],["𝝮","O"],["𝝯","D"],["𝝰","a"],["𝝱","v"],["𝝲","g"],["𝝳","d"],["𝝴","e"],["𝝵","z"],["𝝶","i"],["𝝷","th"],["𝝸","i"],["𝝹","k"],["𝝺","l"],["𝝻","m"],["𝝼","n"],["𝝽","ks"],["𝝾","o"],["𝝿","p"],["𝞀","r"],["𝞁","s"],["𝞂","s"],["𝞃","t"],["𝞄","y"],["𝞅","f"],["𝞆","x"],["𝞇","ps"],["𝞈","o"],["𝞉","a"],["𝞊","e"],["𝞋","i"],["𝞌","k"],["𝞍","f"],["𝞎","r"],["𝞏","p"],["𝞐","A"],["𝞑","V"],["𝞒","G"],["𝞓","D"],["𝞔","E"],["𝞕","Z"],["𝞖","I"],["𝞗","TH"],["𝞘","I"],["𝞙","K"],["𝞚","L"],["𝞛","M"],["𝞜","N"],["𝞝","KS"],["𝞞","O"],["𝞟","P"],["𝞠","S"],["𝞡","TH"],["𝞢","S"],["𝞣","T"],["𝞤","Y"],["𝞥","F"],["𝞦","X"],["𝞧","PS"],["𝞨","O"],["𝞩","D"],["𝞪","av"],["𝞫","g"],["𝞬","d"],["𝞭","e"],["𝞮","z"],["𝞯","i"],["𝞰","i"],["𝞱","th"],["𝞲","i"],["𝞳","k"],["𝞴","l"],["𝞵","m"],["𝞶","n"],["𝞷","ks"],["𝞸","o"],["𝞹","p"],["𝞺","r"],["𝞻","s"],["𝞼","s"],["𝞽","t"],["𝞾","y"],["𝞿","f"],["𝟀","x"],["𝟁","ps"],["𝟂","o"],["𝟃","a"],["𝟄","e"],["𝟅","i"],["𝟆","k"],["𝟇","f"],["𝟈","r"],["𝟉","p"],["𝟊","F"],["𝟋","f"],["⒜","(a)"],["⒝","(b)"],["⒞","(c)"],["⒟","(d)"],["⒠","(e)"],["⒡","(f)"],["⒢","(g)"],["⒣","(h)"],["⒤","(i)"],["⒥","(j)"],["⒦","(k)"],["⒧","(l)"],["⒨","(m)"],["⒩","(n)"],["⒪","(o)"],["⒫","(p)"],["⒬","(q)"],["⒭","(r)"],["⒮","(s)"],["⒯","(t)"],["⒰","(u)"],["⒱","(v)"],["⒲","(w)"],["⒳","(x)"],["⒴","(y)"],["⒵","(z)"],["Ⓐ","(A)"],["Ⓑ","(B)"],["Ⓒ","(C)"],["Ⓓ","(D)"],["Ⓔ","(E)"],["Ⓕ","(F)"],["Ⓖ","(G)"],["Ⓗ","(H)"],["Ⓘ","(I)"],["Ⓙ","(J)"],["Ⓚ","(K)"],["Ⓛ","(L)"],["Ⓝ","(N)"],["Ⓞ","(O)"],["Ⓟ","(P)"],["Ⓠ","(Q)"],["Ⓡ","(R)"],["Ⓢ","(S)"],["Ⓣ","(T)"],["Ⓤ","(U)"],["Ⓥ","(V)"],["Ⓦ","(W)"],["Ⓧ","(X)"],["Ⓨ","(Y)"],["Ⓩ","(Z)"],["ⓐ","(a)"],["ⓑ","(b)"],["ⓒ","(b)"],["ⓓ","(c)"],["ⓔ","(e)"],["ⓕ","(f)"],["ⓖ","(g)"],["ⓗ","(h)"],["ⓘ","(i)"],["ⓙ","(j)"],["ⓚ","(k)"],["ⓛ","(l)"],["ⓜ","(m)"],["ⓝ","(n)"],["ⓞ","(o)"],["ⓟ","(p)"],["ⓠ","(q)"],["ⓡ","(r)"],["ⓢ","(s)"],["ⓣ","(t)"],["ⓤ","(u)"],["ⓥ","(v)"],["ⓦ","(w)"],["ⓧ","(x)"],["ⓨ","(y)"],["ⓩ","(z)"],["Ċ","C"],["ċ","c"],["Ġ","G"],["ġ","g"],["Ħ","H"],["ħ","h"],["Ż","Z"],["ż","z"],["𝟎","0"],["𝟏","1"],["𝟐","2"],["𝟑","3"],["𝟒","4"],["𝟓","5"],["𝟔","6"],["𝟕","7"],["𝟖","8"],["𝟗","9"],["𝟘","0"],["𝟙","1"],["𝟚","2"],["𝟛","3"],["𝟜","4"],["𝟝","5"],["𝟞","6"],["𝟟","7"],["𝟠","8"],["𝟡","9"],["𝟢","0"],["𝟣","1"],["𝟤","2"],["𝟥","3"],["𝟦","4"],["𝟧","5"],["𝟨","6"],["𝟩","7"],["𝟪","8"],["𝟫","9"],["𝟬","0"],["𝟭","1"],["𝟮","2"],["𝟯","3"],["𝟰","4"],["𝟱","5"],["𝟲","6"],["𝟳","7"],["𝟴","8"],["𝟵","9"],["𝟶","0"],["𝟷","1"],["𝟸","2"],["𝟹","3"],["𝟺","4"],["𝟻","5"],["𝟼","6"],["𝟽","7"],["𝟾","8"],["𝟿","9"],["①","1"],["②","2"],["③","3"],["④","4"],["⑤","5"],["⑥","6"],["⑦","7"],["⑧","8"],["⑨","9"],["⑩","10"],["⑪","11"],["⑫","12"],["⑬","13"],["⑭","14"],["⑮","15"],["⑯","16"],["⑰","17"],["⑱","18"],["⑲","19"],["⑳","20"],["⑴","1"],["⑵","2"],["⑶","3"],["⑷","4"],["⑸","5"],["⑹","6"],["⑺","7"],["⑻","8"],["⑼","9"],["⑽","10"],["⑾","11"],["⑿","12"],["⒀","13"],["⒁","14"],["⒂","15"],["⒃","16"],["⒄","17"],["⒅","18"],["⒆","19"],["⒇","20"],["⒈","1."],["⒉","2."],["⒊","3."],["⒋","4."],["⒌","5."],["⒍","6."],["⒎","7."],["⒏","8."],["⒐","9."],["⒑","10."],["⒒","11."],["⒓","12."],["⒔","13."],["⒕","14."],["⒖","15."],["⒗","16."],["⒘","17."],["⒙","18."],["⒚","19."],["⒛","20."],["⓪","0"],["⓫","11"],["⓬","12"],["⓭","13"],["⓮","14"],["⓯","15"],["⓰","16"],["⓱","17"],["⓲","18"],["⓳","19"],["⓴","20"],["⓵","1"],["⓶","2"],["⓷","3"],["⓸","4"],["⓹","5"],["⓺","6"],["⓻","7"],["⓼","8"],["⓽","9"],["⓾","10"],["⓿","0"],["🙰","&"],["🙱","&"],["🙲","&"],["🙳","&"],["🙴","&"],["🙵","&"],["🙶",'"'],["🙷",'"'],["🙸",'"'],["‽","?!"],["🙹","?!"],["🙺","?!"],["🙻","?!"],["🙼","/"],["🙽","\\"],["🜇","AR"],["🜈","V"],["🜉","V"],["🜆","VR"],["🜅","VF"],["🜩","2"],["🜪","5"],["🝡","f"],["🝢","W"],["🝣","U"],["🝧","V"],["🝨","T"],["🝪","V"],["🝫","MB"],["🝬","VB"],["🝲","3B"],["🝳","3B"],["💯","100"],["🔙","BACK"],["🔚","END"],["🔛","ON!"],["🔜","SOON"],["🔝","TOP"],["🔞","18"],["🔤","abc"],["🔠","ABCD"],["🔡","abcd"],["🔢","1234"],["🔣","T&@%"],["#️⃣","#"],["*️⃣","*"],["0️⃣","0"],["1️⃣","1"],["2️⃣","2"],["3️⃣","3"],["4️⃣","4"],["5️⃣","5"],["6️⃣","6"],["7️⃣","7"],["8️⃣","8"],["9️⃣","9"],["🔟","10"],["🅰️","A"],["🅱️","B"],["🆎","AB"],["🆑","CL"],["🅾️","O"],["🅿","P"],["🆘","SOS"],["🅲","C"],["🅳","D"],["🅴","E"],["🅵","F"],["🅶","G"],["🅷","H"],["🅸","I"],["🅹","J"],["🅺","K"],["🅻","L"],["🅼","M"],["🅽","N"],["🆀","Q"],["🆁","R"],["🆂","S"],["🆃","T"],["🆄","U"],["🆅","V"],["🆆","W"],["🆇","X"],["🆈","Y"],["🆉","Z"]],_mt=(e,t)=>{for(const[n,r]of t)e=e.replace(new RegExp(qv(n),"g"),r);return e};function bmt(e,t){if(typeof e!="string")throw new TypeError(`Expected a string, got \`${typeof e}\``);t={customReplacements:[],...t};const n=new Map([...ymt,...t.customReplacements]);return e=e.normalize(),e=_mt(e,n),e=e.normalize("NFD").replace(/\p{Diacritic}/gu,"").normalize(),e}const kmt=[["&"," and "],["🦄"," unicorn "],["♥"," love "]],wmt=e=>e.replace(/([A-Z]{2,})(\d+)/g,"$1 $2").replace(/([a-z\d]+)([A-Z]{2,})/g,"$1 $2").replace(/([a-z\d])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-rt-z\d]+)/g,"$1 $2"),vmt=(e,t)=>{const n=qv(t);return e.replace(new RegExp(`${n}{2,}`,"g"),t).replace(new RegExp(`^${n}|${n}$`,"g"),"")},xmt=e=>{let t="a-z\\d";if(t+=e.lowercase?"":"A-Z",e.preserveCharacters.length>0)for(const n of e.preserveCharacters){if(n===e.separator)throw new Error(`The separator character \`${e.separator}\` cannot be included in preserved characters: ${e.preserveCharacters}`);t+=qv(n)}return new RegExp(`[^${t}]+`,"g")};function Cmt(e,t){if(typeof e!="string")throw new TypeError(`Expected a string, got \`${typeof e}\``);t={separator:"-",lowercase:!0,decamelize:!0,customReplacements:[],preserveLeadingUnderscore:!1,preserveTrailingDash:!1,preserveCharacters:[],...t};const n=t.preserveLeadingUnderscore&&e.startsWith("_"),r=t.preserveTrailingDash&&e.endsWith("-"),i=new Map([...kmt,...t.customReplacements]);e=bmt(e,{customReplacements:i}),t.decamelize&&(e=wmt(e));const a=xmt(t);return t.lowercase&&(e=e.toLowerCase()),e=e.replace(/([a-zA-Z\d]+)'([ts])(\s|$)/g,"$1$2$3"),e=e.replace(a,t.separator),e=e.replace(/\\/g,""),t.separator&&(e=vmt(e,t.separator)),n&&(e=`_${e}`),r&&(e=`${e}-`),e}function zH(e,t=null){return function(n,r){let{$from:i,$to:a}=n.selection,o=i.blockRange(a),s=!1,l=o;if(!o)return!1;if(o.depth>=2&&i.node(o.depth-1).type.compatibleContent(e)&&o.startIndex==0){if(i.index(o.depth-1)==0)return!1;let u=n.doc.resolve(o.start-2);l=new Ak(u,u,o.depth),o.endIndex=0;u--)a=Ee.from(n[u].type.create(n[u].attrs,a));e.step(new Wr(t.start-(r?2:0),t.end,t.start,t.end,new Ue(a,0,0),n.length,!0));let o=0;for(let u=0;u=i.depth-3;w--)f=Ee.from(i.node(w).copy(f));let m=i.indexAfter(-1){if(C>-1)return!1;w.isTextblock&&w.content.size==0&&(C=k+1)}),C>-1&&b.setSelection($t.near(b.doc.resolve(C))),r(b.scrollIntoView())}return!0}let l=a.pos==i.end()?s.contentMatchAt(0).defaultType:null,c=n.tr.delete(i.pos,a.pos),u=l?[t?{type:e,attrs:t}:null,{type:l}]:void 0;return Ih(c.doc,i.pos,2,u)?(r&&r(c.split(i.pos,2,u).scrollIntoView()),!0):!1}}function FH(e){return function(t,n){let{$from:r,$to:i}=t.selection,a=r.blockRange(i,o=>o.childCount>0&&o.firstChild.type==e);return a?n?r.node(a.depth-1).type==e?Emt(t,n,e,a):Tmt(t,n,a):!0:!1}}function Emt(e,t,n,r){let i=e.tr,a=r.end,o=r.$to.end(r.depth);ab;g--)m-=i.child(g).nodeSize,r.delete(m-1,m+1);let a=r.doc.resolve(n.start),o=a.nodeAfter;if(r.mapping.map(n.end)!=n.start+a.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,l=n.endIndex==i.childCount,c=a.node(-1),u=a.index(-1);if(!c.canReplace(u+(s?0:1),u+1,o.content.append(l?Ee.empty:Ee.from(i))))return!1;let f=a.pos,h=f+o.nodeSize;return r.step(new Wr(f-(s?1:0),h+(l?1:0),f+1,h-1,new Ue((s?Ee.empty:Ee.from(i.copy(Ee.empty))).append(l?Ee.empty:Ee.from(i.copy(Ee.empty))),s?0:1,l?0:1),s?0:1)),t(r.scrollIntoView()),!0}function Amt(e){return function(t,n){let{$from:r,$to:i}=t.selection,a=r.blockRange(i,c=>c.childCount>0&&c.firstChild.type==e);if(!a)return!1;let o=a.startIndex;if(o==0)return!1;let s=a.parent,l=s.child(o-1);if(l.type!=e)return!1;if(n){let c=l.lastChild&&l.lastChild.type==s.type,u=Ee.from(c?e.create():null),f=new Ue(Ee.from(e.create(null,Ee.from(s.type.create(null,u)))),c?3:1,0),h=a.start,m=a.end;n(t.tr.step(new Wr(h-(c?3:1),m,h,m,f,1,!0)).scrollIntoView())}return!0}}const lO={}.hasOwnProperty;function zmt(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return lf(e,"definition",r=>{const i=cO(r.identifier);i&&!lO.call(t,i)&&(t[i]=r)}),n;function n(r){const i=cO(r);return i&&lO.call(t,i)?t[i]:null}}function cO(e){return String(e||"").toUpperCase()}function Fmt(){return e=>{const t=zmt(e);lf(e,(n,r,i)=>{if(n.type==="definition"&&i!==null&&typeof r=="number")return i.children.splice(r,1),[n8,r];if(n.type==="imageReference"||n.type==="linkReference"){const a=t(n.identifier);if(a&&i!==null&&typeof r=="number"){const o=n.type==="imageReference"?{type:"image",url:a.url,title:a.title,alt:n.alt}:{type:"link",url:a.url,title:a.title,children:n.children};return i.children[r]=o,[n8,r]}}})}}const $H=(e,t)=>{var n;if(!(t.childCount>=1&&((n=t.lastChild)==null?void 0:n.type.name)==="hardbreak")){e.next(t.content);return}const r=[];t.content.forEach((i,a,o)=>{o!==t.childCount-1&&r.push(i)}),e.next(Ee.fromArray(r))},Se=(e,t)=>(Object.assign(e,{meta:{package:"@milkdown/preset-commonmark",...t}}),e),BS=Xg("emphasis");Se(BS,{displayName:"Attr",group:"Emphasis"});const _p=Zg("emphasis",e=>({attrs:{marker:{default:e.get(Tm).emphasis||"*"}},parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style",getAttrs:t=>t==="italic"}],toDOM:t=>["em",e.get(BS.key)(t)],parseMarkdown:{match:t=>t.type==="emphasis",runner:(t,n,r)=>{t.openMark(r,{marker:n.marker}),t.next(n.children),t.closeMark(r)}},toMarkdown:{match:t=>t.type.name==="emphasis",runner:(t,n)=>{t.withMark(n,"emphasis",void 0,{marker:n.attrs.marker})}}}));Se(_p.mark,{displayName:"MarkSchema",group:"Emphasis"});Se(_p.ctx,{displayName:"MarkSchemaCtx",group:"Emphasis"});const r1=Lt("ToggleEmphasis",e=>()=>jv(_p.type(e)));Se(r1,{displayName:"Command",group:"Emphasis"});const RS=ea("emphasisKeymap",{ToggleEmphasis:{shortcuts:"Mod-i",command:e=>{const t=e.get(Bt);return()=>t.call(r1.key)}}});Se(RS.ctx,{displayName:"KeymapCtx",group:"Emphasis"});Se(RS.shortcuts,{displayName:"Keymap",group:"Emphasis"});const PS=Xg("strong");Se(PS,{displayName:"Attr",group:"Strong"});const bp=Zg("strong",e=>({attrs:{marker:{default:e.get(Tm).strong||"*"}},parseDOM:[{tag:"b"},{tag:"strong"},{style:"font-style",getAttrs:t=>t==="bold"}],toDOM:t=>["strong",e.get(PS.key)(t)],parseMarkdown:{match:t=>t.type==="strong",runner:(t,n,r)=>{t.openMark(r,{marker:n.marker}),t.next(n.children),t.closeMark(r)}},toMarkdown:{match:t=>t.type.name==="strong",runner:(t,n)=>{t.withMark(n,"strong",void 0,{marker:n.attrs.marker})}}}));Se(bp.mark,{displayName:"MarkSchema",group:"Strong"});Se(bp.ctx,{displayName:"MarkSchemaCtx",group:"Strong"});const i1=Lt("ToggleStrong",e=>()=>jv(bp.type(e)));Se(i1,{displayName:"Command",group:"Strong"});const jS=ea("strongKeymap",{ToggleBold:{shortcuts:["Mod-b"],command:e=>{const t=e.get(Bt);return()=>t.call(i1.key)}}});Se(jS.ctx,{displayName:"KeymapCtx",group:"Strong"});Se(jS.shortcuts,{displayName:"Keymap",group:"Strong"});const VS=Xg("inlineCode");Se(VS,{displayName:"Attr",group:"InlineCode"});const bd=Zg("inlineCode",e=>({priority:100,code:!0,inclusive:!1,parseDOM:[{tag:"code"}],toDOM:t=>["code",e.get(VS.key)(t)],parseMarkdown:{match:t=>t.type==="inlineCode",runner:(t,n,r)=>{t.openMark(r),t.addText(n.value),t.closeMark(r)}},toMarkdown:{match:t=>t.type.name==="inlineCode",runner:(t,n,r)=>{t.withMark(n,"inlineCode",r.text||"")}}}));Se(bd.mark,{displayName:"MarkSchema",group:"InlineCode"});Se(bd.ctx,{displayName:"MarkSchemaCtx",group:"InlineCode"});const qS=Lt("ToggleInlineCode",e=>()=>(t,n)=>{const{selection:r,tr:i}=t;if(r.empty)return!1;const{from:a,to:o}=r;return t.doc.rangeHasMark(a,o,bd.type(e))?(n==null||n(i.removeMark(a,o,bd.type(e))),!0):(Object.keys(t.schema.marks).filter(s=>s!==bd.type.name).map(s=>t.schema.marks[s]).forEach(s=>{i.removeMark(a,o,s)}),n==null||n(i.addMark(a,o,bd.type(e).create())),!0)});Se(qS,{displayName:"Command",group:"InlineCode"});const HS=ea("inlineCodeKeymap",{ToggleInlineCode:{shortcuts:"Mod-e",command:e=>{const t=e.get(Bt);return()=>t.call(qS.key)}}});Se(HS.ctx,{displayName:"KeymapCtx",group:"InlineCode"});Se(HS.shortcuts,{displayName:"Keymap",group:"InlineCode"});const US=Xg("link");Se(US,{displayName:"Attr",group:"Link"});const co=Zg("link",e=>({attrs:{href:{},title:{default:null}},parseDOM:[{tag:"a[href]",getAttrs:t=>{if(!(t instanceof HTMLElement))throw Ma(t);return{href:t.getAttribute("href"),title:t.getAttribute("title")}}}],toDOM:t=>["a",{...e.get(US.key)(t),...t.attrs}],parseMarkdown:{match:t=>t.type==="link",runner:(t,n,r)=>{const i=n.url,a=n.title;t.openMark(r,{href:i,title:a}),t.next(n.children),t.closeMark(r)}},toMarkdown:{match:t=>t.type.name==="link",runner:(t,n)=>{t.withMark(n,"link",void 0,{title:n.attrs.title,url:n.attrs.href})}}}));Se(co.mark,{displayName:"MarkSchema",group:"Link"});const MH=Lt("ToggleLink",e=>(t={})=>jv(co.type(e),t));Se(MH,{displayName:"Command",group:"Link"});const OH=Lt("UpdateLink",e=>(t={})=>(n,r)=>{if(!r)return!1;let i,a=-1;const{selection:o}=n,{from:s,to:l}=o;if(n.doc.nodesBetween(s,s===l?l+1:l,(g,b)=>{if(co.type(e).isInSet(g.marks))return i=g,a=b,!1}),!i)return!1;const c=i.marks.find(({type:g})=>g===co.type(e));if(!c)return!1;const u=a,f=a+i.nodeSize,{tr:h}=n,m=co.type(e).create({...c.attrs,...t});return m?(r(h.removeMark(u,f,c).addMark(u,f,m).setSelection(new Nt(h.selection.$anchor)).scrollIntoView()),!0):!1});Se(OH,{displayName:"Command",group:"Link"});const NH=kS("doc",()=>({content:"block+",parseMarkdown:{match:({type:e})=>e==="root",runner:(e,t,n)=>{e.injectRoot(t,n)}},toMarkdown:{match:e=>e.type.name==="doc",runner:(e,t)=>{e.openNode("root"),e.next(t.content)}}}));Se(NH,{displayName:"NodeSchema",group:"Doc"});const WS=xo("paragraph");Se(WS,{displayName:"Attr",group:"Paragraph"});const Zl=cr("paragraph",e=>({content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM:t=>["p",e.get(WS.key)(t),0],parseMarkdown:{match:t=>t.type==="paragraph",runner:(t,n,r)=>{t.openNode(r),n.children?t.next(n.children):t.addText(n.value||""),t.closeNode()}},toMarkdown:{match:t=>t.type.name==="paragraph",runner:(t,n)=>{t.openNode("paragraph"),$H(t,n),t.closeNode()}}}));Se(Zl.node,{displayName:"NodeSchema",group:"Paragraph"});Se(Zl.ctx,{displayName:"NodeSchemaCtx",group:"Paragraph"});const a1=Lt("TurnIntoText",e=>()=>Zd(Zl.type(e)));Se(a1,{displayName:"Command",group:"Paragraph"});const GS=ea("paragraphKeymap",{TurnIntoText:{shortcuts:"Mod-Alt-0",command:e=>{const t=e.get(Bt);return()=>t.call(a1.key)}}});Se(GS.ctx,{displayName:"KeymapCtx",group:"Paragraph"});Se(GS.shortcuts,{displayName:"Keymap",group:"Paragraph"});const $mt=Array(6).fill(0).map((e,t)=>t+1),Mmt=e=>Cmt(e.textContent),Kv=Lr(Mmt,"headingIdGenerator");Se(Kv,{displayName:"Ctx",group:"Heading"});const KS=xo("heading");Se(KS,{displayName:"Attr",group:"Heading"});const uf=cr("heading",e=>{const t=e.get(Kv.key);return{content:"inline*",group:"block",defining:!0,attrs:{id:{default:""},level:{default:1}},parseDOM:$mt.map(n=>({tag:`h${n}`,getAttrs:r=>{if(!(r instanceof HTMLElement))throw Ma(r);return{level:n,id:r.id}}})),toDOM:n=>[`h${n.attrs.level}`,{...e.get(KS.key)(n),id:n.attrs.id||t(n)},0],parseMarkdown:{match:({type:n})=>n==="heading",runner:(n,r,i)=>{const a=r.depth;n.openNode(i,{level:a}),n.next(r.children),n.closeNode()}},toMarkdown:{match:n=>n.type.name==="heading",runner:(n,r)=>{n.openNode("heading",void 0,{depth:r.attrs.level}),$H(n,r),n.closeNode()}}}});Se(uf.node,{displayName:"NodeSchema",group:"Heading"});Se(uf.ctx,{displayName:"NodeSchemaCtx",group:"Heading"});const LH=vo(e=>rq(/^(?#+)\s$/,uf.type(e),t=>{var n,r;const i=((r=(n=t.groups)==null?void 0:n.hashes)==null?void 0:r.length)||0,a=e.get(ai),{$from:o}=a.state.selection,s=o.node();if(s.type.name==="heading"){let l=Number(s.attrs.level)+Number(i);return l>6&&(l=6),{level:l}}return{level:i}}));Se(LH,{displayName:"InputRule",group:"Heading"});const eo=Lt("WrapInHeading",e=>t=>(t??(t=1),t<1?Zd(Zl.type(e)):Zd(uf.type(e),{level:t})));Se(eo,{displayName:"Command",group:"Heading"});const YS=Lt("DowngradeHeading",e=>()=>(t,n,r)=>{const{$from:i}=t.selection,a=i.node();if(a.type!==uf.type(e)||!t.selection.empty||i.parentOffset!==0)return!1;const o=a.attrs.level-1;return o?(n==null||n(t.tr.setNodeMarkup(t.selection.$from.before(),void 0,{...a.attrs,level:o})),!0):Zd(Zl.type(e))(t,n,r)});Se(YS,{displayName:"Command",group:"Heading"});const ZS=ea("headingKeymap",{TurnIntoH1:{shortcuts:"Mod-Alt-1",command:e=>{const t=e.get(Bt);return()=>t.call(eo.key,1)}},TurnIntoH2:{shortcuts:"Mod-Alt-2",command:e=>{const t=e.get(Bt);return()=>t.call(eo.key,2)}},TurnIntoH3:{shortcuts:"Mod-Alt-3",command:e=>{const t=e.get(Bt);return()=>t.call(eo.key,3)}},TurnIntoH4:{shortcuts:"Mod-Alt-4",command:e=>{const t=e.get(Bt);return()=>t.call(eo.key,4)}},TurnIntoH5:{shortcuts:"Mod-Alt-5",command:e=>{const t=e.get(Bt);return()=>t.call(eo.key,5)}},TurnIntoH6:{shortcuts:"Mod-Alt-6",command:e=>{const t=e.get(Bt);return()=>t.call(eo.key,6)}},DowngradeHeading:{shortcuts:["Delete","Backspace"],command:e=>{const t=e.get(Bt);return()=>t.call(YS.key)}}});Se(ZS.ctx,{displayName:"KeymapCtx",group:"Heading"});Se(ZS.shortcuts,{displayName:"Keymap",group:"Heading"});const XS=xo("blockquote");Se(XS,{displayName:"Attr
",group:"Blockquote"});const o1=cr("blockquote",e=>({content:"block+",group:"block",defining:!0,parseDOM:[{tag:"blockquote"}],toDOM:t=>["blockquote",e.get(XS.key)(t),0],parseMarkdown:{match:({type:t})=>t==="blockquote",runner:(t,n,r)=>{t.openNode(r).next(n.children).closeNode()}},toMarkdown:{match:t=>t.type.name==="blockquote",runner:(t,n)=>{t.openNode("blockquote").next(n.content).closeNode()}}}));Se(o1.node,{displayName:"NodeSchema
",group:"Blockquote"});Se(o1.ctx,{displayName:"NodeSchemaCtx
",group:"Blockquote"});const IH=vo(e=>gS(/^\s*>\s$/,o1.type(e)));Se(IH,{displayName:"InputRule",group:"Blockquote"});const JS=Lt("WrapInBlockquote",e=>()=>_S(o1.type(e)));Se(JS,{displayName:"Command",group:"Blockquote"});const QS=ea("blockquoteKeymap",{WrapInBlockquote:{shortcuts:"Mod-Shift-b",command:e=>{const t=e.get(Bt);return()=>t.call(JS.key)}}});Se(QS.ctx,{displayName:"KeymapCtx
",group:"Blockquote"});Se(QS.shortcuts,{displayName:"Keymap
",group:"Blockquote"});const e9=xo("codeBlock",()=>({pre:{},code:{}}));Se(e9,{displayName:"Attr",group:"CodeBlock"});const Pp=cr("code_block",e=>({content:"text*",group:"block",marks:"",defining:!0,code:!0,attrs:{language:{default:""}},parseDOM:[{tag:"pre",preserveWhitespace:"full",getAttrs:t=>{if(!(t instanceof HTMLElement))throw Ma(t);return{language:t.dataset.language}}}],toDOM:t=>{const n=e.get(e9.key)(t);return["pre",{...n.pre,"data-language":t.attrs.language},["code",n.code,0]]},parseMarkdown:{match:({type:t})=>t==="code",runner:(t,n,r)=>{const i=n.lang,a=n.value;t.openNode(r,{language:i}),a&&t.addText(a),t.closeNode()}},toMarkdown:{match:t=>t.type.name==="code_block",runner:(t,n)=>{var r;t.addNode("code",void 0,((r=n.content.firstChild)==null?void 0:r.text)||"",{lang:n.attrs.language})}}}));Se(Pp.node,{displayName:"NodeSchema",group:"CodeBlock"});Se(Pp.ctx,{displayName:"NodeSchemaCtx",group:"CodeBlock"});const BH=vo(e=>rq(/^```(?[a-z]*)?[\s\n]$/,Pp.type(e),t=>{var n;return{language:((n=t.groups)==null?void 0:n.language)??""}}));Se(BH,{displayName:"InputRule",group:"CodeBlock"});const jp=Lt("CreateCodeBlock",e=>(t="")=>Zd(Pp.type(e),{language:t}));Se(jp,{displayName:"Command",group:"CodeBlock"});const Omt=Lt("UpdateCodeBlockLanguage",()=>({pos:e,language:t}={pos:-1,language:""})=>(n,r)=>e>=0?(r==null||r(n.tr.setNodeAttribute(e,"language",t)),!0):!1);Se(Omt,{displayName:"Command",group:"CodeBlock"});const t9=ea("codeBlockKeymap",{CreateCodeBlock:{shortcuts:"Mod-Alt-c",command:e=>{const t=e.get(Bt);return()=>t.call(jp.key)}}});Se(t9.ctx,{displayName:"KeymapCtx",group:"CodeBlock"});Se(t9.shortcuts,{displayName:"Keymap",group:"CodeBlock"});const n9=xo("image");Se(n9,{displayName:"Attr",group:"Image"});const zu=cr("image",e=>({inline:!0,group:"inline",selectable:!0,draggable:!0,marks:"",atom:!0,defining:!0,isolating:!0,attrs:{src:{default:""},alt:{default:""},title:{default:""}},parseDOM:[{tag:"img[src]",getAttrs:t=>{if(!(t instanceof HTMLElement))throw Ma(t);return{src:t.getAttribute("src")||"",alt:t.getAttribute("alt")||"",title:t.getAttribute("title")||t.getAttribute("alt")||""}}}],toDOM:t=>["img",{...e.get(n9.key)(t),...t.attrs}],parseMarkdown:{match:({type:t})=>t==="image",runner:(t,n,r)=>{const i=n.url,a=n.alt,o=n.title;t.addNode(r,{src:i,alt:a,title:o})}},toMarkdown:{match:t=>t.type.name==="image",runner:(t,n)=>{t.addNode("image",void 0,void 0,{title:n.attrs.title,url:n.attrs.src,alt:n.attrs.alt})}}}));Se(zu.node,{displayName:"NodeSchema",group:"Image"});Se(zu.ctx,{displayName:"NodeSchemaCtx",group:"Image"});const s1=Lt("InsertImage",e=>(t={})=>(n,r)=>{if(!r)return!0;const{src:i="",alt:a="",title:o=""}=t,s=zu.type(e).create({src:i,alt:a,title:o});return s&&r(n.tr.replaceSelectionWith(s).scrollIntoView()),!0});Se(s1,{displayName:"Command",group:"Image"});const RH=Lt("UpdateImage",e=>(t={})=>(n,r)=>{const i=dq(n.selection,zu.type(e));if(!i)return!1;const{node:a,pos:o}=i,s={...a.attrs},{src:l,alt:c,title:u}=t;return l!==void 0&&(s.src=l),c!==void 0&&(s.alt=c),u!==void 0&&(s.title=u),r==null||r(n.tr.setNodeMarkup(o,void 0,s).scrollIntoView()),!0});Se(RH,{displayName:"Command",group:"Image"});const Nmt=vo(e=>new Yl(/!\[(?.*?)]\((?.*?)\s*(?="|\))"?(?[^"]+)?"?\)/,(t,n,r,i)=>{const[a,o,s="",l]=n;return a?t.tr.replaceWith(r,i,zu.type(e).create({src:s,alt:o,title:l})):null}));Se(Nmt,{displayName:"InputRule<insertImageInputRule>",group:"Image"});const r9=xo("hardbreak",e=>({"data-is-inline":e.attrs.isInline}));Se(r9,{displayName:"Attr<hardbreak>",group:"Hardbreak"});const Od=cr("hardbreak",e=>({inline:!0,group:"inline",attrs:{isInline:{default:!1}},selectable:!1,parseDOM:[{tag:"br"}],toDOM:t=>["br",e.get(r9.key)(t)],parseMarkdown:{match:({type:t})=>t==="break",runner:(t,n,r)=>{var i;t.addNode(r,{isInline:!!((i=n.data)!=null&&i.isInline)})}},leafText:()=>` +`);const a=t.topNodeType.createAndFill(void 0,r.content);return a?i(a):""}}})});Mq.meta={displayName:"Prose<clipboard>",package:"@milkdown/plugin-clipboard"};var v8={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function r(_){return n.includes(_)}const i=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","HTMLElement",...n];function a(_){return i.includes(_)}const o=["null","undefined","string","number","bigint","boolean","symbol"];function s(_){return o.includes(_)}function l(_){return T=>typeof T===_}const{toString:c}=Object.prototype,u=_=>{const T=c.call(_).slice(8,-1);if(/HTML\w+Element/.test(T)&&h.domElement(_))return"HTMLElement";if(a(T))return T},f=_=>T=>u(T)===_;function h(_){if(_===null)return"null";switch(typeof _){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol"}if(h.observable(_))return"Observable";if(h.array(_))return"Array";if(h.buffer(_))return"Buffer";const T=u(_);if(T)return T;if(_ instanceof String||_ instanceof Boolean||_ instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}h.undefined=l("undefined"),h.string=l("string");const m=l("number");h.number=_=>m(_)&&!h.nan(_),h.bigint=l("bigint"),h.function_=l("function"),h.null_=_=>_===null,h.class_=_=>h.function_(_)&&_.toString().startsWith("class "),h.boolean=_=>_===!0||_===!1,h.symbol=l("symbol"),h.numericString=_=>h.string(_)&&!h.emptyStringOrWhitespace(_)&&!Number.isNaN(Number(_)),h.array=(_,T)=>Array.isArray(_)?h.function_(T)?_.every(T):!0:!1,h.buffer=_=>{var T,$,R,O;return(O=(R=($=(T=_)===null||T===void 0?void 0:T.constructor)===null||$===void 0?void 0:$.isBuffer)===null||R===void 0?void 0:R.call($,_))!==null&&O!==void 0?O:!1},h.nullOrUndefined=_=>h.null_(_)||h.undefined(_),h.object=_=>!h.null_(_)&&(typeof _=="object"||h.function_(_)),h.iterable=_=>{var T;return h.function_((T=_)===null||T===void 0?void 0:T[Symbol.iterator])},h.asyncIterable=_=>{var T;return h.function_((T=_)===null||T===void 0?void 0:T[Symbol.asyncIterator])},h.generator=_=>h.iterable(_)&&h.function_(_.next)&&h.function_(_.throw),h.asyncGenerator=_=>h.asyncIterable(_)&&h.function_(_.next)&&h.function_(_.throw),h.nativePromise=_=>f("Promise")(_);const g=_=>{var T,$;return h.function_((T=_)===null||T===void 0?void 0:T.then)&&h.function_(($=_)===null||$===void 0?void 0:$.catch)};h.promise=_=>h.nativePromise(_)||g(_),h.generatorFunction=f("GeneratorFunction"),h.asyncGeneratorFunction=_=>u(_)==="AsyncGeneratorFunction",h.asyncFunction=_=>u(_)==="AsyncFunction",h.boundFunction=_=>h.function_(_)&&!_.hasOwnProperty("prototype"),h.regExp=f("RegExp"),h.date=f("Date"),h.error=f("Error"),h.map=_=>f("Map")(_),h.set=_=>f("Set")(_),h.weakMap=_=>f("WeakMap")(_),h.weakSet=_=>f("WeakSet")(_),h.int8Array=f("Int8Array"),h.uint8Array=f("Uint8Array"),h.uint8ClampedArray=f("Uint8ClampedArray"),h.int16Array=f("Int16Array"),h.uint16Array=f("Uint16Array"),h.int32Array=f("Int32Array"),h.uint32Array=f("Uint32Array"),h.float32Array=f("Float32Array"),h.float64Array=f("Float64Array"),h.bigInt64Array=f("BigInt64Array"),h.bigUint64Array=f("BigUint64Array"),h.arrayBuffer=f("ArrayBuffer"),h.sharedArrayBuffer=f("SharedArrayBuffer"),h.dataView=f("DataView"),h.directInstanceOf=(_,T)=>Object.getPrototypeOf(_)===T.prototype,h.urlInstance=_=>f("URL")(_),h.urlString=_=>{if(!h.string(_))return!1;try{return new URL(_),!0}catch{return!1}},h.truthy=_=>!!_,h.falsy=_=>!_,h.nan=_=>Number.isNaN(_),h.primitive=_=>h.null_(_)||s(typeof _),h.integer=_=>Number.isInteger(_),h.safeInteger=_=>Number.isSafeInteger(_),h.plainObject=_=>{if(c.call(_)!=="[object Object]")return!1;const T=Object.getPrototypeOf(_);return T===null||T===Object.getPrototypeOf({})},h.typedArray=_=>r(u(_));const b=_=>h.safeInteger(_)&&_>=0;h.arrayLike=_=>!h.nullOrUndefined(_)&&!h.function_(_)&&b(_.length),h.inRange=(_,T)=>{if(h.number(T))return _>=Math.min(0,T)&&_<=Math.max(T,0);if(h.array(T)&&T.length===2)return _>=Math.min(...T)&&_<=Math.max(...T);throw new TypeError(`Invalid range: ${JSON.stringify(T)}`)};const C=1,w=["innerHTML","ownerDocument","style","attributes","nodeValue"];h.domElement=_=>h.object(_)&&_.nodeType===C&&h.string(_.nodeName)&&!h.plainObject(_)&&w.every(T=>T in _),h.observable=_=>{var T,$,R,O;return _?_===(($=(T=_)[Symbol.observable])===null||$===void 0?void 0:$.call(T))||_===((O=(R=_)["@@observable"])===null||O===void 0?void 0:O.call(R)):!1},h.nodeStream=_=>h.object(_)&&h.function_(_.pipe)&&!h.observable(_),h.infinite=_=>_===1/0||_===-1/0;const k=_=>T=>h.integer(T)&&Math.abs(T%2)===_;h.evenInteger=k(0),h.oddInteger=k(1),h.emptyArray=_=>h.array(_)&&_.length===0,h.nonEmptyArray=_=>h.array(_)&&_.length>0,h.emptyString=_=>h.string(_)&&_.length===0,h.nonEmptyString=_=>h.string(_)&&_.length>0;const S=_=>h.string(_)&&!/\S/.test(_);h.emptyStringOrWhitespace=_=>h.emptyString(_)||S(_),h.emptyObject=_=>h.object(_)&&!h.map(_)&&!h.set(_)&&Object.keys(_).length===0,h.nonEmptyObject=_=>h.object(_)&&!h.map(_)&&!h.set(_)&&Object.keys(_).length>0,h.emptySet=_=>h.set(_)&&_.size===0,h.nonEmptySet=_=>h.set(_)&&_.size>0,h.emptyMap=_=>h.map(_)&&_.size===0,h.nonEmptyMap=_=>h.map(_)&&_.size>0;const E=(_,T,$)=>{if(!h.function_(T))throw new TypeError(`Invalid predicate: ${JSON.stringify(T)}`);if($.length===0)throw new TypeError("Invalid number of values");return _.call($,T)};h.any=(_,...T)=>(h.array(_)?_:[_]).some(R=>E(Array.prototype.some,R,T)),h.all=(_,...T)=>E(Array.prototype.every,_,T);const A=(_,T,$)=>{if(!_)throw new TypeError(`Expected value which is \`${T}\`, received value of type \`${h($)}\`.`)};t.assert={undefined:_=>A(h.undefined(_),"undefined",_),string:_=>A(h.string(_),"string",_),number:_=>A(h.number(_),"number",_),bigint:_=>A(h.bigint(_),"bigint",_),function_:_=>A(h.function_(_),"Function",_),null_:_=>A(h.null_(_),"null",_),class_:_=>A(h.class_(_),"Class",_),boolean:_=>A(h.boolean(_),"boolean",_),symbol:_=>A(h.symbol(_),"symbol",_),numericString:_=>A(h.numericString(_),"string with a number",_),array:(_,T)=>{A(h.array(_),"Array",_),T&&_.forEach(T)},buffer:_=>A(h.buffer(_),"Buffer",_),nullOrUndefined:_=>A(h.nullOrUndefined(_),"null or undefined",_),object:_=>A(h.object(_),"Object",_),iterable:_=>A(h.iterable(_),"Iterable",_),asyncIterable:_=>A(h.asyncIterable(_),"AsyncIterable",_),generator:_=>A(h.generator(_),"Generator",_),asyncGenerator:_=>A(h.asyncGenerator(_),"AsyncGenerator",_),nativePromise:_=>A(h.nativePromise(_),"native Promise",_),promise:_=>A(h.promise(_),"Promise",_),generatorFunction:_=>A(h.generatorFunction(_),"GeneratorFunction",_),asyncGeneratorFunction:_=>A(h.asyncGeneratorFunction(_),"AsyncGeneratorFunction",_),asyncFunction:_=>A(h.asyncFunction(_),"AsyncFunction",_),boundFunction:_=>A(h.boundFunction(_),"Function",_),regExp:_=>A(h.regExp(_),"RegExp",_),date:_=>A(h.date(_),"Date",_),error:_=>A(h.error(_),"Error",_),map:_=>A(h.map(_),"Map",_),set:_=>A(h.set(_),"Set",_),weakMap:_=>A(h.weakMap(_),"WeakMap",_),weakSet:_=>A(h.weakSet(_),"WeakSet",_),int8Array:_=>A(h.int8Array(_),"Int8Array",_),uint8Array:_=>A(h.uint8Array(_),"Uint8Array",_),uint8ClampedArray:_=>A(h.uint8ClampedArray(_),"Uint8ClampedArray",_),int16Array:_=>A(h.int16Array(_),"Int16Array",_),uint16Array:_=>A(h.uint16Array(_),"Uint16Array",_),int32Array:_=>A(h.int32Array(_),"Int32Array",_),uint32Array:_=>A(h.uint32Array(_),"Uint32Array",_),float32Array:_=>A(h.float32Array(_),"Float32Array",_),float64Array:_=>A(h.float64Array(_),"Float64Array",_),bigInt64Array:_=>A(h.bigInt64Array(_),"BigInt64Array",_),bigUint64Array:_=>A(h.bigUint64Array(_),"BigUint64Array",_),arrayBuffer:_=>A(h.arrayBuffer(_),"ArrayBuffer",_),sharedArrayBuffer:_=>A(h.sharedArrayBuffer(_),"SharedArrayBuffer",_),dataView:_=>A(h.dataView(_),"DataView",_),urlInstance:_=>A(h.urlInstance(_),"URL",_),urlString:_=>A(h.urlString(_),"string with a URL",_),truthy:_=>A(h.truthy(_),"truthy",_),falsy:_=>A(h.falsy(_),"falsy",_),nan:_=>A(h.nan(_),"NaN",_),primitive:_=>A(h.primitive(_),"primitive",_),integer:_=>A(h.integer(_),"integer",_),safeInteger:_=>A(h.safeInteger(_),"integer",_),plainObject:_=>A(h.plainObject(_),"plain object",_),typedArray:_=>A(h.typedArray(_),"TypedArray",_),arrayLike:_=>A(h.arrayLike(_),"array-like",_),domElement:_=>A(h.domElement(_),"HTMLElement",_),observable:_=>A(h.observable(_),"Observable",_),nodeStream:_=>A(h.nodeStream(_),"Node.js Stream",_),infinite:_=>A(h.infinite(_),"infinite number",_),emptyArray:_=>A(h.emptyArray(_),"empty array",_),nonEmptyArray:_=>A(h.nonEmptyArray(_),"non-empty array",_),emptyString:_=>A(h.emptyString(_),"empty string",_),nonEmptyString:_=>A(h.nonEmptyString(_),"non-empty string",_),emptyStringOrWhitespace:_=>A(h.emptyStringOrWhitespace(_),"empty string or whitespace",_),emptyObject:_=>A(h.emptyObject(_),"empty object",_),nonEmptyObject:_=>A(h.nonEmptyObject(_),"non-empty object",_),emptySet:_=>A(h.emptySet(_),"empty set",_),nonEmptySet:_=>A(h.nonEmptySet(_),"non-empty set",_),emptyMap:_=>A(h.emptyMap(_),"empty map",_),nonEmptyMap:_=>A(h.nonEmptyMap(_),"non-empty map",_),evenInteger:_=>A(h.evenInteger(_),"even integer",_),oddInteger:_=>A(h.oddInteger(_),"odd integer",_),directInstanceOf:(_,T)=>A(h.directInstanceOf(_,T),"T",_),inRange:(_,T)=>A(h.inRange(_,T),"in range",_),any:(_,...T)=>A(h.any(_,...T),"predicate returns truthy for any value",T),all:(_,...T)=>A(h.all(_,...T),"predicate returns truthy for all values",T)},Object.defineProperties(h,{class:{value:h.class_},function:{value:h.function_},null:{value:h.null_}}),Object.defineProperties(t.assert,{class:{value:t.assert.class_},function:{value:t.assert.function_},null:{value:t.assert.null_}}),t.default=h,e.exports=h,e.exports.default=h,e.exports.assert=t.assert})(v8,v8.exports);var uge=v8.exports;const dge={keywords:["face","smile","happy","joy",":D","grin"],char:"😀",fitzpatrick_scale:!1,category:"people"},fge={keywords:["face","grimace","teeth"],char:"😬",fitzpatrick_scale:!1,category:"people"},hge={keywords:["face","happy","smile","joy","kawaii"],char:"😁",fitzpatrick_scale:!1,category:"people"},pge={keywords:["face","cry","tears","weep","happy","happytears","haha"],char:"😂",fitzpatrick_scale:!1,category:"people"},mge={keywords:["face","rolling","floor","laughing","lol","haha"],char:"🤣",fitzpatrick_scale:!1,category:"people"},gge={keywords:["face","celebration","woohoo"],char:"🥳",fitzpatrick_scale:!1,category:"people"},yge={keywords:["face","happy","joy","haha",":D",":)","smile","funny"],char:"😃",fitzpatrick_scale:!1,category:"people"},_ge={keywords:["face","happy","joy","funny","haha","laugh","like",":D",":)"],char:"😄",fitzpatrick_scale:!1,category:"people"},bge={keywords:["face","hot","happy","laugh","sweat","smile","relief"],char:"😅",fitzpatrick_scale:!1,category:"people"},kge={keywords:["happy","joy","lol","satisfied","haha","face","glad","XD","laugh"],char:"😆",fitzpatrick_scale:!1,category:"people"},wge={keywords:["face","angel","heaven","halo"],char:"😇",fitzpatrick_scale:!1,category:"people"},vge={keywords:["face","happy","mischievous","secret",";)","smile","eye"],char:"😉",fitzpatrick_scale:!1,category:"people"},xge={keywords:["face","smile","happy","flushed","crush","embarrassed","shy","joy"],char:"😊",fitzpatrick_scale:!1,category:"people"},Cge={keywords:["face","smile"],char:"🙂",fitzpatrick_scale:!1,category:"people"},Sge={keywords:["face","flipped","silly","smile"],char:"🙃",fitzpatrick_scale:!1,category:"people"},Dge={keywords:["face","blush","massage","happiness"],char:"☺️",fitzpatrick_scale:!1,category:"people"},Ege={keywords:["happy","joy","tongue","smile","face","silly","yummy","nom","delicious","savouring"],char:"😋",fitzpatrick_scale:!1,category:"people"},Tge={keywords:["face","relaxed","phew","massage","happiness"],char:"😌",fitzpatrick_scale:!1,category:"people"},Age={keywords:["face","love","like","affection","valentines","infatuation","crush","heart"],char:"😍",fitzpatrick_scale:!1,category:"people"},zge={keywords:["face","love","like","affection","valentines","infatuation","crush","hearts","adore"],char:"🥰",fitzpatrick_scale:!1,category:"people"},Fge={keywords:["face","love","like","affection","valentines","infatuation","kiss"],char:"😘",fitzpatrick_scale:!1,category:"people"},$ge={keywords:["love","like","face","3","valentines","infatuation","kiss"],char:"😗",fitzpatrick_scale:!1,category:"people"},Mge={keywords:["face","affection","valentines","infatuation","kiss"],char:"😙",fitzpatrick_scale:!1,category:"people"},Oge={keywords:["face","love","like","affection","valentines","infatuation","kiss"],char:"😚",fitzpatrick_scale:!1,category:"people"},Nge={keywords:["face","prank","childish","playful","mischievous","smile","wink","tongue"],char:"😜",fitzpatrick_scale:!1,category:"people"},Lge={keywords:["face","goofy","crazy"],char:"🤪",fitzpatrick_scale:!1,category:"people"},Ige={keywords:["face","distrust","scepticism","disapproval","disbelief","surprise"],char:"🤨",fitzpatrick_scale:!1,category:"people"},Bge={keywords:["face","stuffy","wealthy"],char:"🧐",fitzpatrick_scale:!1,category:"people"},Rge={keywords:["face","prank","playful","mischievous","smile","tongue"],char:"😝",fitzpatrick_scale:!1,category:"people"},Pge={keywords:["face","prank","childish","playful","mischievous","smile","tongue"],char:"😛",fitzpatrick_scale:!1,category:"people"},jge={keywords:["face","rich","dollar","money"],char:"🤑",fitzpatrick_scale:!1,category:"people"},Vge={keywords:["face","nerdy","geek","dork"],char:"🤓",fitzpatrick_scale:!1,category:"people"},qge={keywords:["face","cool","smile","summer","beach","sunglass"],char:"😎",fitzpatrick_scale:!1,category:"people"},Hge={keywords:["face","smile","starry","eyes","grinning"],char:"🤩",fitzpatrick_scale:!1,category:"people"},Uge={keywords:["face"],char:"🤡",fitzpatrick_scale:!1,category:"people"},Wge={keywords:["face","cowgirl","hat"],char:"🤠",fitzpatrick_scale:!1,category:"people"},Gge={keywords:["face","smile","hug"],char:"🤗",fitzpatrick_scale:!1,category:"people"},Kge={keywords:["face","smile","mean","prank","smug","sarcasm"],char:"😏",fitzpatrick_scale:!1,category:"people"},Yge={keywords:["face","hellokitty"],char:"😶",fitzpatrick_scale:!1,category:"people"},Zge={keywords:["indifference","meh",":|","neutral"],char:"😐",fitzpatrick_scale:!1,category:"people"},Xge={keywords:["face","indifferent","-_-","meh","deadpan"],char:"😑",fitzpatrick_scale:!1,category:"people"},Jge={keywords:["indifference","bored","straight face","serious","sarcasm","unimpressed","skeptical","dubious","side_eye"],char:"😒",fitzpatrick_scale:!1,category:"people"},Qge={keywords:["face","eyeroll","frustrated"],char:"🙄",fitzpatrick_scale:!1,category:"people"},e1e={keywords:["face","hmmm","think","consider"],char:"🤔",fitzpatrick_scale:!1,category:"people"},t1e={keywords:["face","lie","pinocchio"],char:"🤥",fitzpatrick_scale:!1,category:"people"},n1e={keywords:["face","whoops","shock","surprise"],char:"🤭",fitzpatrick_scale:!1,category:"people"},r1e={keywords:["face","quiet","shhh"],char:"🤫",fitzpatrick_scale:!1,category:"people"},i1e={keywords:["face","swearing","cursing","cussing","profanity","expletive"],char:"🤬",fitzpatrick_scale:!1,category:"people"},a1e={keywords:["face","shocked","mind","blown"],char:"🤯",fitzpatrick_scale:!1,category:"people"},o1e={keywords:["face","blush","shy","flattered"],char:"😳",fitzpatrick_scale:!1,category:"people"},s1e={keywords:["face","sad","upset","depressed",":("],char:"😞",fitzpatrick_scale:!1,category:"people"},l1e={keywords:["face","concern","nervous",":("],char:"😟",fitzpatrick_scale:!1,category:"people"},c1e={keywords:["mad","face","annoyed","frustrated"],char:"😠",fitzpatrick_scale:!1,category:"people"},u1e={keywords:["angry","mad","hate","despise"],char:"😡",fitzpatrick_scale:!1,category:"people"},d1e={keywords:["face","sad","depressed","upset"],char:"😔",fitzpatrick_scale:!1,category:"people"},f1e={keywords:["face","indifference","huh","weird","hmmm",":/"],char:"😕",fitzpatrick_scale:!1,category:"people"},h1e={keywords:["face","frowning","disappointed","sad","upset"],char:"🙁",fitzpatrick_scale:!1,category:"people"},p1e={keywords:["face","sad","upset","frown"],char:"☹",fitzpatrick_scale:!1,category:"people"},m1e={keywords:["face","sick","no","upset","oops"],char:"😣",fitzpatrick_scale:!1,category:"people"},g1e={keywords:["face","confused","sick","unwell","oops",":S"],char:"😖",fitzpatrick_scale:!1,category:"people"},y1e={keywords:["sick","whine","upset","frustrated"],char:"😫",fitzpatrick_scale:!1,category:"people"},_1e={keywords:["face","tired","sleepy","sad","frustrated","upset"],char:"😩",fitzpatrick_scale:!1,category:"people"},b1e={keywords:["face","begging","mercy"],char:"🥺",fitzpatrick_scale:!1,category:"people"},k1e={keywords:["face","gas","phew","proud","pride"],char:"😤",fitzpatrick_scale:!1,category:"people"},w1e={keywords:["face","surprise","impressed","wow","whoa",":O"],char:"😮",fitzpatrick_scale:!1,category:"people"},v1e={keywords:["face","munch","scared","omg"],char:"😱",fitzpatrick_scale:!1,category:"people"},x1e={keywords:["face","scared","terrified","nervous","oops","huh"],char:"😨",fitzpatrick_scale:!1,category:"people"},C1e={keywords:["face","nervous","sweat"],char:"😰",fitzpatrick_scale:!1,category:"people"},S1e={keywords:["face","woo","shh"],char:"😯",fitzpatrick_scale:!1,category:"people"},D1e={keywords:["face","aw","what"],char:"😦",fitzpatrick_scale:!1,category:"people"},E1e={keywords:["face","stunned","nervous"],char:"😧",fitzpatrick_scale:!1,category:"people"},T1e={keywords:["face","tears","sad","depressed","upset",":'("],char:"😢",fitzpatrick_scale:!1,category:"people"},A1e={keywords:["face","phew","sweat","nervous"],char:"😥",fitzpatrick_scale:!1,category:"people"},z1e={keywords:["face"],char:"🤤",fitzpatrick_scale:!1,category:"people"},F1e={keywords:["face","tired","rest","nap"],char:"😪",fitzpatrick_scale:!1,category:"people"},$1e={keywords:["face","hot","sad","tired","exercise"],char:"😓",fitzpatrick_scale:!1,category:"people"},M1e={keywords:["face","feverish","heat","red","sweating"],char:"🥵",fitzpatrick_scale:!1,category:"people"},O1e={keywords:["face","blue","freezing","frozen","frostbite","icicles"],char:"🥶",fitzpatrick_scale:!1,category:"people"},N1e={keywords:["face","cry","tears","sad","upset","depressed"],char:"😭",fitzpatrick_scale:!1,category:"people"},L1e={keywords:["spent","unconscious","xox","dizzy"],char:"😵",fitzpatrick_scale:!1,category:"people"},I1e={keywords:["face","xox","surprised","poisoned"],char:"😲",fitzpatrick_scale:!1,category:"people"},B1e={keywords:["face","sealed","zipper","secret"],char:"🤐",fitzpatrick_scale:!1,category:"people"},R1e={keywords:["face","vomit","gross","green","sick","throw up","ill"],char:"🤢",fitzpatrick_scale:!1,category:"people"},P1e={keywords:["face","gesundheit","sneeze","sick","allergy"],char:"🤧",fitzpatrick_scale:!1,category:"people"},j1e={keywords:["face","sick"],char:"🤮",fitzpatrick_scale:!1,category:"people"},V1e={keywords:["face","sick","ill","disease"],char:"😷",fitzpatrick_scale:!1,category:"people"},q1e={keywords:["sick","temperature","thermometer","cold","fever"],char:"🤒",fitzpatrick_scale:!1,category:"people"},H1e={keywords:["injured","clumsy","bandage","hurt"],char:"🤕",fitzpatrick_scale:!1,category:"people"},U1e={keywords:["face","dizzy","intoxicated","tipsy","wavy"],char:"🥴",fitzpatrick_scale:!1,category:"people"},W1e={keywords:["face","tired","sleepy","night","zzz"],char:"😴",fitzpatrick_scale:!1,category:"people"},G1e={keywords:["sleepy","tired","dream"],char:"💤",fitzpatrick_scale:!1,category:"people"},K1e={keywords:["hankey","shitface","fail","turd","shit"],char:"💩",fitzpatrick_scale:!1,category:"people"},Y1e={keywords:["devil","horns"],char:"😈",fitzpatrick_scale:!1,category:"people"},Z1e={keywords:["devil","angry","horns"],char:"👿",fitzpatrick_scale:!1,category:"people"},X1e={keywords:["monster","red","mask","halloween","scary","creepy","devil","demon","japanese","ogre"],char:"👹",fitzpatrick_scale:!1,category:"people"},J1e={keywords:["red","evil","mask","monster","scary","creepy","japanese","goblin"],char:"👺",fitzpatrick_scale:!1,category:"people"},Q1e={keywords:["dead","skeleton","creepy","death"],char:"💀",fitzpatrick_scale:!1,category:"people"},eye={keywords:["halloween","spooky","scary"],char:"👻",fitzpatrick_scale:!1,category:"people"},tye={keywords:["UFO","paul","weird","outer_space"],char:"👽",fitzpatrick_scale:!1,category:"people"},nye={keywords:["computer","machine","bot"],char:"🤖",fitzpatrick_scale:!1,category:"people"},rye={keywords:["animal","cats","happy","smile"],char:"😺",fitzpatrick_scale:!1,category:"people"},iye={keywords:["animal","cats","smile"],char:"😸",fitzpatrick_scale:!1,category:"people"},aye={keywords:["animal","cats","haha","happy","tears"],char:"😹",fitzpatrick_scale:!1,category:"people"},oye={keywords:["animal","love","like","affection","cats","valentines","heart"],char:"😻",fitzpatrick_scale:!1,category:"people"},sye={keywords:["animal","cats","smirk"],char:"😼",fitzpatrick_scale:!1,category:"people"},lye={keywords:["animal","cats","kiss"],char:"😽",fitzpatrick_scale:!1,category:"people"},cye={keywords:["animal","cats","munch","scared","scream"],char:"🙀",fitzpatrick_scale:!1,category:"people"},uye={keywords:["animal","tears","weep","sad","cats","upset","cry"],char:"😿",fitzpatrick_scale:!1,category:"people"},dye={keywords:["animal","cats"],char:"😾",fitzpatrick_scale:!1,category:"people"},fye={keywords:["hands","gesture","cupped","prayer"],char:"🤲",fitzpatrick_scale:!0,category:"people"},hye={keywords:["gesture","hooray","yea","celebration","hands"],char:"🙌",fitzpatrick_scale:!0,category:"people"},pye={keywords:["hands","praise","applause","congrats","yay"],char:"👏",fitzpatrick_scale:!0,category:"people"},mye={keywords:["hands","gesture","goodbye","solong","farewell","hello","hi","palm"],char:"👋",fitzpatrick_scale:!0,category:"people"},gye={keywords:["hands","gesture"],char:"🤙",fitzpatrick_scale:!0,category:"people"},yye={keywords:["angry","violence","fist","hit","attack","hand"],char:"👊",fitzpatrick_scale:!0,category:"people"},_ye={keywords:["fingers","hand","grasp"],char:"✊",fitzpatrick_scale:!0,category:"people"},bye={keywords:["hand","fistbump"],char:"🤛",fitzpatrick_scale:!0,category:"people"},kye={keywords:["hand","fistbump"],char:"🤜",fitzpatrick_scale:!0,category:"people"},wye={keywords:["fingers","ohyeah","hand","peace","victory","two"],char:"✌",fitzpatrick_scale:!0,category:"people"},vye={keywords:["fingers","limbs","perfect","ok","okay"],char:"👌",fitzpatrick_scale:!0,category:"people"},xye={keywords:["fingers","stop","highfive","palm","ban"],char:"✋",fitzpatrick_scale:!0,category:"people"},Cye={keywords:["fingers","raised","backhand"],char:"🤚",fitzpatrick_scale:!0,category:"people"},Sye={keywords:["fingers","butterfly","hands","open"],char:"👐",fitzpatrick_scale:!0,category:"people"},Dye={keywords:["arm","flex","hand","summer","strong","biceps"],char:"💪",fitzpatrick_scale:!0,category:"people"},Eye={keywords:["please","hope","wish","namaste","highfive"],char:"🙏",fitzpatrick_scale:!0,category:"people"},Tye={keywords:["kick","stomp"],char:"🦶",fitzpatrick_scale:!0,category:"people"},Aye={keywords:["kick","limb"],char:"🦵",fitzpatrick_scale:!0,category:"people"},zye={keywords:["agreement","shake"],char:"🤝",fitzpatrick_scale:!1,category:"people"},Fye={keywords:["hand","fingers","direction","up"],char:"☝",fitzpatrick_scale:!0,category:"people"},$ye={keywords:["fingers","hand","direction","up"],char:"👆",fitzpatrick_scale:!0,category:"people"},Mye={keywords:["fingers","hand","direction","down"],char:"👇",fitzpatrick_scale:!0,category:"people"},Oye={keywords:["direction","fingers","hand","left"],char:"👈",fitzpatrick_scale:!0,category:"people"},Nye={keywords:["fingers","hand","direction","right"],char:"👉",fitzpatrick_scale:!0,category:"people"},Lye={keywords:["hand","fingers","rude","middle","flipping"],char:"🖕",fitzpatrick_scale:!0,category:"people"},Iye={keywords:["hand","fingers","palm"],char:"🖐",fitzpatrick_scale:!0,category:"people"},Bye={keywords:["hand","fingers","gesture"],char:"🤟",fitzpatrick_scale:!0,category:"people"},Rye={keywords:["hand","fingers","evil_eye","sign_of_horns","rock_on"],char:"🤘",fitzpatrick_scale:!0,category:"people"},Pye={keywords:["good","lucky"],char:"🤞",fitzpatrick_scale:!0,category:"people"},jye={keywords:["hand","fingers","spock","star trek"],char:"🖖",fitzpatrick_scale:!0,category:"people"},Vye={keywords:["lower_left_ballpoint_pen","stationery","write","compose"],char:"✍",fitzpatrick_scale:!0,category:"people"},qye={keywords:["camera","phone"],char:"🤳",fitzpatrick_scale:!0,category:"people"},Hye={keywords:["beauty","manicure","finger","fashion","nail"],char:"💅",fitzpatrick_scale:!0,category:"people"},Uye={keywords:["mouth","kiss"],char:"👄",fitzpatrick_scale:!1,category:"people"},Wye={keywords:["teeth","dentist"],char:"🦷",fitzpatrick_scale:!1,category:"people"},Gye={keywords:["mouth","playful"],char:"👅",fitzpatrick_scale:!1,category:"people"},Kye={keywords:["face","hear","sound","listen"],char:"👂",fitzpatrick_scale:!0,category:"people"},Yye={keywords:["smell","sniff"],char:"👃",fitzpatrick_scale:!0,category:"people"},Zye={keywords:["face","look","see","watch","stare"],char:"👁",fitzpatrick_scale:!1,category:"people"},Xye={keywords:["look","watch","stalk","peek","see"],char:"👀",fitzpatrick_scale:!1,category:"people"},Jye={keywords:["smart","intelligent"],char:"🧠",fitzpatrick_scale:!1,category:"people"},Qye={keywords:["user","person","human"],char:"👤",fitzpatrick_scale:!1,category:"people"},e_e={keywords:["user","person","human","group","team"],char:"👥",fitzpatrick_scale:!1,category:"people"},t_e={keywords:["user","person","human","sing","say","talk"],char:"🗣",fitzpatrick_scale:!1,category:"people"},n_e={keywords:["child","boy","girl","toddler"],char:"👶",fitzpatrick_scale:!0,category:"people"},r_e={keywords:["gender-neutral","young"],char:"🧒",fitzpatrick_scale:!0,category:"people"},i_e={keywords:["man","male","guy","teenager"],char:"👦",fitzpatrick_scale:!0,category:"people"},a_e={keywords:["female","woman","teenager"],char:"👧",fitzpatrick_scale:!0,category:"people"},o_e={keywords:["gender-neutral","person"],char:"🧑",fitzpatrick_scale:!0,category:"people"},s_e={keywords:["mustache","father","dad","guy","classy","sir","moustache"],char:"👨",fitzpatrick_scale:!0,category:"people"},l_e={keywords:["female","girls","lady"],char:"👩",fitzpatrick_scale:!0,category:"people"},c_e={keywords:["woman","female","girl","blonde","person"],char:"👱‍♀️",fitzpatrick_scale:!0,category:"people"},u_e={keywords:["man","male","boy","blonde","guy","person"],char:"👱",fitzpatrick_scale:!0,category:"people"},d_e={keywords:["person","bewhiskered"],char:"🧔",fitzpatrick_scale:!0,category:"people"},f_e={keywords:["human","elder","senior","gender-neutral"],char:"🧓",fitzpatrick_scale:!0,category:"people"},h_e={keywords:["human","male","men","old","elder","senior"],char:"👴",fitzpatrick_scale:!0,category:"people"},p_e={keywords:["human","female","women","lady","old","elder","senior"],char:"👵",fitzpatrick_scale:!0,category:"people"},m_e={keywords:["male","boy","chinese"],char:"👲",fitzpatrick_scale:!0,category:"people"},g_e={keywords:["female","hijab","mantilla","tichel"],char:"🧕",fitzpatrick_scale:!0,category:"people"},y_e={keywords:["female","indian","hinduism","arabs","woman"],char:"👳‍♀️",fitzpatrick_scale:!0,category:"people"},__e={keywords:["male","indian","hinduism","arabs"],char:"👳",fitzpatrick_scale:!0,category:"people"},b_e={keywords:["woman","police","law","legal","enforcement","arrest","911","female"],char:"👮‍♀️",fitzpatrick_scale:!0,category:"people"},k_e={keywords:["man","police","law","legal","enforcement","arrest","911"],char:"👮",fitzpatrick_scale:!0,category:"people"},w_e={keywords:["female","human","wip","build","construction","worker","labor","woman"],char:"👷‍♀️",fitzpatrick_scale:!0,category:"people"},v_e={keywords:["male","human","wip","guy","build","construction","worker","labor"],char:"👷",fitzpatrick_scale:!0,category:"people"},x_e={keywords:["uk","gb","british","female","royal","woman"],char:"💂‍♀️",fitzpatrick_scale:!0,category:"people"},C_e={keywords:["uk","gb","british","male","guy","royal"],char:"💂",fitzpatrick_scale:!0,category:"people"},S_e={keywords:["human","spy","detective","female","woman"],char:"🕵️‍♀️",fitzpatrick_scale:!0,category:"people"},D_e={keywords:["human","spy","detective"],char:"🕵",fitzpatrick_scale:!0,category:"people"},E_e={keywords:["doctor","nurse","therapist","healthcare","woman","human"],char:"👩‍⚕️",fitzpatrick_scale:!0,category:"people"},T_e={keywords:["doctor","nurse","therapist","healthcare","man","human"],char:"👨‍⚕️",fitzpatrick_scale:!0,category:"people"},A_e={keywords:["rancher","gardener","woman","human"],char:"👩‍🌾",fitzpatrick_scale:!0,category:"people"},z_e={keywords:["rancher","gardener","man","human"],char:"👨‍🌾",fitzpatrick_scale:!0,category:"people"},F_e={keywords:["chef","woman","human"],char:"👩‍🍳",fitzpatrick_scale:!0,category:"people"},$_e={keywords:["chef","man","human"],char:"👨‍🍳",fitzpatrick_scale:!0,category:"people"},M_e={keywords:["graduate","woman","human"],char:"👩‍🎓",fitzpatrick_scale:!0,category:"people"},O_e={keywords:["graduate","man","human"],char:"👨‍🎓",fitzpatrick_scale:!0,category:"people"},N_e={keywords:["rockstar","entertainer","woman","human"],char:"👩‍🎤",fitzpatrick_scale:!0,category:"people"},L_e={keywords:["rockstar","entertainer","man","human"],char:"👨‍🎤",fitzpatrick_scale:!0,category:"people"},I_e={keywords:["instructor","professor","woman","human"],char:"👩‍🏫",fitzpatrick_scale:!0,category:"people"},B_e={keywords:["instructor","professor","man","human"],char:"👨‍🏫",fitzpatrick_scale:!0,category:"people"},R_e={keywords:["assembly","industrial","woman","human"],char:"👩‍🏭",fitzpatrick_scale:!0,category:"people"},P_e={keywords:["assembly","industrial","man","human"],char:"👨‍🏭",fitzpatrick_scale:!0,category:"people"},j_e={keywords:["coder","developer","engineer","programmer","software","woman","human","laptop","computer"],char:"👩‍💻",fitzpatrick_scale:!0,category:"people"},V_e={keywords:["coder","developer","engineer","programmer","software","man","human","laptop","computer"],char:"👨‍💻",fitzpatrick_scale:!0,category:"people"},q_e={keywords:["business","manager","woman","human"],char:"👩‍💼",fitzpatrick_scale:!0,category:"people"},H_e={keywords:["business","manager","man","human"],char:"👨‍💼",fitzpatrick_scale:!0,category:"people"},U_e={keywords:["plumber","woman","human","wrench"],char:"👩‍🔧",fitzpatrick_scale:!0,category:"people"},W_e={keywords:["plumber","man","human","wrench"],char:"👨‍🔧",fitzpatrick_scale:!0,category:"people"},G_e={keywords:["biologist","chemist","engineer","physicist","woman","human"],char:"👩‍🔬",fitzpatrick_scale:!0,category:"people"},K_e={keywords:["biologist","chemist","engineer","physicist","man","human"],char:"👨‍🔬",fitzpatrick_scale:!0,category:"people"},Y_e={keywords:["painter","woman","human"],char:"👩‍🎨",fitzpatrick_scale:!0,category:"people"},Z_e={keywords:["painter","man","human"],char:"👨‍🎨",fitzpatrick_scale:!0,category:"people"},X_e={keywords:["fireman","woman","human"],char:"👩‍🚒",fitzpatrick_scale:!0,category:"people"},J_e={keywords:["fireman","man","human"],char:"👨‍🚒",fitzpatrick_scale:!0,category:"people"},Q_e={keywords:["aviator","plane","woman","human"],char:"👩‍✈️",fitzpatrick_scale:!0,category:"people"},ebe={keywords:["aviator","plane","man","human"],char:"👨‍✈️",fitzpatrick_scale:!0,category:"people"},tbe={keywords:["space","rocket","woman","human"],char:"👩‍🚀",fitzpatrick_scale:!0,category:"people"},nbe={keywords:["space","rocket","man","human"],char:"👨‍🚀",fitzpatrick_scale:!0,category:"people"},rbe={keywords:["justice","court","woman","human"],char:"👩‍⚖️",fitzpatrick_scale:!0,category:"people"},ibe={keywords:["justice","court","man","human"],char:"👨‍⚖️",fitzpatrick_scale:!0,category:"people"},abe={keywords:["woman","female","good","heroine","superpowers"],char:"🦸‍♀️",fitzpatrick_scale:!0,category:"people"},obe={keywords:["man","male","good","hero","superpowers"],char:"🦸‍♂️",fitzpatrick_scale:!0,category:"people"},sbe={keywords:["woman","female","evil","bad","criminal","heroine","superpowers"],char:"🦹‍♀️",fitzpatrick_scale:!0,category:"people"},lbe={keywords:["man","male","evil","bad","criminal","hero","superpowers"],char:"🦹‍♂️",fitzpatrick_scale:!0,category:"people"},cbe={keywords:["woman","female","xmas","mother christmas"],char:"🤶",fitzpatrick_scale:!0,category:"people"},ube={keywords:["festival","man","male","xmas","father christmas"],char:"🎅",fitzpatrick_scale:!0,category:"people"},dbe={keywords:["woman","female","mage","witch"],char:"🧙‍♀️",fitzpatrick_scale:!0,category:"people"},fbe={keywords:["man","male","mage","sorcerer"],char:"🧙‍♂️",fitzpatrick_scale:!0,category:"people"},hbe={keywords:["woman","female"],char:"🧝‍♀️",fitzpatrick_scale:!0,category:"people"},pbe={keywords:["man","male"],char:"🧝‍♂️",fitzpatrick_scale:!0,category:"people"},mbe={keywords:["woman","female"],char:"🧛‍♀️",fitzpatrick_scale:!0,category:"people"},gbe={keywords:["man","male","dracula"],char:"🧛‍♂️",fitzpatrick_scale:!0,category:"people"},ybe={keywords:["woman","female","undead","walking dead"],char:"🧟‍♀️",fitzpatrick_scale:!1,category:"people"},_be={keywords:["man","male","dracula","undead","walking dead"],char:"🧟‍♂️",fitzpatrick_scale:!1,category:"people"},bbe={keywords:["woman","female"],char:"🧞‍♀️",fitzpatrick_scale:!1,category:"people"},kbe={keywords:["man","male"],char:"🧞‍♂️",fitzpatrick_scale:!1,category:"people"},wbe={keywords:["woman","female","merwoman","ariel"],char:"🧜‍♀️",fitzpatrick_scale:!0,category:"people"},vbe={keywords:["man","male","triton"],char:"🧜‍♂️",fitzpatrick_scale:!0,category:"people"},xbe={keywords:["woman","female"],char:"🧚‍♀️",fitzpatrick_scale:!0,category:"people"},Cbe={keywords:["man","male"],char:"🧚‍♂️",fitzpatrick_scale:!0,category:"people"},Sbe={keywords:["heaven","wings","halo"],char:"👼",fitzpatrick_scale:!0,category:"people"},Dbe={keywords:["baby"],char:"🤰",fitzpatrick_scale:!0,category:"people"},Ebe={keywords:["nursing","baby"],char:"🤱",fitzpatrick_scale:!0,category:"people"},Tbe={keywords:["girl","woman","female","blond","crown","royal","queen"],char:"👸",fitzpatrick_scale:!0,category:"people"},Abe={keywords:["boy","man","male","crown","royal","king"],char:"🤴",fitzpatrick_scale:!0,category:"people"},zbe={keywords:["couple","marriage","wedding","woman","bride"],char:"👰",fitzpatrick_scale:!0,category:"people"},Fbe={keywords:["couple","marriage","wedding","groom"],char:"🤵",fitzpatrick_scale:!0,category:"people"},$be={keywords:["woman","walking","exercise","race","running","female"],char:"🏃‍♀️",fitzpatrick_scale:!0,category:"people"},Mbe={keywords:["man","walking","exercise","race","running"],char:"🏃",fitzpatrick_scale:!0,category:"people"},Obe={keywords:["human","feet","steps","woman","female"],char:"🚶‍♀️",fitzpatrick_scale:!0,category:"people"},Nbe={keywords:["human","feet","steps"],char:"🚶",fitzpatrick_scale:!0,category:"people"},Lbe={keywords:["female","girl","woman","fun"],char:"💃",fitzpatrick_scale:!0,category:"people"},Ibe={keywords:["male","boy","fun","dancer"],char:"🕺",fitzpatrick_scale:!0,category:"people"},Bbe={keywords:["female","bunny","women","girls"],char:"👯",fitzpatrick_scale:!1,category:"people"},Rbe={keywords:["male","bunny","men","boys"],char:"👯‍♂️",fitzpatrick_scale:!1,category:"people"},Pbe={keywords:["pair","people","human","love","date","dating","like","affection","valentines","marriage"],char:"👫",fitzpatrick_scale:!1,category:"people"},jbe={keywords:["pair","couple","love","like","bromance","friendship","people","human"],char:"👬",fitzpatrick_scale:!1,category:"people"},Vbe={keywords:["pair","friendship","couple","love","like","female","people","human"],char:"👭",fitzpatrick_scale:!1,category:"people"},qbe={keywords:["woman","female","girl"],char:"🙇‍♀️",fitzpatrick_scale:!0,category:"people"},Hbe={keywords:["man","male","boy"],char:"🙇",fitzpatrick_scale:!0,category:"people"},Ube={keywords:["man","male","boy","disbelief"],char:"🤦‍♂️",fitzpatrick_scale:!0,category:"people"},Wbe={keywords:["woman","female","girl","disbelief"],char:"🤦‍♀️",fitzpatrick_scale:!0,category:"people"},Gbe={keywords:["woman","female","girl","confused","indifferent","doubt"],char:"🤷",fitzpatrick_scale:!0,category:"people"},Kbe={keywords:["man","male","boy","confused","indifferent","doubt"],char:"🤷‍♂️",fitzpatrick_scale:!0,category:"people"},Ybe={keywords:["female","girl","woman","human","information"],char:"💁",fitzpatrick_scale:!0,category:"people"},Zbe={keywords:["male","boy","man","human","information"],char:"💁‍♂️",fitzpatrick_scale:!0,category:"people"},Xbe={keywords:["female","girl","woman","nope"],char:"🙅",fitzpatrick_scale:!0,category:"people"},Jbe={keywords:["male","boy","man","nope"],char:"🙅‍♂️",fitzpatrick_scale:!0,category:"people"},Qbe={keywords:["women","girl","female","pink","human","woman"],char:"🙆",fitzpatrick_scale:!0,category:"people"},eke={keywords:["men","boy","male","blue","human","man"],char:"🙆‍♂️",fitzpatrick_scale:!0,category:"people"},tke={keywords:["female","girl","woman"],char:"🙋",fitzpatrick_scale:!0,category:"people"},nke={keywords:["male","boy","man"],char:"🙋‍♂️",fitzpatrick_scale:!0,category:"people"},rke={keywords:["female","girl","woman"],char:"🙎",fitzpatrick_scale:!0,category:"people"},ike={keywords:["male","boy","man"],char:"🙎‍♂️",fitzpatrick_scale:!0,category:"people"},ake={keywords:["female","girl","woman","sad","depressed","discouraged","unhappy"],char:"🙍",fitzpatrick_scale:!0,category:"people"},oke={keywords:["male","boy","man","sad","depressed","discouraged","unhappy"],char:"🙍‍♂️",fitzpatrick_scale:!0,category:"people"},ske={keywords:["female","girl","woman"],char:"💇",fitzpatrick_scale:!0,category:"people"},lke={keywords:["male","boy","man"],char:"💇‍♂️",fitzpatrick_scale:!0,category:"people"},cke={keywords:["female","girl","woman","head"],char:"💆",fitzpatrick_scale:!0,category:"people"},uke={keywords:["male","boy","man","head"],char:"💆‍♂️",fitzpatrick_scale:!0,category:"people"},dke={keywords:["female","woman","spa","steamroom","sauna"],char:"🧖‍♀️",fitzpatrick_scale:!0,category:"people"},fke={keywords:["male","man","spa","steamroom","sauna"],char:"🧖‍♂️",fitzpatrick_scale:!0,category:"people"},hke={keywords:["pair","love","like","affection","human","dating","valentines","marriage"],char:"💑",fitzpatrick_scale:!1,category:"people"},pke={keywords:["pair","love","like","affection","human","dating","valentines","marriage"],char:"👩‍❤️‍👩",fitzpatrick_scale:!1,category:"people"},mke={keywords:["pair","love","like","affection","human","dating","valentines","marriage"],char:"👨‍❤️‍👨",fitzpatrick_scale:!1,category:"people"},gke={keywords:["pair","valentines","love","like","dating","marriage"],char:"💏",fitzpatrick_scale:!1,category:"people"},yke={keywords:["pair","valentines","love","like","dating","marriage"],char:"👩‍❤️‍💋‍👩",fitzpatrick_scale:!1,category:"people"},_ke={keywords:["pair","valentines","love","like","dating","marriage"],char:"👨‍❤️‍💋‍👨",fitzpatrick_scale:!1,category:"people"},bke={keywords:["home","parents","child","mom","dad","father","mother","people","human"],char:"👪",fitzpatrick_scale:!1,category:"people"},kke={keywords:["home","parents","people","human","child"],char:"👨‍👩‍👧",fitzpatrick_scale:!1,category:"people"},wke={keywords:["home","parents","people","human","children"],char:"👨‍👩‍👧‍👦",fitzpatrick_scale:!1,category:"people"},vke={keywords:["home","parents","people","human","children"],char:"👨‍👩‍👦‍👦",fitzpatrick_scale:!1,category:"people"},xke={keywords:["home","parents","people","human","children"],char:"👨‍👩‍👧‍👧",fitzpatrick_scale:!1,category:"people"},Cke={keywords:["home","parents","people","human","children"],char:"👩‍👩‍👦",fitzpatrick_scale:!1,category:"people"},Ske={keywords:["home","parents","people","human","children"],char:"👩‍👩‍👧",fitzpatrick_scale:!1,category:"people"},Dke={keywords:["home","parents","people","human","children"],char:"👩‍👩‍👧‍👦",fitzpatrick_scale:!1,category:"people"},Eke={keywords:["home","parents","people","human","children"],char:"👩‍👩‍👦‍👦",fitzpatrick_scale:!1,category:"people"},Tke={keywords:["home","parents","people","human","children"],char:"👩‍👩‍👧‍👧",fitzpatrick_scale:!1,category:"people"},Ake={keywords:["home","parents","people","human","children"],char:"👨‍👨‍👦",fitzpatrick_scale:!1,category:"people"},zke={keywords:["home","parents","people","human","children"],char:"👨‍👨‍👧",fitzpatrick_scale:!1,category:"people"},Fke={keywords:["home","parents","people","human","children"],char:"👨‍👨‍👧‍👦",fitzpatrick_scale:!1,category:"people"},$ke={keywords:["home","parents","people","human","children"],char:"👨‍👨‍👦‍👦",fitzpatrick_scale:!1,category:"people"},Mke={keywords:["home","parents","people","human","children"],char:"👨‍👨‍👧‍👧",fitzpatrick_scale:!1,category:"people"},Oke={keywords:["home","parent","people","human","child"],char:"👩‍👦",fitzpatrick_scale:!1,category:"people"},Nke={keywords:["home","parent","people","human","child"],char:"👩‍👧",fitzpatrick_scale:!1,category:"people"},Lke={keywords:["home","parent","people","human","children"],char:"👩‍👧‍👦",fitzpatrick_scale:!1,category:"people"},Ike={keywords:["home","parent","people","human","children"],char:"👩‍👦‍👦",fitzpatrick_scale:!1,category:"people"},Bke={keywords:["home","parent","people","human","children"],char:"👩‍👧‍👧",fitzpatrick_scale:!1,category:"people"},Rke={keywords:["home","parent","people","human","child"],char:"👨‍👦",fitzpatrick_scale:!1,category:"people"},Pke={keywords:["home","parent","people","human","child"],char:"👨‍👧",fitzpatrick_scale:!1,category:"people"},jke={keywords:["home","parent","people","human","children"],char:"👨‍👧‍👦",fitzpatrick_scale:!1,category:"people"},Vke={keywords:["home","parent","people","human","children"],char:"👨‍👦‍👦",fitzpatrick_scale:!1,category:"people"},qke={keywords:["home","parent","people","human","children"],char:"👨‍👧‍👧",fitzpatrick_scale:!1,category:"people"},Hke={keywords:["ball","crochet","knit"],char:"🧶",fitzpatrick_scale:!1,category:"people"},Uke={keywords:["needle","sewing","spool","string"],char:"🧵",fitzpatrick_scale:!1,category:"people"},Wke={keywords:["jacket"],char:"🧥",fitzpatrick_scale:!1,category:"people"},Gke={keywords:["doctor","experiment","scientist","chemist"],char:"🥼",fitzpatrick_scale:!1,category:"people"},Kke={keywords:["fashion","shopping_bags","female"],char:"👚",fitzpatrick_scale:!1,category:"people"},Yke={keywords:["fashion","cloth","casual","shirt","tee"],char:"👕",fitzpatrick_scale:!1,category:"people"},Zke={keywords:["fashion","shopping"],char:"👖",fitzpatrick_scale:!1,category:"people"},Xke={keywords:["shirt","suitup","formal","fashion","cloth","business"],char:"👔",fitzpatrick_scale:!1,category:"people"},Jke={keywords:["clothes","fashion","shopping"],char:"👗",fitzpatrick_scale:!1,category:"people"},Qke={keywords:["swimming","female","woman","girl","fashion","beach","summer"],char:"👙",fitzpatrick_scale:!1,category:"people"},ewe={keywords:["dress","fashion","women","female","japanese"],char:"👘",fitzpatrick_scale:!1,category:"people"},twe={keywords:["female","girl","fashion","woman"],char:"💄",fitzpatrick_scale:!1,category:"people"},nwe={keywords:["face","lips","love","like","affection","valentines"],char:"💋",fitzpatrick_scale:!1,category:"people"},rwe={keywords:["feet","tracking","walking","beach"],char:"👣",fitzpatrick_scale:!1,category:"people"},iwe={keywords:["ballet","slip-on","slipper"],char:"🥿",fitzpatrick_scale:!1,category:"people"},awe={keywords:["fashion","shoes","female","pumps","stiletto"],char:"👠",fitzpatrick_scale:!1,category:"people"},owe={keywords:["shoes","fashion","flip flops"],char:"👡",fitzpatrick_scale:!1,category:"people"},swe={keywords:["shoes","fashion"],char:"👢",fitzpatrick_scale:!1,category:"people"},lwe={keywords:["fashion","male"],char:"👞",fitzpatrick_scale:!1,category:"people"},cwe={keywords:["shoes","sports","sneakers"],char:"👟",fitzpatrick_scale:!1,category:"people"},uwe={keywords:["backpacking","camping","hiking"],char:"🥾",fitzpatrick_scale:!1,category:"people"},dwe={keywords:["stockings","clothes"],char:"🧦",fitzpatrick_scale:!1,category:"people"},fwe={keywords:["hands","winter","clothes"],char:"🧤",fitzpatrick_scale:!1,category:"people"},hwe={keywords:["neck","winter","clothes"],char:"🧣",fitzpatrick_scale:!1,category:"people"},pwe={keywords:["fashion","accessories","female","lady","spring"],char:"👒",fitzpatrick_scale:!1,category:"people"},mwe={keywords:["magic","gentleman","classy","circus"],char:"🎩",fitzpatrick_scale:!1,category:"people"},gwe={keywords:["cap","baseball"],char:"🧢",fitzpatrick_scale:!1,category:"people"},ywe={keywords:["construction","build"],char:"⛑",fitzpatrick_scale:!1,category:"people"},_we={keywords:["school","college","degree","university","graduation","cap","hat","legal","learn","education"],char:"🎓",fitzpatrick_scale:!1,category:"people"},bwe={keywords:["king","kod","leader","royalty","lord"],char:"👑",fitzpatrick_scale:!1,category:"people"},kwe={keywords:["student","education","bag","backpack"],char:"🎒",fitzpatrick_scale:!1,category:"people"},wwe={keywords:["packing","travel"],char:"🧳",fitzpatrick_scale:!1,category:"people"},vwe={keywords:["bag","accessories","shopping"],char:"👝",fitzpatrick_scale:!1,category:"people"},xwe={keywords:["fashion","accessories","money","sales","shopping"],char:"👛",fitzpatrick_scale:!1,category:"people"},Cwe={keywords:["fashion","accessory","accessories","shopping"],char:"👜",fitzpatrick_scale:!1,category:"people"},Swe={keywords:["business","documents","work","law","legal","job","career"],char:"💼",fitzpatrick_scale:!1,category:"people"},Dwe={keywords:["fashion","accessories","eyesight","nerdy","dork","geek"],char:"👓",fitzpatrick_scale:!1,category:"people"},Ewe={keywords:["face","cool","accessories"],char:"🕶",fitzpatrick_scale:!1,category:"people"},Twe={keywords:["eyes","protection","safety"],char:"🥽",fitzpatrick_scale:!1,category:"people"},Awe={keywords:["wedding","propose","marriage","valentines","diamond","fashion","jewelry","gem","engagement"],char:"💍",fitzpatrick_scale:!1,category:"people"},zwe={keywords:["weather","rain","drizzle"],char:"🌂",fitzpatrick_scale:!1,category:"people"},Fwe={keywords:["animal","friend","nature","woof","puppy","pet","faithful"],char:"🐶",fitzpatrick_scale:!1,category:"animals_and_nature"},$we={keywords:["animal","meow","nature","pet","kitten"],char:"🐱",fitzpatrick_scale:!1,category:"animals_and_nature"},Mwe={keywords:["animal","nature","cheese_wedge","rodent"],char:"🐭",fitzpatrick_scale:!1,category:"animals_and_nature"},Owe={keywords:["animal","nature"],char:"🐹",fitzpatrick_scale:!1,category:"animals_and_nature"},Nwe={keywords:["animal","nature","pet","spring","magic","bunny"],char:"🐰",fitzpatrick_scale:!1,category:"animals_and_nature"},Lwe={keywords:["animal","nature","face"],char:"🦊",fitzpatrick_scale:!1,category:"animals_and_nature"},Iwe={keywords:["animal","nature","wild"],char:"🐻",fitzpatrick_scale:!1,category:"animals_and_nature"},Bwe={keywords:["animal","nature","panda"],char:"🐼",fitzpatrick_scale:!1,category:"animals_and_nature"},Rwe={keywords:["animal","nature"],char:"🐨",fitzpatrick_scale:!1,category:"animals_and_nature"},Pwe={keywords:["animal","cat","danger","wild","nature","roar"],char:"🐯",fitzpatrick_scale:!1,category:"animals_and_nature"},jwe={keywords:["animal","nature"],char:"🦁",fitzpatrick_scale:!1,category:"animals_and_nature"},Vwe={keywords:["beef","ox","animal","nature","moo","milk"],char:"🐮",fitzpatrick_scale:!1,category:"animals_and_nature"},qwe={keywords:["animal","oink","nature"],char:"🐷",fitzpatrick_scale:!1,category:"animals_and_nature"},Hwe={keywords:["animal","oink"],char:"🐽",fitzpatrick_scale:!1,category:"animals_and_nature"},Uwe={keywords:["animal","nature","croak","toad"],char:"🐸",fitzpatrick_scale:!1,category:"animals_and_nature"},Wwe={keywords:["animal","nature","ocean","sea"],char:"🦑",fitzpatrick_scale:!1,category:"animals_and_nature"},Gwe={keywords:["animal","creature","ocean","sea","nature","beach"],char:"🐙",fitzpatrick_scale:!1,category:"animals_and_nature"},Kwe={keywords:["animal","ocean","nature","seafood"],char:"🦐",fitzpatrick_scale:!1,category:"animals_and_nature"},Ywe={keywords:["animal","nature","circus"],char:"🐵",fitzpatrick_scale:!1,category:"animals_and_nature"},Zwe={keywords:["animal","nature","circus"],char:"🦍",fitzpatrick_scale:!1,category:"animals_and_nature"},Xwe={keywords:["monkey","animal","nature","haha"],char:"🙈",fitzpatrick_scale:!1,category:"animals_and_nature"},Jwe={keywords:["animal","monkey","nature"],char:"🙉",fitzpatrick_scale:!1,category:"animals_and_nature"},Qwe={keywords:["monkey","animal","nature","omg"],char:"🙊",fitzpatrick_scale:!1,category:"animals_and_nature"},eve={keywords:["animal","nature","banana","circus"],char:"🐒",fitzpatrick_scale:!1,category:"animals_and_nature"},tve={keywords:["animal","cluck","nature","bird"],char:"🐔",fitzpatrick_scale:!1,category:"animals_and_nature"},nve={keywords:["animal","nature"],char:"🐧",fitzpatrick_scale:!1,category:"animals_and_nature"},rve={keywords:["animal","nature","fly","tweet","spring"],char:"🐦",fitzpatrick_scale:!1,category:"animals_and_nature"},ive={keywords:["animal","chicken","bird"],char:"🐤",fitzpatrick_scale:!1,category:"animals_and_nature"},ave={keywords:["animal","chicken","egg","born","baby","bird"],char:"🐣",fitzpatrick_scale:!1,category:"animals_and_nature"},ove={keywords:["animal","chicken","baby","bird"],char:"🐥",fitzpatrick_scale:!1,category:"animals_and_nature"},sve={keywords:["animal","nature","bird","mallard"],char:"🦆",fitzpatrick_scale:!1,category:"animals_and_nature"},lve={keywords:["animal","nature","bird"],char:"🦅",fitzpatrick_scale:!1,category:"animals_and_nature"},cve={keywords:["animal","nature","bird","hoot"],char:"🦉",fitzpatrick_scale:!1,category:"animals_and_nature"},uve={keywords:["animal","nature","blind","vampire"],char:"🦇",fitzpatrick_scale:!1,category:"animals_and_nature"},dve={keywords:["animal","nature","wild"],char:"🐺",fitzpatrick_scale:!1,category:"animals_and_nature"},fve={keywords:["animal","nature"],char:"🐗",fitzpatrick_scale:!1,category:"animals_and_nature"},hve={keywords:["animal","brown","nature"],char:"🐴",fitzpatrick_scale:!1,category:"animals_and_nature"},pve={keywords:["animal","nature","mystical"],char:"🦄",fitzpatrick_scale:!1,category:"animals_and_nature"},mve={keywords:["animal","insect","nature","bug","spring","honey"],char:"🐝",fitzpatrick_scale:!1,category:"animals_and_nature"},gve={keywords:["animal","insect","nature","worm"],char:"🐛",fitzpatrick_scale:!1,category:"animals_and_nature"},yve={keywords:["animal","insect","nature","caterpillar"],char:"🦋",fitzpatrick_scale:!1,category:"animals_and_nature"},_ve={keywords:["slow","animal","shell"],char:"🐌",fitzpatrick_scale:!1,category:"animals_and_nature"},bve={keywords:["animal","insect","nature","ladybug"],char:"🐞",fitzpatrick_scale:!1,category:"animals_and_nature"},kve={keywords:["animal","insect","nature","bug"],char:"🐜",fitzpatrick_scale:!1,category:"animals_and_nature"},wve={keywords:["animal","cricket","chirp"],char:"🦗",fitzpatrick_scale:!1,category:"animals_and_nature"},vve={keywords:["animal","arachnid"],char:"🕷",fitzpatrick_scale:!1,category:"animals_and_nature"},xve={keywords:["animal","arachnid"],char:"🦂",fitzpatrick_scale:!1,category:"animals_and_nature"},Cve={keywords:["animal","crustacean"],char:"🦀",fitzpatrick_scale:!1,category:"animals_and_nature"},Sve={keywords:["animal","evil","nature","hiss","python"],char:"🐍",fitzpatrick_scale:!1,category:"animals_and_nature"},Dve={keywords:["animal","nature","reptile"],char:"🦎",fitzpatrick_scale:!1,category:"animals_and_nature"},Eve={keywords:["animal","nature","dinosaur","brachiosaurus","brontosaurus","diplodocus","extinct"],char:"🦕",fitzpatrick_scale:!1,category:"animals_and_nature"},Tve={keywords:["animal","slow","nature","tortoise"],char:"🐢",fitzpatrick_scale:!1,category:"animals_and_nature"},Ave={keywords:["animal","swim","ocean","beach","nemo"],char:"🐠",fitzpatrick_scale:!1,category:"animals_and_nature"},zve={keywords:["animal","food","nature"],char:"🐟",fitzpatrick_scale:!1,category:"animals_and_nature"},Fve={keywords:["animal","nature","food","sea","ocean"],char:"🐡",fitzpatrick_scale:!1,category:"animals_and_nature"},$ve={keywords:["animal","nature","fish","sea","ocean","flipper","fins","beach"],char:"🐬",fitzpatrick_scale:!1,category:"animals_and_nature"},Mve={keywords:["animal","nature","fish","sea","ocean","jaws","fins","beach"],char:"🦈",fitzpatrick_scale:!1,category:"animals_and_nature"},Ove={keywords:["animal","nature","sea","ocean"],char:"🐳",fitzpatrick_scale:!1,category:"animals_and_nature"},Nve={keywords:["animal","nature","sea","ocean"],char:"🐋",fitzpatrick_scale:!1,category:"animals_and_nature"},Lve={keywords:["animal","nature","reptile","lizard","alligator"],char:"🐊",fitzpatrick_scale:!1,category:"animals_and_nature"},Ive={keywords:["animal","nature"],char:"🐆",fitzpatrick_scale:!1,category:"animals_and_nature"},Bve={keywords:["animal","nature","stripes","safari"],char:"🦓",fitzpatrick_scale:!1,category:"animals_and_nature"},Rve={keywords:["animal","nature","roar"],char:"🐅",fitzpatrick_scale:!1,category:"animals_and_nature"},Pve={keywords:["animal","nature","ox","cow"],char:"🐃",fitzpatrick_scale:!1,category:"animals_and_nature"},jve={keywords:["animal","cow","beef"],char:"🐂",fitzpatrick_scale:!1,category:"animals_and_nature"},Vve={keywords:["beef","ox","animal","nature","moo","milk"],char:"🐄",fitzpatrick_scale:!1,category:"animals_and_nature"},qve={keywords:["animal","nature","horns","venison"],char:"🦌",fitzpatrick_scale:!1,category:"animals_and_nature"},Hve={keywords:["animal","hot","desert","hump"],char:"🐪",fitzpatrick_scale:!1,category:"animals_and_nature"},Uve={keywords:["animal","nature","hot","desert","hump"],char:"🐫",fitzpatrick_scale:!1,category:"animals_and_nature"},Wve={keywords:["animal","nature","spots","safari"],char:"🦒",fitzpatrick_scale:!1,category:"animals_and_nature"},Gve={keywords:["animal","nature","nose","th","circus"],char:"🐘",fitzpatrick_scale:!1,category:"animals_and_nature"},Kve={keywords:["animal","nature","horn"],char:"🦏",fitzpatrick_scale:!1,category:"animals_and_nature"},Yve={keywords:["animal","nature"],char:"🐐",fitzpatrick_scale:!1,category:"animals_and_nature"},Zve={keywords:["animal","sheep","nature"],char:"🐏",fitzpatrick_scale:!1,category:"animals_and_nature"},Xve={keywords:["animal","nature","wool","shipit"],char:"🐑",fitzpatrick_scale:!1,category:"animals_and_nature"},Jve={keywords:["animal","gamble","luck"],char:"🐎",fitzpatrick_scale:!1,category:"animals_and_nature"},Qve={keywords:["animal","nature"],char:"🐖",fitzpatrick_scale:!1,category:"animals_and_nature"},e2e={keywords:["animal","mouse","rodent"],char:"🐀",fitzpatrick_scale:!1,category:"animals_and_nature"},t2e={keywords:["animal","nature","rodent"],char:"🐁",fitzpatrick_scale:!1,category:"animals_and_nature"},n2e={keywords:["animal","nature","chicken"],char:"🐓",fitzpatrick_scale:!1,category:"animals_and_nature"},r2e={keywords:["animal","bird"],char:"🦃",fitzpatrick_scale:!1,category:"animals_and_nature"},i2e={keywords:["animal","bird"],char:"🕊",fitzpatrick_scale:!1,category:"animals_and_nature"},a2e={keywords:["animal","nature","friend","doge","pet","faithful"],char:"🐕",fitzpatrick_scale:!1,category:"animals_and_nature"},o2e={keywords:["dog","animal","101","nature","pet"],char:"🐩",fitzpatrick_scale:!1,category:"animals_and_nature"},s2e={keywords:["animal","meow","pet","cats"],char:"🐈",fitzpatrick_scale:!1,category:"animals_and_nature"},l2e={keywords:["animal","nature","pet","magic","spring"],char:"🐇",fitzpatrick_scale:!1,category:"animals_and_nature"},c2e={keywords:["animal","nature","rodent","squirrel"],char:"🐿",fitzpatrick_scale:!1,category:"animals_and_nature"},u2e={keywords:["animal","nature","spiny"],char:"🦔",fitzpatrick_scale:!1,category:"animals_and_nature"},d2e={keywords:["animal","nature"],char:"🦝",fitzpatrick_scale:!1,category:"animals_and_nature"},f2e={keywords:["animal","nature","alpaca"],char:"🦙",fitzpatrick_scale:!1,category:"animals_and_nature"},h2e={keywords:["animal","nature"],char:"🦛",fitzpatrick_scale:!1,category:"animals_and_nature"},p2e={keywords:["animal","nature","australia","joey","hop","marsupial"],char:"🦘",fitzpatrick_scale:!1,category:"animals_and_nature"},m2e={keywords:["animal","nature","honey"],char:"🦡",fitzpatrick_scale:!1,category:"animals_and_nature"},g2e={keywords:["animal","nature","bird"],char:"🦢",fitzpatrick_scale:!1,category:"animals_and_nature"},y2e={keywords:["animal","nature","peahen","bird"],char:"🦚",fitzpatrick_scale:!1,category:"animals_and_nature"},_2e={keywords:["animal","nature","bird","pirate","talk"],char:"🦜",fitzpatrick_scale:!1,category:"animals_and_nature"},b2e={keywords:["animal","nature","bisque","claws","seafood"],char:"🦞",fitzpatrick_scale:!1,category:"animals_and_nature"},k2e={keywords:["animal","nature","insect","malaria"],char:"🦟",fitzpatrick_scale:!1,category:"animals_and_nature"},w2e={keywords:["animal","tracking","footprints","dog","cat","pet","feet"],char:"🐾",fitzpatrick_scale:!1,category:"animals_and_nature"},v2e={keywords:["animal","myth","nature","chinese","green"],char:"🐉",fitzpatrick_scale:!1,category:"animals_and_nature"},x2e={keywords:["animal","myth","nature","chinese","green"],char:"🐲",fitzpatrick_scale:!1,category:"animals_and_nature"},C2e={keywords:["vegetable","plant","nature"],char:"🌵",fitzpatrick_scale:!1,category:"animals_and_nature"},S2e={keywords:["festival","vacation","december","xmas","celebration"],char:"🎄",fitzpatrick_scale:!1,category:"animals_and_nature"},D2e={keywords:["plant","nature"],char:"🌲",fitzpatrick_scale:!1,category:"animals_and_nature"},E2e={keywords:["plant","nature"],char:"🌳",fitzpatrick_scale:!1,category:"animals_and_nature"},T2e={keywords:["plant","vegetable","nature","summer","beach","mojito","tropical"],char:"🌴",fitzpatrick_scale:!1,category:"animals_and_nature"},A2e={keywords:["plant","nature","grass","lawn","spring"],char:"🌱",fitzpatrick_scale:!1,category:"animals_and_nature"},z2e={keywords:["vegetable","plant","medicine","weed","grass","lawn"],char:"🌿",fitzpatrick_scale:!1,category:"animals_and_nature"},F2e={keywords:["vegetable","plant","nature","irish","clover"],char:"☘",fitzpatrick_scale:!1,category:"animals_and_nature"},$2e={keywords:["vegetable","plant","nature","lucky","irish"],char:"🍀",fitzpatrick_scale:!1,category:"animals_and_nature"},M2e={keywords:["plant","nature","vegetable","panda","pine_decoration"],char:"🎍",fitzpatrick_scale:!1,category:"animals_and_nature"},O2e={keywords:["plant","nature","branch","summer"],char:"🎋",fitzpatrick_scale:!1,category:"animals_and_nature"},N2e={keywords:["nature","plant","tree","vegetable","grass","lawn","spring"],char:"🍃",fitzpatrick_scale:!1,category:"animals_and_nature"},L2e={keywords:["nature","plant","vegetable","leaves"],char:"🍂",fitzpatrick_scale:!1,category:"animals_and_nature"},I2e={keywords:["nature","plant","vegetable","ca","fall"],char:"🍁",fitzpatrick_scale:!1,category:"animals_and_nature"},B2e={keywords:["nature","plant"],char:"🌾",fitzpatrick_scale:!1,category:"animals_and_nature"},R2e={keywords:["plant","vegetable","flowers","beach"],char:"🌺",fitzpatrick_scale:!1,category:"animals_and_nature"},P2e={keywords:["nature","plant","fall"],char:"🌻",fitzpatrick_scale:!1,category:"animals_and_nature"},j2e={keywords:["flowers","valentines","love","spring"],char:"🌹",fitzpatrick_scale:!1,category:"animals_and_nature"},V2e={keywords:["plant","nature","flower"],char:"🥀",fitzpatrick_scale:!1,category:"animals_and_nature"},q2e={keywords:["flowers","plant","nature","summer","spring"],char:"🌷",fitzpatrick_scale:!1,category:"animals_and_nature"},H2e={keywords:["nature","flowers","yellow"],char:"🌼",fitzpatrick_scale:!1,category:"animals_and_nature"},U2e={keywords:["nature","plant","spring","flower"],char:"🌸",fitzpatrick_scale:!1,category:"animals_and_nature"},W2e={keywords:["flowers","nature","spring"],char:"💐",fitzpatrick_scale:!1,category:"animals_and_nature"},G2e={keywords:["plant","vegetable"],char:"🍄",fitzpatrick_scale:!1,category:"animals_and_nature"},K2e={keywords:["food","squirrel"],char:"🌰",fitzpatrick_scale:!1,category:"animals_and_nature"},Y2e={keywords:["halloween","light","pumpkin","creepy","fall"],char:"🎃",fitzpatrick_scale:!1,category:"animals_and_nature"},Z2e={keywords:["nature","sea","beach"],char:"🐚",fitzpatrick_scale:!1,category:"animals_and_nature"},X2e={keywords:["animal","insect","arachnid","silk"],char:"🕸",fitzpatrick_scale:!1,category:"animals_and_nature"},J2e={keywords:["globe","world","USA","international"],char:"🌎",fitzpatrick_scale:!1,category:"animals_and_nature"},Q2e={keywords:["globe","world","international"],char:"🌍",fitzpatrick_scale:!1,category:"animals_and_nature"},e3e={keywords:["globe","world","east","international"],char:"🌏",fitzpatrick_scale:!1,category:"animals_and_nature"},t3e={keywords:["nature","yellow","twilight","planet","space","night","evening","sleep"],char:"🌕",fitzpatrick_scale:!1,category:"animals_and_nature"},n3e={keywords:["nature","twilight","planet","space","night","evening","sleep","waxing_gibbous_moon"],char:"🌖",fitzpatrick_scale:!1,category:"animals_and_nature"},r3e={keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌗",fitzpatrick_scale:!1,category:"animals_and_nature"},i3e={keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌘",fitzpatrick_scale:!1,category:"animals_and_nature"},a3e={keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌑",fitzpatrick_scale:!1,category:"animals_and_nature"},o3e={keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌒",fitzpatrick_scale:!1,category:"animals_and_nature"},s3e={keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌓",fitzpatrick_scale:!1,category:"animals_and_nature"},l3e={keywords:["nature","night","sky","gray","twilight","planet","space","evening","sleep"],char:"🌔",fitzpatrick_scale:!1,category:"animals_and_nature"},c3e={keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌚",fitzpatrick_scale:!1,category:"animals_and_nature"},u3e={keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌝",fitzpatrick_scale:!1,category:"animals_and_nature"},d3e={keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌛",fitzpatrick_scale:!1,category:"animals_and_nature"},f3e={keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌜",fitzpatrick_scale:!1,category:"animals_and_nature"},h3e={keywords:["nature","morning","sky"],char:"🌞",fitzpatrick_scale:!1,category:"animals_and_nature"},p3e={keywords:["night","sleep","sky","evening","magic"],char:"🌙",fitzpatrick_scale:!1,category:"animals_and_nature"},m3e={keywords:["night","yellow"],char:"⭐",fitzpatrick_scale:!1,category:"animals_and_nature"},g3e={keywords:["night","sparkle","awesome","good","magic"],char:"🌟",fitzpatrick_scale:!1,category:"animals_and_nature"},y3e={keywords:["star","sparkle","shoot","magic"],char:"💫",fitzpatrick_scale:!1,category:"animals_and_nature"},_3e={keywords:["stars","shine","shiny","cool","awesome","good","magic"],char:"✨",fitzpatrick_scale:!1,category:"animals_and_nature"},b3e={keywords:["space"],char:"☄",fitzpatrick_scale:!1,category:"animals_and_nature"},k3e={keywords:["weather","nature","brightness","summer","beach","spring"],char:"☀️",fitzpatrick_scale:!1,category:"animals_and_nature"},w3e={keywords:["weather"],char:"🌤",fitzpatrick_scale:!1,category:"animals_and_nature"},v3e={keywords:["weather","nature","cloudy","morning","fall","spring"],char:"⛅",fitzpatrick_scale:!1,category:"animals_and_nature"},x3e={keywords:["weather"],char:"🌥",fitzpatrick_scale:!1,category:"animals_and_nature"},C3e={keywords:["weather"],char:"🌦",fitzpatrick_scale:!1,category:"animals_and_nature"},S3e={keywords:["weather","sky"],char:"☁️",fitzpatrick_scale:!1,category:"animals_and_nature"},D3e={keywords:["weather"],char:"🌧",fitzpatrick_scale:!1,category:"animals_and_nature"},E3e={keywords:["weather","lightning"],char:"⛈",fitzpatrick_scale:!1,category:"animals_and_nature"},T3e={keywords:["weather","thunder"],char:"🌩",fitzpatrick_scale:!1,category:"animals_and_nature"},A3e={keywords:["thunder","weather","lightning bolt","fast"],char:"⚡",fitzpatrick_scale:!1,category:"animals_and_nature"},z3e={keywords:["hot","cook","flame"],char:"🔥",fitzpatrick_scale:!1,category:"animals_and_nature"},F3e={keywords:["bomb","explode","explosion","collision","blown"],char:"💥",fitzpatrick_scale:!1,category:"animals_and_nature"},$3e={keywords:["winter","season","cold","weather","christmas","xmas"],char:"❄️",fitzpatrick_scale:!1,category:"animals_and_nature"},M3e={keywords:["weather"],char:"🌨",fitzpatrick_scale:!1,category:"animals_and_nature"},O3e={keywords:["winter","season","cold","weather","christmas","xmas","frozen","without_snow"],char:"⛄",fitzpatrick_scale:!1,category:"animals_and_nature"},N3e={keywords:["winter","season","cold","weather","christmas","xmas","frozen"],char:"☃",fitzpatrick_scale:!1,category:"animals_and_nature"},L3e={keywords:["gust","air"],char:"🌬",fitzpatrick_scale:!1,category:"animals_and_nature"},I3e={keywords:["wind","air","fast","shoo","fart","smoke","puff"],char:"💨",fitzpatrick_scale:!1,category:"animals_and_nature"},B3e={keywords:["weather","cyclone","twister"],char:"🌪",fitzpatrick_scale:!1,category:"animals_and_nature"},R3e={keywords:["weather"],char:"🌫",fitzpatrick_scale:!1,category:"animals_and_nature"},P3e={keywords:["weather","spring"],char:"☂",fitzpatrick_scale:!1,category:"animals_and_nature"},j3e={keywords:["rainy","weather","spring"],char:"☔",fitzpatrick_scale:!1,category:"animals_and_nature"},V3e={keywords:["water","drip","faucet","spring"],char:"💧",fitzpatrick_scale:!1,category:"animals_and_nature"},q3e={keywords:["water","drip","oops"],char:"💦",fitzpatrick_scale:!1,category:"animals_and_nature"},H3e={keywords:["sea","water","wave","nature","tsunami","disaster"],char:"🌊",fitzpatrick_scale:!1,category:"animals_and_nature"},U3e={keywords:["fruit","nature"],char:"🍏",fitzpatrick_scale:!1,category:"food_and_drink"},W3e={keywords:["fruit","mac","school"],char:"🍎",fitzpatrick_scale:!1,category:"food_and_drink"},G3e={keywords:["fruit","nature","food"],char:"🍐",fitzpatrick_scale:!1,category:"food_and_drink"},K3e={keywords:["food","fruit","nature","orange"],char:"🍊",fitzpatrick_scale:!1,category:"food_and_drink"},Y3e={keywords:["fruit","nature"],char:"🍋",fitzpatrick_scale:!1,category:"food_and_drink"},Z3e={keywords:["fruit","food","monkey"],char:"🍌",fitzpatrick_scale:!1,category:"food_and_drink"},X3e={keywords:["fruit","food","picnic","summer"],char:"🍉",fitzpatrick_scale:!1,category:"food_and_drink"},J3e={keywords:["fruit","food","wine"],char:"🍇",fitzpatrick_scale:!1,category:"food_and_drink"},Q3e={keywords:["fruit","food","nature"],char:"🍓",fitzpatrick_scale:!1,category:"food_and_drink"},e4e={keywords:["fruit","nature","food"],char:"🍈",fitzpatrick_scale:!1,category:"food_and_drink"},t4e={keywords:["food","fruit"],char:"🍒",fitzpatrick_scale:!1,category:"food_and_drink"},n4e={keywords:["fruit","nature","food"],char:"🍑",fitzpatrick_scale:!1,category:"food_and_drink"},r4e={keywords:["fruit","nature","food"],char:"🍍",fitzpatrick_scale:!1,category:"food_and_drink"},i4e={keywords:["fruit","nature","food","palm"],char:"🥥",fitzpatrick_scale:!1,category:"food_and_drink"},a4e={keywords:["fruit","food"],char:"🥝",fitzpatrick_scale:!1,category:"food_and_drink"},o4e={keywords:["fruit","food","tropical"],char:"🥭",fitzpatrick_scale:!1,category:"food_and_drink"},s4e={keywords:["fruit","food"],char:"🥑",fitzpatrick_scale:!1,category:"food_and_drink"},l4e={keywords:["fruit","food","vegetable"],char:"🥦",fitzpatrick_scale:!1,category:"food_and_drink"},c4e={keywords:["fruit","vegetable","nature","food"],char:"🍅",fitzpatrick_scale:!1,category:"food_and_drink"},u4e={keywords:["vegetable","nature","food","aubergine"],char:"🍆",fitzpatrick_scale:!1,category:"food_and_drink"},d4e={keywords:["fruit","food","pickle"],char:"🥒",fitzpatrick_scale:!1,category:"food_and_drink"},f4e={keywords:["vegetable","food","orange"],char:"🥕",fitzpatrick_scale:!1,category:"food_and_drink"},h4e={keywords:["food","spicy","chilli","chili"],char:"🌶",fitzpatrick_scale:!1,category:"food_and_drink"},p4e={keywords:["food","tuber","vegatable","starch"],char:"🥔",fitzpatrick_scale:!1,category:"food_and_drink"},m4e={keywords:["food","vegetable","plant"],char:"🌽",fitzpatrick_scale:!1,category:"food_and_drink"},g4e={keywords:["food","vegetable","plant","bok choy","cabbage","kale","lettuce"],char:"🥬",fitzpatrick_scale:!1,category:"food_and_drink"},y4e={keywords:["food","nature"],char:"🍠",fitzpatrick_scale:!1,category:"food_and_drink"},_4e={keywords:["food","nut"],char:"🥜",fitzpatrick_scale:!1,category:"food_and_drink"},b4e={keywords:["bees","sweet","kitchen"],char:"🍯",fitzpatrick_scale:!1,category:"food_and_drink"},k4e={keywords:["food","bread","french"],char:"🥐",fitzpatrick_scale:!1,category:"food_and_drink"},w4e={keywords:["food","wheat","breakfast","toast"],char:"🍞",fitzpatrick_scale:!1,category:"food_and_drink"},v4e={keywords:["food","bread","french"],char:"🥖",fitzpatrick_scale:!1,category:"food_and_drink"},x4e={keywords:["food","bread","bakery","schmear"],char:"🥯",fitzpatrick_scale:!1,category:"food_and_drink"},C4e={keywords:["food","bread","twisted"],char:"🥨",fitzpatrick_scale:!1,category:"food_and_drink"},S4e={keywords:["food","chadder"],char:"🧀",fitzpatrick_scale:!1,category:"food_and_drink"},D4e={keywords:["food","chicken","breakfast"],char:"🥚",fitzpatrick_scale:!1,category:"food_and_drink"},E4e={keywords:["food","breakfast","pork","pig","meat"],char:"🥓",fitzpatrick_scale:!1,category:"food_and_drink"},T4e={keywords:["food","cow","meat","cut","chop","lambchop","porkchop"],char:"🥩",fitzpatrick_scale:!1,category:"food_and_drink"},A4e={keywords:["food","breakfast","flapjacks","hotcakes"],char:"🥞",fitzpatrick_scale:!1,category:"food_and_drink"},z4e={keywords:["food","meat","drumstick","bird","chicken","turkey"],char:"🍗",fitzpatrick_scale:!1,category:"food_and_drink"},F4e={keywords:["good","food","drumstick"],char:"🍖",fitzpatrick_scale:!1,category:"food_and_drink"},$4e={keywords:["skeleton"],char:"🦴",fitzpatrick_scale:!1,category:"food_and_drink"},M4e={keywords:["food","animal","appetizer","summer"],char:"🍤",fitzpatrick_scale:!1,category:"food_and_drink"},O4e={keywords:["food","breakfast","kitchen","egg"],char:"🍳",fitzpatrick_scale:!1,category:"food_and_drink"},N4e={keywords:["meat","fast food","beef","cheeseburger","mcdonalds","burger king"],char:"🍔",fitzpatrick_scale:!1,category:"food_and_drink"},L4e={keywords:["chips","snack","fast food"],char:"🍟",fitzpatrick_scale:!1,category:"food_and_drink"},I4e={keywords:["food","flatbread","stuffed","gyro"],char:"🥙",fitzpatrick_scale:!1,category:"food_and_drink"},B4e={keywords:["food","frankfurter"],char:"🌭",fitzpatrick_scale:!1,category:"food_and_drink"},R4e={keywords:["food","party"],char:"🍕",fitzpatrick_scale:!1,category:"food_and_drink"},P4e={keywords:["food","lunch","bread"],char:"🥪",fitzpatrick_scale:!1,category:"food_and_drink"},j4e={keywords:["food","soup"],char:"🥫",fitzpatrick_scale:!1,category:"food_and_drink"},V4e={keywords:["food","italian","noodle"],char:"🍝",fitzpatrick_scale:!1,category:"food_and_drink"},q4e={keywords:["food","mexican"],char:"🌮",fitzpatrick_scale:!1,category:"food_and_drink"},H4e={keywords:["food","mexican"],char:"🌯",fitzpatrick_scale:!1,category:"food_and_drink"},U4e={keywords:["food","healthy","lettuce"],char:"🥗",fitzpatrick_scale:!1,category:"food_and_drink"},W4e={keywords:["food","cooking","casserole","paella"],char:"🥘",fitzpatrick_scale:!1,category:"food_and_drink"},G4e={keywords:["food","japanese","noodle","chopsticks"],char:"🍜",fitzpatrick_scale:!1,category:"food_and_drink"},K4e={keywords:["food","meat","soup"],char:"🍲",fitzpatrick_scale:!1,category:"food_and_drink"},Y4e={keywords:["food","japan","sea","beach","narutomaki","pink","swirl","kamaboko","surimi","ramen"],char:"🍥",fitzpatrick_scale:!1,category:"food_and_drink"},Z4e={keywords:["food","prophecy"],char:"🥠",fitzpatrick_scale:!1,category:"food_and_drink"},X4e={keywords:["food","fish","japanese","rice"],char:"🍣",fitzpatrick_scale:!1,category:"food_and_drink"},J4e={keywords:["food","japanese","box"],char:"🍱",fitzpatrick_scale:!1,category:"food_and_drink"},Q4e={keywords:["food","spicy","hot","indian"],char:"🍛",fitzpatrick_scale:!1,category:"food_and_drink"},e6e={keywords:["food","japanese"],char:"🍙",fitzpatrick_scale:!1,category:"food_and_drink"},t6e={keywords:["food","china","asian"],char:"🍚",fitzpatrick_scale:!1,category:"food_and_drink"},n6e={keywords:["food","japanese"],char:"🍘",fitzpatrick_scale:!1,category:"food_and_drink"},r6e={keywords:["food","japanese"],char:"🍢",fitzpatrick_scale:!1,category:"food_and_drink"},i6e={keywords:["food","dessert","sweet","japanese","barbecue","meat"],char:"🍡",fitzpatrick_scale:!1,category:"food_and_drink"},a6e={keywords:["hot","dessert","summer"],char:"🍧",fitzpatrick_scale:!1,category:"food_and_drink"},o6e={keywords:["food","hot","dessert"],char:"🍨",fitzpatrick_scale:!1,category:"food_and_drink"},s6e={keywords:["food","hot","dessert","summer"],char:"🍦",fitzpatrick_scale:!1,category:"food_and_drink"},l6e={keywords:["food","dessert","pastry"],char:"🥧",fitzpatrick_scale:!1,category:"food_and_drink"},c6e={keywords:["food","dessert"],char:"🍰",fitzpatrick_scale:!1,category:"food_and_drink"},u6e={keywords:["food","dessert","bakery","sweet"],char:"🧁",fitzpatrick_scale:!1,category:"food_and_drink"},d6e={keywords:["food","autumn"],char:"🥮",fitzpatrick_scale:!1,category:"food_and_drink"},f6e={keywords:["food","dessert","cake"],char:"🎂",fitzpatrick_scale:!1,category:"food_and_drink"},h6e={keywords:["dessert","food"],char:"🍮",fitzpatrick_scale:!1,category:"food_and_drink"},p6e={keywords:["snack","dessert","sweet","lolly"],char:"🍬",fitzpatrick_scale:!1,category:"food_and_drink"},m6e={keywords:["food","snack","candy","sweet"],char:"🍭",fitzpatrick_scale:!1,category:"food_and_drink"},g6e={keywords:["food","snack","dessert","sweet"],char:"🍫",fitzpatrick_scale:!1,category:"food_and_drink"},y6e={keywords:["food","movie theater","films","snack"],char:"🍿",fitzpatrick_scale:!1,category:"food_and_drink"},_6e={keywords:["food","empanada","pierogi","potsticker"],char:"🥟",fitzpatrick_scale:!1,category:"food_and_drink"},b6e={keywords:["food","dessert","snack","sweet","donut"],char:"🍩",fitzpatrick_scale:!1,category:"food_and_drink"},k6e={keywords:["food","snack","oreo","chocolate","sweet","dessert"],char:"🍪",fitzpatrick_scale:!1,category:"food_and_drink"},w6e={keywords:["beverage","drink","cow"],char:"🥛",fitzpatrick_scale:!1,category:"food_and_drink"},v6e={keywords:["relax","beverage","drink","drunk","party","pub","summer","alcohol","booze"],char:"🍺",fitzpatrick_scale:!1,category:"food_and_drink"},x6e={keywords:["relax","beverage","drink","drunk","party","pub","summer","alcohol","booze"],char:"🍻",fitzpatrick_scale:!1,category:"food_and_drink"},C6e={keywords:["beverage","drink","party","alcohol","celebrate","cheers","wine","champagne","toast"],char:"🥂",fitzpatrick_scale:!1,category:"food_and_drink"},S6e={keywords:["drink","beverage","drunk","alcohol","booze"],char:"🍷",fitzpatrick_scale:!1,category:"food_and_drink"},D6e={keywords:["drink","beverage","drunk","alcohol","liquor","booze","bourbon","scotch","whisky","glass","shot"],char:"🥃",fitzpatrick_scale:!1,category:"food_and_drink"},E6e={keywords:["drink","drunk","alcohol","beverage","booze","mojito"],char:"🍸",fitzpatrick_scale:!1,category:"food_and_drink"},T6e={keywords:["beverage","cocktail","summer","beach","alcohol","booze","mojito"],char:"🍹",fitzpatrick_scale:!1,category:"food_and_drink"},A6e={keywords:["drink","wine","bottle","celebration"],char:"🍾",fitzpatrick_scale:!1,category:"food_and_drink"},z6e={keywords:["wine","drink","drunk","beverage","japanese","alcohol","booze"],char:"🍶",fitzpatrick_scale:!1,category:"food_and_drink"},F6e={keywords:["drink","bowl","breakfast","green","british"],char:"🍵",fitzpatrick_scale:!1,category:"food_and_drink"},$6e={keywords:["drink","soda"],char:"🥤",fitzpatrick_scale:!1,category:"food_and_drink"},M6e={keywords:["beverage","caffeine","latte","espresso"],char:"☕",fitzpatrick_scale:!1,category:"food_and_drink"},O6e={keywords:["food","container","milk"],char:"🍼",fitzpatrick_scale:!1,category:"food_and_drink"},N6e={keywords:["condiment","shaker"],char:"🧂",fitzpatrick_scale:!1,category:"food_and_drink"},L6e={keywords:["cutlery","kitchen","tableware"],char:"🥄",fitzpatrick_scale:!1,category:"food_and_drink"},I6e={keywords:["cutlery","kitchen"],char:"🍴",fitzpatrick_scale:!1,category:"food_and_drink"},B6e={keywords:["food","eat","meal","lunch","dinner","restaurant"],char:"🍽",fitzpatrick_scale:!1,category:"food_and_drink"},R6e={keywords:["food","breakfast","cereal","oatmeal","porridge"],char:"🥣",fitzpatrick_scale:!1,category:"food_and_drink"},P6e={keywords:["food","leftovers"],char:"🥡",fitzpatrick_scale:!1,category:"food_and_drink"},j6e={keywords:["food"],char:"🥢",fitzpatrick_scale:!1,category:"food_and_drink"},V6e={keywords:["sports","football"],char:"⚽",fitzpatrick_scale:!1,category:"activity"},q6e={keywords:["sports","balls","NBA"],char:"🏀",fitzpatrick_scale:!1,category:"activity"},H6e={keywords:["sports","balls","NFL"],char:"🏈",fitzpatrick_scale:!1,category:"activity"},U6e={keywords:["sports","balls"],char:"⚾",fitzpatrick_scale:!1,category:"activity"},W6e={keywords:["sports","balls"],char:"🥎",fitzpatrick_scale:!1,category:"activity"},G6e={keywords:["sports","balls","green"],char:"🎾",fitzpatrick_scale:!1,category:"activity"},K6e={keywords:["sports","balls"],char:"🏐",fitzpatrick_scale:!1,category:"activity"},Y6e={keywords:["sports","team"],char:"🏉",fitzpatrick_scale:!1,category:"activity"},Z6e={keywords:["sports","frisbee","ultimate"],char:"🥏",fitzpatrick_scale:!1,category:"activity"},X6e={keywords:["sports","business","flag","hole","summer"],char:"⛳",fitzpatrick_scale:!1,category:"activity"},J6e={keywords:["sports","business","woman","female"],char:"🏌️‍♀️",fitzpatrick_scale:!1,category:"activity"},Q6e={keywords:["sports","business"],char:"🏌",fitzpatrick_scale:!0,category:"activity"},e5e={keywords:["sports","pingpong"],char:"🏓",fitzpatrick_scale:!1,category:"activity"},t5e={keywords:["sports"],char:"🏸",fitzpatrick_scale:!1,category:"activity"},n5e={keywords:["sports"],char:"🥅",fitzpatrick_scale:!1,category:"activity"},r5e={keywords:["sports"],char:"🏒",fitzpatrick_scale:!1,category:"activity"},i5e={keywords:["sports"],char:"🏑",fitzpatrick_scale:!1,category:"activity"},a5e={keywords:["sports","ball","stick"],char:"🥍",fitzpatrick_scale:!1,category:"activity"},o5e={keywords:["sports"],char:"🏏",fitzpatrick_scale:!1,category:"activity"},s5e={keywords:["sports","winter","cold","snow"],char:"🎿",fitzpatrick_scale:!1,category:"activity"},l5e={keywords:["sports","winter","snow"],char:"⛷",fitzpatrick_scale:!1,category:"activity"},c5e={keywords:["sports","winter"],char:"🏂",fitzpatrick_scale:!0,category:"activity"},u5e={keywords:["sports","fencing","sword"],char:"🤺",fitzpatrick_scale:!1,category:"activity"},d5e={keywords:["sports","wrestlers"],char:"🤼‍♀️",fitzpatrick_scale:!1,category:"activity"},f5e={keywords:["sports","wrestlers"],char:"🤼‍♂️",fitzpatrick_scale:!1,category:"activity"},h5e={keywords:["gymnastics"],char:"🤸‍♀️",fitzpatrick_scale:!0,category:"activity"},p5e={keywords:["gymnastics"],char:"🤸‍♂️",fitzpatrick_scale:!0,category:"activity"},m5e={keywords:["sports"],char:"🤾‍♀️",fitzpatrick_scale:!0,category:"activity"},g5e={keywords:["sports"],char:"🤾‍♂️",fitzpatrick_scale:!0,category:"activity"},y5e={keywords:["sports"],char:"⛸",fitzpatrick_scale:!1,category:"activity"},_5e={keywords:["sports"],char:"🥌",fitzpatrick_scale:!1,category:"activity"},b5e={keywords:["board"],char:"🛹",fitzpatrick_scale:!1,category:"activity"},k5e={keywords:["sleigh","luge","toboggan"],char:"🛷",fitzpatrick_scale:!1,category:"activity"},w5e={keywords:["sports"],char:"🏹",fitzpatrick_scale:!1,category:"activity"},v5e={keywords:["food","hobby","summer"],char:"🎣",fitzpatrick_scale:!1,category:"activity"},x5e={keywords:["sports","fighting"],char:"🥊",fitzpatrick_scale:!1,category:"activity"},C5e={keywords:["judo","karate","taekwondo"],char:"🥋",fitzpatrick_scale:!1,category:"activity"},S5e={keywords:["sports","hobby","water","ship","woman","female"],char:"🚣‍♀️",fitzpatrick_scale:!0,category:"activity"},D5e={keywords:["sports","hobby","water","ship"],char:"🚣",fitzpatrick_scale:!0,category:"activity"},E5e={keywords:["sports","hobby","woman","female","rock"],char:"🧗‍♀️",fitzpatrick_scale:!0,category:"activity"},T5e={keywords:["sports","hobby","man","male","rock"],char:"🧗‍♂️",fitzpatrick_scale:!0,category:"activity"},A5e={keywords:["sports","exercise","human","athlete","water","summer","woman","female"],char:"🏊‍♀️",fitzpatrick_scale:!0,category:"activity"},z5e={keywords:["sports","exercise","human","athlete","water","summer"],char:"🏊",fitzpatrick_scale:!0,category:"activity"},F5e={keywords:["sports","pool"],char:"🤽‍♀️",fitzpatrick_scale:!0,category:"activity"},$5e={keywords:["sports","pool"],char:"🤽‍♂️",fitzpatrick_scale:!0,category:"activity"},M5e={keywords:["woman","female","meditation","yoga","serenity","zen","mindfulness"],char:"🧘‍♀️",fitzpatrick_scale:!0,category:"activity"},O5e={keywords:["man","male","meditation","yoga","serenity","zen","mindfulness"],char:"🧘‍♂️",fitzpatrick_scale:!0,category:"activity"},N5e={keywords:["sports","ocean","sea","summer","beach","woman","female"],char:"🏄‍♀️",fitzpatrick_scale:!0,category:"activity"},L5e={keywords:["sports","ocean","sea","summer","beach"],char:"🏄",fitzpatrick_scale:!0,category:"activity"},I5e={keywords:["clean","shower","bathroom"],char:"🛀",fitzpatrick_scale:!0,category:"activity"},B5e={keywords:["sports","human","woman","female"],char:"⛹️‍♀️",fitzpatrick_scale:!0,category:"activity"},R5e={keywords:["sports","human"],char:"⛹",fitzpatrick_scale:!0,category:"activity"},P5e={keywords:["sports","training","exercise","woman","female"],char:"🏋️‍♀️",fitzpatrick_scale:!0,category:"activity"},j5e={keywords:["sports","training","exercise"],char:"🏋",fitzpatrick_scale:!0,category:"activity"},V5e={keywords:["sports","bike","exercise","hipster","woman","female"],char:"🚴‍♀️",fitzpatrick_scale:!0,category:"activity"},q5e={keywords:["sports","bike","exercise","hipster"],char:"🚴",fitzpatrick_scale:!0,category:"activity"},H5e={keywords:["transportation","sports","human","race","bike","woman","female"],char:"🚵‍♀️",fitzpatrick_scale:!0,category:"activity"},U5e={keywords:["transportation","sports","human","race","bike"],char:"🚵",fitzpatrick_scale:!0,category:"activity"},W5e={keywords:["animal","betting","competition","gambling","luck"],char:"🏇",fitzpatrick_scale:!0,category:"activity"},G5e={keywords:["suit","business","levitate","hover","jump"],char:"🕴",fitzpatrick_scale:!0,category:"activity"},K5e={keywords:["win","award","contest","place","ftw","ceremony"],char:"🏆",fitzpatrick_scale:!1,category:"activity"},Y5e={keywords:["play","pageant"],char:"🎽",fitzpatrick_scale:!1,category:"activity"},Z5e={keywords:["award","winning"],char:"🏅",fitzpatrick_scale:!1,category:"activity"},X5e={keywords:["award","winning","army"],char:"🎖",fitzpatrick_scale:!1,category:"activity"},J5e={keywords:["sports","cause","support","awareness"],char:"🎗",fitzpatrick_scale:!1,category:"activity"},Q5e={keywords:["flower","decoration","military"],char:"🏵",fitzpatrick_scale:!1,category:"activity"},exe={keywords:["event","concert","pass"],char:"🎫",fitzpatrick_scale:!1,category:"activity"},txe={keywords:["sports","concert","entrance"],char:"🎟",fitzpatrick_scale:!1,category:"activity"},nxe={keywords:["acting","theater","drama"],char:"🎭",fitzpatrick_scale:!1,category:"activity"},rxe={keywords:["design","paint","draw","colors"],char:"🎨",fitzpatrick_scale:!1,category:"activity"},ixe={keywords:["festival","carnival","party"],char:"🎪",fitzpatrick_scale:!1,category:"activity"},axe={keywords:["juggle","balance","skill","multitask"],char:"🤹‍♀️",fitzpatrick_scale:!0,category:"activity"},oxe={keywords:["juggle","balance","skill","multitask"],char:"🤹‍♂️",fitzpatrick_scale:!0,category:"activity"},sxe={keywords:["sound","music","PA","sing","talkshow"],char:"🎤",fitzpatrick_scale:!1,category:"activity"},lxe={keywords:["music","score","gadgets"],char:"🎧",fitzpatrick_scale:!1,category:"activity"},cxe={keywords:["treble","clef","compose"],char:"🎼",fitzpatrick_scale:!1,category:"activity"},uxe={keywords:["piano","instrument","compose"],char:"🎹",fitzpatrick_scale:!1,category:"activity"},dxe={keywords:["music","instrument","drumsticks","snare"],char:"🥁",fitzpatrick_scale:!1,category:"activity"},fxe={keywords:["music","instrument","jazz","blues"],char:"🎷",fitzpatrick_scale:!1,category:"activity"},hxe={keywords:["music","brass"],char:"🎺",fitzpatrick_scale:!1,category:"activity"},pxe={keywords:["music","instrument"],char:"🎸",fitzpatrick_scale:!1,category:"activity"},mxe={keywords:["music","instrument","orchestra","symphony"],char:"🎻",fitzpatrick_scale:!1,category:"activity"},gxe={keywords:["movie","film","record"],char:"🎬",fitzpatrick_scale:!1,category:"activity"},yxe={keywords:["play","console","PS4","controller"],char:"🎮",fitzpatrick_scale:!1,category:"activity"},_xe={keywords:["game","arcade","play"],char:"👾",fitzpatrick_scale:!1,category:"activity"},bxe={keywords:["game","play","bar","target","bullseye"],char:"🎯",fitzpatrick_scale:!1,category:"activity"},kxe={keywords:["dice","random","tabletop","play","luck"],char:"🎲",fitzpatrick_scale:!1,category:"activity"},wxe={keywords:["expendable"],char:"♟",fitzpatrick_scale:!1,category:"activity"},vxe={keywords:["bet","gamble","vegas","fruit machine","luck","casino"],char:"🎰",fitzpatrick_scale:!1,category:"activity"},xxe={keywords:["interlocking","puzzle","piece"],char:"🧩",fitzpatrick_scale:!1,category:"activity"},Cxe={keywords:["sports","fun","play"],char:"🎳",fitzpatrick_scale:!1,category:"activity"},Sxe={keywords:["red","transportation","vehicle"],char:"🚗",fitzpatrick_scale:!1,category:"travel_and_places"},Dxe={keywords:["uber","vehicle","cars","transportation"],char:"🚕",fitzpatrick_scale:!1,category:"travel_and_places"},Exe={keywords:["transportation","vehicle"],char:"🚙",fitzpatrick_scale:!1,category:"travel_and_places"},Txe={keywords:["car","vehicle","transportation"],char:"🚌",fitzpatrick_scale:!1,category:"travel_and_places"},Axe={keywords:["bart","transportation","vehicle"],char:"🚎",fitzpatrick_scale:!1,category:"travel_and_places"},zxe={keywords:["sports","race","fast","formula","f1"],char:"🏎",fitzpatrick_scale:!1,category:"travel_and_places"},Fxe={keywords:["vehicle","cars","transportation","law","legal","enforcement"],char:"🚓",fitzpatrick_scale:!1,category:"travel_and_places"},$xe={keywords:["health","911","hospital"],char:"🚑",fitzpatrick_scale:!1,category:"travel_and_places"},Mxe={keywords:["transportation","cars","vehicle"],char:"🚒",fitzpatrick_scale:!1,category:"travel_and_places"},Oxe={keywords:["vehicle","car","transportation"],char:"🚐",fitzpatrick_scale:!1,category:"travel_and_places"},Nxe={keywords:["cars","transportation"],char:"🚚",fitzpatrick_scale:!1,category:"travel_and_places"},Lxe={keywords:["vehicle","cars","transportation","express"],char:"🚛",fitzpatrick_scale:!1,category:"travel_and_places"},Ixe={keywords:["vehicle","car","farming","agriculture"],char:"🚜",fitzpatrick_scale:!1,category:"travel_and_places"},Bxe={keywords:["vehicle","kick","razor"],char:"🛴",fitzpatrick_scale:!1,category:"travel_and_places"},Rxe={keywords:["race","sports","fast"],char:"🏍",fitzpatrick_scale:!1,category:"travel_and_places"},Pxe={keywords:["sports","bicycle","exercise","hipster"],char:"🚲",fitzpatrick_scale:!1,category:"travel_and_places"},jxe={keywords:["vehicle","vespa","sasha"],char:"🛵",fitzpatrick_scale:!1,category:"travel_and_places"},Vxe={keywords:["police","ambulance","911","emergency","alert","error","pinged","law","legal"],char:"🚨",fitzpatrick_scale:!1,category:"travel_and_places"},qxe={keywords:["vehicle","law","legal","enforcement","911"],char:"🚔",fitzpatrick_scale:!1,category:"travel_and_places"},Hxe={keywords:["vehicle","transportation"],char:"🚍",fitzpatrick_scale:!1,category:"travel_and_places"},Uxe={keywords:["car","vehicle","transportation"],char:"🚘",fitzpatrick_scale:!1,category:"travel_and_places"},Wxe={keywords:["vehicle","cars","uber"],char:"🚖",fitzpatrick_scale:!1,category:"travel_and_places"},Gxe={keywords:["transportation","vehicle","ski"],char:"🚡",fitzpatrick_scale:!1,category:"travel_and_places"},Kxe={keywords:["transportation","vehicle","ski"],char:"🚠",fitzpatrick_scale:!1,category:"travel_and_places"},Yxe={keywords:["vehicle","transportation"],char:"🚟",fitzpatrick_scale:!1,category:"travel_and_places"},Zxe={keywords:["transportation","vehicle"],char:"🚃",fitzpatrick_scale:!1,category:"travel_and_places"},Xxe={keywords:["transportation","vehicle","carriage","public","travel"],char:"🚋",fitzpatrick_scale:!1,category:"travel_and_places"},Jxe={keywords:["transportation","vehicle"],char:"🚝",fitzpatrick_scale:!1,category:"travel_and_places"},Qxe={keywords:["transportation","vehicle"],char:"🚄",fitzpatrick_scale:!1,category:"travel_and_places"},e8e={keywords:["transportation","vehicle","speed","fast","public","travel"],char:"🚅",fitzpatrick_scale:!1,category:"travel_and_places"},t8e={keywords:["transportation","vehicle"],char:"🚈",fitzpatrick_scale:!1,category:"travel_and_places"},n8e={keywords:["transportation","vehicle"],char:"🚞",fitzpatrick_scale:!1,category:"travel_and_places"},r8e={keywords:["transportation","vehicle","train"],char:"🚂",fitzpatrick_scale:!1,category:"travel_and_places"},i8e={keywords:["transportation","vehicle"],char:"🚆",fitzpatrick_scale:!1,category:"travel_and_places"},a8e={keywords:["transportation","blue-square","mrt","underground","tube"],char:"🚇",fitzpatrick_scale:!1,category:"travel_and_places"},o8e={keywords:["transportation","vehicle"],char:"🚊",fitzpatrick_scale:!1,category:"travel_and_places"},s8e={keywords:["transportation","vehicle","public"],char:"🚉",fitzpatrick_scale:!1,category:"travel_and_places"},l8e={keywords:["transportation","vehicle","ufo"],char:"🛸",fitzpatrick_scale:!1,category:"travel_and_places"},c8e={keywords:["transportation","vehicle","fly"],char:"🚁",fitzpatrick_scale:!1,category:"travel_and_places"},u8e={keywords:["flight","transportation","fly","vehicle"],char:"🛩",fitzpatrick_scale:!1,category:"travel_and_places"},d8e={keywords:["vehicle","transportation","flight","fly"],char:"✈️",fitzpatrick_scale:!1,category:"travel_and_places"},f8e={keywords:["airport","flight","landing"],char:"🛫",fitzpatrick_scale:!1,category:"travel_and_places"},h8e={keywords:["airport","flight","boarding"],char:"🛬",fitzpatrick_scale:!1,category:"travel_and_places"},p8e={keywords:["ship","summer","transportation","water","sailing"],char:"⛵",fitzpatrick_scale:!1,category:"travel_and_places"},m8e={keywords:["ship"],char:"🛥",fitzpatrick_scale:!1,category:"travel_and_places"},g8e={keywords:["ship","transportation","vehicle","summer"],char:"🚤",fitzpatrick_scale:!1,category:"travel_and_places"},y8e={keywords:["boat","ship","yacht"],char:"⛴",fitzpatrick_scale:!1,category:"travel_and_places"},_8e={keywords:["yacht","cruise","ferry"],char:"🛳",fitzpatrick_scale:!1,category:"travel_and_places"},b8e={keywords:["launch","ship","staffmode","NASA","outer space","outer_space","fly"],char:"🚀",fitzpatrick_scale:!1,category:"travel_and_places"},k8e={keywords:["communication","gps","orbit","spaceflight","NASA","ISS"],char:"🛰",fitzpatrick_scale:!1,category:"travel_and_places"},w8e={keywords:["sit","airplane","transport","bus","flight","fly"],char:"💺",fitzpatrick_scale:!1,category:"travel_and_places"},v8e={keywords:["boat","paddle","water","ship"],char:"🛶",fitzpatrick_scale:!1,category:"travel_and_places"},x8e={keywords:["ship","ferry","sea","boat"],char:"⚓",fitzpatrick_scale:!1,category:"travel_and_places"},C8e={keywords:["wip","progress","caution","warning"],char:"🚧",fitzpatrick_scale:!1,category:"travel_and_places"},S8e={keywords:["gas station","petroleum"],char:"⛽",fitzpatrick_scale:!1,category:"travel_and_places"},D8e={keywords:["transportation","wait"],char:"🚏",fitzpatrick_scale:!1,category:"travel_and_places"},E8e={keywords:["transportation","driving"],char:"🚦",fitzpatrick_scale:!1,category:"travel_and_places"},T8e={keywords:["transportation","signal"],char:"🚥",fitzpatrick_scale:!1,category:"travel_and_places"},A8e={keywords:["contest","finishline","race","gokart"],char:"🏁",fitzpatrick_scale:!1,category:"travel_and_places"},z8e={keywords:["transportation","titanic","deploy"],char:"🚢",fitzpatrick_scale:!1,category:"travel_and_places"},F8e={keywords:["photo","carnival","londoneye"],char:"🎡",fitzpatrick_scale:!1,category:"travel_and_places"},$8e={keywords:["carnival","playground","photo","fun"],char:"🎢",fitzpatrick_scale:!1,category:"travel_and_places"},M8e={keywords:["photo","carnival"],char:"🎠",fitzpatrick_scale:!1,category:"travel_and_places"},O8e={keywords:["wip","working","progress"],char:"🏗",fitzpatrick_scale:!1,category:"travel_and_places"},N8e={keywords:["photo","mountain"],char:"🌁",fitzpatrick_scale:!1,category:"travel_and_places"},L8e={keywords:["photo","japanese"],char:"🗼",fitzpatrick_scale:!1,category:"travel_and_places"},I8e={keywords:["building","industry","pollution","smoke"],char:"🏭",fitzpatrick_scale:!1,category:"travel_and_places"},B8e={keywords:["photo","summer","water","fresh"],char:"⛲",fitzpatrick_scale:!1,category:"travel_and_places"},R8e={keywords:["photo","japan","asia","tsukimi"],char:"🎑",fitzpatrick_scale:!1,category:"travel_and_places"},P8e={keywords:["photo","nature","environment"],char:"⛰",fitzpatrick_scale:!1,category:"travel_and_places"},j8e={keywords:["photo","nature","environment","winter","cold"],char:"🏔",fitzpatrick_scale:!1,category:"travel_and_places"},V8e={keywords:["photo","mountain","nature","japanese"],char:"🗻",fitzpatrick_scale:!1,category:"travel_and_places"},q8e={keywords:["photo","nature","disaster"],char:"🌋",fitzpatrick_scale:!1,category:"travel_and_places"},H8e={keywords:["nation","country","japanese","asia"],char:"🗾",fitzpatrick_scale:!1,category:"travel_and_places"},U8e={keywords:["photo","outdoors","tent"],char:"🏕",fitzpatrick_scale:!1,category:"travel_and_places"},W8e={keywords:["photo","camping","outdoors"],char:"⛺",fitzpatrick_scale:!1,category:"travel_and_places"},G8e={keywords:["photo","environment","nature"],char:"🏞",fitzpatrick_scale:!1,category:"travel_and_places"},K8e={keywords:["road","cupertino","interstate","highway"],char:"🛣",fitzpatrick_scale:!1,category:"travel_and_places"},Y8e={keywords:["train","transportation"],char:"🛤",fitzpatrick_scale:!1,category:"travel_and_places"},Z8e={keywords:["morning","view","vacation","photo"],char:"🌅",fitzpatrick_scale:!1,category:"travel_and_places"},X8e={keywords:["view","vacation","photo"],char:"🌄",fitzpatrick_scale:!1,category:"travel_and_places"},J8e={keywords:["photo","warm","saharah"],char:"🏜",fitzpatrick_scale:!1,category:"travel_and_places"},Q8e={keywords:["weather","summer","sunny","sand","mojito"],char:"🏖",fitzpatrick_scale:!1,category:"travel_and_places"},e7e={keywords:["photo","tropical","mojito"],char:"🏝",fitzpatrick_scale:!1,category:"travel_and_places"},t7e={keywords:["photo","good morning","dawn"],char:"🌇",fitzpatrick_scale:!1,category:"travel_and_places"},n7e={keywords:["photo","evening","sky","buildings"],char:"🌆",fitzpatrick_scale:!1,category:"travel_and_places"},r7e={keywords:["photo","night life","urban"],char:"🏙",fitzpatrick_scale:!1,category:"travel_and_places"},i7e={keywords:["evening","city","downtown"],char:"🌃",fitzpatrick_scale:!1,category:"travel_and_places"},a7e={keywords:["photo","sanfrancisco"],char:"🌉",fitzpatrick_scale:!1,category:"travel_and_places"},o7e={keywords:["photo","space","stars"],char:"🌌",fitzpatrick_scale:!1,category:"travel_and_places"},s7e={keywords:["night","photo"],char:"🌠",fitzpatrick_scale:!1,category:"travel_and_places"},l7e={keywords:["stars","night","shine"],char:"🎇",fitzpatrick_scale:!1,category:"travel_and_places"},c7e={keywords:["photo","festival","carnival","congratulations"],char:"🎆",fitzpatrick_scale:!1,category:"travel_and_places"},u7e={keywords:["nature","happy","unicorn_face","photo","sky","spring"],char:"🌈",fitzpatrick_scale:!1,category:"travel_and_places"},d7e={keywords:["buildings","photo"],char:"🏘",fitzpatrick_scale:!1,category:"travel_and_places"},f7e={keywords:["building","royalty","history"],char:"🏰",fitzpatrick_scale:!1,category:"travel_and_places"},h7e={keywords:["photo","building"],char:"🏯",fitzpatrick_scale:!1,category:"travel_and_places"},p7e={keywords:["photo","place","sports","concert","venue"],char:"🏟",fitzpatrick_scale:!1,category:"travel_and_places"},m7e={keywords:["american","newyork"],char:"🗽",fitzpatrick_scale:!1,category:"travel_and_places"},g7e={keywords:["building","home"],char:"🏠",fitzpatrick_scale:!1,category:"travel_and_places"},y7e={keywords:["home","plant","nature"],char:"🏡",fitzpatrick_scale:!1,category:"travel_and_places"},_7e={keywords:["abandon","evict","broken","building"],char:"🏚",fitzpatrick_scale:!1,category:"travel_and_places"},b7e={keywords:["building","bureau","work"],char:"🏢",fitzpatrick_scale:!1,category:"travel_and_places"},k7e={keywords:["building","shopping","mall"],char:"🏬",fitzpatrick_scale:!1,category:"travel_and_places"},w7e={keywords:["building","envelope","communication"],char:"🏣",fitzpatrick_scale:!1,category:"travel_and_places"},v7e={keywords:["building","email"],char:"🏤",fitzpatrick_scale:!1,category:"travel_and_places"},x7e={keywords:["building","health","surgery","doctor"],char:"🏥",fitzpatrick_scale:!1,category:"travel_and_places"},C7e={keywords:["building","money","sales","cash","business","enterprise"],char:"🏦",fitzpatrick_scale:!1,category:"travel_and_places"},S7e={keywords:["building","accomodation","checkin"],char:"🏨",fitzpatrick_scale:!1,category:"travel_and_places"},D7e={keywords:["building","shopping","groceries"],char:"🏪",fitzpatrick_scale:!1,category:"travel_and_places"},E7e={keywords:["building","student","education","learn","teach"],char:"🏫",fitzpatrick_scale:!1,category:"travel_and_places"},T7e={keywords:["like","affection","dating"],char:"🏩",fitzpatrick_scale:!1,category:"travel_and_places"},A7e={keywords:["love","like","affection","couple","marriage","bride","groom"],char:"💒",fitzpatrick_scale:!1,category:"travel_and_places"},z7e={keywords:["art","culture","history"],char:"🏛",fitzpatrick_scale:!1,category:"travel_and_places"},F7e={keywords:["building","religion","christ"],char:"⛪",fitzpatrick_scale:!1,category:"travel_and_places"},$7e={keywords:["islam","worship","minaret"],char:"🕌",fitzpatrick_scale:!1,category:"travel_and_places"},M7e={keywords:["judaism","worship","temple","jewish"],char:"🕍",fitzpatrick_scale:!1,category:"travel_and_places"},O7e={keywords:["mecca","mosque","islam"],char:"🕋",fitzpatrick_scale:!1,category:"travel_and_places"},N7e={keywords:["temple","japan","kyoto"],char:"⛩",fitzpatrick_scale:!1,category:"travel_and_places"},L7e={keywords:["time","accessories"],char:"⌚",fitzpatrick_scale:!1,category:"objects"},I7e={keywords:["technology","apple","gadgets","dial"],char:"📱",fitzpatrick_scale:!1,category:"objects"},B7e={keywords:["iphone","incoming"],char:"📲",fitzpatrick_scale:!1,category:"objects"},R7e={keywords:["technology","laptop","screen","display","monitor"],char:"💻",fitzpatrick_scale:!1,category:"objects"},P7e={keywords:["technology","computer","type","input","text"],char:"⌨",fitzpatrick_scale:!1,category:"objects"},j7e={keywords:["technology","computing","screen"],char:"🖥",fitzpatrick_scale:!1,category:"objects"},V7e={keywords:["paper","ink"],char:"🖨",fitzpatrick_scale:!1,category:"objects"},q7e={keywords:["click"],char:"🖱",fitzpatrick_scale:!1,category:"objects"},H7e={keywords:["technology","trackpad"],char:"🖲",fitzpatrick_scale:!1,category:"objects"},U7e={keywords:["game","play"],char:"🕹",fitzpatrick_scale:!1,category:"objects"},W7e={keywords:["tool"],char:"🗜",fitzpatrick_scale:!1,category:"objects"},G7e={keywords:["technology","record","data","disk","90s"],char:"💽",fitzpatrick_scale:!1,category:"objects"},K7e={keywords:["oldschool","technology","save","90s","80s"],char:"💾",fitzpatrick_scale:!1,category:"objects"},Y7e={keywords:["technology","dvd","disk","disc","90s"],char:"💿",fitzpatrick_scale:!1,category:"objects"},Z7e={keywords:["cd","disk","disc"],char:"📀",fitzpatrick_scale:!1,category:"objects"},X7e={keywords:["record","video","oldschool","90s","80s"],char:"📼",fitzpatrick_scale:!1,category:"objects"},J7e={keywords:["gadgets","photography"],char:"📷",fitzpatrick_scale:!1,category:"objects"},Q7e={keywords:["photography","gadgets"],char:"📸",fitzpatrick_scale:!1,category:"objects"},eCe={keywords:["film","record"],char:"📹",fitzpatrick_scale:!1,category:"objects"},tCe={keywords:["film","record"],char:"🎥",fitzpatrick_scale:!1,category:"objects"},nCe={keywords:["video","tape","record","movie"],char:"📽",fitzpatrick_scale:!1,category:"objects"},rCe={keywords:["movie"],char:"🎞",fitzpatrick_scale:!1,category:"objects"},iCe={keywords:["technology","communication","dial"],char:"📞",fitzpatrick_scale:!1,category:"objects"},aCe={keywords:["technology","communication","dial","telephone"],char:"☎️",fitzpatrick_scale:!1,category:"objects"},oCe={keywords:["bbcall","oldschool","90s"],char:"📟",fitzpatrick_scale:!1,category:"objects"},sCe={keywords:["communication","technology"],char:"📠",fitzpatrick_scale:!1,category:"objects"},lCe={keywords:["technology","program","oldschool","show","television"],char:"📺",fitzpatrick_scale:!1,category:"objects"},cCe={keywords:["communication","music","podcast","program"],char:"📻",fitzpatrick_scale:!1,category:"objects"},uCe={keywords:["sing","recording","artist","talkshow"],char:"🎙",fitzpatrick_scale:!1,category:"objects"},dCe={keywords:["scale"],char:"🎚",fitzpatrick_scale:!1,category:"objects"},fCe={keywords:["dial"],char:"🎛",fitzpatrick_scale:!1,category:"objects"},hCe={keywords:["magnetic","navigation","orienteering"],char:"🧭",fitzpatrick_scale:!1,category:"objects"},pCe={keywords:["time","deadline"],char:"⏱",fitzpatrick_scale:!1,category:"objects"},mCe={keywords:["alarm"],char:"⏲",fitzpatrick_scale:!1,category:"objects"},gCe={keywords:["time","wake"],char:"⏰",fitzpatrick_scale:!1,category:"objects"},yCe={keywords:["time"],char:"🕰",fitzpatrick_scale:!1,category:"objects"},_Ce={keywords:["oldschool","time","countdown"],char:"⏳",fitzpatrick_scale:!1,category:"objects"},bCe={keywords:["time","clock","oldschool","limit","exam","quiz","test"],char:"⌛",fitzpatrick_scale:!1,category:"objects"},kCe={keywords:["communication","future","radio","space"],char:"📡",fitzpatrick_scale:!1,category:"objects"},wCe={keywords:["power","energy","sustain"],char:"🔋",fitzpatrick_scale:!1,category:"objects"},vCe={keywords:["charger","power"],char:"🔌",fitzpatrick_scale:!1,category:"objects"},xCe={keywords:["light","electricity","idea"],char:"💡",fitzpatrick_scale:!1,category:"objects"},CCe={keywords:["dark","camping","sight","night"],char:"🔦",fitzpatrick_scale:!1,category:"objects"},SCe={keywords:["fire","wax"],char:"🕯",fitzpatrick_scale:!1,category:"objects"},DCe={keywords:["quench"],char:"🧯",fitzpatrick_scale:!1,category:"objects"},ECe={keywords:["bin","trash","rubbish","garbage","toss"],char:"🗑",fitzpatrick_scale:!1,category:"objects"},TCe={keywords:["barrell"],char:"🛢",fitzpatrick_scale:!1,category:"objects"},ACe={keywords:["dollar","bills","payment","sale"],char:"💸",fitzpatrick_scale:!1,category:"objects"},zCe={keywords:["money","sales","bill","currency"],char:"💵",fitzpatrick_scale:!1,category:"objects"},FCe={keywords:["money","sales","japanese","dollar","currency"],char:"💴",fitzpatrick_scale:!1,category:"objects"},$Ce={keywords:["money","sales","dollar","currency"],char:"💶",fitzpatrick_scale:!1,category:"objects"},MCe={keywords:["british","sterling","money","sales","bills","uk","england","currency"],char:"💷",fitzpatrick_scale:!1,category:"objects"},OCe={keywords:["dollar","payment","coins","sale"],char:"💰",fitzpatrick_scale:!1,category:"objects"},NCe={keywords:["money","sales","dollar","bill","payment","shopping"],char:"💳",fitzpatrick_scale:!1,category:"objects"},LCe={keywords:["blue","ruby","diamond","jewelry"],char:"💎",fitzpatrick_scale:!1,category:"objects"},ICe={keywords:["law","fairness","weight"],char:"⚖",fitzpatrick_scale:!1,category:"objects"},BCe={keywords:["tools","diy","fix","maintainer","mechanic"],char:"🧰",fitzpatrick_scale:!1,category:"objects"},RCe={keywords:["tools","diy","ikea","fix","maintainer"],char:"🔧",fitzpatrick_scale:!1,category:"objects"},PCe={keywords:["tools","build","create"],char:"🔨",fitzpatrick_scale:!1,category:"objects"},jCe={keywords:["tools","build","create"],char:"⚒",fitzpatrick_scale:!1,category:"objects"},VCe={keywords:["tools","build","create"],char:"🛠",fitzpatrick_scale:!1,category:"objects"},qCe={keywords:["tools","dig"],char:"⛏",fitzpatrick_scale:!1,category:"objects"},HCe={keywords:["handy","tools","fix"],char:"🔩",fitzpatrick_scale:!1,category:"objects"},UCe={keywords:["cog"],char:"⚙",fitzpatrick_scale:!1,category:"objects"},WCe={keywords:["bricks"],char:"🧱",fitzpatrick_scale:!1,category:"objects"},GCe={keywords:["lock","arrest"],char:"⛓",fitzpatrick_scale:!1,category:"objects"},KCe={keywords:["attraction","magnetic"],char:"🧲",fitzpatrick_scale:!1,category:"objects"},YCe={keywords:["violence","weapon","pistol","revolver"],char:"🔫",fitzpatrick_scale:!1,category:"objects"},ZCe={keywords:["boom","explode","explosion","terrorism"],char:"💣",fitzpatrick_scale:!1,category:"objects"},XCe={keywords:["dynamite","boom","explode","explosion","explosive"],char:"🧨",fitzpatrick_scale:!1,category:"objects"},JCe={keywords:["knife","blade","cutlery","kitchen","weapon"],char:"🔪",fitzpatrick_scale:!1,category:"objects"},QCe={keywords:["weapon"],char:"🗡",fitzpatrick_scale:!1,category:"objects"},eSe={keywords:["weapon"],char:"⚔",fitzpatrick_scale:!1,category:"objects"},tSe={keywords:["protection","security"],char:"🛡",fitzpatrick_scale:!1,category:"objects"},nSe={keywords:["kills","tobacco","cigarette","joint","smoke"],char:"🚬",fitzpatrick_scale:!1,category:"objects"},rSe={keywords:["poison","danger","deadly","scary","death","pirate","evil"],char:"☠",fitzpatrick_scale:!1,category:"objects"},iSe={keywords:["vampire","dead","die","death","rip","graveyard","cemetery","casket","funeral","box"],char:"⚰",fitzpatrick_scale:!1,category:"objects"},aSe={keywords:["dead","die","death","rip","ashes"],char:"⚱",fitzpatrick_scale:!1,category:"objects"},oSe={keywords:["vase","jar"],char:"🏺",fitzpatrick_scale:!1,category:"objects"},sSe={keywords:["disco","party","magic","circus","fortune_teller"],char:"🔮",fitzpatrick_scale:!1,category:"objects"},lSe={keywords:["dhikr","religious"],char:"📿",fitzpatrick_scale:!1,category:"objects"},cSe={keywords:["bead","charm"],char:"🧿",fitzpatrick_scale:!1,category:"objects"},uSe={keywords:["hair","salon","style"],char:"💈",fitzpatrick_scale:!1,category:"objects"},dSe={keywords:["distilling","science","experiment","chemistry"],char:"⚗",fitzpatrick_scale:!1,category:"objects"},fSe={keywords:["stars","space","zoom","science","astronomy"],char:"🔭",fitzpatrick_scale:!1,category:"objects"},hSe={keywords:["laboratory","experiment","zoomin","science","study"],char:"🔬",fitzpatrick_scale:!1,category:"objects"},pSe={keywords:["embarrassing"],char:"🕳",fitzpatrick_scale:!1,category:"objects"},mSe={keywords:["health","medicine","doctor","pharmacy","drug"],char:"💊",fitzpatrick_scale:!1,category:"objects"},gSe={keywords:["health","hospital","drugs","blood","medicine","needle","doctor","nurse"],char:"💉",fitzpatrick_scale:!1,category:"objects"},ySe={keywords:["biologist","genetics","life"],char:"🧬",fitzpatrick_scale:!1,category:"objects"},_Se={keywords:["amoeba","bacteria","germs"],char:"🦠",fitzpatrick_scale:!1,category:"objects"},bSe={keywords:["bacteria","biology","culture","lab"],char:"🧫",fitzpatrick_scale:!1,category:"objects"},kSe={keywords:["chemistry","experiment","lab","science"],char:"🧪",fitzpatrick_scale:!1,category:"objects"},wSe={keywords:["weather","temperature","hot","cold"],char:"🌡",fitzpatrick_scale:!1,category:"objects"},vSe={keywords:["cleaning","sweeping","witch"],char:"🧹",fitzpatrick_scale:!1,category:"objects"},xSe={keywords:["laundry"],char:"🧺",fitzpatrick_scale:!1,category:"objects"},CSe={keywords:["roll"],char:"🧻",fitzpatrick_scale:!1,category:"objects"},SSe={keywords:["sale","tag"],char:"🏷",fitzpatrick_scale:!1,category:"objects"},DSe={keywords:["favorite","label","save"],char:"🔖",fitzpatrick_scale:!1,category:"objects"},ESe={keywords:["restroom","wc","washroom","bathroom","potty"],char:"🚽",fitzpatrick_scale:!1,category:"objects"},TSe={keywords:["clean","water","bathroom"],char:"🚿",fitzpatrick_scale:!1,category:"objects"},ASe={keywords:["clean","shower","bathroom"],char:"🛁",fitzpatrick_scale:!1,category:"objects"},zSe={keywords:["bar","bathing","cleaning","lather"],char:"🧼",fitzpatrick_scale:!1,category:"objects"},FSe={keywords:["absorbing","cleaning","porous"],char:"🧽",fitzpatrick_scale:!1,category:"objects"},$Se={keywords:["moisturizer","sunscreen"],char:"🧴",fitzpatrick_scale:!1,category:"objects"},MSe={keywords:["lock","door","password"],char:"🔑",fitzpatrick_scale:!1,category:"objects"},OSe={keywords:["lock","door","password"],char:"🗝",fitzpatrick_scale:!1,category:"objects"},NSe={keywords:["read","chill"],char:"🛋",fitzpatrick_scale:!1,category:"objects"},LSe={keywords:["bed","rest"],char:"🛌",fitzpatrick_scale:!0,category:"objects"},ISe={keywords:["sleep","rest"],char:"🛏",fitzpatrick_scale:!1,category:"objects"},BSe={keywords:["house","entry","exit"],char:"🚪",fitzpatrick_scale:!1,category:"objects"},RSe={keywords:["service"],char:"🛎",fitzpatrick_scale:!1,category:"objects"},PSe={keywords:["plush","stuffed"],char:"🧸",fitzpatrick_scale:!1,category:"objects"},jSe={keywords:["photography"],char:"🖼",fitzpatrick_scale:!1,category:"objects"},VSe={keywords:["location","direction"],char:"🗺",fitzpatrick_scale:!1,category:"objects"},qSe={keywords:["weather","summer"],char:"⛱",fitzpatrick_scale:!1,category:"objects"},HSe={keywords:["rock","easter island","moai"],char:"🗿",fitzpatrick_scale:!1,category:"objects"},USe={keywords:["mall","buy","purchase"],char:"🛍",fitzpatrick_scale:!1,category:"objects"},WSe={keywords:["trolley"],char:"🛒",fitzpatrick_scale:!1,category:"objects"},GSe={keywords:["party","celebration","birthday","circus"],char:"🎈",fitzpatrick_scale:!1,category:"objects"},KSe={keywords:["fish","japanese","koinobori","carp","banner"],char:"🎏",fitzpatrick_scale:!1,category:"objects"},YSe={keywords:["decoration","pink","girl","bowtie"],char:"🎀",fitzpatrick_scale:!1,category:"objects"},ZSe={keywords:["present","birthday","christmas","xmas"],char:"🎁",fitzpatrick_scale:!1,category:"objects"},XSe={keywords:["festival","party","birthday","circus"],char:"🎊",fitzpatrick_scale:!1,category:"objects"},JSe={keywords:["party","congratulations","birthday","magic","circus","celebration"],char:"🎉",fitzpatrick_scale:!1,category:"objects"},QSe={keywords:["japanese","toy","kimono"],char:"🎎",fitzpatrick_scale:!1,category:"objects"},e9e={keywords:["nature","ding","spring","bell"],char:"🎐",fitzpatrick_scale:!1,category:"objects"},t9e={keywords:["japanese","nation","country","border"],char:"🎌",fitzpatrick_scale:!1,category:"objects"},n9e={keywords:["light","paper","halloween","spooky"],char:"🏮",fitzpatrick_scale:!1,category:"objects"},r9e={keywords:["gift"],char:"🧧",fitzpatrick_scale:!1,category:"objects"},i9e={keywords:["letter","postal","inbox","communication"],char:"✉️",fitzpatrick_scale:!1,category:"objects"},a9e={keywords:["email","communication"],char:"📩",fitzpatrick_scale:!1,category:"objects"},o9e={keywords:["email","inbox"],char:"📨",fitzpatrick_scale:!1,category:"objects"},s9e={keywords:["email","like","affection","envelope","valentines"],char:"💌",fitzpatrick_scale:!1,category:"objects"},l9e={keywords:["email","letter","envelope"],char:"📮",fitzpatrick_scale:!1,category:"objects"},c9e={keywords:["email","communication","inbox"],char:"📪",fitzpatrick_scale:!1,category:"objects"},u9e={keywords:["email","inbox","communication"],char:"📫",fitzpatrick_scale:!1,category:"objects"},d9e={keywords:["email","inbox","communication"],char:"📬",fitzpatrick_scale:!1,category:"objects"},f9e={keywords:["email","inbox"],char:"📭",fitzpatrick_scale:!1,category:"objects"},h9e={keywords:["instrument","music"],char:"📯",fitzpatrick_scale:!1,category:"objects"},p9e={keywords:["email","documents"],char:"📥",fitzpatrick_scale:!1,category:"objects"},m9e={keywords:["inbox","email"],char:"📤",fitzpatrick_scale:!1,category:"objects"},g9e={keywords:["documents","ancient","history","paper"],char:"📜",fitzpatrick_scale:!1,category:"objects"},y9e={keywords:["documents","office","paper"],char:"📃",fitzpatrick_scale:!1,category:"objects"},_9e={keywords:["favorite","save","order","tidy"],char:"📑",fitzpatrick_scale:!1,category:"objects"},b9e={keywords:["accounting","expenses"],char:"🧾",fitzpatrick_scale:!1,category:"objects"},k9e={keywords:["graph","presentation","stats"],char:"📊",fitzpatrick_scale:!1,category:"objects"},w9e={keywords:["graph","presentation","stats","recovery","business","economics","money","sales","good","success"],char:"📈",fitzpatrick_scale:!1,category:"objects"},v9e={keywords:["graph","presentation","stats","recession","business","economics","money","sales","bad","failure"],char:"📉",fitzpatrick_scale:!1,category:"objects"},x9e={keywords:["documents","office","paper","information"],char:"📄",fitzpatrick_scale:!1,category:"objects"},C9e={keywords:["calendar","schedule"],char:"📅",fitzpatrick_scale:!1,category:"objects"},S9e={keywords:["schedule","date","planning"],char:"📆",fitzpatrick_scale:!1,category:"objects"},D9e={keywords:["date","schedule","planning"],char:"🗓",fitzpatrick_scale:!1,category:"objects"},E9e={keywords:["business","stationery"],char:"📇",fitzpatrick_scale:!1,category:"objects"},T9e={keywords:["business","stationery"],char:"🗃",fitzpatrick_scale:!1,category:"objects"},A9e={keywords:["election","vote"],char:"🗳",fitzpatrick_scale:!1,category:"objects"},z9e={keywords:["filing","organizing"],char:"🗄",fitzpatrick_scale:!1,category:"objects"},F9e={keywords:["stationery","documents"],char:"📋",fitzpatrick_scale:!1,category:"objects"},$9e={keywords:["memo","stationery"],char:"🗒",fitzpatrick_scale:!1,category:"objects"},M9e={keywords:["documents","business","office"],char:"📁",fitzpatrick_scale:!1,category:"objects"},O9e={keywords:["documents","load"],char:"📂",fitzpatrick_scale:!1,category:"objects"},N9e={keywords:["organizing","business","stationery"],char:"🗂",fitzpatrick_scale:!1,category:"objects"},L9e={keywords:["press","headline"],char:"🗞",fitzpatrick_scale:!1,category:"objects"},I9e={keywords:["press","headline"],char:"📰",fitzpatrick_scale:!1,category:"objects"},B9e={keywords:["stationery","record","notes","paper","study"],char:"📓",fitzpatrick_scale:!1,category:"objects"},R9e={keywords:["read","library","knowledge","textbook","learn"],char:"📕",fitzpatrick_scale:!1,category:"objects"},P9e={keywords:["read","library","knowledge","study"],char:"📗",fitzpatrick_scale:!1,category:"objects"},j9e={keywords:["read","library","knowledge","learn","study"],char:"📘",fitzpatrick_scale:!1,category:"objects"},V9e={keywords:["read","library","knowledge","textbook","study"],char:"📙",fitzpatrick_scale:!1,category:"objects"},q9e={keywords:["classroom","notes","record","paper","study"],char:"📔",fitzpatrick_scale:!1,category:"objects"},H9e={keywords:["notes","paper"],char:"📒",fitzpatrick_scale:!1,category:"objects"},U9e={keywords:["literature","library","study"],char:"📚",fitzpatrick_scale:!1,category:"objects"},W9e={keywords:["book","read","library","knowledge","literature","learn","study"],char:"📖",fitzpatrick_scale:!1,category:"objects"},G9e={keywords:["diaper"],char:"🧷",fitzpatrick_scale:!1,category:"objects"},K9e={keywords:["rings","url"],char:"🔗",fitzpatrick_scale:!1,category:"objects"},Y9e={keywords:["documents","stationery"],char:"📎",fitzpatrick_scale:!1,category:"objects"},Z9e={keywords:["documents","stationery"],char:"🖇",fitzpatrick_scale:!1,category:"objects"},X9e={keywords:["stationery","cut"],char:"✂️",fitzpatrick_scale:!1,category:"objects"},J9e={keywords:["stationery","math","architect","sketch"],char:"📐",fitzpatrick_scale:!1,category:"objects"},Q9e={keywords:["stationery","calculate","length","math","school","drawing","architect","sketch"],char:"📏",fitzpatrick_scale:!1,category:"objects"},eDe={keywords:["calculation"],char:"🧮",fitzpatrick_scale:!1,category:"objects"},tDe={keywords:["stationery","mark","here"],char:"📌",fitzpatrick_scale:!1,category:"objects"},nDe={keywords:["stationery","location","map","here"],char:"📍",fitzpatrick_scale:!1,category:"objects"},rDe={keywords:["mark","milestone","place"],char:"🚩",fitzpatrick_scale:!1,category:"objects"},iDe={keywords:["losing","loser","lost","surrender","give up","fail"],char:"🏳",fitzpatrick_scale:!1,category:"objects"},aDe={keywords:["pirate"],char:"🏴",fitzpatrick_scale:!1,category:"objects"},oDe={keywords:["flag","rainbow","pride","gay","lgbt","glbt","queer","homosexual","lesbian","bisexual","transgender"],char:"🏳️‍🌈",fitzpatrick_scale:!1,category:"objects"},sDe={keywords:["security","privacy"],char:"🔐",fitzpatrick_scale:!1,category:"objects"},lDe={keywords:["security","password","padlock"],char:"🔒",fitzpatrick_scale:!1,category:"objects"},cDe={keywords:["privacy","security"],char:"🔓",fitzpatrick_scale:!1,category:"objects"},uDe={keywords:["security","secret"],char:"🔏",fitzpatrick_scale:!1,category:"objects"},dDe={keywords:["stationery","writing","write"],char:"🖊",fitzpatrick_scale:!1,category:"objects"},fDe={keywords:["stationery","writing","write"],char:"🖋",fitzpatrick_scale:!1,category:"objects"},hDe={keywords:["pen","stationery","writing","write"],char:"✒️",fitzpatrick_scale:!1,category:"objects"},pDe={keywords:["write","documents","stationery","pencil","paper","writing","legal","exam","quiz","test","study","compose"],char:"📝",fitzpatrick_scale:!1,category:"objects"},mDe={keywords:["stationery","write","paper","writing","school","study"],char:"✏️",fitzpatrick_scale:!1,category:"objects"},gDe={keywords:["drawing","creativity"],char:"🖍",fitzpatrick_scale:!1,category:"objects"},yDe={keywords:["drawing","creativity","art"],char:"🖌",fitzpatrick_scale:!1,category:"objects"},_De={keywords:["search","zoom","find","detective"],char:"🔍",fitzpatrick_scale:!1,category:"objects"},bDe={keywords:["search","zoom","find","detective"],char:"🔎",fitzpatrick_scale:!1,category:"objects"},kDe={keywords:["love","like","valentines"],char:"❤️",fitzpatrick_scale:!1,category:"symbols"},wDe={keywords:["love","like","affection","valentines"],char:"🧡",fitzpatrick_scale:!1,category:"symbols"},vDe={keywords:["love","like","affection","valentines"],char:"💛",fitzpatrick_scale:!1,category:"symbols"},xDe={keywords:["love","like","affection","valentines"],char:"💚",fitzpatrick_scale:!1,category:"symbols"},CDe={keywords:["love","like","affection","valentines"],char:"💙",fitzpatrick_scale:!1,category:"symbols"},SDe={keywords:["love","like","affection","valentines"],char:"💜",fitzpatrick_scale:!1,category:"symbols"},DDe={keywords:["evil"],char:"🖤",fitzpatrick_scale:!1,category:"symbols"},EDe={keywords:["sad","sorry","break","heart","heartbreak"],char:"💔",fitzpatrick_scale:!1,category:"symbols"},TDe={keywords:["decoration","love"],char:"❣",fitzpatrick_scale:!1,category:"symbols"},ADe={keywords:["love","like","affection","valentines","heart"],char:"💕",fitzpatrick_scale:!1,category:"symbols"},zDe={keywords:["love","like","affection","valentines"],char:"💞",fitzpatrick_scale:!1,category:"symbols"},FDe={keywords:["love","like","affection","valentines","pink","heart"],char:"💓",fitzpatrick_scale:!1,category:"symbols"},$De={keywords:["like","love","affection","valentines","pink"],char:"💗",fitzpatrick_scale:!1,category:"symbols"},MDe={keywords:["love","like","affection","valentines"],char:"💖",fitzpatrick_scale:!1,category:"symbols"},ODe={keywords:["love","like","heart","affection","valentines"],char:"💘",fitzpatrick_scale:!1,category:"symbols"},NDe={keywords:["love","valentines"],char:"💝",fitzpatrick_scale:!1,category:"symbols"},LDe={keywords:["purple-square","love","like"],char:"💟",fitzpatrick_scale:!1,category:"symbols"},IDe={keywords:["hippie"],char:"☮",fitzpatrick_scale:!1,category:"symbols"},BDe={keywords:["christianity"],char:"✝",fitzpatrick_scale:!1,category:"symbols"},RDe={keywords:["islam"],char:"☪",fitzpatrick_scale:!1,category:"symbols"},PDe={keywords:["hinduism","buddhism","sikhism","jainism"],char:"🕉",fitzpatrick_scale:!1,category:"symbols"},jDe={keywords:["hinduism","buddhism","sikhism","jainism"],char:"☸",fitzpatrick_scale:!1,category:"symbols"},VDe={keywords:["judaism"],char:"✡",fitzpatrick_scale:!1,category:"symbols"},qDe={keywords:["purple-square","religion","jewish","hexagram"],char:"🔯",fitzpatrick_scale:!1,category:"symbols"},HDe={keywords:["hanukkah","candles","jewish"],char:"🕎",fitzpatrick_scale:!1,category:"symbols"},UDe={keywords:["balance"],char:"☯",fitzpatrick_scale:!1,category:"symbols"},WDe={keywords:["suppedaneum","religion"],char:"☦",fitzpatrick_scale:!1,category:"symbols"},GDe={keywords:["religion","church","temple","prayer"],char:"🛐",fitzpatrick_scale:!1,category:"symbols"},KDe={keywords:["sign","purple-square","constellation","astrology"],char:"⛎",fitzpatrick_scale:!1,category:"symbols"},YDe={keywords:["sign","purple-square","zodiac","astrology"],char:"♈",fitzpatrick_scale:!1,category:"symbols"},ZDe={keywords:["purple-square","sign","zodiac","astrology"],char:"♉",fitzpatrick_scale:!1,category:"symbols"},XDe={keywords:["sign","zodiac","purple-square","astrology"],char:"♊",fitzpatrick_scale:!1,category:"symbols"},JDe={keywords:["sign","zodiac","purple-square","astrology"],char:"♋",fitzpatrick_scale:!1,category:"symbols"},QDe={keywords:["sign","purple-square","zodiac","astrology"],char:"♌",fitzpatrick_scale:!1,category:"symbols"},eEe={keywords:["sign","zodiac","purple-square","astrology"],char:"♍",fitzpatrick_scale:!1,category:"symbols"},tEe={keywords:["sign","purple-square","zodiac","astrology"],char:"♎",fitzpatrick_scale:!1,category:"symbols"},nEe={keywords:["sign","zodiac","purple-square","astrology","scorpio"],char:"♏",fitzpatrick_scale:!1,category:"symbols"},rEe={keywords:["sign","zodiac","purple-square","astrology"],char:"♐",fitzpatrick_scale:!1,category:"symbols"},iEe={keywords:["sign","zodiac","purple-square","astrology"],char:"♑",fitzpatrick_scale:!1,category:"symbols"},aEe={keywords:["sign","purple-square","zodiac","astrology"],char:"♒",fitzpatrick_scale:!1,category:"symbols"},oEe={keywords:["purple-square","sign","zodiac","astrology"],char:"♓",fitzpatrick_scale:!1,category:"symbols"},sEe={keywords:["purple-square","words"],char:"🆔",fitzpatrick_scale:!1,category:"symbols"},lEe={keywords:["science","physics","chemistry"],char:"⚛",fitzpatrick_scale:!1,category:"symbols"},cEe={keywords:["kanji","japanese","chinese","empty","sky","blue-square"],char:"🈳",fitzpatrick_scale:!1,category:"symbols"},uEe={keywords:["cut","divide","chinese","kanji","pink-square"],char:"🈹",fitzpatrick_scale:!1,category:"symbols"},dEe={keywords:["nuclear","danger"],char:"☢",fitzpatrick_scale:!1,category:"symbols"},fEe={keywords:["danger"],char:"☣",fitzpatrick_scale:!1,category:"symbols"},hEe={keywords:["mute","orange-square","silence","quiet"],char:"📴",fitzpatrick_scale:!1,category:"symbols"},pEe={keywords:["orange-square","phone"],char:"📳",fitzpatrick_scale:!1,category:"symbols"},mEe={keywords:["orange-square","chinese","have","kanji"],char:"🈶",fitzpatrick_scale:!1,category:"symbols"},gEe={keywords:["nothing","chinese","kanji","japanese","orange-square"],char:"🈚",fitzpatrick_scale:!1,category:"symbols"},yEe={keywords:["chinese","japanese","kanji","orange-square"],char:"🈸",fitzpatrick_scale:!1,category:"symbols"},_Ee={keywords:["japanese","opening hours","orange-square"],char:"🈺",fitzpatrick_scale:!1,category:"symbols"},bEe={keywords:["chinese","month","moon","japanese","orange-square","kanji"],char:"🈷️",fitzpatrick_scale:!1,category:"symbols"},kEe={keywords:["orange-square","shape","polygon"],char:"✴️",fitzpatrick_scale:!1,category:"symbols"},wEe={keywords:["words","orange-square"],char:"🆚",fitzpatrick_scale:!1,category:"symbols"},vEe={keywords:["ok","good","chinese","kanji","agree","yes","orange-circle"],char:"🉑",fitzpatrick_scale:!1,category:"symbols"},xEe={keywords:["japanese","spring"],char:"💮",fitzpatrick_scale:!1,category:"symbols"},CEe={keywords:["chinese","kanji","obtain","get","circle"],char:"🉐",fitzpatrick_scale:!1,category:"symbols"},SEe={keywords:["privacy","chinese","sshh","kanji","red-circle"],char:"㊙️",fitzpatrick_scale:!1,category:"symbols"},DEe={keywords:["chinese","kanji","japanese","red-circle"],char:"㊗️",fitzpatrick_scale:!1,category:"symbols"},EEe={keywords:["japanese","chinese","join","kanji","red-square"],char:"🈴",fitzpatrick_scale:!1,category:"symbols"},TEe={keywords:["full","chinese","japanese","red-square","kanji"],char:"🈵",fitzpatrick_scale:!1,category:"symbols"},AEe={keywords:["kanji","japanese","chinese","forbidden","limit","restricted","red-square"],char:"🈲",fitzpatrick_scale:!1,category:"symbols"},zEe={keywords:["red-square","alphabet","letter"],char:"🅰️",fitzpatrick_scale:!1,category:"symbols"},FEe={keywords:["red-square","alphabet","letter"],char:"🅱️",fitzpatrick_scale:!1,category:"symbols"},$Ee={keywords:["red-square","alphabet"],char:"🆎",fitzpatrick_scale:!1,category:"symbols"},MEe={keywords:["alphabet","words","red-square"],char:"🆑",fitzpatrick_scale:!1,category:"symbols"},OEe={keywords:["alphabet","red-square","letter"],char:"🅾️",fitzpatrick_scale:!1,category:"symbols"},NEe={keywords:["help","red-square","words","emergency","911"],char:"🆘",fitzpatrick_scale:!1,category:"symbols"},LEe={keywords:["limit","security","privacy","bad","denied","stop","circle"],char:"⛔",fitzpatrick_scale:!1,category:"symbols"},IEe={keywords:["fire","forbid"],char:"📛",fitzpatrick_scale:!1,category:"symbols"},BEe={keywords:["forbid","stop","limit","denied","disallow","circle"],char:"🚫",fitzpatrick_scale:!1,category:"symbols"},REe={keywords:["no","delete","remove","cancel","red"],char:"❌",fitzpatrick_scale:!1,category:"symbols"},PEe={keywords:["circle","round"],char:"⭕",fitzpatrick_scale:!1,category:"symbols"},jEe={keywords:["stop"],char:"🛑",fitzpatrick_scale:!1,category:"symbols"},VEe={keywords:["angry","mad"],char:"💢",fitzpatrick_scale:!1,category:"symbols"},qEe={keywords:["bath","warm","relax"],char:"♨️",fitzpatrick_scale:!1,category:"symbols"},HEe={keywords:["rules","crossing","walking","circle"],char:"🚷",fitzpatrick_scale:!1,category:"symbols"},UEe={keywords:["trash","bin","garbage","circle"],char:"🚯",fitzpatrick_scale:!1,category:"symbols"},WEe={keywords:["cyclist","prohibited","circle"],char:"🚳",fitzpatrick_scale:!1,category:"symbols"},GEe={keywords:["18","drink","pub","night","minor","circle"],char:"🔞",fitzpatrick_scale:!1,category:"symbols"},KEe={keywords:["iphone","mute","circle"],char:"📵",fitzpatrick_scale:!1,category:"symbols"},YEe={keywords:["heavy_exclamation_mark","danger","surprise","punctuation","wow","warning"],char:"❗",fitzpatrick_scale:!1,category:"symbols"},ZEe={keywords:["surprise","punctuation","gray","wow","warning"],char:"❕",fitzpatrick_scale:!1,category:"symbols"},XEe={keywords:["doubt","confused"],char:"❓",fitzpatrick_scale:!1,category:"symbols"},JEe={keywords:["doubts","gray","huh","confused"],char:"❔",fitzpatrick_scale:!1,category:"symbols"},QEe={keywords:["exclamation","surprise"],char:"‼️",fitzpatrick_scale:!1,category:"symbols"},eTe={keywords:["wat","punctuation","surprise"],char:"⁉️",fitzpatrick_scale:!1,category:"symbols"},tTe={keywords:["sun","afternoon","warm","summer"],char:"🔅",fitzpatrick_scale:!1,category:"symbols"},nTe={keywords:["sun","light"],char:"🔆",fitzpatrick_scale:!1,category:"symbols"},rTe={keywords:["weapon","spear"],char:"🔱",fitzpatrick_scale:!1,category:"symbols"},iTe={keywords:["decorative","scout"],char:"⚜",fitzpatrick_scale:!1,category:"symbols"},aTe={keywords:["graph","presentation","stats","business","economics","bad"],char:"〽️",fitzpatrick_scale:!1,category:"symbols"},oTe={keywords:["exclamation","wip","alert","error","problem","issue"],char:"⚠️",fitzpatrick_scale:!1,category:"symbols"},sTe={keywords:["school","warning","danger","sign","driving","yellow-diamond"],char:"🚸",fitzpatrick_scale:!1,category:"symbols"},lTe={keywords:["badge","shield"],char:"🔰",fitzpatrick_scale:!1,category:"symbols"},cTe={keywords:["arrow","environment","garbage","trash"],char:"♻️",fitzpatrick_scale:!1,category:"symbols"},uTe={keywords:["chinese","point","green-square","kanji"],char:"🈯",fitzpatrick_scale:!1,category:"symbols"},dTe={keywords:["green-square","graph","presentation","stats"],char:"💹",fitzpatrick_scale:!1,category:"symbols"},fTe={keywords:["stars","green-square","awesome","good","fireworks"],char:"❇️",fitzpatrick_scale:!1,category:"symbols"},hTe={keywords:["star","sparkle","green-square"],char:"✳️",fitzpatrick_scale:!1,category:"symbols"},pTe={keywords:["x","green-square","no","deny"],char:"❎",fitzpatrick_scale:!1,category:"symbols"},mTe={keywords:["green-square","ok","agree","vote","election","answer","tick"],char:"✅",fitzpatrick_scale:!1,category:"symbols"},gTe={keywords:["jewel","blue","gem","crystal","fancy"],char:"💠",fitzpatrick_scale:!1,category:"symbols"},yTe={keywords:["weather","swirl","blue","cloud","vortex","spiral","whirlpool","spin","tornado","hurricane","typhoon"],char:"🌀",fitzpatrick_scale:!1,category:"symbols"},_Te={keywords:["tape","cassette"],char:"➿",fitzpatrick_scale:!1,category:"symbols"},bTe={keywords:["earth","international","world","internet","interweb","i18n"],char:"🌐",fitzpatrick_scale:!1,category:"symbols"},kTe={keywords:["alphabet","blue-circle","letter"],char:"Ⓜ️",fitzpatrick_scale:!1,category:"symbols"},wTe={keywords:["money","sales","cash","blue-square","payment","bank"],char:"🏧",fitzpatrick_scale:!1,category:"symbols"},vTe={keywords:["japanese","blue-square","katakana"],char:"🈂️",fitzpatrick_scale:!1,category:"symbols"},xTe={keywords:["custom","blue-square"],char:"🛂",fitzpatrick_scale:!1,category:"symbols"},CTe={keywords:["passport","border","blue-square"],char:"🛃",fitzpatrick_scale:!1,category:"symbols"},STe={keywords:["blue-square","airport","transport"],char:"🛄",fitzpatrick_scale:!1,category:"symbols"},DTe={keywords:["blue-square","travel"],char:"🛅",fitzpatrick_scale:!1,category:"symbols"},ETe={keywords:["blue-square","disabled","a11y","accessibility"],char:"♿",fitzpatrick_scale:!1,category:"symbols"},TTe={keywords:["cigarette","blue-square","smell","smoke"],char:"🚭",fitzpatrick_scale:!1,category:"symbols"},ATe={keywords:["toilet","restroom","blue-square"],char:"🚾",fitzpatrick_scale:!1,category:"symbols"},zTe={keywords:["cars","blue-square","alphabet","letter"],char:"🅿️",fitzpatrick_scale:!1,category:"symbols"},FTe={keywords:["blue-square","liquid","restroom","cleaning","faucet"],char:"🚰",fitzpatrick_scale:!1,category:"symbols"},$Te={keywords:["toilet","restroom","wc","blue-square","gender","male"],char:"🚹",fitzpatrick_scale:!1,category:"symbols"},MTe={keywords:["purple-square","woman","female","toilet","loo","restroom","gender"],char:"🚺",fitzpatrick_scale:!1,category:"symbols"},OTe={keywords:["orange-square","child"],char:"🚼",fitzpatrick_scale:!1,category:"symbols"},NTe={keywords:["blue-square","toilet","refresh","wc","gender"],char:"🚻",fitzpatrick_scale:!1,category:"symbols"},LTe={keywords:["blue-square","sign","human","info"],char:"🚮",fitzpatrick_scale:!1,category:"symbols"},ITe={keywords:["blue-square","record","film","movie","curtain","stage","theater"],char:"🎦",fitzpatrick_scale:!1,category:"symbols"},BTe={keywords:["blue-square","reception","phone","internet","connection","wifi","bluetooth","bars"],char:"📶",fitzpatrick_scale:!1,category:"symbols"},RTe={keywords:["blue-square","here","katakana","japanese","destination"],char:"🈁",fitzpatrick_scale:!1,category:"symbols"},PTe={keywords:["blue-square","words","shape","icon"],char:"🆖",fitzpatrick_scale:!1,category:"symbols"},jTe={keywords:["good","agree","yes","blue-square"],char:"🆗",fitzpatrick_scale:!1,category:"symbols"},VTe={keywords:["blue-square","above","high"],char:"🆙",fitzpatrick_scale:!1,category:"symbols"},qTe={keywords:["words","blue-square"],char:"🆒",fitzpatrick_scale:!1,category:"symbols"},HTe={keywords:["blue-square","words"],char:"🆓",fitzpatrick_scale:!1,category:"symbols"},UTe={keywords:["0","numbers","blue-square","null"],char:"0️⃣",fitzpatrick_scale:!1,category:"symbols"},WTe={keywords:["blue-square","numbers","1"],char:"1️⃣",fitzpatrick_scale:!1,category:"symbols"},GTe={keywords:["numbers","2","prime","blue-square"],char:"2️⃣",fitzpatrick_scale:!1,category:"symbols"},KTe={keywords:["3","numbers","prime","blue-square"],char:"3️⃣",fitzpatrick_scale:!1,category:"symbols"},YTe={keywords:["4","numbers","blue-square"],char:"4️⃣",fitzpatrick_scale:!1,category:"symbols"},ZTe={keywords:["5","numbers","blue-square","prime"],char:"5️⃣",fitzpatrick_scale:!1,category:"symbols"},XTe={keywords:["6","numbers","blue-square"],char:"6️⃣",fitzpatrick_scale:!1,category:"symbols"},JTe={keywords:["7","numbers","blue-square","prime"],char:"7️⃣",fitzpatrick_scale:!1,category:"symbols"},QTe={keywords:["8","blue-square","numbers"],char:"8️⃣",fitzpatrick_scale:!1,category:"symbols"},eAe={keywords:["blue-square","numbers","9"],char:"9️⃣",fitzpatrick_scale:!1,category:"symbols"},tAe={keywords:["numbers","10","blue-square"],char:"🔟",fitzpatrick_scale:!1,category:"symbols"},nAe={keywords:["star","keycap"],char:"*⃣",fitzpatrick_scale:!1,category:"symbols"},rAe={keywords:["blue-square"],char:"⏏️",fitzpatrick_scale:!1,category:"symbols"},iAe={keywords:["blue-square","right","direction","play"],char:"▶️",fitzpatrick_scale:!1,category:"symbols"},aAe={keywords:["pause","blue-square"],char:"⏸",fitzpatrick_scale:!1,category:"symbols"},oAe={keywords:["forward","next","blue-square"],char:"⏭",fitzpatrick_scale:!1,category:"symbols"},sAe={keywords:["blue-square"],char:"⏹",fitzpatrick_scale:!1,category:"symbols"},lAe={keywords:["blue-square"],char:"⏺",fitzpatrick_scale:!1,category:"symbols"},cAe={keywords:["blue-square","play","pause"],char:"⏯",fitzpatrick_scale:!1,category:"symbols"},uAe={keywords:["backward"],char:"⏮",fitzpatrick_scale:!1,category:"symbols"},dAe={keywords:["blue-square","play","speed","continue"],char:"⏩",fitzpatrick_scale:!1,category:"symbols"},fAe={keywords:["play","blue-square"],char:"⏪",fitzpatrick_scale:!1,category:"symbols"},hAe={keywords:["blue-square","shuffle","music","random"],char:"🔀",fitzpatrick_scale:!1,category:"symbols"},pAe={keywords:["loop","record"],char:"🔁",fitzpatrick_scale:!1,category:"symbols"},mAe={keywords:["blue-square","loop"],char:"🔂",fitzpatrick_scale:!1,category:"symbols"},gAe={keywords:["blue-square","left","direction"],char:"◀️",fitzpatrick_scale:!1,category:"symbols"},yAe={keywords:["blue-square","triangle","direction","point","forward","top"],char:"🔼",fitzpatrick_scale:!1,category:"symbols"},_Ae={keywords:["blue-square","direction","bottom"],char:"🔽",fitzpatrick_scale:!1,category:"symbols"},bAe={keywords:["blue-square","direction","top"],char:"⏫",fitzpatrick_scale:!1,category:"symbols"},kAe={keywords:["blue-square","direction","bottom"],char:"⏬",fitzpatrick_scale:!1,category:"symbols"},wAe={keywords:["blue-square","next"],char:"➡️",fitzpatrick_scale:!1,category:"symbols"},vAe={keywords:["blue-square","previous","back"],char:"⬅️",fitzpatrick_scale:!1,category:"symbols"},xAe={keywords:["blue-square","continue","top","direction"],char:"⬆️",fitzpatrick_scale:!1,category:"symbols"},CAe={keywords:["blue-square","direction","bottom"],char:"⬇️",fitzpatrick_scale:!1,category:"symbols"},SAe={keywords:["blue-square","point","direction","diagonal","northeast"],char:"↗️",fitzpatrick_scale:!1,category:"symbols"},DAe={keywords:["blue-square","direction","diagonal","southeast"],char:"↘️",fitzpatrick_scale:!1,category:"symbols"},EAe={keywords:["blue-square","direction","diagonal","southwest"],char:"↙️",fitzpatrick_scale:!1,category:"symbols"},TAe={keywords:["blue-square","point","direction","diagonal","northwest"],char:"↖️",fitzpatrick_scale:!1,category:"symbols"},AAe={keywords:["blue-square","direction","way","vertical"],char:"↕️",fitzpatrick_scale:!1,category:"symbols"},zAe={keywords:["shape","direction","horizontal","sideways"],char:"↔️",fitzpatrick_scale:!1,category:"symbols"},FAe={keywords:["blue-square","sync","cycle"],char:"🔄",fitzpatrick_scale:!1,category:"symbols"},$Ae={keywords:["blue-square","return","rotate","direction"],char:"↪️",fitzpatrick_scale:!1,category:"symbols"},MAe={keywords:["back","return","blue-square","undo","enter"],char:"↩️",fitzpatrick_scale:!1,category:"symbols"},OAe={keywords:["blue-square","direction","top"],char:"⤴️",fitzpatrick_scale:!1,category:"symbols"},NAe={keywords:["blue-square","direction","bottom"],char:"⤵️",fitzpatrick_scale:!1,category:"symbols"},LAe={keywords:["symbol","blue-square","twitter"],char:"#️⃣",fitzpatrick_scale:!1,category:"symbols"},IAe={keywords:["blue-square","alphabet","letter"],char:"ℹ️",fitzpatrick_scale:!1,category:"symbols"},BAe={keywords:["blue-square","alphabet"],char:"🔤",fitzpatrick_scale:!1,category:"symbols"},RAe={keywords:["blue-square","alphabet"],char:"🔡",fitzpatrick_scale:!1,category:"symbols"},PAe={keywords:["alphabet","words","blue-square"],char:"🔠",fitzpatrick_scale:!1,category:"symbols"},jAe={keywords:["blue-square","music","note","ampersand","percent","glyphs","characters"],char:"🔣",fitzpatrick_scale:!1,category:"symbols"},VAe={keywords:["score","tone","sound"],char:"🎵",fitzpatrick_scale:!1,category:"symbols"},qAe={keywords:["music","score"],char:"🎶",fitzpatrick_scale:!1,category:"symbols"},HAe={keywords:["draw","line","moustache","mustache","squiggle","scribble"],char:"〰️",fitzpatrick_scale:!1,category:"symbols"},UAe={keywords:["scribble","draw","shape","squiggle"],char:"➰",fitzpatrick_scale:!1,category:"symbols"},WAe={keywords:["ok","nike","answer","yes","tick"],char:"✔️",fitzpatrick_scale:!1,category:"symbols"},GAe={keywords:["sync","cycle","round","repeat"],char:"🔃",fitzpatrick_scale:!1,category:"symbols"},KAe={keywords:["math","calculation","addition","more","increase"],char:"➕",fitzpatrick_scale:!1,category:"symbols"},YAe={keywords:["math","calculation","subtract","less"],char:"➖",fitzpatrick_scale:!1,category:"symbols"},ZAe={keywords:["divide","math","calculation"],char:"➗",fitzpatrick_scale:!1,category:"symbols"},XAe={keywords:["math","calculation"],char:"✖️",fitzpatrick_scale:!1,category:"symbols"},JAe={keywords:["forever"],char:"♾",fitzpatrick_scale:!1,category:"symbols"},QAe={keywords:["money","sales","payment","currency","buck"],char:"💲",fitzpatrick_scale:!1,category:"symbols"},eze={keywords:["money","sales","dollar","travel"],char:"💱",fitzpatrick_scale:!1,category:"symbols"},tze={keywords:["ip","license","circle","law","legal"],char:"©️",fitzpatrick_scale:!1,category:"symbols"},nze={keywords:["alphabet","circle"],char:"®️",fitzpatrick_scale:!1,category:"symbols"},rze={keywords:["trademark","brand","law","legal"],char:"™️",fitzpatrick_scale:!1,category:"symbols"},ize={keywords:["words","arrow"],char:"🔚",fitzpatrick_scale:!1,category:"symbols"},aze={keywords:["arrow","words","return"],char:"🔙",fitzpatrick_scale:!1,category:"symbols"},oze={keywords:["arrow","words"],char:"🔛",fitzpatrick_scale:!1,category:"symbols"},sze={keywords:["words","blue-square"],char:"🔝",fitzpatrick_scale:!1,category:"symbols"},lze={keywords:["arrow","words"],char:"🔜",fitzpatrick_scale:!1,category:"symbols"},cze={keywords:["ok","agree","confirm","black-square","vote","election","yes","tick"],char:"☑️",fitzpatrick_scale:!1,category:"symbols"},uze={keywords:["input","old","music","circle"],char:"🔘",fitzpatrick_scale:!1,category:"symbols"},dze={keywords:["shape","round"],char:"⚪",fitzpatrick_scale:!1,category:"symbols"},fze={keywords:["shape","button","round"],char:"⚫",fitzpatrick_scale:!1,category:"symbols"},hze={keywords:["shape","error","danger"],char:"🔴",fitzpatrick_scale:!1,category:"symbols"},pze={keywords:["shape","icon","button"],char:"🔵",fitzpatrick_scale:!1,category:"symbols"},mze={keywords:["shape","jewel","gem"],char:"🔸",fitzpatrick_scale:!1,category:"symbols"},gze={keywords:["shape","jewel","gem"],char:"🔹",fitzpatrick_scale:!1,category:"symbols"},yze={keywords:["shape","jewel","gem"],char:"🔶",fitzpatrick_scale:!1,category:"symbols"},_ze={keywords:["shape","jewel","gem"],char:"🔷",fitzpatrick_scale:!1,category:"symbols"},bze={keywords:["shape","direction","up","top"],char:"🔺",fitzpatrick_scale:!1,category:"symbols"},kze={keywords:["shape","icon"],char:"▪️",fitzpatrick_scale:!1,category:"symbols"},wze={keywords:["shape","icon"],char:"▫️",fitzpatrick_scale:!1,category:"symbols"},vze={keywords:["shape","icon","button"],char:"⬛",fitzpatrick_scale:!1,category:"symbols"},xze={keywords:["shape","icon","stone","button"],char:"⬜",fitzpatrick_scale:!1,category:"symbols"},Cze={keywords:["shape","direction","bottom"],char:"🔻",fitzpatrick_scale:!1,category:"symbols"},Sze={keywords:["shape","button","icon"],char:"◼️",fitzpatrick_scale:!1,category:"symbols"},Dze={keywords:["shape","stone","icon"],char:"◻️",fitzpatrick_scale:!1,category:"symbols"},Eze={keywords:["icon","shape","button"],char:"◾",fitzpatrick_scale:!1,category:"symbols"},Tze={keywords:["shape","stone","icon","button"],char:"◽",fitzpatrick_scale:!1,category:"symbols"},Aze={keywords:["shape","input","frame"],char:"🔲",fitzpatrick_scale:!1,category:"symbols"},zze={keywords:["shape","input"],char:"🔳",fitzpatrick_scale:!1,category:"symbols"},Fze={keywords:["sound","volume","silence","broadcast"],char:"🔈",fitzpatrick_scale:!1,category:"symbols"},$ze={keywords:["volume","speaker","broadcast"],char:"🔉",fitzpatrick_scale:!1,category:"symbols"},Mze={keywords:["volume","noise","noisy","speaker","broadcast"],char:"🔊",fitzpatrick_scale:!1,category:"symbols"},Oze={keywords:["sound","volume","silence","quiet"],char:"🔇",fitzpatrick_scale:!1,category:"symbols"},Nze={keywords:["sound","speaker","volume"],char:"📣",fitzpatrick_scale:!1,category:"symbols"},Lze={keywords:["volume","sound"],char:"📢",fitzpatrick_scale:!1,category:"symbols"},Ize={keywords:["sound","notification","christmas","xmas","chime"],char:"🔔",fitzpatrick_scale:!1,category:"symbols"},Bze={keywords:["sound","volume","mute","quiet","silent"],char:"🔕",fitzpatrick_scale:!1,category:"symbols"},Rze={keywords:["poker","cards","game","play","magic"],char:"🃏",fitzpatrick_scale:!1,category:"symbols"},Pze={keywords:["game","play","chinese","kanji"],char:"🀄",fitzpatrick_scale:!1,category:"symbols"},jze={keywords:["poker","cards","suits","magic"],char:"♠️",fitzpatrick_scale:!1,category:"symbols"},Vze={keywords:["poker","cards","magic","suits"],char:"♣️",fitzpatrick_scale:!1,category:"symbols"},qze={keywords:["poker","cards","magic","suits"],char:"♥️",fitzpatrick_scale:!1,category:"symbols"},Hze={keywords:["poker","cards","magic","suits"],char:"♦️",fitzpatrick_scale:!1,category:"symbols"},Uze={keywords:["game","sunset","red"],char:"🎴",fitzpatrick_scale:!1,category:"symbols"},Wze={keywords:["bubble","cloud","speech","thinking","dream"],char:"💭",fitzpatrick_scale:!1,category:"symbols"},Gze={keywords:["caption","speech","thinking","mad"],char:"🗯",fitzpatrick_scale:!1,category:"symbols"},Kze={keywords:["bubble","words","message","talk","chatting"],char:"💬",fitzpatrick_scale:!1,category:"symbols"},Yze={keywords:["words","message","talk","chatting"],char:"🗨",fitzpatrick_scale:!1,category:"symbols"},Zze={keywords:["time","late","early","schedule"],char:"🕐",fitzpatrick_scale:!1,category:"symbols"},Xze={keywords:["time","late","early","schedule"],char:"🕑",fitzpatrick_scale:!1,category:"symbols"},Jze={keywords:["time","late","early","schedule"],char:"🕒",fitzpatrick_scale:!1,category:"symbols"},Qze={keywords:["time","late","early","schedule"],char:"🕓",fitzpatrick_scale:!1,category:"symbols"},eFe={keywords:["time","late","early","schedule"],char:"🕔",fitzpatrick_scale:!1,category:"symbols"},tFe={keywords:["time","late","early","schedule","dawn","dusk"],char:"🕕",fitzpatrick_scale:!1,category:"symbols"},nFe={keywords:["time","late","early","schedule"],char:"🕖",fitzpatrick_scale:!1,category:"symbols"},rFe={keywords:["time","late","early","schedule"],char:"🕗",fitzpatrick_scale:!1,category:"symbols"},iFe={keywords:["time","late","early","schedule"],char:"🕘",fitzpatrick_scale:!1,category:"symbols"},aFe={keywords:["time","late","early","schedule"],char:"🕙",fitzpatrick_scale:!1,category:"symbols"},oFe={keywords:["time","late","early","schedule"],char:"🕚",fitzpatrick_scale:!1,category:"symbols"},sFe={keywords:["time","noon","midnight","midday","late","early","schedule"],char:"🕛",fitzpatrick_scale:!1,category:"symbols"},lFe={keywords:["time","late","early","schedule"],char:"🕜",fitzpatrick_scale:!1,category:"symbols"},cFe={keywords:["time","late","early","schedule"],char:"🕝",fitzpatrick_scale:!1,category:"symbols"},uFe={keywords:["time","late","early","schedule"],char:"🕞",fitzpatrick_scale:!1,category:"symbols"},dFe={keywords:["time","late","early","schedule"],char:"🕟",fitzpatrick_scale:!1,category:"symbols"},fFe={keywords:["time","late","early","schedule"],char:"🕠",fitzpatrick_scale:!1,category:"symbols"},hFe={keywords:["time","late","early","schedule"],char:"🕡",fitzpatrick_scale:!1,category:"symbols"},pFe={keywords:["time","late","early","schedule"],char:"🕢",fitzpatrick_scale:!1,category:"symbols"},mFe={keywords:["time","late","early","schedule"],char:"🕣",fitzpatrick_scale:!1,category:"symbols"},gFe={keywords:["time","late","early","schedule"],char:"🕤",fitzpatrick_scale:!1,category:"symbols"},yFe={keywords:["time","late","early","schedule"],char:"🕥",fitzpatrick_scale:!1,category:"symbols"},_Fe={keywords:["time","late","early","schedule"],char:"🕦",fitzpatrick_scale:!1,category:"symbols"},bFe={keywords:["time","late","early","schedule"],char:"🕧",fitzpatrick_scale:!1,category:"symbols"},kFe={keywords:["af","flag","nation","country","banner"],char:"🇦🇫",fitzpatrick_scale:!1,category:"flags"},wFe={keywords:["Åland","islands","flag","nation","country","banner"],char:"🇦🇽",fitzpatrick_scale:!1,category:"flags"},vFe={keywords:["al","flag","nation","country","banner"],char:"🇦🇱",fitzpatrick_scale:!1,category:"flags"},xFe={keywords:["dz","flag","nation","country","banner"],char:"🇩🇿",fitzpatrick_scale:!1,category:"flags"},CFe={keywords:["american","ws","flag","nation","country","banner"],char:"🇦🇸",fitzpatrick_scale:!1,category:"flags"},SFe={keywords:["ad","flag","nation","country","banner"],char:"🇦🇩",fitzpatrick_scale:!1,category:"flags"},DFe={keywords:["ao","flag","nation","country","banner"],char:"🇦🇴",fitzpatrick_scale:!1,category:"flags"},EFe={keywords:["ai","flag","nation","country","banner"],char:"🇦🇮",fitzpatrick_scale:!1,category:"flags"},TFe={keywords:["aq","flag","nation","country","banner"],char:"🇦🇶",fitzpatrick_scale:!1,category:"flags"},AFe={keywords:["antigua","barbuda","flag","nation","country","banner"],char:"🇦🇬",fitzpatrick_scale:!1,category:"flags"},zFe={keywords:["ar","flag","nation","country","banner"],char:"🇦🇷",fitzpatrick_scale:!1,category:"flags"},FFe={keywords:["am","flag","nation","country","banner"],char:"🇦🇲",fitzpatrick_scale:!1,category:"flags"},$Fe={keywords:["aw","flag","nation","country","banner"],char:"🇦🇼",fitzpatrick_scale:!1,category:"flags"},MFe={keywords:["au","flag","nation","country","banner"],char:"🇦🇺",fitzpatrick_scale:!1,category:"flags"},OFe={keywords:["at","flag","nation","country","banner"],char:"🇦🇹",fitzpatrick_scale:!1,category:"flags"},NFe={keywords:["az","flag","nation","country","banner"],char:"🇦🇿",fitzpatrick_scale:!1,category:"flags"},LFe={keywords:["bs","flag","nation","country","banner"],char:"🇧🇸",fitzpatrick_scale:!1,category:"flags"},IFe={keywords:["bh","flag","nation","country","banner"],char:"🇧🇭",fitzpatrick_scale:!1,category:"flags"},BFe={keywords:["bd","flag","nation","country","banner"],char:"🇧🇩",fitzpatrick_scale:!1,category:"flags"},RFe={keywords:["bb","flag","nation","country","banner"],char:"🇧🇧",fitzpatrick_scale:!1,category:"flags"},PFe={keywords:["by","flag","nation","country","banner"],char:"🇧🇾",fitzpatrick_scale:!1,category:"flags"},jFe={keywords:["be","flag","nation","country","banner"],char:"🇧🇪",fitzpatrick_scale:!1,category:"flags"},VFe={keywords:["bz","flag","nation","country","banner"],char:"🇧🇿",fitzpatrick_scale:!1,category:"flags"},qFe={keywords:["bj","flag","nation","country","banner"],char:"🇧🇯",fitzpatrick_scale:!1,category:"flags"},HFe={keywords:["bm","flag","nation","country","banner"],char:"🇧🇲",fitzpatrick_scale:!1,category:"flags"},UFe={keywords:["bt","flag","nation","country","banner"],char:"🇧🇹",fitzpatrick_scale:!1,category:"flags"},WFe={keywords:["bo","flag","nation","country","banner"],char:"🇧🇴",fitzpatrick_scale:!1,category:"flags"},GFe={keywords:["bonaire","flag","nation","country","banner"],char:"🇧🇶",fitzpatrick_scale:!1,category:"flags"},KFe={keywords:["bosnia","herzegovina","flag","nation","country","banner"],char:"🇧🇦",fitzpatrick_scale:!1,category:"flags"},YFe={keywords:["bw","flag","nation","country","banner"],char:"🇧🇼",fitzpatrick_scale:!1,category:"flags"},ZFe={keywords:["br","flag","nation","country","banner"],char:"🇧🇷",fitzpatrick_scale:!1,category:"flags"},XFe={keywords:["british","indian","ocean","territory","flag","nation","country","banner"],char:"🇮🇴",fitzpatrick_scale:!1,category:"flags"},JFe={keywords:["british","virgin","islands","bvi","flag","nation","country","banner"],char:"🇻🇬",fitzpatrick_scale:!1,category:"flags"},QFe={keywords:["bn","darussalam","flag","nation","country","banner"],char:"🇧🇳",fitzpatrick_scale:!1,category:"flags"},e$e={keywords:["bg","flag","nation","country","banner"],char:"🇧🇬",fitzpatrick_scale:!1,category:"flags"},t$e={keywords:["burkina","faso","flag","nation","country","banner"],char:"🇧🇫",fitzpatrick_scale:!1,category:"flags"},n$e={keywords:["bi","flag","nation","country","banner"],char:"🇧🇮",fitzpatrick_scale:!1,category:"flags"},r$e={keywords:["cabo","verde","flag","nation","country","banner"],char:"🇨🇻",fitzpatrick_scale:!1,category:"flags"},i$e={keywords:["kh","flag","nation","country","banner"],char:"🇰🇭",fitzpatrick_scale:!1,category:"flags"},a$e={keywords:["cm","flag","nation","country","banner"],char:"🇨🇲",fitzpatrick_scale:!1,category:"flags"},o$e={keywords:["ca","flag","nation","country","banner"],char:"🇨🇦",fitzpatrick_scale:!1,category:"flags"},s$e={keywords:["canary","islands","flag","nation","country","banner"],char:"🇮🇨",fitzpatrick_scale:!1,category:"flags"},l$e={keywords:["cayman","islands","flag","nation","country","banner"],char:"🇰🇾",fitzpatrick_scale:!1,category:"flags"},c$e={keywords:["central","african","republic","flag","nation","country","banner"],char:"🇨🇫",fitzpatrick_scale:!1,category:"flags"},u$e={keywords:["td","flag","nation","country","banner"],char:"🇹🇩",fitzpatrick_scale:!1,category:"flags"},d$e={keywords:["flag","nation","country","banner"],char:"🇨🇱",fitzpatrick_scale:!1,category:"flags"},f$e={keywords:["china","chinese","prc","flag","country","nation","banner"],char:"🇨🇳",fitzpatrick_scale:!1,category:"flags"},h$e={keywords:["christmas","island","flag","nation","country","banner"],char:"🇨🇽",fitzpatrick_scale:!1,category:"flags"},p$e={keywords:["cocos","keeling","islands","flag","nation","country","banner"],char:"🇨🇨",fitzpatrick_scale:!1,category:"flags"},m$e={keywords:["co","flag","nation","country","banner"],char:"🇨🇴",fitzpatrick_scale:!1,category:"flags"},g$e={keywords:["km","flag","nation","country","banner"],char:"🇰🇲",fitzpatrick_scale:!1,category:"flags"},y$e={keywords:["congo","flag","nation","country","banner"],char:"🇨🇬",fitzpatrick_scale:!1,category:"flags"},_$e={keywords:["congo","democratic","republic","flag","nation","country","banner"],char:"🇨🇩",fitzpatrick_scale:!1,category:"flags"},b$e={keywords:["cook","islands","flag","nation","country","banner"],char:"🇨🇰",fitzpatrick_scale:!1,category:"flags"},k$e={keywords:["costa","rica","flag","nation","country","banner"],char:"🇨🇷",fitzpatrick_scale:!1,category:"flags"},w$e={keywords:["hr","flag","nation","country","banner"],char:"🇭🇷",fitzpatrick_scale:!1,category:"flags"},v$e={keywords:["cu","flag","nation","country","banner"],char:"🇨🇺",fitzpatrick_scale:!1,category:"flags"},x$e={keywords:["curaçao","flag","nation","country","banner"],char:"🇨🇼",fitzpatrick_scale:!1,category:"flags"},C$e={keywords:["cy","flag","nation","country","banner"],char:"🇨🇾",fitzpatrick_scale:!1,category:"flags"},S$e={keywords:["cz","flag","nation","country","banner"],char:"🇨🇿",fitzpatrick_scale:!1,category:"flags"},D$e={keywords:["dk","flag","nation","country","banner"],char:"🇩🇰",fitzpatrick_scale:!1,category:"flags"},E$e={keywords:["dj","flag","nation","country","banner"],char:"🇩🇯",fitzpatrick_scale:!1,category:"flags"},T$e={keywords:["dm","flag","nation","country","banner"],char:"🇩🇲",fitzpatrick_scale:!1,category:"flags"},A$e={keywords:["dominican","republic","flag","nation","country","banner"],char:"🇩🇴",fitzpatrick_scale:!1,category:"flags"},z$e={keywords:["ec","flag","nation","country","banner"],char:"🇪🇨",fitzpatrick_scale:!1,category:"flags"},F$e={keywords:["eg","flag","nation","country","banner"],char:"🇪🇬",fitzpatrick_scale:!1,category:"flags"},$$e={keywords:["el","salvador","flag","nation","country","banner"],char:"🇸🇻",fitzpatrick_scale:!1,category:"flags"},M$e={keywords:["equatorial","gn","flag","nation","country","banner"],char:"🇬🇶",fitzpatrick_scale:!1,category:"flags"},O$e={keywords:["er","flag","nation","country","banner"],char:"🇪🇷",fitzpatrick_scale:!1,category:"flags"},N$e={keywords:["ee","flag","nation","country","banner"],char:"🇪🇪",fitzpatrick_scale:!1,category:"flags"},L$e={keywords:["et","flag","nation","country","banner"],char:"🇪🇹",fitzpatrick_scale:!1,category:"flags"},I$e={keywords:["european","union","flag","banner"],char:"🇪🇺",fitzpatrick_scale:!1,category:"flags"},B$e={keywords:["falkland","islands","malvinas","flag","nation","country","banner"],char:"🇫🇰",fitzpatrick_scale:!1,category:"flags"},R$e={keywords:["faroe","islands","flag","nation","country","banner"],char:"🇫🇴",fitzpatrick_scale:!1,category:"flags"},P$e={keywords:["fj","flag","nation","country","banner"],char:"🇫🇯",fitzpatrick_scale:!1,category:"flags"},j$e={keywords:["fi","flag","nation","country","banner"],char:"🇫🇮",fitzpatrick_scale:!1,category:"flags"},V$e={keywords:["banner","flag","nation","france","french","country"],char:"🇫🇷",fitzpatrick_scale:!1,category:"flags"},q$e={keywords:["french","guiana","flag","nation","country","banner"],char:"🇬🇫",fitzpatrick_scale:!1,category:"flags"},H$e={keywords:["french","polynesia","flag","nation","country","banner"],char:"🇵🇫",fitzpatrick_scale:!1,category:"flags"},U$e={keywords:["french","southern","territories","flag","nation","country","banner"],char:"🇹🇫",fitzpatrick_scale:!1,category:"flags"},W$e={keywords:["ga","flag","nation","country","banner"],char:"🇬🇦",fitzpatrick_scale:!1,category:"flags"},G$e={keywords:["gm","flag","nation","country","banner"],char:"🇬🇲",fitzpatrick_scale:!1,category:"flags"},K$e={keywords:["ge","flag","nation","country","banner"],char:"🇬🇪",fitzpatrick_scale:!1,category:"flags"},Y$e={keywords:["german","nation","flag","country","banner"],char:"🇩🇪",fitzpatrick_scale:!1,category:"flags"},Z$e={keywords:["gh","flag","nation","country","banner"],char:"🇬🇭",fitzpatrick_scale:!1,category:"flags"},X$e={keywords:["gi","flag","nation","country","banner"],char:"🇬🇮",fitzpatrick_scale:!1,category:"flags"},J$e={keywords:["gr","flag","nation","country","banner"],char:"🇬🇷",fitzpatrick_scale:!1,category:"flags"},Q$e={keywords:["gl","flag","nation","country","banner"],char:"🇬🇱",fitzpatrick_scale:!1,category:"flags"},eMe={keywords:["gd","flag","nation","country","banner"],char:"🇬🇩",fitzpatrick_scale:!1,category:"flags"},tMe={keywords:["gp","flag","nation","country","banner"],char:"🇬🇵",fitzpatrick_scale:!1,category:"flags"},nMe={keywords:["gu","flag","nation","country","banner"],char:"🇬🇺",fitzpatrick_scale:!1,category:"flags"},rMe={keywords:["gt","flag","nation","country","banner"],char:"🇬🇹",fitzpatrick_scale:!1,category:"flags"},iMe={keywords:["gg","flag","nation","country","banner"],char:"🇬🇬",fitzpatrick_scale:!1,category:"flags"},aMe={keywords:["gn","flag","nation","country","banner"],char:"🇬🇳",fitzpatrick_scale:!1,category:"flags"},oMe={keywords:["gw","bissau","flag","nation","country","banner"],char:"🇬🇼",fitzpatrick_scale:!1,category:"flags"},sMe={keywords:["gy","flag","nation","country","banner"],char:"🇬🇾",fitzpatrick_scale:!1,category:"flags"},lMe={keywords:["ht","flag","nation","country","banner"],char:"🇭🇹",fitzpatrick_scale:!1,category:"flags"},cMe={keywords:["hn","flag","nation","country","banner"],char:"🇭🇳",fitzpatrick_scale:!1,category:"flags"},uMe={keywords:["hong","kong","flag","nation","country","banner"],char:"🇭🇰",fitzpatrick_scale:!1,category:"flags"},dMe={keywords:["hu","flag","nation","country","banner"],char:"🇭🇺",fitzpatrick_scale:!1,category:"flags"},fMe={keywords:["is","flag","nation","country","banner"],char:"🇮🇸",fitzpatrick_scale:!1,category:"flags"},hMe={keywords:["in","flag","nation","country","banner"],char:"🇮🇳",fitzpatrick_scale:!1,category:"flags"},pMe={keywords:["flag","nation","country","banner"],char:"🇮🇩",fitzpatrick_scale:!1,category:"flags"},mMe={keywords:["iran,","islamic","republic","flag","nation","country","banner"],char:"🇮🇷",fitzpatrick_scale:!1,category:"flags"},gMe={keywords:["iq","flag","nation","country","banner"],char:"🇮🇶",fitzpatrick_scale:!1,category:"flags"},yMe={keywords:["ie","flag","nation","country","banner"],char:"🇮🇪",fitzpatrick_scale:!1,category:"flags"},_Me={keywords:["isle","man","flag","nation","country","banner"],char:"🇮🇲",fitzpatrick_scale:!1,category:"flags"},bMe={keywords:["il","flag","nation","country","banner"],char:"🇮🇱",fitzpatrick_scale:!1,category:"flags"},kMe={keywords:["italy","flag","nation","country","banner"],char:"🇮🇹",fitzpatrick_scale:!1,category:"flags"},wMe={keywords:["ivory","coast","flag","nation","country","banner"],char:"🇨🇮",fitzpatrick_scale:!1,category:"flags"},vMe={keywords:["jm","flag","nation","country","banner"],char:"🇯🇲",fitzpatrick_scale:!1,category:"flags"},xMe={keywords:["japanese","nation","flag","country","banner"],char:"🇯🇵",fitzpatrick_scale:!1,category:"flags"},CMe={keywords:["je","flag","nation","country","banner"],char:"🇯🇪",fitzpatrick_scale:!1,category:"flags"},SMe={keywords:["jo","flag","nation","country","banner"],char:"🇯🇴",fitzpatrick_scale:!1,category:"flags"},DMe={keywords:["kz","flag","nation","country","banner"],char:"🇰🇿",fitzpatrick_scale:!1,category:"flags"},EMe={keywords:["ke","flag","nation","country","banner"],char:"🇰🇪",fitzpatrick_scale:!1,category:"flags"},TMe={keywords:["ki","flag","nation","country","banner"],char:"🇰🇮",fitzpatrick_scale:!1,category:"flags"},AMe={keywords:["xk","flag","nation","country","banner"],char:"🇽🇰",fitzpatrick_scale:!1,category:"flags"},zMe={keywords:["kw","flag","nation","country","banner"],char:"🇰🇼",fitzpatrick_scale:!1,category:"flags"},FMe={keywords:["kg","flag","nation","country","banner"],char:"🇰🇬",fitzpatrick_scale:!1,category:"flags"},$Me={keywords:["lao","democratic","republic","flag","nation","country","banner"],char:"🇱🇦",fitzpatrick_scale:!1,category:"flags"},MMe={keywords:["lv","flag","nation","country","banner"],char:"🇱🇻",fitzpatrick_scale:!1,category:"flags"},OMe={keywords:["lb","flag","nation","country","banner"],char:"🇱🇧",fitzpatrick_scale:!1,category:"flags"},NMe={keywords:["ls","flag","nation","country","banner"],char:"🇱🇸",fitzpatrick_scale:!1,category:"flags"},LMe={keywords:["lr","flag","nation","country","banner"],char:"🇱🇷",fitzpatrick_scale:!1,category:"flags"},IMe={keywords:["ly","flag","nation","country","banner"],char:"🇱🇾",fitzpatrick_scale:!1,category:"flags"},BMe={keywords:["li","flag","nation","country","banner"],char:"🇱🇮",fitzpatrick_scale:!1,category:"flags"},RMe={keywords:["lt","flag","nation","country","banner"],char:"🇱🇹",fitzpatrick_scale:!1,category:"flags"},PMe={keywords:["lu","flag","nation","country","banner"],char:"🇱🇺",fitzpatrick_scale:!1,category:"flags"},jMe={keywords:["macao","flag","nation","country","banner"],char:"🇲🇴",fitzpatrick_scale:!1,category:"flags"},VMe={keywords:["macedonia,","flag","nation","country","banner"],char:"🇲🇰",fitzpatrick_scale:!1,category:"flags"},qMe={keywords:["mg","flag","nation","country","banner"],char:"🇲🇬",fitzpatrick_scale:!1,category:"flags"},HMe={keywords:["mw","flag","nation","country","banner"],char:"🇲🇼",fitzpatrick_scale:!1,category:"flags"},UMe={keywords:["my","flag","nation","country","banner"],char:"🇲🇾",fitzpatrick_scale:!1,category:"flags"},WMe={keywords:["mv","flag","nation","country","banner"],char:"🇲🇻",fitzpatrick_scale:!1,category:"flags"},GMe={keywords:["ml","flag","nation","country","banner"],char:"🇲🇱",fitzpatrick_scale:!1,category:"flags"},KMe={keywords:["mt","flag","nation","country","banner"],char:"🇲🇹",fitzpatrick_scale:!1,category:"flags"},YMe={keywords:["marshall","islands","flag","nation","country","banner"],char:"🇲🇭",fitzpatrick_scale:!1,category:"flags"},ZMe={keywords:["mq","flag","nation","country","banner"],char:"🇲🇶",fitzpatrick_scale:!1,category:"flags"},XMe={keywords:["mr","flag","nation","country","banner"],char:"🇲🇷",fitzpatrick_scale:!1,category:"flags"},JMe={keywords:["mu","flag","nation","country","banner"],char:"🇲🇺",fitzpatrick_scale:!1,category:"flags"},QMe={keywords:["yt","flag","nation","country","banner"],char:"🇾🇹",fitzpatrick_scale:!1,category:"flags"},eOe={keywords:["mx","flag","nation","country","banner"],char:"🇲🇽",fitzpatrick_scale:!1,category:"flags"},tOe={keywords:["micronesia,","federated","states","flag","nation","country","banner"],char:"🇫🇲",fitzpatrick_scale:!1,category:"flags"},nOe={keywords:["moldova,","republic","flag","nation","country","banner"],char:"🇲🇩",fitzpatrick_scale:!1,category:"flags"},rOe={keywords:["mc","flag","nation","country","banner"],char:"🇲🇨",fitzpatrick_scale:!1,category:"flags"},iOe={keywords:["mn","flag","nation","country","banner"],char:"🇲🇳",fitzpatrick_scale:!1,category:"flags"},aOe={keywords:["me","flag","nation","country","banner"],char:"🇲🇪",fitzpatrick_scale:!1,category:"flags"},oOe={keywords:["ms","flag","nation","country","banner"],char:"🇲🇸",fitzpatrick_scale:!1,category:"flags"},sOe={keywords:["ma","flag","nation","country","banner"],char:"🇲🇦",fitzpatrick_scale:!1,category:"flags"},lOe={keywords:["mz","flag","nation","country","banner"],char:"🇲🇿",fitzpatrick_scale:!1,category:"flags"},cOe={keywords:["mm","flag","nation","country","banner"],char:"🇲🇲",fitzpatrick_scale:!1,category:"flags"},uOe={keywords:["na","flag","nation","country","banner"],char:"🇳🇦",fitzpatrick_scale:!1,category:"flags"},dOe={keywords:["nr","flag","nation","country","banner"],char:"🇳🇷",fitzpatrick_scale:!1,category:"flags"},fOe={keywords:["np","flag","nation","country","banner"],char:"🇳🇵",fitzpatrick_scale:!1,category:"flags"},hOe={keywords:["nl","flag","nation","country","banner"],char:"🇳🇱",fitzpatrick_scale:!1,category:"flags"},pOe={keywords:["new","caledonia","flag","nation","country","banner"],char:"🇳🇨",fitzpatrick_scale:!1,category:"flags"},mOe={keywords:["new","zealand","flag","nation","country","banner"],char:"🇳🇿",fitzpatrick_scale:!1,category:"flags"},gOe={keywords:["ni","flag","nation","country","banner"],char:"🇳🇮",fitzpatrick_scale:!1,category:"flags"},yOe={keywords:["ne","flag","nation","country","banner"],char:"🇳🇪",fitzpatrick_scale:!1,category:"flags"},_Oe={keywords:["flag","nation","country","banner"],char:"🇳🇬",fitzpatrick_scale:!1,category:"flags"},bOe={keywords:["nu","flag","nation","country","banner"],char:"🇳🇺",fitzpatrick_scale:!1,category:"flags"},kOe={keywords:["norfolk","island","flag","nation","country","banner"],char:"🇳🇫",fitzpatrick_scale:!1,category:"flags"},wOe={keywords:["northern","mariana","islands","flag","nation","country","banner"],char:"🇲🇵",fitzpatrick_scale:!1,category:"flags"},vOe={keywords:["north","korea","nation","flag","country","banner"],char:"🇰🇵",fitzpatrick_scale:!1,category:"flags"},xOe={keywords:["no","flag","nation","country","banner"],char:"🇳🇴",fitzpatrick_scale:!1,category:"flags"},COe={keywords:["om_symbol","flag","nation","country","banner"],char:"🇴🇲",fitzpatrick_scale:!1,category:"flags"},SOe={keywords:["pk","flag","nation","country","banner"],char:"🇵🇰",fitzpatrick_scale:!1,category:"flags"},DOe={keywords:["pw","flag","nation","country","banner"],char:"🇵🇼",fitzpatrick_scale:!1,category:"flags"},EOe={keywords:["palestine","palestinian","territories","flag","nation","country","banner"],char:"🇵🇸",fitzpatrick_scale:!1,category:"flags"},TOe={keywords:["pa","flag","nation","country","banner"],char:"🇵🇦",fitzpatrick_scale:!1,category:"flags"},AOe={keywords:["papua","new","guinea","flag","nation","country","banner"],char:"🇵🇬",fitzpatrick_scale:!1,category:"flags"},zOe={keywords:["py","flag","nation","country","banner"],char:"🇵🇾",fitzpatrick_scale:!1,category:"flags"},FOe={keywords:["pe","flag","nation","country","banner"],char:"🇵🇪",fitzpatrick_scale:!1,category:"flags"},$Oe={keywords:["ph","flag","nation","country","banner"],char:"🇵🇭",fitzpatrick_scale:!1,category:"flags"},MOe={keywords:["pitcairn","flag","nation","country","banner"],char:"🇵🇳",fitzpatrick_scale:!1,category:"flags"},OOe={keywords:["pl","flag","nation","country","banner"],char:"🇵🇱",fitzpatrick_scale:!1,category:"flags"},NOe={keywords:["pt","flag","nation","country","banner"],char:"🇵🇹",fitzpatrick_scale:!1,category:"flags"},LOe={keywords:["puerto","rico","flag","nation","country","banner"],char:"🇵🇷",fitzpatrick_scale:!1,category:"flags"},IOe={keywords:["qa","flag","nation","country","banner"],char:"🇶🇦",fitzpatrick_scale:!1,category:"flags"},BOe={keywords:["réunion","flag","nation","country","banner"],char:"🇷🇪",fitzpatrick_scale:!1,category:"flags"},ROe={keywords:["ro","flag","nation","country","banner"],char:"🇷🇴",fitzpatrick_scale:!1,category:"flags"},POe={keywords:["russian","federation","flag","nation","country","banner"],char:"🇷🇺",fitzpatrick_scale:!1,category:"flags"},jOe={keywords:["rw","flag","nation","country","banner"],char:"🇷🇼",fitzpatrick_scale:!1,category:"flags"},VOe={keywords:["saint","barthélemy","flag","nation","country","banner"],char:"🇧🇱",fitzpatrick_scale:!1,category:"flags"},qOe={keywords:["saint","helena","ascension","tristan","cunha","flag","nation","country","banner"],char:"🇸🇭",fitzpatrick_scale:!1,category:"flags"},HOe={keywords:["saint","kitts","nevis","flag","nation","country","banner"],char:"🇰🇳",fitzpatrick_scale:!1,category:"flags"},UOe={keywords:["saint","lucia","flag","nation","country","banner"],char:"🇱🇨",fitzpatrick_scale:!1,category:"flags"},WOe={keywords:["saint","pierre","miquelon","flag","nation","country","banner"],char:"🇵🇲",fitzpatrick_scale:!1,category:"flags"},GOe={keywords:["saint","vincent","grenadines","flag","nation","country","banner"],char:"🇻🇨",fitzpatrick_scale:!1,category:"flags"},KOe={keywords:["ws","flag","nation","country","banner"],char:"🇼🇸",fitzpatrick_scale:!1,category:"flags"},YOe={keywords:["san","marino","flag","nation","country","banner"],char:"🇸🇲",fitzpatrick_scale:!1,category:"flags"},ZOe={keywords:["sao","tome","principe","flag","nation","country","banner"],char:"🇸🇹",fitzpatrick_scale:!1,category:"flags"},XOe={keywords:["flag","nation","country","banner"],char:"🇸🇦",fitzpatrick_scale:!1,category:"flags"},JOe={keywords:["sn","flag","nation","country","banner"],char:"🇸🇳",fitzpatrick_scale:!1,category:"flags"},QOe={keywords:["rs","flag","nation","country","banner"],char:"🇷🇸",fitzpatrick_scale:!1,category:"flags"},eNe={keywords:["sc","flag","nation","country","banner"],char:"🇸🇨",fitzpatrick_scale:!1,category:"flags"},tNe={keywords:["sierra","leone","flag","nation","country","banner"],char:"🇸🇱",fitzpatrick_scale:!1,category:"flags"},nNe={keywords:["sg","flag","nation","country","banner"],char:"🇸🇬",fitzpatrick_scale:!1,category:"flags"},rNe={keywords:["sint","maarten","dutch","flag","nation","country","banner"],char:"🇸🇽",fitzpatrick_scale:!1,category:"flags"},iNe={keywords:["sk","flag","nation","country","banner"],char:"🇸🇰",fitzpatrick_scale:!1,category:"flags"},aNe={keywords:["si","flag","nation","country","banner"],char:"🇸🇮",fitzpatrick_scale:!1,category:"flags"},oNe={keywords:["solomon","islands","flag","nation","country","banner"],char:"🇸🇧",fitzpatrick_scale:!1,category:"flags"},sNe={keywords:["so","flag","nation","country","banner"],char:"🇸🇴",fitzpatrick_scale:!1,category:"flags"},lNe={keywords:["south","africa","flag","nation","country","banner"],char:"🇿🇦",fitzpatrick_scale:!1,category:"flags"},cNe={keywords:["south","georgia","sandwich","islands","flag","nation","country","banner"],char:"🇬🇸",fitzpatrick_scale:!1,category:"flags"},uNe={keywords:["south","korea","nation","flag","country","banner"],char:"🇰🇷",fitzpatrick_scale:!1,category:"flags"},dNe={keywords:["south","sd","flag","nation","country","banner"],char:"🇸🇸",fitzpatrick_scale:!1,category:"flags"},fNe={keywords:["spain","flag","nation","country","banner"],char:"🇪🇸",fitzpatrick_scale:!1,category:"flags"},hNe={keywords:["sri","lanka","flag","nation","country","banner"],char:"🇱🇰",fitzpatrick_scale:!1,category:"flags"},pNe={keywords:["sd","flag","nation","country","banner"],char:"🇸🇩",fitzpatrick_scale:!1,category:"flags"},mNe={keywords:["sr","flag","nation","country","banner"],char:"🇸🇷",fitzpatrick_scale:!1,category:"flags"},gNe={keywords:["sz","flag","nation","country","banner"],char:"🇸🇿",fitzpatrick_scale:!1,category:"flags"},yNe={keywords:["se","flag","nation","country","banner"],char:"🇸🇪",fitzpatrick_scale:!1,category:"flags"},_Ne={keywords:["ch","flag","nation","country","banner"],char:"🇨🇭",fitzpatrick_scale:!1,category:"flags"},bNe={keywords:["syrian","arab","republic","flag","nation","country","banner"],char:"🇸🇾",fitzpatrick_scale:!1,category:"flags"},kNe={keywords:["tw","flag","nation","country","banner"],char:"🇹🇼",fitzpatrick_scale:!1,category:"flags"},wNe={keywords:["tj","flag","nation","country","banner"],char:"🇹🇯",fitzpatrick_scale:!1,category:"flags"},vNe={keywords:["tanzania,","united","republic","flag","nation","country","banner"],char:"🇹🇿",fitzpatrick_scale:!1,category:"flags"},xNe={keywords:["th","flag","nation","country","banner"],char:"🇹🇭",fitzpatrick_scale:!1,category:"flags"},CNe={keywords:["timor","leste","flag","nation","country","banner"],char:"🇹🇱",fitzpatrick_scale:!1,category:"flags"},SNe={keywords:["tg","flag","nation","country","banner"],char:"🇹🇬",fitzpatrick_scale:!1,category:"flags"},DNe={keywords:["tk","flag","nation","country","banner"],char:"🇹🇰",fitzpatrick_scale:!1,category:"flags"},ENe={keywords:["to","flag","nation","country","banner"],char:"🇹🇴",fitzpatrick_scale:!1,category:"flags"},TNe={keywords:["trinidad","tobago","flag","nation","country","banner"],char:"🇹🇹",fitzpatrick_scale:!1,category:"flags"},ANe={keywords:["tn","flag","nation","country","banner"],char:"🇹🇳",fitzpatrick_scale:!1,category:"flags"},zNe={keywords:["turkey","flag","nation","country","banner"],char:"🇹🇷",fitzpatrick_scale:!1,category:"flags"},FNe={keywords:["flag","nation","country","banner"],char:"🇹🇲",fitzpatrick_scale:!1,category:"flags"},$Ne={keywords:["turks","caicos","islands","flag","nation","country","banner"],char:"🇹🇨",fitzpatrick_scale:!1,category:"flags"},MNe={keywords:["flag","nation","country","banner"],char:"🇹🇻",fitzpatrick_scale:!1,category:"flags"},ONe={keywords:["ug","flag","nation","country","banner"],char:"🇺🇬",fitzpatrick_scale:!1,category:"flags"},NNe={keywords:["ua","flag","nation","country","banner"],char:"🇺🇦",fitzpatrick_scale:!1,category:"flags"},LNe={keywords:["united","arab","emirates","flag","nation","country","banner"],char:"🇦🇪",fitzpatrick_scale:!1,category:"flags"},INe={keywords:["united","kingdom","great","britain","northern","ireland","flag","nation","country","banner","british","UK","english","england","union jack"],char:"🇬🇧",fitzpatrick_scale:!1,category:"flags"},BNe={keywords:["flag","english"],char:"🏴󠁧󠁢󠁥󠁮󠁧󠁿",fitzpatrick_scale:!1,category:"flags"},RNe={keywords:["flag","scottish"],char:"🏴󠁧󠁢󠁳󠁣󠁴󠁿",fitzpatrick_scale:!1,category:"flags"},PNe={keywords:["flag","welsh"],char:"🏴󠁧󠁢󠁷󠁬󠁳󠁿",fitzpatrick_scale:!1,category:"flags"},jNe={keywords:["united","states","america","flag","nation","country","banner"],char:"🇺🇸",fitzpatrick_scale:!1,category:"flags"},VNe={keywords:["virgin","islands","us","flag","nation","country","banner"],char:"🇻🇮",fitzpatrick_scale:!1,category:"flags"},qNe={keywords:["uy","flag","nation","country","banner"],char:"🇺🇾",fitzpatrick_scale:!1,category:"flags"},HNe={keywords:["uz","flag","nation","country","banner"],char:"🇺🇿",fitzpatrick_scale:!1,category:"flags"},UNe={keywords:["vu","flag","nation","country","banner"],char:"🇻🇺",fitzpatrick_scale:!1,category:"flags"},WNe={keywords:["vatican","city","flag","nation","country","banner"],char:"🇻🇦",fitzpatrick_scale:!1,category:"flags"},GNe={keywords:["ve","bolivarian","republic","flag","nation","country","banner"],char:"🇻🇪",fitzpatrick_scale:!1,category:"flags"},KNe={keywords:["viet","nam","flag","nation","country","banner"],char:"🇻🇳",fitzpatrick_scale:!1,category:"flags"},YNe={keywords:["wallis","futuna","flag","nation","country","banner"],char:"🇼🇫",fitzpatrick_scale:!1,category:"flags"},ZNe={keywords:["western","sahara","flag","nation","country","banner"],char:"🇪🇭",fitzpatrick_scale:!1,category:"flags"},XNe={keywords:["ye","flag","nation","country","banner"],char:"🇾🇪",fitzpatrick_scale:!1,category:"flags"},JNe={keywords:["zm","flag","nation","country","banner"],char:"🇿🇲",fitzpatrick_scale:!1,category:"flags"},QNe={keywords:["zw","flag","nation","country","banner"],char:"🇿🇼",fitzpatrick_scale:!1,category:"flags"},eLe={keywords:["un","flag","banner"],char:"🇺🇳",fitzpatrick_scale:!1,category:"flags"},tLe={keywords:["skull","crossbones","flag","banner"],char:"🏴‍☠️",fitzpatrick_scale:!1,category:"flags"},nLe={100:{keywords:["score","perfect","numbers","century","exam","quiz","test","pass","hundred"],char:"💯",fitzpatrick_scale:!1,category:"symbols"},1234:{keywords:["numbers","blue-square"],char:"🔢",fitzpatrick_scale:!1,category:"symbols"},grinning:dge,grimacing:fge,grin:hge,joy:pge,rofl:mge,partying:gge,smiley:yge,smile:_ge,sweat_smile:bge,laughing:kge,innocent:wge,wink:vge,blush:xge,slightly_smiling_face:Cge,upside_down_face:Sge,relaxed:Dge,yum:Ege,relieved:Tge,heart_eyes:Age,smiling_face_with_three_hearts:zge,kissing_heart:Fge,kissing:$ge,kissing_smiling_eyes:Mge,kissing_closed_eyes:Oge,stuck_out_tongue_winking_eye:Nge,zany:Lge,raised_eyebrow:Ige,monocle:Bge,stuck_out_tongue_closed_eyes:Rge,stuck_out_tongue:Pge,money_mouth_face:jge,nerd_face:Vge,sunglasses:qge,star_struck:Hge,clown_face:Uge,cowboy_hat_face:Wge,hugs:Gge,smirk:Kge,no_mouth:Yge,neutral_face:Zge,expressionless:Xge,unamused:Jge,roll_eyes:Qge,thinking:e1e,lying_face:t1e,hand_over_mouth:n1e,shushing:r1e,symbols_over_mouth:i1e,exploding_head:a1e,flushed:o1e,disappointed:s1e,worried:l1e,angry:c1e,rage:u1e,pensive:d1e,confused:f1e,slightly_frowning_face:h1e,frowning_face:p1e,persevere:m1e,confounded:g1e,tired_face:y1e,weary:_1e,pleading:b1e,triumph:k1e,open_mouth:w1e,scream:v1e,fearful:x1e,cold_sweat:C1e,hushed:S1e,frowning:D1e,anguished:E1e,cry:T1e,disappointed_relieved:A1e,drooling_face:z1e,sleepy:F1e,sweat:$1e,hot:M1e,cold:O1e,sob:N1e,dizzy_face:L1e,astonished:I1e,zipper_mouth_face:B1e,nauseated_face:R1e,sneezing_face:P1e,vomiting:j1e,mask:V1e,face_with_thermometer:q1e,face_with_head_bandage:H1e,woozy:U1e,sleeping:W1e,zzz:G1e,poop:K1e,smiling_imp:Y1e,imp:Z1e,japanese_ogre:X1e,japanese_goblin:J1e,skull:Q1e,ghost:eye,alien:tye,robot:nye,smiley_cat:rye,smile_cat:iye,joy_cat:aye,heart_eyes_cat:oye,smirk_cat:sye,kissing_cat:lye,scream_cat:cye,crying_cat_face:uye,pouting_cat:dye,palms_up:fye,raised_hands:hye,clap:pye,wave:mye,call_me_hand:gye,"+1":{keywords:["thumbsup","yes","awesome","good","agree","accept","cool","hand","like"],char:"👍",fitzpatrick_scale:!0,category:"people"},"-1":{keywords:["thumbsdown","no","dislike","hand"],char:"👎",fitzpatrick_scale:!0,category:"people"},facepunch:yye,fist:_ye,fist_left:bye,fist_right:kye,v:wye,ok_hand:vye,raised_hand:xye,raised_back_of_hand:Cye,open_hands:Sye,muscle:Dye,pray:Eye,foot:Tye,leg:Aye,handshake:zye,point_up:Fye,point_up_2:$ye,point_down:Mye,point_left:Oye,point_right:Nye,fu:Lye,raised_hand_with_fingers_splayed:Iye,love_you:Bye,metal:Rye,crossed_fingers:Pye,vulcan_salute:jye,writing_hand:Vye,selfie:qye,nail_care:Hye,lips:Uye,tooth:Wye,tongue:Gye,ear:Kye,nose:Yye,eye:Zye,eyes:Xye,brain:Jye,bust_in_silhouette:Qye,busts_in_silhouette:e_e,speaking_head:t_e,baby:n_e,child:r_e,boy:i_e,girl:a_e,adult:o_e,man:s_e,woman:l_e,blonde_woman:c_e,blonde_man:u_e,bearded_person:d_e,older_adult:f_e,older_man:h_e,older_woman:p_e,man_with_gua_pi_mao:m_e,woman_with_headscarf:g_e,woman_with_turban:y_e,man_with_turban:__e,policewoman:b_e,policeman:k_e,construction_worker_woman:w_e,construction_worker_man:v_e,guardswoman:x_e,guardsman:C_e,female_detective:S_e,male_detective:D_e,woman_health_worker:E_e,man_health_worker:T_e,woman_farmer:A_e,man_farmer:z_e,woman_cook:F_e,man_cook:$_e,woman_student:M_e,man_student:O_e,woman_singer:N_e,man_singer:L_e,woman_teacher:I_e,man_teacher:B_e,woman_factory_worker:R_e,man_factory_worker:P_e,woman_technologist:j_e,man_technologist:V_e,woman_office_worker:q_e,man_office_worker:H_e,woman_mechanic:U_e,man_mechanic:W_e,woman_scientist:G_e,man_scientist:K_e,woman_artist:Y_e,man_artist:Z_e,woman_firefighter:X_e,man_firefighter:J_e,woman_pilot:Q_e,man_pilot:ebe,woman_astronaut:tbe,man_astronaut:nbe,woman_judge:rbe,man_judge:ibe,woman_superhero:abe,man_superhero:obe,woman_supervillain:sbe,man_supervillain:lbe,mrs_claus:cbe,santa:ube,sorceress:dbe,wizard:fbe,woman_elf:hbe,man_elf:pbe,woman_vampire:mbe,man_vampire:gbe,woman_zombie:ybe,man_zombie:_be,woman_genie:bbe,man_genie:kbe,mermaid:wbe,merman:vbe,woman_fairy:xbe,man_fairy:Cbe,angel:Sbe,pregnant_woman:Dbe,breastfeeding:Ebe,princess:Tbe,prince:Abe,bride_with_veil:zbe,man_in_tuxedo:Fbe,running_woman:$be,running_man:Mbe,walking_woman:Obe,walking_man:Nbe,dancer:Lbe,man_dancing:Ibe,dancing_women:Bbe,dancing_men:Rbe,couple:Pbe,two_men_holding_hands:jbe,two_women_holding_hands:Vbe,bowing_woman:qbe,bowing_man:Hbe,man_facepalming:Ube,woman_facepalming:Wbe,woman_shrugging:Gbe,man_shrugging:Kbe,tipping_hand_woman:Ybe,tipping_hand_man:Zbe,no_good_woman:Xbe,no_good_man:Jbe,ok_woman:Qbe,ok_man:eke,raising_hand_woman:tke,raising_hand_man:nke,pouting_woman:rke,pouting_man:ike,frowning_woman:ake,frowning_man:oke,haircut_woman:ske,haircut_man:lke,massage_woman:cke,massage_man:uke,woman_in_steamy_room:dke,man_in_steamy_room:fke,couple_with_heart_woman_man:hke,couple_with_heart_woman_woman:pke,couple_with_heart_man_man:mke,couplekiss_man_woman:gke,couplekiss_woman_woman:yke,couplekiss_man_man:_ke,family_man_woman_boy:bke,family_man_woman_girl:kke,family_man_woman_girl_boy:wke,family_man_woman_boy_boy:vke,family_man_woman_girl_girl:xke,family_woman_woman_boy:Cke,family_woman_woman_girl:Ske,family_woman_woman_girl_boy:Dke,family_woman_woman_boy_boy:Eke,family_woman_woman_girl_girl:Tke,family_man_man_boy:Ake,family_man_man_girl:zke,family_man_man_girl_boy:Fke,family_man_man_boy_boy:$ke,family_man_man_girl_girl:Mke,family_woman_boy:Oke,family_woman_girl:Nke,family_woman_girl_boy:Lke,family_woman_boy_boy:Ike,family_woman_girl_girl:Bke,family_man_boy:Rke,family_man_girl:Pke,family_man_girl_boy:jke,family_man_boy_boy:Vke,family_man_girl_girl:qke,yarn:Hke,thread:Uke,coat:Wke,labcoat:Gke,womans_clothes:Kke,tshirt:Yke,jeans:Zke,necktie:Xke,dress:Jke,bikini:Qke,kimono:ewe,lipstick:twe,kiss:nwe,footprints:rwe,flat_shoe:iwe,high_heel:awe,sandal:owe,boot:swe,mans_shoe:lwe,athletic_shoe:cwe,hiking_boot:uwe,socks:dwe,gloves:fwe,scarf:hwe,womans_hat:pwe,tophat:mwe,billed_hat:gwe,rescue_worker_helmet:ywe,mortar_board:_we,crown:bwe,school_satchel:kwe,luggage:wwe,pouch:vwe,purse:xwe,handbag:Cwe,briefcase:Swe,eyeglasses:Dwe,dark_sunglasses:Ewe,goggles:Twe,ring:Awe,closed_umbrella:zwe,dog:Fwe,cat:$we,mouse:Mwe,hamster:Owe,rabbit:Nwe,fox_face:Lwe,bear:Iwe,panda_face:Bwe,koala:Rwe,tiger:Pwe,lion:jwe,cow:Vwe,pig:qwe,pig_nose:Hwe,frog:Uwe,squid:Wwe,octopus:Gwe,shrimp:Kwe,monkey_face:Ywe,gorilla:Zwe,see_no_evil:Xwe,hear_no_evil:Jwe,speak_no_evil:Qwe,monkey:eve,chicken:tve,penguin:nve,bird:rve,baby_chick:ive,hatching_chick:ave,hatched_chick:ove,duck:sve,eagle:lve,owl:cve,bat:uve,wolf:dve,boar:fve,horse:hve,unicorn:pve,honeybee:mve,bug:gve,butterfly:yve,snail:_ve,beetle:bve,ant:kve,grasshopper:wve,spider:vve,scorpion:xve,crab:Cve,snake:Sve,lizard:Dve,"t-rex":{keywords:["animal","nature","dinosaur","tyrannosaurus","extinct"],char:"🦖",fitzpatrick_scale:!1,category:"animals_and_nature"},sauropod:Eve,turtle:Tve,tropical_fish:Ave,fish:zve,blowfish:Fve,dolphin:$ve,shark:Mve,whale:Ove,whale2:Nve,crocodile:Lve,leopard:Ive,zebra:Bve,tiger2:Rve,water_buffalo:Pve,ox:jve,cow2:Vve,deer:qve,dromedary_camel:Hve,camel:Uve,giraffe:Wve,elephant:Gve,rhinoceros:Kve,goat:Yve,ram:Zve,sheep:Xve,racehorse:Jve,pig2:Qve,rat:e2e,mouse2:t2e,rooster:n2e,turkey:r2e,dove:i2e,dog2:a2e,poodle:o2e,cat2:s2e,rabbit2:l2e,chipmunk:c2e,hedgehog:u2e,raccoon:d2e,llama:f2e,hippopotamus:h2e,kangaroo:p2e,badger:m2e,swan:g2e,peacock:y2e,parrot:_2e,lobster:b2e,mosquito:k2e,paw_prints:w2e,dragon:v2e,dragon_face:x2e,cactus:C2e,christmas_tree:S2e,evergreen_tree:D2e,deciduous_tree:E2e,palm_tree:T2e,seedling:A2e,herb:z2e,shamrock:F2e,four_leaf_clover:$2e,bamboo:M2e,tanabata_tree:O2e,leaves:N2e,fallen_leaf:L2e,maple_leaf:I2e,ear_of_rice:B2e,hibiscus:R2e,sunflower:P2e,rose:j2e,wilted_flower:V2e,tulip:q2e,blossom:H2e,cherry_blossom:U2e,bouquet:W2e,mushroom:G2e,chestnut:K2e,jack_o_lantern:Y2e,shell:Z2e,spider_web:X2e,earth_americas:J2e,earth_africa:Q2e,earth_asia:e3e,full_moon:t3e,waning_gibbous_moon:n3e,last_quarter_moon:r3e,waning_crescent_moon:i3e,new_moon:a3e,waxing_crescent_moon:o3e,first_quarter_moon:s3e,waxing_gibbous_moon:l3e,new_moon_with_face:c3e,full_moon_with_face:u3e,first_quarter_moon_with_face:d3e,last_quarter_moon_with_face:f3e,sun_with_face:h3e,crescent_moon:p3e,star:m3e,star2:g3e,dizzy:y3e,sparkles:_3e,comet:b3e,sunny:k3e,sun_behind_small_cloud:w3e,partly_sunny:v3e,sun_behind_large_cloud:x3e,sun_behind_rain_cloud:C3e,cloud:S3e,cloud_with_rain:D3e,cloud_with_lightning_and_rain:E3e,cloud_with_lightning:T3e,zap:A3e,fire:z3e,boom:F3e,snowflake:$3e,cloud_with_snow:M3e,snowman:O3e,snowman_with_snow:N3e,wind_face:L3e,dash:I3e,tornado:B3e,fog:R3e,open_umbrella:P3e,umbrella:j3e,droplet:V3e,sweat_drops:q3e,ocean:H3e,green_apple:U3e,apple:W3e,pear:G3e,tangerine:K3e,lemon:Y3e,banana:Z3e,watermelon:X3e,grapes:J3e,strawberry:Q3e,melon:e4e,cherries:t4e,peach:n4e,pineapple:r4e,coconut:i4e,kiwi_fruit:a4e,mango:o4e,avocado:s4e,broccoli:l4e,tomato:c4e,eggplant:u4e,cucumber:d4e,carrot:f4e,hot_pepper:h4e,potato:p4e,corn:m4e,leafy_greens:g4e,sweet_potato:y4e,peanuts:_4e,honey_pot:b4e,croissant:k4e,bread:w4e,baguette_bread:v4e,bagel:x4e,pretzel:C4e,cheese:S4e,egg:D4e,bacon:E4e,steak:T4e,pancakes:A4e,poultry_leg:z4e,meat_on_bone:F4e,bone:$4e,fried_shrimp:M4e,fried_egg:O4e,hamburger:N4e,fries:L4e,stuffed_flatbread:I4e,hotdog:B4e,pizza:R4e,sandwich:P4e,canned_food:j4e,spaghetti:V4e,taco:q4e,burrito:H4e,green_salad:U4e,shallow_pan_of_food:W4e,ramen:G4e,stew:K4e,fish_cake:Y4e,fortune_cookie:Z4e,sushi:X4e,bento:J4e,curry:Q4e,rice_ball:e6e,rice:t6e,rice_cracker:n6e,oden:r6e,dango:i6e,shaved_ice:a6e,ice_cream:o6e,icecream:s6e,pie:l6e,cake:c6e,cupcake:u6e,moon_cake:d6e,birthday:f6e,custard:h6e,candy:p6e,lollipop:m6e,chocolate_bar:g6e,popcorn:y6e,dumpling:_6e,doughnut:b6e,cookie:k6e,milk_glass:w6e,beer:v6e,beers:x6e,clinking_glasses:C6e,wine_glass:S6e,tumbler_glass:D6e,cocktail:E6e,tropical_drink:T6e,champagne:A6e,sake:z6e,tea:F6e,cup_with_straw:$6e,coffee:M6e,baby_bottle:O6e,salt:N6e,spoon:L6e,fork_and_knife:I6e,plate_with_cutlery:B6e,bowl_with_spoon:R6e,takeout_box:P6e,chopsticks:j6e,soccer:V6e,basketball:q6e,football:H6e,baseball:U6e,softball:W6e,tennis:G6e,volleyball:K6e,rugby_football:Y6e,flying_disc:Z6e,"8ball":{keywords:["pool","hobby","game","luck","magic"],char:"🎱",fitzpatrick_scale:!1,category:"activity"},golf:X6e,golfing_woman:J6e,golfing_man:Q6e,ping_pong:e5e,badminton:t5e,goal_net:n5e,ice_hockey:r5e,field_hockey:i5e,lacrosse:a5e,cricket:o5e,ski:s5e,skier:l5e,snowboarder:c5e,person_fencing:u5e,women_wrestling:d5e,men_wrestling:f5e,woman_cartwheeling:h5e,man_cartwheeling:p5e,woman_playing_handball:m5e,man_playing_handball:g5e,ice_skate:y5e,curling_stone:_5e,skateboard:b5e,sled:k5e,bow_and_arrow:w5e,fishing_pole_and_fish:v5e,boxing_glove:x5e,martial_arts_uniform:C5e,rowing_woman:S5e,rowing_man:D5e,climbing_woman:E5e,climbing_man:T5e,swimming_woman:A5e,swimming_man:z5e,woman_playing_water_polo:F5e,man_playing_water_polo:$5e,woman_in_lotus_position:M5e,man_in_lotus_position:O5e,surfing_woman:N5e,surfing_man:L5e,bath:I5e,basketball_woman:B5e,basketball_man:R5e,weight_lifting_woman:P5e,weight_lifting_man:j5e,biking_woman:V5e,biking_man:q5e,mountain_biking_woman:H5e,mountain_biking_man:U5e,horse_racing:W5e,business_suit_levitating:G5e,trophy:K5e,running_shirt_with_sash:Y5e,medal_sports:Z5e,medal_military:X5e,"1st_place_medal":{keywords:["award","winning","first"],char:"🥇",fitzpatrick_scale:!1,category:"activity"},"2nd_place_medal":{keywords:["award","second"],char:"🥈",fitzpatrick_scale:!1,category:"activity"},"3rd_place_medal":{keywords:["award","third"],char:"🥉",fitzpatrick_scale:!1,category:"activity"},reminder_ribbon:J5e,rosette:Q5e,ticket:exe,tickets:txe,performing_arts:nxe,art:rxe,circus_tent:ixe,woman_juggling:axe,man_juggling:oxe,microphone:sxe,headphones:lxe,musical_score:cxe,musical_keyboard:uxe,drum:dxe,saxophone:fxe,trumpet:hxe,guitar:pxe,violin:mxe,clapper:gxe,video_game:yxe,space_invader:_xe,dart:bxe,game_die:kxe,chess_pawn:wxe,slot_machine:vxe,jigsaw:xxe,bowling:Cxe,red_car:Sxe,taxi:Dxe,blue_car:Exe,bus:Txe,trolleybus:Axe,racing_car:zxe,police_car:Fxe,ambulance:$xe,fire_engine:Mxe,minibus:Oxe,truck:Nxe,articulated_lorry:Lxe,tractor:Ixe,kick_scooter:Bxe,motorcycle:Rxe,bike:Pxe,motor_scooter:jxe,rotating_light:Vxe,oncoming_police_car:qxe,oncoming_bus:Hxe,oncoming_automobile:Uxe,oncoming_taxi:Wxe,aerial_tramway:Gxe,mountain_cableway:Kxe,suspension_railway:Yxe,railway_car:Zxe,train:Xxe,monorail:Jxe,bullettrain_side:Qxe,bullettrain_front:e8e,light_rail:t8e,mountain_railway:n8e,steam_locomotive:r8e,train2:i8e,metro:a8e,tram:o8e,station:s8e,flying_saucer:l8e,helicopter:c8e,small_airplane:u8e,airplane:d8e,flight_departure:f8e,flight_arrival:h8e,sailboat:p8e,motor_boat:m8e,speedboat:g8e,ferry:y8e,passenger_ship:_8e,rocket:b8e,artificial_satellite:k8e,seat:w8e,canoe:v8e,anchor:x8e,construction:C8e,fuelpump:S8e,busstop:D8e,vertical_traffic_light:E8e,traffic_light:T8e,checkered_flag:A8e,ship:z8e,ferris_wheel:F8e,roller_coaster:$8e,carousel_horse:M8e,building_construction:O8e,foggy:N8e,tokyo_tower:L8e,factory:I8e,fountain:B8e,rice_scene:R8e,mountain:P8e,mountain_snow:j8e,mount_fuji:V8e,volcano:q8e,japan:H8e,camping:U8e,tent:W8e,national_park:G8e,motorway:K8e,railway_track:Y8e,sunrise:Z8e,sunrise_over_mountains:X8e,desert:J8e,beach_umbrella:Q8e,desert_island:e7e,city_sunrise:t7e,city_sunset:n7e,cityscape:r7e,night_with_stars:i7e,bridge_at_night:a7e,milky_way:o7e,stars:s7e,sparkler:l7e,fireworks:c7e,rainbow:u7e,houses:d7e,european_castle:f7e,japanese_castle:h7e,stadium:p7e,statue_of_liberty:m7e,house:g7e,house_with_garden:y7e,derelict_house:_7e,office:b7e,department_store:k7e,post_office:w7e,european_post_office:v7e,hospital:x7e,bank:C7e,hotel:S7e,convenience_store:D7e,school:E7e,love_hotel:T7e,wedding:A7e,classical_building:z7e,church:F7e,mosque:$7e,synagogue:M7e,kaaba:O7e,shinto_shrine:N7e,watch:L7e,iphone:I7e,calling:B7e,computer:R7e,keyboard:P7e,desktop_computer:j7e,printer:V7e,computer_mouse:q7e,trackball:H7e,joystick:U7e,clamp:W7e,minidisc:G7e,floppy_disk:K7e,cd:Y7e,dvd:Z7e,vhs:X7e,camera:J7e,camera_flash:Q7e,video_camera:eCe,movie_camera:tCe,film_projector:nCe,film_strip:rCe,telephone_receiver:iCe,phone:aCe,pager:oCe,fax:sCe,tv:lCe,radio:cCe,studio_microphone:uCe,level_slider:dCe,control_knobs:fCe,compass:hCe,stopwatch:pCe,timer_clock:mCe,alarm_clock:gCe,mantelpiece_clock:yCe,hourglass_flowing_sand:_Ce,hourglass:bCe,satellite:kCe,battery:wCe,electric_plug:vCe,bulb:xCe,flashlight:CCe,candle:SCe,fire_extinguisher:DCe,wastebasket:ECe,oil_drum:TCe,money_with_wings:ACe,dollar:zCe,yen:FCe,euro:$Ce,pound:MCe,moneybag:OCe,credit_card:NCe,gem:LCe,balance_scale:ICe,toolbox:BCe,wrench:RCe,hammer:PCe,hammer_and_pick:jCe,hammer_and_wrench:VCe,pick:qCe,nut_and_bolt:HCe,gear:UCe,brick:WCe,chains:GCe,magnet:KCe,gun:YCe,bomb:ZCe,firecracker:XCe,hocho:JCe,dagger:QCe,crossed_swords:eSe,shield:tSe,smoking:nSe,skull_and_crossbones:rSe,coffin:iSe,funeral_urn:aSe,amphora:oSe,crystal_ball:sSe,prayer_beads:lSe,nazar_amulet:cSe,barber:uSe,alembic:dSe,telescope:fSe,microscope:hSe,hole:pSe,pill:mSe,syringe:gSe,dna:ySe,microbe:_Se,petri_dish:bSe,test_tube:kSe,thermometer:wSe,broom:vSe,basket:xSe,toilet_paper:CSe,label:SSe,bookmark:DSe,toilet:ESe,shower:TSe,bathtub:ASe,soap:zSe,sponge:FSe,lotion_bottle:$Se,key:MSe,old_key:OSe,couch_and_lamp:NSe,sleeping_bed:LSe,bed:ISe,door:BSe,bellhop_bell:RSe,teddy_bear:PSe,framed_picture:jSe,world_map:VSe,parasol_on_ground:qSe,moyai:HSe,shopping:USe,shopping_cart:WSe,balloon:GSe,flags:KSe,ribbon:YSe,gift:ZSe,confetti_ball:XSe,tada:JSe,dolls:QSe,wind_chime:e9e,crossed_flags:t9e,izakaya_lantern:n9e,red_envelope:r9e,email:i9e,envelope_with_arrow:a9e,incoming_envelope:o9e,"e-mail":{keywords:["communication","inbox"],char:"📧",fitzpatrick_scale:!1,category:"objects"},love_letter:s9e,postbox:l9e,mailbox_closed:c9e,mailbox:u9e,mailbox_with_mail:d9e,mailbox_with_no_mail:f9e,package:{keywords:["mail","gift","cardboard","box","moving"],char:"📦",fitzpatrick_scale:!1,category:"objects"},postal_horn:h9e,inbox_tray:p9e,outbox_tray:m9e,scroll:g9e,page_with_curl:y9e,bookmark_tabs:_9e,receipt:b9e,bar_chart:k9e,chart_with_upwards_trend:w9e,chart_with_downwards_trend:v9e,page_facing_up:x9e,date:C9e,calendar:S9e,spiral_calendar:D9e,card_index:E9e,card_file_box:T9e,ballot_box:A9e,file_cabinet:z9e,clipboard:F9e,spiral_notepad:$9e,file_folder:M9e,open_file_folder:O9e,card_index_dividers:N9e,newspaper_roll:L9e,newspaper:I9e,notebook:B9e,closed_book:R9e,green_book:P9e,blue_book:j9e,orange_book:V9e,notebook_with_decorative_cover:q9e,ledger:H9e,books:U9e,open_book:W9e,safety_pin:G9e,link:K9e,paperclip:Y9e,paperclips:Z9e,scissors:X9e,triangular_ruler:J9e,straight_ruler:Q9e,abacus:eDe,pushpin:tDe,round_pushpin:nDe,triangular_flag_on_post:rDe,white_flag:iDe,black_flag:aDe,rainbow_flag:oDe,closed_lock_with_key:sDe,lock:lDe,unlock:cDe,lock_with_ink_pen:uDe,pen:dDe,fountain_pen:fDe,black_nib:hDe,memo:pDe,pencil2:mDe,crayon:gDe,paintbrush:yDe,mag:_De,mag_right:bDe,heart:kDe,orange_heart:wDe,yellow_heart:vDe,green_heart:xDe,blue_heart:CDe,purple_heart:SDe,black_heart:DDe,broken_heart:EDe,heavy_heart_exclamation:TDe,two_hearts:ADe,revolving_hearts:zDe,heartbeat:FDe,heartpulse:$De,sparkling_heart:MDe,cupid:ODe,gift_heart:NDe,heart_decoration:LDe,peace_symbol:IDe,latin_cross:BDe,star_and_crescent:RDe,om:PDe,wheel_of_dharma:jDe,star_of_david:VDe,six_pointed_star:qDe,menorah:HDe,yin_yang:UDe,orthodox_cross:WDe,place_of_worship:GDe,ophiuchus:KDe,aries:YDe,taurus:ZDe,gemini:XDe,cancer:JDe,leo:QDe,virgo:eEe,libra:tEe,scorpius:nEe,sagittarius:rEe,capricorn:iEe,aquarius:aEe,pisces:oEe,id:sEe,atom_symbol:lEe,u7a7a:cEe,u5272:uEe,radioactive:dEe,biohazard:fEe,mobile_phone_off:hEe,vibration_mode:pEe,u6709:mEe,u7121:gEe,u7533:yEe,u55b6:_Ee,u6708:bEe,eight_pointed_black_star:kEe,vs:wEe,accept:vEe,white_flower:xEe,ideograph_advantage:CEe,secret:SEe,congratulations:DEe,u5408:EEe,u6e80:TEe,u7981:AEe,a:zEe,b:FEe,ab:$Ee,cl:MEe,o2:OEe,sos:NEe,no_entry:LEe,name_badge:IEe,no_entry_sign:BEe,x:REe,o:PEe,stop_sign:jEe,anger:VEe,hotsprings:qEe,no_pedestrians:HEe,do_not_litter:UEe,no_bicycles:WEe,"non-potable_water":{keywords:["drink","faucet","tap","circle"],char:"🚱",fitzpatrick_scale:!1,category:"symbols"},underage:GEe,no_mobile_phones:KEe,exclamation:YEe,grey_exclamation:ZEe,question:XEe,grey_question:JEe,bangbang:QEe,interrobang:eTe,low_brightness:tTe,high_brightness:nTe,trident:rTe,fleur_de_lis:iTe,part_alternation_mark:aTe,warning:oTe,children_crossing:sTe,beginner:lTe,recycle:cTe,u6307:uTe,chart:dTe,sparkle:fTe,eight_spoked_asterisk:hTe,negative_squared_cross_mark:pTe,white_check_mark:mTe,diamond_shape_with_a_dot_inside:gTe,cyclone:yTe,loop:_Te,globe_with_meridians:bTe,m:kTe,atm:wTe,sa:vTe,passport_control:xTe,customs:CTe,baggage_claim:STe,left_luggage:DTe,wheelchair:ETe,no_smoking:TTe,wc:ATe,parking:zTe,potable_water:FTe,mens:$Te,womens:MTe,baby_symbol:OTe,restroom:NTe,put_litter_in_its_place:LTe,cinema:ITe,signal_strength:BTe,koko:RTe,ng:PTe,ok:jTe,up:VTe,cool:qTe,new:{keywords:["blue-square","words","start"],char:"🆕",fitzpatrick_scale:!1,category:"symbols"},free:HTe,zero:UTe,one:WTe,two:GTe,three:KTe,four:YTe,five:ZTe,six:XTe,seven:JTe,eight:QTe,nine:eAe,keycap_ten:tAe,asterisk:nAe,eject_button:rAe,arrow_forward:iAe,pause_button:aAe,next_track_button:oAe,stop_button:sAe,record_button:lAe,play_or_pause_button:cAe,previous_track_button:uAe,fast_forward:dAe,rewind:fAe,twisted_rightwards_arrows:hAe,repeat:pAe,repeat_one:mAe,arrow_backward:gAe,arrow_up_small:yAe,arrow_down_small:_Ae,arrow_double_up:bAe,arrow_double_down:kAe,arrow_right:wAe,arrow_left:vAe,arrow_up:xAe,arrow_down:CAe,arrow_upper_right:SAe,arrow_lower_right:DAe,arrow_lower_left:EAe,arrow_upper_left:TAe,arrow_up_down:AAe,left_right_arrow:zAe,arrows_counterclockwise:FAe,arrow_right_hook:$Ae,leftwards_arrow_with_hook:MAe,arrow_heading_up:OAe,arrow_heading_down:NAe,hash:LAe,information_source:IAe,abc:BAe,abcd:RAe,capital_abcd:PAe,symbols:jAe,musical_note:VAe,notes:qAe,wavy_dash:HAe,curly_loop:UAe,heavy_check_mark:WAe,arrows_clockwise:GAe,heavy_plus_sign:KAe,heavy_minus_sign:YAe,heavy_division_sign:ZAe,heavy_multiplication_x:XAe,infinity:JAe,heavy_dollar_sign:QAe,currency_exchange:eze,copyright:tze,registered:nze,tm:rze,end:ize,back:aze,on:oze,top:sze,soon:lze,ballot_box_with_check:cze,radio_button:uze,white_circle:dze,black_circle:fze,red_circle:hze,large_blue_circle:pze,small_orange_diamond:mze,small_blue_diamond:gze,large_orange_diamond:yze,large_blue_diamond:_ze,small_red_triangle:bze,black_small_square:kze,white_small_square:wze,black_large_square:vze,white_large_square:xze,small_red_triangle_down:Cze,black_medium_square:Sze,white_medium_square:Dze,black_medium_small_square:Eze,white_medium_small_square:Tze,black_square_button:Aze,white_square_button:zze,speaker:Fze,sound:$ze,loud_sound:Mze,mute:Oze,mega:Nze,loudspeaker:Lze,bell:Ize,no_bell:Bze,black_joker:Rze,mahjong:Pze,spades:jze,clubs:Vze,hearts:qze,diamonds:Hze,flower_playing_cards:Uze,thought_balloon:Wze,right_anger_bubble:Gze,speech_balloon:Kze,left_speech_bubble:Yze,clock1:Zze,clock2:Xze,clock3:Jze,clock4:Qze,clock5:eFe,clock6:tFe,clock7:nFe,clock8:rFe,clock9:iFe,clock10:aFe,clock11:oFe,clock12:sFe,clock130:lFe,clock230:cFe,clock330:uFe,clock430:dFe,clock530:fFe,clock630:hFe,clock730:pFe,clock830:mFe,clock930:gFe,clock1030:yFe,clock1130:_Fe,clock1230:bFe,afghanistan:kFe,aland_islands:wFe,albania:vFe,algeria:xFe,american_samoa:CFe,andorra:SFe,angola:DFe,anguilla:EFe,antarctica:TFe,antigua_barbuda:AFe,argentina:zFe,armenia:FFe,aruba:$Fe,australia:MFe,austria:OFe,azerbaijan:NFe,bahamas:LFe,bahrain:IFe,bangladesh:BFe,barbados:RFe,belarus:PFe,belgium:jFe,belize:VFe,benin:qFe,bermuda:HFe,bhutan:UFe,bolivia:WFe,caribbean_netherlands:GFe,bosnia_herzegovina:KFe,botswana:YFe,brazil:ZFe,british_indian_ocean_territory:XFe,british_virgin_islands:JFe,brunei:QFe,bulgaria:e$e,burkina_faso:t$e,burundi:n$e,cape_verde:r$e,cambodia:i$e,cameroon:a$e,canada:o$e,canary_islands:s$e,cayman_islands:l$e,central_african_republic:c$e,chad:u$e,chile:d$e,cn:f$e,christmas_island:h$e,cocos_islands:p$e,colombia:m$e,comoros:g$e,congo_brazzaville:y$e,congo_kinshasa:_$e,cook_islands:b$e,costa_rica:k$e,croatia:w$e,cuba:v$e,curacao:x$e,cyprus:C$e,czech_republic:S$e,denmark:D$e,djibouti:E$e,dominica:T$e,dominican_republic:A$e,ecuador:z$e,egypt:F$e,el_salvador:$$e,equatorial_guinea:M$e,eritrea:O$e,estonia:N$e,ethiopia:L$e,eu:I$e,falkland_islands:B$e,faroe_islands:R$e,fiji:P$e,finland:j$e,fr:V$e,french_guiana:q$e,french_polynesia:H$e,french_southern_territories:U$e,gabon:W$e,gambia:G$e,georgia:K$e,de:Y$e,ghana:Z$e,gibraltar:X$e,greece:J$e,greenland:Q$e,grenada:eMe,guadeloupe:tMe,guam:nMe,guatemala:rMe,guernsey:iMe,guinea:aMe,guinea_bissau:oMe,guyana:sMe,haiti:lMe,honduras:cMe,hong_kong:uMe,hungary:dMe,iceland:fMe,india:hMe,indonesia:pMe,iran:mMe,iraq:gMe,ireland:yMe,isle_of_man:_Me,israel:bMe,it:kMe,cote_divoire:wMe,jamaica:vMe,jp:xMe,jersey:CMe,jordan:SMe,kazakhstan:DMe,kenya:EMe,kiribati:TMe,kosovo:AMe,kuwait:zMe,kyrgyzstan:FMe,laos:$Me,latvia:MMe,lebanon:OMe,lesotho:NMe,liberia:LMe,libya:IMe,liechtenstein:BMe,lithuania:RMe,luxembourg:PMe,macau:jMe,macedonia:VMe,madagascar:qMe,malawi:HMe,malaysia:UMe,maldives:WMe,mali:GMe,malta:KMe,marshall_islands:YMe,martinique:ZMe,mauritania:XMe,mauritius:JMe,mayotte:QMe,mexico:eOe,micronesia:tOe,moldova:nOe,monaco:rOe,mongolia:iOe,montenegro:aOe,montserrat:oOe,morocco:sOe,mozambique:lOe,myanmar:cOe,namibia:uOe,nauru:dOe,nepal:fOe,netherlands:hOe,new_caledonia:pOe,new_zealand:mOe,nicaragua:gOe,niger:yOe,nigeria:_Oe,niue:bOe,norfolk_island:kOe,northern_mariana_islands:wOe,north_korea:vOe,norway:xOe,oman:COe,pakistan:SOe,palau:DOe,palestinian_territories:EOe,panama:TOe,papua_new_guinea:AOe,paraguay:zOe,peru:FOe,philippines:$Oe,pitcairn_islands:MOe,poland:OOe,portugal:NOe,puerto_rico:LOe,qatar:IOe,reunion:BOe,romania:ROe,ru:POe,rwanda:jOe,st_barthelemy:VOe,st_helena:qOe,st_kitts_nevis:HOe,st_lucia:UOe,st_pierre_miquelon:WOe,st_vincent_grenadines:GOe,samoa:KOe,san_marino:YOe,sao_tome_principe:ZOe,saudi_arabia:XOe,senegal:JOe,serbia:QOe,seychelles:eNe,sierra_leone:tNe,singapore:nNe,sint_maarten:rNe,slovakia:iNe,slovenia:aNe,solomon_islands:oNe,somalia:sNe,south_africa:lNe,south_georgia_south_sandwich_islands:cNe,kr:uNe,south_sudan:dNe,es:fNe,sri_lanka:hNe,sudan:pNe,suriname:mNe,swaziland:gNe,sweden:yNe,switzerland:_Ne,syria:bNe,taiwan:kNe,tajikistan:wNe,tanzania:vNe,thailand:xNe,timor_leste:CNe,togo:SNe,tokelau:DNe,tonga:ENe,trinidad_tobago:TNe,tunisia:ANe,tr:zNe,turkmenistan:FNe,turks_caicos_islands:$Ne,tuvalu:MNe,uganda:ONe,ukraine:NNe,united_arab_emirates:LNe,uk:INe,england:BNe,scotland:RNe,wales:PNe,us:jNe,us_virgin_islands:VNe,uruguay:qNe,uzbekistan:HNe,vanuatu:UNe,vatican_city:WNe,venezuela:GNe,vietnam:KNe,wallis_futuna:YNe,western_sahara:ZNe,yemen:XNe,zambia:JNe,zimbabwe:QNe,united_nations:eLe,pirate_flag:tLe},rLe=["grinning","smiley","smile","grin","laughing","sweat_smile","joy","rofl","relaxed","blush","innocent","slightly_smiling_face","upside_down_face","wink","relieved","heart_eyes","smiling_face_with_three_hearts","kissing_heart","kissing","kissing_smiling_eyes","kissing_closed_eyes","yum","stuck_out_tongue","stuck_out_tongue_closed_eyes","stuck_out_tongue_winking_eye","zany","raised_eyebrow","monocle","nerd_face","sunglasses","star_struck","partying","smirk","unamused","disappointed","pensive","worried","confused","slightly_frowning_face","frowning_face","persevere","confounded","tired_face","weary","pleading","cry","sob","triumph","angry","rage","symbols_over_mouth","exploding_head","flushed","hot","cold","scream","fearful","cold_sweat","disappointed_relieved","sweat","hugs","thinking","hand_over_mouth","shushing","lying_face","no_mouth","neutral_face","expressionless","grimacing","roll_eyes","hushed","frowning","anguished","open_mouth","astonished","sleeping","drooling_face","sleepy","dizzy_face","zipper_mouth_face","woozy","nauseated_face","vomiting","sneezing_face","mask","face_with_thermometer","face_with_head_bandage","money_mouth_face","cowboy_hat_face","smiling_imp","imp","japanese_ogre","japanese_goblin","clown_face","poop","ghost","skull","skull_and_crossbones","alien","space_invader","robot","jack_o_lantern","smiley_cat","smile_cat","joy_cat","heart_eyes_cat","smirk_cat","kissing_cat","scream_cat","crying_cat_face","pouting_cat","palms_up","open_hands","raised_hands","clap","handshake","+1","-1","facepunch","fist","fist_left","fist_right","crossed_fingers","v","love_you","metal","ok_hand","point_left","point_right","point_up","point_down","point_up_2","raised_hand","raised_back_of_hand","raised_hand_with_fingers_splayed","vulcan_salute","wave","call_me_hand","muscle","fu","writing_hand","pray","foot","leg","ring","lipstick","kiss","lips","tooth","tongue","ear","nose","footprints","eye","eyes","brain","speaking_head","bust_in_silhouette","busts_in_silhouette","baby","girl","child","boy","woman","adult","man","blonde_woman","blonde_man","bearded_person","older_woman","older_adult","older_man","man_with_gua_pi_mao","woman_with_headscarf","woman_with_turban","man_with_turban","policewoman","policeman","construction_worker_woman","construction_worker_man","guardswoman","guardsman","female_detective","male_detective","woman_health_worker","man_health_worker","woman_farmer","man_farmer","woman_cook","man_cook","woman_student","man_student","woman_singer","man_singer","woman_teacher","man_teacher","woman_factory_worker","man_factory_worker","woman_technologist","man_technologist","woman_office_worker","man_office_worker","woman_mechanic","man_mechanic","woman_scientist","man_scientist","woman_artist","man_artist","woman_firefighter","man_firefighter","woman_pilot","man_pilot","woman_astronaut","man_astronaut","woman_judge","man_judge","bride_with_veil","man_in_tuxedo","princess","prince","woman_superhero","man_superhero","woman_supervillain","man_supervillain","mrs_claus","santa","sorceress","wizard","woman_elf","man_elf","woman_vampire","man_vampire","woman_zombie","man_zombie","woman_genie","man_genie","mermaid","merman","woman_fairy","man_fairy","angel","pregnant_woman","breastfeeding","bowing_woman","bowing_man","tipping_hand_woman","tipping_hand_man","no_good_woman","no_good_man","ok_woman","ok_man","raising_hand_woman","raising_hand_man","woman_facepalming","man_facepalming","woman_shrugging","man_shrugging","pouting_woman","pouting_man","frowning_woman","frowning_man","haircut_woman","haircut_man","massage_woman","massage_man","woman_in_steamy_room","man_in_steamy_room","nail_care","selfie","dancer","man_dancing","dancing_women","dancing_men","business_suit_levitating","walking_woman","walking_man","running_woman","running_man","couple","two_women_holding_hands","two_men_holding_hands","couple_with_heart_woman_man","couple_with_heart_woman_woman","couple_with_heart_man_man","couplekiss_man_woman","couplekiss_woman_woman","couplekiss_man_man","family_man_woman_boy","family_man_woman_girl","family_man_woman_girl_boy","family_man_woman_boy_boy","family_man_woman_girl_girl","family_woman_woman_boy","family_woman_woman_girl","family_woman_woman_girl_boy","family_woman_woman_boy_boy","family_woman_woman_girl_girl","family_man_man_boy","family_man_man_girl","family_man_man_girl_boy","family_man_man_boy_boy","family_man_man_girl_girl","family_woman_boy","family_woman_girl","family_woman_girl_boy","family_woman_boy_boy","family_woman_girl_girl","family_man_boy","family_man_girl","family_man_girl_boy","family_man_boy_boy","family_man_girl_girl","yarn","thread","coat","labcoat","womans_clothes","tshirt","jeans","necktie","dress","bikini","kimono","flat_shoe","high_heel","sandal","boot","mans_shoe","athletic_shoe","hiking_boot","socks","gloves","scarf","tophat","billed_hat","womans_hat","mortar_board","rescue_worker_helmet","crown","pouch","purse","handbag","briefcase","school_satchel","luggage","eyeglasses","dark_sunglasses","goggles","closed_umbrella","dog","cat","mouse","hamster","rabbit","fox_face","bear","panda_face","koala","tiger","lion","cow","pig","pig_nose","frog","monkey_face","see_no_evil","hear_no_evil","speak_no_evil","monkey","chicken","penguin","bird","baby_chick","hatching_chick","hatched_chick","duck","eagle","owl","bat","wolf","boar","horse","unicorn","honeybee","bug","butterfly","snail","shell","beetle","ant","mosquito","grasshopper","spider","spider_web","scorpion","turtle","snake","lizard","t-rex","sauropod","octopus","squid","shrimp","lobster","crab","blowfish","tropical_fish","fish","dolphin","whale","whale2","shark","crocodile","tiger2","leopard","zebra","gorilla","elephant","hippopotamus","rhinoceros","dromedary_camel","giraffe","kangaroo","camel","water_buffalo","ox","cow2","racehorse","pig2","ram","sheep","llama","goat","deer","dog2","poodle","cat2","rooster","turkey","peacock","parrot","swan","dove","rabbit2","raccoon","badger","rat","mouse2","chipmunk","hedgehog","paw_prints","dragon","dragon_face","cactus","christmas_tree","evergreen_tree","deciduous_tree","palm_tree","seedling","herb","shamrock","four_leaf_clover","bamboo","tanabata_tree","leaves","fallen_leaf","maple_leaf","ear_of_rice","hibiscus","sunflower","rose","wilted_flower","tulip","blossom","cherry_blossom","bouquet","mushroom","earth_americas","earth_africa","earth_asia","full_moon","waning_gibbous_moon","last_quarter_moon","waning_crescent_moon","new_moon","waxing_crescent_moon","first_quarter_moon","waxing_gibbous_moon","new_moon_with_face","full_moon_with_face","first_quarter_moon_with_face","last_quarter_moon_with_face","sun_with_face","crescent_moon","star","star2","dizzy","sparkles","comet","sunny","sun_behind_small_cloud","partly_sunny","sun_behind_large_cloud","sun_behind_rain_cloud","cloud","cloud_with_rain","cloud_with_lightning_and_rain","cloud_with_lightning","zap","fire","boom","snowflake","cloud_with_snow","snowman","snowman_with_snow","wind_face","dash","tornado","fog","open_umbrella","umbrella","droplet","sweat_drops","ocean","green_apple","apple","pear","tangerine","lemon","banana","watermelon","grapes","strawberry","melon","cherries","peach","mango","pineapple","coconut","kiwi_fruit","tomato","eggplant","avocado","broccoli","leafy_greens","cucumber","hot_pepper","corn","carrot","potato","sweet_potato","croissant","bagel","bread","baguette_bread","pretzel","cheese","egg","fried_egg","pancakes","bacon","steak","poultry_leg","meat_on_bone","bone","hotdog","hamburger","fries","pizza","sandwich","stuffed_flatbread","taco","burrito","green_salad","shallow_pan_of_food","canned_food","spaghetti","ramen","stew","curry","sushi","bento","fried_shrimp","rice_ball","rice","rice_cracker","fish_cake","fortune_cookie","moon_cake","oden","dango","shaved_ice","ice_cream","icecream","pie","cupcake","cake","birthday","custard","lollipop","candy","chocolate_bar","popcorn","doughnut","dumpling","cookie","chestnut","peanuts","honey_pot","milk_glass","baby_bottle","coffee","tea","cup_with_straw","sake","beer","beers","clinking_glasses","wine_glass","tumbler_glass","cocktail","tropical_drink","champagne","spoon","fork_and_knife","plate_with_cutlery","bowl_with_spoon","takeout_box","chopsticks","salt","soccer","basketball","football","baseball","softball","tennis","volleyball","rugby_football","flying_disc","8ball","golf","golfing_woman","golfing_man","ping_pong","badminton","goal_net","ice_hockey","field_hockey","lacrosse","cricket","ski","skier","snowboarder","person_fencing","women_wrestling","men_wrestling","woman_cartwheeling","man_cartwheeling","woman_playing_handball","man_playing_handball","ice_skate","curling_stone","skateboard","sled","bow_and_arrow","fishing_pole_and_fish","boxing_glove","martial_arts_uniform","rowing_woman","rowing_man","climbing_woman","climbing_man","swimming_woman","swimming_man","woman_playing_water_polo","man_playing_water_polo","woman_in_lotus_position","man_in_lotus_position","surfing_woman","surfing_man","basketball_woman","basketball_man","weight_lifting_woman","weight_lifting_man","biking_woman","biking_man","mountain_biking_woman","mountain_biking_man","horse_racing","trophy","running_shirt_with_sash","medal_sports","medal_military","1st_place_medal","2nd_place_medal","3rd_place_medal","reminder_ribbon","rosette","ticket","tickets","performing_arts","art","circus_tent","woman_juggling","man_juggling","microphone","headphones","musical_score","musical_keyboard","drum","saxophone","trumpet","guitar","violin","clapper","video_game","dart","game_die","chess_pawn","slot_machine","jigsaw","bowling","red_car","taxi","blue_car","bus","trolleybus","racing_car","police_car","ambulance","fire_engine","minibus","truck","articulated_lorry","tractor","kick_scooter","motorcycle","bike","motor_scooter","rotating_light","oncoming_police_car","oncoming_bus","oncoming_automobile","oncoming_taxi","aerial_tramway","mountain_cableway","suspension_railway","railway_car","train","monorail","bullettrain_side","bullettrain_front","light_rail","mountain_railway","steam_locomotive","train2","metro","tram","station","flying_saucer","helicopter","small_airplane","airplane","flight_departure","flight_arrival","sailboat","motor_boat","speedboat","ferry","passenger_ship","rocket","artificial_satellite","seat","canoe","anchor","construction","fuelpump","busstop","vertical_traffic_light","traffic_light","ship","ferris_wheel","roller_coaster","carousel_horse","building_construction","foggy","tokyo_tower","factory","fountain","rice_scene","mountain","mountain_snow","mount_fuji","volcano","japan","camping","tent","national_park","motorway","railway_track","sunrise","sunrise_over_mountains","desert","beach_umbrella","desert_island","city_sunrise","city_sunset","cityscape","night_with_stars","bridge_at_night","milky_way","stars","sparkler","fireworks","rainbow","houses","european_castle","japanese_castle","stadium","statue_of_liberty","house","house_with_garden","derelict_house","office","department_store","post_office","european_post_office","hospital","bank","hotel","convenience_store","school","love_hotel","wedding","classical_building","church","mosque","synagogue","kaaba","shinto_shrine","watch","iphone","calling","computer","keyboard","desktop_computer","printer","computer_mouse","trackball","joystick","clamp","minidisc","floppy_disk","cd","dvd","vhs","camera","camera_flash","video_camera","movie_camera","film_projector","film_strip","telephone_receiver","phone","pager","fax","tv","radio","studio_microphone","level_slider","control_knobs","compass","stopwatch","timer_clock","alarm_clock","mantelpiece_clock","hourglass_flowing_sand","hourglass","satellite","battery","electric_plug","bulb","flashlight","candle","fire_extinguisher","wastebasket","oil_drum","money_with_wings","dollar","yen","euro","pound","moneybag","credit_card","gem","balance_scale","toolbox","wrench","hammer","hammer_and_pick","hammer_and_wrench","pick","nut_and_bolt","gear","brick","chains","magnet","gun","bomb","firecracker","hocho","dagger","crossed_swords","shield","smoking","coffin","funeral_urn","amphora","crystal_ball","prayer_beads","nazar_amulet","barber","alembic","telescope","microscope","hole","pill","syringe","dna","microbe","petri_dish","test_tube","thermometer","broom","basket","toilet_paper","label","bookmark","toilet","shower","bathtub","bath","soap","sponge","lotion_bottle","key","old_key","couch_and_lamp","sleeping_bed","bed","door","bellhop_bell","teddy_bear","framed_picture","world_map","parasol_on_ground","moyai","shopping","shopping_cart","balloon","flags","ribbon","gift","confetti_ball","tada","dolls","wind_chime","crossed_flags","izakaya_lantern","red_envelope","email","envelope_with_arrow","incoming_envelope","e-mail","love_letter","postbox","mailbox_closed","mailbox","mailbox_with_mail","mailbox_with_no_mail","package","postal_horn","inbox_tray","outbox_tray","scroll","page_with_curl","bookmark_tabs","receipt","bar_chart","chart_with_upwards_trend","chart_with_downwards_trend","page_facing_up","date","calendar","spiral_calendar","card_index","card_file_box","ballot_box","file_cabinet","clipboard","spiral_notepad","file_folder","open_file_folder","card_index_dividers","newspaper_roll","newspaper","notebook","closed_book","green_book","blue_book","orange_book","notebook_with_decorative_cover","ledger","books","open_book","safety_pin","link","paperclip","paperclips","scissors","triangular_ruler","straight_ruler","abacus","pushpin","round_pushpin","closed_lock_with_key","lock","unlock","lock_with_ink_pen","pen","fountain_pen","black_nib","memo","pencil2","crayon","paintbrush","mag","mag_right","heart","orange_heart","yellow_heart","green_heart","blue_heart","purple_heart","black_heart","broken_heart","heavy_heart_exclamation","two_hearts","revolving_hearts","heartbeat","heartpulse","sparkling_heart","cupid","gift_heart","heart_decoration","peace_symbol","latin_cross","star_and_crescent","om","wheel_of_dharma","star_of_david","six_pointed_star","menorah","yin_yang","orthodox_cross","place_of_worship","ophiuchus","aries","taurus","gemini","cancer","leo","virgo","libra","scorpius","sagittarius","capricorn","aquarius","pisces","id","atom_symbol","u7a7a","u5272","radioactive","biohazard","mobile_phone_off","vibration_mode","u6709","u7121","u7533","u55b6","u6708","eight_pointed_black_star","vs","accept","white_flower","ideograph_advantage","secret","congratulations","u5408","u6e80","u7981","a","b","ab","cl","o2","sos","no_entry","name_badge","no_entry_sign","x","o","stop_sign","anger","hotsprings","no_pedestrians","do_not_litter","no_bicycles","non-potable_water","underage","no_mobile_phones","exclamation","grey_exclamation","question","grey_question","bangbang","interrobang","100","low_brightness","high_brightness","trident","fleur_de_lis","part_alternation_mark","warning","children_crossing","beginner","recycle","u6307","chart","sparkle","eight_spoked_asterisk","negative_squared_cross_mark","white_check_mark","diamond_shape_with_a_dot_inside","cyclone","loop","globe_with_meridians","m","atm","zzz","sa","passport_control","customs","baggage_claim","left_luggage","wheelchair","no_smoking","wc","parking","potable_water","mens","womens","baby_symbol","restroom","put_litter_in_its_place","cinema","signal_strength","koko","ng","ok","up","cool","new","free","zero","one","two","three","four","five","six","seven","eight","nine","keycap_ten","asterisk","1234","eject_button","arrow_forward","pause_button","next_track_button","stop_button","record_button","play_or_pause_button","previous_track_button","fast_forward","rewind","twisted_rightwards_arrows","repeat","repeat_one","arrow_backward","arrow_up_small","arrow_down_small","arrow_double_up","arrow_double_down","arrow_right","arrow_left","arrow_up","arrow_down","arrow_upper_right","arrow_lower_right","arrow_lower_left","arrow_upper_left","arrow_up_down","left_right_arrow","arrows_counterclockwise","arrow_right_hook","leftwards_arrow_with_hook","arrow_heading_up","arrow_heading_down","hash","information_source","abc","abcd","capital_abcd","symbols","musical_note","notes","wavy_dash","curly_loop","heavy_check_mark","arrows_clockwise","heavy_plus_sign","heavy_minus_sign","heavy_division_sign","heavy_multiplication_x","infinity","heavy_dollar_sign","currency_exchange","copyright","registered","tm","end","back","on","top","soon","ballot_box_with_check","radio_button","white_circle","black_circle","red_circle","large_blue_circle","small_orange_diamond","small_blue_diamond","large_orange_diamond","large_blue_diamond","small_red_triangle","black_small_square","white_small_square","black_large_square","white_large_square","small_red_triangle_down","black_medium_square","white_medium_square","black_medium_small_square","white_medium_small_square","black_square_button","white_square_button","speaker","sound","loud_sound","mute","mega","loudspeaker","bell","no_bell","black_joker","mahjong","spades","clubs","hearts","diamonds","flower_playing_cards","thought_balloon","right_anger_bubble","speech_balloon","left_speech_bubble","clock1","clock2","clock3","clock4","clock5","clock6","clock7","clock8","clock9","clock10","clock11","clock12","clock130","clock230","clock330","clock430","clock530","clock630","clock730","clock830","clock930","clock1030","clock1130","clock1230","white_flag","black_flag","pirate_flag","checkered_flag","triangular_flag_on_post","rainbow_flag","united_nations","afghanistan","aland_islands","albania","algeria","american_samoa","andorra","angola","anguilla","antarctica","antigua_barbuda","argentina","armenia","aruba","australia","austria","azerbaijan","bahamas","bahrain","bangladesh","barbados","belarus","belgium","belize","benin","bermuda","bhutan","bolivia","caribbean_netherlands","bosnia_herzegovina","botswana","brazil","british_indian_ocean_territory","british_virgin_islands","brunei","bulgaria","burkina_faso","burundi","cape_verde","cambodia","cameroon","canada","canary_islands","cayman_islands","central_african_republic","chad","chile","cn","christmas_island","cocos_islands","colombia","comoros","congo_brazzaville","congo_kinshasa","cook_islands","costa_rica","croatia","cuba","curacao","cyprus","czech_republic","denmark","djibouti","dominica","dominican_republic","ecuador","egypt","el_salvador","equatorial_guinea","eritrea","estonia","ethiopia","eu","falkland_islands","faroe_islands","fiji","finland","fr","french_guiana","french_polynesia","french_southern_territories","gabon","gambia","georgia","de","ghana","gibraltar","greece","greenland","grenada","guadeloupe","guam","guatemala","guernsey","guinea","guinea_bissau","guyana","haiti","honduras","hong_kong","hungary","iceland","india","indonesia","iran","iraq","ireland","isle_of_man","israel","it","cote_divoire","jamaica","jp","jersey","jordan","kazakhstan","kenya","kiribati","kosovo","kuwait","kyrgyzstan","laos","latvia","lebanon","lesotho","liberia","libya","liechtenstein","lithuania","luxembourg","macau","macedonia","madagascar","malawi","malaysia","maldives","mali","malta","marshall_islands","martinique","mauritania","mauritius","mayotte","mexico","micronesia","moldova","monaco","mongolia","montenegro","montserrat","morocco","mozambique","myanmar","namibia","nauru","nepal","netherlands","new_caledonia","new_zealand","nicaragua","niger","nigeria","niue","norfolk_island","northern_mariana_islands","north_korea","norway","oman","pakistan","palau","palestinian_territories","panama","papua_new_guinea","paraguay","peru","philippines","pitcairn_islands","poland","portugal","puerto_rico","qatar","reunion","romania","ru","rwanda","st_barthelemy","st_helena","st_kitts_nevis","st_lucia","st_pierre_miquelon","st_vincent_grenadines","samoa","san_marino","sao_tome_principe","saudi_arabia","senegal","serbia","seychelles","sierra_leone","singapore","sint_maarten","slovakia","slovenia","solomon_islands","somalia","south_africa","south_georgia_south_sandwich_islands","kr","south_sudan","es","sri_lanka","sudan","suriname","swaziland","sweden","switzerland","syria","taiwan","tajikistan","tanzania","thailand","timor_leste","togo","tokelau","tonga","trinidad_tobago","tunisia","tr","turkmenistan","turks_caicos_islands","tuvalu","uganda","ukraine","united_arab_emirates","uk","england","scotland","wales","us","us_virgin_islands","uruguay","uzbekistan","vanuatu","vatican_city","venezuela","vietnam","wallis_futuna","western_sahara","yemen","zambia","zimbabwe"];var iLe={lib:nLe,ordered:rLe,fitzpatrick_scale_modifiers:["🏻","🏼","🏽","🏾","🏿"]};const aLe=Qo(iLe);var oLe=()=>{const e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i="\\u1ab0-\\u1aff",a="\\u1dc0-\\u1dff",o=t+n+r+i+a,s="\\ufe0e\\ufe0f",l="\\uD83D\\uDC69\\uD83C\\uDFFB\\u200D\\uD83C\\uDF93",c=`[${e}]`,u=`[${o}]`,f="\\ud83c[\\udffb-\\udfff]",h=`(?:${u}|${f})`,m=`[^${e}]`,g="(?:\\uD83C[\\uDDE6-\\uDDFF]){2}",b="[\\ud800-\\udbff][\\udc00-\\udfff]",C="\\u200d",w="(?:\\ud83c\\udff4\\udb40\\udc67\\udb40\\udc62\\udb40(?:\\udc65|\\udc73|\\udc77)\\udb40(?:\\udc6e|\\udc63|\\udc6c)\\udb40(?:\\udc67|\\udc74|\\udc73)\\udb40\\udc7f)",k=`[${l}]`,S=`${h}?`,E=`[${s}]?`,A=`(?:${C}(?:${[m,g,b].join("|")})${E+S})*`,_=E+S+A,$=`(?:${[`${m}${u}?`,u,g,b,c,k].join("|")})`;return new RegExp(`${w}|${f}(?=${f})|${$+_}`,"g")};const sLe=Qo(oLe);sLe();var lLe=String.fromCharCode(65039),cLe=new RegExp(lLe,"g");function uLe(e){return e.replace(cLe,"")}function dLe(e){return/:.+:/.test(e)?e.slice(1,-1):e}var Oq=Object.entries(aLe.lib).map(([e,{char:t}])=>[e,t]),fLe=new Map(Oq);new Map(Oq.map(([e,t])=>[uLe(t),e]));var hLe=e=>(uge.assert.string(e),fLe.get(dLe(e))),pLe=typeof Bi=="object"&&Bi&&Bi.Object===Object&&Bi,Nq=pLe,mLe=Nq,gLe=typeof self=="object"&&self&&self.Object===Object&&self,yLe=mLe||gLe||Function("return this")(),Tu=yLe,_Le=Tu,bLe=_Le.Symbol,wS=bLe;function kLe(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var wLe=kLe,vM=wS,Lq=Object.prototype,vLe=Lq.hasOwnProperty,xLe=Lq.toString,A0=vM?vM.toStringTag:void 0;function CLe(e){var t=vLe.call(e,A0),n=e[A0];try{e[A0]=void 0;var r=!0}catch{}var i=xLe.call(e);return r&&(t?e[A0]=n:delete e[A0]),i}var SLe=CLe,DLe=Object.prototype,ELe=DLe.toString;function TLe(e){return ELe.call(e)}var ALe=TLe,xM=wS,zLe=SLe,FLe=ALe,$Le="[object Null]",MLe="[object Undefined]",CM=xM?xM.toStringTag:void 0;function OLe(e){return e==null?e===void 0?MLe:$Le:CM&&CM in Object(e)?zLe(e):FLe(e)}var Jg=OLe;function NLe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Iq=NLe,LLe=Jg,ILe=Iq,BLe="[object AsyncFunction]",RLe="[object Function]",PLe="[object GeneratorFunction]",jLe="[object Proxy]";function VLe(e){if(!ILe(e))return!1;var t=LLe(e);return t==RLe||t==PLe||t==BLe||t==jLe}var Bq=VLe,qLe=Tu,HLe=qLe["__core-js_shared__"],ULe=HLe,p6=ULe,SM=function(){var e=/[^.]+$/.exec(p6&&p6.keys&&p6.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function WLe(e){return!!SM&&SM in e}var GLe=WLe,KLe=Function.prototype,YLe=KLe.toString;function ZLe(e){if(e!=null){try{return YLe.call(e)}catch{}try{return e+""}catch{}}return""}var Rq=ZLe,XLe=Bq,JLe=GLe,QLe=Iq,eIe=Rq,tIe=/[\\^$.*+?()[\]{}|]/g,nIe=/^\[object .+?Constructor\]$/,rIe=Function.prototype,iIe=Object.prototype,aIe=rIe.toString,oIe=iIe.hasOwnProperty,sIe=RegExp("^"+aIe.call(oIe).replace(tIe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function lIe(e){if(!QLe(e)||JLe(e))return!1;var t=XLe(e)?sIe:nIe;return t.test(eIe(e))}var cIe=lIe;function uIe(e,t){return e==null?void 0:e[t]}var dIe=uIe,fIe=cIe,hIe=dIe;function pIe(e,t){var n=hIe(e,t);return fIe(n)?n:void 0}var Qg=pIe,mIe=Qg,gIe=Tu,yIe=mIe(gIe,"DataView"),_Ie=yIe,bIe=Qg,kIe=Tu,wIe=bIe(kIe,"Map"),vIe=wIe,xIe=Qg,CIe=Tu,SIe=xIe(CIe,"Promise"),DIe=SIe,EIe=Qg,TIe=Tu,AIe=EIe(TIe,"Set"),zIe=AIe,FIe=Qg,$Ie=Tu,MIe=FIe($Ie,"WeakMap"),OIe=MIe,x8=_Ie,C8=vIe,S8=DIe,D8=zIe,E8=OIe,Pq=Jg,Ip=Rq,DM="[object Map]",NIe="[object Object]",EM="[object Promise]",TM="[object Set]",AM="[object WeakMap]",zM="[object DataView]",LIe=Ip(x8),IIe=Ip(C8),BIe=Ip(S8),RIe=Ip(D8),PIe=Ip(E8),ad=Pq;(x8&&ad(new x8(new ArrayBuffer(1)))!=zM||C8&&ad(new C8)!=DM||S8&&ad(S8.resolve())!=EM||D8&&ad(new D8)!=TM||E8&&ad(new E8)!=AM)&&(ad=function(e){var t=Pq(e),n=t==NIe?e.constructor:void 0,r=n?Ip(n):"";if(r)switch(r){case LIe:return zM;case IIe:return DM;case BIe:return EM;case RIe:return TM;case PIe:return AM}return t});var jIe=ad,VIe=9007199254740991;function qIe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=VIe}var jq=qIe,HIe=Bq,UIe=jq;function WIe(e){return e!=null&&UIe(e.length)&&!HIe(e)}var Vq=WIe,GIe=Array.isArray,qq=GIe;function KIe(e){return e!=null&&typeof e=="object"}var Vv=KIe,YIe=Jg,ZIe=qq,XIe=Vv,JIe="[object String]";function QIe(e){return typeof e=="string"||!ZIe(e)&&XIe(e)&&YIe(e)==JIe}var eBe=QIe;function tBe(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}var nBe=tBe;function rBe(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var iBe=rBe;function aBe(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var oBe=aBe;function sBe(e){return e.split("")}var lBe=sBe,cBe="\\ud800-\\udfff",uBe="\\u0300-\\u036f",dBe="\\ufe20-\\ufe2f",fBe="\\u20d0-\\u20ff",hBe=uBe+dBe+fBe,pBe="\\ufe0e\\ufe0f",mBe="\\u200d",gBe=RegExp("["+mBe+cBe+hBe+pBe+"]");function yBe(e){return gBe.test(e)}var _Be=yBe,Hq="\\ud800-\\udfff",bBe="\\u0300-\\u036f",kBe="\\ufe20-\\ufe2f",wBe="\\u20d0-\\u20ff",vBe=bBe+kBe+wBe,xBe="\\ufe0e\\ufe0f",CBe="["+Hq+"]",T8="["+vBe+"]",A8="\\ud83c[\\udffb-\\udfff]",SBe="(?:"+T8+"|"+A8+")",Uq="[^"+Hq+"]",Wq="(?:\\ud83c[\\udde6-\\uddff]){2}",Gq="[\\ud800-\\udbff][\\udc00-\\udfff]",DBe="\\u200d",Kq=SBe+"?",Yq="["+xBe+"]?",EBe="(?:"+DBe+"(?:"+[Uq,Wq,Gq].join("|")+")"+Yq+Kq+")*",TBe=Yq+Kq+EBe,ABe="(?:"+[Uq+T8+"?",T8,Wq,Gq,CBe].join("|")+")",zBe=RegExp(A8+"(?="+A8+")|"+ABe+TBe,"g");function FBe(e){return e.match(zBe)||[]}var $Be=FBe,MBe=lBe,OBe=_Be,NBe=$Be;function LBe(e){return OBe(e)?NBe(e):MBe(e)}var IBe=LBe;function BBe(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var RBe=BBe,PBe=RBe;function jBe(e,t){return PBe(t,function(n){return e[n]})}var VBe=jBe;function qBe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var HBe=qBe,UBe=Jg,WBe=Vv,GBe="[object Arguments]";function KBe(e){return WBe(e)&&UBe(e)==GBe}var YBe=KBe,FM=YBe,ZBe=Vv,Zq=Object.prototype,XBe=Zq.hasOwnProperty,JBe=Zq.propertyIsEnumerable,QBe=FM(function(){return arguments}())?FM:function(e){return ZBe(e)&&XBe.call(e,"callee")&&!JBe.call(e,"callee")},eRe=QBe,Vk={exports:{}};function tRe(){return!1}var nRe=tRe;Vk.exports;(function(e,t){var n=Tu,r=nRe,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?n.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||r;e.exports=c})(Vk,Vk.exports);var rRe=Vk.exports,iRe=9007199254740991,aRe=/^(?:0|[1-9]\d*)$/;function oRe(e,t){var n=typeof e;return t=t??iRe,!!t&&(n=="number"||n!="symbol"&&aRe.test(e))&&e>-1&&e%1==0&&e<t}var sRe=oRe,lRe=Jg,cRe=jq,uRe=Vv,dRe="[object Arguments]",fRe="[object Array]",hRe="[object Boolean]",pRe="[object Date]",mRe="[object Error]",gRe="[object Function]",yRe="[object Map]",_Re="[object Number]",bRe="[object Object]",kRe="[object RegExp]",wRe="[object Set]",vRe="[object String]",xRe="[object WeakMap]",CRe="[object ArrayBuffer]",SRe="[object DataView]",DRe="[object Float32Array]",ERe="[object Float64Array]",TRe="[object Int8Array]",ARe="[object Int16Array]",zRe="[object Int32Array]",FRe="[object Uint8Array]",$Re="[object Uint8ClampedArray]",MRe="[object Uint16Array]",ORe="[object Uint32Array]",On={};On[DRe]=On[ERe]=On[TRe]=On[ARe]=On[zRe]=On[FRe]=On[$Re]=On[MRe]=On[ORe]=!0;On[dRe]=On[fRe]=On[CRe]=On[hRe]=On[SRe]=On[pRe]=On[mRe]=On[gRe]=On[yRe]=On[_Re]=On[bRe]=On[kRe]=On[wRe]=On[vRe]=On[xRe]=!1;function NRe(e){return uRe(e)&&cRe(e.length)&&!!On[lRe(e)]}var LRe=NRe;function IRe(e){return function(t){return e(t)}}var BRe=IRe,qk={exports:{}};qk.exports;(function(e,t){var n=Nq,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(qk,qk.exports);var RRe=qk.exports,PRe=LRe,jRe=BRe,$M=RRe,MM=$M&&$M.isTypedArray,VRe=MM?jRe(MM):PRe,qRe=VRe,HRe=HBe,URe=eRe,WRe=qq,GRe=rRe,KRe=sRe,YRe=qRe,ZRe=Object.prototype,XRe=ZRe.hasOwnProperty;function JRe(e,t){var n=WRe(e),r=!n&&URe(e),i=!n&&!r&&GRe(e),a=!n&&!r&&!i&&YRe(e),o=n||r||i||a,s=o?HRe(e.length,String):[],l=s.length;for(var c in e)(t||XRe.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||KRe(c,l)))&&s.push(c);return s}var QRe=JRe,ePe=Object.prototype;function tPe(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||ePe;return e===n}var nPe=tPe;function rPe(e,t){return function(n){return e(t(n))}}var iPe=rPe,aPe=iPe,oPe=aPe(Object.keys,Object),sPe=oPe,lPe=nPe,cPe=sPe,uPe=Object.prototype,dPe=uPe.hasOwnProperty;function fPe(e){if(!lPe(e))return cPe(e);var t=[];for(var n in Object(e))dPe.call(e,n)&&n!="constructor"&&t.push(n);return t}var hPe=fPe,pPe=QRe,mPe=hPe,gPe=Vq;function yPe(e){return gPe(e)?pPe(e):mPe(e)}var _Pe=yPe,bPe=VBe,kPe=_Pe;function wPe(e){return e==null?[]:bPe(e,kPe(e))}var vPe=wPe,OM=wS,xPe=wLe,CPe=jIe,SPe=Vq,DPe=eBe,EPe=nBe,TPe=iBe,APe=oBe,zPe=IBe,FPe=vPe,$Pe="[object Map]",MPe="[object Set]",m6=OM?OM.iterator:void 0;function OPe(e){if(!e)return[];if(SPe(e))return DPe(e)?zPe(e):xPe(e);if(m6&&e[m6])return EPe(e[m6]());var t=CPe(e),n=t==$Pe?TPe:t==MPe?APe:FPe;return n(e)}var NPe=OPe;const LPe="☔",IPe="☕",BPe="♈",RPe="♉",PPe="♐",jPe="♑",VPe="♒",qPe="♓",HPe="⚓",UPe="✅",WPe="✨",GPe="❓",KPe="❔",YPe="❕",ZPe="❗",XPe="❗",JPe="➕",QPe="➖",eje="➗",tje="#️⃣",nje="*️⃣",rje="0️⃣",ije="1️⃣",aje="2️⃣",oje="3️⃣",sje="4️⃣",lje="5️⃣",cje="6️⃣",uje="7️⃣",dje="8️⃣",fje="9️⃣",hje="©️",pje="®️",mje="🀄",gje="🃏",yje="🅰️",_je="🅱️",bje="🅾️",kje="🅿️",wje="🆎",vje="🆑",xje="🆒",Cje="🆓",Sje="🆔",Dje="🆖",Eje="🆗",Tje="🆘",Aje="🆙",zje="🆚",Fje="🇨🇳",$je="🇩🇪",Mje="🇪🇸",Oje="🇫🇷",Nje="🇬🇧",Lje="🇬🇧",Ije="🇮🇹",Bje="🇯🇵",Rje="🇰🇷",Pje="🇷🇺",jje="🇺🇸",Vje="🈁",qje="🈂️",Hje="🈚",Uje="🈯",Wje="🈲",Gje="🈳",Kje="🈴",Yje="🈵",Zje="🈶",Xje="🈷️",Jje="🈸",Qje="🈹",eVe="🈺",tVe="🉐",nVe="🉑",rVe="🌀",iVe="🌁",aVe="🌂",oVe="🌃",sVe="🌄",lVe="🌅",cVe="🌆",uVe="🌇",dVe="🌈",fVe="🌉",hVe="🌊",pVe="🌋",mVe="🌌",gVe="🌍",yVe="🌎",_Ve="🌏",bVe="🌐",kVe="🌑",wVe="🌒",vVe="🌓",xVe="🌔",CVe="🌔",SVe="🌕",DVe="🌖",EVe="🌗",TVe="🌘",AVe="🌙",zVe="🌚",FVe="🌛",$Ve="🌜",MVe="🌝",OVe="🌞",NVe="🌟",LVe="🌠",IVe="🌡️",BVe="🌤️",RVe="🌤️",PVe="🌥️",jVe="🌥️",VVe="🌦️",qVe="🌦️",HVe="🌧️",UVe="🌨️",WVe="🌩️",GVe="🌩️",KVe="🌪️",YVe="🌪️",ZVe="🌫️",XVe="🌬️",JVe="🌭",QVe="🌮",eqe="🌯",tqe="🌰",nqe="🌱",rqe="🌲",iqe="🌳",aqe="🌴",oqe="🌵",sqe="🌶️",lqe="🌷",cqe="🌸",uqe="🌹",dqe="🌺",fqe="🌻",hqe="🌼",pqe="🌽",mqe="🌾",gqe="🌿",yqe="🍀",_qe="🍁",bqe="🍂",kqe="🍃",wqe="🍄",vqe="🍅",xqe="🍆",Cqe="🍇",Sqe="🍈",Dqe="🍉",Eqe="🍊",Tqe="🍋",Aqe="🍌",zqe="🍍",Fqe="🍎",$qe="🍏",Mqe="🍐",Oqe="🍑",Nqe="🍒",Lqe="🍓",Iqe="🍔",Bqe="🍕",Rqe="🍖",Pqe="🍗",jqe="🍘",Vqe="🍙",qqe="🍚",Hqe="🍛",Uqe="🍜",Wqe="🍝",Gqe="🍞",Kqe="🍟",Yqe="🍠",Zqe="🍡",Xqe="🍢",Jqe="🍣",Qqe="🍤",eHe="🍥",tHe="🍦",nHe="🍧",rHe="🍨",iHe="🍩",aHe="🍪",oHe="🍫",sHe="🍬",lHe="🍭",cHe="🍮",uHe="🍯",dHe="🍰",fHe="🍱",hHe="🍲",pHe="🍳",mHe="🍳",gHe="🍴",yHe="🍵",_He="🍶",bHe="🍷",kHe="🍸",wHe="🍹",vHe="🍺",xHe="🍻",CHe="🍼",SHe="🍽️",DHe="🍾",EHe="🍿",THe="🎀",AHe="🎁",zHe="🎂",FHe="🎃",$He="🎄",MHe="🎅",OHe="🎆",NHe="🎇",LHe="🎈",IHe="🎉",BHe="🎊",RHe="🎋",PHe="🎌",jHe="🎍",VHe="🎎",qHe="🎏",HHe="🎐",UHe="🎑",WHe="🎒",GHe="🎓",KHe="🎖️",YHe="🎗️",ZHe="🎙️",XHe="🎚️",JHe="🎛️",QHe="🎞️",eUe="🎟️",tUe="🎠",nUe="🎡",rUe="🎢",iUe="🎣",aUe="🎤",oUe="🎥",sUe="🎦",lUe="🎧",cUe="🎨",uUe="🎩",dUe="🎪",fUe="🎫",hUe="🎬",pUe="🎭",mUe="🎮",gUe="🎯",yUe="🎰",_Ue="🎲",bUe="🎳",kUe="🎴",wUe="🎵",vUe="🎶",xUe="🎷",CUe="🎸",SUe="🎹",DUe="🎺",EUe="🎻",TUe="🎼",AUe="🎽",zUe="🎾",FUe="🎿",$Ue="🏀",MUe="🏁",OUe="🏂",NUe="🏃‍♂️",LUe="🏃‍♂️",IUe="🏄‍♂️",BUe="🏅",RUe="🏆",PUe="🏇",jUe="🏈",VUe="🏉",qUe="🏊‍♂️",HUe="🏋️‍♂️",UUe="🏌️‍♂️",WUe="🏍️",GUe="🏎️",KUe="🏏",YUe="🏐",ZUe="🏑",XUe="🏒",JUe="🏓",QUe="🏔️",eWe="🏕️",tWe="🏖️",nWe="🏗️",rWe="🏘️",iWe="🏙️",aWe="🏚️",oWe="🏛️",sWe="🏜️",lWe="🏝️",cWe="🏞️",uWe="🏟️",dWe="🏠",fWe="🏡",hWe="🏢",pWe="🏣",mWe="🏤",gWe="🏥",yWe="🏦",_We="🏧",bWe="🏨",kWe="🏩",wWe="🏪",vWe="🏫",xWe="🏬",CWe="🏭",SWe="🏮",DWe="🏮",EWe="🏯",TWe="🏰",AWe="🏳️‍⚧️",zWe="🏳️",FWe="🏴‍☠️",$We="🏴",MWe="🏵️",OWe="🏷️",NWe="🏸",LWe="🏹",IWe="🏺",BWe="🐀",RWe="🐁",PWe="🐂",jWe="🐃",VWe="🐄",qWe="🐅",HWe="🐆",UWe="🐇",WWe="🐈‍⬛",GWe="🐈",KWe="🐉",YWe="🐊",ZWe="🐋",XWe="🐌",JWe="🐍",QWe="🐎",eGe="🐏",tGe="🐐",nGe="🐑",rGe="🐒",iGe="🐓",aGe="🐔",oGe="🐕‍🦺",sGe="🐕",lGe="🐖",cGe="🐗",uGe="🐘",dGe="🐙",fGe="🐚",hGe="🐛",pGe="🐜",mGe="🐝",gGe="🐝",yGe="🐞",_Ge="🐞",bGe="🐟",kGe="🐠",wGe="🐡",vGe="🐢",xGe="🐣",CGe="🐤",SGe="🐥",DGe="🐦",EGe="🐧",TGe="🐨",AGe="🐩",zGe="🐪",FGe="🐫",$Ge="🐬",MGe="🐬",OGe="🐭",NGe="🐮",LGe="🐯",IGe="🐰",BGe="🐱",RGe="🐲",PGe="🐳",jGe="🐴",VGe="🐵",qGe="🐶",HGe="🐷",UGe="🐸",WGe="🐹",GGe="🐺",KGe="🐻‍❄️",YGe="🐻",ZGe="🐼",XGe="🐽",JGe="🐾",QGe="🐾",eKe="🐿️",tKe="👀",nKe="👁️",rKe="👂",iKe="👃",aKe="👄",oKe="👅",sKe="👆",lKe="👇",cKe="👈",uKe="👉",dKe="👊",fKe="👊",hKe="👋",pKe="👌",mKe="👍",gKe="👎",yKe="👏",_Ke="👐",bKe="👑",kKe="👒",wKe="👓",vKe="👔",xKe="👕",CKe="👕",SKe="👖",DKe="👗",EKe="👘",TKe="👙",AKe="👚",zKe="👛",FKe="👜",$Ke="👝",MKe="👞",OKe="👞",NKe="👟",LKe="👠",IKe="👡",BKe="👢",RKe="👣",PKe="👤",jKe="👥",VKe="👦",qKe="👧",HKe="👨‍🍼",UKe="👨‍👩‍👦",WKe="👨‍🦯",GKe="👨‍🦰",KKe="👨‍🦱",YKe="👨‍🦲",ZKe="👨‍🦳",XKe="👨‍🦼",JKe="👨‍🦽",QKe="👨",eYe="👩‍🍼",tYe="👩‍🦯",nYe="👩‍🦰",rYe="👩‍🦱",iYe="👩‍🦲",aYe="👩‍🦳",oYe="👩‍🦼",sYe="👩‍🦽",lYe="👩",cYe="👫",uYe="👫",dYe="👫",fYe="👬",hYe="👬",pYe="👭",mYe="👭",gYe="👮‍♂️",yYe="👯‍♀️",_Ye="👰‍♀️",bYe="👰‍♂️",kYe="👰",wYe="👱‍♂️",vYe="👲",xYe="👳‍♂️",CYe="👴",SYe="👵",DYe="👶",EYe="👷‍♂️",TYe="👸",AYe="👹",zYe="👺",FYe="👻",$Ye="👼",MYe="👽",OYe="👾",NYe="👿",LYe="💀",IYe="💁‍♀️",BYe="💂‍♂️",RYe="💃",PYe="💄",jYe="💅",VYe="💆‍♀️",qYe="💇‍♀️",HYe="💈",UYe="💉",WYe="💊",GYe="💋",KYe="💌",YYe="💍",ZYe="💎",XYe="💏",JYe="💐",QYe="💑",eZe="💒",tZe="💓",nZe="💔",rZe="💕",iZe="💖",aZe="💗",oZe="💘",sZe="💙",lZe="💚",cZe="💛",uZe="💜",dZe="💝",fZe="💞",hZe="💟",pZe="💠",mZe="💡",gZe="💢",yZe="💣",_Ze="💤",bZe="💥",kZe="💥",wZe="💦",vZe="💧",xZe="💨",CZe="💩",SZe="💩",DZe="💩",EZe="💪",TZe="💫",AZe="💬",zZe="💭",FZe="💮",$Ze="💰",MZe="💱",OZe="💲",NZe="💳",LZe="💴",IZe="💵",BZe="💶",RZe="💷",PZe="💸",jZe="💹",VZe="💺",qZe="💻",HZe="💼",UZe="💽",WZe="💾",GZe="💿",KZe="📀",YZe="📁",ZZe="📂",XZe="📃",JZe="📄",QZe="📅",eXe="📆",tXe="📇",nXe="📈",rXe="📉",iXe="📊",aXe="📋",oXe="📌",sXe="📍",lXe="📎",cXe="📏",uXe="📐",dXe="📑",fXe="📒",hXe="📓",pXe="📔",mXe="📕",gXe="📖",yXe="📖",_Xe="📗",bXe="📘",kXe="📙",wXe="📚",vXe="📛",xXe="📜",CXe="📝",SXe="📝",DXe="📞",EXe="📟",TXe="📠",AXe="📡",zXe="📢",FXe="📣",$Xe="📤",MXe="📥",OXe="📨",NXe="📩",LXe="📪",IXe="📫",BXe="📬",RXe="📭",PXe="📮",jXe="📯",VXe="📰",qXe="📱",HXe="📲",UXe="📳",WXe="📴",GXe="📵",KXe="📶",YXe="📷",ZXe="📸",XXe="📹",JXe="📺",QXe="📻",eJe="📼",tJe="📽️",nJe="📿",rJe="🔀",iJe="🔁",aJe="🔂",oJe="🔃",sJe="🔄",lJe="🔅",cJe="🔆",uJe="🔇",dJe="🔈",fJe="🔉",hJe="🔊",pJe="🔋",mJe="🔌",gJe="🔍",yJe="🔎",_Je="🔏",bJe="🔐",kJe="🔑",wJe="🔒",vJe="🔓",xJe="🔔",CJe="🔕",SJe="🔖",DJe="🔗",EJe="🔘",TJe="🔙",AJe="🔚",zJe="🔛",FJe="🔜",$Je="🔝",MJe="🔞",OJe="🔟",NJe="🔠",LJe="🔡",IJe="🔣",BJe="🔤",RJe="🔥",PJe="🔦",jJe="🔧",VJe="🔨",qJe="🔩",HJe="🔪",UJe="🔪",WJe="🔫",GJe="🔬",KJe="🔭",YJe="🔮",ZJe="🔯",XJe="🔰",JJe="🔱",QJe="🔲",eQe="🔳",tQe="🔴",nQe="🔵",rQe="🔶",iQe="🔷",aQe="🔸",oQe="🔹",sQe="🔺",lQe="🔻",cQe="🔼",uQe="🔽",dQe="🕉️",fQe="🕊️",hQe="🕋",pQe="🕌",mQe="🕍",gQe="🕎",yQe="🕐",_Qe="🕑",bQe="🕒",kQe="🕓",wQe="🕔",vQe="🕕",xQe="🕖",CQe="🕗",SQe="🕘",DQe="🕙",EQe="🕚",TQe="🕛",AQe="🕜",zQe="🕝",FQe="🕞",$Qe="🕟",MQe="🕠",OQe="🕡",NQe="🕢",LQe="🕣",IQe="🕤",BQe="🕥",RQe="🕦",PQe="🕧",jQe="🕯️",VQe="🕰️",qQe="🕳️",HQe="🕴️",UQe="🕵️‍♂️",WQe="🕶️",GQe="🕷️",KQe="🕸️",YQe="🕹️",ZQe="🕺",XQe="🖇️",JQe="🖊️",QQe="🖋️",eet="🖌️",tet="🖍️",net="🖐️",ret="🖕",iet="🖕",aet="🖤",oet="🖥️",set="🖨️",cet="🖱️",uet="🖲️",det="🖼️",fet="🗂️",het="🗃️",pet="🗄️",met="🗑️",get="🗒️",yet="🗓️",_et="🗜️",bet="🗝️",ket="🗞️",wet="🗡️",vet="🗣️",xet="🗨️",Cet="🗯️",Det="🗳️",Eet="🗺️",Tet="🗻",Aet="🗼",zet="🗽",Fet="🗾",$et="🗿",Met="😀",Oet="😁",Net="😂",Let="😃",Iet="😄",Bet="😅",Ret="😆",Pet="😆",jet="😇",Vet="😈",qet="😉",Het="😊",Uet="😋",Wet="😌",Get="😍",Ket="😎",Yet="😏",Zet="😐",Xet="😑",Jet="😒",Qet="😓",ett="😔",ttt="😕",ntt="😖",rtt="😗",itt="😘",att="😙",ott="😚",stt="😛",ltt="😜",ctt="😝",utt="😞",dtt="😟",ftt="😠",htt="😡",ptt="😢",mtt="😣",gtt="😤",ytt="😥",_tt="😦",btt="😧",ktt="😨",wtt="😩",vtt="😪",xtt="😫",Ctt="😬",Stt="😭",Dtt="😮‍💨",Ett="😮",Ttt="😯",Att="😰",ztt="😱",Ftt="😲",$tt="😳",Mtt="😴",Ott="😵‍💫",Ntt="😵",Ltt="😶‍🌫️",Itt="😶",Btt="😷",Rtt="😸",Ptt="😹",jtt="😺",Vtt="😻",qtt="😼",Htt="😽",Utt="😾",Wtt="😿",Gtt="🙀",Ktt="🙁",Ytt="🙂",Ztt="🙃",Xtt="🙄",Jtt="🙅‍♀️",Qtt="🙆‍♀️",ent="🙇‍♂️",tnt="🙈",nnt="🙉",rnt="🙊",int="🙋‍♀️",ant="🙌",ont="🙍‍♀️",snt="🙎‍♀️",lnt="🙏",cnt="🚀",unt="🚁",dnt="🚂",fnt="🚃",hnt="🚄",pnt="🚅",mnt="🚆",gnt="🚇",ynt="🚈",_nt="🚉",bnt="🚊",knt="🚋",wnt="🚌",vnt="🚍",xnt="🚎",Cnt="🚏",Snt="🚐",Dnt="🚑",Ent="🚒",Tnt="🚓",Ant="🚔",znt="🚕",Fnt="🚖",$nt="🚗",Mnt="🚗",Ont="🚘",Nnt="🚙",Lnt="🚚",Int="🚛",Bnt="🚜",Rnt="🚝",Pnt="🚞",jnt="🚟",Vnt="🚠",qnt="🚡",Hnt="🚢",Unt="🚣‍♂️",Wnt="🚤",Gnt="🚥",Knt="🚦",Ynt="🚧",Znt="🚨",Xnt="🚩",Jnt="🚪",Qnt="🚫",ert="🚬",trt="🚭",nrt="🚮",rrt="🚯",irt="🚰",art="🚲",ort="🚳",srt="🚴‍♂️",lrt="🚵‍♂️",crt="🚶‍♂️",urt="🚷",drt="🚸",frt="🚹",hrt="🚺",prt="🚻",mrt="🚼",grt="🚽",yrt="🚾",_rt="🚿",brt="🛀",krt="🛁",wrt="🛂",vrt="🛃",xrt="🛄",Crt="🛅",Srt="🛋️",Drt="🛌",Ert="🛍️",Trt="🛎️",Art="🛏️",zrt="🛐",Frt="🛑",$rt="🛒",Mrt="🛕",Ort="🛖",Nrt="🛗",Lrt="🛠️",Irt="🛡️",Brt="🛢️",Rrt="🛣️",Prt="🛤️",jrt="🛥️",Vrt="🛩️",qrt="🛫",Hrt="🛬",Urt="🛰️",Wrt="🛳️",Grt="🛴",Krt="🛵",Yrt="🛶",Zrt="🛷",Xrt="🛸",Jrt="🛹",Qrt="🛺",eit="🛻",tit="🛼",nit="🟠",rit="🟡",iit="🟢",ait="🟣",oit="🟤",sit="🟥",lit="🟦",cit="🟧",uit="🟨",dit="🟩",fit="🟪",hit="🟫",pit="🤌",mit="🤍",git="🤎",yit="🤏",_it="🤐",bit="🤑",kit="🤒",wit="🤓",vit="🤔",xit="🤕",Cit="🤖",Sit="🤗",Dit="🤘",Eit="🤘",Tit="🤙",Ait="🤚",zit="🤝",Fit="🤞",$it="🤞",Mit="🤟",Oit="🤠",Nit="🤡",Lit="🤢",Iit="🤣",Bit="🤤",Rit="🤥",Pit="🤦",jit="🤧",Vit="🤨",qit="🤨",Hit="🤩",Uit="🤪",Wit="🤪",Git="🤫",Kit="🤫",Yit="🤬",Zit="🤬",Xit="🤭",Jit="🤭",Qit="🤮",eat="🤮",tat="🤯",nat="🤯",rat="🤰",iat="🤲",aat="🤳",oat="🤴",sat="🤵‍♀️",lat="🤵‍♂️",cat="🤵",uat="🤶",dat="🤶",fat="🤷",hat="🤸",pat="🤹",mat="🤺",gat="🤼",yat="🤽",_at="🤾",bat="🤿",kat="🥀",wat="🥁",vat="🥂",xat="🥃",Cat="🥄",Sat="🥅",Dat="🥇",Eat="🥈",Tat="🥉",Aat="🥊",zat="🥋",Fat="🥌",$at="🥍",Mat="🥎",Oat="🥏",Nat="🥐",Lat="🥑",Iat="🥒",Bat="🥓",Rat="🥔",Pat="🥕",jat="🥖",Vat="🥗",qat="🥘",Hat="🥙",Uat="🥚",Wat="🥛",Gat="🥜",Kat="🥝",Yat="🥞",Zat="🥟",Xat="🥠",Jat="🥡",Qat="🥢",eot="🥣",tot="🥤",not="🥥",rot="🥦",iot="🥧",aot="🥨",oot="🥩",sot="🥪",lot="🥫",cot="🥬",uot="🥭",dot="🥮",fot="🥯",hot="🥰",pot="🥱",mot="🥲",got="🥳",yot="🥴",_ot="🥵",bot="🥶",kot="🥷",wot="🥸",vot="🥺",xot="🥻",Cot="🥼",Sot="🥽",Dot="🥾",Eot="🥿",Tot="🦀",Aot="🦁",zot="🦂",Fot="🦃",$ot="🦄",Mot="🦅",Oot="🦆",Not="🦇",Lot="🦈",Iot="🦉",Bot="🦊",Rot="🦋",Pot="🦌",jot="🦍",Vot="🦎",qot="🦏",Hot="🦐",Uot="🦑",Wot="🦒",Got="🦓",Kot="🦔",Yot="🦕",Zot="🦗",Xot="🦘",Jot="🦙",Qot="🦚",est="🦛",tst="🦜",nst="🦝",rst="🦞",ist="🦟",ast="🦠",ost="🦡",sst="🦢",lst="🦣",cst="🦤",ust="🦥",dst="🦦",fst="🦧",hst="🦨",pst="🦩",mst="🦪",gst="🦫",yst="🦬",_st="🦭",bst="🦮",kst="🦯",wst="🦴",vst="🦵",xst="🦶",Cst="🦷",Sst="🦸‍♀️",Dst="🦸‍♂️",Est="🦸",Tst="🦹‍♀️",Ast="🦹‍♂️",zst="🦹",Fst="🦺",$st="🦻",Mst="🦼",Ost="🦽",Nst="🦾",Lst="🦿",Ist="🧀",Bst="🧁",Rst="🧂",Pst="🧃",jst="🧄",Vst="🧅",qst="🧆",Hst="🧇",Ust="🧈",Wst="🧉",Gst="🧊",Kst="🧋",Yst="🧍‍♀️",Zst="🧍‍♂️",Xst="🧍",Jst="🧎‍♀️",Qst="🧎‍♂️",elt="🧎",tlt="🧏‍♀️",nlt="🧏‍♂️",rlt="🧏",ilt="🧐",alt="🧑‍🌾",olt="🧑‍🍳",slt="🧑‍🍼",llt="🧑‍🎄",clt="🧑‍🎓",ult="🧑‍🎤",dlt="🧑‍🎨",flt="🧑‍🏫",hlt="🧑‍🏭",plt="🧑‍💻",mlt="🧑‍💼",glt="🧑‍🔧",ylt="🧑‍🔬",_lt="🧑‍🚀",blt="🧑‍🚒",klt="🧑‍🤝‍🧑",wlt="🧑‍🦯",vlt="🧑‍🦰",xlt="🧑‍🦱",Clt="🧑‍🦲",Slt="🧑‍🦳",Dlt="🧑‍🦼",Elt="🧑‍🦽",Tlt="🧑‍⚕️",Alt="🧑‍⚖️",zlt="🧑‍✈️",Flt="🧑",$lt="🧒",Mlt="🧓",Olt="🧔‍♀️",Nlt="🧔‍♂️",Llt="🧔",Ilt="🧕",Blt="🧖‍♀️",Rlt="🧖‍♂️",Plt="🧖‍♂️",jlt="🧗‍♀️",Vlt="🧗‍♀️",qlt="🧗‍♂️",Hlt="🧘‍♀️",Ult="🧘‍♀️",Wlt="🧘‍♂️",Glt="🧙‍♀️",Klt="🧙‍♀️",Ylt="🧙‍♂️",Zlt="🧚‍♀️",Xlt="🧚‍♀️",Jlt="🧚‍♂️",Qlt="🧛‍♀️",ect="🧛‍♀️",tct="🧛‍♂️",nct="🧜‍♀️",rct="🧜‍♂️",ict="🧜‍♂️",act="🧝‍♀️",oct="🧝‍♂️",sct="🧝‍♂️",lct="🧞‍♀️",cct="🧞‍♂️",uct="🧞‍♂️",dct="🧟‍♀️",fct="🧟‍♂️",hct="🧟‍♂️",pct="🧠",mct="🧡",gct="🧢",yct="🧣",_ct="🧤",bct="🧥",kct="🧦",wct="🧧",vct="🧨",xct="🧩",Cct="🧪",Sct="🧫",Dct="🧬",Ect="🧭",Tct="🧮",Act="🧯",zct="🧰",Fct="🧱",$ct="🧲",Mct="🧳",Oct="🧴",Nct="🧵",Lct="🧶",Ict="🧷",Bct="🧸",Rct="🧹",Pct="🧺",jct="🧻",Vct="🧼",qct="🧽",Hct="🧾",Uct="🧿",Wct="🩰",Gct="🩲",Kct="🩳",Yct="🩴",Zct="🩸",Xct="🩹",Jct="🩺",Qct="🪁",eut="🪂",tut="🪃",nut="🪄",rut="🪅",iut="🪆",aut="🪐",out="🪑",sut="🪒",lut="🪓",cut="🪔",uut="🪕",dut="🪖",fut="🪗",hut="🪘",put="🪙",mut="🪚",gut="🪛",yut="🪜",_ut="🪝",but="🪞",kut="🪟",wut="🪠",vut="🪡",xut="🪢",Cut="🪣",Sut="🪤",Dut="🪥",Eut="🪦",Tut="🪧",Aut="🪨",zut="🪰",Fut="🪱",$ut="🪲",Mut="🪳",Out="🪴",Nut="🪵",Lut="🪶",Iut="🫀",But="🫁",Rut="🫂",Put="🫐",jut="🫑",Vut="🫒",qut="🫓",Hut="🫔",Uut="🫕",Wut="🫖",Gut="‼️",Kut="⁉️",Yut="™️",Zut="ℹ️",Xut="↔️",Jut="↕️",Qut="↖️",edt="↗️",tdt="↘️",ndt="↙️",rdt="↩️",idt="↪️",adt="⌚",odt="⌛",sdt="⌨️",ldt="⏏️",cdt="⏩",udt="⏪",ddt="⏫",fdt="⏬",hdt="⏭️",pdt="⏮️",mdt="⏯️",gdt="⏰",ydt="⏱️",_dt="⏲️",bdt="⏳",kdt="⏸️",wdt="⏹️",vdt="⏺️",xdt="Ⓜ️",Cdt="▪️",Sdt="▫️",Ddt="▶️",Edt="◀️",Tdt="◻️",Adt="◼️",zdt="◽",Fdt="◾",$dt="☀️",Mdt="☁️",Odt="☂️",Ndt="☃️",Ldt="☄️",Idt="☎️",Bdt="☎️",Rdt="☑️",Pdt="☘️",jdt="☝️",Vdt="☠️",qdt="☢️",Hdt="☣️",Udt="☦️",Wdt="☪️",Gdt="☮️",Kdt="☯️",Ydt="☸️",Zdt="☹️",Xdt="☺️",Jdt="♀️",Qdt="♂️",eft="♊",tft="♋",nft="♌",rft="♍",ift="♎",aft="♏",oft="♟️",sft="♠️",lft="♣️",cft="♥️",uft="♦️",dft="♨️",fft="♻️",hft="♾️",pft="♿",mft="⚒️",gft="⚔️",yft="⚕️",_ft="⚕️",bft="⚖️",kft="⚗️",wft="⚙️",vft="⚛️",xft="⚜️",Cft="⚠️",Sft="⚡",Dft="⚧️",Eft="⚪",Tft="⚫",Aft="⚰️",zft="⚱️",Fft="⚽",$ft="⚾",Mft="⛄",Oft="⛅",Nft="⛈️",Lft="⛎",Ift="⛏️",Bft="⛑️",Rft="⛓️",Pft="⛔",jft="⛩️",Vft="⛪",qft="⛰️",Hft="⛱️",Uft="⛲",Wft="⛳",Gft="⛴️",Kft="⛵",Yft="⛵",Zft="⛷️",Xft="⛸️",Jft="⛹️‍♂️",Qft="⛺",eht="⛽",tht="✂️",nht="✈️",rht="✉️",iht="✉️",aht="✊",oht="✋",sht="✋",lht="✌️",cht="✍️",uht="✏️",dht="✒️",fht="✔️",hht="✖️",pht="✝️",mht="✡️",ght="✳️",yht="✴️",_ht="❄️",bht="❇️",kht="❌",wht="❎",vht="❣️",xht="❤️‍🔥",Cht="❤️‍🩹",Sht="❤️",Dht="➡️",Eht="➰",Tht="➿",Aht="⤴️",zht="⤵️",Fht="⬅️",$ht="⬆️",Mht="⬇️",Oht="⬛",Nht="⬜",Lht="⭐",Iht="⭕",Bht="〰️",Rht="〽️",Pht="㊗️",jht="㊙️",Vht={100:"💯",1234:"🔢",umbrella_with_rain_drops:LPe,coffee:IPe,aries:BPe,taurus:RPe,sagittarius:PPe,capricorn:jPe,aquarius:VPe,pisces:qPe,anchor:HPe,white_check_mark:UPe,sparkles:WPe,question:GPe,grey_question:KPe,grey_exclamation:YPe,exclamation:ZPe,heavy_exclamation_mark:XPe,heavy_plus_sign:JPe,heavy_minus_sign:QPe,heavy_division_sign:eje,hash:tje,keycap_star:nje,zero:rje,one:ije,two:aje,three:oje,four:sje,five:lje,six:cje,seven:uje,eight:dje,nine:fje,copyright:hje,registered:pje,mahjong:mje,black_joker:gje,a:yje,b:_je,o2:bje,parking:kje,ab:wje,cl:vje,cool:xje,free:Cje,id:Sje,new:"🆕",ng:Dje,ok:Eje,sos:Tje,up:Aje,vs:zje,"flag-ac":"🇦🇨","flag-ad":"🇦🇩","flag-ae":"🇦🇪","flag-af":"🇦🇫","flag-ag":"🇦🇬","flag-ai":"🇦🇮","flag-al":"🇦🇱","flag-am":"🇦🇲","flag-ao":"🇦🇴","flag-aq":"🇦🇶","flag-ar":"🇦🇷","flag-as":"🇦🇸","flag-at":"🇦🇹","flag-au":"🇦🇺","flag-aw":"🇦🇼","flag-ax":"🇦🇽","flag-az":"🇦🇿","flag-ba":"🇧🇦","flag-bb":"🇧🇧","flag-bd":"🇧🇩","flag-be":"🇧🇪","flag-bf":"🇧🇫","flag-bg":"🇧🇬","flag-bh":"🇧🇭","flag-bi":"🇧🇮","flag-bj":"🇧🇯","flag-bl":"🇧🇱","flag-bm":"🇧🇲","flag-bn":"🇧🇳","flag-bo":"🇧🇴","flag-bq":"🇧🇶","flag-br":"🇧🇷","flag-bs":"🇧🇸","flag-bt":"🇧🇹","flag-bv":"🇧🇻","flag-bw":"🇧🇼","flag-by":"🇧🇾","flag-bz":"🇧🇿","flag-ca":"🇨🇦","flag-cc":"🇨🇨","flag-cd":"🇨🇩","flag-cf":"🇨🇫","flag-cg":"🇨🇬","flag-ch":"🇨🇭","flag-ci":"🇨🇮","flag-ck":"🇨🇰","flag-cl":"🇨🇱","flag-cm":"🇨🇲",cn:Fje,"flag-cn":"🇨🇳","flag-co":"🇨🇴","flag-cp":"🇨🇵","flag-cr":"🇨🇷","flag-cu":"🇨🇺","flag-cv":"🇨🇻","flag-cw":"🇨🇼","flag-cx":"🇨🇽","flag-cy":"🇨🇾","flag-cz":"🇨🇿",de:$je,"flag-de":"🇩🇪","flag-dg":"🇩🇬","flag-dj":"🇩🇯","flag-dk":"🇩🇰","flag-dm":"🇩🇲","flag-do":"🇩🇴","flag-dz":"🇩🇿","flag-ea":"🇪🇦","flag-ec":"🇪🇨","flag-ee":"🇪🇪","flag-eg":"🇪🇬","flag-eh":"🇪🇭","flag-er":"🇪🇷",es:Mje,"flag-es":"🇪🇸","flag-et":"🇪🇹","flag-eu":"🇪🇺","flag-fi":"🇫🇮","flag-fj":"🇫🇯","flag-fk":"🇫🇰","flag-fm":"🇫🇲","flag-fo":"🇫🇴",fr:Oje,"flag-fr":"🇫🇷","flag-ga":"🇬🇦",gb:Nje,uk:Lje,"flag-gb":"🇬🇧","flag-gd":"🇬🇩","flag-ge":"🇬🇪","flag-gf":"🇬🇫","flag-gg":"🇬🇬","flag-gh":"🇬🇭","flag-gi":"🇬🇮","flag-gl":"🇬🇱","flag-gm":"🇬🇲","flag-gn":"🇬🇳","flag-gp":"🇬🇵","flag-gq":"🇬🇶","flag-gr":"🇬🇷","flag-gs":"🇬🇸","flag-gt":"🇬🇹","flag-gu":"🇬🇺","flag-gw":"🇬🇼","flag-gy":"🇬🇾","flag-hk":"🇭🇰","flag-hm":"🇭🇲","flag-hn":"🇭🇳","flag-hr":"🇭🇷","flag-ht":"🇭🇹","flag-hu":"🇭🇺","flag-ic":"🇮🇨","flag-id":"🇮🇩","flag-ie":"🇮🇪","flag-il":"🇮🇱","flag-im":"🇮🇲","flag-in":"🇮🇳","flag-io":"🇮🇴","flag-iq":"🇮🇶","flag-ir":"🇮🇷","flag-is":"🇮🇸",it:Ije,"flag-it":"🇮🇹","flag-je":"🇯🇪","flag-jm":"🇯🇲","flag-jo":"🇯🇴",jp:Bje,"flag-jp":"🇯🇵","flag-ke":"🇰🇪","flag-kg":"🇰🇬","flag-kh":"🇰🇭","flag-ki":"🇰🇮","flag-km":"🇰🇲","flag-kn":"🇰🇳","flag-kp":"🇰🇵",kr:Rje,"flag-kr":"🇰🇷","flag-kw":"🇰🇼","flag-ky":"🇰🇾","flag-kz":"🇰🇿","flag-la":"🇱🇦","flag-lb":"🇱🇧","flag-lc":"🇱🇨","flag-li":"🇱🇮","flag-lk":"🇱🇰","flag-lr":"🇱🇷","flag-ls":"🇱🇸","flag-lt":"🇱🇹","flag-lu":"🇱🇺","flag-lv":"🇱🇻","flag-ly":"🇱🇾","flag-ma":"🇲🇦","flag-mc":"🇲🇨","flag-md":"🇲🇩","flag-me":"🇲🇪","flag-mf":"🇲🇫","flag-mg":"🇲🇬","flag-mh":"🇲🇭","flag-mk":"🇲🇰","flag-ml":"🇲🇱","flag-mm":"🇲🇲","flag-mn":"🇲🇳","flag-mo":"🇲🇴","flag-mp":"🇲🇵","flag-mq":"🇲🇶","flag-mr":"🇲🇷","flag-ms":"🇲🇸","flag-mt":"🇲🇹","flag-mu":"🇲🇺","flag-mv":"🇲🇻","flag-mw":"🇲🇼","flag-mx":"🇲🇽","flag-my":"🇲🇾","flag-mz":"🇲🇿","flag-na":"🇳🇦","flag-nc":"🇳🇨","flag-ne":"🇳🇪","flag-nf":"🇳🇫","flag-ng":"🇳🇬","flag-ni":"🇳🇮","flag-nl":"🇳🇱","flag-no":"🇳🇴","flag-np":"🇳🇵","flag-nr":"🇳🇷","flag-nu":"🇳🇺","flag-nz":"🇳🇿","flag-om":"🇴🇲","flag-pa":"🇵🇦","flag-pe":"🇵🇪","flag-pf":"🇵🇫","flag-pg":"🇵🇬","flag-ph":"🇵🇭","flag-pk":"🇵🇰","flag-pl":"🇵🇱","flag-pm":"🇵🇲","flag-pn":"🇵🇳","flag-pr":"🇵🇷","flag-ps":"🇵🇸","flag-pt":"🇵🇹","flag-pw":"🇵🇼","flag-py":"🇵🇾","flag-qa":"🇶🇦","flag-re":"🇷🇪","flag-ro":"🇷🇴","flag-rs":"🇷🇸",ru:Pje,"flag-ru":"🇷🇺","flag-rw":"🇷🇼","flag-sa":"🇸🇦","flag-sb":"🇸🇧","flag-sc":"🇸🇨","flag-sd":"🇸🇩","flag-se":"🇸🇪","flag-sg":"🇸🇬","flag-sh":"🇸🇭","flag-si":"🇸🇮","flag-sj":"🇸🇯","flag-sk":"🇸🇰","flag-sl":"🇸🇱","flag-sm":"🇸🇲","flag-sn":"🇸🇳","flag-so":"🇸🇴","flag-sr":"🇸🇷","flag-ss":"🇸🇸","flag-st":"🇸🇹","flag-sv":"🇸🇻","flag-sx":"🇸🇽","flag-sy":"🇸🇾","flag-sz":"🇸🇿","flag-ta":"🇹🇦","flag-tc":"🇹🇨","flag-td":"🇹🇩","flag-tf":"🇹🇫","flag-tg":"🇹🇬","flag-th":"🇹🇭","flag-tj":"🇹🇯","flag-tk":"🇹🇰","flag-tl":"🇹🇱","flag-tm":"🇹🇲","flag-tn":"🇹🇳","flag-to":"🇹🇴","flag-tr":"🇹🇷","flag-tt":"🇹🇹","flag-tv":"🇹🇻","flag-tw":"🇹🇼","flag-tz":"🇹🇿","flag-ua":"🇺🇦","flag-ug":"🇺🇬","flag-um":"🇺🇲","flag-un":"🇺🇳",us:jje,"flag-us":"🇺🇸","flag-uy":"🇺🇾","flag-uz":"🇺🇿","flag-va":"🇻🇦","flag-vc":"🇻🇨","flag-ve":"🇻🇪","flag-vg":"🇻🇬","flag-vi":"🇻🇮","flag-vn":"🇻🇳","flag-vu":"🇻🇺","flag-wf":"🇼🇫","flag-ws":"🇼🇸","flag-xk":"🇽🇰","flag-ye":"🇾🇪","flag-yt":"🇾🇹","flag-za":"🇿🇦","flag-zm":"🇿🇲","flag-zw":"🇿🇼",koko:Vje,sa:qje,u7121:Hje,u6307:Uje,u7981:Wje,u7a7a:Gje,u5408:Kje,u6e80:Yje,u6709:Zje,u6708:Xje,u7533:Jje,u5272:Qje,u55b6:eVe,ideograph_advantage:tVe,accept:nVe,cyclone:rVe,foggy:iVe,closed_umbrella:aVe,night_with_stars:oVe,sunrise_over_mountains:sVe,sunrise:lVe,city_sunset:cVe,city_sunrise:uVe,rainbow:dVe,bridge_at_night:fVe,ocean:hVe,volcano:pVe,milky_way:mVe,earth_africa:gVe,earth_americas:yVe,earth_asia:_Ve,globe_with_meridians:bVe,new_moon:kVe,waxing_crescent_moon:wVe,first_quarter_moon:vVe,moon:xVe,waxing_gibbous_moon:CVe,full_moon:SVe,waning_gibbous_moon:DVe,last_quarter_moon:EVe,waning_crescent_moon:TVe,crescent_moon:AVe,new_moon_with_face:zVe,first_quarter_moon_with_face:FVe,last_quarter_moon_with_face:$Ve,full_moon_with_face:MVe,sun_with_face:OVe,star2:NVe,stars:LVe,thermometer:IVe,mostly_sunny:BVe,sun_small_cloud:RVe,barely_sunny:PVe,sun_behind_cloud:jVe,partly_sunny_rain:VVe,sun_behind_rain_cloud:qVe,rain_cloud:HVe,snow_cloud:UVe,lightning:WVe,lightning_cloud:GVe,tornado:KVe,tornado_cloud:YVe,fog:ZVe,wind_blowing_face:XVe,hotdog:JVe,taco:QVe,burrito:eqe,chestnut:tqe,seedling:nqe,evergreen_tree:rqe,deciduous_tree:iqe,palm_tree:aqe,cactus:oqe,hot_pepper:sqe,tulip:lqe,cherry_blossom:cqe,rose:uqe,hibiscus:dqe,sunflower:fqe,blossom:hqe,corn:pqe,ear_of_rice:mqe,herb:gqe,four_leaf_clover:yqe,maple_leaf:_qe,fallen_leaf:bqe,leaves:kqe,mushroom:wqe,tomato:vqe,eggplant:xqe,grapes:Cqe,melon:Sqe,watermelon:Dqe,tangerine:Eqe,lemon:Tqe,banana:Aqe,pineapple:zqe,apple:Fqe,green_apple:$qe,pear:Mqe,peach:Oqe,cherries:Nqe,strawberry:Lqe,hamburger:Iqe,pizza:Bqe,meat_on_bone:Rqe,poultry_leg:Pqe,rice_cracker:jqe,rice_ball:Vqe,rice:qqe,curry:Hqe,ramen:Uqe,spaghetti:Wqe,bread:Gqe,fries:Kqe,sweet_potato:Yqe,dango:Zqe,oden:Xqe,sushi:Jqe,fried_shrimp:Qqe,fish_cake:eHe,icecream:tHe,shaved_ice:nHe,ice_cream:rHe,doughnut:iHe,cookie:aHe,chocolate_bar:oHe,candy:sHe,lollipop:lHe,custard:cHe,honey_pot:uHe,cake:dHe,bento:fHe,stew:hHe,fried_egg:pHe,cooking:mHe,fork_and_knife:gHe,tea:yHe,sake:_He,wine_glass:bHe,cocktail:kHe,tropical_drink:wHe,beer:vHe,beers:xHe,baby_bottle:CHe,knife_fork_plate:SHe,champagne:DHe,popcorn:EHe,ribbon:THe,gift:AHe,birthday:zHe,jack_o_lantern:FHe,christmas_tree:$He,santa:MHe,fireworks:OHe,sparkler:NHe,balloon:LHe,tada:IHe,confetti_ball:BHe,tanabata_tree:RHe,crossed_flags:PHe,bamboo:jHe,dolls:VHe,flags:qHe,wind_chime:HHe,rice_scene:UHe,school_satchel:WHe,mortar_board:GHe,medal:KHe,reminder_ribbon:YHe,studio_microphone:ZHe,level_slider:XHe,control_knobs:JHe,film_frames:QHe,admission_tickets:eUe,carousel_horse:tUe,ferris_wheel:nUe,roller_coaster:rUe,fishing_pole_and_fish:iUe,microphone:aUe,movie_camera:oUe,cinema:sUe,headphones:lUe,art:cUe,tophat:uUe,circus_tent:dUe,ticket:fUe,clapper:hUe,performing_arts:pUe,video_game:mUe,dart:gUe,slot_machine:yUe,"8ball":"🎱",game_die:_Ue,bowling:bUe,flower_playing_cards:kUe,musical_note:wUe,notes:vUe,saxophone:xUe,guitar:CUe,musical_keyboard:SUe,trumpet:DUe,violin:EUe,musical_score:TUe,running_shirt_with_sash:AUe,tennis:zUe,ski:FUe,basketball:$Ue,checkered_flag:MUe,snowboarder:OUe,"woman-running":"🏃‍♀️","man-running":"🏃‍♂️",runner:NUe,running:LUe,"woman-surfing":"🏄‍♀️","man-surfing":"🏄‍♂️",surfer:IUe,sports_medal:BUe,trophy:RUe,horse_racing:PUe,football:jUe,rugby_football:VUe,"woman-swimming":"🏊‍♀️","man-swimming":"🏊‍♂️",swimmer:qUe,"woman-lifting-weights":"🏋️‍♀️","man-lifting-weights":"🏋️‍♂️",weight_lifter:HUe,"woman-golfing":"🏌️‍♀️","man-golfing":"🏌️‍♂️",golfer:UUe,racing_motorcycle:WUe,racing_car:GUe,cricket_bat_and_ball:KUe,volleyball:YUe,field_hockey_stick_and_ball:ZUe,ice_hockey_stick_and_puck:XUe,table_tennis_paddle_and_ball:JUe,snow_capped_mountain:QUe,camping:eWe,beach_with_umbrella:tWe,building_construction:nWe,house_buildings:rWe,cityscape:iWe,derelict_house_building:aWe,classical_building:oWe,desert:sWe,desert_island:lWe,national_park:cWe,stadium:uWe,house:dWe,house_with_garden:fWe,office:hWe,post_office:pWe,european_post_office:mWe,hospital:gWe,bank:yWe,atm:_We,hotel:bWe,love_hotel:kWe,convenience_store:wWe,school:vWe,department_store:xWe,factory:CWe,izakaya_lantern:SWe,lantern:DWe,japanese_castle:EWe,european_castle:TWe,"rainbow-flag":"🏳️‍🌈",transgender_flag:AWe,waving_white_flag:zWe,pirate_flag:FWe,"flag-england":"🏴󠁧󠁢󠁥󠁮󠁧󠁿","flag-scotland":"🏴󠁧󠁢󠁳󠁣󠁴󠁿","flag-wales":"🏴󠁧󠁢󠁷󠁬󠁳󠁿",waving_black_flag:$We,rosette:MWe,label:OWe,badminton_racquet_and_shuttlecock:NWe,bow_and_arrow:LWe,amphora:IWe,"skin-tone-2":"🏻","skin-tone-3":"🏼","skin-tone-4":"🏽","skin-tone-5":"🏾","skin-tone-6":"🏿",rat:BWe,mouse2:RWe,ox:PWe,water_buffalo:jWe,cow2:VWe,tiger2:qWe,leopard:HWe,rabbit2:UWe,black_cat:WWe,cat2:GWe,dragon:KWe,crocodile:YWe,whale2:ZWe,snail:XWe,snake:JWe,racehorse:QWe,ram:eGe,goat:tGe,sheep:nGe,monkey:rGe,rooster:iGe,chicken:aGe,service_dog:oGe,dog2:sGe,pig2:lGe,boar:cGe,elephant:uGe,octopus:dGe,shell:fGe,bug:hGe,ant:pGe,bee:mGe,honeybee:gGe,ladybug:yGe,lady_beetle:_Ge,fish:bGe,tropical_fish:kGe,blowfish:wGe,turtle:vGe,hatching_chick:xGe,baby_chick:CGe,hatched_chick:SGe,bird:DGe,penguin:EGe,koala:TGe,poodle:AGe,dromedary_camel:zGe,camel:FGe,dolphin:$Ge,flipper:MGe,mouse:OGe,cow:NGe,tiger:LGe,rabbit:IGe,cat:BGe,dragon_face:RGe,whale:PGe,horse:jGe,monkey_face:VGe,dog:qGe,pig:HGe,frog:UGe,hamster:WGe,wolf:GGe,polar_bear:KGe,bear:YGe,panda_face:ZGe,pig_nose:XGe,feet:JGe,paw_prints:QGe,chipmunk:eKe,eyes:tKe,"eye-in-speech-bubble":"👁️‍🗨️",eye:nKe,ear:rKe,nose:iKe,lips:aKe,tongue:oKe,point_up_2:sKe,point_down:lKe,point_left:cKe,point_right:uKe,facepunch:dKe,punch:fKe,wave:hKe,ok_hand:pKe,"+1":"👍",thumbsup:mKe,"-1":"👎",thumbsdown:gKe,clap:yKe,open_hands:_Ke,crown:bKe,womans_hat:kKe,eyeglasses:wKe,necktie:vKe,shirt:xKe,tshirt:CKe,jeans:SKe,dress:DKe,kimono:EKe,bikini:TKe,womans_clothes:AKe,purse:zKe,handbag:FKe,pouch:$Ke,mans_shoe:MKe,shoe:OKe,athletic_shoe:NKe,high_heel:LKe,sandal:IKe,boot:BKe,footprints:RKe,bust_in_silhouette:PKe,busts_in_silhouette:jKe,boy:VKe,girl:qKe,"male-farmer":"👨‍🌾","male-cook":"👨‍🍳",man_feeding_baby:HKe,"male-student":"👨‍🎓","male-singer":"👨‍🎤","male-artist":"👨‍🎨","male-teacher":"👨‍🏫","male-factory-worker":"👨‍🏭","man-boy-boy":"👨‍👦‍👦","man-boy":"👨‍👦","man-girl-boy":"👨‍👧‍👦","man-girl-girl":"👨‍👧‍👧","man-girl":"👨‍👧","man-man-boy":"👨‍👨‍👦","man-man-boy-boy":"👨‍👨‍👦‍👦","man-man-girl":"👨‍👨‍👧","man-man-girl-boy":"👨‍👨‍👧‍👦","man-man-girl-girl":"👨‍👨‍👧‍👧","man-woman-boy":"👨‍👩‍👦",family:UKe,"man-woman-boy-boy":"👨‍👩‍👦‍👦","man-woman-girl":"👨‍👩‍👧","man-woman-girl-boy":"👨‍👩‍👧‍👦","man-woman-girl-girl":"👨‍👩‍👧‍👧","male-technologist":"👨‍💻","male-office-worker":"👨‍💼","male-mechanic":"👨‍🔧","male-scientist":"👨‍🔬","male-astronaut":"👨‍🚀","male-firefighter":"👨‍🚒",man_with_probing_cane:WKe,red_haired_man:GKe,curly_haired_man:KKe,bald_man:YKe,white_haired_man:ZKe,man_in_motorized_wheelchair:XKe,man_in_manual_wheelchair:JKe,"male-doctor":"👨‍⚕️","male-judge":"👨‍⚖️","male-pilot":"👨‍✈️","man-heart-man":"👨‍❤️‍👨","man-kiss-man":"👨‍❤️‍💋‍👨",man:QKe,"female-farmer":"👩‍🌾","female-cook":"👩‍🍳",woman_feeding_baby:eYe,"female-student":"👩‍🎓","female-singer":"👩‍🎤","female-artist":"👩‍🎨","female-teacher":"👩‍🏫","female-factory-worker":"👩‍🏭","woman-boy-boy":"👩‍👦‍👦","woman-boy":"👩‍👦","woman-girl-boy":"👩‍👧‍👦","woman-girl-girl":"👩‍👧‍👧","woman-girl":"👩‍👧","woman-woman-boy":"👩‍👩‍👦","woman-woman-boy-boy":"👩‍👩‍👦‍👦","woman-woman-girl":"👩‍👩‍👧","woman-woman-girl-boy":"👩‍👩‍👧‍👦","woman-woman-girl-girl":"👩‍👩‍👧‍👧","female-technologist":"👩‍💻","female-office-worker":"👩‍💼","female-mechanic":"👩‍🔧","female-scientist":"👩‍🔬","female-astronaut":"👩‍🚀","female-firefighter":"👩‍🚒",woman_with_probing_cane:tYe,red_haired_woman:nYe,curly_haired_woman:rYe,bald_woman:iYe,white_haired_woman:aYe,woman_in_motorized_wheelchair:oYe,woman_in_manual_wheelchair:sYe,"female-doctor":"👩‍⚕️","female-judge":"👩‍⚖️","female-pilot":"👩‍✈️","woman-heart-man":"👩‍❤️‍👨","woman-heart-woman":"👩‍❤️‍👩","woman-kiss-man":"👩‍❤️‍💋‍👨","woman-kiss-woman":"👩‍❤️‍💋‍👩",woman:lYe,man_and_woman_holding_hands:cYe,woman_and_man_holding_hands:uYe,couple:dYe,two_men_holding_hands:fYe,men_holding_hands:hYe,two_women_holding_hands:pYe,women_holding_hands:mYe,"female-police-officer":"👮‍♀️","male-police-officer":"👮‍♂️",cop:gYe,"women-with-bunny-ears-partying":"👯‍♀️","woman-with-bunny-ears-partying":"👯‍♀️",dancers:yYe,"men-with-bunny-ears-partying":"👯‍♂️","man-with-bunny-ears-partying":"👯‍♂️",woman_with_veil:_Ye,man_with_veil:bYe,bride_with_veil:kYe,"blond-haired-woman":"👱‍♀️","blond-haired-man":"👱‍♂️",person_with_blond_hair:wYe,man_with_gua_pi_mao:vYe,"woman-wearing-turban":"👳‍♀️","man-wearing-turban":"👳‍♂️",man_with_turban:xYe,older_man:CYe,older_woman:SYe,baby:DYe,"female-construction-worker":"👷‍♀️","male-construction-worker":"👷‍♂️",construction_worker:EYe,princess:TYe,japanese_ogre:AYe,japanese_goblin:zYe,ghost:FYe,angel:$Ye,alien:MYe,space_invader:OYe,imp:NYe,skull:LYe,"woman-tipping-hand":"💁‍♀️",information_desk_person:IYe,"man-tipping-hand":"💁‍♂️","female-guard":"💂‍♀️","male-guard":"💂‍♂️",guardsman:BYe,dancer:RYe,lipstick:PYe,nail_care:jYe,"woman-getting-massage":"💆‍♀️",massage:VYe,"man-getting-massage":"💆‍♂️","woman-getting-haircut":"💇‍♀️",haircut:qYe,"man-getting-haircut":"💇‍♂️",barber:HYe,syringe:UYe,pill:WYe,kiss:GYe,love_letter:KYe,ring:YYe,gem:ZYe,couplekiss:XYe,bouquet:JYe,couple_with_heart:QYe,wedding:eZe,heartbeat:tZe,broken_heart:nZe,two_hearts:rZe,sparkling_heart:iZe,heartpulse:aZe,cupid:oZe,blue_heart:sZe,green_heart:lZe,yellow_heart:cZe,purple_heart:uZe,gift_heart:dZe,revolving_hearts:fZe,heart_decoration:hZe,diamond_shape_with_a_dot_inside:pZe,bulb:mZe,anger:gZe,bomb:yZe,zzz:_Ze,boom:bZe,collision:kZe,sweat_drops:wZe,droplet:vZe,dash:xZe,hankey:CZe,poop:SZe,shit:DZe,muscle:EZe,dizzy:TZe,speech_balloon:AZe,thought_balloon:zZe,white_flower:FZe,moneybag:$Ze,currency_exchange:MZe,heavy_dollar_sign:OZe,credit_card:NZe,yen:LZe,dollar:IZe,euro:BZe,pound:RZe,money_with_wings:PZe,chart:jZe,seat:VZe,computer:qZe,briefcase:HZe,minidisc:UZe,floppy_disk:WZe,cd:GZe,dvd:KZe,file_folder:YZe,open_file_folder:ZZe,page_with_curl:XZe,page_facing_up:JZe,date:QZe,calendar:eXe,card_index:tXe,chart_with_upwards_trend:nXe,chart_with_downwards_trend:rXe,bar_chart:iXe,clipboard:aXe,pushpin:oXe,round_pushpin:sXe,paperclip:lXe,straight_ruler:cXe,triangular_ruler:uXe,bookmark_tabs:dXe,ledger:fXe,notebook:hXe,notebook_with_decorative_cover:pXe,closed_book:mXe,book:gXe,open_book:yXe,green_book:_Xe,blue_book:bXe,orange_book:kXe,books:wXe,name_badge:vXe,scroll:xXe,memo:CXe,pencil:SXe,telephone_receiver:DXe,pager:EXe,fax:TXe,satellite_antenna:AXe,loudspeaker:zXe,mega:FXe,outbox_tray:$Xe,inbox_tray:MXe,package:"📦","e-mail":"📧",incoming_envelope:OXe,envelope_with_arrow:NXe,mailbox_closed:LXe,mailbox:IXe,mailbox_with_mail:BXe,mailbox_with_no_mail:RXe,postbox:PXe,postal_horn:jXe,newspaper:VXe,iphone:qXe,calling:HXe,vibration_mode:UXe,mobile_phone_off:WXe,no_mobile_phones:GXe,signal_strength:KXe,camera:YXe,camera_with_flash:ZXe,video_camera:XXe,tv:JXe,radio:QXe,vhs:eJe,film_projector:tJe,prayer_beads:nJe,twisted_rightwards_arrows:rJe,repeat:iJe,repeat_one:aJe,arrows_clockwise:oJe,arrows_counterclockwise:sJe,low_brightness:lJe,high_brightness:cJe,mute:uJe,speaker:dJe,sound:fJe,loud_sound:hJe,battery:pJe,electric_plug:mJe,mag:gJe,mag_right:yJe,lock_with_ink_pen:_Je,closed_lock_with_key:bJe,key:kJe,lock:wJe,unlock:vJe,bell:xJe,no_bell:CJe,bookmark:SJe,link:DJe,radio_button:EJe,back:TJe,end:AJe,on:zJe,soon:FJe,top:$Je,underage:MJe,keycap_ten:OJe,capital_abcd:NJe,abcd:LJe,symbols:IJe,abc:BJe,fire:RJe,flashlight:PJe,wrench:jJe,hammer:VJe,nut_and_bolt:qJe,hocho:HJe,knife:UJe,gun:WJe,microscope:GJe,telescope:KJe,crystal_ball:YJe,six_pointed_star:ZJe,beginner:XJe,trident:JJe,black_square_button:QJe,white_square_button:eQe,red_circle:tQe,large_blue_circle:nQe,large_orange_diamond:rQe,large_blue_diamond:iQe,small_orange_diamond:aQe,small_blue_diamond:oQe,small_red_triangle:sQe,small_red_triangle_down:lQe,arrow_up_small:cQe,arrow_down_small:uQe,om_symbol:dQe,dove_of_peace:fQe,kaaba:hQe,mosque:pQe,synagogue:mQe,menorah_with_nine_branches:gQe,clock1:yQe,clock2:_Qe,clock3:bQe,clock4:kQe,clock5:wQe,clock6:vQe,clock7:xQe,clock8:CQe,clock9:SQe,clock10:DQe,clock11:EQe,clock12:TQe,clock130:AQe,clock230:zQe,clock330:FQe,clock430:$Qe,clock530:MQe,clock630:OQe,clock730:NQe,clock830:LQe,clock930:IQe,clock1030:BQe,clock1130:RQe,clock1230:PQe,candle:jQe,mantelpiece_clock:VQe,hole:qQe,man_in_business_suit_levitating:HQe,"female-detective":"🕵️‍♀️","male-detective":"🕵️‍♂️",sleuth_or_spy:UQe,dark_sunglasses:WQe,spider:GQe,spider_web:KQe,joystick:YQe,man_dancing:ZQe,linked_paperclips:XQe,lower_left_ballpoint_pen:JQe,lower_left_fountain_pen:QQe,lower_left_paintbrush:eet,lower_left_crayon:tet,raised_hand_with_fingers_splayed:net,middle_finger:ret,reversed_hand_with_middle_finger_extended:iet,"spock-hand":"🖖",black_heart:aet,desktop_computer:oet,printer:set,three_button_mouse:cet,trackball:uet,frame_with_picture:det,card_index_dividers:fet,card_file_box:het,file_cabinet:pet,wastebasket:met,spiral_note_pad:get,spiral_calendar_pad:yet,compression:_et,old_key:bet,rolled_up_newspaper:ket,dagger_knife:wet,speaking_head_in_silhouette:vet,left_speech_bubble:xet,right_anger_bubble:Cet,ballot_box_with_ballot:Det,world_map:Eet,mount_fuji:Tet,tokyo_tower:Aet,statue_of_liberty:zet,japan:Fet,moyai:$et,grinning:Met,grin:Oet,joy:Net,smiley:Let,smile:Iet,sweat_smile:Bet,laughing:Ret,satisfied:Pet,innocent:jet,smiling_imp:Vet,wink:qet,blush:Het,yum:Uet,relieved:Wet,heart_eyes:Get,sunglasses:Ket,smirk:Yet,neutral_face:Zet,expressionless:Xet,unamused:Jet,sweat:Qet,pensive:ett,confused:ttt,confounded:ntt,kissing:rtt,kissing_heart:itt,kissing_smiling_eyes:att,kissing_closed_eyes:ott,stuck_out_tongue:stt,stuck_out_tongue_winking_eye:ltt,stuck_out_tongue_closed_eyes:ctt,disappointed:utt,worried:dtt,angry:ftt,rage:htt,cry:ptt,persevere:mtt,triumph:gtt,disappointed_relieved:ytt,frowning:_tt,anguished:btt,fearful:ktt,weary:wtt,sleepy:vtt,tired_face:xtt,grimacing:Ctt,sob:Stt,face_exhaling:Dtt,open_mouth:Ett,hushed:Ttt,cold_sweat:Att,scream:ztt,astonished:Ftt,flushed:$tt,sleeping:Mtt,face_with_spiral_eyes:Ott,dizzy_face:Ntt,face_in_clouds:Ltt,no_mouth:Itt,mask:Btt,smile_cat:Rtt,joy_cat:Ptt,smiley_cat:jtt,heart_eyes_cat:Vtt,smirk_cat:qtt,kissing_cat:Htt,pouting_cat:Utt,crying_cat_face:Wtt,scream_cat:Gtt,slightly_frowning_face:Ktt,slightly_smiling_face:Ytt,upside_down_face:Ztt,face_with_rolling_eyes:Xtt,"woman-gesturing-no":"🙅‍♀️",no_good:Jtt,"man-gesturing-no":"🙅‍♂️","woman-gesturing-ok":"🙆‍♀️",ok_woman:Qtt,"man-gesturing-ok":"🙆‍♂️","woman-bowing":"🙇‍♀️","man-bowing":"🙇‍♂️",bow:ent,see_no_evil:tnt,hear_no_evil:nnt,speak_no_evil:rnt,"woman-raising-hand":"🙋‍♀️",raising_hand:int,"man-raising-hand":"🙋‍♂️",raised_hands:ant,"woman-frowning":"🙍‍♀️",person_frowning:ont,"man-frowning":"🙍‍♂️","woman-pouting":"🙎‍♀️",person_with_pouting_face:snt,"man-pouting":"🙎‍♂️",pray:lnt,rocket:cnt,helicopter:unt,steam_locomotive:dnt,railway_car:fnt,bullettrain_side:hnt,bullettrain_front:pnt,train2:mnt,metro:gnt,light_rail:ynt,station:_nt,tram:bnt,train:knt,bus:wnt,oncoming_bus:vnt,trolleybus:xnt,busstop:Cnt,minibus:Snt,ambulance:Dnt,fire_engine:Ent,police_car:Tnt,oncoming_police_car:Ant,taxi:znt,oncoming_taxi:Fnt,car:$nt,red_car:Mnt,oncoming_automobile:Ont,blue_car:Nnt,truck:Lnt,articulated_lorry:Int,tractor:Bnt,monorail:Rnt,mountain_railway:Pnt,suspension_railway:jnt,mountain_cableway:Vnt,aerial_tramway:qnt,ship:Hnt,"woman-rowing-boat":"🚣‍♀️","man-rowing-boat":"🚣‍♂️",rowboat:Unt,speedboat:Wnt,traffic_light:Gnt,vertical_traffic_light:Knt,construction:Ynt,rotating_light:Znt,triangular_flag_on_post:Xnt,door:Jnt,no_entry_sign:Qnt,smoking:ert,no_smoking:trt,put_litter_in_its_place:nrt,do_not_litter:rrt,potable_water:irt,"non-potable_water":"🚱",bike:art,no_bicycles:ort,"woman-biking":"🚴‍♀️","man-biking":"🚴‍♂️",bicyclist:srt,"woman-mountain-biking":"🚵‍♀️","man-mountain-biking":"🚵‍♂️",mountain_bicyclist:lrt,"woman-walking":"🚶‍♀️","man-walking":"🚶‍♂️",walking:crt,no_pedestrians:urt,children_crossing:drt,mens:frt,womens:hrt,restroom:prt,baby_symbol:mrt,toilet:grt,wc:yrt,shower:_rt,bath:brt,bathtub:krt,passport_control:wrt,customs:vrt,baggage_claim:xrt,left_luggage:Crt,couch_and_lamp:Srt,sleeping_accommodation:Drt,shopping_bags:Ert,bellhop_bell:Trt,bed:Art,place_of_worship:zrt,octagonal_sign:Frt,shopping_trolley:$rt,hindu_temple:Mrt,hut:Ort,elevator:Nrt,hammer_and_wrench:Lrt,shield:Irt,oil_drum:Brt,motorway:Rrt,railway_track:Prt,motor_boat:jrt,small_airplane:Vrt,airplane_departure:qrt,airplane_arriving:Hrt,satellite:Urt,passenger_ship:Wrt,scooter:Grt,motor_scooter:Krt,canoe:Yrt,sled:Zrt,flying_saucer:Xrt,skateboard:Jrt,auto_rickshaw:Qrt,pickup_truck:eit,roller_skate:tit,large_orange_circle:nit,large_yellow_circle:rit,large_green_circle:iit,large_purple_circle:ait,large_brown_circle:oit,large_red_square:sit,large_blue_square:lit,large_orange_square:cit,large_yellow_square:uit,large_green_square:dit,large_purple_square:fit,large_brown_square:hit,pinched_fingers:pit,white_heart:mit,brown_heart:git,pinching_hand:yit,zipper_mouth_face:_it,money_mouth_face:bit,face_with_thermometer:kit,nerd_face:wit,thinking_face:vit,face_with_head_bandage:xit,robot_face:Cit,hugging_face:Sit,the_horns:Dit,sign_of_the_horns:Eit,call_me_hand:Tit,raised_back_of_hand:Ait,"left-facing_fist":"🤛","right-facing_fist":"🤜",handshake:zit,crossed_fingers:Fit,hand_with_index_and_middle_fingers_crossed:$it,i_love_you_hand_sign:Mit,face_with_cowboy_hat:Oit,clown_face:Nit,nauseated_face:Lit,rolling_on_the_floor_laughing:Iit,drooling_face:Bit,lying_face:Rit,"woman-facepalming":"🤦‍♀️","man-facepalming":"🤦‍♂️",face_palm:Pit,sneezing_face:jit,face_with_raised_eyebrow:Vit,face_with_one_eyebrow_raised:qit,"star-struck":"🤩",grinning_face_with_star_eyes:Hit,zany_face:Uit,grinning_face_with_one_large_and_one_small_eye:Wit,shushing_face:Git,face_with_finger_covering_closed_lips:Kit,face_with_symbols_on_mouth:Yit,serious_face_with_symbols_covering_mouth:Zit,face_with_hand_over_mouth:Xit,smiling_face_with_smiling_eyes_and_hand_covering_mouth:Jit,face_vomiting:Qit,face_with_open_mouth_vomiting:eat,exploding_head:tat,shocked_face_with_exploding_head:nat,pregnant_woman:rat,"breast-feeding":"🤱",palms_up_together:iat,selfie:aat,prince:oat,woman_in_tuxedo:sat,man_in_tuxedo:lat,person_in_tuxedo:cat,mrs_claus:uat,mother_christmas:dat,"woman-shrugging":"🤷‍♀️","man-shrugging":"🤷‍♂️",shrug:fat,"woman-cartwheeling":"🤸‍♀️","man-cartwheeling":"🤸‍♂️",person_doing_cartwheel:hat,"woman-juggling":"🤹‍♀️","man-juggling":"🤹‍♂️",juggling:pat,fencer:mat,"woman-wrestling":"🤼‍♀️","man-wrestling":"🤼‍♂️",wrestlers:gat,"woman-playing-water-polo":"🤽‍♀️","man-playing-water-polo":"🤽‍♂️",water_polo:yat,"woman-playing-handball":"🤾‍♀️","man-playing-handball":"🤾‍♂️",handball:_at,diving_mask:bat,wilted_flower:kat,drum_with_drumsticks:wat,clinking_glasses:vat,tumbler_glass:xat,spoon:Cat,goal_net:Sat,first_place_medal:Dat,second_place_medal:Eat,third_place_medal:Tat,boxing_glove:Aat,martial_arts_uniform:zat,curling_stone:Fat,lacrosse:$at,softball:Mat,flying_disc:Oat,croissant:Nat,avocado:Lat,cucumber:Iat,bacon:Bat,potato:Rat,carrot:Pat,baguette_bread:jat,green_salad:Vat,shallow_pan_of_food:qat,stuffed_flatbread:Hat,egg:Uat,glass_of_milk:Wat,peanuts:Gat,kiwifruit:Kat,pancakes:Yat,dumpling:Zat,fortune_cookie:Xat,takeout_box:Jat,chopsticks:Qat,bowl_with_spoon:eot,cup_with_straw:tot,coconut:not,broccoli:rot,pie:iot,pretzel:aot,cut_of_meat:oot,sandwich:sot,canned_food:lot,leafy_green:cot,mango:uot,moon_cake:dot,bagel:fot,smiling_face_with_3_hearts:hot,yawning_face:pot,smiling_face_with_tear:mot,partying_face:got,woozy_face:yot,hot_face:_ot,cold_face:bot,ninja:kot,disguised_face:wot,pleading_face:vot,sari:xot,lab_coat:Cot,goggles:Sot,hiking_boot:Dot,womans_flat_shoe:Eot,crab:Tot,lion_face:Aot,scorpion:zot,turkey:Fot,unicorn_face:$ot,eagle:Mot,duck:Oot,bat:Not,shark:Lot,owl:Iot,fox_face:Bot,butterfly:Rot,deer:Pot,gorilla:jot,lizard:Vot,rhinoceros:qot,shrimp:Hot,squid:Uot,giraffe_face:Wot,zebra_face:Got,hedgehog:Kot,sauropod:Yot,"t-rex":"🦖",cricket:Zot,kangaroo:Xot,llama:Jot,peacock:Qot,hippopotamus:est,parrot:tst,raccoon:nst,lobster:rst,mosquito:ist,microbe:ast,badger:ost,swan:sst,mammoth:lst,dodo:cst,sloth:ust,otter:dst,orangutan:fst,skunk:hst,flamingo:pst,oyster:mst,beaver:gst,bison:yst,seal:_st,guide_dog:bst,probing_cane:kst,bone:wst,leg:vst,foot:xst,tooth:Cst,female_superhero:Sst,male_superhero:Dst,superhero:Est,female_supervillain:Tst,male_supervillain:Ast,supervillain:zst,safety_vest:Fst,ear_with_hearing_aid:$st,motorized_wheelchair:Mst,manual_wheelchair:Ost,mechanical_arm:Nst,mechanical_leg:Lst,cheese_wedge:Ist,cupcake:Bst,salt:Rst,beverage_box:Pst,garlic:jst,onion:Vst,falafel:qst,waffle:Hst,butter:Ust,mate_drink:Wst,ice_cube:Gst,bubble_tea:Kst,woman_standing:Yst,man_standing:Zst,standing_person:Xst,woman_kneeling:Jst,man_kneeling:Qst,kneeling_person:elt,deaf_woman:tlt,deaf_man:nlt,deaf_person:rlt,face_with_monocle:ilt,farmer:alt,cook:olt,person_feeding_baby:slt,mx_claus:llt,student:clt,singer:ult,artist:dlt,teacher:flt,factory_worker:hlt,technologist:plt,office_worker:mlt,mechanic:glt,scientist:ylt,astronaut:_lt,firefighter:blt,people_holding_hands:klt,person_with_probing_cane:wlt,red_haired_person:vlt,curly_haired_person:xlt,bald_person:Clt,white_haired_person:Slt,person_in_motorized_wheelchair:Dlt,person_in_manual_wheelchair:Elt,health_worker:Tlt,judge:Alt,pilot:zlt,adult:Flt,child:$lt,older_adult:Mlt,woman_with_beard:Olt,man_with_beard:Nlt,bearded_person:Llt,person_with_headscarf:Ilt,woman_in_steamy_room:Blt,man_in_steamy_room:Rlt,person_in_steamy_room:Plt,woman_climbing:jlt,person_climbing:Vlt,man_climbing:qlt,woman_in_lotus_position:Hlt,person_in_lotus_position:Ult,man_in_lotus_position:Wlt,female_mage:Glt,mage:Klt,male_mage:Ylt,female_fairy:Zlt,fairy:Xlt,male_fairy:Jlt,female_vampire:Qlt,vampire:ect,male_vampire:tct,mermaid:nct,merman:rct,merperson:ict,female_elf:act,male_elf:oct,elf:sct,female_genie:lct,male_genie:cct,genie:uct,female_zombie:dct,male_zombie:fct,zombie:hct,brain:pct,orange_heart:mct,billed_cap:gct,scarf:yct,gloves:_ct,coat:bct,socks:kct,red_envelope:wct,firecracker:vct,jigsaw:xct,test_tube:Cct,petri_dish:Sct,dna:Dct,compass:Ect,abacus:Tct,fire_extinguisher:Act,toolbox:zct,bricks:Fct,magnet:$ct,luggage:Mct,lotion_bottle:Oct,thread:Nct,yarn:Lct,safety_pin:Ict,teddy_bear:Bct,broom:Rct,basket:Pct,roll_of_paper:jct,soap:Vct,sponge:qct,receipt:Hct,nazar_amulet:Uct,ballet_shoes:Wct,"one-piece_swimsuit":"🩱",briefs:Gct,shorts:Kct,thong_sandal:Yct,drop_of_blood:Zct,adhesive_bandage:Xct,stethoscope:Jct,"yo-yo":"🪀",kite:Qct,parachute:eut,boomerang:tut,magic_wand:nut,pinata:rut,nesting_dolls:iut,ringed_planet:aut,chair:out,razor:sut,axe:lut,diya_lamp:cut,banjo:uut,military_helmet:dut,accordion:fut,long_drum:hut,coin:put,carpentry_saw:mut,screwdriver:gut,ladder:yut,hook:_ut,mirror:but,window:kut,plunger:wut,sewing_needle:vut,knot:xut,bucket:Cut,mouse_trap:Sut,toothbrush:Dut,headstone:Eut,placard:Tut,rock:Aut,fly:zut,worm:Fut,beetle:$ut,cockroach:Mut,potted_plant:Out,wood:Nut,feather:Lut,anatomical_heart:Iut,lungs:But,people_hugging:Rut,blueberries:Put,bell_pepper:jut,olive:Vut,flatbread:qut,tamale:Hut,fondue:Uut,teapot:Wut,bangbang:Gut,interrobang:Kut,tm:Yut,information_source:Zut,left_right_arrow:Xut,arrow_up_down:Jut,arrow_upper_left:Qut,arrow_upper_right:edt,arrow_lower_right:tdt,arrow_lower_left:ndt,leftwards_arrow_with_hook:rdt,arrow_right_hook:idt,watch:adt,hourglass:odt,keyboard:sdt,eject:ldt,fast_forward:cdt,rewind:udt,arrow_double_up:ddt,arrow_double_down:fdt,black_right_pointing_double_triangle_with_vertical_bar:hdt,black_left_pointing_double_triangle_with_vertical_bar:pdt,black_right_pointing_triangle_with_double_vertical_bar:mdt,alarm_clock:gdt,stopwatch:ydt,timer_clock:_dt,hourglass_flowing_sand:bdt,double_vertical_bar:kdt,black_square_for_stop:wdt,black_circle_for_record:vdt,m:xdt,black_small_square:Cdt,white_small_square:Sdt,arrow_forward:Ddt,arrow_backward:Edt,white_medium_square:Tdt,black_medium_square:Adt,white_medium_small_square:zdt,black_medium_small_square:Fdt,sunny:$dt,cloud:Mdt,umbrella:Odt,snowman:Ndt,comet:Ldt,phone:Idt,telephone:Bdt,ballot_box_with_check:Rdt,shamrock:Pdt,point_up:jdt,skull_and_crossbones:Vdt,radioactive_sign:qdt,biohazard_sign:Hdt,orthodox_cross:Udt,star_and_crescent:Wdt,peace_symbol:Gdt,yin_yang:Kdt,wheel_of_dharma:Ydt,white_frowning_face:Zdt,relaxed:Xdt,female_sign:Jdt,male_sign:Qdt,gemini:eft,cancer:tft,leo:nft,virgo:rft,libra:ift,scorpius:aft,chess_pawn:oft,spades:sft,clubs:lft,hearts:cft,diamonds:uft,hotsprings:dft,recycle:fft,infinity:hft,wheelchair:pft,hammer_and_pick:mft,crossed_swords:gft,medical_symbol:yft,staff_of_aesculapius:_ft,scales:bft,alembic:kft,gear:wft,atom_symbol:vft,fleur_de_lis:xft,warning:Cft,zap:Sft,transgender_symbol:Dft,white_circle:Eft,black_circle:Tft,coffin:Aft,funeral_urn:zft,soccer:Fft,baseball:$ft,snowman_without_snow:Mft,partly_sunny:Oft,thunder_cloud_and_rain:Nft,ophiuchus:Lft,pick:Ift,helmet_with_white_cross:Bft,chains:Rft,no_entry:Pft,shinto_shrine:jft,church:Vft,mountain:qft,umbrella_on_ground:Hft,fountain:Uft,golf:Wft,ferry:Gft,boat:Kft,sailboat:Yft,skier:Zft,ice_skate:Xft,"woman-bouncing-ball":"⛹️‍♀️","man-bouncing-ball":"⛹️‍♂️",person_with_ball:Jft,tent:Qft,fuelpump:eht,scissors:tht,airplane:nht,email:rht,envelope:iht,fist:aht,hand:oht,raised_hand:sht,v:lht,writing_hand:cht,pencil2:uht,black_nib:dht,heavy_check_mark:fht,heavy_multiplication_x:hht,latin_cross:pht,star_of_david:mht,eight_spoked_asterisk:ght,eight_pointed_black_star:yht,snowflake:_ht,sparkle:bht,x:kht,negative_squared_cross_mark:wht,heavy_heart_exclamation_mark_ornament:vht,heart_on_fire:xht,mending_heart:Cht,heart:Sht,arrow_right:Dht,curly_loop:Eht,loop:Tht,arrow_heading_up:Aht,arrow_heading_down:zht,arrow_left:Fht,arrow_up:$ht,arrow_down:Mht,black_large_square:Oht,white_large_square:Nht,star:Lht,o:Iht,wavy_dash:Bht,part_alternation_mark:Rht,congratulations:Pht,secret:jht};var Xq=NPe,Pl=Vht,qht=/:([a-zA-Z0-9_\-\+]+):/g,Hht=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function fp(e){var t=e.indexOf(":");return t>-1?t===e.length-1?(e=e.substring(0,t),fp(e)):(e=e.substr(t+1),fp(e)):e}function Jq(e){return typeof e=="string"&&e.length>0?":"+e+":":e}function Uht(e){return typeof e=="string"&&e[0]!==":"?Jq(e):e}var Wht=String.fromCharCode(65039),Ght=new RegExp(Wht,"g");function hp(e){return e.replace(Ght,"")}var vS=Object.keys(Pl).reduce(function(e,t){return e[hp(Pl[t])]=t,e},{}),_n={emoji:Pl};_n._get=function(t){return vS[hp(t)]?t:Pl.hasOwnProperty(t)?Pl[t]:Uht(t)};_n.get=function(t){return t=fp(t),_n._get(t)};_n.find=function(t){return _n.findByName(t)||_n.findByCode(t)};_n.findByName=function(t){var n=fp(t),r=Pl[n];return r?{emoji:r,key:n}:void 0};_n.findByCode=function(t){var n=hp(t),r=vS[n];return r?{emoji:Pl[r],key:r}:void 0};_n.hasEmoji=function(t){return _n.hasEmojiByName(t)||_n.hasEmojiByCode(t)};_n.hasEmojiByName=function(t){var n=_n.findByName(t);return!!n&&n.key===fp(t)};_n.hasEmojiByCode=function(t){var n=_n.findByCode(t);return!!n&&hp(n.emoji)===hp(t)};_n.which=function(t,n){var r=hp(t),i=vS[r];return n?Jq(i):i};_n.emojify=function(t,n,r){return t?t.split(qht).map(function(a,o){if(o%2===0)return a;var s=_n._get(a),l=s.indexOf(":")>-1;return l&&typeof n=="function"?n(a):!l&&typeof r=="function"?r(s,a):s}).join(""):""};_n.random=function(){var t=Object.keys(Pl),n=Math.floor(Math.random()*t.length),r=t[n],i=_n._get(r);return{key:r,emoji:i}};_n.search=function(t){var n=Object.keys(Pl),r=fp(t),i=n.filter(function(a){return a.toString().indexOf(r)===0});return i.map(function(a){return{key:a,emoji:_n._get(a)}})};_n.unemojify=function(t){if(!t)return"";var n=Xq(t);return n.map(function(r){return _n.which(r,!0)||r}).join("")};_n.replace=function(t,n,r){if(!t)return"";var i=typeof n=="function"?n:function(){return n},a=Xq(t),o=a.map(function(s,l){var c=_n.findByCode(s);return c&&r&&a[l+1]===" "&&(a[l+1]=""),c?i(c):s}).join("");return r?o.replace(Hht,""):o};_n.strip=function(t){return _n.replace(t,"",!0)};var Kht=_n,Yht=Kht;const g6=Qo(Yht),NM=[{name:"angry",emoji:"😠",tags:["mad","annoyed"],description:"angry face",emoticons:[">:(",">:[",">:-(",">:-[",">=(",">=[",">=-(",">=-["]},{name:"blush",emoji:"😊",tags:["proud"],description:"smiling face with smiling eyes",emoticons:[':")',':"]',':"D',':-")',':-"]',':-"D','=")','="]','="D','=-")','=-"]','=-"D']},{name:"broken_heart",emoji:"💔",tags:[],description:"broken heart",emoticons:["<\\3","</3"]},{name:"confused",emoji:"😕",tags:[],description:"confused face",emoticons:[":/",":\\",":-/",":-\\","=/","=\\","=-/","=-\\"]},{name:"cry",emoji:"😢",tags:["sad","tear"],description:"crying face",emoticons:[":,(",":,[",":,|",":,-(",":,-[",":,-|",":'(",":'[",":'|",":'-(",":'-[",":'-|","=,(","=,[","=,|","=,-(","=,-[","=,-|","='(","='[","='|","='-(","='-[","='-|"]},{name:"frowning",emoji:"😦",tags:[],description:"frowning face with open mouth",emoticons:[":(",":[",":-(",":-[","=(","=[","=-(","=-["]},{name:"heart",emoji:"❤️",tags:["love"],description:"red heart",emoticons:["<3"]},{name:"imp",emoji:"👿",tags:["angry","devil","evil","horns"],description:"angry face with horns",emoticons:["]:(","]:[","]:-(","]:-[","]=(","]=[","]=-(","]=-["]},{name:"innocent",emoji:"😇",tags:["angel"],description:"smiling face with halo",emoticons:["o:)","o:]","o:D","o:-)","o:-]","o:-D","o=)","o=]","o=D","o=-)","o=-]","o=-D","O:)","O:]","O:D","O:-)","O:-]","O:-D","O=)","O=]","O=D","O=-)","O=-]","O=-D","0:)","0:]","0:D","0:-)","0:-]","0:-D","0=)","0=]","0=D","0=-)","0=-]","0=-D"]},{name:"joy",emoji:"😂",tags:["tears"],description:"face with tears of joy",emoticons:[":,)",":,]",":,D",":,-)",":,-]",":,-D",":')",":']",":'D",":'-)",":'-]",":'-D","=,)","=,]","=,D","=,-)","=,-]","=,-D","=')","=']","='D","='-)","='-]","='-D"]},{name:"kissing",emoji:"😗",tags:[],description:"kissing face",emoticons:[":*",":-*","=*","=-*"]},{name:"laughing",emoji:"😆",tags:["happy","haha"],description:"grinning squinting face",emoticons:["x)","x]","xD","x-)","x-]","x-D","X)","X]","X-)","X-]","X-D"]},{name:"man",emoji:"👨",tags:["mustache","father","dad"],description:"man",emoticons:[":3",":-3","=3","=-3",";3",";-3","x3","x-3","X3","X-3"]},{name:"neutral_face",emoji:"😐",tags:["meh"],description:"neutral face",emoticons:[":|",":-|","=|","=-|"]},{name:"no_mouth",emoji:"😶",tags:["mute","silence"],description:"face without mouth",emoticons:[":-"]},{name:"open_mouth",emoji:"😮",tags:["surprise","impressed","wow"],description:"face with open mouth",emoticons:[":o",":O",":0",":-o",":-O",":-0","=o","=O","=0","=-o","=-O","=-0"]},{name:"rage",emoji:"😡",tags:["angry"],description:"pouting face",emoticons:[":@",":-@","=@","=-@"]},{name:"smile",emoji:"😄",tags:["happy","joy","laugh","pleased"],description:"grinning face with smiling eyes",emoticons:[":D",":-D","=D","=-D"]},{name:"smiley",emoji:"😃",tags:["happy","joy","haha"],description:"grinning face with big eyes",emoticons:[":)",":]",":-)",":-]","=)","=]","=-)","=-]"]},{name:"smiling_imp",emoji:"😈",tags:["devil","evil","horns"],description:"smiling face with horns",emoticons:["]:)","]:]","]:D","]:-)","]:-]","]:-D","]=)","]=]","]=D","]=-)","]=-]","]=-D"]},{name:"sob",emoji:"😭",tags:["sad","cry","bawling"],description:"loudly crying face",emoticons:[":,'(",":,'[",":,'-(",":,'-[",":',(",":',[",":',-(",":',-[","=,'(","=,'[","=,'-(","=,'-[","=',(","=',[","=',-(","=',-["]},{name:"stuck_out_tongue",emoji:"😛",tags:[],description:"face with tongue",emoticons:[":p",":P",":d",":-p",":-P",":-d","=p","=P","=d","=-p","=-P","=-d"]},{name:"stuck_out_tongue_closed_eyes",emoji:"😝",tags:["prank"],description:"squinting face with tongue",emoticons:["xP","x-p","x-P","x-d","Xp","Xd","X-p","X-P","X-d"]},{name:"stuck_out_tongue_winking_eye",emoji:"😜",tags:["prank","silly"],description:"winking face with tongue",emoticons:[";p",";P",";d",";-p",";-P",";-d"]},{name:"sunglasses",emoji:"😎",tags:["cool"],description:"smiling face with sunglasses",emoticons:["8)","8]","8D","8-)","8-]","8-D","B)","B]","B-)","B-]","B-D"]},{name:"sweat",emoji:"😓",tags:[],description:"downcast face with sweat",emoticons:[",:(",",:[",",:-(",",:-[",",=(",",=[",",=-(",",=-[","':(","':[","':-(","':-[","'=(","'=[","'=-(","'=-["]},{name:"sweat_smile",emoji:"😅",tags:["hot"],description:"grinning face with sweat",emoticons:[",:)",",:]",",:D",",:-)",",:-]",",:-D",",=)",",=]",",=D",",=-)",",=-]",",=-D","':)","':]","':D","':-)","':-]","':-D","'=)","'=]","'=D","'=-)","'=-]","'=-D"]},{name:"unamused",emoji:"😒",tags:["meh"],description:"unamused face",emoticons:[":$",":s",":z",":S",":Z",":-$",":-s",":-z",":-S",":-Z","=$","=s","=z","=S","=Z","=-$","=-s","=-z","=-S","=-Z"]},{name:"wink",emoji:"😉",tags:["flirt"],description:"winking face",emoticons:[";)",";]",";D",";-)",";-]",";-D"]}];function qv(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Zht={}.hasOwnProperty,Qq=function(e,t,n,r){let i,a;typeof t=="string"||t instanceof RegExp?(a=[[t,n]],i=r):(a=t,i=n),i||(i={});const o=Lv(i.ignore||[]),s=Xht(a);let l=-1;for(;++l<s.length;)zV(e,"text",c);return e;function c(f,h){let m=-1,g;for(;++m<h.length;){const b=h[m];if(o(b,g?g.children.indexOf(b):void 0,g))return;g=b}if(g)return u(f,h)}function u(f,h){const m=h[h.length-1],g=s[l][0],b=s[l][1];let C=0;const w=m.children.indexOf(f);let k=!1,S=[];g.lastIndex=0;let E=g.exec(f.value);for(;E;){const A=E.index,_={index:E.index,input:E.input,stack:[...h,f]};let T=b(...E,_);if(typeof T=="string"&&(T=T.length>0?{type:"text",value:T}:void 0),T!==!1&&(C!==A&&S.push({type:"text",value:f.value.slice(C,A)}),Array.isArray(T)?S.push(...T):T&&S.push(T),C=A+E[0].length,k=!0),!g.global)break;E=g.exec(f.value)}return k?(C<f.value.length&&S.push({type:"text",value:f.value.slice(C)}),m.children.splice(w,1,...S)):S=[f],w+S.length}};function Xht(e){const t=[];if(typeof e!="object")throw new TypeError("Expected array or object as schema");if(Array.isArray(e)){let n=-1;for(;++n<e.length;)t.push([LM(e[n][0]),IM(e[n][1])])}else{let n;for(n in e)Zht.call(e,n)&&t.push([LM(n),IM(e[n])])}return t}function LM(e){return typeof e=="string"?new RegExp(qv(e),"g"):e}function IM(e){return typeof e=="function"?e:()=>e}const Jht=/:\+1:|:-1:|:[\w-]+:/g,Qht=/[$@|*'",;.=:\-)([\]\\/<>038BOopPsSdDxXzZ]{2,5}/g,BM=/_/g,ept=/(?:_|-(?!1))/g,tpt={padSpaceAfter:!1,emoticon:!1,accessible:!1};function npt(e){const t=Object.assign({},tpt,e),n=!!t.padSpaceAfter,r=!!t.emoticon,i=!!t.accessible;function a(u,f){return{type:"text",meta:null,value:u,data:{hName:"span",hProperties:{role:"img",ariaLabel:f},hChildren:[{type:"text",value:u}]}}}function o(u){const f=NM.find(w=>w.emoticons.includes(u)),h=NM.find(w=>w.emoticons.includes(u.slice(0,-1))),m=f||h;if(!m)return!1;const g=!f&&h?u.slice(-1):"",b=n?" ":"",C=m.emoji+b+g;return i?a(C,m.name+" emoticon"):C}function s(u){let f=g6.get(u);if(u.endsWith("_man:")&&f===u){const h="man-"+u.slice(1,-5).replace(BM,"-"),m=g6.get(h);m!==h&&(f=m)}else if(u.endsWith("_woman:")&&f===u){const h="woman-"+u.slice(1,-7).replace(BM,"-"),m=g6.get(h);m!==h&&(f=m)}if(f===u)return!1;if(n&&(f=f+" "),i){const h=u.slice(1,-1).replace(ept," ")+" emoji";return a(f,h)}return f}const l=[[Jht,s]];r&&l.push([Qht,o]);function c(u){Qq(u,l)}return c}/*! Copyright Twitter Inc. and other contributors. Licensed under MIT */var rpt=function(){var e={base:"https://twemoji.maxcdn.com/v/14.0.2/",ext:".png",size:"72x72",className:"emoji",convert:{fromCodePoint:k,toCodePoint:_},onerror:function(){this.parentNode&&this.parentNode.replaceChild(l(this.alt,!1),this)},parse:S,replace:E,test:A},t={"&":"&","<":"<",">":">","'":"'",'"':"""},n=/(?:\ud83d\udc68\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffc-\udfff]|\ud83e\uddd1\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffb\udffd-\udfff]|\ud83e\uddd1\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffb\udffc\udffe\udfff]|\ud83e\uddd1\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffb-\udffd\udfff]|\ud83e\uddd1\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffb-\udffe]|\ud83d\udc68\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffb\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffc-\udfff]|\ud83d\udc68\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffc\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb\udffd-\udfff]|\ud83d\udc68\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffd\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb\udffc\udffe\udfff]|\ud83d\udc68\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffe\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb-\udffd\udfff]|\ud83d\udc68\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udfff\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb-\udffe]|\ud83d\udc69\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffc-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffc-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb\udffd-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffb\udffd-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb\udffc\udffe\udfff]|\ud83d\udc69\ud83c\udffd\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffb\udffc\udffe\udfff]|\ud83d\udc69\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffe\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb-\udffd\udfff]|\ud83d\udc69\ud83c\udffe\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffb-\udffd\udfff]|\ud83d\udc69\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udfff\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb-\udffe]|\ud83d\udc69\ud83c\udfff\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffb-\udffe]|\ud83e\uddd1\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffc-\udfff]|\ud83e\uddd1\ud83c\udffb\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffb\udffd-\udfff]|\ud83e\uddd1\ud83c\udffc\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffb\udffc\udffe\udfff]|\ud83e\uddd1\ud83c\udffd\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffb-\udffd\udfff]|\ud83e\uddd1\ud83c\udffe\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffb-\udffe]|\ud83e\uddd1\ud83c\udfff\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68|\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d[\udc68\udc69]|\ud83e\udef1\ud83c\udffb\u200d\ud83e\udef2\ud83c[\udffc-\udfff]|\ud83e\udef1\ud83c\udffc\u200d\ud83e\udef2\ud83c[\udffb\udffd-\udfff]|\ud83e\udef1\ud83c\udffd\u200d\ud83e\udef2\ud83c[\udffb\udffc\udffe\udfff]|\ud83e\udef1\ud83c\udffe\u200d\ud83e\udef2\ud83c[\udffb-\udffd\udfff]|\ud83e\udef1\ud83c\udfff\u200d\ud83e\udef2\ud83c[\udffb-\udffe]|\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc68|\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d[\udc68\udc69]|\ud83e\uddd1\u200d\ud83e\udd1d\u200d\ud83e\uddd1|\ud83d\udc6b\ud83c[\udffb-\udfff]|\ud83d\udc6c\ud83c[\udffb-\udfff]|\ud83d\udc6d\ud83c[\udffb-\udfff]|\ud83d\udc8f\ud83c[\udffb-\udfff]|\ud83d\udc91\ud83c[\udffb-\udfff]|\ud83e\udd1d\ud83c[\udffb-\udfff]|\ud83d[\udc6b-\udc6d\udc8f\udc91]|\ud83e\udd1d)|(?:\ud83d[\udc68\udc69]|\ud83e\uddd1)(?:\ud83c[\udffb-\udfff])?\u200d(?:\u2695\ufe0f|\u2696\ufe0f|\u2708\ufe0f|\ud83c[\udf3e\udf73\udf7c\udf84\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e[\uddaf-\uddb3\uddbc\uddbd])|(?:\ud83c[\udfcb\udfcc]|\ud83d[\udd74\udd75]|\u26f9)((?:\ud83c[\udffb-\udfff]|\ufe0f)\u200d[\u2640\u2642]\ufe0f)|(?:\ud83c[\udfc3\udfc4\udfca]|\ud83d[\udc6e\udc70\udc71\udc73\udc77\udc81\udc82\udc86\udc87\ude45-\ude47\ude4b\ude4d\ude4e\udea3\udeb4-\udeb6]|\ud83e[\udd26\udd35\udd37-\udd39\udd3d\udd3e\uddb8\uddb9\uddcd-\uddcf\uddd4\uddd6-\udddd])(?:\ud83c[\udffb-\udfff])?\u200d[\u2640\u2642]\ufe0f|(?:\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83c\udff3\ufe0f\u200d\u26a7\ufe0f|\ud83c\udff3\ufe0f\u200d\ud83c\udf08|\ud83d\ude36\u200d\ud83c\udf2b\ufe0f|\u2764\ufe0f\u200d\ud83d\udd25|\u2764\ufe0f\u200d\ud83e\ude79|\ud83c\udff4\u200d\u2620\ufe0f|\ud83d\udc15\u200d\ud83e\uddba|\ud83d\udc3b\u200d\u2744\ufe0f|\ud83d\udc41\u200d\ud83d\udde8|\ud83d\udc68\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83d\udc6f\u200d\u2640\ufe0f|\ud83d\udc6f\u200d\u2642\ufe0f|\ud83d\ude2e\u200d\ud83d\udca8|\ud83d\ude35\u200d\ud83d\udcab|\ud83e\udd3c\u200d\u2640\ufe0f|\ud83e\udd3c\u200d\u2642\ufe0f|\ud83e\uddde\u200d\u2640\ufe0f|\ud83e\uddde\u200d\u2642\ufe0f|\ud83e\udddf\u200d\u2640\ufe0f|\ud83e\udddf\u200d\u2642\ufe0f|\ud83d\udc08\u200d\u2b1b)|[#*0-9]\ufe0f?\u20e3|(?:[©®\u2122\u265f]\ufe0f)|(?:\ud83c[\udc04\udd70\udd71\udd7e\udd7f\ude02\ude1a\ude2f\ude37\udf21\udf24-\udf2c\udf36\udf7d\udf96\udf97\udf99-\udf9b\udf9e\udf9f\udfcd\udfce\udfd4-\udfdf\udff3\udff5\udff7]|\ud83d[\udc3f\udc41\udcfd\udd49\udd4a\udd6f\udd70\udd73\udd76-\udd79\udd87\udd8a-\udd8d\udda5\udda8\uddb1\uddb2\uddbc\uddc2-\uddc4\uddd1-\uddd3\udddc-\uddde\udde1\udde3\udde8\uddef\uddf3\uddfa\udecb\udecd-\udecf\udee0-\udee5\udee9\udef0\udef3]|[\u203c\u2049\u2139\u2194-\u2199\u21a9\u21aa\u231a\u231b\u2328\u23cf\u23ed-\u23ef\u23f1\u23f2\u23f8-\u23fa\u24c2\u25aa\u25ab\u25b6\u25c0\u25fb-\u25fe\u2600-\u2604\u260e\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262a\u262e\u262f\u2638-\u263a\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267b\u267f\u2692-\u2697\u2699\u269b\u269c\u26a0\u26a1\u26a7\u26aa\u26ab\u26b0\u26b1\u26bd\u26be\u26c4\u26c5\u26c8\u26cf\u26d1\u26d3\u26d4\u26e9\u26ea\u26f0-\u26f5\u26f8\u26fa\u26fd\u2702\u2708\u2709\u270f\u2712\u2714\u2716\u271d\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u2764\u27a1\u2934\u2935\u2b05-\u2b07\u2b1b\u2b1c\u2b50\u2b55\u3030\u303d\u3297\u3299])(?:\ufe0f|(?!\ufe0e))|(?:(?:\ud83c[\udfcb\udfcc]|\ud83d[\udd74\udd75\udd90]|[\u261d\u26f7\u26f9\u270c\u270d])(?:\ufe0f|(?!\ufe0e))|(?:\ud83c[\udf85\udfc2-\udfc4\udfc7\udfca]|\ud83d[\udc42\udc43\udc46-\udc50\udc66-\udc69\udc6e\udc70-\udc78\udc7c\udc81-\udc83\udc85-\udc87\udcaa\udd7a\udd95\udd96\ude45-\ude47\ude4b-\ude4f\udea3\udeb4-\udeb6\udec0\udecc]|\ud83e[\udd0c\udd0f\udd18-\udd1c\udd1e\udd1f\udd26\udd30-\udd39\udd3d\udd3e\udd77\uddb5\uddb6\uddb8\uddb9\uddbb\uddcd-\uddcf\uddd1-\udddd\udec3-\udec5\udef0-\udef6]|[\u270a\u270b]))(?:\ud83c[\udffb-\udfff])?|(?:\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc65\udb40\udc6e\udb40\udc67\udb40\udc7f|\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc73\udb40\udc63\udb40\udc74\udb40\udc7f|\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc77\udb40\udc6c\udb40\udc73\udb40\udc7f|\ud83c\udde6\ud83c[\udde8-\uddec\uddee\uddf1\uddf2\uddf4\uddf6-\uddfa\uddfc\uddfd\uddff]|\ud83c\udde7\ud83c[\udde6\udde7\udde9-\uddef\uddf1-\uddf4\uddf6-\uddf9\uddfb\uddfc\uddfe\uddff]|\ud83c\udde8\ud83c[\udde6\udde8\udde9\uddeb-\uddee\uddf0-\uddf5\uddf7\uddfa-\uddff]|\ud83c\udde9\ud83c[\uddea\uddec\uddef\uddf0\uddf2\uddf4\uddff]|\ud83c\uddea\ud83c[\udde6\udde8\uddea\uddec\udded\uddf7-\uddfa]|\ud83c\uddeb\ud83c[\uddee-\uddf0\uddf2\uddf4\uddf7]|\ud83c\uddec\ud83c[\udde6\udde7\udde9-\uddee\uddf1-\uddf3\uddf5-\uddfa\uddfc\uddfe]|\ud83c\udded\ud83c[\uddf0\uddf2\uddf3\uddf7\uddf9\uddfa]|\ud83c\uddee\ud83c[\udde8-\uddea\uddf1-\uddf4\uddf6-\uddf9]|\ud83c\uddef\ud83c[\uddea\uddf2\uddf4\uddf5]|\ud83c\uddf0\ud83c[\uddea\uddec-\uddee\uddf2\uddf3\uddf5\uddf7\uddfc\uddfe\uddff]|\ud83c\uddf1\ud83c[\udde6-\udde8\uddee\uddf0\uddf7-\uddfb\uddfe]|\ud83c\uddf2\ud83c[\udde6\udde8-\udded\uddf0-\uddff]|\ud83c\uddf3\ud83c[\udde6\udde8\uddea-\uddec\uddee\uddf1\uddf4\uddf5\uddf7\uddfa\uddff]|\ud83c\uddf4\ud83c\uddf2|\ud83c\uddf5\ud83c[\udde6\uddea-\udded\uddf0-\uddf3\uddf7-\uddf9\uddfc\uddfe]|\ud83c\uddf6\ud83c\udde6|\ud83c\uddf7\ud83c[\uddea\uddf4\uddf8\uddfa\uddfc]|\ud83c\uddf8\ud83c[\udde6-\uddea\uddec-\uddf4\uddf7-\uddf9\uddfb\uddfd-\uddff]|\ud83c\uddf9\ud83c[\udde6\udde8\udde9\uddeb-\udded\uddef-\uddf4\uddf7\uddf9\uddfb\uddfc\uddff]|\ud83c\uddfa\ud83c[\udde6\uddec\uddf2\uddf3\uddf8\uddfe\uddff]|\ud83c\uddfb\ud83c[\udde6\udde8\uddea\uddec\uddee\uddf3\uddfa]|\ud83c\uddfc\ud83c[\uddeb\uddf8]|\ud83c\uddfd\ud83c\uddf0|\ud83c\uddfe\ud83c[\uddea\uddf9]|\ud83c\uddff\ud83c[\udde6\uddf2\uddfc]|\ud83c[\udccf\udd8e\udd91-\udd9a\udde6-\uddff\ude01\ude32-\ude36\ude38-\ude3a\ude50\ude51\udf00-\udf20\udf2d-\udf35\udf37-\udf7c\udf7e-\udf84\udf86-\udf93\udfa0-\udfc1\udfc5\udfc6\udfc8\udfc9\udfcf-\udfd3\udfe0-\udff0\udff4\udff8-\udfff]|\ud83d[\udc00-\udc3e\udc40\udc44\udc45\udc51-\udc65\udc6a\udc6f\udc79-\udc7b\udc7d-\udc80\udc84\udc88-\udc8e\udc90\udc92-\udca9\udcab-\udcfc\udcff-\udd3d\udd4b-\udd4e\udd50-\udd67\udda4\uddfb-\ude44\ude48-\ude4a\ude80-\udea2\udea4-\udeb3\udeb7-\udebf\udec1-\udec5\uded0-\uded2\uded5-\uded7\udedd-\udedf\udeeb\udeec\udef4-\udefc\udfe0-\udfeb\udff0]|\ud83e[\udd0d\udd0e\udd10-\udd17\udd20-\udd25\udd27-\udd2f\udd3a\udd3c\udd3f-\udd45\udd47-\udd76\udd78-\uddb4\uddb7\uddba\uddbc-\uddcc\uddd0\uddde-\uddff\ude70-\ude74\ude78-\ude7c\ude80-\ude86\ude90-\udeac\udeb0-\udeba\udec0-\udec2\uded0-\uded9\udee0-\udee7]|[\u23e9-\u23ec\u23f0\u23f3\u267e\u26ce\u2705\u2728\u274c\u274e\u2753-\u2755\u2795-\u2797\u27b0\u27bf\ue50a])|\ufe0f/g,r=/\uFE0F/g,i=String.fromCharCode(8205),a=/[&<>'"]/g,o=/^(?:iframe|noframes|noscript|script|select|style|textarea)$/,s=String.fromCharCode;return e;function l(T,$){return document.createTextNode($?T.replace(r,""):T)}function c(T){return T.replace(a,b)}function u(T,$){return"".concat($.base,$.size,"/",T,$.ext)}function f(T,$){for(var R=T.childNodes,O=R.length,G,V;O--;)G=R[O],V=G.nodeType,V===3?$.push(G):V===1&&!("ownerSVGElement"in G)&&!o.test(G.nodeName.toLowerCase())&&f(G,$);return $}function h(T){return _(T.indexOf(i)<0?T.replace(r,""):T)}function m(T,$){for(var R=f(T,[]),O=R.length,G,V,Z,W,Y,fe,ae,Q,ce,L,de,ue,I;O--;){for(Z=!1,W=document.createDocumentFragment(),Y=R[O],fe=Y.nodeValue,Q=0;ae=n.exec(fe);){if(ce=ae.index,ce!==Q&&W.appendChild(l(fe.slice(Q,ce),!0)),de=ae[0],ue=h(de),Q=ce+de.length,I=$.callback(ue,$),ue&&I){L=new Image,L.onerror=$.onerror,L.setAttribute("draggable","false"),G=$.attributes(de,ue);for(V in G)G.hasOwnProperty(V)&&V.indexOf("on")!==0&&!L.hasAttribute(V)&&L.setAttribute(V,G[V]);L.className=$.className,L.alt=de,L.src=I,Z=!0,W.appendChild(L)}L||W.appendChild(l(de,!1)),L=null}Z&&(Q<fe.length&&W.appendChild(l(fe.slice(Q),!0)),Y.parentNode.replaceChild(W,Y))}return T}function g(T,$){return E(T,function(R){var O=R,G=h(R),V=$.callback(G,$),Z,W;if(G&&V){O="<img ".concat('class="',$.className,'" ','draggable="false" ','alt="',R,'"',' src="',V,'"'),Z=$.attributes(R,G);for(W in Z)Z.hasOwnProperty(W)&&W.indexOf("on")!==0&&O.indexOf(" "+W+"=")===-1&&(O=O.concat(" ",W,'="',c(Z[W]),'"'));O=O.concat("/>")}return O})}function b(T){return t[T]}function C(){return null}function w(T){return typeof T=="number"?T+"x"+T:T}function k(T){var $=typeof T=="string"?parseInt(T,16):T;return $<65536?s($):($-=65536,s(55296+($>>10),56320+($&1023)))}function S(T,$){return(!$||typeof $=="function")&&($={callback:$}),(typeof T=="string"?g:m)(T,{callback:$.callback||u,attributes:typeof $.attributes=="function"?$.attributes:C,base:typeof $.base=="string"?$.base:e.base,ext:$.ext||e.ext,size:$.folder||w($.size||e.size),className:$.className||e.className,onerror:$.onerror||e.onerror})}function E(T,$){return String(T).replace(n,$)}function A(T){n.lastIndex=0;var $=n.test(T);return n.lastIndex=0,$}function _(T,$){for(var R=[],O=0,G=0,V=0;V<T.length;)O=T.charCodeAt(V++),G?(R.push((65536+(G-55296<<10)+(O-56320)).toString(16)),G=0):55296<=O&&O<=56319?G=O:R.push(O.toString(16));return R.join($||"-")}}();const ipt=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,apt=e=>({title:e}),eH=(e,t)=>rpt.parse(e,{attributes:apt,base:"https://cdn.jsdelivr.net/gh/twitter/twemoji/assets/",...t}),RM=ipt(),opt=e=>!!e.children,spt=e=>!!e.value;function lpt(e,t){return n(e,0,null)[0];function n(r,i,a){if(opt(r)){const o=[];for(let s=0,l=r.children.length;s<l;s++){const c=r.children[s];if(c){const u=n(c,s,r);if(u)for(let f=0,h=u.length;f<h;f++){const m=u[f];m&&o.push(m)}}}r.children=o}return t(r,i,a)}}const cpt=e=>()=>{function t(n){lpt(n,r=>{if(!spt(r))return[r];const i=r.value,a=[];let o,s=i;for(;o=RM.exec(s);){const{index:l}=o,c=o[0];c&&(l>0&&a.push({...r,value:s.slice(0,l)}),a.push({...r,value:eH(c,e),type:"emoji"}),s=s.slice(l+c.length)),RM.lastIndex=0}return s.length&&a.push({...r,value:s}),a})}return t},cf=(e,t)=>(Object.assign(e,{meta:{package:"@milkdown/plugin-emoji",...t}}),e),Hv=Lr({},"emojiConfig");cf(Hv,{displayName:"Ctx<emojiConfig>"});const xS=xo("emoji",()=>({span:{},img:{}}));cf(xS,{displayName:"Attr<emoji>"});const Uv=cr("emoji",e=>({group:"inline",inline:!0,attrs:{html:{default:""}},parseDOM:[{tag:'span[data-type="emoji"]',getAttrs:t=>{if(!(t instanceof HTMLElement))throw Ma(t);return{html:t.innerHTML}}}],toDOM:t=>{var n;const r=e.get(xS.key)(t),i=document.createElement("span");i.innerHTML=t.attrs.html;const a=(n=i.firstElementChild)==null?void 0:n.cloneNode();return i.remove(),a&&a instanceof HTMLElement&&Object.entries(r.img).forEach(([o,s])=>a.setAttribute(o,s)),["span",{...r.container,"data-type":"emoji"},a]},parseMarkdown:{match:({type:t})=>t==="emoji",runner:(t,n,r)=>{t.addNode(r,{html:n.value})}},toMarkdown:{match:t=>t.type.name==="emoji",runner:(t,n)=>{const r=document.createElement("span");r.innerHTML=n.attrs.html;const i=r.querySelector("img"),a=(i==null?void 0:i.title)||(i==null?void 0:i.alt);r.remove(),t.addNode("text",void 0,a)}}}));cf(Uv.node,{displayName:"NodeSchema<emoji>"});cf(Uv.ctx,{displayName:"NodeSchemaCtx<emoji>"});const tH=vo(e=>new Yl(/(:([^:\s]+):)$/,(t,n,r,i)=>{const a=n[0];if(!a)return null;const o=hLe(a);if(!o||a.includes(o))return null;const s=eH(o,e.get(Hv.key).twemojiOptions);return t.tr.setMeta("emoji",!0).replaceRangeWith(r,i,Uv.type(e).create({html:s})).scrollIntoView()}));cf(tH,{displayName:"InputRule<insertEmojiInputRule>"});const nH=Ps(()=>npt);cf(nH,{displayName:"Remark<remarkEmojiPlugin>"});const rH=Ps(e=>cpt(e.get(Hv.key).twemojiOptions));cf(rH,{displayName:"Remark<remarkTwemojiPlugin>"});const upt=[xS,Hv,nH,rH,Uv,tH].flat();var Hk=200,Or=function(){};Or.prototype.append=function(t){return t.length?(t=Or.from(t),!this.length&&t||t.length<Hk&&this.leafAppend(t)||this.length<Hk&&t.leafPrepend(this)||this.appendInner(t)):this};Or.prototype.prepend=function(t){return t.length?Or.from(t).append(this):this};Or.prototype.appendInner=function(t){return new dpt(this,t)};Or.prototype.slice=function(t,n){return t===void 0&&(t=0),n===void 0&&(n=this.length),t>=n?Or.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,n))};Or.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)};Or.prototype.forEach=function(t,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(t,n,r,0):this.forEachInvertedInner(t,n,r,0)};Or.prototype.map=function(t,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var i=[];return this.forEach(function(a,o){return i.push(t(a,o))},n,r),i};Or.from=function(t){return t instanceof Or?t:t&&t.length?new iH(t):Or.empty};var iH=function(e){function t(r){e.call(this),this.values=r}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(i,a){return i==0&&a==this.length?this:new t(this.values.slice(i,a))},t.prototype.getInner=function(i){return this.values[i]},t.prototype.forEachInner=function(i,a,o,s){for(var l=a;l<o;l++)if(i(this.values[l],s+l)===!1)return!1},t.prototype.forEachInvertedInner=function(i,a,o,s){for(var l=a-1;l>=o;l--)if(i(this.values[l],s+l)===!1)return!1},t.prototype.leafAppend=function(i){if(this.length+i.length<=Hk)return new t(this.values.concat(i.flatten()))},t.prototype.leafPrepend=function(i){if(this.length+i.length<=Hk)return new t(i.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(Or);Or.empty=new iH([]);var dpt=function(e){function t(n,r){e.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(r){return r<this.left.length?this.left.get(r):this.right.get(r-this.left.length)},t.prototype.forEachInner=function(r,i,a,o){var s=this.left.length;if(i<s&&this.left.forEachInner(r,i,Math.min(a,s),o)===!1||a>s&&this.right.forEachInner(r,Math.max(i-s,0),Math.min(this.length,a)-s,o+s)===!1)return!1},t.prototype.forEachInvertedInner=function(r,i,a,o){var s=this.left.length;if(i>s&&this.right.forEachInvertedInner(r,i-s,Math.max(a,s)-s,o+s)===!1||a<s&&this.left.forEachInvertedInner(r,Math.min(i,s),a,o)===!1)return!1},t.prototype.sliceInner=function(r,i){if(r==0&&i==this.length)return this;var a=this.left.length;return i<=a?this.left.slice(r,i):r>=a?this.right.slice(r-a,i-a):this.left.slice(r,a).append(this.right.slice(0,i-a))},t.prototype.leafAppend=function(r){var i=this.right.leafAppend(r);if(i)return new t(this.left,i)},t.prototype.leafPrepend=function(r){var i=this.left.leafPrepend(r);if(i)return new t(i,this.right)},t.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new t(this.left,new t(this.right,r)):new t(this,r)},t}(Or);const fpt=500;class Po{constructor(t,n){this.items=t,this.eventCount=n}popEvent(t,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let i,a;n&&(i=this.remapping(r,this.items.length),a=i.maps.length);let o=t.tr,s,l,c=[],u=[];return this.items.forEach((f,h)=>{if(!f.step){i||(i=this.remapping(r,h+1),a=i.maps.length),a--,u.push(f);return}if(i){u.push(new hs(f.map));let m=f.step.map(i.slice(a)),g;m&&o.maybeStep(m).doc&&(g=o.mapping.maps[o.mapping.maps.length-1],c.push(new hs(g,void 0,void 0,c.length+u.length))),a--,g&&i.appendMap(g,a)}else o.maybeStep(f.step);if(f.selection)return s=i?f.selection.map(i.slice(a)):f.selection,l=new Po(this.items.slice(0,r).append(u.reverse().concat(c)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:o,selection:s}}addTransform(t,n,r,i){let a=[],o=this.eventCount,s=this.items,l=!i&&s.length?s.get(s.length-1):null;for(let u=0;u<t.steps.length;u++){let f=t.steps[u].invert(t.docs[u]),h=new hs(t.mapping.maps[u],f,n),m;(m=l&&l.merge(h))&&(h=m,u?a.pop():s=s.slice(0,s.length-1)),a.push(h),n&&(o++,n=void 0),i||(l=h)}let c=o-r.depth;return c>ppt&&(s=hpt(s,c),o-=c),new Po(s.append(a),o)}remapping(t,n){let r=new Lh;return this.items.forEach((i,a)=>{let o=i.mirrorOffset!=null&&a-i.mirrorOffset>=t?r.maps.length-i.mirrorOffset:void 0;r.appendMap(i.map,o)},t,n),r}addMaps(t){return this.eventCount==0?this:new Po(this.items.append(t.map(n=>new hs(n))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;let r=[],i=Math.max(0,this.items.length-n),a=t.mapping,o=t.steps.length,s=this.eventCount;this.items.forEach(h=>{h.selection&&s--},i);let l=n;this.items.forEach(h=>{let m=a.getMirror(--l);if(m==null)return;o=Math.min(o,m);let g=a.maps[m];if(h.step){let b=t.steps[m].invert(t.docs[m]),C=h.selection&&h.selection.map(a.slice(l+1,m));C&&s++,r.push(new hs(g,b,C))}else r.push(new hs(g))},i);let c=[];for(let h=n;h<o;h++)c.push(new hs(a.maps[h]));let u=this.items.slice(0,i).append(c).append(r),f=new Po(u,s);return f.emptyItemCount()>fpt&&(f=f.compress(this.items.length-r.length)),f}emptyItemCount(){let t=0;return this.items.forEach(n=>{n.step||t++}),t}compress(t=this.items.length){let n=this.remapping(0,t),r=n.maps.length,i=[],a=0;return this.items.forEach((o,s)=>{if(s>=t)i.push(o),o.selection&&a++;else if(o.step){let l=o.step.map(n.slice(r)),c=l&&l.getMap();if(r--,c&&n.appendMap(c,r),l){let u=o.selection&&o.selection.map(n.slice(r));u&&a++;let f=new hs(c.invert(),l,u),h,m=i.length-1;(h=i.length&&i[m].merge(f))?i[m]=h:i.push(f)}}else o.map&&r--},this.items.length,0),new Po(Or.from(i.reverse()),a)}}Po.empty=new Po(Or.empty,0);function hpt(e,t){let n;return e.forEach((r,i)=>{if(r.selection&&t--==0)return n=i,!1}),e.slice(n)}class hs{constructor(t,n,r,i){this.map=t,this.step=n,this.selection=r,this.mirrorOffset=i}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new hs(n.getMap().invert(),n,this.selection)}}}class Fc{constructor(t,n,r,i,a){this.done=t,this.undone=n,this.prevRanges=r,this.prevTime=i,this.prevComposition=a}}const ppt=20;function mpt(e,t,n,r){let i=n.getMeta(Ts),a;if(i)return i.historyState;n.getMeta(ypt)&&(e=new Fc(e.done,e.undone,null,0,-1));let o=n.getMeta("appendedTransaction");if(n.steps.length==0)return e;if(o&&o.getMeta(Ts))return o.getMeta(Ts).redo?new Fc(e.done.addTransform(n,void 0,r,bb(t)),e.undone,PM(n.mapping.maps[n.steps.length-1]),e.prevTime,e.prevComposition):new Fc(e.done,e.undone.addTransform(n,void 0,r,bb(t)),null,e.prevTime,e.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(o&&o.getMeta("addToHistory")===!1)){let s=n.getMeta("composition"),l=e.prevTime==0||!o&&e.prevComposition!=s&&(e.prevTime<(n.time||0)-r.newGroupDelay||!gpt(n,e.prevRanges)),c=o?y6(e.prevRanges,n.mapping):PM(n.mapping.maps[n.steps.length-1]);return new Fc(e.done.addTransform(n,l?t.selection.getBookmark():void 0,r,bb(t)),Po.empty,c,n.time,s??e.prevComposition)}else return(a=n.getMeta("rebased"))?new Fc(e.done.rebased(n,a),e.undone.rebased(n,a),y6(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new Fc(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),y6(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function gpt(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((r,i)=>{for(let a=0;a<t.length;a+=2)r<=t[a+1]&&i>=t[a]&&(n=!0)}),n}function PM(e){let t=[];return e.forEach((n,r,i,a)=>t.push(i,a)),t}function y6(e,t){if(!e)return null;let n=[];for(let r=0;r<e.length;r+=2){let i=t.map(e[r],1),a=t.map(e[r+1],-1);i<=a&&n.push(i,a)}return n}function aH(e,t,n,r){let i=bb(t),a=Ts.get(t).spec.config,o=(r?e.undone:e.done).popEvent(t,i);if(!o)return;let s=o.selection.resolve(o.transform.doc),l=(r?e.done:e.undone).addTransform(o.transform,t.selection.getBookmark(),a,i),c=new Fc(r?l:o.remaining,r?o.remaining:l,null,0,-1);n(o.transform.setSelection(s).setMeta(Ts,{redo:r,historyState:c}).scrollIntoView())}let _6=!1,jM=null;function bb(e){let t=e.plugins;if(jM!=t){_6=!1,jM=t;for(let n=0;n<t.length;n++)if(t[n].spec.historyPreserveItems){_6=!0;break}}return _6}const Ts=new Fn("history"),ypt=new Fn("closeHistory");function _pt(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new Bn({key:Ts,state:{init(){return new Fc(Po.empty,Po.empty,null,0,-1)},apply(t,n,r){return mpt(n,r,t,e)}},config:e,props:{handleDOMEvents:{beforeinput(t,n){let r=n.inputType,i=r=="historyUndo"?oH:r=="historyRedo"?sH:null;return i?(n.preventDefault(),i(t.state,t.dispatch)):!1}}}})}const oH=(e,t)=>{let n=Ts.getState(e);return!n||n.done.eventCount==0?!1:(t&&aH(n,e,t,!1),!0)},sH=(e,t)=>{let n=Ts.getState(e);return!n||n.undone.eventCount==0?!1:(t&&aH(n,e,t,!0),!0)};function bpt(e){let t=Ts.getState(e);return t?t.done.eventCount:0}function kpt(e){let t=Ts.getState(e);return t?t.undone.eventCount:0}const Bp=(e,t)=>(Object.assign(e,{meta:{package:"@milkdown/plugin-history",...t}}),e),e1=Lt("Undo",()=>()=>oH);Bp(e1,{displayName:"Command<undo>"});const CS=Lt("Undo",()=>()=>sH);Bp(e1,{displayName:"Command<redo>"});const SS=Lr({},"historyProviderConfig");Bp(SS,{displayName:"Ctx<historyProviderConfig>"});const lH=yr(e=>_pt(e.get(SS.key)));Bp(lH,{displayName:"Ctx<historyProviderPlugin>"});const DS=ea("historyKeymap",{Undo:{shortcuts:"Mod-z",command:e=>{const t=e.get(Bt);return()=>t.call(e1.key)}},Redo:{shortcuts:["Mod-y","Shift-Mod-z"],command:e=>{const t=e.get(Bt);return()=>t.call(CS.key)}}});Bp(DS.ctx,{displayName:"KeymapCtx<history>"});Bp(DS.shortcuts,{displayName:"Keymap<history>"});const wpt=[SS,lH,DS,e1,CS].flat(),ES=Lr({shouldAppend:e=>!(!e||["heading","paragraph"].includes(e.type.name)),getNode:e=>e.schema.nodes.paragraph.create()},"trailingConfig");ES.meta={package:"@milkdown/plugin-trailing",displayName:"Ctx<trailingConfig>"};const cH=yr(e=>{const t=new Fn("MILKDOWN_TRAILING"),{shouldAppend:n,getNode:r}=e.get(ES.key),i=new Bn({key:t,state:{init:(a,o)=>{const s=o.tr.doc.lastChild;return n(s,o)},apply:(a,o,s,l)=>{if(!a.docChanged)return o;const c=a.doc.lastChild;return n(c,l)}},appendTransaction:(a,o,s)=>{const{doc:l,tr:c}=s,u=r==null?void 0:r(s),f=i.getState(s),h=l.content.size;if(!(!f||!u))return c.insert(h,u)}});return i});cH.meta={package:"@milkdown/plugin-trailing",displayName:"Prose<trailing>"};const vpt=[ES,cH];var xpt="Expected a function",VM=0/0,Cpt="[object Symbol]",Spt=/^\s+|\s+$/g,Dpt=/^[-+]0x[0-9a-f]+$/i,Ept=/^0b[01]+$/i,Tpt=/^0o[0-7]+$/i,Apt=parseInt,zpt=typeof Bi=="object"&&Bi&&Bi.Object===Object&&Bi,Fpt=typeof self=="object"&&self&&self.Object===Object&&self,$pt=zpt||Fpt||Function("return this")(),Mpt=Object.prototype,Opt=Mpt.toString,Npt=Math.max,Lpt=Math.min,b6=function(){return $pt.Date.now()};function Ipt(e,t,n){var r,i,a,o,s,l,c=0,u=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(xpt);t=qM(t)||0,z8(n)&&(u=!!n.leading,f="maxWait"in n,a=f?Npt(qM(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h);function m(_){var T=r,$=i;return r=i=void 0,c=_,o=e.apply($,T),o}function g(_){return c=_,s=setTimeout(w,t),u?m(_):o}function b(_){var T=_-l,$=_-c,R=t-T;return f?Lpt(R,a-$):R}function C(_){var T=_-l,$=_-c;return l===void 0||T>=t||T<0||f&&$>=a}function w(){var _=b6();if(C(_))return k(_);s=setTimeout(w,b(_))}function k(_){return s=void 0,h&&r?m(_):(r=i=void 0,o)}function S(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function E(){return s===void 0?o:k(b6())}function A(){var _=b6(),T=C(_);if(r=arguments,i=this,l=_,T){if(s===void 0)return g(l);if(f)return s=setTimeout(w,t),m(l)}return s===void 0&&(s=setTimeout(w,t)),o}return A.cancel=S,A.flush=E,A}function z8(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Bpt(e){return!!e&&typeof e=="object"}function Rpt(e){return typeof e=="symbol"||Bpt(e)&&Opt.call(e)==Cpt}function qM(e){if(typeof e=="number")return e;if(Rpt(e))return VM;if(z8(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=z8(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Spt,"");var n=Ept.test(e);return n||Tpt.test(e)?Apt(e.slice(2),n?2:8):Dpt.test(e)?VM:+e}var Ppt=Ipt;const TS=Qo(Ppt);var Ki="top",ho="bottom",po="right",Yi="left",AS="auto",t1=[Ki,ho,po,Yi],pp="start",kg="end",jpt="clippingParents",uH="viewport",z0="popper",Vpt="reference",HM=t1.reduce(function(e,t){return e.concat([t+"-"+pp,t+"-"+kg])},[]),dH=[].concat(t1,[AS]).reduce(function(e,t){return e.concat([t,t+"-"+pp,t+"-"+kg])},[]),qpt="beforeRead",Hpt="read",Upt="afterRead",Wpt="beforeMain",Gpt="main",Kpt="afterMain",Ypt="beforeWrite",Zpt="write",Xpt="afterWrite",Jpt=[qpt,Hpt,Upt,Wpt,Gpt,Kpt,Ypt,Zpt,Xpt];function Ls(e){return e?(e.nodeName||"").toLowerCase():null}function Sa(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Xd(e){var t=Sa(e).Element;return e instanceof t||e instanceof Element}function lo(e){var t=Sa(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function zS(e){if(typeof ShadowRoot>"u")return!1;var t=Sa(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Qpt(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},a=t.elements[n];!lo(a)||!Ls(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(o){var s=i[o];s===!1?a.removeAttribute(o):a.setAttribute(o,s===!0?"":s)}))})}function e0t(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],a=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=o.reduce(function(l,c){return l[c]="",l},{});!lo(i)||!Ls(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}const fH={name:"applyStyles",enabled:!0,phase:"write",fn:Qpt,effect:e0t,requires:["computeStyles"]};function As(e){return e.split("-")[0]}var Md=Math.max,Uk=Math.min,mp=Math.round;function F8(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function hH(){return!/^((?!chrome|android).)*safari/i.test(F8())}function gp(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&lo(e)&&(i=e.offsetWidth>0&&mp(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&mp(r.height)/e.offsetHeight||1);var o=Xd(e)?Sa(e):window,s=o.visualViewport,l=!hH()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/i,u=(r.top+(l&&s?s.offsetTop:0))/a,f=r.width/i,h=r.height/a;return{width:f,height:h,top:u,right:c+f,bottom:u+h,left:c,x:c,y:u}}function FS(e){var t=gp(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function pH(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&zS(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function jl(e){return Sa(e).getComputedStyle(e)}function t0t(e){return["table","td","th"].indexOf(Ls(e))>=0}function Au(e){return((Xd(e)?e.ownerDocument:e.document)||window.document).documentElement}function Wv(e){return Ls(e)==="html"?e:e.assignedSlot||e.parentNode||(zS(e)?e.host:null)||Au(e)}function UM(e){return!lo(e)||jl(e).position==="fixed"?null:e.offsetParent}function n0t(e){var t=/firefox/i.test(F8()),n=/Trident/i.test(F8());if(n&&lo(e)){var r=jl(e);if(r.position==="fixed")return null}var i=Wv(e);for(zS(i)&&(i=i.host);lo(i)&&["html","body"].indexOf(Ls(i))<0;){var a=jl(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function n1(e){for(var t=Sa(e),n=UM(e);n&&t0t(n)&&jl(n).position==="static";)n=UM(n);return n&&(Ls(n)==="html"||Ls(n)==="body"&&jl(n).position==="static")?t:n||n0t(e)||t}function $S(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function $m(e,t,n){return Md(e,Uk(t,n))}function r0t(e,t,n){var r=$m(e,t,n);return r>n?n:r}function mH(){return{top:0,right:0,bottom:0,left:0}}function gH(e){return Object.assign({},mH(),e)}function yH(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var i0t=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,gH(typeof t!="number"?t:yH(t,t1))};function a0t(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=As(n.placement),l=$S(s),c=[Yi,po].indexOf(s)>=0,u=c?"height":"width";if(!(!a||!o)){var f=i0t(i.padding,n),h=FS(a),m=l==="y"?Ki:Yi,g=l==="y"?ho:po,b=n.rects.reference[u]+n.rects.reference[l]-o[l]-n.rects.popper[u],C=o[l]-n.rects.reference[l],w=n1(a),k=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,S=b/2-C/2,E=f[m],A=k-h[u]-f[g],_=k/2-h[u]/2+S,T=$m(E,_,A),$=l;n.modifiersData[r]=(t={},t[$]=T,t.centerOffset=T-_,t)}}function o0t(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||pH(t.elements.popper,i)&&(t.elements.arrow=i))}const s0t={name:"arrow",enabled:!0,phase:"main",fn:a0t,effect:o0t,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function yp(e){return e.split("-")[1]}var l0t={top:"auto",right:"auto",bottom:"auto",left:"auto"};function c0t(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:mp(n*i)/i||0,y:mp(r*i)/i||0}}function WM(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,h=o.x,m=h===void 0?0:h,g=o.y,b=g===void 0?0:g,C=typeof u=="function"?u({x:m,y:b}):{x:m,y:b};m=C.x,b=C.y;var w=o.hasOwnProperty("x"),k=o.hasOwnProperty("y"),S=Yi,E=Ki,A=window;if(c){var _=n1(n),T="clientHeight",$="clientWidth";if(_===Sa(n)&&(_=Au(n),jl(_).position!=="static"&&s==="absolute"&&(T="scrollHeight",$="scrollWidth")),_=_,i===Ki||(i===Yi||i===po)&&a===kg){E=ho;var R=f&&_===A&&A.visualViewport?A.visualViewport.height:_[T];b-=R-r.height,b*=l?1:-1}if(i===Yi||(i===Ki||i===ho)&&a===kg){S=po;var O=f&&_===A&&A.visualViewport?A.visualViewport.width:_[$];m-=O-r.width,m*=l?1:-1}}var G=Object.assign({position:s},c&&l0t),V=u===!0?c0t({x:m,y:b},Sa(n)):{x:m,y:b};if(m=V.x,b=V.y,l){var Z;return Object.assign({},G,(Z={},Z[E]=k?"0":"",Z[S]=w?"0":"",Z.transform=(A.devicePixelRatio||1)<=1?"translate("+m+"px, "+b+"px)":"translate3d("+m+"px, "+b+"px, 0)",Z))}return Object.assign({},G,(t={},t[E]=k?b+"px":"",t[S]=w?m+"px":"",t.transform="",t))}function u0t(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:As(t.placement),variation:yp(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,WM(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,WM(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const d0t={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:u0t,data:{}};var Jy={passive:!0};function f0t(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,s=o===void 0?!0:o,l=Sa(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",n.update,Jy)}),s&&l.addEventListener("resize",n.update,Jy),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Jy)}),s&&l.removeEventListener("resize",n.update,Jy)}}const h0t={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:f0t,data:{}};var p0t={left:"right",right:"left",bottom:"top",top:"bottom"};function kb(e){return e.replace(/left|right|bottom|top/g,function(t){return p0t[t]})}var m0t={start:"end",end:"start"};function GM(e){return e.replace(/start|end/g,function(t){return m0t[t]})}function MS(e){var t=Sa(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function OS(e){return gp(Au(e)).left+MS(e).scrollLeft}function g0t(e,t){var n=Sa(e),r=Au(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;var c=hH();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s+OS(e),y:l}}function y0t(e){var t,n=Au(e),r=MS(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=Md(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Md(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+OS(e),l=-r.scrollTop;return jl(i||n).direction==="rtl"&&(s+=Md(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}function NS(e){var t=jl(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function _H(e){return["html","body","#document"].indexOf(Ls(e))>=0?e.ownerDocument.body:lo(e)&&NS(e)?e:_H(Wv(e))}function Mm(e,t){var n;t===void 0&&(t=[]);var r=_H(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=Sa(r),o=i?[a].concat(a.visualViewport||[],NS(r)?r:[]):r,s=t.concat(o);return i?s:s.concat(Mm(Wv(o)))}function $8(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function _0t(e,t){var n=gp(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function KM(e,t,n){return t===uH?$8(g0t(e,n)):Xd(t)?_0t(t,n):$8(y0t(Au(e)))}function b0t(e){var t=Mm(Wv(e)),n=["absolute","fixed"].indexOf(jl(e).position)>=0,r=n&&lo(e)?n1(e):e;return Xd(r)?t.filter(function(i){return Xd(i)&&pH(i,r)&&Ls(i)!=="body"}):[]}function k0t(e,t,n,r){var i=t==="clippingParents"?b0t(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(l,c){var u=KM(e,c,r);return l.top=Md(u.top,l.top),l.right=Uk(u.right,l.right),l.bottom=Uk(u.bottom,l.bottom),l.left=Md(u.left,l.left),l},KM(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function bH(e){var t=e.reference,n=e.element,r=e.placement,i=r?As(r):null,a=r?yp(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case Ki:l={x:o,y:t.y-n.height};break;case ho:l={x:o,y:t.y+t.height};break;case po:l={x:t.x+t.width,y:s};break;case Yi:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?$S(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case pp:l[c]=l[c]-(t[u]/2-n[u]/2);break;case kg:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function wg(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,l=s===void 0?jpt:s,c=n.rootBoundary,u=c===void 0?uH:c,f=n.elementContext,h=f===void 0?z0:f,m=n.altBoundary,g=m===void 0?!1:m,b=n.padding,C=b===void 0?0:b,w=gH(typeof C!="number"?C:yH(C,t1)),k=h===z0?Vpt:z0,S=e.rects.popper,E=e.elements[g?k:h],A=k0t(Xd(E)?E:E.contextElement||Au(e.elements.popper),l,u,o),_=gp(e.elements.reference),T=bH({reference:_,element:S,strategy:"absolute",placement:i}),$=$8(Object.assign({},S,T)),R=h===z0?$:_,O={top:A.top-R.top+w.top,bottom:R.bottom-A.bottom+w.bottom,left:A.left-R.left+w.left,right:R.right-A.right+w.right},G=e.modifiersData.offset;if(h===z0&&G){var V=G[i];Object.keys(O).forEach(function(Z){var W=[po,ho].indexOf(Z)>=0?1:-1,Y=[Ki,ho].indexOf(Z)>=0?"y":"x";O[Z]+=V[Y]*W})}return O}function w0t(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?dH:l,u=yp(r),f=u?s?HM:HM.filter(function(g){return yp(g)===u}):t1,h=f.filter(function(g){return c.indexOf(g)>=0});h.length===0&&(h=f);var m=h.reduce(function(g,b){return g[b]=wg(e,{placement:b,boundary:i,rootBoundary:a,padding:o})[As(b)],g},{});return Object.keys(m).sort(function(g,b){return m[g]-m[b]})}function v0t(e){if(As(e)===AS)return[];var t=kb(e);return[GM(e),t,GM(t)]}function x0t(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!0:o,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,h=n.altBoundary,m=n.flipVariations,g=m===void 0?!0:m,b=n.allowedAutoPlacements,C=t.options.placement,w=As(C),k=w===C,S=l||(k||!g?[kb(C)]:v0t(C)),E=[C].concat(S).reduce(function(be,ze){return be.concat(As(ze)===AS?w0t(t,{placement:ze,boundary:u,rootBoundary:f,padding:c,flipVariations:g,allowedAutoPlacements:b}):ze)},[]),A=t.rects.reference,_=t.rects.popper,T=new Map,$=!0,R=E[0],O=0;O<E.length;O++){var G=E[O],V=As(G),Z=yp(G)===pp,W=[Ki,ho].indexOf(V)>=0,Y=W?"width":"height",fe=wg(t,{placement:G,boundary:u,rootBoundary:f,altBoundary:h,padding:c}),ae=W?Z?po:Yi:Z?ho:Ki;A[Y]>_[Y]&&(ae=kb(ae));var Q=kb(ae),ce=[];if(a&&ce.push(fe[V]<=0),s&&ce.push(fe[ae]<=0,fe[Q]<=0),ce.every(function(be){return be})){R=G,$=!1;break}T.set(G,ce)}if($)for(var L=g?3:1,de=function(ze){var J=E.find(function(Ve){var ye=T.get(Ve);if(ye)return ye.slice(0,ze).every(function(We){return We})});if(J)return R=J,"break"},ue=L;ue>0;ue--){var I=de(ue);if(I==="break")break}t.placement!==R&&(t.modifiersData[r]._skip=!0,t.placement=R,t.reset=!0)}}const C0t={name:"flip",enabled:!0,phase:"main",fn:x0t,requiresIfExists:["offset"],data:{_skip:!1}};function YM(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ZM(e){return[Ki,po,ho,Yi].some(function(t){return e[t]>=0})}function S0t(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=wg(t,{elementContext:"reference"}),s=wg(t,{altBoundary:!0}),l=YM(o,r),c=YM(s,i,a),u=ZM(l),f=ZM(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const D0t={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:S0t};function E0t(e,t,n){var r=As(e),i=[Yi,Ki].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[Yi,po].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function T0t(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=dH.reduce(function(u,f){return u[f]=E0t(f,t.rects,a),u},{}),s=o[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=o}const A0t={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:T0t};function z0t(e){var t=e.state,n=e.name;t.modifiersData[n]=bH({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const F0t={name:"popperOffsets",enabled:!0,phase:"read",fn:z0t,data:{}};function $0t(e){return e==="x"?"y":"x"}function M0t(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!1:o,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,h=n.tether,m=h===void 0?!0:h,g=n.tetherOffset,b=g===void 0?0:g,C=wg(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),w=As(t.placement),k=yp(t.placement),S=!k,E=$S(w),A=$0t(E),_=t.modifiersData.popperOffsets,T=t.rects.reference,$=t.rects.popper,R=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,O=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),G=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(_){if(a){var Z,W=E==="y"?Ki:Yi,Y=E==="y"?ho:po,fe=E==="y"?"height":"width",ae=_[E],Q=ae+C[W],ce=ae-C[Y],L=m?-$[fe]/2:0,de=k===pp?T[fe]:$[fe],ue=k===pp?-$[fe]:-T[fe],I=t.elements.arrow,be=m&&I?FS(I):{width:0,height:0},ze=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:mH(),J=ze[W],Ve=ze[Y],ye=$m(0,T[fe],be[fe]),We=S?T[fe]/2-L-ye-J-O.mainAxis:de-ye-J-O.mainAxis,Pe=S?-T[fe]/2+L+ye+Ve+O.mainAxis:ue+ye+Ve+O.mainAxis,Ge=t.elements.arrow&&n1(t.elements.arrow),Xe=Ge?E==="y"?Ge.clientTop||0:Ge.clientLeft||0:0,Kt=(Z=G==null?void 0:G[E])!=null?Z:0,Et=ae+We-Kt-Xe,mt=ae+Pe-Kt,K=$m(m?Uk(Q,Et):Q,ae,m?Md(ce,mt):ce);_[E]=K,V[E]=K-ae}if(s){var ie,he=E==="x"?Ki:Yi,Ie=E==="x"?ho:po,xe=_[A],ke=A==="y"?"height":"width",Be=xe+C[he],dt=xe-C[Ie],Re=[Ki,Yi].indexOf(w)!==-1,zt=(ie=G==null?void 0:G[A])!=null?ie:0,Ir=Re?Be:xe-T[ke]-$[ke]-zt+O.altAxis,pe=Re?xe+T[ke]+$[ke]-zt-O.altAxis:dt,Ce=m&&Re?r0t(Ir,xe,pe):$m(m?Ir:Be,xe,m?pe:dt);_[A]=Ce,V[A]=Ce-xe}t.modifiersData[r]=V}}const O0t={name:"preventOverflow",enabled:!0,phase:"main",fn:M0t,requiresIfExists:["offset"]};function N0t(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function L0t(e){return e===Sa(e)||!lo(e)?MS(e):N0t(e)}function I0t(e){var t=e.getBoundingClientRect(),n=mp(t.width)/e.offsetWidth||1,r=mp(t.height)/e.offsetHeight||1;return n!==1||r!==1}function B0t(e,t,n){n===void 0&&(n=!1);var r=lo(t),i=lo(t)&&I0t(t),a=Au(t),o=gp(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ls(t)!=="body"||NS(a))&&(s=L0t(t)),lo(t)?(l=gp(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=OS(a))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function R0t(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function i(a){n.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||i(a)}),r}function P0t(e){var t=R0t(e);return Jpt.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function j0t(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function V0t(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var XM={placement:"bottom",modifiers:[],strategy:"absolute"};function JM(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function q0t(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?XM:i;return function(s,l,c){c===void 0&&(c=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},XM,a),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},f=[],h=!1,m={state:u,setOptions:function(w){var k=typeof w=="function"?w(u.options):w;b(),u.options=Object.assign({},a,u.options,k),u.scrollParents={reference:Xd(s)?Mm(s):s.contextElement?Mm(s.contextElement):[],popper:Mm(l)};var S=P0t(V0t([].concat(r,u.options.modifiers)));return u.orderedModifiers=S.filter(function(E){return E.enabled}),g(),m.update()},forceUpdate:function(){if(!h){var w=u.elements,k=w.reference,S=w.popper;if(JM(k,S)){u.rects={reference:B0t(k,n1(S),u.options.strategy==="fixed"),popper:FS(S)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(O){return u.modifiersData[O.name]=Object.assign({},O.data)});for(var E=0;E<u.orderedModifiers.length;E++){if(u.reset===!0){u.reset=!1,E=-1;continue}var A=u.orderedModifiers[E],_=A.fn,T=A.options,$=T===void 0?{}:T,R=A.name;typeof _=="function"&&(u=_({state:u,options:$,name:R,instance:m})||u)}}}},update:j0t(function(){return new Promise(function(C){m.forceUpdate(),C(u)})}),destroy:function(){b(),h=!0}};if(!JM(s,l))return m;m.setOptions(c).then(function(C){!h&&c.onFirstUpdate&&c.onFirstUpdate(C)});function g(){u.orderedModifiers.forEach(function(C){var w=C.name,k=C.options,S=k===void 0?{}:k,E=C.effect;if(typeof E=="function"){var A=E({state:u,name:w,instance:m,options:S}),_=function(){};f.push(A||_)}})}function b(){f.forEach(function(C){return C()}),f=[]}return m}}var H0t=[h0t,F0t,d0t,fH,A0t,C0t,O0t,s0t,D0t],U0t=q0t({defaultModifiers:H0t}),W0t="tippy-box",kH="tippy-content",G0t="tippy-backdrop",wH="tippy-arrow",vH="tippy-svg-arrow",od={passive:!0,capture:!0},xH=function(){return document.body};function k6(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function LS(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function CH(e,t){return typeof e=="function"?e.apply(void 0,t):e}function QM(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function K0t(e){return e.split(/\s+/).filter(Boolean)}function rh(e){return[].concat(e)}function eO(e,t){e.indexOf(t)===-1&&e.push(t)}function Y0t(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function Z0t(e){return e.split("-")[0]}function Wk(e){return[].slice.call(e)}function tO(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function Om(){return document.createElement("div")}function Gv(e){return["Element","Fragment"].some(function(t){return LS(e,t)})}function X0t(e){return LS(e,"NodeList")}function J0t(e){return LS(e,"MouseEvent")}function Q0t(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function emt(e){return Gv(e)?[e]:X0t(e)?Wk(e):Array.isArray(e)?e:Wk(document.querySelectorAll(e))}function w6(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function nO(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function tmt(e){var t,n=rh(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function nmt(e,t){var n=t.clientX,r=t.clientY;return e.every(function(i){var a=i.popperRect,o=i.popperState,s=i.props,l=s.interactiveBorder,c=Z0t(o.placement),u=o.modifiersData.offset;if(!u)return!0;var f=c==="bottom"?u.top.y:0,h=c==="top"?u.bottom.y:0,m=c==="right"?u.left.x:0,g=c==="left"?u.right.x:0,b=a.top-r+f>l,C=r-a.bottom-h>l,w=a.left-n+m>l,k=n-a.right-g>l;return b||C||w||k})}function v6(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[r](i,n)})}function rO(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var gs={isTouch:!1},iO=0;function rmt(){gs.isTouch||(gs.isTouch=!0,window.performance&&document.addEventListener("mousemove",SH))}function SH(){var e=performance.now();e-iO<20&&(gs.isTouch=!1,document.removeEventListener("mousemove",SH)),iO=e}function imt(){var e=document.activeElement;if(Q0t(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function amt(){document.addEventListener("touchstart",rmt,od),window.addEventListener("blur",imt)}var omt=typeof window<"u"&&typeof document<"u",smt=omt?!!window.msCrypto:!1,lmt={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},cmt={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},qo=Object.assign({appendTo:xH,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},lmt,cmt),umt=Object.keys(qo),dmt=function(t){var n=Object.keys(t);n.forEach(function(r){qo[r]=t[r]})};function DH(e){var t=e.plugins||[],n=t.reduce(function(r,i){var a=i.name,o=i.defaultValue;if(a){var s;r[a]=e[a]!==void 0?e[a]:(s=qo[a])!=null?s:o}return r},{});return Object.assign({},e,n)}function fmt(e,t){var n=t?Object.keys(DH(Object.assign({},qo,{plugins:t}))):umt,r=n.reduce(function(i,a){var o=(e.getAttribute("data-tippy-"+a)||"").trim();if(!o)return i;if(a==="content")i[a]=o;else try{i[a]=JSON.parse(o)}catch{i[a]=o}return i},{});return r}function aO(e,t){var n=Object.assign({},t,{content:CH(t.content,[e])},t.ignoreAttributes?{}:fmt(e,t.plugins));return n.aria=Object.assign({},qo.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}var hmt=function(){return"innerHTML"};function M8(e,t){e[hmt()]=t}function oO(e){var t=Om();return e===!0?t.className=wH:(t.className=vH,Gv(e)?t.appendChild(e):M8(t,e)),t}function sO(e,t){Gv(t.content)?(M8(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?M8(e,t.content):e.textContent=t.content)}function O8(e){var t=e.firstElementChild,n=Wk(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(kH)}),arrow:n.find(function(r){return r.classList.contains(wH)||r.classList.contains(vH)}),backdrop:n.find(function(r){return r.classList.contains(G0t)})}}function EH(e){var t=Om(),n=Om();n.className=W0t,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Om();r.className=kH,r.setAttribute("data-state","hidden"),sO(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props);function i(a,o){var s=O8(t),l=s.box,c=s.content,u=s.arrow;o.theme?l.setAttribute("data-theme",o.theme):l.removeAttribute("data-theme"),typeof o.animation=="string"?l.setAttribute("data-animation",o.animation):l.removeAttribute("data-animation"),o.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof o.maxWidth=="number"?o.maxWidth+"px":o.maxWidth,o.role?l.setAttribute("role",o.role):l.removeAttribute("role"),(a.content!==o.content||a.allowHTML!==o.allowHTML)&&sO(c,e.props),o.arrow?u?a.arrow!==o.arrow&&(l.removeChild(u),l.appendChild(oO(o.arrow))):l.appendChild(oO(o.arrow)):u&&l.removeChild(u)}return{popper:t,onUpdate:i}}EH.$$tippy=!0;var pmt=1,Qy=[],x6=[];function mmt(e,t){var n=aO(e,Object.assign({},qo,DH(tO(t)))),r,i,a,o=!1,s=!1,l=!1,c=!1,u,f,h,m=[],g=QM(Et,n.interactiveDebounce),b,C=pmt++,w=null,k=Y0t(n.plugins),S={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},E={id:C,reference:e,popper:Om(),popperInstance:w,props:n,state:S,plugins:k,clearDelayTimeouts:Ir,setProps:pe,setContent:Ce,show:it,hide:It,hideWithInteractivity:Tt,enable:Re,disable:zt,unmount:vn,destroy:Tr};if(!n.render)return E;var A=n.render(E),_=A.popper,T=A.onUpdate;_.setAttribute("data-tippy-root",""),_.id="tippy-"+E.id,E.popper=_,e._tippy=E,_._tippy=E;var $=k.map(function(ge){return ge.fn(E)}),R=e.hasAttribute("aria-expanded");return Ge(),L(),ae(),Q("onCreate",[E]),n.showOnCreate&&Be(),_.addEventListener("mouseenter",function(){E.props.interactive&&E.state.isVisible&&E.clearDelayTimeouts()}),_.addEventListener("mouseleave",function(){E.props.interactive&&E.props.trigger.indexOf("mouseenter")>=0&&W().addEventListener("mousemove",g)}),E;function O(){var ge=E.props.touch;return Array.isArray(ge)?ge:[ge,0]}function G(){return O()[0]==="hold"}function V(){var ge;return!!((ge=E.props.render)!=null&&ge.$$tippy)}function Z(){return b||e}function W(){var ge=Z().parentNode;return ge?tmt(ge):document}function Y(){return O8(_)}function fe(ge){return E.state.isMounted&&!E.state.isVisible||gs.isTouch||u&&u.type==="focus"?0:k6(E.props.delay,ge?0:1,qo.delay)}function ae(ge){ge===void 0&&(ge=!1),_.style.pointerEvents=E.props.interactive&&!ge?"":"none",_.style.zIndex=""+E.props.zIndex}function Q(ge,Ye,nt){if(nt===void 0&&(nt=!0),$.forEach(function(Pt){Pt[ge]&&Pt[ge].apply(Pt,Ye)}),nt){var ct;(ct=E.props)[ge].apply(ct,Ye)}}function ce(){var ge=E.props.aria;if(ge.content){var Ye="aria-"+ge.content,nt=_.id,ct=rh(E.props.triggerTarget||e);ct.forEach(function(Pt){var Dt=Pt.getAttribute(Ye);if(E.state.isVisible)Pt.setAttribute(Ye,Dt?Dt+" "+nt:nt);else{var rr=Dt&&Dt.replace(nt,"").trim();rr?Pt.setAttribute(Ye,rr):Pt.removeAttribute(Ye)}})}}function L(){if(!(R||!E.props.aria.expanded)){var ge=rh(E.props.triggerTarget||e);ge.forEach(function(Ye){E.props.interactive?Ye.setAttribute("aria-expanded",E.state.isVisible&&Ye===Z()?"true":"false"):Ye.removeAttribute("aria-expanded")})}}function de(){W().removeEventListener("mousemove",g),Qy=Qy.filter(function(ge){return ge!==g})}function ue(ge){if(!(gs.isTouch&&(l||ge.type==="mousedown"))){var Ye=ge.composedPath&&ge.composedPath()[0]||ge.target;if(!(E.props.interactive&&rO(_,Ye))){if(rh(E.props.triggerTarget||e).some(function(nt){return rO(nt,Ye)})){if(gs.isTouch||E.state.isVisible&&E.props.trigger.indexOf("click")>=0)return}else Q("onClickOutside",[E,ge]);E.props.hideOnClick===!0&&(E.clearDelayTimeouts(),E.hide(),s=!0,setTimeout(function(){s=!1}),E.state.isMounted||J())}}}function I(){l=!0}function be(){l=!1}function ze(){var ge=W();ge.addEventListener("mousedown",ue,!0),ge.addEventListener("touchend",ue,od),ge.addEventListener("touchstart",be,od),ge.addEventListener("touchmove",I,od)}function J(){var ge=W();ge.removeEventListener("mousedown",ue,!0),ge.removeEventListener("touchend",ue,od),ge.removeEventListener("touchstart",be,od),ge.removeEventListener("touchmove",I,od)}function Ve(ge,Ye){We(ge,function(){!E.state.isVisible&&_.parentNode&&_.parentNode.contains(_)&&Ye()})}function ye(ge,Ye){We(ge,Ye)}function We(ge,Ye){var nt=Y().box;function ct(Pt){Pt.target===nt&&(v6(nt,"remove",ct),Ye())}if(ge===0)return Ye();v6(nt,"remove",f),v6(nt,"add",ct),f=ct}function Pe(ge,Ye,nt){nt===void 0&&(nt=!1);var ct=rh(E.props.triggerTarget||e);ct.forEach(function(Pt){Pt.addEventListener(ge,Ye,nt),m.push({node:Pt,eventType:ge,handler:Ye,options:nt})})}function Ge(){G()&&(Pe("touchstart",Kt,{passive:!0}),Pe("touchend",mt,{passive:!0})),K0t(E.props.trigger).forEach(function(ge){if(ge!=="manual")switch(Pe(ge,Kt),ge){case"mouseenter":Pe("mouseleave",mt);break;case"focus":Pe(smt?"focusout":"blur",K);break;case"focusin":Pe("focusout",K);break}})}function Xe(){m.forEach(function(ge){var Ye=ge.node,nt=ge.eventType,ct=ge.handler,Pt=ge.options;Ye.removeEventListener(nt,ct,Pt)}),m=[]}function Kt(ge){var Ye,nt=!1;if(!(!E.state.isEnabled||ie(ge)||s)){var ct=((Ye=u)==null?void 0:Ye.type)==="focus";u=ge,b=ge.currentTarget,L(),!E.state.isVisible&&J0t(ge)&&Qy.forEach(function(Pt){return Pt(ge)}),ge.type==="click"&&(E.props.trigger.indexOf("mouseenter")<0||o)&&E.props.hideOnClick!==!1&&E.state.isVisible?nt=!0:Be(ge),ge.type==="click"&&(o=!nt),nt&&!ct&&dt(ge)}}function Et(ge){var Ye=ge.target,nt=Z().contains(Ye)||_.contains(Ye);if(!(ge.type==="mousemove"&&nt)){var ct=ke().concat(_).map(function(Pt){var Dt,rr=Pt._tippy,So=(Dt=rr.popperInstance)==null?void 0:Dt.state;return So?{popperRect:Pt.getBoundingClientRect(),popperState:So,props:n}:null}).filter(Boolean);nmt(ct,ge)&&(de(),dt(ge))}}function mt(ge){var Ye=ie(ge)||E.props.trigger.indexOf("click")>=0&&o;if(!Ye){if(E.props.interactive){E.hideWithInteractivity(ge);return}dt(ge)}}function K(ge){E.props.trigger.indexOf("focusin")<0&&ge.target!==Z()||E.props.interactive&&ge.relatedTarget&&_.contains(ge.relatedTarget)||dt(ge)}function ie(ge){return gs.isTouch?G()!==ge.type.indexOf("touch")>=0:!1}function he(){Ie();var ge=E.props,Ye=ge.popperOptions,nt=ge.placement,ct=ge.offset,Pt=ge.getReferenceClientRect,Dt=ge.moveTransition,rr=V()?O8(_).arrow:null,So=Pt?{getBoundingClientRect:Pt,contextElement:Pt.contextElement||Z()}:e,tc={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Gs){var ns=Gs.state;if(V()){var Ks=Y(),Ys=Ks.box;["placement","reference-hidden","escaped"].forEach(function(rc){rc==="placement"?Ys.setAttribute("data-placement",ns.placement):ns.attributes.popper["data-popper-"+rc]?Ys.setAttribute("data-"+rc,""):Ys.removeAttribute("data-"+rc)}),ns.attributes.popper={}}}},ra=[{name:"offset",options:{offset:ct}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Dt}},tc];V()&&rr&&ra.push({name:"arrow",options:{element:rr,padding:3}}),ra.push.apply(ra,(Ye==null?void 0:Ye.modifiers)||[]),E.popperInstance=U0t(So,_,Object.assign({},Ye,{placement:nt,onFirstUpdate:h,modifiers:ra}))}function Ie(){E.popperInstance&&(E.popperInstance.destroy(),E.popperInstance=null)}function xe(){var ge=E.props.appendTo,Ye,nt=Z();E.props.interactive&&ge===xH||ge==="parent"?Ye=nt.parentNode:Ye=CH(ge,[nt]),Ye.contains(_)||Ye.appendChild(_),E.state.isMounted=!0,he()}function ke(){return Wk(_.querySelectorAll("[data-tippy-root]"))}function Be(ge){E.clearDelayTimeouts(),ge&&Q("onTrigger",[E,ge]),ze();var Ye=fe(!0),nt=O(),ct=nt[0],Pt=nt[1];gs.isTouch&&ct==="hold"&&Pt&&(Ye=Pt),Ye?r=setTimeout(function(){E.show()},Ye):E.show()}function dt(ge){if(E.clearDelayTimeouts(),Q("onUntrigger",[E,ge]),!E.state.isVisible){J();return}if(!(E.props.trigger.indexOf("mouseenter")>=0&&E.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(ge.type)>=0&&o)){var Ye=fe(!1);Ye?i=setTimeout(function(){E.state.isVisible&&E.hide()},Ye):a=requestAnimationFrame(function(){E.hide()})}}function Re(){E.state.isEnabled=!0}function zt(){E.hide(),E.state.isEnabled=!1}function Ir(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(a)}function pe(ge){if(!E.state.isDestroyed){Q("onBeforeUpdate",[E,ge]),Xe();var Ye=E.props,nt=aO(e,Object.assign({},Ye,tO(ge),{ignoreAttributes:!0}));E.props=nt,Ge(),Ye.interactiveDebounce!==nt.interactiveDebounce&&(de(),g=QM(Et,nt.interactiveDebounce)),Ye.triggerTarget&&!nt.triggerTarget?rh(Ye.triggerTarget).forEach(function(ct){ct.removeAttribute("aria-expanded")}):nt.triggerTarget&&e.removeAttribute("aria-expanded"),L(),ae(),T&&T(Ye,nt),E.popperInstance&&(he(),ke().forEach(function(ct){requestAnimationFrame(ct._tippy.popperInstance.forceUpdate)})),Q("onAfterUpdate",[E,ge])}}function Ce(ge){E.setProps({content:ge})}function it(){var ge=E.state.isVisible,Ye=E.state.isDestroyed,nt=!E.state.isEnabled,ct=gs.isTouch&&!E.props.touch,Pt=k6(E.props.duration,0,qo.duration);if(!(ge||Ye||nt||ct)&&!Z().hasAttribute("disabled")&&(Q("onShow",[E],!1),E.props.onShow(E)!==!1)){if(E.state.isVisible=!0,V()&&(_.style.visibility="visible"),ae(),ze(),E.state.isMounted||(_.style.transition="none"),V()){var Dt=Y(),rr=Dt.box,So=Dt.content;w6([rr,So],0)}h=function(){var ra;if(!(!E.state.isVisible||c)){if(c=!0,_.offsetHeight,_.style.transition=E.props.moveTransition,V()&&E.props.animation){var nc=Y(),Gs=nc.box,ns=nc.content;w6([Gs,ns],Pt),nO([Gs,ns],"visible")}ce(),L(),eO(x6,E),(ra=E.popperInstance)==null||ra.forceUpdate(),Q("onMount",[E]),E.props.animation&&V()&&ye(Pt,function(){E.state.isShown=!0,Q("onShown",[E])})}},xe()}}function It(){var ge=!E.state.isVisible,Ye=E.state.isDestroyed,nt=!E.state.isEnabled,ct=k6(E.props.duration,1,qo.duration);if(!(ge||Ye||nt)&&(Q("onHide",[E],!1),E.props.onHide(E)!==!1)){if(E.state.isVisible=!1,E.state.isShown=!1,c=!1,o=!1,V()&&(_.style.visibility="hidden"),de(),J(),ae(!0),V()){var Pt=Y(),Dt=Pt.box,rr=Pt.content;E.props.animation&&(w6([Dt,rr],ct),nO([Dt,rr],"hidden"))}ce(),L(),E.props.animation?V()&&Ve(ct,E.unmount):E.unmount()}}function Tt(ge){W().addEventListener("mousemove",g),eO(Qy,g),g(ge)}function vn(){E.state.isVisible&&E.hide(),E.state.isMounted&&(Ie(),ke().forEach(function(ge){ge._tippy.unmount()}),_.parentNode&&_.parentNode.removeChild(_),x6=x6.filter(function(ge){return ge!==E}),E.state.isMounted=!1,Q("onHidden",[E]))}function Tr(){E.state.isDestroyed||(E.clearDelayTimeouts(),E.unmount(),Xe(),delete e._tippy,E.state.isDestroyed=!0,Q("onDestroy",[E]))}}function Rp(e,t){t===void 0&&(t={});var n=qo.plugins.concat(t.plugins||[]);amt();var r=Object.assign({},t,{plugins:n}),i=emt(e),a=i.reduce(function(o,s){var l=s&&mmt(s,r);return l&&o.push(l),o},[]);return Gv(e)?a[0]:a}Rp.defaultProps=qo;Rp.setDefaultProps=dmt;Rp.currentInput=gs;Object.assign({},fH,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});Rp.setDefaultProps({render:EH});var IS=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},ls=(e,t,n)=>(IS(e,t,"read from private field"),n?n.call(e):t.get(e)),Pf=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},F0=(e,t,n,r)=>(IS(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),gmt=(e,t,n)=>(IS(e,t,"access private method"),n),hl,wb,vb,xb,Cb,N8,TH;let AH=class{constructor(t){Pf(this,N8),Pf(this,hl,void 0),Pf(this,wb,void 0),Pf(this,vb,void 0),Pf(this,xb,void 0),Pf(this,Cb,void 0),F0(this,Cb,(n,r)=>{const{state:i,composing:a}=n,{selection:o,doc:s}=i,{ranges:l}=o,c=Math.min(...l.map(h=>h.$from.pos)),u=Math.max(...l.map(h=>h.$to.pos)),f=r&&r.doc.eq(s)&&r.selection.eq(o);if(ls(this,hl)??F0(this,hl,Rp(n.dom,{trigger:"manual",interactive:!0,...ls(this,wb),content:this.element})),!(a||f)){if(!ls(this,xb).call(this,n,r)){this.hide();return}ls(this,hl).setProps({getReferenceClientRect:()=>uq(n,c,u)}),this.show()}}),this.update=(n,r)=>{TS(ls(this,Cb),ls(this,vb))(n,r)},this.destroy=()=>{var n;(n=ls(this,hl))==null||n.destroy()},this.show=()=>{var n;(n=ls(this,hl))==null||n.show()},this.hide=()=>{var n;(n=ls(this,hl))==null||n.hide()},this.getInstance=()=>ls(this,hl),this.element=t.content,F0(this,wb,t.tippyOptions??{}),F0(this,vb,t.debounce??200),F0(this,xb,t.shouldShow??gmt(this,N8,TH))}};hl=new WeakMap,wb=new WeakMap,vb=new WeakMap,xb=new WeakMap,Cb=new WeakMap,N8=new WeakSet,TH=function(e){const{doc:t,selection:n}=e.state,{empty:r,from:i,to:a}=n,o=!t.textBetween(i,a).length&&e.state.selection instanceof Nt,s=this.element.contains(document.activeElement),l=!e.hasFocus()&&!s,c=!e.editable;return!(l||r||o||c)};const zH=e=>{const t=Lr({},`${e}_TOOLTIP_SPEC`),n=yr(i=>{const a=i.get(t.key);return new Bn({key:new Fn(`${e}_TOOLTIP`),...a})}),r=[t,n];return r.key=t.key,r.pluginKey=n.key,t.meta={package:"@milkdown/plugin-tooltip",displayName:`Ctx<tooltipSpec>|${e}`},n.meta={package:"@milkdown/plugin-tooltip",displayName:`Prose<tooltip>|${e}`},r},ymt=[["ß","ss"],["ẞ","Ss"],["ä","ae"],["Ä","Ae"],["ö","oe"],["Ö","Oe"],["ü","ue"],["Ü","Ue"],["À","A"],["Á","A"],["Â","A"],["Ã","A"],["Ä","Ae"],["Å","A"],["Æ","AE"],["Ç","C"],["È","E"],["É","E"],["Ê","E"],["Ë","E"],["Ì","I"],["Í","I"],["Î","I"],["Ï","I"],["Ð","D"],["Ñ","N"],["Ò","O"],["Ó","O"],["Ô","O"],["Õ","O"],["Ö","Oe"],["Ő","O"],["Ø","O"],["Ù","U"],["Ú","U"],["Û","U"],["Ü","Ue"],["Ű","U"],["Ý","Y"],["Þ","TH"],["ß","ss"],["à","a"],["á","a"],["â","a"],["ã","a"],["ä","ae"],["å","a"],["æ","ae"],["ç","c"],["è","e"],["é","e"],["ê","e"],["ë","e"],["ì","i"],["í","i"],["î","i"],["ï","i"],["ð","d"],["ñ","n"],["ò","o"],["ó","o"],["ô","o"],["õ","o"],["ö","oe"],["ő","o"],["ø","o"],["ù","u"],["ú","u"],["û","u"],["ü","ue"],["ű","u"],["ý","y"],["þ","th"],["ÿ","y"],["ẞ","SS"],["à","a"],["À","A"],["á","a"],["Á","A"],["â","a"],["Â","A"],["ã","a"],["Ã","A"],["è","e"],["È","E"],["é","e"],["É","E"],["ê","e"],["Ê","E"],["ì","i"],["Ì","I"],["í","i"],["Í","I"],["ò","o"],["Ò","O"],["ó","o"],["Ó","O"],["ô","o"],["Ô","O"],["õ","o"],["Õ","O"],["ù","u"],["Ù","U"],["ú","u"],["Ú","U"],["ý","y"],["Ý","Y"],["ă","a"],["Ă","A"],["Đ","D"],["đ","d"],["ĩ","i"],["Ĩ","I"],["ũ","u"],["Ũ","U"],["ơ","o"],["Ơ","O"],["ư","u"],["Ư","U"],["ạ","a"],["Ạ","A"],["ả","a"],["Ả","A"],["ấ","a"],["Ấ","A"],["ầ","a"],["Ầ","A"],["ẩ","a"],["Ẩ","A"],["ẫ","a"],["Ẫ","A"],["ậ","a"],["Ậ","A"],["ắ","a"],["Ắ","A"],["ằ","a"],["Ằ","A"],["ẳ","a"],["Ẳ","A"],["ẵ","a"],["Ẵ","A"],["ặ","a"],["Ặ","A"],["ẹ","e"],["Ẹ","E"],["ẻ","e"],["Ẻ","E"],["ẽ","e"],["Ẽ","E"],["ế","e"],["Ế","E"],["ề","e"],["Ề","E"],["ể","e"],["Ể","E"],["ễ","e"],["Ễ","E"],["ệ","e"],["Ệ","E"],["ỉ","i"],["Ỉ","I"],["ị","i"],["Ị","I"],["ọ","o"],["Ọ","O"],["ỏ","o"],["Ỏ","O"],["ố","o"],["Ố","O"],["ồ","o"],["Ồ","O"],["ổ","o"],["Ổ","O"],["ỗ","o"],["Ỗ","O"],["ộ","o"],["Ộ","O"],["ớ","o"],["Ớ","O"],["ờ","o"],["Ờ","O"],["ở","o"],["Ở","O"],["ỡ","o"],["Ỡ","O"],["ợ","o"],["Ợ","O"],["ụ","u"],["Ụ","U"],["ủ","u"],["Ủ","U"],["ứ","u"],["Ứ","U"],["ừ","u"],["Ừ","U"],["ử","u"],["Ử","U"],["ữ","u"],["Ữ","U"],["ự","u"],["Ự","U"],["ỳ","y"],["Ỳ","Y"],["ỵ","y"],["Ỵ","Y"],["ỷ","y"],["Ỷ","Y"],["ỹ","y"],["Ỹ","Y"],["ء","e"],["آ","a"],["أ","a"],["ؤ","w"],["إ","i"],["ئ","y"],["ا","a"],["ب","b"],["ة","t"],["ت","t"],["ث","th"],["ج","j"],["ح","h"],["خ","kh"],["د","d"],["ذ","dh"],["ر","r"],["ز","z"],["س","s"],["ش","sh"],["ص","s"],["ض","d"],["ط","t"],["ظ","z"],["ع","e"],["غ","gh"],["ـ","_"],["ف","f"],["ق","q"],["ك","k"],["ل","l"],["م","m"],["ن","n"],["ه","h"],["و","w"],["ى","a"],["ي","y"],["َ‎","a"],["ُ","u"],["ِ‎","i"],["٠","0"],["١","1"],["٢","2"],["٣","3"],["٤","4"],["٥","5"],["٦","6"],["٧","7"],["٨","8"],["٩","9"],["چ","ch"],["ک","k"],["گ","g"],["پ","p"],["ژ","zh"],["ی","y"],["۰","0"],["۱","1"],["۲","2"],["۳","3"],["۴","4"],["۵","5"],["۶","6"],["۷","7"],["۸","8"],["۹","9"],["ټ","p"],["ځ","z"],["څ","c"],["ډ","d"],["ﺫ","d"],["ﺭ","r"],["ړ","r"],["ﺯ","z"],["ږ","g"],["ښ","x"],["ګ","g"],["ڼ","n"],["ۀ","e"],["ې","e"],["ۍ","ai"],["ٹ","t"],["ڈ","d"],["ڑ","r"],["ں","n"],["ہ","h"],["ھ","h"],["ے","e"],["А","A"],["а","a"],["Б","B"],["б","b"],["В","V"],["в","v"],["Г","G"],["г","g"],["Д","D"],["д","d"],["ъе","ye"],["Ъе","Ye"],["ъЕ","yE"],["ЪЕ","YE"],["Е","E"],["е","e"],["Ё","Yo"],["ё","yo"],["Ж","Zh"],["ж","zh"],["З","Z"],["з","z"],["И","I"],["и","i"],["ый","iy"],["Ый","Iy"],["ЫЙ","IY"],["ыЙ","iY"],["Й","Y"],["й","y"],["К","K"],["к","k"],["Л","L"],["л","l"],["М","M"],["м","m"],["Н","N"],["н","n"],["О","O"],["о","o"],["П","P"],["п","p"],["Р","R"],["р","r"],["С","S"],["с","s"],["Т","T"],["т","t"],["У","U"],["у","u"],["Ф","F"],["ф","f"],["Х","Kh"],["х","kh"],["Ц","Ts"],["ц","ts"],["Ч","Ch"],["ч","ch"],["Ш","Sh"],["ш","sh"],["Щ","Sch"],["щ","sch"],["Ъ",""],["ъ",""],["Ы","Y"],["ы","y"],["Ь",""],["ь",""],["Э","E"],["э","e"],["Ю","Yu"],["ю","yu"],["Я","Ya"],["я","ya"],["ă","a"],["Ă","A"],["ș","s"],["Ș","S"],["ț","t"],["Ț","T"],["ţ","t"],["Ţ","T"],["ş","s"],["Ş","S"],["ç","c"],["Ç","C"],["ğ","g"],["Ğ","G"],["ı","i"],["İ","I"],["ա","a"],["Ա","A"],["բ","b"],["Բ","B"],["գ","g"],["Գ","G"],["դ","d"],["Դ","D"],["ե","ye"],["Ե","Ye"],["զ","z"],["Զ","Z"],["է","e"],["Է","E"],["ը","y"],["Ը","Y"],["թ","t"],["Թ","T"],["ժ","zh"],["Ժ","Zh"],["ի","i"],["Ի","I"],["լ","l"],["Լ","L"],["խ","kh"],["Խ","Kh"],["ծ","ts"],["Ծ","Ts"],["կ","k"],["Կ","K"],["հ","h"],["Հ","H"],["ձ","dz"],["Ձ","Dz"],["ղ","gh"],["Ղ","Gh"],["ճ","tch"],["Ճ","Tch"],["մ","m"],["Մ","M"],["յ","y"],["Յ","Y"],["ն","n"],["Ն","N"],["շ","sh"],["Շ","Sh"],["ո","vo"],["Ո","Vo"],["չ","ch"],["Չ","Ch"],["պ","p"],["Պ","P"],["ջ","j"],["Ջ","J"],["ռ","r"],["Ռ","R"],["ս","s"],["Ս","S"],["վ","v"],["Վ","V"],["տ","t"],["Տ","T"],["ր","r"],["Ր","R"],["ց","c"],["Ց","C"],["ու","u"],["ՈՒ","U"],["Ու","U"],["փ","p"],["Փ","P"],["ք","q"],["Ք","Q"],["օ","o"],["Օ","O"],["ֆ","f"],["Ֆ","F"],["և","yev"],["ა","a"],["ბ","b"],["გ","g"],["დ","d"],["ე","e"],["ვ","v"],["ზ","z"],["თ","t"],["ი","i"],["კ","k"],["ლ","l"],["მ","m"],["ნ","n"],["ო","o"],["პ","p"],["ჟ","zh"],["რ","r"],["ს","s"],["ტ","t"],["უ","u"],["ფ","ph"],["ქ","q"],["ღ","gh"],["ყ","k"],["შ","sh"],["ჩ","ch"],["ც","ts"],["ძ","dz"],["წ","ts"],["ჭ","tch"],["ხ","kh"],["ჯ","j"],["ჰ","h"],["č","c"],["ď","d"],["ě","e"],["ň","n"],["ř","r"],["š","s"],["ť","t"],["ů","u"],["ž","z"],["Č","C"],["Ď","D"],["Ě","E"],["Ň","N"],["Ř","R"],["Š","S"],["Ť","T"],["Ů","U"],["Ž","Z"],["ހ","h"],["ށ","sh"],["ނ","n"],["ރ","r"],["ބ","b"],["ޅ","lh"],["ކ","k"],["އ","a"],["ވ","v"],["މ","m"],["ފ","f"],["ދ","dh"],["ތ","th"],["ލ","l"],["ގ","g"],["ޏ","gn"],["ސ","s"],["ޑ","d"],["ޒ","z"],["ޓ","t"],["ޔ","y"],["ޕ","p"],["ޖ","j"],["ޗ","ch"],["ޘ","tt"],["ޙ","hh"],["ޚ","kh"],["ޛ","th"],["ޜ","z"],["ޝ","sh"],["ޞ","s"],["ޟ","d"],["ޠ","t"],["ޡ","z"],["ޢ","a"],["ޣ","gh"],["ޤ","q"],["ޥ","w"],["ަ","a"],["ާ","aa"],["ި","i"],["ީ","ee"],["ު","u"],["ޫ","oo"],["ެ","e"],["ޭ","ey"],["ޮ","o"],["ޯ","oa"],["ް",""],["α","a"],["β","v"],["γ","g"],["δ","d"],["ε","e"],["ζ","z"],["η","i"],["θ","th"],["ι","i"],["κ","k"],["λ","l"],["μ","m"],["ν","n"],["ξ","ks"],["ο","o"],["π","p"],["ρ","r"],["σ","s"],["τ","t"],["υ","y"],["φ","f"],["χ","x"],["ψ","ps"],["ω","o"],["ά","a"],["έ","e"],["ί","i"],["ό","o"],["ύ","y"],["ή","i"],["ώ","o"],["ς","s"],["ϊ","i"],["ΰ","y"],["ϋ","y"],["ΐ","i"],["Α","A"],["Β","B"],["Γ","G"],["Δ","D"],["Ε","E"],["Ζ","Z"],["Η","I"],["Θ","TH"],["Ι","I"],["Κ","K"],["Λ","L"],["Μ","M"],["Ν","N"],["Ξ","KS"],["Ο","O"],["Π","P"],["Ρ","R"],["Σ","S"],["Τ","T"],["Υ","Y"],["Φ","F"],["Χ","X"],["Ψ","PS"],["Ω","O"],["Ά","A"],["Έ","E"],["Ί","I"],["Ό","O"],["Ύ","Y"],["Ή","I"],["Ώ","O"],["Ϊ","I"],["Ϋ","Y"],["ā","a"],["ē","e"],["ģ","g"],["ī","i"],["ķ","k"],["ļ","l"],["ņ","n"],["ū","u"],["Ā","A"],["Ē","E"],["Ģ","G"],["Ī","I"],["Ķ","K"],["Ļ","L"],["Ņ","N"],["Ū","U"],["č","c"],["š","s"],["ž","z"],["Č","C"],["Š","S"],["Ž","Z"],["ą","a"],["č","c"],["ę","e"],["ė","e"],["į","i"],["š","s"],["ų","u"],["ū","u"],["ž","z"],["Ą","A"],["Č","C"],["Ę","E"],["Ė","E"],["Į","I"],["Š","S"],["Ų","U"],["Ū","U"],["Ќ","Kj"],["ќ","kj"],["Љ","Lj"],["љ","lj"],["Њ","Nj"],["њ","nj"],["Тс","Ts"],["тс","ts"],["ą","a"],["ć","c"],["ę","e"],["ł","l"],["ń","n"],["ś","s"],["ź","z"],["ż","z"],["Ą","A"],["Ć","C"],["Ę","E"],["Ł","L"],["Ń","N"],["Ś","S"],["Ź","Z"],["Ż","Z"],["Є","Ye"],["І","I"],["Ї","Yi"],["Ґ","G"],["є","ye"],["і","i"],["ї","yi"],["ґ","g"],["IJ","IJ"],["ij","ij"],["¢","c"],["¥","Y"],["߿","b"],["৳","t"],["૱","Bo"],["฿","B"],["₠","CE"],["₡","C"],["₢","Cr"],["₣","F"],["₥","m"],["₦","N"],["₧","Pt"],["₨","Rs"],["₩","W"],["₫","s"],["€","E"],["₭","K"],["₮","T"],["₯","Dp"],["₰","S"],["₱","P"],["₲","G"],["₳","A"],["₴","S"],["₵","C"],["₶","tt"],["₷","S"],["₸","T"],["₹","R"],["₺","L"],["₽","P"],["₿","B"],["﹩","$"],["¢","c"],["¥","Y"],["₩","W"],["𝐀","A"],["𝐁","B"],["𝐂","C"],["𝐃","D"],["𝐄","E"],["𝐅","F"],["𝐆","G"],["𝐇","H"],["𝐈","I"],["𝐉","J"],["𝐊","K"],["𝐋","L"],["𝐌","M"],["𝐍","N"],["𝐎","O"],["𝐏","P"],["𝐐","Q"],["𝐑","R"],["𝐒","S"],["𝐓","T"],["𝐔","U"],["𝐕","V"],["𝐖","W"],["𝐗","X"],["𝐘","Y"],["𝐙","Z"],["𝐚","a"],["𝐛","b"],["𝐜","c"],["𝐝","d"],["𝐞","e"],["𝐟","f"],["𝐠","g"],["𝐡","h"],["𝐢","i"],["𝐣","j"],["𝐤","k"],["𝐥","l"],["𝐦","m"],["𝐧","n"],["𝐨","o"],["𝐩","p"],["𝐪","q"],["𝐫","r"],["𝐬","s"],["𝐭","t"],["𝐮","u"],["𝐯","v"],["𝐰","w"],["𝐱","x"],["𝐲","y"],["𝐳","z"],["𝐴","A"],["𝐵","B"],["𝐶","C"],["𝐷","D"],["𝐸","E"],["𝐹","F"],["𝐺","G"],["𝐻","H"],["𝐼","I"],["𝐽","J"],["𝐾","K"],["𝐿","L"],["𝑀","M"],["𝑁","N"],["𝑂","O"],["𝑃","P"],["𝑄","Q"],["𝑅","R"],["𝑆","S"],["𝑇","T"],["𝑈","U"],["𝑉","V"],["𝑊","W"],["𝑋","X"],["𝑌","Y"],["𝑍","Z"],["𝑎","a"],["𝑏","b"],["𝑐","c"],["𝑑","d"],["𝑒","e"],["𝑓","f"],["𝑔","g"],["𝑖","i"],["𝑗","j"],["𝑘","k"],["𝑙","l"],["𝑚","m"],["𝑛","n"],["𝑜","o"],["𝑝","p"],["𝑞","q"],["𝑟","r"],["𝑠","s"],["𝑡","t"],["𝑢","u"],["𝑣","v"],["𝑤","w"],["𝑥","x"],["𝑦","y"],["𝑧","z"],["𝑨","A"],["𝑩","B"],["𝑪","C"],["𝑫","D"],["𝑬","E"],["𝑭","F"],["𝑮","G"],["𝑯","H"],["𝑰","I"],["𝑱","J"],["𝑲","K"],["𝑳","L"],["𝑴","M"],["𝑵","N"],["𝑶","O"],["𝑷","P"],["𝑸","Q"],["𝑹","R"],["𝑺","S"],["𝑻","T"],["𝑼","U"],["𝑽","V"],["𝑾","W"],["𝑿","X"],["𝒀","Y"],["𝒁","Z"],["𝒂","a"],["𝒃","b"],["𝒄","c"],["𝒅","d"],["𝒆","e"],["𝒇","f"],["𝒈","g"],["𝒉","h"],["𝒊","i"],["𝒋","j"],["𝒌","k"],["𝒍","l"],["𝒎","m"],["𝒏","n"],["𝒐","o"],["𝒑","p"],["𝒒","q"],["𝒓","r"],["𝒔","s"],["𝒕","t"],["𝒖","u"],["𝒗","v"],["𝒘","w"],["𝒙","x"],["𝒚","y"],["𝒛","z"],["𝒜","A"],["𝒞","C"],["𝒟","D"],["𝒢","g"],["𝒥","J"],["𝒦","K"],["𝒩","N"],["𝒪","O"],["𝒫","P"],["𝒬","Q"],["𝒮","S"],["𝒯","T"],["𝒰","U"],["𝒱","V"],["𝒲","W"],["𝒳","X"],["𝒴","Y"],["𝒵","Z"],["𝒶","a"],["𝒷","b"],["𝒸","c"],["𝒹","d"],["𝒻","f"],["𝒽","h"],["𝒾","i"],["𝒿","j"],["𝓀","h"],["𝓁","l"],["𝓂","m"],["𝓃","n"],["𝓅","p"],["𝓆","q"],["𝓇","r"],["𝓈","s"],["𝓉","t"],["𝓊","u"],["𝓋","v"],["𝓌","w"],["𝓍","x"],["𝓎","y"],["𝓏","z"],["𝓐","A"],["𝓑","B"],["𝓒","C"],["𝓓","D"],["𝓔","E"],["𝓕","F"],["𝓖","G"],["𝓗","H"],["𝓘","I"],["𝓙","J"],["𝓚","K"],["𝓛","L"],["𝓜","M"],["𝓝","N"],["𝓞","O"],["𝓟","P"],["𝓠","Q"],["𝓡","R"],["𝓢","S"],["𝓣","T"],["𝓤","U"],["𝓥","V"],["𝓦","W"],["𝓧","X"],["𝓨","Y"],["𝓩","Z"],["𝓪","a"],["𝓫","b"],["𝓬","c"],["𝓭","d"],["𝓮","e"],["𝓯","f"],["𝓰","g"],["𝓱","h"],["𝓲","i"],["𝓳","j"],["𝓴","k"],["𝓵","l"],["𝓶","m"],["𝓷","n"],["𝓸","o"],["𝓹","p"],["𝓺","q"],["𝓻","r"],["𝓼","s"],["𝓽","t"],["𝓾","u"],["𝓿","v"],["𝔀","w"],["𝔁","x"],["𝔂","y"],["𝔃","z"],["𝔄","A"],["𝔅","B"],["𝔇","D"],["𝔈","E"],["𝔉","F"],["𝔊","G"],["𝔍","J"],["𝔎","K"],["𝔏","L"],["𝔐","M"],["𝔑","N"],["𝔒","O"],["𝔓","P"],["𝔔","Q"],["𝔖","S"],["𝔗","T"],["𝔘","U"],["𝔙","V"],["𝔚","W"],["𝔛","X"],["𝔜","Y"],["𝔞","a"],["𝔟","b"],["𝔠","c"],["𝔡","d"],["𝔢","e"],["𝔣","f"],["𝔤","g"],["𝔥","h"],["𝔦","i"],["𝔧","j"],["𝔨","k"],["𝔩","l"],["𝔪","m"],["𝔫","n"],["𝔬","o"],["𝔭","p"],["𝔮","q"],["𝔯","r"],["𝔰","s"],["𝔱","t"],["𝔲","u"],["𝔳","v"],["𝔴","w"],["𝔵","x"],["𝔶","y"],["𝔷","z"],["𝔸","A"],["𝔹","B"],["𝔻","D"],["𝔼","E"],["𝔽","F"],["𝔾","G"],["𝕀","I"],["𝕁","J"],["𝕂","K"],["𝕃","L"],["𝕄","M"],["𝕆","N"],["𝕊","S"],["𝕋","T"],["𝕌","U"],["𝕍","V"],["𝕎","W"],["𝕏","X"],["𝕐","Y"],["𝕒","a"],["𝕓","b"],["𝕔","c"],["𝕕","d"],["𝕖","e"],["𝕗","f"],["𝕘","g"],["𝕙","h"],["𝕚","i"],["𝕛","j"],["𝕜","k"],["𝕝","l"],["𝕞","m"],["𝕟","n"],["𝕠","o"],["𝕡","p"],["𝕢","q"],["𝕣","r"],["𝕤","s"],["𝕥","t"],["𝕦","u"],["𝕧","v"],["𝕨","w"],["𝕩","x"],["𝕪","y"],["𝕫","z"],["𝕬","A"],["𝕭","B"],["𝕮","C"],["𝕯","D"],["𝕰","E"],["𝕱","F"],["𝕲","G"],["𝕳","H"],["𝕴","I"],["𝕵","J"],["𝕶","K"],["𝕷","L"],["𝕸","M"],["𝕹","N"],["𝕺","O"],["𝕻","P"],["𝕼","Q"],["𝕽","R"],["𝕾","S"],["𝕿","T"],["𝖀","U"],["𝖁","V"],["𝖂","W"],["𝖃","X"],["𝖄","Y"],["𝖅","Z"],["𝖆","a"],["𝖇","b"],["𝖈","c"],["𝖉","d"],["𝖊","e"],["𝖋","f"],["𝖌","g"],["𝖍","h"],["𝖎","i"],["𝖏","j"],["𝖐","k"],["𝖑","l"],["𝖒","m"],["𝖓","n"],["𝖔","o"],["𝖕","p"],["𝖖","q"],["𝖗","r"],["𝖘","s"],["𝖙","t"],["𝖚","u"],["𝖛","v"],["𝖜","w"],["𝖝","x"],["𝖞","y"],["𝖟","z"],["𝖠","A"],["𝖡","B"],["𝖢","C"],["𝖣","D"],["𝖤","E"],["𝖥","F"],["𝖦","G"],["𝖧","H"],["𝖨","I"],["𝖩","J"],["𝖪","K"],["𝖫","L"],["𝖬","M"],["𝖭","N"],["𝖮","O"],["𝖯","P"],["𝖰","Q"],["𝖱","R"],["𝖲","S"],["𝖳","T"],["𝖴","U"],["𝖵","V"],["𝖶","W"],["𝖷","X"],["𝖸","Y"],["𝖹","Z"],["𝖺","a"],["𝖻","b"],["𝖼","c"],["𝖽","d"],["𝖾","e"],["𝖿","f"],["𝗀","g"],["𝗁","h"],["𝗂","i"],["𝗃","j"],["𝗄","k"],["𝗅","l"],["𝗆","m"],["𝗇","n"],["𝗈","o"],["𝗉","p"],["𝗊","q"],["𝗋","r"],["𝗌","s"],["𝗍","t"],["𝗎","u"],["𝗏","v"],["𝗐","w"],["𝗑","x"],["𝗒","y"],["𝗓","z"],["𝗔","A"],["𝗕","B"],["𝗖","C"],["𝗗","D"],["𝗘","E"],["𝗙","F"],["𝗚","G"],["𝗛","H"],["𝗜","I"],["𝗝","J"],["𝗞","K"],["𝗟","L"],["𝗠","M"],["𝗡","N"],["𝗢","O"],["𝗣","P"],["𝗤","Q"],["𝗥","R"],["𝗦","S"],["𝗧","T"],["𝗨","U"],["𝗩","V"],["𝗪","W"],["𝗫","X"],["𝗬","Y"],["𝗭","Z"],["𝗮","a"],["𝗯","b"],["𝗰","c"],["𝗱","d"],["𝗲","e"],["𝗳","f"],["𝗴","g"],["𝗵","h"],["𝗶","i"],["𝗷","j"],["𝗸","k"],["𝗹","l"],["𝗺","m"],["𝗻","n"],["𝗼","o"],["𝗽","p"],["𝗾","q"],["𝗿","r"],["𝘀","s"],["𝘁","t"],["𝘂","u"],["𝘃","v"],["𝘄","w"],["𝘅","x"],["𝘆","y"],["𝘇","z"],["𝘈","A"],["𝘉","B"],["𝘊","C"],["𝘋","D"],["𝘌","E"],["𝘍","F"],["𝘎","G"],["𝘏","H"],["𝘐","I"],["𝘑","J"],["𝘒","K"],["𝘓","L"],["𝘔","M"],["𝘕","N"],["𝘖","O"],["𝘗","P"],["𝘘","Q"],["𝘙","R"],["𝘚","S"],["𝘛","T"],["𝘜","U"],["𝘝","V"],["𝘞","W"],["𝘟","X"],["𝘠","Y"],["𝘡","Z"],["𝘢","a"],["𝘣","b"],["𝘤","c"],["𝘥","d"],["𝘦","e"],["𝘧","f"],["𝘨","g"],["𝘩","h"],["𝘪","i"],["𝘫","j"],["𝘬","k"],["𝘭","l"],["𝘮","m"],["𝘯","n"],["𝘰","o"],["𝘱","p"],["𝘲","q"],["𝘳","r"],["𝘴","s"],["𝘵","t"],["𝘶","u"],["𝘷","v"],["𝘸","w"],["𝘹","x"],["𝘺","y"],["𝘻","z"],["𝘼","A"],["𝘽","B"],["𝘾","C"],["𝘿","D"],["𝙀","E"],["𝙁","F"],["𝙂","G"],["𝙃","H"],["𝙄","I"],["𝙅","J"],["𝙆","K"],["𝙇","L"],["𝙈","M"],["𝙉","N"],["𝙊","O"],["𝙋","P"],["𝙌","Q"],["𝙍","R"],["𝙎","S"],["𝙏","T"],["𝙐","U"],["𝙑","V"],["𝙒","W"],["𝙓","X"],["𝙔","Y"],["𝙕","Z"],["𝙖","a"],["𝙗","b"],["𝙘","c"],["𝙙","d"],["𝙚","e"],["𝙛","f"],["𝙜","g"],["𝙝","h"],["𝙞","i"],["𝙟","j"],["𝙠","k"],["𝙡","l"],["𝙢","m"],["𝙣","n"],["𝙤","o"],["𝙥","p"],["𝙦","q"],["𝙧","r"],["𝙨","s"],["𝙩","t"],["𝙪","u"],["𝙫","v"],["𝙬","w"],["𝙭","x"],["𝙮","y"],["𝙯","z"],["𝙰","A"],["𝙱","B"],["𝙲","C"],["𝙳","D"],["𝙴","E"],["𝙵","F"],["𝙶","G"],["𝙷","H"],["𝙸","I"],["𝙹","J"],["𝙺","K"],["𝙻","L"],["𝙼","M"],["𝙽","N"],["𝙾","O"],["𝙿","P"],["𝚀","Q"],["𝚁","R"],["𝚂","S"],["𝚃","T"],["𝚄","U"],["𝚅","V"],["𝚆","W"],["𝚇","X"],["𝚈","Y"],["𝚉","Z"],["𝚊","a"],["𝚋","b"],["𝚌","c"],["𝚍","d"],["𝚎","e"],["𝚏","f"],["𝚐","g"],["𝚑","h"],["𝚒","i"],["𝚓","j"],["𝚔","k"],["𝚕","l"],["𝚖","m"],["𝚗","n"],["𝚘","o"],["𝚙","p"],["𝚚","q"],["𝚛","r"],["𝚜","s"],["𝚝","t"],["𝚞","u"],["𝚟","v"],["𝚠","w"],["𝚡","x"],["𝚢","y"],["𝚣","z"],["𝚤","l"],["𝚥","j"],["𝛢","A"],["𝛣","B"],["𝛤","G"],["𝛥","D"],["𝛦","E"],["𝛧","Z"],["𝛨","I"],["𝛩","TH"],["𝛪","I"],["𝛫","K"],["𝛬","L"],["𝛭","M"],["𝛮","N"],["𝛯","KS"],["𝛰","O"],["𝛱","P"],["𝛲","R"],["𝛳","TH"],["𝛴","S"],["𝛵","T"],["𝛶","Y"],["𝛷","F"],["𝛸","x"],["𝛹","PS"],["𝛺","O"],["𝛻","D"],["𝛼","a"],["𝛽","b"],["𝛾","g"],["𝛿","d"],["𝜀","e"],["𝜁","z"],["𝜂","i"],["𝜃","th"],["𝜄","i"],["𝜅","k"],["𝜆","l"],["𝜇","m"],["𝜈","n"],["𝜉","ks"],["𝜊","o"],["𝜋","p"],["𝜌","r"],["𝜍","s"],["𝜎","s"],["𝜏","t"],["𝜐","y"],["𝜑","f"],["𝜒","x"],["𝜓","ps"],["𝜔","o"],["𝜕","d"],["𝜖","E"],["𝜗","TH"],["𝜘","K"],["𝜙","f"],["𝜚","r"],["𝜛","p"],["𝜜","A"],["𝜝","V"],["𝜞","G"],["𝜟","D"],["𝜠","E"],["𝜡","Z"],["𝜢","I"],["𝜣","TH"],["𝜤","I"],["𝜥","K"],["𝜦","L"],["𝜧","M"],["𝜨","N"],["𝜩","KS"],["𝜪","O"],["𝜫","P"],["𝜬","S"],["𝜭","TH"],["𝜮","S"],["𝜯","T"],["𝜰","Y"],["𝜱","F"],["𝜲","X"],["𝜳","PS"],["𝜴","O"],["𝜵","D"],["𝜶","a"],["𝜷","v"],["𝜸","g"],["𝜹","d"],["𝜺","e"],["𝜻","z"],["𝜼","i"],["𝜽","th"],["𝜾","i"],["𝜿","k"],["𝝀","l"],["𝝁","m"],["𝝂","n"],["𝝃","ks"],["𝝄","o"],["𝝅","p"],["𝝆","r"],["𝝇","s"],["𝝈","s"],["𝝉","t"],["𝝊","y"],["𝝋","f"],["𝝌","x"],["𝝍","ps"],["𝝎","o"],["𝝏","a"],["𝝐","e"],["𝝑","i"],["𝝒","k"],["𝝓","f"],["𝝔","r"],["𝝕","p"],["𝝖","A"],["𝝗","B"],["𝝘","G"],["𝝙","D"],["𝝚","E"],["𝝛","Z"],["𝝜","I"],["𝝝","TH"],["𝝞","I"],["𝝟","K"],["𝝠","L"],["𝝡","M"],["𝝢","N"],["𝝣","KS"],["𝝤","O"],["𝝥","P"],["𝝦","R"],["𝝧","TH"],["𝝨","S"],["𝝩","T"],["𝝪","Y"],["𝝫","F"],["𝝬","X"],["𝝭","PS"],["𝝮","O"],["𝝯","D"],["𝝰","a"],["𝝱","v"],["𝝲","g"],["𝝳","d"],["𝝴","e"],["𝝵","z"],["𝝶","i"],["𝝷","th"],["𝝸","i"],["𝝹","k"],["𝝺","l"],["𝝻","m"],["𝝼","n"],["𝝽","ks"],["𝝾","o"],["𝝿","p"],["𝞀","r"],["𝞁","s"],["𝞂","s"],["𝞃","t"],["𝞄","y"],["𝞅","f"],["𝞆","x"],["𝞇","ps"],["𝞈","o"],["𝞉","a"],["𝞊","e"],["𝞋","i"],["𝞌","k"],["𝞍","f"],["𝞎","r"],["𝞏","p"],["𝞐","A"],["𝞑","V"],["𝞒","G"],["𝞓","D"],["𝞔","E"],["𝞕","Z"],["𝞖","I"],["𝞗","TH"],["𝞘","I"],["𝞙","K"],["𝞚","L"],["𝞛","M"],["𝞜","N"],["𝞝","KS"],["𝞞","O"],["𝞟","P"],["𝞠","S"],["𝞡","TH"],["𝞢","S"],["𝞣","T"],["𝞤","Y"],["𝞥","F"],["𝞦","X"],["𝞧","PS"],["𝞨","O"],["𝞩","D"],["𝞪","av"],["𝞫","g"],["𝞬","d"],["𝞭","e"],["𝞮","z"],["𝞯","i"],["𝞰","i"],["𝞱","th"],["𝞲","i"],["𝞳","k"],["𝞴","l"],["𝞵","m"],["𝞶","n"],["𝞷","ks"],["𝞸","o"],["𝞹","p"],["𝞺","r"],["𝞻","s"],["𝞼","s"],["𝞽","t"],["𝞾","y"],["𝞿","f"],["𝟀","x"],["𝟁","ps"],["𝟂","o"],["𝟃","a"],["𝟄","e"],["𝟅","i"],["𝟆","k"],["𝟇","f"],["𝟈","r"],["𝟉","p"],["𝟊","F"],["𝟋","f"],["⒜","(a)"],["⒝","(b)"],["⒞","(c)"],["⒟","(d)"],["⒠","(e)"],["⒡","(f)"],["⒢","(g)"],["⒣","(h)"],["⒤","(i)"],["⒥","(j)"],["⒦","(k)"],["⒧","(l)"],["⒨","(m)"],["⒩","(n)"],["⒪","(o)"],["⒫","(p)"],["⒬","(q)"],["⒭","(r)"],["⒮","(s)"],["⒯","(t)"],["⒰","(u)"],["⒱","(v)"],["⒲","(w)"],["⒳","(x)"],["⒴","(y)"],["⒵","(z)"],["Ⓐ","(A)"],["Ⓑ","(B)"],["Ⓒ","(C)"],["Ⓓ","(D)"],["Ⓔ","(E)"],["Ⓕ","(F)"],["Ⓖ","(G)"],["Ⓗ","(H)"],["Ⓘ","(I)"],["Ⓙ","(J)"],["Ⓚ","(K)"],["Ⓛ","(L)"],["Ⓝ","(N)"],["Ⓞ","(O)"],["Ⓟ","(P)"],["Ⓠ","(Q)"],["Ⓡ","(R)"],["Ⓢ","(S)"],["Ⓣ","(T)"],["Ⓤ","(U)"],["Ⓥ","(V)"],["Ⓦ","(W)"],["Ⓧ","(X)"],["Ⓨ","(Y)"],["Ⓩ","(Z)"],["ⓐ","(a)"],["ⓑ","(b)"],["ⓒ","(b)"],["ⓓ","(c)"],["ⓔ","(e)"],["ⓕ","(f)"],["ⓖ","(g)"],["ⓗ","(h)"],["ⓘ","(i)"],["ⓙ","(j)"],["ⓚ","(k)"],["ⓛ","(l)"],["ⓜ","(m)"],["ⓝ","(n)"],["ⓞ","(o)"],["ⓟ","(p)"],["ⓠ","(q)"],["ⓡ","(r)"],["ⓢ","(s)"],["ⓣ","(t)"],["ⓤ","(u)"],["ⓥ","(v)"],["ⓦ","(w)"],["ⓧ","(x)"],["ⓨ","(y)"],["ⓩ","(z)"],["Ċ","C"],["ċ","c"],["Ġ","G"],["ġ","g"],["Ħ","H"],["ħ","h"],["Ż","Z"],["ż","z"],["𝟎","0"],["𝟏","1"],["𝟐","2"],["𝟑","3"],["𝟒","4"],["𝟓","5"],["𝟔","6"],["𝟕","7"],["𝟖","8"],["𝟗","9"],["𝟘","0"],["𝟙","1"],["𝟚","2"],["𝟛","3"],["𝟜","4"],["𝟝","5"],["𝟞","6"],["𝟟","7"],["𝟠","8"],["𝟡","9"],["𝟢","0"],["𝟣","1"],["𝟤","2"],["𝟥","3"],["𝟦","4"],["𝟧","5"],["𝟨","6"],["𝟩","7"],["𝟪","8"],["𝟫","9"],["𝟬","0"],["𝟭","1"],["𝟮","2"],["𝟯","3"],["𝟰","4"],["𝟱","5"],["𝟲","6"],["𝟳","7"],["𝟴","8"],["𝟵","9"],["𝟶","0"],["𝟷","1"],["𝟸","2"],["𝟹","3"],["𝟺","4"],["𝟻","5"],["𝟼","6"],["𝟽","7"],["𝟾","8"],["𝟿","9"],["①","1"],["②","2"],["③","3"],["④","4"],["⑤","5"],["⑥","6"],["⑦","7"],["⑧","8"],["⑨","9"],["⑩","10"],["⑪","11"],["⑫","12"],["⑬","13"],["⑭","14"],["⑮","15"],["⑯","16"],["⑰","17"],["⑱","18"],["⑲","19"],["⑳","20"],["⑴","1"],["⑵","2"],["⑶","3"],["⑷","4"],["⑸","5"],["⑹","6"],["⑺","7"],["⑻","8"],["⑼","9"],["⑽","10"],["⑾","11"],["⑿","12"],["⒀","13"],["⒁","14"],["⒂","15"],["⒃","16"],["⒄","17"],["⒅","18"],["⒆","19"],["⒇","20"],["⒈","1."],["⒉","2."],["⒊","3."],["⒋","4."],["⒌","5."],["⒍","6."],["⒎","7."],["⒏","8."],["⒐","9."],["⒑","10."],["⒒","11."],["⒓","12."],["⒔","13."],["⒕","14."],["⒖","15."],["⒗","16."],["⒘","17."],["⒙","18."],["⒚","19."],["⒛","20."],["⓪","0"],["⓫","11"],["⓬","12"],["⓭","13"],["⓮","14"],["⓯","15"],["⓰","16"],["⓱","17"],["⓲","18"],["⓳","19"],["⓴","20"],["⓵","1"],["⓶","2"],["⓷","3"],["⓸","4"],["⓹","5"],["⓺","6"],["⓻","7"],["⓼","8"],["⓽","9"],["⓾","10"],["⓿","0"],["🙰","&"],["🙱","&"],["🙲","&"],["🙳","&"],["🙴","&"],["🙵","&"],["🙶",'"'],["🙷",'"'],["🙸",'"'],["‽","?!"],["🙹","?!"],["🙺","?!"],["🙻","?!"],["🙼","/"],["🙽","\\"],["🜇","AR"],["🜈","V"],["🜉","V"],["🜆","VR"],["🜅","VF"],["🜩","2"],["🜪","5"],["🝡","f"],["🝢","W"],["🝣","U"],["🝧","V"],["🝨","T"],["🝪","V"],["🝫","MB"],["🝬","VB"],["🝲","3B"],["🝳","3B"],["💯","100"],["🔙","BACK"],["🔚","END"],["🔛","ON!"],["🔜","SOON"],["🔝","TOP"],["🔞","18"],["🔤","abc"],["🔠","ABCD"],["🔡","abcd"],["🔢","1234"],["🔣","T&@%"],["#️⃣","#"],["*️⃣","*"],["0️⃣","0"],["1️⃣","1"],["2️⃣","2"],["3️⃣","3"],["4️⃣","4"],["5️⃣","5"],["6️⃣","6"],["7️⃣","7"],["8️⃣","8"],["9️⃣","9"],["🔟","10"],["🅰️","A"],["🅱️","B"],["🆎","AB"],["🆑","CL"],["🅾️","O"],["🅿","P"],["🆘","SOS"],["🅲","C"],["🅳","D"],["🅴","E"],["🅵","F"],["🅶","G"],["🅷","H"],["🅸","I"],["🅹","J"],["🅺","K"],["🅻","L"],["🅼","M"],["🅽","N"],["🆀","Q"],["🆁","R"],["🆂","S"],["🆃","T"],["🆄","U"],["🆅","V"],["🆆","W"],["🆇","X"],["🆈","Y"],["🆉","Z"]],_mt=(e,t)=>{for(const[n,r]of t)e=e.replace(new RegExp(qv(n),"g"),r);return e};function bmt(e,t){if(typeof e!="string")throw new TypeError(`Expected a string, got \`${typeof e}\``);t={customReplacements:[],...t};const n=new Map([...ymt,...t.customReplacements]);return e=e.normalize(),e=_mt(e,n),e=e.normalize("NFD").replace(/\p{Diacritic}/gu,"").normalize(),e}const kmt=[["&"," and "],["🦄"," unicorn "],["♥"," love "]],wmt=e=>e.replace(/([A-Z]{2,})(\d+)/g,"$1 $2").replace(/([a-z\d]+)([A-Z]{2,})/g,"$1 $2").replace(/([a-z\d])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-rt-z\d]+)/g,"$1 $2"),vmt=(e,t)=>{const n=qv(t);return e.replace(new RegExp(`${n}{2,}`,"g"),t).replace(new RegExp(`^${n}|${n}$`,"g"),"")},xmt=e=>{let t="a-z\\d";if(t+=e.lowercase?"":"A-Z",e.preserveCharacters.length>0)for(const n of e.preserveCharacters){if(n===e.separator)throw new Error(`The separator character \`${e.separator}\` cannot be included in preserved characters: ${e.preserveCharacters}`);t+=qv(n)}return new RegExp(`[^${t}]+`,"g")};function Cmt(e,t){if(typeof e!="string")throw new TypeError(`Expected a string, got \`${typeof e}\``);t={separator:"-",lowercase:!0,decamelize:!0,customReplacements:[],preserveLeadingUnderscore:!1,preserveTrailingDash:!1,preserveCharacters:[],...t};const n=t.preserveLeadingUnderscore&&e.startsWith("_"),r=t.preserveTrailingDash&&e.endsWith("-"),i=new Map([...kmt,...t.customReplacements]);e=bmt(e,{customReplacements:i}),t.decamelize&&(e=wmt(e));const a=xmt(t);return t.lowercase&&(e=e.toLowerCase()),e=e.replace(/([a-zA-Z\d]+)'([ts])(\s|$)/g,"$1$2$3"),e=e.replace(a,t.separator),e=e.replace(/\\/g,""),t.separator&&(e=vmt(e,t.separator)),n&&(e=`_${e}`),r&&(e=`${e}-`),e}function FH(e,t=null){return function(n,r){let{$from:i,$to:a}=n.selection,o=i.blockRange(a),s=!1,l=o;if(!o)return!1;if(o.depth>=2&&i.node(o.depth-1).type.compatibleContent(e)&&o.startIndex==0){if(i.index(o.depth-1)==0)return!1;let u=n.doc.resolve(o.start-2);l=new Ak(u,u,o.depth),o.endIndex<o.parent.childCount&&(o=new Ak(i,n.doc.resolve(a.end(o.depth)),o.depth)),s=!0}let c=GC(l,e,t,o);return c?(r&&r(Smt(n.tr,o,c,s,e).scrollIntoView()),!0):!1}}function Smt(e,t,n,r,i){let a=Ee.empty;for(let u=n.length-1;u>=0;u--)a=Ee.from(n[u].type.create(n[u].attrs,a));e.step(new Wr(t.start-(r?2:0),t.end,t.start,t.end,new Ue(a,0,0),n.length,!0));let o=0;for(let u=0;u<n.length;u++)n[u].type==i&&(o=u+1);let s=n.length-o,l=t.start+n.length-(r?2:0),c=t.parent;for(let u=t.startIndex,f=t.endIndex,h=!0;u<f;u++,h=!1)!h&&Ih(e.doc,l,s)&&(e.split(l,s),l+=2*s),l+=c.child(u).nodeSize;return e}function Dmt(e,t){return function(n,r){let{$from:i,$to:a,node:o}=n.selection;if(o&&o.isBlock||i.depth<2||!i.sameParent(a))return!1;let s=i.node(-1);if(s.type!=e)return!1;if(i.parent.content.size==0&&i.node(-1).childCount==i.indexAfter(-1)){if(i.depth==3||i.node(-3).type!=e||i.index(-2)!=i.node(-2).childCount-1)return!1;if(r){let f=Ee.empty,h=i.index(-1)?1:i.index(-2)?2:3;for(let w=i.depth-h;w>=i.depth-3;w--)f=Ee.from(i.node(w).copy(f));let m=i.indexAfter(-1)<i.node(-2).childCount?1:i.indexAfter(-2)<i.node(-3).childCount?2:3;f=f.append(Ee.from(e.createAndFill()));let g=i.before(i.depth-(h-1)),b=n.tr.replace(g,i.after(-m),new Ue(f,4-h,0)),C=-1;b.doc.nodesBetween(g,b.doc.content.size,(w,k)=>{if(C>-1)return!1;w.isTextblock&&w.content.size==0&&(C=k+1)}),C>-1&&b.setSelection($t.near(b.doc.resolve(C))),r(b.scrollIntoView())}return!0}let l=a.pos==i.end()?s.contentMatchAt(0).defaultType:null,c=n.tr.delete(i.pos,a.pos),u=l?[t?{type:e,attrs:t}:null,{type:l}]:void 0;return Ih(c.doc,i.pos,2,u)?(r&&r(c.split(i.pos,2,u).scrollIntoView()),!0):!1}}function $H(e){return function(t,n){let{$from:r,$to:i}=t.selection,a=r.blockRange(i,o=>o.childCount>0&&o.firstChild.type==e);return a?n?r.node(a.depth-1).type==e?Emt(t,n,e,a):Tmt(t,n,a):!0:!1}}function Emt(e,t,n,r){let i=e.tr,a=r.end,o=r.$to.end(r.depth);a<o&&(i.step(new Wr(a-1,o,a,o,new Ue(Ee.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new Ak(i.doc.resolve(r.$from.pos),i.doc.resolve(o),r.depth));const s=Cv(r);if(s==null)return!1;i.lift(r,s);let l=i.mapping.map(a,-1)-1;return Sv(i.doc,l)&&i.join(l),t(i.scrollIntoView()),!0}function Tmt(e,t,n){let r=e.tr,i=n.parent;for(let m=n.end,g=n.endIndex-1,b=n.startIndex;g>b;g--)m-=i.child(g).nodeSize,r.delete(m-1,m+1);let a=r.doc.resolve(n.start),o=a.nodeAfter;if(r.mapping.map(n.end)!=n.start+a.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,l=n.endIndex==i.childCount,c=a.node(-1),u=a.index(-1);if(!c.canReplace(u+(s?0:1),u+1,o.content.append(l?Ee.empty:Ee.from(i))))return!1;let f=a.pos,h=f+o.nodeSize;return r.step(new Wr(f-(s?1:0),h+(l?1:0),f+1,h-1,new Ue((s?Ee.empty:Ee.from(i.copy(Ee.empty))).append(l?Ee.empty:Ee.from(i.copy(Ee.empty))),s?0:1,l?0:1),s?0:1)),t(r.scrollIntoView()),!0}function Amt(e){return function(t,n){let{$from:r,$to:i}=t.selection,a=r.blockRange(i,c=>c.childCount>0&&c.firstChild.type==e);if(!a)return!1;let o=a.startIndex;if(o==0)return!1;let s=a.parent,l=s.child(o-1);if(l.type!=e)return!1;if(n){let c=l.lastChild&&l.lastChild.type==s.type,u=Ee.from(c?e.create():null),f=new Ue(Ee.from(e.create(null,Ee.from(s.type.create(null,u)))),c?3:1,0),h=a.start,m=a.end;n(t.tr.step(new Wr(h-(c?3:1),m,h,m,f,1,!0)).scrollIntoView())}return!0}}const lO={}.hasOwnProperty;function zmt(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return lf(e,"definition",r=>{const i=cO(r.identifier);i&&!lO.call(t,i)&&(t[i]=r)}),n;function n(r){const i=cO(r);return i&&lO.call(t,i)?t[i]:null}}function cO(e){return String(e||"").toUpperCase()}function Fmt(){return e=>{const t=zmt(e);lf(e,(n,r,i)=>{if(n.type==="definition"&&i!==null&&typeof r=="number")return i.children.splice(r,1),[n8,r];if(n.type==="imageReference"||n.type==="linkReference"){const a=t(n.identifier);if(a&&i!==null&&typeof r=="number"){const o=n.type==="imageReference"?{type:"image",url:a.url,title:a.title,alt:n.alt}:{type:"link",url:a.url,title:a.title,children:n.children};return i.children[r]=o,[n8,r]}}})}}const MH=(e,t)=>{var n;if(!(t.childCount>=1&&((n=t.lastChild)==null?void 0:n.type.name)==="hardbreak")){e.next(t.content);return}const r=[];t.content.forEach((i,a,o)=>{o!==t.childCount-1&&r.push(i)}),e.next(Ee.fromArray(r))},Se=(e,t)=>(Object.assign(e,{meta:{package:"@milkdown/preset-commonmark",...t}}),e),BS=Xg("emphasis");Se(BS,{displayName:"Attr<emphasis>",group:"Emphasis"});const _p=Zg("emphasis",e=>({attrs:{marker:{default:e.get(Tm).emphasis||"*"}},parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style",getAttrs:t=>t==="italic"}],toDOM:t=>["em",e.get(BS.key)(t)],parseMarkdown:{match:t=>t.type==="emphasis",runner:(t,n,r)=>{t.openMark(r,{marker:n.marker}),t.next(n.children),t.closeMark(r)}},toMarkdown:{match:t=>t.type.name==="emphasis",runner:(t,n)=>{t.withMark(n,"emphasis",void 0,{marker:n.attrs.marker})}}}));Se(_p.mark,{displayName:"MarkSchema<emphasis>",group:"Emphasis"});Se(_p.ctx,{displayName:"MarkSchemaCtx<emphasis>",group:"Emphasis"});const r1=Lt("ToggleEmphasis",e=>()=>jv(_p.type(e)));Se(r1,{displayName:"Command<toggleEmphasisCommand>",group:"Emphasis"});const RS=ea("emphasisKeymap",{ToggleEmphasis:{shortcuts:"Mod-i",command:e=>{const t=e.get(Bt);return()=>t.call(r1.key)}}});Se(RS.ctx,{displayName:"KeymapCtx<emphasis>",group:"Emphasis"});Se(RS.shortcuts,{displayName:"Keymap<emphasis>",group:"Emphasis"});const PS=Xg("strong");Se(PS,{displayName:"Attr<strong>",group:"Strong"});const bp=Zg("strong",e=>({attrs:{marker:{default:e.get(Tm).strong||"*"}},parseDOM:[{tag:"b"},{tag:"strong"},{style:"font-style",getAttrs:t=>t==="bold"}],toDOM:t=>["strong",e.get(PS.key)(t)],parseMarkdown:{match:t=>t.type==="strong",runner:(t,n,r)=>{t.openMark(r,{marker:n.marker}),t.next(n.children),t.closeMark(r)}},toMarkdown:{match:t=>t.type.name==="strong",runner:(t,n)=>{t.withMark(n,"strong",void 0,{marker:n.attrs.marker})}}}));Se(bp.mark,{displayName:"MarkSchema<strong>",group:"Strong"});Se(bp.ctx,{displayName:"MarkSchemaCtx<strong>",group:"Strong"});const i1=Lt("ToggleStrong",e=>()=>jv(bp.type(e)));Se(i1,{displayName:"Command<toggleStrongCommand>",group:"Strong"});const jS=ea("strongKeymap",{ToggleBold:{shortcuts:["Mod-b"],command:e=>{const t=e.get(Bt);return()=>t.call(i1.key)}}});Se(jS.ctx,{displayName:"KeymapCtx<strong>",group:"Strong"});Se(jS.shortcuts,{displayName:"Keymap<strong>",group:"Strong"});const VS=Xg("inlineCode");Se(VS,{displayName:"Attr<inlineCode>",group:"InlineCode"});const bd=Zg("inlineCode",e=>({priority:100,code:!0,inclusive:!1,parseDOM:[{tag:"code"}],toDOM:t=>["code",e.get(VS.key)(t)],parseMarkdown:{match:t=>t.type==="inlineCode",runner:(t,n,r)=>{t.openMark(r),t.addText(n.value),t.closeMark(r)}},toMarkdown:{match:t=>t.type.name==="inlineCode",runner:(t,n,r)=>{t.withMark(n,"inlineCode",r.text||"")}}}));Se(bd.mark,{displayName:"MarkSchema<inlineCode>",group:"InlineCode"});Se(bd.ctx,{displayName:"MarkSchemaCtx<inlineCode>",group:"InlineCode"});const qS=Lt("ToggleInlineCode",e=>()=>(t,n)=>{const{selection:r,tr:i}=t;if(r.empty)return!1;const{from:a,to:o}=r;return t.doc.rangeHasMark(a,o,bd.type(e))?(n==null||n(i.removeMark(a,o,bd.type(e))),!0):(Object.keys(t.schema.marks).filter(s=>s!==bd.type.name).map(s=>t.schema.marks[s]).forEach(s=>{i.removeMark(a,o,s)}),n==null||n(i.addMark(a,o,bd.type(e).create())),!0)});Se(qS,{displayName:"Command<toggleInlineCodeCommand>",group:"InlineCode"});const HS=ea("inlineCodeKeymap",{ToggleInlineCode:{shortcuts:"Mod-e",command:e=>{const t=e.get(Bt);return()=>t.call(qS.key)}}});Se(HS.ctx,{displayName:"KeymapCtx<inlineCode>",group:"InlineCode"});Se(HS.shortcuts,{displayName:"Keymap<inlineCode>",group:"InlineCode"});const US=Xg("link");Se(US,{displayName:"Attr<link>",group:"Link"});const co=Zg("link",e=>({attrs:{href:{},title:{default:null}},parseDOM:[{tag:"a[href]",getAttrs:t=>{if(!(t instanceof HTMLElement))throw Ma(t);return{href:t.getAttribute("href"),title:t.getAttribute("title")}}}],toDOM:t=>["a",{...e.get(US.key)(t),...t.attrs}],parseMarkdown:{match:t=>t.type==="link",runner:(t,n,r)=>{const i=n.url,a=n.title;t.openMark(r,{href:i,title:a}),t.next(n.children),t.closeMark(r)}},toMarkdown:{match:t=>t.type.name==="link",runner:(t,n)=>{t.withMark(n,"link",void 0,{title:n.attrs.title,url:n.attrs.href})}}}));Se(co.mark,{displayName:"MarkSchema<link>",group:"Link"});const OH=Lt("ToggleLink",e=>(t={})=>jv(co.type(e),t));Se(OH,{displayName:"Command<toggleLinkCommand>",group:"Link"});const NH=Lt("UpdateLink",e=>(t={})=>(n,r)=>{if(!r)return!1;let i,a=-1;const{selection:o}=n,{from:s,to:l}=o;if(n.doc.nodesBetween(s,s===l?l+1:l,(g,b)=>{if(co.type(e).isInSet(g.marks))return i=g,a=b,!1}),!i)return!1;const c=i.marks.find(({type:g})=>g===co.type(e));if(!c)return!1;const u=a,f=a+i.nodeSize,{tr:h}=n,m=co.type(e).create({...c.attrs,...t});return m?(r(h.removeMark(u,f,c).addMark(u,f,m).setSelection(new Nt(h.selection.$anchor)).scrollIntoView()),!0):!1});Se(NH,{displayName:"Command<updateLinkCommand>",group:"Link"});const LH=kS("doc",()=>({content:"block+",parseMarkdown:{match:({type:e})=>e==="root",runner:(e,t,n)=>{e.injectRoot(t,n)}},toMarkdown:{match:e=>e.type.name==="doc",runner:(e,t)=>{e.openNode("root"),e.next(t.content)}}}));Se(LH,{displayName:"NodeSchema<doc>",group:"Doc"});const WS=xo("paragraph");Se(WS,{displayName:"Attr<paragraph>",group:"Paragraph"});const Zl=cr("paragraph",e=>({content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM:t=>["p",e.get(WS.key)(t),0],parseMarkdown:{match:t=>t.type==="paragraph",runner:(t,n,r)=>{t.openNode(r),n.children?t.next(n.children):t.addText(n.value||""),t.closeNode()}},toMarkdown:{match:t=>t.type.name==="paragraph",runner:(t,n)=>{t.openNode("paragraph"),MH(t,n),t.closeNode()}}}));Se(Zl.node,{displayName:"NodeSchema<paragraph>",group:"Paragraph"});Se(Zl.ctx,{displayName:"NodeSchemaCtx<paragraph>",group:"Paragraph"});const a1=Lt("TurnIntoText",e=>()=>Zd(Zl.type(e)));Se(a1,{displayName:"Command<turnIntoTextCommand>",group:"Paragraph"});const GS=ea("paragraphKeymap",{TurnIntoText:{shortcuts:"Mod-Alt-0",command:e=>{const t=e.get(Bt);return()=>t.call(a1.key)}}});Se(GS.ctx,{displayName:"KeymapCtx<paragraph>",group:"Paragraph"});Se(GS.shortcuts,{displayName:"Keymap<paragraph>",group:"Paragraph"});const $mt=Array(6).fill(0).map((e,t)=>t+1),Mmt=e=>Cmt(e.textContent),Kv=Lr(Mmt,"headingIdGenerator");Se(Kv,{displayName:"Ctx<HeadingIdGenerator>",group:"Heading"});const KS=xo("heading");Se(KS,{displayName:"Attr<heading>",group:"Heading"});const uf=cr("heading",e=>{const t=e.get(Kv.key);return{content:"inline*",group:"block",defining:!0,attrs:{id:{default:""},level:{default:1}},parseDOM:$mt.map(n=>({tag:`h${n}`,getAttrs:r=>{if(!(r instanceof HTMLElement))throw Ma(r);return{level:n,id:r.id}}})),toDOM:n=>[`h${n.attrs.level}`,{...e.get(KS.key)(n),id:n.attrs.id||t(n)},0],parseMarkdown:{match:({type:n})=>n==="heading",runner:(n,r,i)=>{const a=r.depth;n.openNode(i,{level:a}),n.next(r.children),n.closeNode()}},toMarkdown:{match:n=>n.type.name==="heading",runner:(n,r)=>{n.openNode("heading",void 0,{depth:r.attrs.level}),MH(n,r),n.closeNode()}}}});Se(uf.node,{displayName:"NodeSchema<heading>",group:"Heading"});Se(uf.ctx,{displayName:"NodeSchemaCtx<heading>",group:"Heading"});const IH=vo(e=>iq(/^(?<hashes>#+)\s$/,uf.type(e),t=>{var n,r;const i=((r=(n=t.groups)==null?void 0:n.hashes)==null?void 0:r.length)||0,a=e.get(ai),{$from:o}=a.state.selection,s=o.node();if(s.type.name==="heading"){let l=Number(s.attrs.level)+Number(i);return l>6&&(l=6),{level:l}}return{level:i}}));Se(IH,{displayName:"InputRule<wrapInHeadingInputRule>",group:"Heading"});const eo=Lt("WrapInHeading",e=>t=>(t??(t=1),t<1?Zd(Zl.type(e)):Zd(uf.type(e),{level:t})));Se(eo,{displayName:"Command<wrapInHeadingCommand>",group:"Heading"});const YS=Lt("DowngradeHeading",e=>()=>(t,n,r)=>{const{$from:i}=t.selection,a=i.node();if(a.type!==uf.type(e)||!t.selection.empty||i.parentOffset!==0)return!1;const o=a.attrs.level-1;return o?(n==null||n(t.tr.setNodeMarkup(t.selection.$from.before(),void 0,{...a.attrs,level:o})),!0):Zd(Zl.type(e))(t,n,r)});Se(YS,{displayName:"Command<downgradeHeadingCommand>",group:"Heading"});const ZS=ea("headingKeymap",{TurnIntoH1:{shortcuts:"Mod-Alt-1",command:e=>{const t=e.get(Bt);return()=>t.call(eo.key,1)}},TurnIntoH2:{shortcuts:"Mod-Alt-2",command:e=>{const t=e.get(Bt);return()=>t.call(eo.key,2)}},TurnIntoH3:{shortcuts:"Mod-Alt-3",command:e=>{const t=e.get(Bt);return()=>t.call(eo.key,3)}},TurnIntoH4:{shortcuts:"Mod-Alt-4",command:e=>{const t=e.get(Bt);return()=>t.call(eo.key,4)}},TurnIntoH5:{shortcuts:"Mod-Alt-5",command:e=>{const t=e.get(Bt);return()=>t.call(eo.key,5)}},TurnIntoH6:{shortcuts:"Mod-Alt-6",command:e=>{const t=e.get(Bt);return()=>t.call(eo.key,6)}},DowngradeHeading:{shortcuts:["Delete","Backspace"],command:e=>{const t=e.get(Bt);return()=>t.call(YS.key)}}});Se(ZS.ctx,{displayName:"KeymapCtx<heading>",group:"Heading"});Se(ZS.shortcuts,{displayName:"Keymap<heading>",group:"Heading"});const XS=xo("blockquote");Se(XS,{displayName:"Attr<blockquote>",group:"Blockquote"});const o1=cr("blockquote",e=>({content:"block+",group:"block",defining:!0,parseDOM:[{tag:"blockquote"}],toDOM:t=>["blockquote",e.get(XS.key)(t),0],parseMarkdown:{match:({type:t})=>t==="blockquote",runner:(t,n,r)=>{t.openNode(r).next(n.children).closeNode()}},toMarkdown:{match:t=>t.type.name==="blockquote",runner:(t,n)=>{t.openNode("blockquote").next(n.content).closeNode()}}}));Se(o1.node,{displayName:"NodeSchema<blockquote>",group:"Blockquote"});Se(o1.ctx,{displayName:"NodeSchemaCtx<blockquote>",group:"Blockquote"});const BH=vo(e=>gS(/^\s*>\s$/,o1.type(e)));Se(BH,{displayName:"InputRule<wrapInBlockquoteInputRule>",group:"Blockquote"});const JS=Lt("WrapInBlockquote",e=>()=>_S(o1.type(e)));Se(JS,{displayName:"Command<wrapInBlockquoteCommand>",group:"Blockquote"});const QS=ea("blockquoteKeymap",{WrapInBlockquote:{shortcuts:"Mod-Shift-b",command:e=>{const t=e.get(Bt);return()=>t.call(JS.key)}}});Se(QS.ctx,{displayName:"KeymapCtx<blockquote>",group:"Blockquote"});Se(QS.shortcuts,{displayName:"Keymap<blockquote>",group:"Blockquote"});const e9=xo("codeBlock",()=>({pre:{},code:{}}));Se(e9,{displayName:"Attr<codeBlock>",group:"CodeBlock"});const Pp=cr("code_block",e=>({content:"text*",group:"block",marks:"",defining:!0,code:!0,attrs:{language:{default:""}},parseDOM:[{tag:"pre",preserveWhitespace:"full",getAttrs:t=>{if(!(t instanceof HTMLElement))throw Ma(t);return{language:t.dataset.language}}}],toDOM:t=>{const n=e.get(e9.key)(t);return["pre",{...n.pre,"data-language":t.attrs.language},["code",n.code,0]]},parseMarkdown:{match:({type:t})=>t==="code",runner:(t,n,r)=>{const i=n.lang,a=n.value;t.openNode(r,{language:i}),a&&t.addText(a),t.closeNode()}},toMarkdown:{match:t=>t.type.name==="code_block",runner:(t,n)=>{var r;t.addNode("code",void 0,((r=n.content.firstChild)==null?void 0:r.text)||"",{lang:n.attrs.language})}}}));Se(Pp.node,{displayName:"NodeSchema<codeBlock>",group:"CodeBlock"});Se(Pp.ctx,{displayName:"NodeSchemaCtx<codeBlock>",group:"CodeBlock"});const RH=vo(e=>iq(/^```(?<language>[a-z]*)?[\s\n]$/,Pp.type(e),t=>{var n;return{language:((n=t.groups)==null?void 0:n.language)??""}}));Se(RH,{displayName:"InputRule<createCodeBlockInputRule>",group:"CodeBlock"});const jp=Lt("CreateCodeBlock",e=>(t="")=>Zd(Pp.type(e),{language:t}));Se(jp,{displayName:"Command<createCodeBlockCommand>",group:"CodeBlock"});const Omt=Lt("UpdateCodeBlockLanguage",()=>({pos:e,language:t}={pos:-1,language:""})=>(n,r)=>e>=0?(r==null||r(n.tr.setNodeAttribute(e,"language",t)),!0):!1);Se(Omt,{displayName:"Command<updateCodeBlockLanguageCommand>",group:"CodeBlock"});const t9=ea("codeBlockKeymap",{CreateCodeBlock:{shortcuts:"Mod-Alt-c",command:e=>{const t=e.get(Bt);return()=>t.call(jp.key)}}});Se(t9.ctx,{displayName:"KeymapCtx<codeBlock>",group:"CodeBlock"});Se(t9.shortcuts,{displayName:"Keymap<codeBlock>",group:"CodeBlock"});const n9=xo("image");Se(n9,{displayName:"Attr<image>",group:"Image"});const zu=cr("image",e=>({inline:!0,group:"inline",selectable:!0,draggable:!0,marks:"",atom:!0,defining:!0,isolating:!0,attrs:{src:{default:""},alt:{default:""},title:{default:""}},parseDOM:[{tag:"img[src]",getAttrs:t=>{if(!(t instanceof HTMLElement))throw Ma(t);return{src:t.getAttribute("src")||"",alt:t.getAttribute("alt")||"",title:t.getAttribute("title")||t.getAttribute("alt")||""}}}],toDOM:t=>["img",{...e.get(n9.key)(t),...t.attrs}],parseMarkdown:{match:({type:t})=>t==="image",runner:(t,n,r)=>{const i=n.url,a=n.alt,o=n.title;t.addNode(r,{src:i,alt:a,title:o})}},toMarkdown:{match:t=>t.type.name==="image",runner:(t,n)=>{t.addNode("image",void 0,void 0,{title:n.attrs.title,url:n.attrs.src,alt:n.attrs.alt})}}}));Se(zu.node,{displayName:"NodeSchema<image>",group:"Image"});Se(zu.ctx,{displayName:"NodeSchemaCtx<image>",group:"Image"});const s1=Lt("InsertImage",e=>(t={})=>(n,r)=>{if(!r)return!0;const{src:i="",alt:a="",title:o=""}=t,s=zu.type(e).create({src:i,alt:a,title:o});return s&&r(n.tr.replaceSelectionWith(s).scrollIntoView()),!0});Se(s1,{displayName:"Command<insertImageCommand>",group:"Image"});const PH=Lt("UpdateImage",e=>(t={})=>(n,r)=>{const i=fq(n.selection,zu.type(e));if(!i)return!1;const{node:a,pos:o}=i,s={...a.attrs},{src:l,alt:c,title:u}=t;return l!==void 0&&(s.src=l),c!==void 0&&(s.alt=c),u!==void 0&&(s.title=u),r==null||r(n.tr.setNodeMarkup(o,void 0,s).scrollIntoView()),!0});Se(PH,{displayName:"Command<updateImageCommand>",group:"Image"});const Nmt=vo(e=>new Yl(/!\[(?<alt>.*?)]\((?<filename>.*?)\s*(?="|\))"?(?<title>[^"]+)?"?\)/,(t,n,r,i)=>{const[a,o,s="",l]=n;return a?t.tr.replaceWith(r,i,zu.type(e).create({src:s,alt:o,title:l})):null}));Se(Nmt,{displayName:"InputRule<insertImageInputRule>",group:"Image"});const r9=xo("hardbreak",e=>({"data-is-inline":e.attrs.isInline}));Se(r9,{displayName:"Attr<hardbreak>",group:"Hardbreak"});const Od=cr("hardbreak",e=>({inline:!0,group:"inline",attrs:{isInline:{default:!1}},selectable:!1,parseDOM:[{tag:"br"}],toDOM:t=>["br",e.get(r9.key)(t)],parseMarkdown:{match:({type:t})=>t==="break",runner:(t,n,r)=>{var i;t.addNode(r,{isInline:!!((i=n.data)!=null&&i.isInline)})}},leafText:()=>` `,toMarkdown:{match:t=>t.type.name==="hardbreak",runner:(t,n)=>{n.attrs.isInline?t.addNode("text",void 0,` -`):t.addNode("break")}}}));Se(Od.node,{displayName:"NodeSchema<hardbreak>",group:"Hardbreak"});Se(Od.ctx,{displayName:"NodeSchemaCtx<hardbreak>",group:"Hardbreak"});const i9=Lt("InsertHardbreak",e=>()=>(t,n)=>{var r;const{selection:i,tr:a}=t;if(i.empty){const o=i.$from.node();if(o.childCount>0&&((r=o.lastChild)==null?void 0:r.type.name)==="hardbreak")return n==null||n(a.replaceRangeWith(i.to-1,i.to,t.schema.node("paragraph")).setSelection($t.near(a.doc.resolve(i.to))).scrollIntoView()),!0}return n==null||n(a.setMeta("hardbreak",!0).replaceSelectionWith(Od.type(e).create()).scrollIntoView()),!0});Se(i9,{displayName:"Command<insertHardbreakCommand>",group:"Hardbreak"});const a9=ea("hardbreakKeymap",{InsertHardbreak:{shortcuts:"Shift-Enter",command:e=>{const t=e.get(Bt);return()=>t.call(i9.key)}}});Se(a9.ctx,{displayName:"KeymapCtx<hardbreak>",group:"Hardbreak"});Se(a9.shortcuts,{displayName:"Keymap<hardbreak>",group:"Hardbreak"});const o9=xo("hr");Se(o9,{displayName:"Attr<hr>",group:"Hr"});const l1=cr("hr",e=>({group:"block",parseDOM:[{tag:"hr"}],toDOM:t=>["hr",e.get(o9.key)(t)],parseMarkdown:{match:({type:t})=>t==="thematicBreak",runner:(t,n,r)=>{t.addNode(r)}},toMarkdown:{match:t=>t.type.name==="hr",runner:t=>{t.addNode("thematicBreak")}}}));Se(l1.node,{displayName:"NodeSchema<hr>",group:"Hr"});Se(l1.ctx,{displayName:"NodeSchemaCtx<hr>",group:"Hr"});const PH=vo(e=>new Yl(/^(?:---|___\s|\*\*\*\s)$/,(t,n,r,i)=>{const{tr:a}=t;return n[0]&&a.replaceWith(r-1,i,l1.type(e).create()),a}));Se(PH,{displayName:"InputRule<insertHrInputRule>",group:"Hr"});const jH=Lt("InsertHr",e=>()=>(t,n)=>{if(!n)return!0;const r=Zl.node.type(e).create(),{tr:i,selection:a}=t,{from:o}=a,s=l1.type(e).create();if(!s)return!0;const l=i.replaceSelectionWith(s).insert(o,r),c=$t.findFrom(l.doc.resolve(o),1,!0);return c&&n(l.setSelection(c).scrollIntoView()),!0});Se(jH,{displayName:"Command<insertHrCommand>",group:"Hr"});const s9=xo("bulletList");Se(s9,{displayName:"Attr<bulletList>",group:"BulletList"});const df=cr("bullet_list",e=>({content:"listItem+",group:"block",attrs:{spread:{default:!1}},parseDOM:[{tag:"ul",getAttrs:t=>{if(!(t instanceof HTMLElement))throw Ma(t);return{spread:t.dataset.spread}}}],toDOM:t=>["ul",{...e.get(s9.key)(t),"data-spread":t.attrs.spread},0],parseMarkdown:{match:({type:t,ordered:n})=>t==="list"&&!n,runner:(t,n,r)=>{const i=n.spread!=null?`${n.spread}`:"false";t.openNode(r,{spread:i}).next(n.children).closeNode()}},toMarkdown:{match:t=>t.type.name==="bullet_list",runner:(t,n)=>{t.openNode("list",void 0,{ordered:!1,spread:n.attrs.spread==="true"}).next(n.content).closeNode()}}}));Se(df.node,{displayName:"NodeSchema<bulletList>",group:"BulletList"});Se(df.ctx,{displayName:"NodeSchemaCtx<bulletList>",group:"BulletList"});const VH=vo(e=>gS(/^\s*([-+*])\s$/,df.type(e)));Se(VH,{displayName:"InputRule<wrapInBulletListInputRule>",group:"BulletList"});const Yv=Lt("WrapInBulletList",e=>()=>_S(df.type(e)));Se(Yv,{displayName:"Command<wrapInBulletListCommand>",group:"BulletList"});const l9=ea("bulletListKeymap",{WrapInBulletList:{shortcuts:"Mod-Alt-8",command:e=>{const t=e.get(Bt);return()=>t.call(Yv.key)}}});Se(l9.ctx,{displayName:"KeymapCtx<bulletListKeymap>",group:"BulletList"});Se(l9.shortcuts,{displayName:"Keymap<bulletListKeymap>",group:"BulletList"});const c9=xo("orderedList");Se(c9,{displayName:"Attr<orderedList>",group:"OrderedList"});const ff=cr("ordered_list",e=>({content:"listItem+",group:"block",attrs:{order:{default:1},spread:{default:!1}},parseDOM:[{tag:"ol",getAttrs:t=>{if(!(t instanceof HTMLElement))throw Ma(t);return{spread:t.dataset.spread,order:t.hasAttribute("start")?Number(t.getAttribute("start")):1}}}],toDOM:t=>["ol",{...e.get(c9.key)(t),...t.attrs.order===1?{}:t.attrs.order,"data-spread":t.attrs.spread},0],parseMarkdown:{match:({type:t,ordered:n})=>t==="list"&&!!n,runner:(t,n,r)=>{const i=n.spread!=null?`${n.spread}`:"true";t.openNode(r,{spread:i}).next(n.children).closeNode()}},toMarkdown:{match:t=>t.type.name==="ordered_list",runner:(t,n)=>{t.openNode("list",void 0,{ordered:!0,start:1,spread:n.attrs.spread==="true"}),t.next(n.content),t.closeNode()}}}));Se(ff.node,{displayName:"NodeSchema<orderedList>",group:"OrderedList"});Se(ff.ctx,{displayName:"NodeSchemaCtx<orderedList>",group:"OrderedList"});const qH=vo(e=>gS(/^\s*(\d+)\.\s$/,ff.type(e),t=>({order:Number(t[1])}),(t,n)=>n.childCount+n.attrs.order===Number(t[1])));Se(qH,{displayName:"InputRule<wrapInOrderedListInputRule>",group:"OrderedList"});const Zv=Lt("WrapInOrderedList",e=>()=>_S(ff.type(e)));Se(Zv,{displayName:"Command<wrapInOrderedListCommand>",group:"OrderedList"});const u9=ea("orderedListKeymap",{WrapInOrderedList:{shortcuts:"Mod-Alt-7",command:e=>{const t=e.get(Bt);return()=>t.call(Zv.key)}}});Se(u9.ctx,{displayName:"KeymapCtx<orderedList>",group:"OrderedList"});Se(u9.shortcuts,{displayName:"Keymap<orderedList>",group:"OrderedList"});const d9=xo("listItem");Se(d9,{displayName:"Attr<listItem>",group:"ListItem"});const Is=cr("list_item",e=>({group:"listItem",content:"paragraph block*",attrs:{label:{default:"•"},listType:{default:"bullet"},spread:{default:"true"}},defining:!0,parseDOM:[{tag:"li",getAttrs:t=>{if(!(t instanceof HTMLElement))throw Ma(t);return{label:t.dataset.label,listType:t.dataset["list-type"],spread:t.dataset.spread}}}],toDOM:t=>["li",{...e.get(d9.key)(t),"data-label":t.attrs.label,"data-list-type":t.attrs.listType,"data-spread":t.attrs.spread},0],parseMarkdown:{match:({type:t})=>t==="listItem",runner:(t,n,r)=>{const i=n.label!=null?`${n.label}.`:"•",a=n.label!=null?"ordered":"bullet",o=n.spread!=null?`${n.spread}`:"true";t.openNode(r,{label:i,listType:a,spread:o}),t.next(n.children),t.closeNode()}},toMarkdown:{match:t=>t.type.name==="list_item",runner:(t,n)=>{t.openNode("listItem",void 0,{spread:n.attrs.spread==="true"}),t.next(n.content),t.closeNode()}}}));Se(Is.node,{displayName:"NodeSchema<listItem>",group:"ListItem"});Se(Is.ctx,{displayName:"NodeSchemaCtx<listItem>",group:"ListItem"});const f9=Lt("SinkListItem",e=>()=>Amt(Is.type(e)));Se(f9,{displayName:"Command<sinkListItemCommand>",group:"ListItem"});const vg=Lt("SplitListItem",e=>()=>FH(Is.type(e)));Se(vg,{displayName:"Command<liftListItemCommand>",group:"ListItem"});const h9=Lt("SplitListItem",e=>()=>Dmt(Is.type(e)));Se(h9,{displayName:"Command<splitListItemCommand>",group:"ListItem"});const Lmt=e=>(t,n,r)=>{const{selection:i}=t;if(!(i instanceof Nt))return!1;const{empty:a,$from:o}=i;if(!a||o.parentOffset!==0)return!1;const s=o.node(-1);return s.type!==Is.type(e)||s.firstChild!==o.node()||o.node(-2).childCount>1?!1:FH(Is.type(e))(t,n,r)},p9=Lt("LiftFirstListItem",e=>()=>Lmt(e));Se(p9,{displayName:"Command<liftFirstListItemCommand>",group:"ListItem"});const m9=ea("listItemKeymap",{NextListItem:{shortcuts:"Enter",command:e=>{const t=e.get(Bt);return()=>t.call(h9.key)}},SinkListItem:{shortcuts:["Tab","Mod-]"],command:e=>{const t=e.get(Bt);return()=>t.call(f9.key)}},LiftListItem:{shortcuts:["Shift-Tab","Mod-["],command:e=>{const t=e.get(Bt);return()=>t.call(vg.key)}},LiftFirstListItem:{shortcuts:["Backspace","Delete"],command:e=>{const t=e.get(Bt);return()=>t.call(p9.key)}}});Se(m9.ctx,{displayName:"KeymapCtx<listItem>",group:"ListItem"});Se(m9.shortcuts,{displayName:"Keymap<listItem>",group:"ListItem"});const HH=kS("text",()=>({group:"inline",parseMarkdown:{match:({type:e})=>e==="text",runner:(e,t)=>{e.addText(t.value)}},toMarkdown:{match:e=>e.type.name==="text",runner:(e,t)=>{e.addNode("text",void 0,t.text)}}}));Se(HH,{displayName:"NodeSchema<text>",group:"Text"});const g9=xo("html");Se(g9,{displayName:"Attr<html>",group:"Html"});const y9=cr("html",e=>({atom:!0,group:"inline",inline:!0,attrs:{value:{default:""}},toDOM:t=>{const n=document.createElement("span"),r={...e.get(g9.key)(t),"data-value":t.attrs.value,"data-type":"html"};return n.textContent=t.attrs.value,["span",r,t.attrs.value]},parseDOM:[{tag:'span[data-type="html"]',getAttrs:t=>({value:t.dataset.value??""})}],parseMarkdown:{match:({type:t})=>t==="html",runner:(t,n,r)=>{t.addNode(r,{value:n.value})}},toMarkdown:{match:t=>t.type.name==="html",runner:(t,n)=>{t.addNode("html",void 0,n.attrs.value)}}}));Se(y9.node,{displayName:"NodeSchema<html>",group:"Html"});Se(y9.ctx,{displayName:"NodeSchemaCtx<html>",group:"Html"});const Imt=[NH,WS,Zl,Kv,KS,uf,r9,Od,XS,o1,e9,Pp,o9,l1,n9,zu,s9,df,c9,ff,d9,Is,BS,_p,PS,bp,VS,bd,US,co,g9,y9,HH].flat(),Bmt=[IH,VH,qH,BH,PH,LH].flat(),Rmt=[a1,JS,eo,YS,jp,i9,jH,s1,RH,Zv,Yv,f9,h9,vg,p9,r1,qS,i1,MH,OH],Pmt=[QS,t9,a9,ZS,m9,u9,l9,GS,RS,HS,jS].flat(),jmt=/\[([^\]]+)]\([^\s\]]+\)/,C6=/\[(?<span>((www|https:\/\/|http:\/\/)[^\s\]]+))]\((?<url>[^\s\]]+)\)/,Vmt=e=>new RegExp(`\\\\(?=[^\\w\\s${e}\\\\]|_)`,"g"),qmt=e=>{let t=e,n=t.match(C6);for(;n&&n.groups;){const{span:r}=n.groups;t=t.replace(C6,r),n=t.match(C6)}return t},Hmt=(e,t,n)=>{const r=e.split(""),i=r[t];return r[t]&&r[n]&&(r[t]=r[n],r[n]=i),r.join("").toString()},Umt=e=>t=>t.replace(Vmt(e),""),Wmt=e=>t=>{const n=t.indexOf(e.hole),r=t.charAt(n-1),i=t.charAt(n+1),a=/[^\w]|_/;return i?r&&a.test(r)&&a.test(i)?e.punctuation:e.char:e.punctuation},Gmt=(e,t,n)=>{let r=t,i=!1;return e.descendants(a=>{var o;if(i)return!1;if(!a.textContent.includes(n))return r+=a.nodeSize,!1;if(a.isText){const s=(o=a.text)==null?void 0:o.indexOf(n);if(s!=null&&s>=0)return i=!0,r+=s,!1}return r+=1,!0}),r},Kmt={placeholderConfig:{hole:"∅",punctuation:"⁂",char:"∴"},globalNodes:["footnote_definition"],shouldSyncNode:({prevNode:e,nextNode:t})=>e.inlineContent&&t&&e.type===t.type&&!e.eq(t),movePlaceholder:(e,t)=>{const n=["*","_"];let r=t.indexOf(e);for(;n.includes(t[r-1]||"")&&n.includes(t[r+1]||"");)t=Hmt(t,r,r+1),r=r+1;return t}},Vp=Lr(Kmt,"inlineSyncConfig");Se(Vp,{displayName:"Ctx<inlineSyncConfig>",group:"Prose"});const Ymt=e=>e.selection.$from.node(),Zmt=(e,t,n,r)=>{const i=e.get($d),a=t.schema.topNodeType.create(void 0,[n,...r]);return i(a)},Xmt=(e,t)=>{const n=e.get(Vp.key),r=n.placeholderConfig.hole,[i="",...a]=t.split(` +`):t.addNode("break")}}}));Se(Od.node,{displayName:"NodeSchema<hardbreak>",group:"Hardbreak"});Se(Od.ctx,{displayName:"NodeSchemaCtx<hardbreak>",group:"Hardbreak"});const i9=Lt("InsertHardbreak",e=>()=>(t,n)=>{var r;const{selection:i,tr:a}=t;if(i.empty){const o=i.$from.node();if(o.childCount>0&&((r=o.lastChild)==null?void 0:r.type.name)==="hardbreak")return n==null||n(a.replaceRangeWith(i.to-1,i.to,t.schema.node("paragraph")).setSelection($t.near(a.doc.resolve(i.to))).scrollIntoView()),!0}return n==null||n(a.setMeta("hardbreak",!0).replaceSelectionWith(Od.type(e).create()).scrollIntoView()),!0});Se(i9,{displayName:"Command<insertHardbreakCommand>",group:"Hardbreak"});const a9=ea("hardbreakKeymap",{InsertHardbreak:{shortcuts:"Shift-Enter",command:e=>{const t=e.get(Bt);return()=>t.call(i9.key)}}});Se(a9.ctx,{displayName:"KeymapCtx<hardbreak>",group:"Hardbreak"});Se(a9.shortcuts,{displayName:"Keymap<hardbreak>",group:"Hardbreak"});const o9=xo("hr");Se(o9,{displayName:"Attr<hr>",group:"Hr"});const l1=cr("hr",e=>({group:"block",parseDOM:[{tag:"hr"}],toDOM:t=>["hr",e.get(o9.key)(t)],parseMarkdown:{match:({type:t})=>t==="thematicBreak",runner:(t,n,r)=>{t.addNode(r)}},toMarkdown:{match:t=>t.type.name==="hr",runner:t=>{t.addNode("thematicBreak")}}}));Se(l1.node,{displayName:"NodeSchema<hr>",group:"Hr"});Se(l1.ctx,{displayName:"NodeSchemaCtx<hr>",group:"Hr"});const jH=vo(e=>new Yl(/^(?:---|___\s|\*\*\*\s)$/,(t,n,r,i)=>{const{tr:a}=t;return n[0]&&a.replaceWith(r-1,i,l1.type(e).create()),a}));Se(jH,{displayName:"InputRule<insertHrInputRule>",group:"Hr"});const VH=Lt("InsertHr",e=>()=>(t,n)=>{if(!n)return!0;const r=Zl.node.type(e).create(),{tr:i,selection:a}=t,{from:o}=a,s=l1.type(e).create();if(!s)return!0;const l=i.replaceSelectionWith(s).insert(o,r),c=$t.findFrom(l.doc.resolve(o),1,!0);return c&&n(l.setSelection(c).scrollIntoView()),!0});Se(VH,{displayName:"Command<insertHrCommand>",group:"Hr"});const s9=xo("bulletList");Se(s9,{displayName:"Attr<bulletList>",group:"BulletList"});const df=cr("bullet_list",e=>({content:"listItem+",group:"block",attrs:{spread:{default:!1}},parseDOM:[{tag:"ul",getAttrs:t=>{if(!(t instanceof HTMLElement))throw Ma(t);return{spread:t.dataset.spread}}}],toDOM:t=>["ul",{...e.get(s9.key)(t),"data-spread":t.attrs.spread},0],parseMarkdown:{match:({type:t,ordered:n})=>t==="list"&&!n,runner:(t,n,r)=>{const i=n.spread!=null?`${n.spread}`:"false";t.openNode(r,{spread:i}).next(n.children).closeNode()}},toMarkdown:{match:t=>t.type.name==="bullet_list",runner:(t,n)=>{t.openNode("list",void 0,{ordered:!1,spread:n.attrs.spread==="true"}).next(n.content).closeNode()}}}));Se(df.node,{displayName:"NodeSchema<bulletList>",group:"BulletList"});Se(df.ctx,{displayName:"NodeSchemaCtx<bulletList>",group:"BulletList"});const qH=vo(e=>gS(/^\s*([-+*])\s$/,df.type(e)));Se(qH,{displayName:"InputRule<wrapInBulletListInputRule>",group:"BulletList"});const Yv=Lt("WrapInBulletList",e=>()=>_S(df.type(e)));Se(Yv,{displayName:"Command<wrapInBulletListCommand>",group:"BulletList"});const l9=ea("bulletListKeymap",{WrapInBulletList:{shortcuts:"Mod-Alt-8",command:e=>{const t=e.get(Bt);return()=>t.call(Yv.key)}}});Se(l9.ctx,{displayName:"KeymapCtx<bulletListKeymap>",group:"BulletList"});Se(l9.shortcuts,{displayName:"Keymap<bulletListKeymap>",group:"BulletList"});const c9=xo("orderedList");Se(c9,{displayName:"Attr<orderedList>",group:"OrderedList"});const ff=cr("ordered_list",e=>({content:"listItem+",group:"block",attrs:{order:{default:1},spread:{default:!1}},parseDOM:[{tag:"ol",getAttrs:t=>{if(!(t instanceof HTMLElement))throw Ma(t);return{spread:t.dataset.spread,order:t.hasAttribute("start")?Number(t.getAttribute("start")):1}}}],toDOM:t=>["ol",{...e.get(c9.key)(t),...t.attrs.order===1?{}:t.attrs.order,"data-spread":t.attrs.spread},0],parseMarkdown:{match:({type:t,ordered:n})=>t==="list"&&!!n,runner:(t,n,r)=>{const i=n.spread!=null?`${n.spread}`:"true";t.openNode(r,{spread:i}).next(n.children).closeNode()}},toMarkdown:{match:t=>t.type.name==="ordered_list",runner:(t,n)=>{t.openNode("list",void 0,{ordered:!0,start:1,spread:n.attrs.spread==="true"}),t.next(n.content),t.closeNode()}}}));Se(ff.node,{displayName:"NodeSchema<orderedList>",group:"OrderedList"});Se(ff.ctx,{displayName:"NodeSchemaCtx<orderedList>",group:"OrderedList"});const HH=vo(e=>gS(/^\s*(\d+)\.\s$/,ff.type(e),t=>({order:Number(t[1])}),(t,n)=>n.childCount+n.attrs.order===Number(t[1])));Se(HH,{displayName:"InputRule<wrapInOrderedListInputRule>",group:"OrderedList"});const Zv=Lt("WrapInOrderedList",e=>()=>_S(ff.type(e)));Se(Zv,{displayName:"Command<wrapInOrderedListCommand>",group:"OrderedList"});const u9=ea("orderedListKeymap",{WrapInOrderedList:{shortcuts:"Mod-Alt-7",command:e=>{const t=e.get(Bt);return()=>t.call(Zv.key)}}});Se(u9.ctx,{displayName:"KeymapCtx<orderedList>",group:"OrderedList"});Se(u9.shortcuts,{displayName:"Keymap<orderedList>",group:"OrderedList"});const d9=xo("listItem");Se(d9,{displayName:"Attr<listItem>",group:"ListItem"});const Is=cr("list_item",e=>({group:"listItem",content:"paragraph block*",attrs:{label:{default:"•"},listType:{default:"bullet"},spread:{default:"true"}},defining:!0,parseDOM:[{tag:"li",getAttrs:t=>{if(!(t instanceof HTMLElement))throw Ma(t);return{label:t.dataset.label,listType:t.dataset["list-type"],spread:t.dataset.spread}}}],toDOM:t=>["li",{...e.get(d9.key)(t),"data-label":t.attrs.label,"data-list-type":t.attrs.listType,"data-spread":t.attrs.spread},0],parseMarkdown:{match:({type:t})=>t==="listItem",runner:(t,n,r)=>{const i=n.label!=null?`${n.label}.`:"•",a=n.label!=null?"ordered":"bullet",o=n.spread!=null?`${n.spread}`:"true";t.openNode(r,{label:i,listType:a,spread:o}),t.next(n.children),t.closeNode()}},toMarkdown:{match:t=>t.type.name==="list_item",runner:(t,n)=>{t.openNode("listItem",void 0,{spread:n.attrs.spread==="true"}),t.next(n.content),t.closeNode()}}}));Se(Is.node,{displayName:"NodeSchema<listItem>",group:"ListItem"});Se(Is.ctx,{displayName:"NodeSchemaCtx<listItem>",group:"ListItem"});const f9=Lt("SinkListItem",e=>()=>Amt(Is.type(e)));Se(f9,{displayName:"Command<sinkListItemCommand>",group:"ListItem"});const vg=Lt("SplitListItem",e=>()=>$H(Is.type(e)));Se(vg,{displayName:"Command<liftListItemCommand>",group:"ListItem"});const h9=Lt("SplitListItem",e=>()=>Dmt(Is.type(e)));Se(h9,{displayName:"Command<splitListItemCommand>",group:"ListItem"});const Lmt=e=>(t,n,r)=>{const{selection:i}=t;if(!(i instanceof Nt))return!1;const{empty:a,$from:o}=i;if(!a||o.parentOffset!==0)return!1;const s=o.node(-1);return s.type!==Is.type(e)||s.firstChild!==o.node()||o.node(-2).childCount>1?!1:$H(Is.type(e))(t,n,r)},p9=Lt("LiftFirstListItem",e=>()=>Lmt(e));Se(p9,{displayName:"Command<liftFirstListItemCommand>",group:"ListItem"});const m9=ea("listItemKeymap",{NextListItem:{shortcuts:"Enter",command:e=>{const t=e.get(Bt);return()=>t.call(h9.key)}},SinkListItem:{shortcuts:["Tab","Mod-]"],command:e=>{const t=e.get(Bt);return()=>t.call(f9.key)}},LiftListItem:{shortcuts:["Shift-Tab","Mod-["],command:e=>{const t=e.get(Bt);return()=>t.call(vg.key)}},LiftFirstListItem:{shortcuts:["Backspace","Delete"],command:e=>{const t=e.get(Bt);return()=>t.call(p9.key)}}});Se(m9.ctx,{displayName:"KeymapCtx<listItem>",group:"ListItem"});Se(m9.shortcuts,{displayName:"Keymap<listItem>",group:"ListItem"});const UH=kS("text",()=>({group:"inline",parseMarkdown:{match:({type:e})=>e==="text",runner:(e,t)=>{e.addText(t.value)}},toMarkdown:{match:e=>e.type.name==="text",runner:(e,t)=>{e.addNode("text",void 0,t.text)}}}));Se(UH,{displayName:"NodeSchema<text>",group:"Text"});const g9=xo("html");Se(g9,{displayName:"Attr<html>",group:"Html"});const y9=cr("html",e=>({atom:!0,group:"inline",inline:!0,attrs:{value:{default:""}},toDOM:t=>{const n=document.createElement("span"),r={...e.get(g9.key)(t),"data-value":t.attrs.value,"data-type":"html"};return n.textContent=t.attrs.value,["span",r,t.attrs.value]},parseDOM:[{tag:'span[data-type="html"]',getAttrs:t=>({value:t.dataset.value??""})}],parseMarkdown:{match:({type:t})=>t==="html",runner:(t,n,r)=>{t.addNode(r,{value:n.value})}},toMarkdown:{match:t=>t.type.name==="html",runner:(t,n)=>{t.addNode("html",void 0,n.attrs.value)}}}));Se(y9.node,{displayName:"NodeSchema<html>",group:"Html"});Se(y9.ctx,{displayName:"NodeSchemaCtx<html>",group:"Html"});const Imt=[LH,WS,Zl,Kv,KS,uf,r9,Od,XS,o1,e9,Pp,o9,l1,n9,zu,s9,df,c9,ff,d9,Is,BS,_p,PS,bp,VS,bd,US,co,g9,y9,UH].flat(),Bmt=[BH,qH,HH,RH,jH,IH].flat(),Rmt=[a1,JS,eo,YS,jp,i9,VH,s1,PH,Zv,Yv,f9,h9,vg,p9,r1,qS,i1,OH,NH],Pmt=[QS,t9,a9,ZS,m9,u9,l9,GS,RS,HS,jS].flat(),jmt=/\[([^\]]+)]\([^\s\]]+\)/,C6=/\[(?<span>((www|https:\/\/|http:\/\/)[^\s\]]+))]\((?<url>[^\s\]]+)\)/,Vmt=e=>new RegExp(`\\\\(?=[^\\w\\s${e}\\\\]|_)`,"g"),qmt=e=>{let t=e,n=t.match(C6);for(;n&&n.groups;){const{span:r}=n.groups;t=t.replace(C6,r),n=t.match(C6)}return t},Hmt=(e,t,n)=>{const r=e.split(""),i=r[t];return r[t]&&r[n]&&(r[t]=r[n],r[n]=i),r.join("").toString()},Umt=e=>t=>t.replace(Vmt(e),""),Wmt=e=>t=>{const n=t.indexOf(e.hole),r=t.charAt(n-1),i=t.charAt(n+1),a=/[^\w]|_/;return i?r&&a.test(r)&&a.test(i)?e.punctuation:e.char:e.punctuation},Gmt=(e,t,n)=>{let r=t,i=!1;return e.descendants(a=>{var o;if(i)return!1;if(!a.textContent.includes(n))return r+=a.nodeSize,!1;if(a.isText){const s=(o=a.text)==null?void 0:o.indexOf(n);if(s!=null&&s>=0)return i=!0,r+=s,!1}return r+=1,!0}),r},Kmt={placeholderConfig:{hole:"∅",punctuation:"⁂",char:"∴"},globalNodes:["footnote_definition"],shouldSyncNode:({prevNode:e,nextNode:t})=>e.inlineContent&&t&&e.type===t.type&&!e.eq(t),movePlaceholder:(e,t)=>{const n=["*","_"];let r=t.indexOf(e);for(;n.includes(t[r-1]||"")&&n.includes(t[r+1]||"");)t=Hmt(t,r,r+1),r=r+1;return t}},Vp=Lr(Kmt,"inlineSyncConfig");Se(Vp,{displayName:"Ctx<inlineSyncConfig>",group:"Prose"});const Ymt=e=>e.selection.$from.node(),Zmt=(e,t,n,r)=>{const i=e.get($d),a=t.schema.topNodeType.create(void 0,[n,...r]);return i(a)},Xmt=(e,t)=>{const n=e.get(Vp.key),r=n.placeholderConfig.hole,[i="",...a]=t.split(` `),o=c=>n.movePlaceholder(r,c);let s=lge(Umt(r),o,qmt)(i);const l=Wmt(n.placeholderConfig)(s);return s=s.replace(r,l),s=[s,...a].join(` `),[s,l]},Jmt=(e,t)=>{const n=e.get(Vh)(t);return n?n.firstChild:null},Qmt=(e,t)=>{const{globalNodes:n}=e.get(Vp.key),r=[];return t.doc.descendants(i=>{if(n.includes(i.type.name)||n.includes(i.type))return r.push(i),!1}),r},egt=e=>e.split(` -`)[0]||"",tgt=e=>e.childCount===1&&e.child(0).type.name==="html",UH=(e,t)=>{try{const n=Qmt(e,t),r=Ymt(t),i=Zmt(e,t,r,n),[a,o]=Xmt(e,i),s=Jmt(e,a);return!s||r.type!==s.type||tgt(s)?null:(s.attrs={...r.attrs},s.descendants(l=>{var c;const u=l.marks.find(f=>f.type.name==="link");u&&(c=l.text)!=null&&c.includes(o)&&u.attrs.href.includes(o)&&(u.attrs.href=u.attrs.href.replace(o,""))}),{text:egt(a),prevNode:r,nextNode:s,placeholder:o})}catch{return null}},ngt=(e,t,n,r,i)=>{var a;const{placeholderConfig:o}=e.get(Vp.key),s=o.hole;let l=n.tr.setMeta(t,!0).insertText(s,n.selection.from);const c=n.apply(l),u=UH(e,c);if(!u)return;const f=u.text.slice(0,u.text.indexOf(u.placeholder)),{$from:h}=c.selection,m=h.before(),g=h.after(),b=Gmt(u.nextNode,m,u.placeholder);l=l.replaceWith(m,g,u.nextNode).setNodeMarkup(m,void 0,i).delete(b+1,b+2),l=l.setSelection(Nt.near(l.doc.resolve(b+1))),(jmt.test(f)||["*","_","~"].includes(f.at(-1)||""))&&l.selection instanceof Nt&&(((a=l.selection.$cursor)==null?void 0:a.marks())??[]).forEach(C=>{l=l.removeStoredMark(C.type)}),r(l)},WH=yr(e=>{let t=null;const n=new Fn("MILKDOWN_INLINE_SYNC");return new Bn({key:n,state:{init:()=>null,apply:(r,i,a,o)=>{var s;const l=e.get(ai);if(!((s=l.hasFocus)!=null&&s.call(l))||!l.editable||!r.docChanged||r.getMeta(n))return null;const c=UH(e,o);if(!c)return null;t&&(cancelAnimationFrame(t),t=null);const{prevNode:u,nextNode:f,text:h}=c,{shouldSyncNode:m}=e.get(Vp.key);return m({prevNode:u,nextNode:f,ctx:e,tr:r,text:h})&&(t=requestAnimationFrame(()=>{t=null;const{dispatch:g,state:b}=e.get(ai);ngt(e,n,b,g,u.attrs)})),null}}})});Se(WH,{displayName:"Prose<inlineSyncPlugin>",group:"Prose"});const GH=Ps(()=>()=>e=>{lf(e,"list",t=>{if(t.ordered){const n=t.start??1;t.children.forEach((r,i)=>{r.label=i+n})}})});Se(GH,{displayName:"Remark<remarkAddOrderInListPlugin>",group:"Remark"});const KH=Ps(()=>()=>e=>{const t=/[\t ]*(?:\r?\n|\r)/g;lf(e,"text",(n,r,i)=>{if(!n.value||typeof n.value!="string")return;const a=[];let o=0;t.lastIndex=0;let s=t.exec(n.value);for(;s;){const l=s.index;o!==l&&a.push({type:"text",value:n.value.slice(o,l)}),a.push({type:"break",data:{isInline:!0}}),o=l+s[0].length,s=t.exec(n.value)}if(a.length>0&&i&&typeof r=="number")return o<n.value.length&&a.push({type:"text",value:n.value.slice(o)}),i.children.splice(r,1,...a),r+a.length})});Se(KH,{displayName:"Remark<remarkLineBreak>",group:"Remark"});const YH=Ps(()=>Fmt);Se(YH,{displayName:"Remark<remarkInlineLinkPlugin>",group:"Remark"});const rgt=e=>!!e.children,igt=e=>e.type==="html";function agt(e,t){return n(e,0,null)[0];function n(r,i,a){if(rgt(r)){const o=[];for(let s=0,l=r.children.length;s<l;s++){const c=r.children[s];if(c){const u=n(c,s,r);if(u)for(let f=0,h=u.length;f<h;f++){const m=u[f];m&&o.push(m)}}}r.children=o}return t(r,i,a)}}const ZH=Ps(()=>()=>e=>{agt(e,(t,n,r)=>igt(t)?((r==null?void 0:r.type)==="root"&&(t.children=[{...t}],delete t.value,t.type="paragraph"),[t]):[t])});Se(ZH,{displayName:"Remark<remarkHtmlTransformer>",group:"Remark"});const XH=Ps(()=>()=>(e,t)=>{const n=r=>t.value.charAt(r.position.start.offset);lf(e,r=>["strong","emphasis"].includes(r.type),r=>{r.marker=n(r)})});Se(XH,{displayName:"Remark<remarkMarker>",group:"Remark"});const JH=yr(()=>{let e=!1;const t=new Fn("MILKDOWN_INLINE_NODES_CURSOR"),n=new Bn({key:t,state:{init(){return!1},apply(r){if(!r.selection.empty)return!1;const i=r.selection.$from,a=i.nodeBefore,o=i.nodeAfter;return!!(a&&o&&a.isInline&&!a.isText&&o.isInline&&!o.isText)}},props:{handleDOMEvents:{compositionend:(r,i)=>e?(e=!1,requestAnimationFrame(()=>{if(n.getState(r.state)){const a=r.state.selection.from;i.preventDefault(),r.dispatch(r.state.tr.insertText(i.data||"",a))}}),!0):!1,compositionstart:r=>(n.getState(r.state)&&(e=!0),!1),beforeinput:(r,i)=>{if(n.getState(r.state)&&i instanceof InputEvent&&i.data&&!e){const a=r.state.selection.from;return i.preventDefault(),r.dispatch(r.state.tr.insertText(i.data||"",a)),!0}return!1}},decorations(r){if(n.getState(r)){const i=r.selection.$from.pos,a=document.createElement("span"),o=$r.widget(i,a,{side:-1}),s=document.createElement("span"),l=$r.widget(i,s);return setTimeout(()=>{a.contentEditable="true",s.contentEditable="true"}),en.create(r.doc,[o,l])}return en.empty}}});return n});Se(JH,{displayName:"Prose<inlineNodesCursorPlugin>",group:"Prose"});const QH=yr(e=>new Bn({key:new Fn("MILKDOWN_HARDBREAK_MARKS"),appendTransaction:(t,n,r)=>{if(!t.length)return;const[i]=t;if(!i)return;const[a]=i.steps;if(i.getMeta("hardbreak")){if(!(a instanceof ni))return;const{from:o}=a;return r.tr.setNodeMarkup(o,Od.type(e),void 0,[])}if(a instanceof Dl){let o=r.tr;const{from:s,to:l}=a;return r.doc.nodesBetween(s,l,(c,u)=>{c.type===Od.type(e)&&(o=o.setNodeMarkup(u,Od.type(e),void 0,[]))}),o}}}));Se(QH,{displayName:"Prose<hardbreakClearMarkPlugin>",group:"Prose"});const _9=Lr(["table","code_block"],"hardbreakFilterNodes");Se(_9,{displayName:"Ctx<hardbreakFilterNodes>",group:"Prose"});const eU=yr(e=>{const t=e.get(_9.key);return new Bn({key:new Fn("MILKDOWN_HARDBREAK_FILTER"),filterTransaction:(n,r)=>{const i=n.getMeta("hardbreak"),[a]=n.steps;if(i&&a){const{from:o}=a,s=r.doc.resolve(o);let l=s.depth,c=!0;for(;l>0;)t.includes(s.node(l).type.name)&&(c=!1),l--;return c}return!0}})});Se(eU,{displayName:"Prose<hardbreakFilterPlugin>",group:"Prose"});const tU=yr(e=>{const t=new Fn("MILKDOWN_HEADING_ID"),n=r=>{if(r.composing||!r.editable)return;const i=e.get(Kv.key),a=r.state.tr.setMeta("addToHistory",!1);let o=!1;r.state.doc.descendants((s,l)=>{if(s.type===uf.type(e)){if(s.textContent.trim().length===0)return;const c=s.attrs,u=i(s);c.id!==u&&(o=!0,a.setMeta(t,!0).setNodeMarkup(l,void 0,{...c,id:u}))}}),o&&r.dispatch(a)};return new Bn({key:t,view:r=>(n(r),{update:i=>{n(i)}})})});Se(tU,{displayName:"Prose<syncHeadingIdPlugin>",group:"Prose"});const nU=yr(e=>{const t=n=>{if(n.composing||!n.editable)return;const r=ff.type(e),i=df.type(e),a=Is.type(e),o=n.state,s=(u,f)=>{let h=!1;const m=`${f+1}.`;return u.label!==m&&(u.label=m,h=!0),h};let l=o.tr,c=!1;o.doc.descendants((u,f,h,m)=>{if(u.type===i){const g=u.maybeChild(0);(g==null?void 0:g.type)===a&&g.attrs.listType==="ordered"&&(c=!0,l.setNodeMarkup(f,r,{spread:"true"}),u.descendants((b,C,w,k)=>{if(b.type===a){const S={...b.attrs};s(S,k)&&(l=l.setNodeMarkup(C,void 0,S))}return!1}))}else if(u.type===a&&(h==null?void 0:h.type)===r){const g={...u.attrs};let b=!1;g.listType!=="ordered"&&(g.listType="ordered",b=!0),h!=null&&h.maybeChild(0)&&(b=s(g,m)),b&&(l=l.setNodeMarkup(f,void 0,g),c=!0)}}),c&&n.dispatch(l.setMeta("addToHistory",!1))};return new Bn({key:new Fn("MILKDOWN_KEEP_LIST_ORDER"),view:n=>(t(n),{update:r=>{t(r)}})})});Se(nU,{displayName:"Prose<syncListOrderPlugin>",group:"Prose"});const ogt=[Vp,WH,QH,_9,eU,JH,GH,YH,KH,ZH,XH,tU,nU],sgt=[Imt,Bmt,Rmt,Pmt,ogt].flat(),lgt=({href:e})=>F.useMemo(()=>e?e.replace("pub","embed"):null,[e]),cgt=()=>{const{spec:e}=Np(),{href:t}=e,n=lgt({href:t});return n?j(ugt,{src:n}):null},ugt=Ae.iframe.withConfig({displayName:"IFrameStyled"})(["display:block;width:100%;height:",";@media (min-width:","){height:",";}"],ee(200),Vt.queries.laptop,ee(388)),Sb=e=>typeof e=="string",kh=e=>({orElse:t=>Sb(e)?kh(e):kh(t()),map:t=>Sb(e)?kh(t(e)):kh(e),getOrElse:t=>Sb(e)?e:t(),get:()=>e}),dgt=()=>({getBase64:F.useCallback(async t=>new Promise((n,r)=>{const i=new FileReader;i.readAsDataURL(t),i.onload=function(){const a=i.result;a?Sb(a)&&n(a):r("Empty file")},i.onerror=function(a){r(a)}}),[])}),rU=F.createContext({mode:"preview",showMenu:!0,placeholder:"",stickyOnMenu:10,onFileUpload:()=>Promise.resolve(""),inputAcceptedFormats:"",onFileValidation:()=>!0}),fgt=({mode:e,showMenu:t=!0,children:n,placeholder:r="Post an update..",stickyOnMenu:i=10,onFileUpload:a,onFileValidation:o,inputAcceptedFormats:s="*"})=>{const{getBase64:l}=dgt(),c=F.useMemo(()=>({mode:e,stickyOnMenu:i,onFileUpload:a||l,showMenu:t,placeholder:r,onFileValidation:o,inputAcceptedFormats:s}),[e,a,l,r,t,i,o,s]);return j(rU.Provider,{value:c,children:n})},ta=()=>F.useContext(rU),iU=()=>({getNodesByMark:F.useCallback((t,n)=>V0e(t,n),[])}),hgt=()=>{const{getNodesByMark:e}=iU();return{getLinkAttributes:F.useCallback((n,r)=>e(r,co.type(n)).map(({pos:i,node:a})=>{var u;const{nodeSize:o,marks:[s]}=a,l=i+o,c=((u=s.attrs)==null?void 0:u.href)||"";return{start:i,end:l,href:c}}),[e])}},pgt=()=>{const{mode:e}=ta(),t=$v(),{getLinkAttributes:n}=hgt(),r=F.useMemo(()=>t({as:"div",component:cgt}),[t]),i=F.useCallback((o,s)=>n(o,s).filter(l=>l.href.includes("docs.google.com/presentation")),[n]);return F.useMemo(()=>yr(o=>{const s=new Fn("MILKDOWN_GOOGLE_SLIDES_PLUGIN");return new Bn({key:s,state:{init(l,c){if(e==="active")return en.empty;const f=i(o,c.doc).map(({href:h,end:m})=>r(m,{href:h}));return en.create(c.doc,f)},apply(l,c,u,f){if(e==="active")return en.create(f.doc,[]);if(u.doc.eq(f.doc))return c;const m=i(o,f.doc).map(({href:g,end:b})=>r(b,{href:g}));return en.create(f.doc,m)}},props:{decorations(l){return s.getState(l)}}})}),[e,r,i])},mgt=Ae.code.withConfig({displayName:"CodeStyled"})([".token.comment,.token.prolog,.token.doctype,.token.cdata{color:#898ea4;}.token.punctuation{color:#5e6687;}.token.namespace{opacity:0.7;}.token.operator,.token.boolean,.token.number{color:#c76b29;}.token.property{color:#c08b30;}.token.tag{color:#3d8fd1;}.token.string{color:#22a2c9;}.token.selector{color:#6679cc;}.token.attr-name{color:#c76b29;}.token.entity,.token.url,.language-css .token.string,.style .token.string{color:#22a2c9;}.token.attr-value,.token.keyword,.token.control,.token.directive,.token.unit{color:#ac9739;}.token.statement,.token.regex,.token.atrule{color:#22a2c9;}.token.placeholder,.token.variable{color:#3d8fd1;}.token.deleted{text-decoration:line-through;}.token.inserted{text-decoration:none;border-bottom:1px dotted #202746;}.token.italic{font-style:italic;}.token.important,.token.bold{font-weight:bold;}.token.important{color:#c94922;}.token.entity{cursor:help;}.line-numbers.line-numbers .line-numbers-rows{border-right-color:#dfe2f1;}.line-numbers .line-numbers-rows > span::before{color:#979db4;}"]),ggt=PP(["0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}"]),uO=Tn(["position:absolute;top:50%;left:50%;width:20px;height:20px;border-radius:50%;content:'';"]),ygt=Tn(["&:before{border:2px solid rgba(0,0,0,0.15);transform:translate(-50%,-50%);","}&:after{margin:-12px 0 0 -12px;"," border-color:#68D391 transparent transparent;border-style:solid;border-width:2px;box-shadow:0px 0px 0px 1px transparent;animation:0.75s linear "," infinite;}"],uO,uO,ggt),Xt=F.forwardRef(({type:e="button",oval:t=!1,color:n="primary",space:r="normal",loading:i=!1,variant:a="text",children:o,...s},l)=>j(bgt,{type:e,...s,ref:l,$oval:t,$color:n,$space:r,$loading:i,$variant:a,children:o})),Ua={idle:{bg:{primary:Vt.colors.lightGreen,secondary:Vt.colors.white,danger:Vt.colors.white},border:{primary:"transparent",secondary:Vt.colors.lightGrey,danger:Vt.colors.lightGrey},color:{primary:Vt.colors.lightBlack,secondary:Vt.colors.lightBlack,danger:Vt.colors.darkRed}},hover:{bg:{primary:"#68D391",secondary:"#F9F9F9",danger:"#F9F9F9"},border:{primary:"transparent",secondary:Vt.colors.lightGrey,danger:Vt.colors.lightGrey},color:{primary:Vt.colors.lightBlack,secondary:Vt.colors.lightBlack,danger:Vt.colors.darkRed}},pressed:{bg:{primary:"#63C88A",secondary:"#F0F2F1",danger:"#F0F2F1"},border:{primary:"transparent",secondary:Vt.colors.lightGrey,danger:Vt.colors.lightGrey},color:{primary:Vt.colors.lightBlack,secondary:Vt.colors.lightBlack,danger:Vt.colors.darkRed}},disabled:{bg:{primary:"#FaFaFa",secondary:Vt.colors.white,danger:Vt.colors.white},border:{primary:"transparent",secondary:"#EaEaEa",danger:"#EaEaEa"},color:{primary:"#B6B8B7",secondary:"#B6B8B7",danger:"#B6B8B7"}}},_gt={no:0,thin:ee(4),small:ee(7),normal:`${ee(10)} ${ee(16)};`},bgt=Ae.button.withConfig({displayName:"ButtonStyled"})(["position:relative;display:inline-flex;align-items:center;justify-content:center;padding:",";border:"," solid ",";outline:0;background-color:",";font-size:",";font-family:",";color:",";user-select:",";pointer-events:",";cursor:pointer;transition:background-color 0.2s ease-in,border-color 0.2s ease-in ",";"," ",";",""],e=>e.$variant==="simple_text"?0:_gt[e.$space],ee(1),e=>e.$variant==="contained"||e.$variant==="outlined"?Ua.idle.border[e.$color]:"transparent",e=>e.$variant==="contained"?Ua.idle.bg[e.$color]:"transparent",ee(16),e=>e.theme.fonts.figree,e=>e.$loading?"transparent":Ua.idle.color[e.$color],e=>e.$loading?"none":"auto",e=>e.$loading?"none":"auto",e=>e.$variant==="simple_text"?",color 0.2s ease-in":"",e=>e.$oval&&Tn(["border-radius:",";"],ee(8)),e=>e.$loading&&ygt,e=>e.disabled?Tn(["cursor:not-allowed;background-color:",";color:",";",""],t=>t.$variant!=="simple_text"?Ua.disabled.bg[t.$color]:"transparent",t=>Ua.disabled.color[t.$color],t=>(t.$variant==="contained"||t.$variant==="outlined")&&Tn(["border-color:",";"],n=>Ua.disabled.border[n.$color])):Tn(["&:hover,&:focus{color:",";background-color:",";","}&:active{color:",";background-color:",";","}&:focus-visible{outline:"," solid ",";outline-width:",";outline-offset:",";}"],t=>Ua.hover.color[t.$color],t=>t.$variant!=="simple_text"?Ua.hover.bg[t.$color]:"transparent",t=>(t.$variant==="contained"||t.$variant==="outlined")&&Tn(["border-color:",";"],n=>Ua.hover.border[n.$color]),t=>Ua.pressed.color[t.$color],t=>t.$variant!=="simple_text"?Ua.pressed.bg[t.$color]:"transparent",t=>(t.$variant==="contained"||t.$variant==="outlined")&&Tn(["border-color:",";"],n=>Ua.pressed.border[n.$color]),ee(1),t=>t.theme.colors.green,ee(1),ee(0))),kgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M9 14H12C12.2651 13.9997 12.5193 13.8943 12.7068 13.7068C12.8943 13.5193 12.9997 13.2651 13 13V3C12.9997 2.73487 12.8943 2.48068 12.7068 2.2932C12.5193 2.10572 12.2651 2.00028 12 2H9C8.73487 2.00028 8.48068 2.10572 8.2932 2.2932C8.10572 2.48068 8.00028 2.73487 8 3V13C8.00028 13.2651 8.10572 13.5193 8.2932 13.7068C8.48068 13.8943 8.73487 13.9997 9 14ZM12 3V13H9V3H12Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M2.2406 8L5.2406 5L6 5.7594L3.7594 8L6 10.2406L5.2406 11L2.2406 8Z",fill:"#1F1F1F"})),wgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M7 14H4C3.73487 13.9997 3.48068 13.8943 3.2932 13.7068C3.10572 13.5193 3.00028 13.2651 3 13V3C3.00028 2.73487 3.10572 2.48068 3.2932 2.2932C3.48068 2.10572 3.73487 2.00028 4 2H7C7.26513 2.00028 7.51932 2.10572 7.7068 2.2932C7.89428 2.48068 7.99972 2.73487 8 3V13C7.99972 13.2651 7.89428 13.5193 7.7068 13.7068C7.51932 13.8943 7.26513 13.9997 7 14ZM4 3V13H7V3H4Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M13.7594 8L10.7594 5L10 5.7594L12.2406 8L10 10.2406L10.7594 11L13.7594 8Z",fill:"#1F1F1F"})),vgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M14.625 3.37992C14.3463 3.10024 14.0151 2.87833 13.6505 2.72692C13.2858 2.5755 12.8949 2.49756 12.5 2.49756C12.1052 2.49756 11.7142 2.5755 11.3496 2.72692C10.9849 2.87833 10.6537 3.10024 10.375 3.37992L11.085 4.08992C11.2712 3.90378 11.4922 3.75611 11.7354 3.65537C11.9786 3.55463 12.2393 3.50278 12.5025 3.50278C12.7658 3.50278 13.0264 3.55463 13.2697 3.65537C13.5129 3.75611 13.7339 3.90378 13.92 4.08992C14.1062 4.27607 14.2538 4.49706 14.3546 4.74028C14.4553 4.98349 14.5072 5.24417 14.5072 5.50742C14.5072 5.77068 14.4553 6.03135 14.3546 6.27457C14.2538 6.51778 14.1062 6.73878 13.92 6.92492L9.92002 10.9249C9.54473 11.3009 9.03548 11.5123 8.50428 11.5128C7.97309 11.5133 7.46346 11.3027 7.08752 10.9274C6.71157 10.5521 6.5001 10.0429 6.49964 9.51169C6.49917 8.98049 6.70973 8.47087 7.08502 8.09492L7.79002 7.38492L7.08502 6.67492L6.37502 7.38492C6.09534 7.66363 5.87343 7.99481 5.72201 8.35947C5.57059 8.72412 5.49265 9.11508 5.49265 9.50992C5.49265 9.90477 5.57059 10.2957 5.72201 10.6604C5.87343 11.025 6.09534 11.3562 6.37502 11.6349C6.94076 12.1934 7.70505 12.5045 8.50002 12.4999C8.89637 12.5016 9.28913 12.4246 9.65558 12.2736C10.022 12.1225 10.3549 11.9004 10.635 11.6199L14.635 7.61992C15.1955 7.0561 15.5093 6.29286 15.5074 5.49785C15.5055 4.70285 15.1881 3.9411 14.625 3.37992Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M2.09502 12.4099C1.90831 12.2241 1.76016 12.0032 1.65907 11.7599C1.55798 11.5167 1.50593 11.2559 1.50593 10.9924C1.50593 10.729 1.55798 10.4682 1.65907 10.2249C1.76016 9.98165 1.90831 9.76076 2.09502 9.57492L6.09502 5.57492C6.28085 5.38822 6.50174 5.24007 6.745 5.13898C6.98826 5.03788 7.24909 4.98584 7.51252 4.98584C7.77594 4.98584 8.03677 5.03788 8.28003 5.13898C8.52329 5.24007 8.74418 5.38822 8.93002 5.57492C9.11554 5.76222 9.26158 5.98486 9.35949 6.22963C9.4574 6.47441 9.50519 6.73634 9.50002 6.99992C9.50154 7.26433 9.45062 7.52641 9.35021 7.771C9.2498 8.0156 9.10188 8.23786 8.91502 8.42492L7.85502 9.49992L8.56501 10.2099L9.62502 9.14992C10.1893 8.58568 10.5063 7.82039 10.5063 7.02242C10.5063 6.22446 10.1893 5.45917 9.62502 4.89492C9.06077 4.33068 8.29548 4.01368 7.49752 4.01368C6.69955 4.01368 5.93426 4.33068 5.37002 4.89492L1.37002 8.89492C1.08958 9.17373 0.867037 9.50522 0.715177 9.87033C0.563316 10.2354 0.485138 10.627 0.485138 11.0224C0.485138 11.4179 0.563316 11.8094 0.715177 12.1745C0.867037 12.5396 1.08958 12.8711 1.37002 13.1499C1.93943 13.7042 2.70546 14.0099 3.50002 13.9999C4.30157 14.0007 5.07087 13.6843 5.64002 13.1199L4.93002 12.4099C4.74418 12.5966 4.52329 12.7448 4.28003 12.8459C4.03677 12.947 3.77594 12.999 3.51252 12.999C3.24909 12.999 2.98826 12.947 2.745 12.8459C2.50174 12.7448 2.28085 12.5966 2.09502 12.4099Z",fill:"#1F1F1F"})),xgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M14 7L14 4C13.9997 3.73487 13.8943 3.48068 13.7068 3.2932C13.5193 3.10572 13.2651 3.00028 13 3L3 3C2.73487 3.00028 2.48068 3.10572 2.2932 3.2932C2.10572 3.48068 2.00028 3.73487 2 4L2 7C2.00028 7.26513 2.10572 7.51932 2.2932 7.7068C2.48068 7.89428 2.73487 7.99972 3 8L13 8C13.2651 7.99972 13.5193 7.89428 13.7068 7.7068C13.8943 7.51932 13.9997 7.26513 14 7ZM3 4L13 4L13 7L3 7L3 4Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M8 13.7594L5 10.7594L5.7594 10L8 12.2406L10.2406 10L11 10.7594L8 13.7594Z",fill:"#1F1F1F"})),Cgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M2 9L2 12C2.00028 12.2651 2.10572 12.5193 2.2932 12.7068C2.48068 12.8943 2.73487 12.9997 3 13L13 13C13.2651 12.9997 13.5193 12.8943 13.7068 12.7068C13.8943 12.5193 13.9997 12.2651 14 12L14 9C13.9997 8.73487 13.8943 8.48068 13.7068 8.2932C13.5193 8.10572 13.2651 8.00028 13 8L3 8C2.73487 8.00028 2.48068 8.10572 2.2932 8.2932C2.10572 8.48068 2.00028 8.73487 2 9ZM13 12L3 12L3 9L13 9L13 12Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M8 2.2406L11 5.2406L10.2406 6L8 3.7594L5.7594 6L5 5.2406L8 2.2406Z",fill:"#1F1F1F"})),Sgt=e=>F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"#000000",...e},F.createElement("path",{d:"M24 24H0V0h24v24z",fill:"none",opacity:.87}),F.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"})),Dgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M7 13L7.705 12.295L3.915 8.5H14V7.5H3.915L7.705 3.705L7 3L2 8L7 13Z",fill:"#1F1F1F"})),Egt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M9 3L8.285 3.6965L12.075 7.5H2V8.5H12.075L8.285 12.2865L9 13L14 8L9 3Z",fill:"#1F1F1F"})),Tgt=e=>F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"#000000",...e},F.createElement("path",{d:"M0 0h24v24H0V0z",fill:"none"}),F.createElement("path",{d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14l-6-6z"})),Agt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M9.125 12.5H4.5V3.5H8.75C9.25108 3.50003 9.74168 3.64348 10.1639 3.91339C10.586 4.18331 10.9221 4.56842 11.1324 5.02323C11.3427 5.47803 11.4185 5.98353 11.3507 6.48001C11.283 6.97649 11.0745 7.44319 10.75 7.825C11.1739 8.16398 11.4822 8.62601 11.6327 9.14748C11.7831 9.66896 11.7682 10.2242 11.59 10.7369C11.4118 11.2495 11.0791 11.6944 10.6376 12.0101C10.1962 12.3258 9.66773 12.497 9.125 12.5ZM6 11H9.115C9.26274 11 9.40903 10.9709 9.54552 10.9144C9.68201 10.8578 9.80603 10.775 9.91049 10.6705C10.015 10.566 10.0978 10.442 10.1544 10.3055C10.2109 10.169 10.24 10.0227 10.24 9.875C10.24 9.72726 10.2109 9.58097 10.1544 9.44448C10.0978 9.30799 10.015 9.18397 9.91049 9.0795C9.80603 8.97504 9.68201 8.89217 9.54552 8.83564C9.40903 8.7791 9.26274 8.75 9.115 8.75H6V11ZM6 7.25H8.75C8.89774 7.25 9.04403 7.2209 9.18052 7.16436C9.31701 7.10783 9.44103 7.02496 9.5455 6.9205C9.64996 6.81603 9.73283 6.69201 9.78936 6.55552C9.8459 6.41903 9.875 6.27274 9.875 6.125C9.875 5.97726 9.8459 5.83097 9.78936 5.69448C9.73283 5.55799 9.64996 5.43397 9.5455 5.3295C9.44103 5.22504 9.31701 5.14217 9.18052 5.08564C9.04403 5.0291 8.89774 5 8.75 5H6V7.25Z",fill:"#1F1F1F"})),zgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M3.5 6C4.32843 6 5 5.32843 5 4.5C5 3.67157 4.32843 3 3.5 3C2.67157 3 2 3.67157 2 4.5C2 5.32843 2.67157 6 3.5 6Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M3.5 13C4.32843 13 5 12.3284 5 11.5C5 10.6716 4.32843 10 3.5 10C2.67157 10 2 10.6716 2 11.5C2 12.3284 2.67157 13 3.5 13Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M15 11H8V12H15V11Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M15 4H8V5H15V4Z",fill:"#1F1F1F"})),Fgt=e=>F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"#000000",...e},F.createElement("path",{d:"M0 0h24v24H0V0z",fill:"none"}),F.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"})),$gt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M15.5 8.00002L12 11.5L11.295 10.795L14.085 8.00002L11.295 5.20502L12 4.50002L15.5 8.00002Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M0.5 8.00002L4 4.50002L4.705 5.20502L1.915 8.00002L4.705 10.795L4 11.5L0.5 8.00002Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M8.81944 3.00049L6.20925 12.7418L7.17518 13.0007L9.78537 3.25931L8.81944 3.00049Z",fill:"#1F1F1F"})),Mgt=e=>F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"#000000",...e},F.createElement("path",{d:"M0 0h24v24H0V0z",fill:"none"}),F.createElement("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"})),Ogt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M13.5 1.5H2.5C2.23478 1.5 1.98043 1.60536 1.79289 1.79289C1.60536 1.98043 1.5 2.23478 1.5 2.5V13.5C1.5 13.7652 1.60536 14.0196 1.79289 14.2071C1.98043 14.3946 2.23478 14.5 2.5 14.5H13.5C13.7652 14.5 14.0196 14.3946 14.2071 14.2071C14.3946 14.0196 14.5 13.7652 14.5 13.5V2.5C14.5 2.23478 14.3946 1.98043 14.2071 1.79289C14.0196 1.60536 13.7652 1.5 13.5 1.5ZM13.5 2.5V4.5H2.5V2.5H13.5ZM8.5 5.5H13.5V9H8.5V5.5ZM7.5 9H2.5V5.5H7.5V9ZM2.5 10H7.5V13.5H2.5V10ZM8.5 13.5V10H13.5V13.5H8.5Z",fill:"#1F1F1F"})),Ngt=e=>F.createElement("svg",{width:230,height:231,viewBox:"0 0 230 231",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("g",{clipPath:"url(#clip0_601_5062)"},F.createElement("rect",{width:230,height:230.753,rx:115,fill:"#F6F6F6",className:"green"}),F.createElement("path",{d:"M163.333 173H66.6667C64.1037 172.997 61.6465 171.978 59.8343 170.166C58.022 168.353 57.0027 165.896 57 163.333V90.8333C57.0027 88.2704 58.022 85.8132 59.8343 84.0009C61.6465 82.1887 64.1037 81.1694 66.6667 81.1667H94.0548C96.1468 81.1701 98.182 81.8481 99.8581 83.1L116.612 95.6667H163.333C165.896 95.6694 168.353 96.6887 170.166 98.5009C171.978 100.313 172.997 102.77 173 105.333V163.333C172.997 165.896 171.978 168.353 170.166 170.166C168.353 171.978 165.896 172.997 163.333 173ZM94.0548 90.8333H66.6594L66.6667 163.333H163.333V105.333H113.388L94.0548 90.8333Z",fill:"#D9D9D9",className:"secondary-light-green"}),F.createElement("path",{d:"M173 81.1667H123.055L103.721 66.6667H66.6667V57H103.721C105.813 57.0034 107.849 57.6814 109.525 58.9333L126.279 71.5H173V81.1667Z",fill:"#D9D9D9",className:"secondary-light-green"}),F.createElement("path",{d:"M66.6667 163.333V90.833H95.6667L115 105.333H163.333V163.333H66.6667Z",fill:"#EAECEB",className:"light-green"}),F.createElement("rect",{x:132,y:129,width:62,height:62,rx:31,fill:"#BABABA"}),F.createElement("rect",{x:132,y:129,width:62,height:62,rx:31,stroke:"#F6F6F6",strokeWidth:4,className:"green"}),F.createElement("path",{d:"M151.125 162.875L152.799 164.549L161.812 155.548V177.125H164.188V155.548L173.201 164.549L174.875 162.875L163 151L151.125 162.875Z",fill:"white"}),F.createElement("path",{d:"M151.125 151V146.25H174.875V151H177.25V146.25C177.25 145.62 177 145.016 176.554 144.571C176.109 144.125 175.505 143.875 174.875 143.875H151.125C150.495 143.875 149.891 144.125 149.446 144.571C149 145.016 148.75 145.62 148.75 146.25V151H151.125Z",fill:"white"})),F.createElement("defs",null,F.createElement("clipPath",{id:"clip0_601_5062"},F.createElement("rect",{width:230,height:230.753,rx:115,fill:"white"})))),Lgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M7 6H6V12H7V6Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M10 6H9V12H10V6Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M2 3V4H3V14C3 14.2652 3.10536 14.5196 3.29289 14.7071C3.48043 14.8946 3.73478 15 4 15H12C12.2652 15 12.5196 14.8946 12.7071 14.7071C12.8946 14.5196 13 14.2652 13 14V4H14V3H2ZM4 14V4H12V14H4Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M10 1H6V2H10V1Z",fill:"#1F1F1F"})),Igt=e=>F.createElement("svg",{width:10,height:14,viewBox:"0 0 10 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M9.85 3.65L6.35 0.15C6.25 0.05 6.15 0 6 0H1C0.45 0 0 0.45 0 1V13C0 13.55 0.45 14 1 14H9C9.55 14 10 13.55 10 13V4C10 3.85 9.95 3.75 9.85 3.65ZM6 1.2L8.8 4H6V1.2ZM9 13H1V1H5V4C5 4.55 5.45 5 6 5H9V13Z",fill:"#1F1F1F",fillOpacity:.8}),F.createElement("path",{d:"M8 10H2V11H8V10Z",fill:"#1F1F1F",fillOpacity:.8}),F.createElement("path",{d:"M8 7H2V8H8V7Z",fill:"#1F1F1F",fillOpacity:.8})),Bgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M13 12V14H3V12H2V14C2 14.2652 2.10536 14.5196 2.29289 14.7071C2.48043 14.8946 2.73478 15 3 15H13C13.2652 15 13.5196 14.8946 13.7071 14.7071C13.8946 14.5196 14 14.2652 14 14V12H13Z",fill:"#1F1F1F",fillOpacity:.8}),F.createElement("path",{d:"M13 7L12.295 6.295L8.5 10.085V1H7.5V10.085L3.705 6.295L3 7L8 12L13 7Z",fill:"#1F1F1F",fillOpacity:.8})),Rgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M15 13H1V14H15V13Z"}),F.createElement("path",{d:"M12.7 4.5C13.1 4.1 13.1 3.5 12.7 3.1L10.9 1.3C10.5 0.9 9.9 0.9 9.5 1.3L2 8.8V12H5.2L12.7 4.5ZM10.2 2L12 3.8L10.5 5.3L8.7 3.5L10.2 2ZM3 11V9.2L8 4.2L9.8 6L4.8 11H3Z"})),Pgt=e=>F.createElement("svg",{width:15,height:16,viewBox:"0 0 15 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M3.42849 11.6735H0.91427V0.898103H4.57135V3.59195C4.57205 3.82989 4.6686 4.05788 4.83991 4.22613C5.01122 4.39438 5.24336 4.48921 5.48562 4.4899H8.22843V5.14293H9.1427V3.59195C9.14434 3.53294 9.13293 3.47428 9.10925 3.42002C9.08558 3.36577 9.0502 3.3172 9.00556 3.27767L5.80562 0.134847C5.76538 0.0909946 5.71593 0.0562419 5.66068 0.0329874C5.60543 0.00973299 5.54571 -0.00146916 5.48562 0.000154323H0.91427C0.672006 0.000841363 0.439864 0.095667 0.268556 0.263916C0.0972487 0.432166 0.000699528 0.660163 0 0.898103V11.6735C0.000699528 11.9114 0.0972487 12.1394 0.268556 12.3077C0.439864 12.4759 0.672006 12.5707 0.91427 12.5714H3.42849V11.6735ZM5.48562 1.07769L8.04558 3.59195H5.48562V1.07769Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M10.8324 10.1869C11.0977 10.1869 11.3571 10.1082 11.5778 9.96079C11.7984 9.81337 11.9703 9.60384 12.0719 9.35869C12.1734 9.11354 12.2 8.84379 12.1482 8.58354C12.0965 8.32329 11.9687 8.08424 11.7811 7.89661C11.5934 7.70899 11.3544 7.58121 11.0941 7.52944C10.8339 7.47768 10.5641 7.50424 10.319 7.60579C10.0738 7.70733 9.86431 7.87929 9.71689 8.09992C9.56947 8.32054 9.49079 8.57993 9.49079 8.84528C9.49118 9.20098 9.63265 9.54199 9.88417 9.79351C10.1357 10.045 10.4767 10.1865 10.8324 10.1869ZM10.8324 8.39807C10.9209 8.39807 11.0073 8.4243 11.0809 8.47344C11.1544 8.52258 11.2117 8.59242 11.2456 8.67414C11.2794 8.75586 11.2883 8.84577 11.271 8.93252C11.2538 9.01927 11.2112 9.09896 11.1486 9.1615C11.0861 9.22404 11.0064 9.26663 10.9196 9.28389C10.8329 9.30115 10.743 9.29229 10.6613 9.25844C10.5795 9.22459 10.5097 9.16727 10.4606 9.09373C10.4114 9.02019 10.3852 8.93373 10.3852 8.84528C10.3853 8.72671 10.4325 8.61302 10.5163 8.52917C10.6001 8.44533 10.7138 8.39818 10.8324 8.39807Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M13.9628 5.71484H5.46594C5.22882 5.71514 5.0015 5.80947 4.83383 5.97714C4.66616 6.14481 4.57183 6.37213 4.57153 6.60925V15.1061C4.57183 15.3433 4.66616 15.5706 4.83383 15.7383C5.0015 15.9059 5.22882 16.0003 5.46594 16.0006H13.9628C14.2 16.0003 14.4273 15.9059 14.595 15.7383C14.7626 15.5706 14.857 15.3433 14.8572 15.1061V6.60925C14.857 6.37213 14.7626 6.14481 14.595 5.97714C14.4273 5.80947 14.2 5.71514 13.9628 5.71484ZM13.9628 15.1061H5.46594V12.4229L7.25476 10.6354L9.7528 13.1335C9.92054 13.3012 10.148 13.3954 10.3852 13.3954C10.6224 13.3954 10.8499 13.3012 11.0176 13.1335L11.7268 12.4244L13.9628 14.6589V15.1061ZM13.9628 13.3942L12.3592 11.7905C12.1915 11.6228 11.964 11.5286 11.7268 11.5286C11.4896 11.5286 11.2621 11.6228 11.0944 11.7905L10.3852 12.4998L7.88716 10.0017C7.71942 9.834 7.49195 9.73979 7.25476 9.73979C7.01758 9.73979 6.7901 9.834 6.62237 10.0017L5.46594 11.1582V6.60925H13.9628V13.3942Z",fill:"#1F1F1F"})),jgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M13 14H3C2.73489 13.9996 2.48075 13.8942 2.29329 13.7067C2.10583 13.5193 2.00036 13.2651 2 13V3C2.00036 2.73489 2.10583 2.48075 2.29329 2.29329C2.48075 2.10583 2.73489 2.00036 3 2H8V3H3V13H13V8H14V13C13.9996 13.2651 13.8942 13.5193 13.7067 13.7067C13.5193 13.8942 13.2651 13.9996 13 14Z",fill:"white"}),F.createElement("path",{d:"M10 1V2H13.293L9 6.293L9.707 7L14 2.707V6H15V1H10Z",fill:"white"})),Vgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M11 10.5H12L8.5 2H7.5L4 10.5H5L5.805 8.5H10.175L11 10.5ZM6.215 7.5L7.935 3.315H8.065L9.77 7.5H6.215Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M13 12H3V14H13V12Z",fill:"#1F1F1F"})),qgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M0.721663 9.66287L5.14986 1.75569C5.23829 1.59779 5.40514 1.5 5.58611 1.5H10.4139C10.5949 1.5 10.7617 1.59779 10.8501 1.75569L15.2783 9.66287C15.3665 9.8203 15.363 10.013 15.2692 10.1672L12.8651 14.1164C12.7744 14.2654 12.6125 14.3564 12.438 14.3564H3.56197C3.38748 14.3564 3.22561 14.2654 3.13488 14.1164L0.730821 10.1672C0.636994 10.013 0.633495 9.8203 0.721663 9.66287Z",stroke:"black",strokeLinecap:"round",strokeLinejoin:"round"}),F.createElement("path",{d:"M15 10.0009L6 10.0009",stroke:"black",strokeLinejoin:"round"}),F.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.68694 10.0011H10.8331L5.93625 1.25676L5.06375 1.74536L9.68694 10.0011Z",fill:"black"}),F.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.92744 5.57123L3.06375 14.2564L3.93625 14.745L8.50924 6.57895L7.92744 5.57123Z",fill:"black"})),Hgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M12.5 4.5V3.5H6V4.5H8.57L6.385 11.5H3.5V12.5H10V11.5H7.43L9.615 4.5H12.5Z",fill:"#1F1F1F"})),Ugt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M13 8.99999H12L11 10.9485L10 8.99999H9L10.4525 11.5L9 14H10L11 12.1005L12 14H13L11.549 11.5L13 8.99999Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M9.5 2.99999V1.99999H6.95665C6.7068 1.9989 6.46567 2.09181 6.28117 2.26029C6.09666 2.42876 5.98226 2.66047 5.9607 2.90939L5.6343 6.49999H3.5V7.49999H5.54335L5.04335 13H2.5V14H5.04335C5.2932 14.0011 5.53433 13.9082 5.71883 13.7397C5.90334 13.5712 6.01774 13.3395 6.0393 13.0906L6.5476 7.49999H9V6.49999H6.63845L6.95665 2.99999H9.5Z",fill:"#1F1F1F"})),Wgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M14 9H11C10.7349 9.0003 10.4807 9.10576 10.2932 9.29323C10.1058 9.4807 10.0003 9.73488 10 10V11H7.20707L5.00002 8.79295V6H6.00002C6.26514 5.9997 6.51932 5.89424 6.70679 5.70677C6.89426 5.5193 6.99971 5.26512 7.00002 5V2C6.99971 1.73488 6.89426 1.4807 6.70679 1.29323C6.51932 1.10576 6.26514 1.0003 6.00002 1H3.00002C2.73489 1.0003 2.48072 1.10576 2.29325 1.29323C2.10578 1.4807 2.00032 1.73488 2.00002 2V5C2.00032 5.26512 2.10578 5.5193 2.29325 5.70677C2.48072 5.89424 2.73489 5.9997 3.00002 6H4.00002V8.79295L1.64652 11.1465C1.60007 11.1929 1.56322 11.248 1.53808 11.3087C1.51294 11.3693 1.5 11.4343 1.5 11.5C1.5 11.5657 1.51294 11.6307 1.53808 11.6913C1.56322 11.752 1.60007 11.8071 1.64652 11.8535L4.14652 14.3535C4.19293 14.3999 4.24804 14.4368 4.30869 14.4619C4.36935 14.4871 4.43436 14.5 4.50002 14.5C4.56568 14.5 4.63069 14.4871 4.69134 14.4619C4.752 14.4368 4.80711 14.3999 4.85352 14.3535L7.20707 12H10V13C10.0003 13.2651 10.1058 13.5193 10.2932 13.7068C10.4807 13.8942 10.7349 13.9997 11 14H14C14.2651 13.9997 14.5193 13.8942 14.7068 13.7068C14.8943 13.5193 14.9997 13.2651 15 13V10C14.9997 9.73488 14.8943 9.4807 14.7068 9.29323C14.5193 9.10576 14.2651 9.0003 14 9ZM3.00002 2H6.00002V5H3.00002V2ZM4.50002 13.2929L2.70707 11.5L4.50002 9.70705L6.29297 11.5L4.50002 13.2929ZM11 13V10H14V13H11Z",fill:"#1F1F1F"})),Ggt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M15 11H8V12H15V11Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M15 4H8V5H15V4Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M4 6V2H3V2.5H2V3.5H3V6H2V7H5V6H4Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M5 14H2V12C2 11.7348 2.10536 11.4804 2.29289 11.2929C2.48043 11.1054 2.73478 11 3 11H4V10H2V9H4C4.26522 9 4.51957 9.10536 4.70711 9.29289C4.89464 9.48043 5 9.73478 5 10V11C5 11.2652 4.89464 11.5196 4.70711 11.7071C4.51957 11.8946 4.26522 12 4 12H3V13H5V14Z",fill:"#1F1F1F"})),Kgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M13.5 2H6.5C5.57174 2 4.6815 2.36875 4.02513 3.02513C3.36875 3.6815 3 4.57174 3 5.5C3 6.42826 3.36875 7.3185 4.02513 7.97487C4.6815 8.63125 5.57174 9 6.5 9V14H7.5V3H10V14H11V3H13.5V2ZM6.5 8C5.83696 8 5.20107 7.73661 4.73223 7.26777C4.26339 6.79893 4 6.16304 4 5.5C4 4.83696 4.26339 4.20107 4.73223 3.73223C5.20107 3.26339 5.83696 3 6.5 3V8Z",fill:"#1F1F1F"})),Ygt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M6 5H12.0926L10.2989 3.20705L11 2.5L14 5.5L11 8.5L10.2989 7.7927L12.0911 6H6C5.20435 6 4.44129 6.31607 3.87868 6.87868C3.31607 7.44129 3 8.20435 3 9C3 9.79565 3.31607 10.5587 3.87868 11.1213C4.44129 11.6839 5.20435 12 6 12H10V13H6C4.93913 13 3.92172 12.5786 3.17157 11.8284C2.42143 11.0783 2 10.0609 2 9C2 7.93913 2.42143 6.92172 3.17157 6.17157C3.92172 5.42143 4.93913 5 6 5Z"})),Zgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M8 5C8.55228 5 9 4.55228 9 4C9 3.44772 8.55228 3 8 3C7.44772 3 7 3.44772 7 4C7 4.55228 7.44772 5 8 5Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M8 9C8.55228 9 9 8.55228 9 8C9 7.44772 8.55228 7 8 7C7.44772 7 7 7.44772 7 8C7 8.55228 7.44772 9 8 9Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M8 13C8.55228 13 9 12.5523 9 12C9 11.4477 8.55228 11 8 11C7.44772 11 7 11.4477 7 12C7 12.5523 7.44772 13 8 13Z",fill:"#1F1F1F"})),Xgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M14 7.49997H8.97815C8.75205 7.43812 8.5263 7.38377 8.3091 7.33237C6.90525 7.00032 6.1111 6.75707 6.1111 5.62082C6.09969 5.42464 6.12871 5.22821 6.19636 5.04372C6.26402 4.85923 6.36887 4.6906 6.5044 4.54832C6.92919 4.19898 7.46128 4.00653 8.01125 4.00332C9.4258 3.96832 10.0786 4.44802 10.6118 5.17832L11.4194 4.58872C11.0415 4.04583 10.5262 3.61301 9.92623 3.33448C9.32623 3.05595 8.66305 2.94171 8.00445 3.00342C7.19545 3.00858 6.41503 3.3032 5.80445 3.83397C5.57305 4.06868 5.39217 4.34831 5.27297 4.6556C5.15376 4.9629 5.09876 5.29135 5.11135 5.62072C5.08943 5.98122 5.15717 6.34155 5.30852 6.66948C5.45986 6.99742 5.6901 7.28274 5.97865 7.49997H2V8.49997H8.82595C9.80935 8.78497 10.3975 9.15612 10.4126 10.1789C10.4288 10.3975 10.3988 10.617 10.3245 10.8231C10.2503 11.0293 10.1334 11.2175 9.98145 11.3755C9.4524 11.7925 8.79512 12.0132 8.1216 12C7.61884 11.9854 7.12598 11.8567 6.6803 11.6235C6.23462 11.3904 5.84778 11.059 5.54905 10.6544L4.78245 11.2965C5.17082 11.814 5.67191 12.2364 6.24773 12.5315C6.82356 12.8267 7.45902 12.9869 8.10595 13C8.11035 12.9994 8.12695 13 8.15595 13C9.07935 13.0106 9.97558 12.6877 10.68 12.0906C10.93 11.8385 11.1243 11.5368 11.2505 11.205C11.3766 10.8731 11.4318 10.5185 11.4124 10.164C11.4311 9.55765 11.2266 8.96551 10.8377 8.49997H14V7.49997Z",fill:"#1F1F1F"})),Jgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 4V8.5V13H3V9H7V13H8V4H7V8H3V4H2ZM11.0811 12.12C11.0992 12.0472 11.1222 11.9772 11.15 11.91C11.2367 11.71 11.3567 11.5267 11.51 11.36C11.6633 11.1933 11.8367 11.04 12.03 10.9L13.28 9.96C13.6733 9.65333 13.9733 9.33667 14.18 9.01C14.3933 8.68333 14.5 8.32667 14.5 7.94C14.5 7.54 14.4033 7.18667 14.21 6.88C14.0167 6.56667 13.7433 6.32333 13.39 6.15C13.0433 5.97 12.63 5.88 12.15 5.88C11.73 5.88 11.3533 5.96333 11.02 6.13C10.6867 6.29 10.4133 6.50333 10.2 6.77C9.98667 7.03667 9.84333 7.32333 9.77 7.63L10.78 7.82C10.8333 7.64 10.9233 7.47 11.05 7.31C11.1767 7.15 11.3333 7.02333 11.52 6.93C11.7133 6.83 11.9367 6.78 12.19 6.78C12.4567 6.78 12.6867 6.83333 12.88 6.94C13.0733 7.04 13.2233 7.18 13.33 7.36C13.4367 7.53333 13.49 7.72667 13.49 7.94C13.49 8.1 13.45 8.26333 13.37 8.43C13.2967 8.59 13.1933 8.74667 13.06 8.9C12.9333 9.04667 12.79 9.17667 12.63 9.29L11.28 10.29C11.0267 10.4767 10.8067 10.68 10.62 10.9C10.44 11.12 10.3 11.3433 10.2 11.57C10.1067 11.79 10.06 12.0033 10.06 12.21V13H14.59V12.12H11.0811Z",fill:"black"})),Qgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M13 3H3V4H13V3Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M11 6H5V7H11V6Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M13 9H3V10H13V9Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M11 12H5V13H11V12Z",fill:"#1F1F1F"})),e1t=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M13 3H6V4H13V3Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M11 6H6V7H11V6Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M13 9H6V10H13V9Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M11 12H6V13H11V12Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M4 2H3V14H4V2Z",fill:"#1F1F1F"})),t1t=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M10 3H3V4H10V3Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M10 6H5V7H10V6Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M10 9H3V10H10V9Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M10 12H5V13H10V12Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M13 2H12V14H13V2Z",fill:"#1F1F1F"})),n1t=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 4V8.5V13H3V9H7V13H8V4H7V8H3V4H2ZM11.6088 7.29307L11.6 13H12.56L12.57 6H11.7092L11.7 5.99C11.5467 6.16333 11.37 6.33 11.17 6.49C10.97 6.65 10.77 6.78 10.57 6.88C10.3767 6.98 10.2067 7.02667 10.06 7.02V7.91C10.3267 7.92333 10.5867 7.87333 10.84 7.76C11.1 7.64667 11.3533 7.49333 11.6 7.3C11.6029 7.29769 11.6059 7.29539 11.6088 7.29307Z",fill:"black"})),r1t=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M10 5H3.90745L5.70115 3.20705L5 2.5L2 5.5L5 8.5L5.70115 7.7927L3.90895 6H10C10.7956 6 11.5587 6.31607 12.1213 6.87868C12.6839 7.44129 13 8.20435 13 9C13 9.79565 12.6839 10.5587 12.1213 11.1213C11.5587 11.6839 10.7956 12 10 12H6V13H10C11.0609 13 12.0783 12.5786 12.8284 11.8284C13.5786 11.0783 14 10.0609 14 9C14 7.93913 13.5786 6.92172 12.8284 6.17157C12.0783 5.42143 11.0609 5 10 5Z"})),i1t={redo:Ygt,undo:r1t,bold:Agt,italic:Hgt,copy:Mgt,strikethrough:Xgt,bulleted_list:zgt,numbered_list:Ggt,add_link:vgt,embed_image:Pgt,code_block:$gt,create_table:Ogt,arrow_down:Sgt,arrow_top:Tgt,delete:Lgt,text_align_left:e1t,text_align_right:t1t,text_align_center:Qgt,arrow_left:Dgt,arrow_right:Egt,edit:Rgt,export:jgt,d_a_d_file:Ngt,close:Fgt,mermaid:Wgt,math:Ugt,title:n1t,subtitle:Jgt,paragraph:Kgt,format_dropdown:Vgt,settings:Zgt,google:qgt,add_row_top:Cgt,add_row_bottom:xgt,add_column_left:kgt,add_column_right:wgt,document:Igt,download:Bgt},ut=({icon:e,fill:t="#1F1F1F",width:n=18,height:r=18,...i})=>{const a=F.useMemo(()=>i1t[e],[e]);return a&&j(a,{width:n,height:r,fill:t,...i})};var aU={},oU={exports:{}};/*! +`)[0]||"",tgt=e=>e.childCount===1&&e.child(0).type.name==="html",WH=(e,t)=>{try{const n=Qmt(e,t),r=Ymt(t),i=Zmt(e,t,r,n),[a,o]=Xmt(e,i),s=Jmt(e,a);return!s||r.type!==s.type||tgt(s)?null:(s.attrs={...r.attrs},s.descendants(l=>{var c;const u=l.marks.find(f=>f.type.name==="link");u&&(c=l.text)!=null&&c.includes(o)&&u.attrs.href.includes(o)&&(u.attrs.href=u.attrs.href.replace(o,""))}),{text:egt(a),prevNode:r,nextNode:s,placeholder:o})}catch{return null}},ngt=(e,t,n,r,i)=>{var a;const{placeholderConfig:o}=e.get(Vp.key),s=o.hole;let l=n.tr.setMeta(t,!0).insertText(s,n.selection.from);const c=n.apply(l),u=WH(e,c);if(!u)return;const f=u.text.slice(0,u.text.indexOf(u.placeholder)),{$from:h}=c.selection,m=h.before(),g=h.after(),b=Gmt(u.nextNode,m,u.placeholder);l=l.replaceWith(m,g,u.nextNode).setNodeMarkup(m,void 0,i).delete(b+1,b+2),l=l.setSelection(Nt.near(l.doc.resolve(b+1))),(jmt.test(f)||["*","_","~"].includes(f.at(-1)||""))&&l.selection instanceof Nt&&(((a=l.selection.$cursor)==null?void 0:a.marks())??[]).forEach(C=>{l=l.removeStoredMark(C.type)}),r(l)},GH=yr(e=>{let t=null;const n=new Fn("MILKDOWN_INLINE_SYNC");return new Bn({key:n,state:{init:()=>null,apply:(r,i,a,o)=>{var s;const l=e.get(ai);if(!((s=l.hasFocus)!=null&&s.call(l))||!l.editable||!r.docChanged||r.getMeta(n))return null;const c=WH(e,o);if(!c)return null;t&&(cancelAnimationFrame(t),t=null);const{prevNode:u,nextNode:f,text:h}=c,{shouldSyncNode:m}=e.get(Vp.key);return m({prevNode:u,nextNode:f,ctx:e,tr:r,text:h})&&(t=requestAnimationFrame(()=>{t=null;const{dispatch:g,state:b}=e.get(ai);ngt(e,n,b,g,u.attrs)})),null}}})});Se(GH,{displayName:"Prose<inlineSyncPlugin>",group:"Prose"});const KH=Ps(()=>()=>e=>{lf(e,"list",t=>{if(t.ordered){const n=t.start??1;t.children.forEach((r,i)=>{r.label=i+n})}})});Se(KH,{displayName:"Remark<remarkAddOrderInListPlugin>",group:"Remark"});const YH=Ps(()=>()=>e=>{const t=/[\t ]*(?:\r?\n|\r)/g;lf(e,"text",(n,r,i)=>{if(!n.value||typeof n.value!="string")return;const a=[];let o=0;t.lastIndex=0;let s=t.exec(n.value);for(;s;){const l=s.index;o!==l&&a.push({type:"text",value:n.value.slice(o,l)}),a.push({type:"break",data:{isInline:!0}}),o=l+s[0].length,s=t.exec(n.value)}if(a.length>0&&i&&typeof r=="number")return o<n.value.length&&a.push({type:"text",value:n.value.slice(o)}),i.children.splice(r,1,...a),r+a.length})});Se(YH,{displayName:"Remark<remarkLineBreak>",group:"Remark"});const ZH=Ps(()=>Fmt);Se(ZH,{displayName:"Remark<remarkInlineLinkPlugin>",group:"Remark"});const rgt=e=>!!e.children,igt=e=>e.type==="html";function agt(e,t){return n(e,0,null)[0];function n(r,i,a){if(rgt(r)){const o=[];for(let s=0,l=r.children.length;s<l;s++){const c=r.children[s];if(c){const u=n(c,s,r);if(u)for(let f=0,h=u.length;f<h;f++){const m=u[f];m&&o.push(m)}}}r.children=o}return t(r,i,a)}}const XH=Ps(()=>()=>e=>{agt(e,(t,n,r)=>igt(t)?((r==null?void 0:r.type)==="root"&&(t.children=[{...t}],delete t.value,t.type="paragraph"),[t]):[t])});Se(XH,{displayName:"Remark<remarkHtmlTransformer>",group:"Remark"});const JH=Ps(()=>()=>(e,t)=>{const n=r=>t.value.charAt(r.position.start.offset);lf(e,r=>["strong","emphasis"].includes(r.type),r=>{r.marker=n(r)})});Se(JH,{displayName:"Remark<remarkMarker>",group:"Remark"});const QH=yr(()=>{let e=!1;const t=new Fn("MILKDOWN_INLINE_NODES_CURSOR"),n=new Bn({key:t,state:{init(){return!1},apply(r){if(!r.selection.empty)return!1;const i=r.selection.$from,a=i.nodeBefore,o=i.nodeAfter;return!!(a&&o&&a.isInline&&!a.isText&&o.isInline&&!o.isText)}},props:{handleDOMEvents:{compositionend:(r,i)=>e?(e=!1,requestAnimationFrame(()=>{if(n.getState(r.state)){const a=r.state.selection.from;i.preventDefault(),r.dispatch(r.state.tr.insertText(i.data||"",a))}}),!0):!1,compositionstart:r=>(n.getState(r.state)&&(e=!0),!1),beforeinput:(r,i)=>{if(n.getState(r.state)&&i instanceof InputEvent&&i.data&&!e){const a=r.state.selection.from;return i.preventDefault(),r.dispatch(r.state.tr.insertText(i.data||"",a)),!0}return!1}},decorations(r){if(n.getState(r)){const i=r.selection.$from.pos,a=document.createElement("span"),o=$r.widget(i,a,{side:-1}),s=document.createElement("span"),l=$r.widget(i,s);return setTimeout(()=>{a.contentEditable="true",s.contentEditable="true"}),en.create(r.doc,[o,l])}return en.empty}}});return n});Se(QH,{displayName:"Prose<inlineNodesCursorPlugin>",group:"Prose"});const eU=yr(e=>new Bn({key:new Fn("MILKDOWN_HARDBREAK_MARKS"),appendTransaction:(t,n,r)=>{if(!t.length)return;const[i]=t;if(!i)return;const[a]=i.steps;if(i.getMeta("hardbreak")){if(!(a instanceof ni))return;const{from:o}=a;return r.tr.setNodeMarkup(o,Od.type(e),void 0,[])}if(a instanceof Dl){let o=r.tr;const{from:s,to:l}=a;return r.doc.nodesBetween(s,l,(c,u)=>{c.type===Od.type(e)&&(o=o.setNodeMarkup(u,Od.type(e),void 0,[]))}),o}}}));Se(eU,{displayName:"Prose<hardbreakClearMarkPlugin>",group:"Prose"});const _9=Lr(["table","code_block"],"hardbreakFilterNodes");Se(_9,{displayName:"Ctx<hardbreakFilterNodes>",group:"Prose"});const tU=yr(e=>{const t=e.get(_9.key);return new Bn({key:new Fn("MILKDOWN_HARDBREAK_FILTER"),filterTransaction:(n,r)=>{const i=n.getMeta("hardbreak"),[a]=n.steps;if(i&&a){const{from:o}=a,s=r.doc.resolve(o);let l=s.depth,c=!0;for(;l>0;)t.includes(s.node(l).type.name)&&(c=!1),l--;return c}return!0}})});Se(tU,{displayName:"Prose<hardbreakFilterPlugin>",group:"Prose"});const nU=yr(e=>{const t=new Fn("MILKDOWN_HEADING_ID"),n=r=>{if(r.composing||!r.editable)return;const i=e.get(Kv.key),a=r.state.tr.setMeta("addToHistory",!1);let o=!1;r.state.doc.descendants((s,l)=>{if(s.type===uf.type(e)){if(s.textContent.trim().length===0)return;const c=s.attrs,u=i(s);c.id!==u&&(o=!0,a.setMeta(t,!0).setNodeMarkup(l,void 0,{...c,id:u}))}}),o&&r.dispatch(a)};return new Bn({key:t,view:r=>(n(r),{update:i=>{n(i)}})})});Se(nU,{displayName:"Prose<syncHeadingIdPlugin>",group:"Prose"});const rU=yr(e=>{const t=n=>{if(n.composing||!n.editable)return;const r=ff.type(e),i=df.type(e),a=Is.type(e),o=n.state,s=(u,f)=>{let h=!1;const m=`${f+1}.`;return u.label!==m&&(u.label=m,h=!0),h};let l=o.tr,c=!1;o.doc.descendants((u,f,h,m)=>{if(u.type===i){const g=u.maybeChild(0);(g==null?void 0:g.type)===a&&g.attrs.listType==="ordered"&&(c=!0,l.setNodeMarkup(f,r,{spread:"true"}),u.descendants((b,C,w,k)=>{if(b.type===a){const S={...b.attrs};s(S,k)&&(l=l.setNodeMarkup(C,void 0,S))}return!1}))}else if(u.type===a&&(h==null?void 0:h.type)===r){const g={...u.attrs};let b=!1;g.listType!=="ordered"&&(g.listType="ordered",b=!0),h!=null&&h.maybeChild(0)&&(b=s(g,m)),b&&(l=l.setNodeMarkup(f,void 0,g),c=!0)}}),c&&n.dispatch(l.setMeta("addToHistory",!1))};return new Bn({key:new Fn("MILKDOWN_KEEP_LIST_ORDER"),view:n=>(t(n),{update:r=>{t(r)}})})});Se(rU,{displayName:"Prose<syncListOrderPlugin>",group:"Prose"});const ogt=[Vp,GH,eU,_9,tU,QH,KH,ZH,YH,XH,JH,nU,rU],sgt=[Imt,Bmt,Rmt,Pmt,ogt].flat(),lgt=({href:e})=>F.useMemo(()=>e?e.replace("pub","embed"):null,[e]),cgt=()=>{const{spec:e}=Np(),{href:t}=e,n=lgt({href:t});return n?j(ugt,{src:n}):null},ugt=Ae.iframe.withConfig({displayName:"IFrameStyled"})(["display:block;width:100%;height:",";@media (min-width:","){height:",";}"],ee(200),Vt.queries.laptop,ee(388)),Sb=e=>typeof e=="string",kh=e=>({orElse:t=>Sb(e)?kh(e):kh(t()),map:t=>Sb(e)?kh(t(e)):kh(e),getOrElse:t=>Sb(e)?e:t(),get:()=>e}),dgt=()=>({getBase64:F.useCallback(async t=>new Promise((n,r)=>{const i=new FileReader;i.readAsDataURL(t),i.onload=function(){const a=i.result;a?Sb(a)&&n(a):r("Empty file")},i.onerror=function(a){r(a)}}),[])}),iU=F.createContext({mode:"preview",showMenu:!0,placeholder:"",stickyOnMenu:10,onFileUpload:()=>Promise.resolve(""),inputAcceptedFormats:"",onFileValidation:()=>!0}),fgt=({mode:e,showMenu:t=!0,children:n,placeholder:r="Post an update..",stickyOnMenu:i=10,onFileUpload:a,onFileValidation:o,inputAcceptedFormats:s="*"})=>{const{getBase64:l}=dgt(),c=F.useMemo(()=>({mode:e,stickyOnMenu:i,onFileUpload:a||l,showMenu:t,placeholder:r,onFileValidation:o,inputAcceptedFormats:s}),[e,a,l,r,t,i,o,s]);return j(iU.Provider,{value:c,children:n})},ta=()=>F.useContext(iU),aU=()=>({getNodesByMark:F.useCallback((t,n)=>V0e(t,n),[])}),hgt=()=>{const{getNodesByMark:e}=aU();return{getLinkAttributes:F.useCallback((n,r)=>e(r,co.type(n)).map(({pos:i,node:a})=>{var u;const{nodeSize:o,marks:[s]}=a,l=i+o,c=((u=s.attrs)==null?void 0:u.href)||"";return{start:i,end:l,href:c}}),[e])}},pgt=()=>{const{mode:e}=ta(),t=$v(),{getLinkAttributes:n}=hgt(),r=F.useMemo(()=>t({as:"div",component:cgt}),[t]),i=F.useCallback((o,s)=>n(o,s).filter(l=>l.href.includes("docs.google.com/presentation")),[n]);return F.useMemo(()=>yr(o=>{const s=new Fn("MILKDOWN_GOOGLE_SLIDES_PLUGIN");return new Bn({key:s,state:{init(l,c){if(e==="active")return en.empty;const f=i(o,c.doc).map(({href:h,end:m})=>r(m,{href:h}));return en.create(c.doc,f)},apply(l,c,u,f){if(e==="active")return en.create(f.doc,[]);if(u.doc.eq(f.doc))return c;const m=i(o,f.doc).map(({href:g,end:b})=>r(b,{href:g}));return en.create(f.doc,m)}},props:{decorations(l){return s.getState(l)}}})}),[e,r,i])},mgt=Ae.code.withConfig({displayName:"CodeStyled"})([".token.comment,.token.prolog,.token.doctype,.token.cdata{color:#898ea4;}.token.punctuation{color:#5e6687;}.token.namespace{opacity:0.7;}.token.operator,.token.boolean,.token.number{color:#c76b29;}.token.property{color:#c08b30;}.token.tag{color:#3d8fd1;}.token.string{color:#22a2c9;}.token.selector{color:#6679cc;}.token.attr-name{color:#c76b29;}.token.entity,.token.url,.language-css .token.string,.style .token.string{color:#22a2c9;}.token.attr-value,.token.keyword,.token.control,.token.directive,.token.unit{color:#ac9739;}.token.statement,.token.regex,.token.atrule{color:#22a2c9;}.token.placeholder,.token.variable{color:#3d8fd1;}.token.deleted{text-decoration:line-through;}.token.inserted{text-decoration:none;border-bottom:1px dotted #202746;}.token.italic{font-style:italic;}.token.important,.token.bold{font-weight:bold;}.token.important{color:#c94922;}.token.entity{cursor:help;}.line-numbers.line-numbers .line-numbers-rows{border-right-color:#dfe2f1;}.line-numbers .line-numbers-rows > span::before{color:#979db4;}"]),ggt=PP(["0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}"]),uO=Tn(["position:absolute;top:50%;left:50%;width:20px;height:20px;border-radius:50%;content:'';"]),ygt=Tn(["&:before{border:2px solid rgba(0,0,0,0.15);transform:translate(-50%,-50%);","}&:after{margin:-12px 0 0 -12px;"," border-color:#68D391 transparent transparent;border-style:solid;border-width:2px;box-shadow:0px 0px 0px 1px transparent;animation:0.75s linear "," infinite;}"],uO,uO,ggt),Xt=F.forwardRef(({type:e="button",oval:t=!1,color:n="primary",space:r="normal",loading:i=!1,variant:a="text",children:o,...s},l)=>j(bgt,{type:e,...s,ref:l,$oval:t,$color:n,$space:r,$loading:i,$variant:a,children:o})),Ua={idle:{bg:{primary:Vt.colors.lightGreen,secondary:Vt.colors.white,danger:Vt.colors.white},border:{primary:"transparent",secondary:Vt.colors.lightGrey,danger:Vt.colors.lightGrey},color:{primary:Vt.colors.lightBlack,secondary:Vt.colors.lightBlack,danger:Vt.colors.darkRed}},hover:{bg:{primary:"#68D391",secondary:"#F9F9F9",danger:"#F9F9F9"},border:{primary:"transparent",secondary:Vt.colors.lightGrey,danger:Vt.colors.lightGrey},color:{primary:Vt.colors.lightBlack,secondary:Vt.colors.lightBlack,danger:Vt.colors.darkRed}},pressed:{bg:{primary:"#63C88A",secondary:"#F0F2F1",danger:"#F0F2F1"},border:{primary:"transparent",secondary:Vt.colors.lightGrey,danger:Vt.colors.lightGrey},color:{primary:Vt.colors.lightBlack,secondary:Vt.colors.lightBlack,danger:Vt.colors.darkRed}},disabled:{bg:{primary:"#FaFaFa",secondary:Vt.colors.white,danger:Vt.colors.white},border:{primary:"transparent",secondary:"#EaEaEa",danger:"#EaEaEa"},color:{primary:"#B6B8B7",secondary:"#B6B8B7",danger:"#B6B8B7"}}},_gt={no:0,thin:ee(4),small:ee(7),normal:`${ee(10)} ${ee(16)};`},bgt=Ae.button.withConfig({displayName:"ButtonStyled"})(["position:relative;display:inline-flex;align-items:center;justify-content:center;padding:",";border:"," solid ",";outline:0;background-color:",";font-size:",";font-family:",";color:",";user-select:",";pointer-events:",";cursor:pointer;transition:background-color 0.2s ease-in,border-color 0.2s ease-in ",";"," ",";",""],e=>e.$variant==="simple_text"?0:_gt[e.$space],ee(1),e=>e.$variant==="contained"||e.$variant==="outlined"?Ua.idle.border[e.$color]:"transparent",e=>e.$variant==="contained"?Ua.idle.bg[e.$color]:"transparent",ee(16),e=>e.theme.fonts.figree,e=>e.$loading?"transparent":Ua.idle.color[e.$color],e=>e.$loading?"none":"auto",e=>e.$loading?"none":"auto",e=>e.$variant==="simple_text"?",color 0.2s ease-in":"",e=>e.$oval&&Tn(["border-radius:",";"],ee(8)),e=>e.$loading&&ygt,e=>e.disabled?Tn(["cursor:not-allowed;background-color:",";color:",";",""],t=>t.$variant!=="simple_text"?Ua.disabled.bg[t.$color]:"transparent",t=>Ua.disabled.color[t.$color],t=>(t.$variant==="contained"||t.$variant==="outlined")&&Tn(["border-color:",";"],n=>Ua.disabled.border[n.$color])):Tn(["&:hover,&:focus{color:",";background-color:",";","}&:active{color:",";background-color:",";","}&:focus-visible{outline:"," solid ",";outline-width:",";outline-offset:",";}"],t=>Ua.hover.color[t.$color],t=>t.$variant!=="simple_text"?Ua.hover.bg[t.$color]:"transparent",t=>(t.$variant==="contained"||t.$variant==="outlined")&&Tn(["border-color:",";"],n=>Ua.hover.border[n.$color]),t=>Ua.pressed.color[t.$color],t=>t.$variant!=="simple_text"?Ua.pressed.bg[t.$color]:"transparent",t=>(t.$variant==="contained"||t.$variant==="outlined")&&Tn(["border-color:",";"],n=>Ua.pressed.border[n.$color]),ee(1),t=>t.theme.colors.green,ee(1),ee(0))),kgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M9 14H12C12.2651 13.9997 12.5193 13.8943 12.7068 13.7068C12.8943 13.5193 12.9997 13.2651 13 13V3C12.9997 2.73487 12.8943 2.48068 12.7068 2.2932C12.5193 2.10572 12.2651 2.00028 12 2H9C8.73487 2.00028 8.48068 2.10572 8.2932 2.2932C8.10572 2.48068 8.00028 2.73487 8 3V13C8.00028 13.2651 8.10572 13.5193 8.2932 13.7068C8.48068 13.8943 8.73487 13.9997 9 14ZM12 3V13H9V3H12Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M2.2406 8L5.2406 5L6 5.7594L3.7594 8L6 10.2406L5.2406 11L2.2406 8Z",fill:"#1F1F1F"})),wgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M7 14H4C3.73487 13.9997 3.48068 13.8943 3.2932 13.7068C3.10572 13.5193 3.00028 13.2651 3 13V3C3.00028 2.73487 3.10572 2.48068 3.2932 2.2932C3.48068 2.10572 3.73487 2.00028 4 2H7C7.26513 2.00028 7.51932 2.10572 7.7068 2.2932C7.89428 2.48068 7.99972 2.73487 8 3V13C7.99972 13.2651 7.89428 13.5193 7.7068 13.7068C7.51932 13.8943 7.26513 13.9997 7 14ZM4 3V13H7V3H4Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M13.7594 8L10.7594 5L10 5.7594L12.2406 8L10 10.2406L10.7594 11L13.7594 8Z",fill:"#1F1F1F"})),vgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M14.625 3.37992C14.3463 3.10024 14.0151 2.87833 13.6505 2.72692C13.2858 2.5755 12.8949 2.49756 12.5 2.49756C12.1052 2.49756 11.7142 2.5755 11.3496 2.72692C10.9849 2.87833 10.6537 3.10024 10.375 3.37992L11.085 4.08992C11.2712 3.90378 11.4922 3.75611 11.7354 3.65537C11.9786 3.55463 12.2393 3.50278 12.5025 3.50278C12.7658 3.50278 13.0264 3.55463 13.2697 3.65537C13.5129 3.75611 13.7339 3.90378 13.92 4.08992C14.1062 4.27607 14.2538 4.49706 14.3546 4.74028C14.4553 4.98349 14.5072 5.24417 14.5072 5.50742C14.5072 5.77068 14.4553 6.03135 14.3546 6.27457C14.2538 6.51778 14.1062 6.73878 13.92 6.92492L9.92002 10.9249C9.54473 11.3009 9.03548 11.5123 8.50428 11.5128C7.97309 11.5133 7.46346 11.3027 7.08752 10.9274C6.71157 10.5521 6.5001 10.0429 6.49964 9.51169C6.49917 8.98049 6.70973 8.47087 7.08502 8.09492L7.79002 7.38492L7.08502 6.67492L6.37502 7.38492C6.09534 7.66363 5.87343 7.99481 5.72201 8.35947C5.57059 8.72412 5.49265 9.11508 5.49265 9.50992C5.49265 9.90477 5.57059 10.2957 5.72201 10.6604C5.87343 11.025 6.09534 11.3562 6.37502 11.6349C6.94076 12.1934 7.70505 12.5045 8.50002 12.4999C8.89637 12.5016 9.28913 12.4246 9.65558 12.2736C10.022 12.1225 10.3549 11.9004 10.635 11.6199L14.635 7.61992C15.1955 7.0561 15.5093 6.29286 15.5074 5.49785C15.5055 4.70285 15.1881 3.9411 14.625 3.37992Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M2.09502 12.4099C1.90831 12.2241 1.76016 12.0032 1.65907 11.7599C1.55798 11.5167 1.50593 11.2559 1.50593 10.9924C1.50593 10.729 1.55798 10.4682 1.65907 10.2249C1.76016 9.98165 1.90831 9.76076 2.09502 9.57492L6.09502 5.57492C6.28085 5.38822 6.50174 5.24007 6.745 5.13898C6.98826 5.03788 7.24909 4.98584 7.51252 4.98584C7.77594 4.98584 8.03677 5.03788 8.28003 5.13898C8.52329 5.24007 8.74418 5.38822 8.93002 5.57492C9.11554 5.76222 9.26158 5.98486 9.35949 6.22963C9.4574 6.47441 9.50519 6.73634 9.50002 6.99992C9.50154 7.26433 9.45062 7.52641 9.35021 7.771C9.2498 8.0156 9.10188 8.23786 8.91502 8.42492L7.85502 9.49992L8.56501 10.2099L9.62502 9.14992C10.1893 8.58568 10.5063 7.82039 10.5063 7.02242C10.5063 6.22446 10.1893 5.45917 9.62502 4.89492C9.06077 4.33068 8.29548 4.01368 7.49752 4.01368C6.69955 4.01368 5.93426 4.33068 5.37002 4.89492L1.37002 8.89492C1.08958 9.17373 0.867037 9.50522 0.715177 9.87033C0.563316 10.2354 0.485138 10.627 0.485138 11.0224C0.485138 11.4179 0.563316 11.8094 0.715177 12.1745C0.867037 12.5396 1.08958 12.8711 1.37002 13.1499C1.93943 13.7042 2.70546 14.0099 3.50002 13.9999C4.30157 14.0007 5.07087 13.6843 5.64002 13.1199L4.93002 12.4099C4.74418 12.5966 4.52329 12.7448 4.28003 12.8459C4.03677 12.947 3.77594 12.999 3.51252 12.999C3.24909 12.999 2.98826 12.947 2.745 12.8459C2.50174 12.7448 2.28085 12.5966 2.09502 12.4099Z",fill:"#1F1F1F"})),xgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M14 7L14 4C13.9997 3.73487 13.8943 3.48068 13.7068 3.2932C13.5193 3.10572 13.2651 3.00028 13 3L3 3C2.73487 3.00028 2.48068 3.10572 2.2932 3.2932C2.10572 3.48068 2.00028 3.73487 2 4L2 7C2.00028 7.26513 2.10572 7.51932 2.2932 7.7068C2.48068 7.89428 2.73487 7.99972 3 8L13 8C13.2651 7.99972 13.5193 7.89428 13.7068 7.7068C13.8943 7.51932 13.9997 7.26513 14 7ZM3 4L13 4L13 7L3 7L3 4Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M8 13.7594L5 10.7594L5.7594 10L8 12.2406L10.2406 10L11 10.7594L8 13.7594Z",fill:"#1F1F1F"})),Cgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M2 9L2 12C2.00028 12.2651 2.10572 12.5193 2.2932 12.7068C2.48068 12.8943 2.73487 12.9997 3 13L13 13C13.2651 12.9997 13.5193 12.8943 13.7068 12.7068C13.8943 12.5193 13.9997 12.2651 14 12L14 9C13.9997 8.73487 13.8943 8.48068 13.7068 8.2932C13.5193 8.10572 13.2651 8.00028 13 8L3 8C2.73487 8.00028 2.48068 8.10572 2.2932 8.2932C2.10572 8.48068 2.00028 8.73487 2 9ZM13 12L3 12L3 9L13 9L13 12Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M8 2.2406L11 5.2406L10.2406 6L8 3.7594L5.7594 6L5 5.2406L8 2.2406Z",fill:"#1F1F1F"})),Sgt=e=>F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"#000000",...e},F.createElement("path",{d:"M24 24H0V0h24v24z",fill:"none",opacity:.87}),F.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"})),Dgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M7 13L7.705 12.295L3.915 8.5H14V7.5H3.915L7.705 3.705L7 3L2 8L7 13Z",fill:"#1F1F1F"})),Egt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M9 3L8.285 3.6965L12.075 7.5H2V8.5H12.075L8.285 12.2865L9 13L14 8L9 3Z",fill:"#1F1F1F"})),Tgt=e=>F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"#000000",...e},F.createElement("path",{d:"M0 0h24v24H0V0z",fill:"none"}),F.createElement("path",{d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14l-6-6z"})),Agt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M9.125 12.5H4.5V3.5H8.75C9.25108 3.50003 9.74168 3.64348 10.1639 3.91339C10.586 4.18331 10.9221 4.56842 11.1324 5.02323C11.3427 5.47803 11.4185 5.98353 11.3507 6.48001C11.283 6.97649 11.0745 7.44319 10.75 7.825C11.1739 8.16398 11.4822 8.62601 11.6327 9.14748C11.7831 9.66896 11.7682 10.2242 11.59 10.7369C11.4118 11.2495 11.0791 11.6944 10.6376 12.0101C10.1962 12.3258 9.66773 12.497 9.125 12.5ZM6 11H9.115C9.26274 11 9.40903 10.9709 9.54552 10.9144C9.68201 10.8578 9.80603 10.775 9.91049 10.6705C10.015 10.566 10.0978 10.442 10.1544 10.3055C10.2109 10.169 10.24 10.0227 10.24 9.875C10.24 9.72726 10.2109 9.58097 10.1544 9.44448C10.0978 9.30799 10.015 9.18397 9.91049 9.0795C9.80603 8.97504 9.68201 8.89217 9.54552 8.83564C9.40903 8.7791 9.26274 8.75 9.115 8.75H6V11ZM6 7.25H8.75C8.89774 7.25 9.04403 7.2209 9.18052 7.16436C9.31701 7.10783 9.44103 7.02496 9.5455 6.9205C9.64996 6.81603 9.73283 6.69201 9.78936 6.55552C9.8459 6.41903 9.875 6.27274 9.875 6.125C9.875 5.97726 9.8459 5.83097 9.78936 5.69448C9.73283 5.55799 9.64996 5.43397 9.5455 5.3295C9.44103 5.22504 9.31701 5.14217 9.18052 5.08564C9.04403 5.0291 8.89774 5 8.75 5H6V7.25Z",fill:"#1F1F1F"})),zgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M3.5 6C4.32843 6 5 5.32843 5 4.5C5 3.67157 4.32843 3 3.5 3C2.67157 3 2 3.67157 2 4.5C2 5.32843 2.67157 6 3.5 6Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M3.5 13C4.32843 13 5 12.3284 5 11.5C5 10.6716 4.32843 10 3.5 10C2.67157 10 2 10.6716 2 11.5C2 12.3284 2.67157 13 3.5 13Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M15 11H8V12H15V11Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M15 4H8V5H15V4Z",fill:"#1F1F1F"})),Fgt=e=>F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"#000000",...e},F.createElement("path",{d:"M0 0h24v24H0V0z",fill:"none"}),F.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"})),$gt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M15.5 8.00002L12 11.5L11.295 10.795L14.085 8.00002L11.295 5.20502L12 4.50002L15.5 8.00002Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M0.5 8.00002L4 4.50002L4.705 5.20502L1.915 8.00002L4.705 10.795L4 11.5L0.5 8.00002Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M8.81944 3.00049L6.20925 12.7418L7.17518 13.0007L9.78537 3.25931L8.81944 3.00049Z",fill:"#1F1F1F"})),Mgt=e=>F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"#000000",...e},F.createElement("path",{d:"M0 0h24v24H0V0z",fill:"none"}),F.createElement("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"})),Ogt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M13.5 1.5H2.5C2.23478 1.5 1.98043 1.60536 1.79289 1.79289C1.60536 1.98043 1.5 2.23478 1.5 2.5V13.5C1.5 13.7652 1.60536 14.0196 1.79289 14.2071C1.98043 14.3946 2.23478 14.5 2.5 14.5H13.5C13.7652 14.5 14.0196 14.3946 14.2071 14.2071C14.3946 14.0196 14.5 13.7652 14.5 13.5V2.5C14.5 2.23478 14.3946 1.98043 14.2071 1.79289C14.0196 1.60536 13.7652 1.5 13.5 1.5ZM13.5 2.5V4.5H2.5V2.5H13.5ZM8.5 5.5H13.5V9H8.5V5.5ZM7.5 9H2.5V5.5H7.5V9ZM2.5 10H7.5V13.5H2.5V10ZM8.5 13.5V10H13.5V13.5H8.5Z",fill:"#1F1F1F"})),Ngt=e=>F.createElement("svg",{width:230,height:231,viewBox:"0 0 230 231",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("g",{clipPath:"url(#clip0_601_5062)"},F.createElement("rect",{width:230,height:230.753,rx:115,fill:"#F6F6F6",className:"green"}),F.createElement("path",{d:"M163.333 173H66.6667C64.1037 172.997 61.6465 171.978 59.8343 170.166C58.022 168.353 57.0027 165.896 57 163.333V90.8333C57.0027 88.2704 58.022 85.8132 59.8343 84.0009C61.6465 82.1887 64.1037 81.1694 66.6667 81.1667H94.0548C96.1468 81.1701 98.182 81.8481 99.8581 83.1L116.612 95.6667H163.333C165.896 95.6694 168.353 96.6887 170.166 98.5009C171.978 100.313 172.997 102.77 173 105.333V163.333C172.997 165.896 171.978 168.353 170.166 170.166C168.353 171.978 165.896 172.997 163.333 173ZM94.0548 90.8333H66.6594L66.6667 163.333H163.333V105.333H113.388L94.0548 90.8333Z",fill:"#D9D9D9",className:"secondary-light-green"}),F.createElement("path",{d:"M173 81.1667H123.055L103.721 66.6667H66.6667V57H103.721C105.813 57.0034 107.849 57.6814 109.525 58.9333L126.279 71.5H173V81.1667Z",fill:"#D9D9D9",className:"secondary-light-green"}),F.createElement("path",{d:"M66.6667 163.333V90.833H95.6667L115 105.333H163.333V163.333H66.6667Z",fill:"#EAECEB",className:"light-green"}),F.createElement("rect",{x:132,y:129,width:62,height:62,rx:31,fill:"#BABABA"}),F.createElement("rect",{x:132,y:129,width:62,height:62,rx:31,stroke:"#F6F6F6",strokeWidth:4,className:"green"}),F.createElement("path",{d:"M151.125 162.875L152.799 164.549L161.812 155.548V177.125H164.188V155.548L173.201 164.549L174.875 162.875L163 151L151.125 162.875Z",fill:"white"}),F.createElement("path",{d:"M151.125 151V146.25H174.875V151H177.25V146.25C177.25 145.62 177 145.016 176.554 144.571C176.109 144.125 175.505 143.875 174.875 143.875H151.125C150.495 143.875 149.891 144.125 149.446 144.571C149 145.016 148.75 145.62 148.75 146.25V151H151.125Z",fill:"white"})),F.createElement("defs",null,F.createElement("clipPath",{id:"clip0_601_5062"},F.createElement("rect",{width:230,height:230.753,rx:115,fill:"white"})))),Lgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M7 6H6V12H7V6Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M10 6H9V12H10V6Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M2 3V4H3V14C3 14.2652 3.10536 14.5196 3.29289 14.7071C3.48043 14.8946 3.73478 15 4 15H12C12.2652 15 12.5196 14.8946 12.7071 14.7071C12.8946 14.5196 13 14.2652 13 14V4H14V3H2ZM4 14V4H12V14H4Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M10 1H6V2H10V1Z",fill:"#1F1F1F"})),Igt=e=>F.createElement("svg",{width:10,height:14,viewBox:"0 0 10 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M9.85 3.65L6.35 0.15C6.25 0.05 6.15 0 6 0H1C0.45 0 0 0.45 0 1V13C0 13.55 0.45 14 1 14H9C9.55 14 10 13.55 10 13V4C10 3.85 9.95 3.75 9.85 3.65ZM6 1.2L8.8 4H6V1.2ZM9 13H1V1H5V4C5 4.55 5.45 5 6 5H9V13Z",fill:"#1F1F1F",fillOpacity:.8}),F.createElement("path",{d:"M8 10H2V11H8V10Z",fill:"#1F1F1F",fillOpacity:.8}),F.createElement("path",{d:"M8 7H2V8H8V7Z",fill:"#1F1F1F",fillOpacity:.8})),Bgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M13 12V14H3V12H2V14C2 14.2652 2.10536 14.5196 2.29289 14.7071C2.48043 14.8946 2.73478 15 3 15H13C13.2652 15 13.5196 14.8946 13.7071 14.7071C13.8946 14.5196 14 14.2652 14 14V12H13Z",fill:"#1F1F1F",fillOpacity:.8}),F.createElement("path",{d:"M13 7L12.295 6.295L8.5 10.085V1H7.5V10.085L3.705 6.295L3 7L8 12L13 7Z",fill:"#1F1F1F",fillOpacity:.8})),Rgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M15 13H1V14H15V13Z"}),F.createElement("path",{d:"M12.7 4.5C13.1 4.1 13.1 3.5 12.7 3.1L10.9 1.3C10.5 0.9 9.9 0.9 9.5 1.3L2 8.8V12H5.2L12.7 4.5ZM10.2 2L12 3.8L10.5 5.3L8.7 3.5L10.2 2ZM3 11V9.2L8 4.2L9.8 6L4.8 11H3Z"})),Pgt=e=>F.createElement("svg",{width:15,height:16,viewBox:"0 0 15 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M3.42849 11.6735H0.91427V0.898103H4.57135V3.59195C4.57205 3.82989 4.6686 4.05788 4.83991 4.22613C5.01122 4.39438 5.24336 4.48921 5.48562 4.4899H8.22843V5.14293H9.1427V3.59195C9.14434 3.53294 9.13293 3.47428 9.10925 3.42002C9.08558 3.36577 9.0502 3.3172 9.00556 3.27767L5.80562 0.134847C5.76538 0.0909946 5.71593 0.0562419 5.66068 0.0329874C5.60543 0.00973299 5.54571 -0.00146916 5.48562 0.000154323H0.91427C0.672006 0.000841363 0.439864 0.095667 0.268556 0.263916C0.0972487 0.432166 0.000699528 0.660163 0 0.898103V11.6735C0.000699528 11.9114 0.0972487 12.1394 0.268556 12.3077C0.439864 12.4759 0.672006 12.5707 0.91427 12.5714H3.42849V11.6735ZM5.48562 1.07769L8.04558 3.59195H5.48562V1.07769Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M10.8324 10.1869C11.0977 10.1869 11.3571 10.1082 11.5778 9.96079C11.7984 9.81337 11.9703 9.60384 12.0719 9.35869C12.1734 9.11354 12.2 8.84379 12.1482 8.58354C12.0965 8.32329 11.9687 8.08424 11.7811 7.89661C11.5934 7.70899 11.3544 7.58121 11.0941 7.52944C10.8339 7.47768 10.5641 7.50424 10.319 7.60579C10.0738 7.70733 9.86431 7.87929 9.71689 8.09992C9.56947 8.32054 9.49079 8.57993 9.49079 8.84528C9.49118 9.20098 9.63265 9.54199 9.88417 9.79351C10.1357 10.045 10.4767 10.1865 10.8324 10.1869ZM10.8324 8.39807C10.9209 8.39807 11.0073 8.4243 11.0809 8.47344C11.1544 8.52258 11.2117 8.59242 11.2456 8.67414C11.2794 8.75586 11.2883 8.84577 11.271 8.93252C11.2538 9.01927 11.2112 9.09896 11.1486 9.1615C11.0861 9.22404 11.0064 9.26663 10.9196 9.28389C10.8329 9.30115 10.743 9.29229 10.6613 9.25844C10.5795 9.22459 10.5097 9.16727 10.4606 9.09373C10.4114 9.02019 10.3852 8.93373 10.3852 8.84528C10.3853 8.72671 10.4325 8.61302 10.5163 8.52917C10.6001 8.44533 10.7138 8.39818 10.8324 8.39807Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M13.9628 5.71484H5.46594C5.22882 5.71514 5.0015 5.80947 4.83383 5.97714C4.66616 6.14481 4.57183 6.37213 4.57153 6.60925V15.1061C4.57183 15.3433 4.66616 15.5706 4.83383 15.7383C5.0015 15.9059 5.22882 16.0003 5.46594 16.0006H13.9628C14.2 16.0003 14.4273 15.9059 14.595 15.7383C14.7626 15.5706 14.857 15.3433 14.8572 15.1061V6.60925C14.857 6.37213 14.7626 6.14481 14.595 5.97714C14.4273 5.80947 14.2 5.71514 13.9628 5.71484ZM13.9628 15.1061H5.46594V12.4229L7.25476 10.6354L9.7528 13.1335C9.92054 13.3012 10.148 13.3954 10.3852 13.3954C10.6224 13.3954 10.8499 13.3012 11.0176 13.1335L11.7268 12.4244L13.9628 14.6589V15.1061ZM13.9628 13.3942L12.3592 11.7905C12.1915 11.6228 11.964 11.5286 11.7268 11.5286C11.4896 11.5286 11.2621 11.6228 11.0944 11.7905L10.3852 12.4998L7.88716 10.0017C7.71942 9.834 7.49195 9.73979 7.25476 9.73979C7.01758 9.73979 6.7901 9.834 6.62237 10.0017L5.46594 11.1582V6.60925H13.9628V13.3942Z",fill:"#1F1F1F"})),jgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M13 14H3C2.73489 13.9996 2.48075 13.8942 2.29329 13.7067C2.10583 13.5193 2.00036 13.2651 2 13V3C2.00036 2.73489 2.10583 2.48075 2.29329 2.29329C2.48075 2.10583 2.73489 2.00036 3 2H8V3H3V13H13V8H14V13C13.9996 13.2651 13.8942 13.5193 13.7067 13.7067C13.5193 13.8942 13.2651 13.9996 13 14Z",fill:"white"}),F.createElement("path",{d:"M10 1V2H13.293L9 6.293L9.707 7L14 2.707V6H15V1H10Z",fill:"white"})),Vgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M11 10.5H12L8.5 2H7.5L4 10.5H5L5.805 8.5H10.175L11 10.5ZM6.215 7.5L7.935 3.315H8.065L9.77 7.5H6.215Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M13 12H3V14H13V12Z",fill:"#1F1F1F"})),qgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M0.721663 9.66287L5.14986 1.75569C5.23829 1.59779 5.40514 1.5 5.58611 1.5H10.4139C10.5949 1.5 10.7617 1.59779 10.8501 1.75569L15.2783 9.66287C15.3665 9.8203 15.363 10.013 15.2692 10.1672L12.8651 14.1164C12.7744 14.2654 12.6125 14.3564 12.438 14.3564H3.56197C3.38748 14.3564 3.22561 14.2654 3.13488 14.1164L0.730821 10.1672C0.636994 10.013 0.633495 9.8203 0.721663 9.66287Z",stroke:"black",strokeLinecap:"round",strokeLinejoin:"round"}),F.createElement("path",{d:"M15 10.0009L6 10.0009",stroke:"black",strokeLinejoin:"round"}),F.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.68694 10.0011H10.8331L5.93625 1.25676L5.06375 1.74536L9.68694 10.0011Z",fill:"black"}),F.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.92744 5.57123L3.06375 14.2564L3.93625 14.745L8.50924 6.57895L7.92744 5.57123Z",fill:"black"})),Hgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M12.5 4.5V3.5H6V4.5H8.57L6.385 11.5H3.5V12.5H10V11.5H7.43L9.615 4.5H12.5Z",fill:"#1F1F1F"})),Ugt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M13 8.99999H12L11 10.9485L10 8.99999H9L10.4525 11.5L9 14H10L11 12.1005L12 14H13L11.549 11.5L13 8.99999Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M9.5 2.99999V1.99999H6.95665C6.7068 1.9989 6.46567 2.09181 6.28117 2.26029C6.09666 2.42876 5.98226 2.66047 5.9607 2.90939L5.6343 6.49999H3.5V7.49999H5.54335L5.04335 13H2.5V14H5.04335C5.2932 14.0011 5.53433 13.9082 5.71883 13.7397C5.90334 13.5712 6.01774 13.3395 6.0393 13.0906L6.5476 7.49999H9V6.49999H6.63845L6.95665 2.99999H9.5Z",fill:"#1F1F1F"})),Wgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M14 9H11C10.7349 9.0003 10.4807 9.10576 10.2932 9.29323C10.1058 9.4807 10.0003 9.73488 10 10V11H7.20707L5.00002 8.79295V6H6.00002C6.26514 5.9997 6.51932 5.89424 6.70679 5.70677C6.89426 5.5193 6.99971 5.26512 7.00002 5V2C6.99971 1.73488 6.89426 1.4807 6.70679 1.29323C6.51932 1.10576 6.26514 1.0003 6.00002 1H3.00002C2.73489 1.0003 2.48072 1.10576 2.29325 1.29323C2.10578 1.4807 2.00032 1.73488 2.00002 2V5C2.00032 5.26512 2.10578 5.5193 2.29325 5.70677C2.48072 5.89424 2.73489 5.9997 3.00002 6H4.00002V8.79295L1.64652 11.1465C1.60007 11.1929 1.56322 11.248 1.53808 11.3087C1.51294 11.3693 1.5 11.4343 1.5 11.5C1.5 11.5657 1.51294 11.6307 1.53808 11.6913C1.56322 11.752 1.60007 11.8071 1.64652 11.8535L4.14652 14.3535C4.19293 14.3999 4.24804 14.4368 4.30869 14.4619C4.36935 14.4871 4.43436 14.5 4.50002 14.5C4.56568 14.5 4.63069 14.4871 4.69134 14.4619C4.752 14.4368 4.80711 14.3999 4.85352 14.3535L7.20707 12H10V13C10.0003 13.2651 10.1058 13.5193 10.2932 13.7068C10.4807 13.8942 10.7349 13.9997 11 14H14C14.2651 13.9997 14.5193 13.8942 14.7068 13.7068C14.8943 13.5193 14.9997 13.2651 15 13V10C14.9997 9.73488 14.8943 9.4807 14.7068 9.29323C14.5193 9.10576 14.2651 9.0003 14 9ZM3.00002 2H6.00002V5H3.00002V2ZM4.50002 13.2929L2.70707 11.5L4.50002 9.70705L6.29297 11.5L4.50002 13.2929ZM11 13V10H14V13H11Z",fill:"#1F1F1F"})),Ggt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M15 11H8V12H15V11Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M15 4H8V5H15V4Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M4 6V2H3V2.5H2V3.5H3V6H2V7H5V6H4Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M5 14H2V12C2 11.7348 2.10536 11.4804 2.29289 11.2929C2.48043 11.1054 2.73478 11 3 11H4V10H2V9H4C4.26522 9 4.51957 9.10536 4.70711 9.29289C4.89464 9.48043 5 9.73478 5 10V11C5 11.2652 4.89464 11.5196 4.70711 11.7071C4.51957 11.8946 4.26522 12 4 12H3V13H5V14Z",fill:"#1F1F1F"})),Kgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M13.5 2H6.5C5.57174 2 4.6815 2.36875 4.02513 3.02513C3.36875 3.6815 3 4.57174 3 5.5C3 6.42826 3.36875 7.3185 4.02513 7.97487C4.6815 8.63125 5.57174 9 6.5 9V14H7.5V3H10V14H11V3H13.5V2ZM6.5 8C5.83696 8 5.20107 7.73661 4.73223 7.26777C4.26339 6.79893 4 6.16304 4 5.5C4 4.83696 4.26339 4.20107 4.73223 3.73223C5.20107 3.26339 5.83696 3 6.5 3V8Z",fill:"#1F1F1F"})),Ygt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M6 5H12.0926L10.2989 3.20705L11 2.5L14 5.5L11 8.5L10.2989 7.7927L12.0911 6H6C5.20435 6 4.44129 6.31607 3.87868 6.87868C3.31607 7.44129 3 8.20435 3 9C3 9.79565 3.31607 10.5587 3.87868 11.1213C4.44129 11.6839 5.20435 12 6 12H10V13H6C4.93913 13 3.92172 12.5786 3.17157 11.8284C2.42143 11.0783 2 10.0609 2 9C2 7.93913 2.42143 6.92172 3.17157 6.17157C3.92172 5.42143 4.93913 5 6 5Z"})),Zgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M8 5C8.55228 5 9 4.55228 9 4C9 3.44772 8.55228 3 8 3C7.44772 3 7 3.44772 7 4C7 4.55228 7.44772 5 8 5Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M8 9C8.55228 9 9 8.55228 9 8C9 7.44772 8.55228 7 8 7C7.44772 7 7 7.44772 7 8C7 8.55228 7.44772 9 8 9Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M8 13C8.55228 13 9 12.5523 9 12C9 11.4477 8.55228 11 8 11C7.44772 11 7 11.4477 7 12C7 12.5523 7.44772 13 8 13Z",fill:"#1F1F1F"})),Xgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M14 7.49997H8.97815C8.75205 7.43812 8.5263 7.38377 8.3091 7.33237C6.90525 7.00032 6.1111 6.75707 6.1111 5.62082C6.09969 5.42464 6.12871 5.22821 6.19636 5.04372C6.26402 4.85923 6.36887 4.6906 6.5044 4.54832C6.92919 4.19898 7.46128 4.00653 8.01125 4.00332C9.4258 3.96832 10.0786 4.44802 10.6118 5.17832L11.4194 4.58872C11.0415 4.04583 10.5262 3.61301 9.92623 3.33448C9.32623 3.05595 8.66305 2.94171 8.00445 3.00342C7.19545 3.00858 6.41503 3.3032 5.80445 3.83397C5.57305 4.06868 5.39217 4.34831 5.27297 4.6556C5.15376 4.9629 5.09876 5.29135 5.11135 5.62072C5.08943 5.98122 5.15717 6.34155 5.30852 6.66948C5.45986 6.99742 5.6901 7.28274 5.97865 7.49997H2V8.49997H8.82595C9.80935 8.78497 10.3975 9.15612 10.4126 10.1789C10.4288 10.3975 10.3988 10.617 10.3245 10.8231C10.2503 11.0293 10.1334 11.2175 9.98145 11.3755C9.4524 11.7925 8.79512 12.0132 8.1216 12C7.61884 11.9854 7.12598 11.8567 6.6803 11.6235C6.23462 11.3904 5.84778 11.059 5.54905 10.6544L4.78245 11.2965C5.17082 11.814 5.67191 12.2364 6.24773 12.5315C6.82356 12.8267 7.45902 12.9869 8.10595 13C8.11035 12.9994 8.12695 13 8.15595 13C9.07935 13.0106 9.97558 12.6877 10.68 12.0906C10.93 11.8385 11.1243 11.5368 11.2505 11.205C11.3766 10.8731 11.4318 10.5185 11.4124 10.164C11.4311 9.55765 11.2266 8.96551 10.8377 8.49997H14V7.49997Z",fill:"#1F1F1F"})),Jgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 4V8.5V13H3V9H7V13H8V4H7V8H3V4H2ZM11.0811 12.12C11.0992 12.0472 11.1222 11.9772 11.15 11.91C11.2367 11.71 11.3567 11.5267 11.51 11.36C11.6633 11.1933 11.8367 11.04 12.03 10.9L13.28 9.96C13.6733 9.65333 13.9733 9.33667 14.18 9.01C14.3933 8.68333 14.5 8.32667 14.5 7.94C14.5 7.54 14.4033 7.18667 14.21 6.88C14.0167 6.56667 13.7433 6.32333 13.39 6.15C13.0433 5.97 12.63 5.88 12.15 5.88C11.73 5.88 11.3533 5.96333 11.02 6.13C10.6867 6.29 10.4133 6.50333 10.2 6.77C9.98667 7.03667 9.84333 7.32333 9.77 7.63L10.78 7.82C10.8333 7.64 10.9233 7.47 11.05 7.31C11.1767 7.15 11.3333 7.02333 11.52 6.93C11.7133 6.83 11.9367 6.78 12.19 6.78C12.4567 6.78 12.6867 6.83333 12.88 6.94C13.0733 7.04 13.2233 7.18 13.33 7.36C13.4367 7.53333 13.49 7.72667 13.49 7.94C13.49 8.1 13.45 8.26333 13.37 8.43C13.2967 8.59 13.1933 8.74667 13.06 8.9C12.9333 9.04667 12.79 9.17667 12.63 9.29L11.28 10.29C11.0267 10.4767 10.8067 10.68 10.62 10.9C10.44 11.12 10.3 11.3433 10.2 11.57C10.1067 11.79 10.06 12.0033 10.06 12.21V13H14.59V12.12H11.0811Z",fill:"black"})),Qgt=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M13 3H3V4H13V3Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M11 6H5V7H11V6Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M13 9H3V10H13V9Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M11 12H5V13H11V12Z",fill:"#1F1F1F"})),e1t=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M13 3H6V4H13V3Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M11 6H6V7H11V6Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M13 9H6V10H13V9Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M11 12H6V13H11V12Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M4 2H3V14H4V2Z",fill:"#1F1F1F"})),t1t=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M10 3H3V4H10V3Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M10 6H5V7H10V6Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M10 9H3V10H10V9Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M10 12H5V13H10V12Z",fill:"#1F1F1F"}),F.createElement("path",{d:"M13 2H12V14H13V2Z",fill:"#1F1F1F"})),n1t=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 4V8.5V13H3V9H7V13H8V4H7V8H3V4H2ZM11.6088 7.29307L11.6 13H12.56L12.57 6H11.7092L11.7 5.99C11.5467 6.16333 11.37 6.33 11.17 6.49C10.97 6.65 10.77 6.78 10.57 6.88C10.3767 6.98 10.2067 7.02667 10.06 7.02V7.91C10.3267 7.92333 10.5867 7.87333 10.84 7.76C11.1 7.64667 11.3533 7.49333 11.6 7.3C11.6029 7.29769 11.6059 7.29539 11.6088 7.29307Z",fill:"black"})),r1t=e=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},F.createElement("path",{d:"M10 5H3.90745L5.70115 3.20705L5 2.5L2 5.5L5 8.5L5.70115 7.7927L3.90895 6H10C10.7956 6 11.5587 6.31607 12.1213 6.87868C12.6839 7.44129 13 8.20435 13 9C13 9.79565 12.6839 10.5587 12.1213 11.1213C11.5587 11.6839 10.7956 12 10 12H6V13H10C11.0609 13 12.0783 12.5786 12.8284 11.8284C13.5786 11.0783 14 10.0609 14 9C14 7.93913 13.5786 6.92172 12.8284 6.17157C12.0783 5.42143 11.0609 5 10 5Z"})),i1t={redo:Ygt,undo:r1t,bold:Agt,italic:Hgt,copy:Mgt,strikethrough:Xgt,bulleted_list:zgt,numbered_list:Ggt,add_link:vgt,embed_image:Pgt,code_block:$gt,create_table:Ogt,arrow_down:Sgt,arrow_top:Tgt,delete:Lgt,text_align_left:e1t,text_align_right:t1t,text_align_center:Qgt,arrow_left:Dgt,arrow_right:Egt,edit:Rgt,export:jgt,d_a_d_file:Ngt,close:Fgt,mermaid:Wgt,math:Ugt,title:n1t,subtitle:Jgt,paragraph:Kgt,format_dropdown:Vgt,settings:Zgt,google:qgt,add_row_top:Cgt,add_row_bottom:xgt,add_column_left:kgt,add_column_right:wgt,document:Igt,download:Bgt},ut=({icon:e,fill:t="#1F1F1F",width:n=18,height:r=18,...i})=>{const a=F.useMemo(()=>i1t[e],[e]);return a&&j(a,{width:n,height:r,fill:t,...i})};var oU={},sU={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i<arguments.length;i++){var a=arguments[i];if(a){var o=typeof a;if(o==="string"||o==="number")r.push(a);else if(Array.isArray(a)){if(a.length){var s=n.apply(null,a);s&&r.push(s)}}else if(o==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){r.push(a.toString());continue}for(var l in a)t.call(a,l)&&a[l]&&r.push(l)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(oU);var a1t=oU.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(F),n=r(a1t);function r(_){return _&&_.__esModule?_:{default:_}}function i(){if(typeof WeakMap!="function")return null;var _=new WeakMap;return i=function(){return _},_}function a(_){if(_&&_.__esModule)return _;if(_===null||o(_)!=="object"&&typeof _!="function")return{default:_};var T=i();if(T&&T.has(_))return T.get(_);var $={},R=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in _)if(Object.prototype.hasOwnProperty.call(_,O)){var G=R?Object.getOwnPropertyDescriptor(_,O):null;G&&(G.get||G.set)?Object.defineProperty($,O,G):$[O]=_[O]}return $.default=_,T&&T.set(_,$),$}function o(_){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function($){return typeof $}:o=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},o(_)}function s(){return s=Object.assign||function(_){for(var T=1;T<arguments.length;T++){var $=arguments[T];for(var R in $)Object.prototype.hasOwnProperty.call($,R)&&(_[R]=$[R])}return _},s.apply(this,arguments)}function l(_,T){var $=Object.keys(_);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(_);T&&(R=R.filter(function(O){return Object.getOwnPropertyDescriptor(_,O).enumerable})),$.push.apply($,R)}return $}function c(_){for(var T=1;T<arguments.length;T++){var $=arguments[T]!=null?arguments[T]:{};T%2?l($,!0).forEach(function(R){u(_,R,$[R])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors($)):l($).forEach(function(R){Object.defineProperty(_,R,Object.getOwnPropertyDescriptor($,R))})}return _}function u(_,T,$){return T in _?Object.defineProperty(_,T,{value:$,enumerable:!0,configurable:!0,writable:!0}):_[T]=$,_}function f(_,T){if(!(_ instanceof T))throw new TypeError("Cannot call a class as a function")}function h(_,T){for(var $=0;$<T.length;$++){var R=T[$];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(_,R.key,R)}}function m(_,T,$){return T&&h(_.prototype,T),$&&h(_,$),_}function g(_,T){return T&&(o(T)==="object"||typeof T=="function")?T:C(_)}function b(_){return b=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},b(_)}function C(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function w(_,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(T&&T.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),T&&k(_,T)}function k(_,T){return k=Object.setPrototypeOf||function(R,O){return R.__proto__=O,R},k(_,T)}var S="Select...",E=function(_){w(T,_);function T($){var R;return f(this,T),R=g(this,b(T).call(this,$)),R.state={selected:R.parseValue($.value,$.options)||{label:typeof $.placeholder>"u"?S:$.placeholder,value:""},isOpen:!1},R.dropdownRef=(0,t.createRef)(),R.mounted=!0,R.handleDocumentClick=R.handleDocumentClick.bind(C(R)),R.fireChangeEvent=R.fireChangeEvent.bind(C(R)),R}return m(T,[{key:"componentDidUpdate",value:function(R){if(this.props.value!==R.value)if(this.props.value){var O=this.parseValue(this.props.value,this.props.options);O!==this.state.selected&&this.setState({selected:O})}else this.setState({selected:{label:typeof this.props.placeholder>"u"?S:this.props.placeholder,value:""}})}},{key:"componentDidMount",value:function(){document.addEventListener("click",this.handleDocumentClick,!1),document.addEventListener("touchend",this.handleDocumentClick,!1)}},{key:"componentWillUnmount",value:function(){this.mounted=!1,document.removeEventListener("click",this.handleDocumentClick,!1),document.removeEventListener("touchend",this.handleDocumentClick,!1)}},{key:"handleMouseDown",value:function(R){this.props.onFocus&&typeof this.props.onFocus=="function"&&this.props.onFocus(this.state.isOpen),!(R.type==="mousedown"&&R.button!==0)&&(R.stopPropagation(),R.preventDefault(),this.props.disabled||this.setState({isOpen:!this.state.isOpen}))}},{key:"parseValue",value:function(R,O){var G;if(typeof R=="string")for(var V=0,Z=O.length;V<Z;V++)if(O[V].type==="group"){var W=O[V].items.filter(function(Y){return Y.value===R});W.length&&(G=W[0])}else typeof O[V].value<"u"&&O[V].value===R&&(G=O[V]);return G||R}},{key:"setValue",value:function(R,O){var G={selected:{value:R,label:O},isOpen:!1};this.fireChangeEvent(G),this.setState(G)}},{key:"fireChangeEvent",value:function(R){R.selected!==this.state.selected&&this.props.onChange&&this.props.onChange(R.selected)}},{key:"renderOption",value:function(R){var O,G=R.value;typeof G>"u"&&(G=R.label||R);var V=R.label||R.value||R,Z=G===this.state.selected.value||G===this.state.selected,W=(O={},u(O,"".concat(this.props.baseClassName,"-option"),!0),u(O,R.className,!!R.className),u(O,"is-selected",Z),O),Y=(0,n.default)(W),fe=Object.keys(R.data||{}).reduce(function(ae,Q){return c({},ae,u({},"data-".concat(Q),R.data[Q]))},{});return t.default.createElement("div",s({key:G,className:Y,onMouseDown:this.setValue.bind(this,G,V),onClick:this.setValue.bind(this,G,V),role:"option","aria-selected":Z?"true":"false"},fe),V)}},{key:"buildMenu",value:function(){var R=this,O=this.props,G=O.options,V=O.baseClassName,Z=G.map(function(W){if(W.type==="group"){var Y=t.default.createElement("div",{className:"".concat(V,"-title")},W.name),fe=W.items.map(function(ae){return R.renderOption(ae)});return t.default.createElement("div",{className:"".concat(V,"-group"),key:W.name,role:"listbox",tabIndex:"-1"},Y,fe)}else return R.renderOption(W)});return Z.length?Z:t.default.createElement("div",{className:"".concat(V,"-noresults")},"No options found")}},{key:"handleDocumentClick",value:function(R){this.mounted&&(this.dropdownRef.current.contains(R.target)||this.state.isOpen&&this.setState({isOpen:!1}))}},{key:"isValueSelected",value:function(){return typeof this.state.selected=="string"||this.state.selected.value!==""}},{key:"render",value:function(){var R,O,G,V,Z,W=this.props,Y=W.baseClassName,fe=W.controlClassName,ae=W.placeholderClassName,Q=W.menuClassName,ce=W.arrowClassName,L=W.arrowClosed,de=W.arrowOpen,ue=W.className,I=this.props.disabled?"Dropdown-disabled":"",be=typeof this.state.selected=="string"?this.state.selected:this.state.selected.label,ze=(0,n.default)((R={},u(R,"".concat(Y,"-root"),!0),u(R,ue,!!ue),u(R,"is-open",this.state.isOpen),R)),J=(0,n.default)((O={},u(O,"".concat(Y,"-control"),!0),u(O,fe,!!fe),u(O,I,!!I),O)),Ve=(0,n.default)((G={},u(G,"".concat(Y,"-placeholder"),!0),u(G,ae,!!ae),u(G,"is-selected",this.isValueSelected()),G)),ye=(0,n.default)((V={},u(V,"".concat(Y,"-menu"),!0),u(V,Q,!!Q),V)),We=(0,n.default)((Z={},u(Z,"".concat(Y,"-arrow"),!0),u(Z,ce,!!ce),Z)),Pe=t.default.createElement("div",{className:Ve},be),Ge=this.state.isOpen?t.default.createElement("div",{className:ye,"aria-expanded":"true"},this.buildMenu()):null;return t.default.createElement("div",{ref:this.dropdownRef,className:ze},t.default.createElement("div",{className:J,onMouseDown:this.handleMouseDown.bind(this),onTouchEnd:this.handleMouseDown.bind(this),"aria-haspopup":"listbox"},Pe,t.default.createElement("div",{className:"".concat(Y,"-arrow-wrapper")},de&&L?this.state.isOpen?de:L:t.default.createElement("span",{className:We}))),Ge)}}]),T}(t.Component);E.defaultProps={baseClassName:"Dropdown"};var A=E;e.default=A})(aU);const o1t=Qo(aU),sU=e=>j(s1t,{...e,arrowClosed:j(ut,{icon:"arrow_down"}),arrowOpen:j(ut,{icon:"arrow_top"})}),s1t=Ae(o1t).withConfig({displayName:"SelectStyled"})(["&&&{min-width:",";font-size:",";.Dropdown-option{padding:"," ",";}.Dropdown-control{display:flex;align-items:center;justify-content:space-between;padding:"," ",";border-radius:",";.Dropdown-arrow-wrapper{display:flex;align-items:center;margin-left:",";}}.Dropdown-menu{border-radius:",";}}"],ee(130),ee(14),ee(8),ee(10),ee(6),ee(12),ee(8),ee(8),ee(8)),Xv=()=>{const e=F.useCallback(n=>{Pi.error(n,{position:"bottom-center"})},[]),t=F.useCallback(n=>{Pi.success(n,{position:"bottom-center"})},[]);return{onErrorNotification:e,onSuccessNotification:t}};function am(e,t){return{match:(n,r)=>n===e?am(e,r()):am(e,t),matchMany:(n,r)=>n.includes(e)?am(e,r()):am(e,t),get:()=>t,getOrElse:n=>t??n()}}const qp=e=>am(e),S6=[{value:"r",label:"R"},{value:"python",label:"Python"},{value:"c",label:"C"},{value:"java",label:"Java"},{value:"json",label:"JSON"}],l1t=()=>{const{mode:e}=ta(),{onSuccessNotification:t}=Xv(),{contentRef:n,node:r,setAttrs:i}=es(),a=c=>{c.preventDefault(),t("Code snippet copied to clipboard!"),navigator.clipboard.writeText(r.textContent)},o=({value:c})=>{i({language:c})},s=F.useMemo(()=>{var c;return((c=S6.find(u=>u.value===r.attrs.language))==null?void 0:c.value)||"text"},[r]),l=F.useMemo(()=>{var c;return((c=S6.find(u=>u.value===s))==null?void 0:c.label)||"Text"},[s]);return He(c1t,{children:[He(u1t,{children:[qp(e).match("active",()=>j(sU,{value:s,options:S6,onChange:o})).match("preview",()=>j(f1t,{children:l})).get(),He(h1t,{oval:!0,onClick:a,color:"secondary",children:[j(ut,{icon:"copy"}),j(d1t,{children:"Copy"})]})]}),j("pre",{children:j(mgt,{ref:n})})]})},c1t=Ae.div.withConfig({displayName:"CodeBlockNodeContainerStyled"})(["margin:"," 0;padding:",";font-size:",";line-height:",";background-color:",";border:1px solid ",";border-radius:",";*{font-family:",";}"],ee(16),ee(16),ee(16),ee(22),e=>e.theme.colors.lightAzure,e=>e.theme.colors.azure,ee(8),e=>e.theme.fonts.secondary),u1t=Ae.div.withConfig({displayName:"CodeBlockNodeActionsStyled"})(["display:flex;align-items:center;justify-content:space-between;margin-bottom:",";"],ee(16)),d1t=Ae.span.withConfig({displayName:"CopyTextStyled"})(["margin-left:",";"],ee(5)),f1t=Ae.span.withConfig({displayName:"LanguageLabelStyled"})(["padding:"," ",";background-color:",";border-radius:",";"],ee(7),ee(12),e=>e.theme.colors.azure,ee(8)),h1t=Ae(Xt).withConfig({displayName:"CopyButtonStyled"})(["&:hover,&:focus{background-color:",";}"],e=>e.theme.colors.secondaryGrey),dO=({name:e,children:t})=>He(Gr,{children:[He(p1t,{children:[j(m1t,{children:j(ut,{icon:"document"})}),j(g1t,{children:e})]}),t]}),p1t=Ae.div.withConfig({displayName:"WrapperStyled"})(["display:flex;align-items:center;gap:",";overflow:hidden;"],ee(8)),m1t=Ae.div.withConfig({displayName:"IconContainerStyled"})(["display:flex;padding:",";border-radius:",";background-color:",";border:1px solid ",";"],ee(7),ee(4),e=>e.theme.colors.secondaryLightGrey,e=>e.theme.colors.lightGrey),g1t=Ae.div.withConfig({displayName:"NameStyled"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;"]),y1t=({src:e=""})=>({name:F.useMemo(()=>e.split("/").at(-1)||"",[e])}),_1t=()=>{const{colors:e}=Kl(),{node:t}=es(),{editor:n,loading:r}=li(),{mode:i}=ta(),{attrs:a}=t,{src:o}=a,{name:s}=y1t({src:o}),l=()=>{r||!n||n.status!==pn.Created||n.action(c=>{const u=c.get(ai),{state:f}=u;u.dispatch(f.tr.deleteSelection())})};return j(Gr,{children:qp(i).match("active",()=>j(b1t,{children:j(dO,{name:s,children:j(lU,{oval:!0,color:"secondary",variant:"text",space:"small",onClick:l,children:j(ut,{icon:"delete",fill:e.lightBlack})})})})).match("preview",()=>j(k1t,{href:o,download:s,target:"_blank",children:j(dO,{name:s,children:j(Xt,{oval:!0,color:"secondary",variant:"text",space:"small",children:j(ut,{icon:"download"})})})})).get()})},lU=Ae(Xt).withConfig({displayName:"RemoveButtonStyled"})(["pointer-events:none;opacity:0;transition:0.1s ease-in;&:hover{background-color:#eeefee;}"]),cU=Tn(["display:flex;align-items:center;justify-content:space-between;margin-bottom:",";padding:"," ",";gap:",";border:1px solid ",";border-radius:",";transition:0.1s ease-in;cursor:pointer;&:hover{background-color:",";","{opacity:1;pointer-events:all;}}"],ee(16),ee(12),ee(16),ee(16),e=>e.theme.colors.lightGrey,ee(6),e=>e.theme.colors.secondaryLightGrey,lU),b1t=Ae.div.withConfig({displayName:"ActiveContainerStyled"})(["",""],cU),k1t=Ae.a.withConfig({displayName:"PreviewContainerStyled"})(["",""],cU);var c1=e=>e.type==="checkbox",wh=e=>e instanceof Date,mi=e=>e==null;const uU=e=>typeof e=="object";var Sr=e=>!mi(e)&&!Array.isArray(e)&&uU(e)&&!wh(e),w1t=e=>Sr(e)&&e.target?c1(e.target)?e.target.checked:e.target.value:e,v1t=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,x1t=(e,t)=>e.has(v1t(t)),C1t=e=>{const t=e.constructor&&e.constructor.prototype;return Sr(t)&&t.hasOwnProperty("isPrototypeOf")},b9=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function yl(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(b9&&(e instanceof Blob||e instanceof FileList))&&(n||Sr(e)))if(t=n?[]:{},!n&&!C1t(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=yl(e[r]));else return e;return t}var u1=e=>Array.isArray(e)?e.filter(Boolean):[],or=e=>e===void 0,rt=(e,t,n)=>{if(!t||!Sr(e))return n;const r=u1(t.split(/[,[\].]+?/)).reduce((i,a)=>mi(i)?i:i[a],e);return or(r)||r===e?or(e[t])?n:e[t]:r};const fO={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},jo={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},sl={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},S1t=cn.createContext(null),D1t=()=>cn.useContext(S1t);var E1t=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==jo.all&&(t._proxyFormState[o]=!r||jo.all),n&&(n[o]=!0),e[o]}});return i},Ya=e=>Sr(e)&&!Object.keys(e).length,T1t=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return Ya(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!r||jo.all))},Db=e=>Array.isArray(e)?e:[e],A1t=(e,t,n)=>n&&t?e===t:!e||!t||e===t||Db(e).some(r=>r&&(r.startsWith(t)||t.startsWith(r)));function dU(e){const t=cn.useRef(e);t.current=e,cn.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}var xs=e=>typeof e=="string",fU=(e,t,n,r,i)=>xs(e)?(r&&t.watch.add(e),rt(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),rt(n,a))):(r&&(t.watchAll=!0),n);function z1t(e){const t=D1t(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:o}=e||{},s=cn.useRef(r);s.current=r,dU({disabled:a,subject:n._subjects.values,next:u=>{A1t(s.current,u.name,o)&&c(yl(fU(s.current,n._names,u.values||n._formValues,!1,i)))}});const[l,c]=cn.useState(n._getWatch(r,i));return cn.useEffect(()=>n._removeUnmounted()),l}var k9=e=>/^\w*$/.test(e),hU=e=>u1(e.replace(/["|']|\]/g,"").split(/\.|\[/));function En(e,t,n){let r=-1;const i=k9(t)?[t]:hU(t),a=i.length,o=a-1;for(;++r<a;){const s=i[r];let l=n;if(r!==o){const c=e[s];l=Sr(c)||Array.isArray(c)?c:isNaN(+i[r+1])?{}:[]}e[s]=l,e=e[s]}return e}var pU=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};const L8=(e,t,n)=>{for(const r of n||Object.keys(e)){const i=rt(e,r);if(i){const{_f:a,...o}=i;if(a&&t(a.name)){if(a.ref.focus){a.ref.focus();break}else if(a.refs&&a.refs[0].focus){a.refs[0].focus();break}}else Sr(o)&&L8(o,t)}}};var hO=e=>({isOnSubmit:!e||e===jo.onSubmit,isOnBlur:e===jo.onBlur,isOnChange:e===jo.onChange,isOnAll:e===jo.all,isOnTouch:e===jo.onTouched}),pO=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length)))),F1t=(e,t,n)=>{const r=u1(rt(e,n));return En(r,"root",t[n]),En(e,n,r),e},qh=e=>typeof e=="boolean",w9=e=>e.type==="file",qc=e=>typeof e=="function",Gk=e=>{if(!b9)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Eb=e=>xs(e),v9=e=>e.type==="radio",Kk=e=>e instanceof RegExp;const mO={value:!1,isValid:!1},gO={value:!0,isValid:!0};var mU=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!or(e[0].attributes.value)?or(e[0].value)||e[0].value===""?gO:{value:e[0].value,isValid:!0}:gO:mO}return mO};const yO={isValid:!1,value:null};var gU=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,yO):yO;function _O(e,t,n="validate"){if(Eb(e)||Array.isArray(e)&&e.every(Eb)||qh(e)&&!e)return{type:n,message:Eb(e)?e:"",ref:t}}var jf=e=>Sr(e)&&!Kk(e)?e:{value:e,message:""},bO=async(e,t,n,r,i)=>{const{ref:a,refs:o,required:s,maxLength:l,minLength:c,min:u,max:f,pattern:h,validate:m,name:g,valueAsNumber:b,mount:C,disabled:w}=e._f,k=rt(t,g);if(!C||w)return{};const S=o?o[0]:a,E=V=>{r&&S.reportValidity&&(S.setCustomValidity(qh(V)?"":V||""),S.reportValidity())},A={},_=v9(a),T=c1(a),$=_||T,R=(b||w9(a))&&or(a.value)&&or(k)||Gk(a)&&a.value===""||k===""||Array.isArray(k)&&!k.length,O=pU.bind(null,g,n,A),G=(V,Z,W,Y=sl.maxLength,fe=sl.minLength)=>{const ae=V?Z:W;A[g]={type:V?Y:fe,message:ae,ref:a,...O(V?Y:fe,ae)}};if(i?!Array.isArray(k)||!k.length:s&&(!$&&(R||mi(k))||qh(k)&&!k||T&&!mU(o).isValid||_&&!gU(o).isValid)){const{value:V,message:Z}=Eb(s)?{value:!!s,message:s}:jf(s);if(V&&(A[g]={type:sl.required,message:Z,ref:S,...O(sl.required,Z)},!n))return E(Z),A}if(!R&&(!mi(u)||!mi(f))){let V,Z;const W=jf(f),Y=jf(u);if(!mi(k)&&!isNaN(k)){const fe=a.valueAsNumber||k&&+k;mi(W.value)||(V=fe>W.value),mi(Y.value)||(Z=fe<Y.value)}else{const fe=a.valueAsDate||new Date(k),ae=L=>new Date(new Date().toDateString()+" "+L),Q=a.type=="time",ce=a.type=="week";xs(W.value)&&k&&(V=Q?ae(k)>ae(W.value):ce?k>W.value:fe>new Date(W.value)),xs(Y.value)&&k&&(Z=Q?ae(k)<ae(Y.value):ce?k<Y.value:fe<new Date(Y.value))}if((V||Z)&&(G(!!V,W.message,Y.message,sl.max,sl.min),!n))return E(A[g].message),A}if((l||c)&&!R&&(xs(k)||i&&Array.isArray(k))){const V=jf(l),Z=jf(c),W=!mi(V.value)&&k.length>+V.value,Y=!mi(Z.value)&&k.length<+Z.value;if((W||Y)&&(G(W,V.message,Z.message),!n))return E(A[g].message),A}if(h&&!R&&xs(k)){const{value:V,message:Z}=jf(h);if(Kk(V)&&!k.match(V)&&(A[g]={type:sl.pattern,message:Z,ref:a,...O(sl.pattern,Z)},!n))return E(Z),A}if(m){if(qc(m)){const V=await m(k,t),Z=_O(V,S);if(Z&&(A[g]={...Z,...O(sl.validate,Z.message)},!n))return E(Z.message),A}else if(Sr(m)){let V={};for(const Z in m){if(!Ya(V)&&!n)break;const W=_O(await m[Z](k,t),S,Z);W&&(V={...W,...O(Z,W.message)},E(W.message),n&&(A[g]=V))}if(!Ya(V)&&(A[g]={ref:S,...V},!n))return A}}return E(!0),A};function $1t(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=or(e)?r++:e[t[r++]];return e}function M1t(e){for(const t in e)if(e.hasOwnProperty(t)&&!or(e[t]))return!1;return!0}function jr(e,t){const n=Array.isArray(t)?t:k9(t)?[t]:hU(t),r=n.length===1?e:$1t(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(Sr(r)&&Ya(r)||Array.isArray(r)&&M1t(r))&&jr(e,n.slice(0,-1)),e}function D6(){let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}}var Yk=e=>mi(e)||!uU(e);function kd(e,t){if(Yk(e)||Yk(t))return e===t;if(wh(e)&&wh(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const o=t[i];if(wh(a)&&wh(o)||Sr(a)&&Sr(o)||Array.isArray(a)&&Array.isArray(o)?!kd(a,o):a!==o)return!1}}return!0}var yU=e=>e.type==="select-multiple",O1t=e=>v9(e)||c1(e),E6=e=>Gk(e)&&e.isConnected,_U=e=>{for(const t in e)if(qc(e[t]))return!0;return!1};function Zk(e,t={}){const n=Array.isArray(e);if(Sr(e)||n)for(const r in e)Array.isArray(e[r])||Sr(e[r])&&!_U(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Zk(e[r],t[r])):mi(e[r])||(t[r]=!0);return t}function bU(e,t,n){const r=Array.isArray(e);if(Sr(e)||r)for(const i in e)Array.isArray(e[i])||Sr(e[i])&&!_U(e[i])?or(t)||Yk(n[i])?n[i]=Array.isArray(e[i])?Zk(e[i],[]):{...Zk(e[i])}:bU(e[i],mi(t)?{}:t[i],n[i]):n[i]=!kd(e[i],t[i]);return n}var T6=(e,t)=>bU(e,t,Zk(t)),kU=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>or(e)?e:t?e===""?NaN:e&&+e:n&&xs(e)?new Date(e):r?r(e):e;function A6(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return w9(t)?t.files:v9(t)?gU(e.refs).value:yU(t)?[...t.selectedOptions].map(({value:n})=>n):c1(t)?mU(e.refs).value:kU(or(t.value)?e.ref.value:t.value,e)}var N1t=(e,t,n,r)=>{const i={};for(const a of e){const o=rt(t,a);o&&En(i,a,o._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},$0=e=>or(e)?e:Kk(e)?e.source:Sr(e)?Kk(e.value)?e.value.source:e.value:e,L1t=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function kO(e,t,n){const r=rt(e,n);if(r||k9(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),o=rt(t,a),s=rt(e,a);if(o&&!Array.isArray(o)&&n!==a)return{name:n};if(s&&s.type)return{name:a,error:s};i.pop()}return{name:n}}var I1t=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,B1t=(e,t)=>!u1(rt(e,t)).length&&jr(e,t);const R1t={mode:jo.onSubmit,reValidateMode:jo.onChange,shouldFocusError:!0};function P1t(e={},t){let n={...R1t,...e},r={submitCount:0,isDirty:!1,isLoading:qc(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},i={},a=Sr(n.defaultValues)||Sr(n.values)?yl(n.defaultValues||n.values)||{}:{},o=n.shouldUnregister?{}:yl(a),s={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,u=0;const f={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:D6(),array:D6(),state:D6()},m=e.resetOptions&&e.resetOptions.keepDirtyValues,g=hO(n.mode),b=hO(n.reValidateMode),C=n.criteriaMode===jo.all,w=K=>ie=>{clearTimeout(u),u=setTimeout(K,ie)},k=async K=>{if(f.isValid||K){const ie=n.resolver?Ya((await R()).errors):await G(i,!0);ie!==r.isValid&&h.state.next({isValid:ie})}},S=K=>f.isValidating&&h.state.next({isValidating:K}),E=(K,ie=[],he,Ie,xe=!0,ke=!0)=>{if(Ie&&he){if(s.action=!0,ke&&Array.isArray(rt(i,K))){const Be=he(rt(i,K),Ie.argA,Ie.argB);xe&&En(i,K,Be)}if(ke&&Array.isArray(rt(r.errors,K))){const Be=he(rt(r.errors,K),Ie.argA,Ie.argB);xe&&En(r.errors,K,Be),B1t(r.errors,K)}if(f.touchedFields&&ke&&Array.isArray(rt(r.touchedFields,K))){const Be=he(rt(r.touchedFields,K),Ie.argA,Ie.argB);xe&&En(r.touchedFields,K,Be)}f.dirtyFields&&(r.dirtyFields=T6(a,o)),h.state.next({name:K,isDirty:Z(K,ie),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else En(o,K,ie)},A=(K,ie)=>{En(r.errors,K,ie),h.state.next({errors:r.errors})},_=(K,ie,he,Ie)=>{const xe=rt(i,K);if(xe){const ke=rt(o,K,or(he)?rt(a,K):he);or(ke)||Ie&&Ie.defaultChecked||ie?En(o,K,ie?ke:A6(xe._f)):fe(K,ke),s.mount&&k()}},T=(K,ie,he,Ie,xe)=>{let ke=!1,Be=!1;const dt={name:K};if(!he||Ie){f.isDirty&&(Be=r.isDirty,r.isDirty=dt.isDirty=Z(),ke=Be!==dt.isDirty);const Re=kd(rt(a,K),ie);Be=rt(r.dirtyFields,K),Re?jr(r.dirtyFields,K):En(r.dirtyFields,K,!0),dt.dirtyFields=r.dirtyFields,ke=ke||f.dirtyFields&&Be!==!Re}if(he){const Re=rt(r.touchedFields,K);Re||(En(r.touchedFields,K,he),dt.touchedFields=r.touchedFields,ke=ke||f.touchedFields&&Re!==he)}return ke&&xe&&h.state.next(dt),ke?dt:{}},$=(K,ie,he,Ie)=>{const xe=rt(r.errors,K),ke=f.isValid&&qh(ie)&&r.isValid!==ie;if(e.delayError&&he?(c=w(()=>A(K,he)),c(e.delayError)):(clearTimeout(u),c=null,he?En(r.errors,K,he):jr(r.errors,K)),(he?!kd(xe,he):xe)||!Ya(Ie)||ke){const Be={...Ie,...ke&&qh(ie)?{isValid:ie}:{},errors:r.errors,name:K};r={...r,...Be},h.state.next(Be)}S(!1)},R=async K=>n.resolver(o,n.context,N1t(K||l.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),O=async K=>{const{errors:ie}=await R();if(K)for(const he of K){const Ie=rt(ie,he);Ie?En(r.errors,he,Ie):jr(r.errors,he)}else r.errors=ie;return ie},G=async(K,ie,he={valid:!0})=>{for(const Ie in K){const xe=K[Ie];if(xe){const{_f:ke,...Be}=xe;if(ke){const dt=l.array.has(ke.name),Re=await bO(xe,o,C,n.shouldUseNativeValidation&&!ie,dt);if(Re[ke.name]&&(he.valid=!1,ie))break;!ie&&(rt(Re,ke.name)?dt?F1t(r.errors,Re,ke.name):En(r.errors,ke.name,Re[ke.name]):jr(r.errors,ke.name))}Be&&await G(Be,ie,he)}}return he.valid},V=()=>{for(const K of l.unMount){const ie=rt(i,K);ie&&(ie._f.refs?ie._f.refs.every(he=>!E6(he)):!E6(ie._f.ref))&&J(K)}l.unMount=new Set},Z=(K,ie)=>(K&&ie&&En(o,K,ie),!kd(de(),a)),W=(K,ie,he)=>fU(K,l,{...s.mount?o:or(ie)?a:xs(K)?{[K]:ie}:ie},he,ie),Y=K=>u1(rt(s.mount?o:a,K,e.shouldUnregister?rt(a,K,[]):[])),fe=(K,ie,he={})=>{const Ie=rt(i,K);let xe=ie;if(Ie){const ke=Ie._f;ke&&(!ke.disabled&&En(o,K,kU(ie,ke)),xe=Gk(ke.ref)&&mi(ie)?"":ie,yU(ke.ref)?[...ke.ref.options].forEach(Be=>Be.selected=xe.includes(Be.value)):ke.refs?c1(ke.ref)?ke.refs.length>1?ke.refs.forEach(Be=>(!Be.defaultChecked||!Be.disabled)&&(Be.checked=Array.isArray(xe)?!!xe.find(dt=>dt===Be.value):xe===Be.value)):ke.refs[0]&&(ke.refs[0].checked=!!xe):ke.refs.forEach(Be=>Be.checked=Be.value===xe):w9(ke.ref)?ke.ref.value="":(ke.ref.value=xe,ke.ref.type||h.values.next({name:K,values:{...o}})))}(he.shouldDirty||he.shouldTouch)&&T(K,xe,he.shouldTouch,he.shouldDirty,!0),he.shouldValidate&&L(K)},ae=(K,ie,he)=>{for(const Ie in ie){const xe=ie[Ie],ke=`${K}.${Ie}`,Be=rt(i,ke);(l.array.has(K)||!Yk(xe)||Be&&!Be._f)&&!wh(xe)?ae(ke,xe,he):fe(ke,xe,he)}},Q=(K,ie,he={})=>{const Ie=rt(i,K),xe=l.array.has(K),ke=yl(ie);En(o,K,ke),xe?(h.array.next({name:K,values:{...o}}),(f.isDirty||f.dirtyFields)&&he.shouldDirty&&h.state.next({name:K,dirtyFields:T6(a,o),isDirty:Z(K,ke)})):Ie&&!Ie._f&&!mi(ke)?ae(K,ke,he):fe(K,ke,he),pO(K,l)&&h.state.next({...r}),h.values.next({name:K,values:{...o}}),!s.mount&&t()},ce=async K=>{const ie=K.target;let he=ie.name,Ie=!0;const xe=rt(i,he),ke=()=>ie.type?A6(xe._f):w1t(K);if(xe){let Be,dt;const Re=ke(),zt=K.type===fO.BLUR||K.type===fO.FOCUS_OUT,Ir=!L1t(xe._f)&&!n.resolver&&!rt(r.errors,he)&&!xe._f.deps||I1t(zt,rt(r.touchedFields,he),r.isSubmitted,b,g),pe=pO(he,l,zt);En(o,he,Re),zt?(xe._f.onBlur&&xe._f.onBlur(K),c&&c(0)):xe._f.onChange&&xe._f.onChange(K);const Ce=T(he,Re,zt,!1),it=!Ya(Ce)||pe;if(!zt&&h.values.next({name:he,type:K.type,values:{...o}}),Ir)return f.isValid&&k(),it&&h.state.next({name:he,...pe?{}:Ce});if(!zt&&pe&&h.state.next({...r}),S(!0),n.resolver){const{errors:It}=await R([he]),Tt=kO(r.errors,i,he),vn=kO(It,i,Tt.name||he);Be=vn.error,he=vn.name,dt=Ya(It)}else Be=(await bO(xe,o,C,n.shouldUseNativeValidation))[he],Ie=isNaN(Re)||Re===rt(o,he,Re),Ie&&(Be?dt=!1:f.isValid&&(dt=await G(i,!0)));Ie&&(xe._f.deps&&L(xe._f.deps),$(he,dt,Be,Ce))}},L=async(K,ie={})=>{let he,Ie;const xe=Db(K);if(S(!0),n.resolver){const ke=await O(or(K)?K:xe);he=Ya(ke),Ie=K?!xe.some(Be=>rt(ke,Be)):he}else K?(Ie=(await Promise.all(xe.map(async ke=>{const Be=rt(i,ke);return await G(Be&&Be._f?{[ke]:Be}:Be)}))).every(Boolean),!(!Ie&&!r.isValid)&&k()):Ie=he=await G(i);return h.state.next({...!xs(K)||f.isValid&&he!==r.isValid?{}:{name:K},...n.resolver||!K?{isValid:he}:{},errors:r.errors,isValidating:!1}),ie.shouldFocus&&!Ie&&L8(i,ke=>ke&&rt(r.errors,ke),K?xe:l.mount),Ie},de=K=>{const ie={...a,...s.mount?o:{}};return or(K)?ie:xs(K)?rt(ie,K):K.map(he=>rt(ie,he))},ue=(K,ie)=>({invalid:!!rt((ie||r).errors,K),isDirty:!!rt((ie||r).dirtyFields,K),isTouched:!!rt((ie||r).touchedFields,K),error:rt((ie||r).errors,K)}),I=K=>{K&&Db(K).forEach(ie=>jr(r.errors,ie)),h.state.next({errors:K?r.errors:{}})},be=(K,ie,he)=>{const Ie=(rt(i,K,{_f:{}})._f||{}).ref;En(r.errors,K,{...ie,ref:Ie}),h.state.next({name:K,errors:r.errors,isValid:!1}),he&&he.shouldFocus&&Ie&&Ie.focus&&Ie.focus()},ze=(K,ie)=>qc(K)?h.values.subscribe({next:he=>K(W(void 0,ie),he)}):W(K,ie,!0),J=(K,ie={})=>{for(const he of K?Db(K):l.mount)l.mount.delete(he),l.array.delete(he),ie.keepValue||(jr(i,he),jr(o,he)),!ie.keepError&&jr(r.errors,he),!ie.keepDirty&&jr(r.dirtyFields,he),!ie.keepTouched&&jr(r.touchedFields,he),!n.shouldUnregister&&!ie.keepDefaultValue&&jr(a,he);h.values.next({values:{...o}}),h.state.next({...r,...ie.keepDirty?{isDirty:Z()}:{}}),!ie.keepIsValid&&k()},Ve=(K,ie={})=>{let he=rt(i,K);const Ie=qh(ie.disabled);return En(i,K,{...he||{},_f:{...he&&he._f?he._f:{ref:{name:K}},name:K,mount:!0,...ie}}),l.mount.add(K),or(ie.value)||En(o,K,ie.value),he?Ie&&En(o,K,ie.disabled?void 0:rt(o,K,A6(he._f))):_(K,!0,ie.value),{...Ie?{disabled:ie.disabled}:{},...n.progressive?{required:!!ie.required,min:$0(ie.min),max:$0(ie.max),minLength:$0(ie.minLength),maxLength:$0(ie.maxLength),pattern:$0(ie.pattern)}:{},name:K,onChange:ce,onBlur:ce,ref:xe=>{if(xe){Ve(K,ie),he=rt(i,K);const ke=or(xe.value)&&xe.querySelectorAll&&xe.querySelectorAll("input,select,textarea")[0]||xe,Be=O1t(ke),dt=he._f.refs||[];if(Be?dt.find(Re=>Re===ke):ke===he._f.ref)return;En(i,K,{_f:{...he._f,...Be?{refs:[...dt.filter(E6),ke,...Array.isArray(rt(a,K))?[{}]:[]],ref:{type:ke.type,name:K}}:{ref:ke}}}),_(K,!1,void 0,ke)}else he=rt(i,K,{}),he._f&&(he._f.mount=!1),(n.shouldUnregister||ie.shouldUnregister)&&!(x1t(l.array,K)&&s.action)&&l.unMount.add(K)}}},ye=()=>n.shouldFocusError&&L8(i,K=>K&&rt(r.errors,K),l.mount),We=(K,ie)=>async he=>{he&&(he.preventDefault&&he.preventDefault(),he.persist&&he.persist());let Ie=yl(o);if(h.state.next({isSubmitting:!0}),n.resolver){const{errors:xe,values:ke}=await R();r.errors=xe,Ie=ke}else await G(i);jr(r.errors,"root"),Ya(r.errors)?(h.state.next({errors:{}}),await K(Ie,he)):(ie&&await ie({...r.errors},he),ye(),setTimeout(ye)),h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ya(r.errors),submitCount:r.submitCount+1,errors:r.errors})},Pe=(K,ie={})=>{rt(i,K)&&(or(ie.defaultValue)?Q(K,rt(a,K)):(Q(K,ie.defaultValue),En(a,K,ie.defaultValue)),ie.keepTouched||jr(r.touchedFields,K),ie.keepDirty||(jr(r.dirtyFields,K),r.isDirty=ie.defaultValue?Z(K,rt(a,K)):Z()),ie.keepError||(jr(r.errors,K),f.isValid&&k()),h.state.next({...r}))},Ge=(K,ie={})=>{const he=K||a,Ie=yl(he),xe=K&&!Ya(K)?Ie:a;if(ie.keepDefaultValues||(a=he),!ie.keepValues){if(ie.keepDirtyValues||m)for(const ke of l.mount)rt(r.dirtyFields,ke)?En(xe,ke,rt(o,ke)):Q(ke,rt(xe,ke));else{if(b9&&or(K))for(const ke of l.mount){const Be=rt(i,ke);if(Be&&Be._f){const dt=Array.isArray(Be._f.refs)?Be._f.refs[0]:Be._f.ref;if(Gk(dt)){const Re=dt.closest("form");if(Re){Re.reset();break}}}}i={}}o=e.shouldUnregister?ie.keepDefaultValues?yl(a):{}:yl(xe),h.array.next({values:{...xe}}),h.values.next({values:{...xe}})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!s.mount&&t(),s.mount=!f.isValid||!!ie.keepIsValid,s.watch=!!e.shouldUnregister,h.state.next({submitCount:ie.keepSubmitCount?r.submitCount:0,isDirty:ie.keepDirty?r.isDirty:!!(ie.keepDefaultValues&&!kd(K,a)),isSubmitted:ie.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:ie.keepDirtyValues?r.dirtyFields:ie.keepDefaultValues&&K?T6(a,K):{},touchedFields:ie.keepTouched?r.touchedFields:{},errors:ie.keepErrors?r.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},Xe=(K,ie)=>Ge(qc(K)?K(o):K,ie);return{control:{register:Ve,unregister:J,getFieldState:ue,handleSubmit:We,setError:be,_executeSchema:R,_getWatch:W,_getDirty:Z,_updateValid:k,_removeUnmounted:V,_updateFieldArray:E,_getFieldArray:Y,_reset:Ge,_resetDefaultValues:()=>qc(n.defaultValues)&&n.defaultValues().then(K=>{Xe(K,n.resetOptions),h.state.next({isLoading:!1})}),_updateFormState:K=>{r={...r,...K}},_subjects:h,_proxyFormState:f,get _fields(){return i},get _formValues(){return o},get _state(){return s},set _state(K){s=K},get _defaultValues(){return a},get _names(){return l},set _names(K){l=K},get _formState(){return r},set _formState(K){r=K},get _options(){return n},set _options(K){n={...n,...K}}},trigger:L,register:Ve,handleSubmit:We,watch:ze,setValue:Q,getValues:de,reset:Xe,resetField:Pe,clearErrors:I,unregister:J,setError:be,setFocus:(K,ie={})=>{const he=rt(i,K),Ie=he&&he._f;if(Ie){const xe=Ie.refs?Ie.refs[0]:Ie.ref;xe.focus&&(xe.focus(),ie.shouldSelect&&xe.select())}},getFieldState:ue}}function Jv(e={}){const t=cn.useRef(),n=cn.useRef(),[r,i]=cn.useState({isDirty:!1,isValidating:!1,isLoading:qc(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:qc(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...P1t(e,()=>i(o=>({...o}))),formState:r});const a=t.current.control;return a._options=e,dU({subject:a._subjects.state,next:o=>{T1t(o,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),cn.useEffect(()=>{e.values&&!kd(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values):a._resetDefaultValues()},[e.values,a]),cn.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=E1t(r,a),t.current}function hf(e){this._maxSize=e,this.clear()}hf.prototype.clear=function(){this._size=0,this._values=Object.create(null)};hf.prototype.get=function(e){return this._values[e]};hf.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var j1t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,wU=/^\d+$/,V1t=/^\d/,q1t=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,H1t=/^\s*(['"]?)(.*?)(\1)\s*$/,x9=512,wO=new hf(x9),vO=new hf(x9),xO=new hf(x9),Nd={Cache:hf,split:I8,normalizePath:z6,setter:function(e){var t=z6(e);return vO.get(e)||vO.set(e,function(r,i){for(var a=0,o=t.length,s=r;a<o-1;){var l=t[a];if(l==="__proto__"||l==="constructor"||l==="prototype")return r;s=s[t[a++]]}s[t[a]]=i})},getter:function(e,t){var n=z6(e);return xO.get(e)||xO.set(e,function(i){for(var a=0,o=n.length;a<o;)if(i!=null||!t)i=i[n[a++]];else return;return i})},join:function(e){return e.reduce(function(t,n){return t+(C9(n)||wU.test(n)?"["+n+"]":(t?".":"")+n)},"")},forEach:function(e,t,n){U1t(Array.isArray(e)?e:I8(e),t,n)}};function z6(e){return wO.get(e)||wO.set(e,I8(e).map(function(t){return t.replace(H1t,"$2")}))}function I8(e){return e.match(j1t)||[""]}function U1t(e,t,n){var r=e.length,i,a,o,s;for(a=0;a<r;a++)i=e[a],i&&(K1t(i)&&(i='"'+i+'"'),s=C9(i),o=!s&&/^\d+$/.test(i),t.call(n,i,s,o,a,e))}function C9(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function W1t(e){return e.match(V1t)&&!e.match(wU)}function G1t(e){return q1t.test(e)}function K1t(e){return!C9(e)&&(W1t(e)||G1t(e))}const Y1t=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,Qv=e=>e.match(Y1t)||[],e2=e=>e[0].toUpperCase()+e.slice(1),S9=(e,t)=>Qv(e).join(t).toLowerCase(),vU=e=>Qv(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),Z1t=e=>e2(vU(e)),X1t=e=>S9(e,"_"),J1t=e=>S9(e,"-"),Q1t=e=>e2(S9(e," ")),eyt=e=>Qv(e).map(e2).join(" ");var F6={words:Qv,upperFirst:e2,camelCase:vU,pascalCase:Z1t,snakeCase:X1t,kebabCase:J1t,sentenceCase:Q1t,titleCase:eyt},D9={exports:{}};D9.exports=function(e){return xU(tyt(e),e)};D9.exports.array=xU;function xU(e,t){var n=e.length,r=new Array(n),i={},a=n,o=nyt(t),s=ryt(e);for(t.forEach(function(c){if(!s.has(c[0])||!s.has(c[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});a--;)i[a]||l(e[a],a,new Set);return r;function l(c,u,f){if(f.has(c)){var h;try{h=", node was:"+JSON.stringify(c)}catch{h=""}throw new Error("Cyclic dependency"+h)}if(!s.has(c))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(c));if(!i[u]){i[u]=!0;var m=o.get(c)||new Set;if(m=Array.from(m),u=m.length){f.add(c);do{var g=m[--u];l(g,s.get(g),f)}while(u);f.delete(c)}r[--n]=c}}}function tyt(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var i=e[n];t.add(i[0]),t.add(i[1])}return Array.from(t)}function nyt(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var i=e[n];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}function ryt(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}var iyt=D9.exports;const ayt=Qo(iyt),oyt=Object.prototype.toString,syt=Error.prototype.toString,lyt=RegExp.prototype.toString,cyt=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",uyt=/^Symbol\((.*)\)(.*)$/;function dyt(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function CO(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return dyt(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return cyt.call(e).replace(uyt,"Symbol($1)");const r=oyt.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+syt.call(e)+"]":r==="RegExp"?lyt.call(e):null}function Hh(e,t){let n=CO(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let a=CO(this[r],t);return a!==null?a:i},2)}function CU(e){return e==null?[]:[].concat(e)}let fyt=/\$\{\s*(\w+)\s*\}/g;class ba extends Error{static formatError(t,n){const r=n.label||n.path||"this";return r!==n.path&&(n=Object.assign({},n,{path:r})),typeof t=="string"?t.replace(fyt,(i,a)=>Hh(n[a])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,i){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],CU(t).forEach(a=>{ba.isError(a)?(this.errors.push(...a.errors),this.inner=this.inner.concat(a.inner.length?a.inner:a)):this.errors.push(a)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,ba)}}let _l={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const i=r!=null&&r!==n?` (cast from the value \`${Hh(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Hh(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${Hh(n,!0)}\``+i}},Oo={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},hyt={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},B8={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},pyt={isValue:"${path} field must be ${value}"},R8={noUnknown:"${path} field has unspecified keys: ${unknown}"},myt={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"};Object.assign(Object.create(null),{mixed:_l,string:Oo,number:hyt,date:B8,object:R8,array:myt,boolean:pyt});const E9=e=>e&&e.__isYupSchema__;class Xk{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:i,otherwise:a}=n,o=typeof r=="function"?r:(...s)=>s.every(l=>l===r);return new Xk(t,(s,l)=>{var c;let u=o(...s)?i:a;return(c=u==null?void 0:u(l))!=null?c:l})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(a=>a.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),i=this.fn(r,t,n);if(i===void 0||i===t)return t;if(!E9(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const e_={context:"$",value:"."};class pf{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===e_.context,this.isValue=this.key[0]===e_.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?e_.context:this.isValue?e_.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Nd.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let i=this.isContext?r:this.isValue?t:n;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}pf.prototype.__isYupRef=!0;const wd=e=>e==null;function Vf(e){function t({value:n,path:r="",options:i,originalValue:a,schema:o},s,l){const{name:c,test:u,params:f,message:h,skipAbsent:m}=e;let{parent:g,context:b,abortEarly:C=o.spec.abortEarly}=i;function w(O){return pf.isRef(O)?O.getValue(n,g,b):O}function k(O={}){const G=Object.assign({value:n,originalValue:a,label:o.spec.label,path:O.path||r,spec:o.spec},f,O.params);for(const Z of Object.keys(G))G[Z]=w(G[Z]);const V=new ba(ba.formatError(O.message||h,G),n,G.path,O.type||c);return V.params=G,V}const S=C?s:l;let E={path:r,parent:g,type:c,from:i.from,createError:k,resolve:w,options:i,originalValue:a,schema:o};const A=O=>{ba.isError(O)?S(O):O?l(null):S(k())},_=O=>{ba.isError(O)?S(O):s(O)},T=m&&wd(n);if(!i.sync){try{Promise.resolve(T?!0:u.call(E,n,E)).then(A,_)}catch(O){_(O)}return}let $;try{var R;if($=T?!0:u.call(E,n,E),typeof((R=$)==null?void 0:R.then)=="function")throw new Error(`Validation test of type: "${E.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(O){_(O);return}A($)}return t.OPTIONS=e,t}function gyt(e,t,n,r=n){let i,a,o;return t?(Nd.forEach(t,(s,l,c)=>{let u=l?s.slice(1,s.length-1):s;e=e.resolve({context:r,parent:i,value:n});let f=e.type==="tuple",h=c?parseInt(u,10):0;if(e.innerType||f){if(f&&!c)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${o}" must contain an index to the tuple element, e.g. "${o}[0]"`);if(n&&h>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[h],e=f?e.spec.types[h]:e.innerType}if(!c){if(!e.fields||!e.fields[u])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${o} which is a type: "${e.type}")`);i=n,n=n&&n[u],e=e.fields[u]}a=u,o=l?"["+s+"]":"."+s}),{schema:e,parent:i,parentPath:a}):{parent:i,parentPath:t,schema:e}}class Jk extends Set{describe(){const t=[];for(const n of this.values())t.push(pf.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new Jk(this.values())}merge(t,n){const r=this.clone();return t.forEach(i=>r.add(i)),n.forEach(i=>r.delete(i)),r}}function vh(e,t=new Map){if(E9(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=vh(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,i]of e.entries())n.set(r,vh(i,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(vh(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,i]of Object.entries(e))n[r]=vh(i,t)}else throw Error(`Unable to clone ${e}`);return n}let Bs=class{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new Jk,this._blacklist=new Jk,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(_l.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=vh(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const i=Object.assign({},n.spec,r.spec);return r.spec=i,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(a=>{t.tests.forEach(o=>{a.test(o.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((i,a)=>a.resolve(i,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,i;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(i=t.recursive)!=null?i:this.spec.recursive})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),i=n.assert==="ignore-optionality",a=r._cast(t,n);if(n.assert!==!1&&!r.isType(a)){if(i&&wd(a))return a;let o=Hh(t),s=Hh(a);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}". +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i<arguments.length;i++){var a=arguments[i];if(a){var o=typeof a;if(o==="string"||o==="number")r.push(a);else if(Array.isArray(a)){if(a.length){var s=n.apply(null,a);s&&r.push(s)}}else if(o==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){r.push(a.toString());continue}for(var l in a)t.call(a,l)&&a[l]&&r.push(l)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(sU);var a1t=sU.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(F),n=r(a1t);function r(_){return _&&_.__esModule?_:{default:_}}function i(){if(typeof WeakMap!="function")return null;var _=new WeakMap;return i=function(){return _},_}function a(_){if(_&&_.__esModule)return _;if(_===null||o(_)!=="object"&&typeof _!="function")return{default:_};var T=i();if(T&&T.has(_))return T.get(_);var $={},R=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in _)if(Object.prototype.hasOwnProperty.call(_,O)){var G=R?Object.getOwnPropertyDescriptor(_,O):null;G&&(G.get||G.set)?Object.defineProperty($,O,G):$[O]=_[O]}return $.default=_,T&&T.set(_,$),$}function o(_){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function($){return typeof $}:o=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},o(_)}function s(){return s=Object.assign||function(_){for(var T=1;T<arguments.length;T++){var $=arguments[T];for(var R in $)Object.prototype.hasOwnProperty.call($,R)&&(_[R]=$[R])}return _},s.apply(this,arguments)}function l(_,T){var $=Object.keys(_);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(_);T&&(R=R.filter(function(O){return Object.getOwnPropertyDescriptor(_,O).enumerable})),$.push.apply($,R)}return $}function c(_){for(var T=1;T<arguments.length;T++){var $=arguments[T]!=null?arguments[T]:{};T%2?l($,!0).forEach(function(R){u(_,R,$[R])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors($)):l($).forEach(function(R){Object.defineProperty(_,R,Object.getOwnPropertyDescriptor($,R))})}return _}function u(_,T,$){return T in _?Object.defineProperty(_,T,{value:$,enumerable:!0,configurable:!0,writable:!0}):_[T]=$,_}function f(_,T){if(!(_ instanceof T))throw new TypeError("Cannot call a class as a function")}function h(_,T){for(var $=0;$<T.length;$++){var R=T[$];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(_,R.key,R)}}function m(_,T,$){return T&&h(_.prototype,T),$&&h(_,$),_}function g(_,T){return T&&(o(T)==="object"||typeof T=="function")?T:C(_)}function b(_){return b=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},b(_)}function C(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function w(_,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(T&&T.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),T&&k(_,T)}function k(_,T){return k=Object.setPrototypeOf||function(R,O){return R.__proto__=O,R},k(_,T)}var S="Select...",E=function(_){w(T,_);function T($){var R;return f(this,T),R=g(this,b(T).call(this,$)),R.state={selected:R.parseValue($.value,$.options)||{label:typeof $.placeholder>"u"?S:$.placeholder,value:""},isOpen:!1},R.dropdownRef=(0,t.createRef)(),R.mounted=!0,R.handleDocumentClick=R.handleDocumentClick.bind(C(R)),R.fireChangeEvent=R.fireChangeEvent.bind(C(R)),R}return m(T,[{key:"componentDidUpdate",value:function(R){if(this.props.value!==R.value)if(this.props.value){var O=this.parseValue(this.props.value,this.props.options);O!==this.state.selected&&this.setState({selected:O})}else this.setState({selected:{label:typeof this.props.placeholder>"u"?S:this.props.placeholder,value:""}})}},{key:"componentDidMount",value:function(){document.addEventListener("click",this.handleDocumentClick,!1),document.addEventListener("touchend",this.handleDocumentClick,!1)}},{key:"componentWillUnmount",value:function(){this.mounted=!1,document.removeEventListener("click",this.handleDocumentClick,!1),document.removeEventListener("touchend",this.handleDocumentClick,!1)}},{key:"handleMouseDown",value:function(R){this.props.onFocus&&typeof this.props.onFocus=="function"&&this.props.onFocus(this.state.isOpen),!(R.type==="mousedown"&&R.button!==0)&&(R.stopPropagation(),R.preventDefault(),this.props.disabled||this.setState({isOpen:!this.state.isOpen}))}},{key:"parseValue",value:function(R,O){var G;if(typeof R=="string")for(var V=0,Z=O.length;V<Z;V++)if(O[V].type==="group"){var W=O[V].items.filter(function(Y){return Y.value===R});W.length&&(G=W[0])}else typeof O[V].value<"u"&&O[V].value===R&&(G=O[V]);return G||R}},{key:"setValue",value:function(R,O){var G={selected:{value:R,label:O},isOpen:!1};this.fireChangeEvent(G),this.setState(G)}},{key:"fireChangeEvent",value:function(R){R.selected!==this.state.selected&&this.props.onChange&&this.props.onChange(R.selected)}},{key:"renderOption",value:function(R){var O,G=R.value;typeof G>"u"&&(G=R.label||R);var V=R.label||R.value||R,Z=G===this.state.selected.value||G===this.state.selected,W=(O={},u(O,"".concat(this.props.baseClassName,"-option"),!0),u(O,R.className,!!R.className),u(O,"is-selected",Z),O),Y=(0,n.default)(W),fe=Object.keys(R.data||{}).reduce(function(ae,Q){return c({},ae,u({},"data-".concat(Q),R.data[Q]))},{});return t.default.createElement("div",s({key:G,className:Y,onMouseDown:this.setValue.bind(this,G,V),onClick:this.setValue.bind(this,G,V),role:"option","aria-selected":Z?"true":"false"},fe),V)}},{key:"buildMenu",value:function(){var R=this,O=this.props,G=O.options,V=O.baseClassName,Z=G.map(function(W){if(W.type==="group"){var Y=t.default.createElement("div",{className:"".concat(V,"-title")},W.name),fe=W.items.map(function(ae){return R.renderOption(ae)});return t.default.createElement("div",{className:"".concat(V,"-group"),key:W.name,role:"listbox",tabIndex:"-1"},Y,fe)}else return R.renderOption(W)});return Z.length?Z:t.default.createElement("div",{className:"".concat(V,"-noresults")},"No options found")}},{key:"handleDocumentClick",value:function(R){this.mounted&&(this.dropdownRef.current.contains(R.target)||this.state.isOpen&&this.setState({isOpen:!1}))}},{key:"isValueSelected",value:function(){return typeof this.state.selected=="string"||this.state.selected.value!==""}},{key:"render",value:function(){var R,O,G,V,Z,W=this.props,Y=W.baseClassName,fe=W.controlClassName,ae=W.placeholderClassName,Q=W.menuClassName,ce=W.arrowClassName,L=W.arrowClosed,de=W.arrowOpen,ue=W.className,I=this.props.disabled?"Dropdown-disabled":"",be=typeof this.state.selected=="string"?this.state.selected:this.state.selected.label,ze=(0,n.default)((R={},u(R,"".concat(Y,"-root"),!0),u(R,ue,!!ue),u(R,"is-open",this.state.isOpen),R)),J=(0,n.default)((O={},u(O,"".concat(Y,"-control"),!0),u(O,fe,!!fe),u(O,I,!!I),O)),Ve=(0,n.default)((G={},u(G,"".concat(Y,"-placeholder"),!0),u(G,ae,!!ae),u(G,"is-selected",this.isValueSelected()),G)),ye=(0,n.default)((V={},u(V,"".concat(Y,"-menu"),!0),u(V,Q,!!Q),V)),We=(0,n.default)((Z={},u(Z,"".concat(Y,"-arrow"),!0),u(Z,ce,!!ce),Z)),Pe=t.default.createElement("div",{className:Ve},be),Ge=this.state.isOpen?t.default.createElement("div",{className:ye,"aria-expanded":"true"},this.buildMenu()):null;return t.default.createElement("div",{ref:this.dropdownRef,className:ze},t.default.createElement("div",{className:J,onMouseDown:this.handleMouseDown.bind(this),onTouchEnd:this.handleMouseDown.bind(this),"aria-haspopup":"listbox"},Pe,t.default.createElement("div",{className:"".concat(Y,"-arrow-wrapper")},de&&L?this.state.isOpen?de:L:t.default.createElement("span",{className:We}))),Ge)}}]),T}(t.Component);E.defaultProps={baseClassName:"Dropdown"};var A=E;e.default=A})(oU);const o1t=Qo(oU),lU=e=>j(s1t,{...e,arrowClosed:j(ut,{icon:"arrow_down"}),arrowOpen:j(ut,{icon:"arrow_top"})}),s1t=Ae(o1t).withConfig({displayName:"SelectStyled"})(["&&&{min-width:",";font-size:",";.Dropdown-option{padding:"," ",";}.Dropdown-control{display:flex;align-items:center;justify-content:space-between;padding:"," ",";border-radius:",";.Dropdown-arrow-wrapper{display:flex;align-items:center;margin-left:",";}}.Dropdown-menu{border-radius:",";}}"],ee(130),ee(14),ee(8),ee(10),ee(6),ee(12),ee(8),ee(8),ee(8)),Xv=()=>{const e=F.useCallback(n=>{Pi.error(n,{position:"bottom-center"})},[]),t=F.useCallback(n=>{Pi.success(n,{position:"bottom-center"})},[]);return{onErrorNotification:e,onSuccessNotification:t}};function am(e,t){return{match:(n,r)=>n===e?am(e,r()):am(e,t),matchMany:(n,r)=>n.includes(e)?am(e,r()):am(e,t),get:()=>t,getOrElse:n=>t??n()}}const qp=e=>am(e),S6=[{value:"r",label:"R"},{value:"python",label:"Python"},{value:"c",label:"C"},{value:"java",label:"Java"},{value:"json",label:"JSON"}],l1t=()=>{const{mode:e}=ta(),{onSuccessNotification:t}=Xv(),{contentRef:n,node:r,setAttrs:i}=es(),a=c=>{c.preventDefault(),t("Code snippet copied to clipboard!"),navigator.clipboard.writeText(r.textContent)},o=({value:c})=>{i({language:c})},s=F.useMemo(()=>{var c;return((c=S6.find(u=>u.value===r.attrs.language))==null?void 0:c.value)||"text"},[r]),l=F.useMemo(()=>{var c;return((c=S6.find(u=>u.value===s))==null?void 0:c.label)||"Text"},[s]);return He(c1t,{children:[He(u1t,{children:[qp(e).match("active",()=>j(lU,{value:s,options:S6,onChange:o})).match("preview",()=>j(f1t,{children:l})).get(),He(h1t,{oval:!0,onClick:a,color:"secondary",children:[j(ut,{icon:"copy"}),j(d1t,{children:"Copy"})]})]}),j("pre",{children:j(mgt,{ref:n})})]})},c1t=Ae.div.withConfig({displayName:"CodeBlockNodeContainerStyled"})(["margin:"," 0;padding:",";font-size:",";line-height:",";background-color:",";border:1px solid ",";border-radius:",";*{font-family:",";}"],ee(16),ee(16),ee(16),ee(22),e=>e.theme.colors.lightAzure,e=>e.theme.colors.azure,ee(8),e=>e.theme.fonts.secondary),u1t=Ae.div.withConfig({displayName:"CodeBlockNodeActionsStyled"})(["display:flex;align-items:center;justify-content:space-between;margin-bottom:",";"],ee(16)),d1t=Ae.span.withConfig({displayName:"CopyTextStyled"})(["margin-left:",";"],ee(5)),f1t=Ae.span.withConfig({displayName:"LanguageLabelStyled"})(["padding:"," ",";background-color:",";border-radius:",";"],ee(7),ee(12),e=>e.theme.colors.azure,ee(8)),h1t=Ae(Xt).withConfig({displayName:"CopyButtonStyled"})(["&:hover,&:focus{background-color:",";}"],e=>e.theme.colors.secondaryGrey),dO=({name:e,children:t})=>He(Gr,{children:[He(p1t,{children:[j(m1t,{children:j(ut,{icon:"document"})}),j(g1t,{children:e})]}),t]}),p1t=Ae.div.withConfig({displayName:"WrapperStyled"})(["display:flex;align-items:center;gap:",";overflow:hidden;"],ee(8)),m1t=Ae.div.withConfig({displayName:"IconContainerStyled"})(["display:flex;padding:",";border-radius:",";background-color:",";border:1px solid ",";"],ee(7),ee(4),e=>e.theme.colors.secondaryLightGrey,e=>e.theme.colors.lightGrey),g1t=Ae.div.withConfig({displayName:"NameStyled"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;"]),y1t=({src:e=""})=>({name:F.useMemo(()=>e.split("/").at(-1)||"",[e])}),li=()=>{const[e,t]=jP();return{editor:t(),loading:e}},_1t=()=>{const{colors:e}=Kl(),{node:t}=es(),{editor:n,loading:r}=li(),{mode:i}=ta(),{attrs:a}=t,{src:o}=a,{name:s}=y1t({src:o}),l=()=>{r||!n||n.status!==fn.Created||n.action(c=>{const u=c.get(ai),{state:f}=u;u.dispatch(f.tr.deleteSelection())})};return j(Gr,{children:qp(i).match("active",()=>j(b1t,{children:j(dO,{name:s,children:j(cU,{oval:!0,color:"secondary",variant:"text",space:"small",onClick:l,children:j(ut,{icon:"delete",fill:e.lightBlack})})})})).match("preview",()=>j(k1t,{href:o,download:s,target:"_blank",children:j(dO,{name:s,children:j(Xt,{oval:!0,color:"secondary",variant:"text",space:"small",children:j(ut,{icon:"download"})})})})).get()})},cU=Ae(Xt).withConfig({displayName:"RemoveButtonStyled"})(["pointer-events:none;opacity:0;transition:0.1s ease-in;&:hover{background-color:#eeefee;}"]),uU=Tn(["display:flex;align-items:center;justify-content:space-between;margin-bottom:",";padding:"," ",";gap:",";border:1px solid ",";border-radius:",";transition:0.1s ease-in;cursor:pointer;&:hover{background-color:",";","{opacity:1;pointer-events:all;}}"],ee(16),ee(12),ee(16),ee(16),e=>e.theme.colors.lightGrey,ee(6),e=>e.theme.colors.secondaryLightGrey,cU),b1t=Ae.div.withConfig({displayName:"ActiveContainerStyled"})(["",""],uU),k1t=Ae.a.withConfig({displayName:"PreviewContainerStyled"})(["",""],uU);var c1=e=>e.type==="checkbox",wh=e=>e instanceof Date,mi=e=>e==null;const dU=e=>typeof e=="object";var Sr=e=>!mi(e)&&!Array.isArray(e)&&dU(e)&&!wh(e),w1t=e=>Sr(e)&&e.target?c1(e.target)?e.target.checked:e.target.value:e,v1t=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,x1t=(e,t)=>e.has(v1t(t)),C1t=e=>{const t=e.constructor&&e.constructor.prototype;return Sr(t)&&t.hasOwnProperty("isPrototypeOf")},b9=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function yl(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(b9&&(e instanceof Blob||e instanceof FileList))&&(n||Sr(e)))if(t=n?[]:{},!n&&!C1t(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=yl(e[r]));else return e;return t}var u1=e=>Array.isArray(e)?e.filter(Boolean):[],or=e=>e===void 0,rt=(e,t,n)=>{if(!t||!Sr(e))return n;const r=u1(t.split(/[,[\].]+?/)).reduce((i,a)=>mi(i)?i:i[a],e);return or(r)||r===e?or(e[t])?n:e[t]:r};const fO={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},jo={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},sl={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},S1t=cn.createContext(null),D1t=()=>cn.useContext(S1t);var E1t=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==jo.all&&(t._proxyFormState[o]=!r||jo.all),n&&(n[o]=!0),e[o]}});return i},Ya=e=>Sr(e)&&!Object.keys(e).length,T1t=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return Ya(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!r||jo.all))},Db=e=>Array.isArray(e)?e:[e],A1t=(e,t,n)=>n&&t?e===t:!e||!t||e===t||Db(e).some(r=>r&&(r.startsWith(t)||t.startsWith(r)));function fU(e){const t=cn.useRef(e);t.current=e,cn.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}var xs=e=>typeof e=="string",hU=(e,t,n,r,i)=>xs(e)?(r&&t.watch.add(e),rt(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),rt(n,a))):(r&&(t.watchAll=!0),n);function z1t(e){const t=D1t(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:o}=e||{},s=cn.useRef(r);s.current=r,fU({disabled:a,subject:n._subjects.values,next:u=>{A1t(s.current,u.name,o)&&c(yl(hU(s.current,n._names,u.values||n._formValues,!1,i)))}});const[l,c]=cn.useState(n._getWatch(r,i));return cn.useEffect(()=>n._removeUnmounted()),l}var k9=e=>/^\w*$/.test(e),pU=e=>u1(e.replace(/["|']|\]/g,"").split(/\.|\[/));function En(e,t,n){let r=-1;const i=k9(t)?[t]:pU(t),a=i.length,o=a-1;for(;++r<a;){const s=i[r];let l=n;if(r!==o){const c=e[s];l=Sr(c)||Array.isArray(c)?c:isNaN(+i[r+1])?{}:[]}e[s]=l,e=e[s]}return e}var mU=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};const L8=(e,t,n)=>{for(const r of n||Object.keys(e)){const i=rt(e,r);if(i){const{_f:a,...o}=i;if(a&&t(a.name)){if(a.ref.focus){a.ref.focus();break}else if(a.refs&&a.refs[0].focus){a.refs[0].focus();break}}else Sr(o)&&L8(o,t)}}};var hO=e=>({isOnSubmit:!e||e===jo.onSubmit,isOnBlur:e===jo.onBlur,isOnChange:e===jo.onChange,isOnAll:e===jo.all,isOnTouch:e===jo.onTouched}),pO=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length)))),F1t=(e,t,n)=>{const r=u1(rt(e,n));return En(r,"root",t[n]),En(e,n,r),e},qh=e=>typeof e=="boolean",w9=e=>e.type==="file",qc=e=>typeof e=="function",Gk=e=>{if(!b9)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Eb=e=>xs(e),v9=e=>e.type==="radio",Kk=e=>e instanceof RegExp;const mO={value:!1,isValid:!1},gO={value:!0,isValid:!0};var gU=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!or(e[0].attributes.value)?or(e[0].value)||e[0].value===""?gO:{value:e[0].value,isValid:!0}:gO:mO}return mO};const yO={isValid:!1,value:null};var yU=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,yO):yO;function _O(e,t,n="validate"){if(Eb(e)||Array.isArray(e)&&e.every(Eb)||qh(e)&&!e)return{type:n,message:Eb(e)?e:"",ref:t}}var jf=e=>Sr(e)&&!Kk(e)?e:{value:e,message:""},bO=async(e,t,n,r,i)=>{const{ref:a,refs:o,required:s,maxLength:l,minLength:c,min:u,max:f,pattern:h,validate:m,name:g,valueAsNumber:b,mount:C,disabled:w}=e._f,k=rt(t,g);if(!C||w)return{};const S=o?o[0]:a,E=V=>{r&&S.reportValidity&&(S.setCustomValidity(qh(V)?"":V||""),S.reportValidity())},A={},_=v9(a),T=c1(a),$=_||T,R=(b||w9(a))&&or(a.value)&&or(k)||Gk(a)&&a.value===""||k===""||Array.isArray(k)&&!k.length,O=mU.bind(null,g,n,A),G=(V,Z,W,Y=sl.maxLength,fe=sl.minLength)=>{const ae=V?Z:W;A[g]={type:V?Y:fe,message:ae,ref:a,...O(V?Y:fe,ae)}};if(i?!Array.isArray(k)||!k.length:s&&(!$&&(R||mi(k))||qh(k)&&!k||T&&!gU(o).isValid||_&&!yU(o).isValid)){const{value:V,message:Z}=Eb(s)?{value:!!s,message:s}:jf(s);if(V&&(A[g]={type:sl.required,message:Z,ref:S,...O(sl.required,Z)},!n))return E(Z),A}if(!R&&(!mi(u)||!mi(f))){let V,Z;const W=jf(f),Y=jf(u);if(!mi(k)&&!isNaN(k)){const fe=a.valueAsNumber||k&&+k;mi(W.value)||(V=fe>W.value),mi(Y.value)||(Z=fe<Y.value)}else{const fe=a.valueAsDate||new Date(k),ae=L=>new Date(new Date().toDateString()+" "+L),Q=a.type=="time",ce=a.type=="week";xs(W.value)&&k&&(V=Q?ae(k)>ae(W.value):ce?k>W.value:fe>new Date(W.value)),xs(Y.value)&&k&&(Z=Q?ae(k)<ae(Y.value):ce?k<Y.value:fe<new Date(Y.value))}if((V||Z)&&(G(!!V,W.message,Y.message,sl.max,sl.min),!n))return E(A[g].message),A}if((l||c)&&!R&&(xs(k)||i&&Array.isArray(k))){const V=jf(l),Z=jf(c),W=!mi(V.value)&&k.length>+V.value,Y=!mi(Z.value)&&k.length<+Z.value;if((W||Y)&&(G(W,V.message,Z.message),!n))return E(A[g].message),A}if(h&&!R&&xs(k)){const{value:V,message:Z}=jf(h);if(Kk(V)&&!k.match(V)&&(A[g]={type:sl.pattern,message:Z,ref:a,...O(sl.pattern,Z)},!n))return E(Z),A}if(m){if(qc(m)){const V=await m(k,t),Z=_O(V,S);if(Z&&(A[g]={...Z,...O(sl.validate,Z.message)},!n))return E(Z.message),A}else if(Sr(m)){let V={};for(const Z in m){if(!Ya(V)&&!n)break;const W=_O(await m[Z](k,t),S,Z);W&&(V={...W,...O(Z,W.message)},E(W.message),n&&(A[g]=V))}if(!Ya(V)&&(A[g]={ref:S,...V},!n))return A}}return E(!0),A};function $1t(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=or(e)?r++:e[t[r++]];return e}function M1t(e){for(const t in e)if(e.hasOwnProperty(t)&&!or(e[t]))return!1;return!0}function jr(e,t){const n=Array.isArray(t)?t:k9(t)?[t]:pU(t),r=n.length===1?e:$1t(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(Sr(r)&&Ya(r)||Array.isArray(r)&&M1t(r))&&jr(e,n.slice(0,-1)),e}function D6(){let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}}var Yk=e=>mi(e)||!dU(e);function kd(e,t){if(Yk(e)||Yk(t))return e===t;if(wh(e)&&wh(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const o=t[i];if(wh(a)&&wh(o)||Sr(a)&&Sr(o)||Array.isArray(a)&&Array.isArray(o)?!kd(a,o):a!==o)return!1}}return!0}var _U=e=>e.type==="select-multiple",O1t=e=>v9(e)||c1(e),E6=e=>Gk(e)&&e.isConnected,bU=e=>{for(const t in e)if(qc(e[t]))return!0;return!1};function Zk(e,t={}){const n=Array.isArray(e);if(Sr(e)||n)for(const r in e)Array.isArray(e[r])||Sr(e[r])&&!bU(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Zk(e[r],t[r])):mi(e[r])||(t[r]=!0);return t}function kU(e,t,n){const r=Array.isArray(e);if(Sr(e)||r)for(const i in e)Array.isArray(e[i])||Sr(e[i])&&!bU(e[i])?or(t)||Yk(n[i])?n[i]=Array.isArray(e[i])?Zk(e[i],[]):{...Zk(e[i])}:kU(e[i],mi(t)?{}:t[i],n[i]):n[i]=!kd(e[i],t[i]);return n}var T6=(e,t)=>kU(e,t,Zk(t)),wU=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>or(e)?e:t?e===""?NaN:e&&+e:n&&xs(e)?new Date(e):r?r(e):e;function A6(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return w9(t)?t.files:v9(t)?yU(e.refs).value:_U(t)?[...t.selectedOptions].map(({value:n})=>n):c1(t)?gU(e.refs).value:wU(or(t.value)?e.ref.value:t.value,e)}var N1t=(e,t,n,r)=>{const i={};for(const a of e){const o=rt(t,a);o&&En(i,a,o._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},$0=e=>or(e)?e:Kk(e)?e.source:Sr(e)?Kk(e.value)?e.value.source:e.value:e,L1t=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function kO(e,t,n){const r=rt(e,n);if(r||k9(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),o=rt(t,a),s=rt(e,a);if(o&&!Array.isArray(o)&&n!==a)return{name:n};if(s&&s.type)return{name:a,error:s};i.pop()}return{name:n}}var I1t=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,B1t=(e,t)=>!u1(rt(e,t)).length&&jr(e,t);const R1t={mode:jo.onSubmit,reValidateMode:jo.onChange,shouldFocusError:!0};function P1t(e={},t){let n={...R1t,...e},r={submitCount:0,isDirty:!1,isLoading:qc(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},i={},a=Sr(n.defaultValues)||Sr(n.values)?yl(n.defaultValues||n.values)||{}:{},o=n.shouldUnregister?{}:yl(a),s={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,u=0;const f={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:D6(),array:D6(),state:D6()},m=e.resetOptions&&e.resetOptions.keepDirtyValues,g=hO(n.mode),b=hO(n.reValidateMode),C=n.criteriaMode===jo.all,w=K=>ie=>{clearTimeout(u),u=setTimeout(K,ie)},k=async K=>{if(f.isValid||K){const ie=n.resolver?Ya((await R()).errors):await G(i,!0);ie!==r.isValid&&h.state.next({isValid:ie})}},S=K=>f.isValidating&&h.state.next({isValidating:K}),E=(K,ie=[],he,Ie,xe=!0,ke=!0)=>{if(Ie&&he){if(s.action=!0,ke&&Array.isArray(rt(i,K))){const Be=he(rt(i,K),Ie.argA,Ie.argB);xe&&En(i,K,Be)}if(ke&&Array.isArray(rt(r.errors,K))){const Be=he(rt(r.errors,K),Ie.argA,Ie.argB);xe&&En(r.errors,K,Be),B1t(r.errors,K)}if(f.touchedFields&&ke&&Array.isArray(rt(r.touchedFields,K))){const Be=he(rt(r.touchedFields,K),Ie.argA,Ie.argB);xe&&En(r.touchedFields,K,Be)}f.dirtyFields&&(r.dirtyFields=T6(a,o)),h.state.next({name:K,isDirty:Z(K,ie),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else En(o,K,ie)},A=(K,ie)=>{En(r.errors,K,ie),h.state.next({errors:r.errors})},_=(K,ie,he,Ie)=>{const xe=rt(i,K);if(xe){const ke=rt(o,K,or(he)?rt(a,K):he);or(ke)||Ie&&Ie.defaultChecked||ie?En(o,K,ie?ke:A6(xe._f)):fe(K,ke),s.mount&&k()}},T=(K,ie,he,Ie,xe)=>{let ke=!1,Be=!1;const dt={name:K};if(!he||Ie){f.isDirty&&(Be=r.isDirty,r.isDirty=dt.isDirty=Z(),ke=Be!==dt.isDirty);const Re=kd(rt(a,K),ie);Be=rt(r.dirtyFields,K),Re?jr(r.dirtyFields,K):En(r.dirtyFields,K,!0),dt.dirtyFields=r.dirtyFields,ke=ke||f.dirtyFields&&Be!==!Re}if(he){const Re=rt(r.touchedFields,K);Re||(En(r.touchedFields,K,he),dt.touchedFields=r.touchedFields,ke=ke||f.touchedFields&&Re!==he)}return ke&&xe&&h.state.next(dt),ke?dt:{}},$=(K,ie,he,Ie)=>{const xe=rt(r.errors,K),ke=f.isValid&&qh(ie)&&r.isValid!==ie;if(e.delayError&&he?(c=w(()=>A(K,he)),c(e.delayError)):(clearTimeout(u),c=null,he?En(r.errors,K,he):jr(r.errors,K)),(he?!kd(xe,he):xe)||!Ya(Ie)||ke){const Be={...Ie,...ke&&qh(ie)?{isValid:ie}:{},errors:r.errors,name:K};r={...r,...Be},h.state.next(Be)}S(!1)},R=async K=>n.resolver(o,n.context,N1t(K||l.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),O=async K=>{const{errors:ie}=await R();if(K)for(const he of K){const Ie=rt(ie,he);Ie?En(r.errors,he,Ie):jr(r.errors,he)}else r.errors=ie;return ie},G=async(K,ie,he={valid:!0})=>{for(const Ie in K){const xe=K[Ie];if(xe){const{_f:ke,...Be}=xe;if(ke){const dt=l.array.has(ke.name),Re=await bO(xe,o,C,n.shouldUseNativeValidation&&!ie,dt);if(Re[ke.name]&&(he.valid=!1,ie))break;!ie&&(rt(Re,ke.name)?dt?F1t(r.errors,Re,ke.name):En(r.errors,ke.name,Re[ke.name]):jr(r.errors,ke.name))}Be&&await G(Be,ie,he)}}return he.valid},V=()=>{for(const K of l.unMount){const ie=rt(i,K);ie&&(ie._f.refs?ie._f.refs.every(he=>!E6(he)):!E6(ie._f.ref))&&J(K)}l.unMount=new Set},Z=(K,ie)=>(K&&ie&&En(o,K,ie),!kd(de(),a)),W=(K,ie,he)=>hU(K,l,{...s.mount?o:or(ie)?a:xs(K)?{[K]:ie}:ie},he,ie),Y=K=>u1(rt(s.mount?o:a,K,e.shouldUnregister?rt(a,K,[]):[])),fe=(K,ie,he={})=>{const Ie=rt(i,K);let xe=ie;if(Ie){const ke=Ie._f;ke&&(!ke.disabled&&En(o,K,wU(ie,ke)),xe=Gk(ke.ref)&&mi(ie)?"":ie,_U(ke.ref)?[...ke.ref.options].forEach(Be=>Be.selected=xe.includes(Be.value)):ke.refs?c1(ke.ref)?ke.refs.length>1?ke.refs.forEach(Be=>(!Be.defaultChecked||!Be.disabled)&&(Be.checked=Array.isArray(xe)?!!xe.find(dt=>dt===Be.value):xe===Be.value)):ke.refs[0]&&(ke.refs[0].checked=!!xe):ke.refs.forEach(Be=>Be.checked=Be.value===xe):w9(ke.ref)?ke.ref.value="":(ke.ref.value=xe,ke.ref.type||h.values.next({name:K,values:{...o}})))}(he.shouldDirty||he.shouldTouch)&&T(K,xe,he.shouldTouch,he.shouldDirty,!0),he.shouldValidate&&L(K)},ae=(K,ie,he)=>{for(const Ie in ie){const xe=ie[Ie],ke=`${K}.${Ie}`,Be=rt(i,ke);(l.array.has(K)||!Yk(xe)||Be&&!Be._f)&&!wh(xe)?ae(ke,xe,he):fe(ke,xe,he)}},Q=(K,ie,he={})=>{const Ie=rt(i,K),xe=l.array.has(K),ke=yl(ie);En(o,K,ke),xe?(h.array.next({name:K,values:{...o}}),(f.isDirty||f.dirtyFields)&&he.shouldDirty&&h.state.next({name:K,dirtyFields:T6(a,o),isDirty:Z(K,ke)})):Ie&&!Ie._f&&!mi(ke)?ae(K,ke,he):fe(K,ke,he),pO(K,l)&&h.state.next({...r}),h.values.next({name:K,values:{...o}}),!s.mount&&t()},ce=async K=>{const ie=K.target;let he=ie.name,Ie=!0;const xe=rt(i,he),ke=()=>ie.type?A6(xe._f):w1t(K);if(xe){let Be,dt;const Re=ke(),zt=K.type===fO.BLUR||K.type===fO.FOCUS_OUT,Ir=!L1t(xe._f)&&!n.resolver&&!rt(r.errors,he)&&!xe._f.deps||I1t(zt,rt(r.touchedFields,he),r.isSubmitted,b,g),pe=pO(he,l,zt);En(o,he,Re),zt?(xe._f.onBlur&&xe._f.onBlur(K),c&&c(0)):xe._f.onChange&&xe._f.onChange(K);const Ce=T(he,Re,zt,!1),it=!Ya(Ce)||pe;if(!zt&&h.values.next({name:he,type:K.type,values:{...o}}),Ir)return f.isValid&&k(),it&&h.state.next({name:he,...pe?{}:Ce});if(!zt&&pe&&h.state.next({...r}),S(!0),n.resolver){const{errors:It}=await R([he]),Tt=kO(r.errors,i,he),vn=kO(It,i,Tt.name||he);Be=vn.error,he=vn.name,dt=Ya(It)}else Be=(await bO(xe,o,C,n.shouldUseNativeValidation))[he],Ie=isNaN(Re)||Re===rt(o,he,Re),Ie&&(Be?dt=!1:f.isValid&&(dt=await G(i,!0)));Ie&&(xe._f.deps&&L(xe._f.deps),$(he,dt,Be,Ce))}},L=async(K,ie={})=>{let he,Ie;const xe=Db(K);if(S(!0),n.resolver){const ke=await O(or(K)?K:xe);he=Ya(ke),Ie=K?!xe.some(Be=>rt(ke,Be)):he}else K?(Ie=(await Promise.all(xe.map(async ke=>{const Be=rt(i,ke);return await G(Be&&Be._f?{[ke]:Be}:Be)}))).every(Boolean),!(!Ie&&!r.isValid)&&k()):Ie=he=await G(i);return h.state.next({...!xs(K)||f.isValid&&he!==r.isValid?{}:{name:K},...n.resolver||!K?{isValid:he}:{},errors:r.errors,isValidating:!1}),ie.shouldFocus&&!Ie&&L8(i,ke=>ke&&rt(r.errors,ke),K?xe:l.mount),Ie},de=K=>{const ie={...a,...s.mount?o:{}};return or(K)?ie:xs(K)?rt(ie,K):K.map(he=>rt(ie,he))},ue=(K,ie)=>({invalid:!!rt((ie||r).errors,K),isDirty:!!rt((ie||r).dirtyFields,K),isTouched:!!rt((ie||r).touchedFields,K),error:rt((ie||r).errors,K)}),I=K=>{K&&Db(K).forEach(ie=>jr(r.errors,ie)),h.state.next({errors:K?r.errors:{}})},be=(K,ie,he)=>{const Ie=(rt(i,K,{_f:{}})._f||{}).ref;En(r.errors,K,{...ie,ref:Ie}),h.state.next({name:K,errors:r.errors,isValid:!1}),he&&he.shouldFocus&&Ie&&Ie.focus&&Ie.focus()},ze=(K,ie)=>qc(K)?h.values.subscribe({next:he=>K(W(void 0,ie),he)}):W(K,ie,!0),J=(K,ie={})=>{for(const he of K?Db(K):l.mount)l.mount.delete(he),l.array.delete(he),ie.keepValue||(jr(i,he),jr(o,he)),!ie.keepError&&jr(r.errors,he),!ie.keepDirty&&jr(r.dirtyFields,he),!ie.keepTouched&&jr(r.touchedFields,he),!n.shouldUnregister&&!ie.keepDefaultValue&&jr(a,he);h.values.next({values:{...o}}),h.state.next({...r,...ie.keepDirty?{isDirty:Z()}:{}}),!ie.keepIsValid&&k()},Ve=(K,ie={})=>{let he=rt(i,K);const Ie=qh(ie.disabled);return En(i,K,{...he||{},_f:{...he&&he._f?he._f:{ref:{name:K}},name:K,mount:!0,...ie}}),l.mount.add(K),or(ie.value)||En(o,K,ie.value),he?Ie&&En(o,K,ie.disabled?void 0:rt(o,K,A6(he._f))):_(K,!0,ie.value),{...Ie?{disabled:ie.disabled}:{},...n.progressive?{required:!!ie.required,min:$0(ie.min),max:$0(ie.max),minLength:$0(ie.minLength),maxLength:$0(ie.maxLength),pattern:$0(ie.pattern)}:{},name:K,onChange:ce,onBlur:ce,ref:xe=>{if(xe){Ve(K,ie),he=rt(i,K);const ke=or(xe.value)&&xe.querySelectorAll&&xe.querySelectorAll("input,select,textarea")[0]||xe,Be=O1t(ke),dt=he._f.refs||[];if(Be?dt.find(Re=>Re===ke):ke===he._f.ref)return;En(i,K,{_f:{...he._f,...Be?{refs:[...dt.filter(E6),ke,...Array.isArray(rt(a,K))?[{}]:[]],ref:{type:ke.type,name:K}}:{ref:ke}}}),_(K,!1,void 0,ke)}else he=rt(i,K,{}),he._f&&(he._f.mount=!1),(n.shouldUnregister||ie.shouldUnregister)&&!(x1t(l.array,K)&&s.action)&&l.unMount.add(K)}}},ye=()=>n.shouldFocusError&&L8(i,K=>K&&rt(r.errors,K),l.mount),We=(K,ie)=>async he=>{he&&(he.preventDefault&&he.preventDefault(),he.persist&&he.persist());let Ie=yl(o);if(h.state.next({isSubmitting:!0}),n.resolver){const{errors:xe,values:ke}=await R();r.errors=xe,Ie=ke}else await G(i);jr(r.errors,"root"),Ya(r.errors)?(h.state.next({errors:{}}),await K(Ie,he)):(ie&&await ie({...r.errors},he),ye(),setTimeout(ye)),h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ya(r.errors),submitCount:r.submitCount+1,errors:r.errors})},Pe=(K,ie={})=>{rt(i,K)&&(or(ie.defaultValue)?Q(K,rt(a,K)):(Q(K,ie.defaultValue),En(a,K,ie.defaultValue)),ie.keepTouched||jr(r.touchedFields,K),ie.keepDirty||(jr(r.dirtyFields,K),r.isDirty=ie.defaultValue?Z(K,rt(a,K)):Z()),ie.keepError||(jr(r.errors,K),f.isValid&&k()),h.state.next({...r}))},Ge=(K,ie={})=>{const he=K||a,Ie=yl(he),xe=K&&!Ya(K)?Ie:a;if(ie.keepDefaultValues||(a=he),!ie.keepValues){if(ie.keepDirtyValues||m)for(const ke of l.mount)rt(r.dirtyFields,ke)?En(xe,ke,rt(o,ke)):Q(ke,rt(xe,ke));else{if(b9&&or(K))for(const ke of l.mount){const Be=rt(i,ke);if(Be&&Be._f){const dt=Array.isArray(Be._f.refs)?Be._f.refs[0]:Be._f.ref;if(Gk(dt)){const Re=dt.closest("form");if(Re){Re.reset();break}}}}i={}}o=e.shouldUnregister?ie.keepDefaultValues?yl(a):{}:yl(xe),h.array.next({values:{...xe}}),h.values.next({values:{...xe}})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!s.mount&&t(),s.mount=!f.isValid||!!ie.keepIsValid,s.watch=!!e.shouldUnregister,h.state.next({submitCount:ie.keepSubmitCount?r.submitCount:0,isDirty:ie.keepDirty?r.isDirty:!!(ie.keepDefaultValues&&!kd(K,a)),isSubmitted:ie.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:ie.keepDirtyValues?r.dirtyFields:ie.keepDefaultValues&&K?T6(a,K):{},touchedFields:ie.keepTouched?r.touchedFields:{},errors:ie.keepErrors?r.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},Xe=(K,ie)=>Ge(qc(K)?K(o):K,ie);return{control:{register:Ve,unregister:J,getFieldState:ue,handleSubmit:We,setError:be,_executeSchema:R,_getWatch:W,_getDirty:Z,_updateValid:k,_removeUnmounted:V,_updateFieldArray:E,_getFieldArray:Y,_reset:Ge,_resetDefaultValues:()=>qc(n.defaultValues)&&n.defaultValues().then(K=>{Xe(K,n.resetOptions),h.state.next({isLoading:!1})}),_updateFormState:K=>{r={...r,...K}},_subjects:h,_proxyFormState:f,get _fields(){return i},get _formValues(){return o},get _state(){return s},set _state(K){s=K},get _defaultValues(){return a},get _names(){return l},set _names(K){l=K},get _formState(){return r},set _formState(K){r=K},get _options(){return n},set _options(K){n={...n,...K}}},trigger:L,register:Ve,handleSubmit:We,watch:ze,setValue:Q,getValues:de,reset:Xe,resetField:Pe,clearErrors:I,unregister:J,setError:be,setFocus:(K,ie={})=>{const he=rt(i,K),Ie=he&&he._f;if(Ie){const xe=Ie.refs?Ie.refs[0]:Ie.ref;xe.focus&&(xe.focus(),ie.shouldSelect&&xe.select())}},getFieldState:ue}}function Jv(e={}){const t=cn.useRef(),n=cn.useRef(),[r,i]=cn.useState({isDirty:!1,isValidating:!1,isLoading:qc(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:qc(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...P1t(e,()=>i(o=>({...o}))),formState:r});const a=t.current.control;return a._options=e,fU({subject:a._subjects.state,next:o=>{T1t(o,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),cn.useEffect(()=>{e.values&&!kd(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values):a._resetDefaultValues()},[e.values,a]),cn.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=E1t(r,a),t.current}function hf(e){this._maxSize=e,this.clear()}hf.prototype.clear=function(){this._size=0,this._values=Object.create(null)};hf.prototype.get=function(e){return this._values[e]};hf.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var j1t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,vU=/^\d+$/,V1t=/^\d/,q1t=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,H1t=/^\s*(['"]?)(.*?)(\1)\s*$/,x9=512,wO=new hf(x9),vO=new hf(x9),xO=new hf(x9),Nd={Cache:hf,split:I8,normalizePath:z6,setter:function(e){var t=z6(e);return vO.get(e)||vO.set(e,function(r,i){for(var a=0,o=t.length,s=r;a<o-1;){var l=t[a];if(l==="__proto__"||l==="constructor"||l==="prototype")return r;s=s[t[a++]]}s[t[a]]=i})},getter:function(e,t){var n=z6(e);return xO.get(e)||xO.set(e,function(i){for(var a=0,o=n.length;a<o;)if(i!=null||!t)i=i[n[a++]];else return;return i})},join:function(e){return e.reduce(function(t,n){return t+(C9(n)||vU.test(n)?"["+n+"]":(t?".":"")+n)},"")},forEach:function(e,t,n){U1t(Array.isArray(e)?e:I8(e),t,n)}};function z6(e){return wO.get(e)||wO.set(e,I8(e).map(function(t){return t.replace(H1t,"$2")}))}function I8(e){return e.match(j1t)||[""]}function U1t(e,t,n){var r=e.length,i,a,o,s;for(a=0;a<r;a++)i=e[a],i&&(K1t(i)&&(i='"'+i+'"'),s=C9(i),o=!s&&/^\d+$/.test(i),t.call(n,i,s,o,a,e))}function C9(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function W1t(e){return e.match(V1t)&&!e.match(vU)}function G1t(e){return q1t.test(e)}function K1t(e){return!C9(e)&&(W1t(e)||G1t(e))}const Y1t=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,Qv=e=>e.match(Y1t)||[],e2=e=>e[0].toUpperCase()+e.slice(1),S9=(e,t)=>Qv(e).join(t).toLowerCase(),xU=e=>Qv(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),Z1t=e=>e2(xU(e)),X1t=e=>S9(e,"_"),J1t=e=>S9(e,"-"),Q1t=e=>e2(S9(e," ")),eyt=e=>Qv(e).map(e2).join(" ");var F6={words:Qv,upperFirst:e2,camelCase:xU,pascalCase:Z1t,snakeCase:X1t,kebabCase:J1t,sentenceCase:Q1t,titleCase:eyt},D9={exports:{}};D9.exports=function(e){return CU(tyt(e),e)};D9.exports.array=CU;function CU(e,t){var n=e.length,r=new Array(n),i={},a=n,o=nyt(t),s=ryt(e);for(t.forEach(function(c){if(!s.has(c[0])||!s.has(c[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});a--;)i[a]||l(e[a],a,new Set);return r;function l(c,u,f){if(f.has(c)){var h;try{h=", node was:"+JSON.stringify(c)}catch{h=""}throw new Error("Cyclic dependency"+h)}if(!s.has(c))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(c));if(!i[u]){i[u]=!0;var m=o.get(c)||new Set;if(m=Array.from(m),u=m.length){f.add(c);do{var g=m[--u];l(g,s.get(g),f)}while(u);f.delete(c)}r[--n]=c}}}function tyt(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var i=e[n];t.add(i[0]),t.add(i[1])}return Array.from(t)}function nyt(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var i=e[n];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}function ryt(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}var iyt=D9.exports;const ayt=Qo(iyt),oyt=Object.prototype.toString,syt=Error.prototype.toString,lyt=RegExp.prototype.toString,cyt=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",uyt=/^Symbol\((.*)\)(.*)$/;function dyt(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function CO(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return dyt(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return cyt.call(e).replace(uyt,"Symbol($1)");const r=oyt.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+syt.call(e)+"]":r==="RegExp"?lyt.call(e):null}function Hh(e,t){let n=CO(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let a=CO(this[r],t);return a!==null?a:i},2)}function SU(e){return e==null?[]:[].concat(e)}let fyt=/\$\{\s*(\w+)\s*\}/g;class ba extends Error{static formatError(t,n){const r=n.label||n.path||"this";return r!==n.path&&(n=Object.assign({},n,{path:r})),typeof t=="string"?t.replace(fyt,(i,a)=>Hh(n[a])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,i){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],SU(t).forEach(a=>{ba.isError(a)?(this.errors.push(...a.errors),this.inner=this.inner.concat(a.inner.length?a.inner:a)):this.errors.push(a)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,ba)}}let _l={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const i=r!=null&&r!==n?` (cast from the value \`${Hh(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Hh(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${Hh(n,!0)}\``+i}},Oo={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},hyt={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},B8={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},pyt={isValue:"${path} field must be ${value}"},R8={noUnknown:"${path} field has unspecified keys: ${unknown}"},myt={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"};Object.assign(Object.create(null),{mixed:_l,string:Oo,number:hyt,date:B8,object:R8,array:myt,boolean:pyt});const E9=e=>e&&e.__isYupSchema__;class Xk{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:i,otherwise:a}=n,o=typeof r=="function"?r:(...s)=>s.every(l=>l===r);return new Xk(t,(s,l)=>{var c;let u=o(...s)?i:a;return(c=u==null?void 0:u(l))!=null?c:l})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(a=>a.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),i=this.fn(r,t,n);if(i===void 0||i===t)return t;if(!E9(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const e_={context:"$",value:"."};class pf{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===e_.context,this.isValue=this.key[0]===e_.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?e_.context:this.isValue?e_.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Nd.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let i=this.isContext?r:this.isValue?t:n;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}pf.prototype.__isYupRef=!0;const wd=e=>e==null;function Vf(e){function t({value:n,path:r="",options:i,originalValue:a,schema:o},s,l){const{name:c,test:u,params:f,message:h,skipAbsent:m}=e;let{parent:g,context:b,abortEarly:C=o.spec.abortEarly}=i;function w(O){return pf.isRef(O)?O.getValue(n,g,b):O}function k(O={}){const G=Object.assign({value:n,originalValue:a,label:o.spec.label,path:O.path||r,spec:o.spec},f,O.params);for(const Z of Object.keys(G))G[Z]=w(G[Z]);const V=new ba(ba.formatError(O.message||h,G),n,G.path,O.type||c);return V.params=G,V}const S=C?s:l;let E={path:r,parent:g,type:c,from:i.from,createError:k,resolve:w,options:i,originalValue:a,schema:o};const A=O=>{ba.isError(O)?S(O):O?l(null):S(k())},_=O=>{ba.isError(O)?S(O):s(O)},T=m&&wd(n);if(!i.sync){try{Promise.resolve(T?!0:u.call(E,n,E)).then(A,_)}catch(O){_(O)}return}let $;try{var R;if($=T?!0:u.call(E,n,E),typeof((R=$)==null?void 0:R.then)=="function")throw new Error(`Validation test of type: "${E.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(O){_(O);return}A($)}return t.OPTIONS=e,t}function gyt(e,t,n,r=n){let i,a,o;return t?(Nd.forEach(t,(s,l,c)=>{let u=l?s.slice(1,s.length-1):s;e=e.resolve({context:r,parent:i,value:n});let f=e.type==="tuple",h=c?parseInt(u,10):0;if(e.innerType||f){if(f&&!c)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${o}" must contain an index to the tuple element, e.g. "${o}[0]"`);if(n&&h>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[h],e=f?e.spec.types[h]:e.innerType}if(!c){if(!e.fields||!e.fields[u])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${o} which is a type: "${e.type}")`);i=n,n=n&&n[u],e=e.fields[u]}a=u,o=l?"["+s+"]":"."+s}),{schema:e,parent:i,parentPath:a}):{parent:i,parentPath:t,schema:e}}class Jk extends Set{describe(){const t=[];for(const n of this.values())t.push(pf.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new Jk(this.values())}merge(t,n){const r=this.clone();return t.forEach(i=>r.add(i)),n.forEach(i=>r.delete(i)),r}}function vh(e,t=new Map){if(E9(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=vh(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,i]of e.entries())n.set(r,vh(i,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(vh(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,i]of Object.entries(e))n[r]=vh(i,t)}else throw Error(`Unable to clone ${e}`);return n}let Bs=class{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new Jk,this._blacklist=new Jk,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(_l.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=vh(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const i=Object.assign({},n.spec,r.spec);return r.spec=i,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(a=>{t.tests.forEach(o=>{a.test(o.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((i,a)=>a.resolve(i,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,i;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(i=t.recursive)!=null?i:this.spec.recursive})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),i=n.assert==="ignore-optionality",a=r._cast(t,n);if(n.assert!==!1&&!r.isType(a)){if(i&&wd(a))return a;let o=Hh(t),s=Hh(a);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}". attempted value: ${o} -`+(s!==o?`result of cast: ${s}`:""))}return a}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((i,a)=>a.call(this,i,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,i){let{path:a,originalValue:o=t,strict:s=this.spec.strict}=n,l=t;s||(l=this._cast(l,Object.assign({assert:!1},n)));let c=[];for(let u of Object.values(this.internalTests))u&&c.push(u);this.runTests({path:a,value:l,originalValue:o,options:n,tests:c},r,u=>{if(u.length)return i(u,l);this.runTests({path:a,value:l,originalValue:o,options:n,tests:this.tests},r,i)})}runTests(t,n,r){let i=!1,{tests:a,value:o,originalValue:s,path:l,options:c}=t,u=b=>{i||(i=!0,n(b,o))},f=b=>{i||(i=!0,r(b,o))},h=a.length,m=[];if(!h)return f([]);let g={value:o,originalValue:s,path:l,options:c,schema:this};for(let b=0;b<a.length;b++){const C=a[b];C(g,u,function(k){k&&(m=m.concat(k)),--h<=0&&f(m)})}}asNestedTest({key:t,index:n,parent:r,parentPath:i,originalParent:a,options:o}){const s=t??n;if(s==null)throw TypeError("Must include `key` or `index` for nested validations");const l=typeof s=="number";let c=r[s];const u=Object.assign({},o,{strict:!0,parent:r,value:c,originalValue:a[s],key:void 0,[l?"index":"key"]:s,path:l||s.includes(".")?`${i||""}[${c?s:`"${s}"`}]`:(i?`${i}.`:"")+t});return(f,h,m)=>this.resolve(u)._validate(c,u,h,m)}validate(t,n){let r=this.resolve(Object.assign({},n,{value:t}));return new Promise((i,a)=>r._validate(t,n,(o,s)=>{ba.isError(o)&&(o.value=s),a(o)},(o,s)=>{o.length?a(new ba(o,s)):i(s)}))}validateSync(t,n){let r=this.resolve(Object.assign({},n,{value:t})),i;return r._validate(t,Object.assign({},n,{sync:!0}),(a,o)=>{throw ba.isError(a)&&(a.value=o),a},(a,o)=>{if(a.length)throw new ba(a,t);i=o}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(ba.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(ba.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):vh(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=Vf({message:n,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=Vf({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=_l.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=_l.notNull){return this.nullability(!1,t)}required(t=_l.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=_l.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=Vf(n),a=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(o=>!(o.OPTIONS.name===n.name&&(a||o.OPTIONS.test===i.OPTIONS.test))),r.tests.push(i),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),i=CU(t).map(a=>new pf(a));return i.forEach(a=>{a.isSibling&&r.deps.push(a.key)}),r.conditions.push(typeof n=="function"?new Xk(i,n):Xk.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=Vf({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=_l.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=Vf({message:n,name:"oneOf",skipAbsent:!0,test(i){let a=this.schema._whitelist,o=a.resolveAll(this.resolve);return o.includes(i)?!0:this.createError({params:{values:Array.from(a).join(", "),resolved:o}})}}),r}notOneOf(t,n=_l.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=Vf({message:n,name:"notOneOf",test(i){let a=this.schema._blacklist,o=a.resolveAll(this.resolve);return o.includes(i)?this.createError({params:{values:Array.from(a).join(", "),resolved:o}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:i,optional:a,nullable:o}=n.spec;return{meta:i,label:r,optional:a,nullable:o,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(l=>({name:l.OPTIONS.name,params:l.OPTIONS.params})).filter((l,c,u)=>u.findIndex(f=>f.name===l.name)===c)}}};Bs.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Bs.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:a,schema:o}=gyt(this,t,n,r.context);return o[e](i&&i[a],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])Bs.prototype[e]=Bs.prototype.oneOf;for(const e of["not","nope"])Bs.prototype[e]=Bs.prototype.notOneOf;let yyt=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,_yt=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,byt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,kyt=e=>wd(e)||e===e.trim(),wyt={}.toString();function Jd(){return new SU}class SU extends Bs{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const i=t!=null&&t.toString?t.toString():t;return i===wyt?t:i})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||_l.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=Oo.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=Oo.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=Oo.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,i,a;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:i,name:a}=n:i=n),this.test({name:a||"matches",message:i||Oo.matches,params:{regex:t},skipAbsent:!0,test:o=>o===""&&r||o.search(t)!==-1})}email(t=Oo.email){return this.matches(yyt,{name:"email",message:t,excludeEmptyString:!0})}url(t=Oo.url){return this.matches(_yt,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Oo.uuid){return this.matches(byt,{name:"uuid",message:t,excludeEmptyString:!1})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Oo.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:kyt})}lowercase(t=Oo.lowercase){return this.transform(n=>wd(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>wd(n)||n===n.toLowerCase()})}uppercase(t=Oo.uppercase){return this.transform(n=>wd(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>wd(n)||n===n.toUpperCase()})}}Jd.prototype=SU.prototype;var vyt=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;function xyt(e){var t=[1,4,5,6,7,10,11],n=0,r,i;if(i=vyt.exec(e)){for(var a=0,o;o=t[a];++a)i[o]=+i[o]||0;i[2]=(+i[2]||1)-1,i[3]=+i[3]||1,i[7]=i[7]?String(i[7]).substr(0,3):0,(i[8]===void 0||i[8]==="")&&(i[9]===void 0||i[9]==="")?r=+new Date(i[1],i[2],i[3],i[4],i[5],i[6],i[7]):(i[8]!=="Z"&&i[9]!==void 0&&(n=i[10]*60+i[11],i[9]==="+"&&(n=0-n)),r=Date.UTC(i[1],i[2],i[3],i[4],i[5]+n,i[6],i[7]))}else r=Date.parse?Date.parse(e):NaN;return r}let Cyt=new Date(""),Syt=e=>Object.prototype.toString.call(e)==="[object Date]";class t2 extends Bs{constructor(){super({type:"date",check(t){return Syt(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=xyt(t),isNaN(t)?t2.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(pf.isRef(t))r=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=i}return r}min(t,n=B8.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(i){return i>=this.resolve(r)}})}max(t,n=B8.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(i){return i<=this.resolve(r)}})}}t2.INVALID_DATE=Cyt;t2.prototype;function Dyt(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([o,s])=>`${o}-${s}`));function a(o,s){let l=Nd.split(o)[0];r.add(l),i.has(`${s}-${l}`)||n.push([s,l])}for(const o of Object.keys(e)){let s=e[o];r.add(o),pf.isRef(s)&&s.isSibling?a(s.path,o):E9(s)&&"deps"in s&&s.deps.forEach(l=>a(l,o))}return ayt.array(Array.from(r),n).reverse()}function SO(e,t){let n=1/0;return e.some((r,i)=>{var a;if((a=t.path)!=null&&a.includes(r))return n=i,!0}),n}function DU(e){return(t,n)=>SO(e,t)-SO(e,n)}const Eyt=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function Tb(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=Tb(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=Tb(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Tb)}):"optional"in e?e.optional():e}const Tyt=(e,t)=>{const n=[...Nd.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),i=Nd.getter(Nd.join(n),!0)(e);return!!(i&&r in i)};let DO=e=>Object.prototype.toString.call(e)==="[object Object]";function Ayt(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const zyt=DU([]);function d1(e){return new EU(e)}class EU extends Bs{constructor(t){super({type:"object",check(n){return DO(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=zyt,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let i=super._cast(t,n);if(i===void 0)return this.getDefault(n);if(!this._typeCheck(i))return i;let a=this.fields,o=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,s=[].concat(this._nodes,Object.keys(i).filter(f=>!this._nodes.includes(f))),l={},c=Object.assign({},n,{parent:l,__validating:n.__validating||!1}),u=!1;for(const f of s){let h=a[f],m=f in i;if(h){let g,b=i[f];c.path=(n.path?`${n.path}.`:"")+f,h=h.resolve({value:b,context:n.context,parent:l});let C=h instanceof Bs?h.spec:void 0,w=C==null?void 0:C.strict;if(C!=null&&C.strip){u=u||f in i;continue}g=!n.__validating||!w?h.cast(i[f],c):i[f],g!==void 0&&(l[f]=g)}else m&&!o&&(l[f]=i[f]);(m!==f in l||l[f]!==i[f])&&(u=!0)}return u?l:i}_validate(t,n={},r,i){let{from:a=[],originalValue:o=t,recursive:s=this.spec.recursive}=n;n.from=[{schema:this,value:o},...a],n.__validating=!0,n.originalValue=o,super._validate(t,n,r,(l,c)=>{if(!s||!DO(c)){i(l,c);return}o=o||c;let u=[];for(let f of this._nodes){let h=this.fields[f];!h||pf.isRef(h)||u.push(h.asNestedTest({options:n,key:f,parent:c,parentPath:n.path,originalParent:o}))}this.runTests({tests:u,value:c,originalValue:o,options:n},r,f=>{i(f.sort(this._sortErrors).concat(l),c)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[i,a]of Object.entries(this.fields)){const o=r[i];r[i]=o===void 0?a:o}return n.withMutation(i=>i.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var i;const a=this.fields[r];let o=t;(i=o)!=null&&i.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[r]})),n[r]=a&&"getDefault"in a?a.getDefault(o):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=Dyt(t,n),r._sortErrors=DU(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let i=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),i=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),i)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return Tb(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n)}omit(t){const n=Object.assign({},this.fields);for(const r of t)delete n[r];return this.setFields(n)}from(t,n,r){let i=Nd.getter(t,!0);return this.transform(a=>{if(!a)return a;let o=a;return Tyt(a,t)&&(o=Object.assign({},a),r||delete o[t],o[n]=i(a)),o})}json(){return this.transform(Eyt)}noUnknown(t=!0,n=R8.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(i){if(i==null)return!0;const a=Ayt(this.schema,i);return!t||a.length===0||this.createError({params:{unknown:a.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=R8.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const i of Object.keys(n))r[t(i)]=n[i];return r})}camelCase(){return this.transformKeys(F6.camelCase)}snakeCase(){return this.transformKeys(F6.snakeCase)}constantCase(){return this.transformKeys(t=>F6.snakeCase(t).toUpperCase())}describe(t){let n=super.describe(t);n.fields={};for(const[i,a]of Object.entries(this.fields)){var r;let o=t;(r=o)!=null&&r.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[i]})),n.fields[i]=a.describe(o)}return n}}d1.prototype=EU.prototype;d1().shape({alt:Jd(),title:Jd()});const Fyt=({alt:e,title:t})=>Jv({mode:"onChange",defaultValues:{alt:e,title:t}}),$yt=({text:e,required:t=!1,...n})=>j(Myt,{required:t,...n,children:e}),Myt=Ae.label.withConfig({displayName:"LabelStyled"})(["display:inline-flex;justify-content:flex-start;margin-bottom:",";color:",";",""],ee(8),e=>e.error?e.theme.colors.darkRed:e.theme.colors.lightBlack,e=>e.required&&Tn(["&::after{margin-left:",";color:",";font-size:",";content:'*';}"],ee(3),t=>t.theme.colors.darkRed,ee(10))),kp=F.forwardRef(({className:e,required:t,name:n,label:r,error:i,...a},o)=>He(Oyt,{className:e,children:[r&&j($yt,{text:r,htmlFor:n,required:t}),j(Nyt,{...a,ref:o,required:t,name:n,error:!!i}),i&&j(Lyt,{children:i})]})),Oyt=Ae.div.withConfig({displayName:"InputFieldStyled"})(["display:flex;flex-direction:column;margin-bottom:",";"],ee(16)),Nyt=Ae.input.withConfig({displayName:"InputStyled"})(["width:100%;padding:"," ",";color:",";font-size:",";font-weight:500;outline:0;border:1px solid ",";border-radius:",";transition:border-color 0.2s ease-in;&::placeholder{color:",";}&:hover,&:focus{border-color:",";}"],ee(10),ee(16),e=>e.theme.colors.lightBlack,ee(16),e=>e.error?e.theme.colors.darkRed:e.theme.colors.lightGrey,ee(8),e=>e.theme.colors.lightGrey,e=>e.theme.colors.lightBlack),Lyt=Ae.span.withConfig({displayName:"ErrorStyled"})(["color:",";font-size:",";"],e=>e.theme.colors.darkRed,ee(12)),TU=F.createContext({onOpen:()=>{},isOpen:!1,onClose:()=>{}}),Iyt=({onClose:e,isOpen:t,onOpen:n,children:r})=>{const i=F.useMemo(()=>({onOpen:n,isOpen:t,onClose:e}),[e,t,n]);return j(TU.Provider,{value:i,children:r})},Hp=()=>F.useContext(TU),n2=({loading:e,saveText:t,className:n="",isDisabled:r,cancelText:i,withCancel:a=!0,onSaveClick:o,onCancelClick:s,saveButtonType:l="button"})=>{const{onClose:c}=Hp();return He(Byt,{className:n,children:[a&&j(Xt,{color:"secondary",variant:"outlined",type:l,onClick:s||c,oval:!0,loading:e,children:i||"Cancel"}),j(Xt,{color:"primary",variant:"contained",type:l,oval:!0,onClick:o?u=>o(u,c):void 0,disabled:r,loading:e,children:t||"Save"})]})},Byt=Ae.div.withConfig({displayName:"ModalActionsStyled"})(["display:flex;gap:",";justify-content:flex-end;align-items:center;"],ee(8)),f1=Ae.div.withConfig({displayName:"ModalBody"})(["flex:1;padding:"," "," ",";color:",";font-size:",";line-height:",";"],ee(12),ee(24),ee(12),e=>e.theme.colors.lightBlack,ee(16),ee(21)),T9=Ae.div.withConfig({displayName:"ModalFooter"})(["padding:"," "," ",";font-size:",";line-height:",";"],ee(12),ee(24),ee(16),ee(16),ee(18)),Ryt=({alt:e,title:t,onImageEdit:n,onImageRemove:r})=>{const{onClose:i}=Hp(),{handleSubmit:a,register:o}=Fyt({alt:e,title:t});return He("form",{onSubmit:a(l=>{n(l),i()}),children:[He(Pyt,{children:[j(kp,{...o("title"),placeholder:"Add a title",label:"Image title"}),j(kp,{...o("alt"),label:"Alt text",placeholder:"Describe image for search optimization"})]}),He(jyt,{children:[j(Xt,{oval:!0,onClick:r,color:"danger",variant:"outlined",children:"Remove image"}),j(n2,{saveButtonType:"submit"})]})]})},Pyt=Ae(f1).withConfig({displayName:"ModalBodyStyled"})(["padding-top:",";"],ee(32)),jyt=Ae(T9).withConfig({displayName:"ModalFooterStyled"})(["display:flex;align-items:center;justify-content:space-between;"]),AU=F.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),r2=F.createContext({}),i2=F.createContext(null),a2=typeof document<"u",Qk=a2?F.useLayoutEffect:F.useEffect,zU=F.createContext({strict:!1});function Vyt(e,t,n,r){const{visualElement:i}=F.useContext(r2),a=F.useContext(zU),o=F.useContext(i2),s=F.useContext(AU).reducedMotion,l=F.useRef();r=r||a.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:s}));const c=l.current;return F.useInsertionEffect(()=>{c&&c.update(n,o)}),Qk(()=>{c&&c.render()}),F.useEffect(()=>{c&&c.updateFeatures()}),(window.HandoffAppearAnimations?Qk:F.useEffect)(()=>{c&&c.animationState&&c.animationState.animateChanges()}),c}function xh(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function qyt(e,t,n){return F.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):xh(n)&&(n.current=r))},[t])}function xg(e){return typeof e=="string"||Array.isArray(e)}function o2(e){return typeof e=="object"&&typeof e.start=="function"}const A9=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],z9=["initial",...A9];function s2(e){return o2(e.animate)||z9.some(t=>xg(e[t]))}function FU(e){return!!(s2(e)||e.variants)}function Hyt(e,t){if(s2(e)){const{initial:n,animate:r}=e;return{initial:n===!1||xg(n)?n:void 0,animate:xg(r)?r:void 0}}return e.inherit!==!1?t:{}}function Uyt(e){const{initial:t,animate:n}=Hyt(e,F.useContext(r2));return F.useMemo(()=>({initial:t,animate:n}),[EO(t),EO(n)])}function EO(e){return Array.isArray(e)?e.join(" "):e}const TO={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Cg={};for(const e in TO)Cg[e]={isEnabled:t=>TO[e].some(n=>!!t[n])};function Wyt(e){for(const t in e)Cg[t]={...Cg[t],...e[t]}}const F9=F.createContext({}),$U=F.createContext({}),Gyt=Symbol.for("motionComponentSymbol");function Kyt({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&Wyt(e);function a(s,l){let c;const u={...F.useContext(AU),...s,layoutId:Yyt(s)},{isStatic:f}=u,h=Uyt(s),m=r(s,f);if(!f&&a2){h.visualElement=Vyt(i,m,u,t);const g=F.useContext($U),b=F.useContext(zU).strict;h.visualElement&&(c=h.visualElement.loadFeatures(u,b,e,g))}return F.createElement(r2.Provider,{value:h},c&&h.visualElement?F.createElement(c,{visualElement:h.visualElement,...u}):null,n(i,s,qyt(m,h.visualElement,l),m,f,h.visualElement))}const o=F.forwardRef(a);return o[Gyt]=i,o}function Yyt({layoutId:e}){const t=F.useContext(F9).id;return t&&e!==void 0?t+"-"+e:e}function Zyt(e){function t(r,i={}){return Kyt(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const Xyt=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function $9(e){return typeof e!="string"||e.includes("-")?!1:!!(Xyt.indexOf(e)>-1||/[A-Z]/.test(e))}const ew={};function Jyt(e){Object.assign(ew,e)}const h1=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],mf=new Set(h1);function MU(e,{layout:t,layoutId:n}){return mf.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ew[e]||e==="opacity")}const Zi=e=>!!(e&&e.getVelocity),Qyt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},e_t=h1.length;function t_t(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let a="";for(let o=0;o<e_t;o++){const s=h1[o];if(e[s]!==void 0){const l=Qyt[s]||s;a+=`${l}(${e[s]}) `}}return t&&!e.z&&(a+="translateZ(0)"),a=a.trim(),i?a=i(e,r?"":a):n&&r&&(a="none"),a}const OU=e=>t=>typeof t=="string"&&t.startsWith(e),NU=OU("--"),P8=OU("var(--"),n_t=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,r_t=(e,t)=>t&&typeof e=="number"?t.transform(e):e,fu=(e,t,n)=>Math.min(Math.max(n,e),t),gf={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Nm={...gf,transform:e=>fu(0,1,e)},t_={...gf,default:1},Lm=e=>Math.round(e*1e5)/1e5,l2=/(-)?([\d]*\.?[\d])+/g,LU=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,i_t=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function p1(e){return typeof e=="string"}const m1=e=>({test:t=>p1(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ec=m1("deg"),zs=m1("%"),xt=m1("px"),a_t=m1("vh"),o_t=m1("vw"),AO={...zs,parse:e=>zs.parse(e)/100,transform:e=>zs.transform(e*100)},zO={...gf,transform:Math.round},IU={borderWidth:xt,borderTopWidth:xt,borderRightWidth:xt,borderBottomWidth:xt,borderLeftWidth:xt,borderRadius:xt,radius:xt,borderTopLeftRadius:xt,borderTopRightRadius:xt,borderBottomRightRadius:xt,borderBottomLeftRadius:xt,width:xt,maxWidth:xt,height:xt,maxHeight:xt,size:xt,top:xt,right:xt,bottom:xt,left:xt,padding:xt,paddingTop:xt,paddingRight:xt,paddingBottom:xt,paddingLeft:xt,margin:xt,marginTop:xt,marginRight:xt,marginBottom:xt,marginLeft:xt,rotate:Ec,rotateX:Ec,rotateY:Ec,rotateZ:Ec,scale:t_,scaleX:t_,scaleY:t_,scaleZ:t_,skew:Ec,skewX:Ec,skewY:Ec,distance:xt,translateX:xt,translateY:xt,translateZ:xt,x:xt,y:xt,z:xt,perspective:xt,transformPerspective:xt,opacity:Nm,originX:AO,originY:AO,originZ:xt,zIndex:zO,fillOpacity:Nm,strokeOpacity:Nm,numOctaves:zO};function M9(e,t,n,r){const{style:i,vars:a,transform:o,transformOrigin:s}=e;let l=!1,c=!1,u=!0;for(const f in t){const h=t[f];if(NU(f)){a[f]=h;continue}const m=IU[f],g=r_t(h,m);if(mf.has(f)){if(l=!0,o[f]=g,!u)continue;h!==(m.default||0)&&(u=!1)}else f.startsWith("origin")?(c=!0,s[f]=g):i[f]=g}if(t.transform||(l||r?i.transform=t_t(e.transform,n,u,r):i.transform&&(i.transform="none")),c){const{originX:f="50%",originY:h="50%",originZ:m=0}=s;i.transformOrigin=`${f} ${h} ${m}`}}const O9=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function BU(e,t,n){for(const r in t)!Zi(t[r])&&!MU(r,n)&&(e[r]=t[r])}function s_t({transformTemplate:e},t,n){return F.useMemo(()=>{const r=O9();return M9(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function l_t(e,t,n){const r=e.style||{},i={};return BU(i,r,e),Object.assign(i,s_t(e,t,n)),e.transformValues?e.transformValues(i):i}function c_t(e,t,n){const r={},i=l_t(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const u_t=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function tw(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||u_t.has(e)}let RU=e=>!tw(e);function d_t(e){e&&(RU=t=>t.startsWith("on")?!tw(t):e(t))}try{d_t(require("@emotion/is-prop-valid").default)}catch{}function f_t(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(RU(i)||n===!0&&tw(i)||!t&&!tw(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function FO(e,t,n){return typeof e=="string"?e:xt.transform(t+n*e)}function h_t(e,t,n){const r=FO(t,e.x,e.width),i=FO(n,e.y,e.height);return`${r} ${i}`}const p_t={offset:"stroke-dashoffset",array:"stroke-dasharray"},m_t={offset:"strokeDashoffset",array:"strokeDasharray"};function g_t(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?p_t:m_t;e[a.offset]=xt.transform(-r);const o=xt.transform(t),s=xt.transform(n);e[a.array]=`${o} ${s}`}function N9(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:o,pathSpacing:s=1,pathOffset:l=0,...c},u,f,h){if(M9(e,c,u,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g,dimensions:b}=e;m.transform&&(b&&(g.transform=m.transform),delete m.transform),b&&(i!==void 0||a!==void 0||g.transform)&&(g.transformOrigin=h_t(b,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),o!==void 0&&g_t(m,o,s,l,!1)}const PU=()=>({...O9(),attrs:{}}),L9=e=>typeof e=="string"&&e.toLowerCase()==="svg";function y_t(e,t,n,r){const i=F.useMemo(()=>{const a=PU();return N9(a,t,{enableHardwareAcceleration:!1},L9(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};BU(a,e.style,e),i.style={...a,...i.style}}return i}function __t(e=!1){return(n,r,i,{latestValues:a},o)=>{const l=($9(n)?y_t:c_t)(r,a,o,n),u={...f_t(r,typeof n=="string",e),...l,ref:i},{children:f}=r,h=F.useMemo(()=>Zi(f)?f.get():f,[f]);return F.createElement(n,{...u,children:h})}}const I9=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function jU(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const VU=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function qU(e,t,n,r){jU(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(VU.has(i)?i:I9(i),t.attrs[i])}function B9(e,t){const{style:n}=e,r={};for(const i in n)(Zi(n[i])||t.style&&Zi(t.style[i])||MU(i,e))&&(r[i]=n[i]);return r}function HU(e,t){const n=B9(e,t);for(const r in e)if(Zi(e[r])||Zi(t[r])){const i=h1.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function R9(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function UU(e){const t=F.useRef(null);return t.current===null&&(t.current=e()),t.current}const nw=e=>Array.isArray(e),b_t=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),k_t=e=>nw(e)?e[e.length-1]||0:e;function Ab(e){const t=Zi(e)?e.get():e;return b_t(t)?t.toValue():t}function w_t({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,a){const o={latestValues:v_t(r,i,a,e),renderState:t()};return n&&(o.mount=s=>n(r,s,o)),o}const WU=e=>(t,n)=>{const r=F.useContext(r2),i=F.useContext(i2),a=()=>w_t(e,t,r,i);return n?a():UU(a)};function v_t(e,t,n,r){const i={},a=r(e,{});for(const h in a)i[h]=Ab(a[h]);let{initial:o,animate:s}=e;const l=s2(e),c=FU(e);t&&c&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const f=u?s:o;return f&&typeof f!="boolean"&&!o2(f)&&(Array.isArray(f)?f:[f]).forEach(m=>{const g=R9(e,m);if(!g)return;const{transitionEnd:b,transition:C,...w}=g;for(const k in w){let S=w[k];if(Array.isArray(S)){const E=u?S.length-1:0;S=S[E]}S!==null&&(i[k]=S)}for(const k in b)i[k]=b[k]}),i}const x_t={useVisualState:WU({scrapeMotionValuesFromProps:HU,createRenderState:PU,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}N9(n,r,{enableHardwareAcceleration:!1},L9(t.tagName),e.transformTemplate),qU(t,n)}})},C_t={useVisualState:WU({scrapeMotionValuesFromProps:B9,createRenderState:O9})};function S_t(e,{forwardMotionProps:t=!1},n,r){return{...$9(e)?x_t:C_t,preloadedFeatures:n,useRender:__t(t),createVisualElement:r,Component:e}}function El(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const GU=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function c2(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const D_t=e=>t=>GU(t)&&e(t,c2(t));function zl(e,t,n,r){return El(e,t,D_t(n),r)}const E_t=(e,t)=>n=>t(e(n)),ru=(...e)=>e.reduce(E_t);function KU(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const $O=KU("dragHorizontal"),MO=KU("dragVertical");function YU(e){let t=!1;if(e==="y")t=MO();else if(e==="x")t=$O();else{const n=$O(),r=MO();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function ZU(){const e=YU(!0);return e?(e(),!1):!0}class Fu{constructor(t){this.isMounted=!1,this.node=t}update(){}}function T_t(e){let t=[],n=[],r=0,i=!1,a=!1;const o=new WeakSet,s={schedule:(l,c=!1,u=!1)=>{const f=u&&i,h=f?t:n;return c&&o.add(l),h.indexOf(l)===-1&&(h.push(l),f&&i&&(r=t.length)),l},cancel:l=>{const c=n.indexOf(l);c!==-1&&n.splice(c,1),o.delete(l)},process:l=>{if(i){a=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let c=0;c<r;c++){const u=t[c];u(l),o.has(u)&&(s.schedule(u),e())}i=!1,a&&(a=!1,s.process(l))}};return s}const Wn={delta:0,timestamp:0,isProcessing:!1},A_t=40;let j8=!0,Sg=!1;const u2=["read","update","preRender","render","postRender"],Uh=u2.reduce((e,t)=>(e[t]=T_t(()=>Sg=!0),e),{}),z_t=e=>Uh[e].process(Wn),XU=e=>{Sg=!1,Wn.delta=j8?1e3/60:Math.max(Math.min(e-Wn.timestamp,A_t),1),Wn.timestamp=e,Wn.isProcessing=!0,u2.forEach(z_t),Wn.isProcessing=!1,Sg&&(j8=!1,requestAnimationFrame(XU))},F_t=()=>{Sg=!0,j8=!0,Wn.isProcessing||requestAnimationFrame(XU)},jn=u2.reduce((e,t)=>{const n=Uh[t];return e[t]=(r,i=!1,a=!1)=>(Sg||F_t(),n.schedule(r,i,a)),e},{});function Vl(e){u2.forEach(t=>Uh[t].cancel(e))}function OO(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(a,o)=>{if(a.type==="touch"||ZU())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[r]&&jn.update(()=>s[r](a,o))};return zl(e.current,n,i,{passive:!e.getProps()[r]})}class $_t extends Fu{mount(){this.unmount=ru(OO(this.node,!0),OO(this.node,!1))}unmount(){}}class M_t extends Fu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ru(El(this.node.current,"focus",()=>this.onFocus()),El(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const JU=(e,t)=>t?e===t?!0:JU(e,t.parentElement):!1,vr=e=>e;function $6(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,c2(n))}class O_t extends Fu{constructor(){super(...arguments),this.removeStartListeners=vr,this.removeEndListeners=vr,this.removeAccessibleListeners=vr,this.startPointerPress=(t,n)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),a=zl(window,"pointerup",(s,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:u}=this.node.getProps();jn.update(()=>{JU(this.node.current,s.target)?c&&c(s,l):u&&u(s,l)})},{passive:!(r.onTap||r.onPointerUp)}),o=zl(window,"pointercancel",(s,l)=>this.cancelPress(s,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=ru(a,o),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=a=>{if(a.key!=="Enter"||this.isPressing)return;const o=s=>{s.key!=="Enter"||!this.checkPressEnd()||$6("up",(l,c)=>{const{onTap:u}=this.node.getProps();u&&jn.update(()=>u(l,c))})};this.removeEndListeners(),this.removeEndListeners=El(this.node.current,"keyup",o),$6("down",(s,l)=>{this.startPress(s,l)})},n=El(this.node.current,"keydown",t),r=()=>{this.isPressing&&$6("cancel",(a,o)=>this.cancelPress(a,o))},i=El(this.node.current,"blur",r);this.removeAccessibleListeners=ru(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&jn.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ZU()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&jn.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=zl(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=El(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ru(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const V8=new WeakMap,M6=new WeakMap,N_t=e=>{const t=V8.get(e.target);t&&t(e)},L_t=e=>{e.forEach(N_t)};function I_t({root:e,...t}){const n=e||document;M6.has(n)||M6.set(n,{});const r=M6.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(L_t,{root:e,...t})),r[i]}function B_t(e,t,n){const r=I_t(t);return V8.set(e,n),r.observe(e),()=>{V8.delete(e),r.unobserve(e)}}const R_t={some:0,all:1};class P_t extends Fu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:R_t[i]},s=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,a&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),h=c?u:f;h&&h(l)};return B_t(this.node.current,o,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(j_t(t,n))&&this.startObserver()}unmount(){}}function j_t({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const V_t={inView:{Feature:P_t},tap:{Feature:O_t},focus:{Feature:M_t},hover:{Feature:$_t}};function QU(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function q_t(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function H_t(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function d2(e,t,n){const r=e.getProps();return R9(r,t,n!==void 0?n:r.custom,q_t(e),H_t(e))}const U_t="framerAppearId",W_t="data-"+I9(U_t);let G_t=vr,P9=vr;const iu=e=>e*1e3,Fl=e=>e/1e3,K_t={current:!1},eW=e=>Array.isArray(e)&&typeof e[0]=="number";function tW(e){return!!(!e||typeof e=="string"&&nW[e]||eW(e)||Array.isArray(e)&&e.every(tW))}const om=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,nW={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:om([0,.65,.55,1]),circOut:om([.55,0,1,.45]),backIn:om([.31,.01,.66,-.59]),backOut:om([.33,1.53,.69,.99])};function rW(e){if(e)return eW(e)?om(e):Array.isArray(e)?e.map(rW):nW[e]}function Y_t(e,t,n,{delay:r=0,duration:i,repeat:a=0,repeatType:o="loop",ease:s,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=rW(s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"})}const NO={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},O6={},iW={};for(const e in NO)iW[e]=()=>(O6[e]===void 0&&(O6[e]=NO[e]()),O6[e]);function Z_t(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const aW=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,X_t=1e-7,J_t=12;function Q_t(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=aW(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>X_t&&++s<J_t);return o}function g1(e,t,n,r){if(e===t&&n===r)return vr;const i=a=>Q_t(a,0,1,e,n);return a=>a===0||a===1?a:aW(i(a),t,r)}const ebt=g1(.42,0,1,1),tbt=g1(0,0,.58,1),oW=g1(.42,0,.58,1),nbt=e=>Array.isArray(e)&&typeof e[0]!="number",sW=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,lW=e=>t=>1-e(1-t),cW=e=>1-Math.sin(Math.acos(e)),j9=lW(cW),rbt=sW(j9),uW=g1(.33,1.53,.69,.99),V9=lW(uW),ibt=sW(V9),abt=e=>(e*=2)<1?.5*V9(e):.5*(2-Math.pow(2,-10*(e-1))),obt={linear:vr,easeIn:ebt,easeInOut:oW,easeOut:tbt,circIn:cW,circInOut:rbt,circOut:j9,backIn:V9,backInOut:ibt,backOut:uW,anticipate:abt},LO=e=>{if(Array.isArray(e)){P9(e.length===4);const[t,n,r,i]=e;return g1(t,n,r,i)}else if(typeof e=="string")return obt[e];return e},q9=(e,t)=>n=>!!(p1(n)&&i_t.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),dW=(e,t,n)=>r=>{if(!p1(r))return r;const[i,a,o,s]=r.match(l2);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s!==void 0?parseFloat(s):1}},sbt=e=>fu(0,255,e),N6={...gf,transform:e=>Math.round(sbt(e))},vd={test:q9("rgb","red"),parse:dW("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+N6.transform(e)+", "+N6.transform(t)+", "+N6.transform(n)+", "+Lm(Nm.transform(r))+")"};function lbt(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const q8={test:q9("#"),parse:lbt,transform:vd.transform},Ch={test:q9("hsl","hue"),parse:dW("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+zs.transform(Lm(t))+", "+zs.transform(Lm(n))+", "+Lm(Nm.transform(r))+")"},hi={test:e=>vd.test(e)||q8.test(e)||Ch.test(e),parse:e=>vd.test(e)?vd.parse(e):Ch.test(e)?Ch.parse(e):q8.parse(e),transform:e=>p1(e)?e:e.hasOwnProperty("red")?vd.transform(e):Ch.transform(e)},Yn=(e,t,n)=>-n*e+n*t+e;function L6(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function cbt({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=L6(l,s,e+1/3),a=L6(l,s,e),o=L6(l,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}const I6=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},ubt=[q8,vd,Ch],dbt=e=>ubt.find(t=>t.test(e));function IO(e){const t=dbt(e);let n=t.parse(e);return t===Ch&&(n=cbt(n)),n}const fW=(e,t)=>{const n=IO(e),r=IO(t),i={...n};return a=>(i.red=I6(n.red,r.red,a),i.green=I6(n.green,r.green,a),i.blue=I6(n.blue,r.blue,a),i.alpha=Yn(n.alpha,r.alpha,a),vd.transform(i))};function fbt(e){var t,n;return isNaN(e)&&p1(e)&&(((t=e.match(l2))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(LU))===null||n===void 0?void 0:n.length)||0)>0}const hW={regex:n_t,countKey:"Vars",token:"${v}",parse:vr},pW={regex:LU,countKey:"Colors",token:"${c}",parse:hi.parse},mW={regex:l2,countKey:"Numbers",token:"${n}",parse:gf.parse};function B6(e,{regex:t,countKey:n,token:r,parse:i}){const a=e.tokenised.match(t);a&&(e["num"+n]=a.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...a.map(i)))}function rw(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&B6(n,hW),B6(n,pW),B6(n,mW),n}function gW(e){return rw(e).values}function yW(e){const{values:t,numColors:n,numVars:r,tokenised:i}=rw(e),a=t.length;return o=>{let s=i;for(let l=0;l<a;l++)l<r?s=s.replace(hW.token,o[l]):l<r+n?s=s.replace(pW.token,hi.transform(o[l])):s=s.replace(mW.token,Lm(o[l]));return s}}const hbt=e=>typeof e=="number"?0:e;function pbt(e){const t=gW(e);return yW(e)(t.map(hbt))}const hu={test:fbt,parse:gW,createTransformer:yW,getAnimatableNone:pbt},_W=(e,t)=>n=>`${n>0?t:e}`;function bW(e,t){return typeof e=="number"?n=>Yn(e,t,n):hi.test(e)?fW(e,t):e.startsWith("var(")?_W(e,t):wW(e,t)}const kW=(e,t)=>{const n=[...e],r=n.length,i=e.map((a,o)=>bW(a,t[o]));return a=>{for(let o=0;o<r;o++)n[o]=i[o](a);return n}},mbt=(e,t)=>{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=bW(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}},wW=(e,t)=>{const n=hu.createTransformer(t),r=rw(e),i=rw(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?ru(kW(r.values,i.values),n):_W(e,t)},Dg=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},BO=(e,t)=>n=>Yn(e,t,n);function gbt(e){return typeof e=="number"?BO:typeof e=="string"?hi.test(e)?fW:wW:Array.isArray(e)?kW:typeof e=="object"?mbt:BO}function ybt(e,t,n){const r=[],i=n||gbt(e[0]),a=e.length-1;for(let o=0;o<a;o++){let s=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||vr:t;s=ru(l,s)}r.push(s)}return r}function vW(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(P9(a===t.length),a===1)return()=>t[0];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=ybt(t,r,i),s=o.length,l=c=>{let u=0;if(s>1)for(;u<e.length-2&&!(c<e[u+1]);u++);const f=Dg(e[u],e[u+1],c);return o[u](f)};return n?c=>l(fu(e[0],e[a-1],c)):l}function _bt(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Dg(0,t,r);e.push(Yn(n,1,i))}}function bbt(e){const t=[0];return _bt(t,e.length-1),t}function kbt(e,t){return e.map(n=>n*t)}function wbt(e,t){return e.map(()=>t||oW).splice(0,e.length-1)}function iw({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=nbt(r)?r.map(LO):LO(r),a={done:!1,value:t[0]},o=kbt(n&&n.length===t.length?n:bbt(t),e),s=vW(o,t,{ease:Array.isArray(i)?i:wbt(t,i)});return{calculatedDuration:e,next:l=>(a.value=s(l),a.done=l>=e,a)}}function xW(e,t){return t?e*(1e3/t):0}const vbt=5;function CW(e,t,n){const r=Math.max(t-vbt,0);return xW(n-e(r),t-r)}const R6=.001,xbt=.01,RO=10,Cbt=.05,Sbt=1;function Dbt({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,a;G_t(e<=iu(RO));let o=1-t;o=fu(Cbt,Sbt,o),e=fu(xbt,RO,Fl(e)),o<1?(i=c=>{const u=c*o,f=u*e,h=u-n,m=H8(c,o),g=Math.exp(-f);return R6-h/m*g},a=c=>{const f=c*o*e,h=f*n+n,m=Math.pow(o,2)*Math.pow(c,2)*e,g=Math.exp(-f),b=H8(Math.pow(c,2),o);return(-i(c)+R6>0?-1:1)*((h-m)*g)/b}):(i=c=>{const u=Math.exp(-c*e),f=(c-n)*e+1;return-R6+u*f},a=c=>{const u=Math.exp(-c*e),f=(n-c)*(e*e);return u*f});const s=5/e,l=Tbt(i,a,s);if(e=iu(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const Ebt=12;function Tbt(e,t,n){let r=n;for(let i=1;i<Ebt;i++)r=r-e(r)/t(r);return r}function H8(e,t){return e*Math.sqrt(1-t*t)}const Abt=["duration","bounce"],zbt=["stiffness","damping","mass"];function PO(e,t){return t.some(n=>e[n]!==void 0)}function Fbt(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!PO(e,zbt)&&PO(e,Abt)){const n=Dbt(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function SW({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],a=e[e.length-1],o={done:!1,value:i},{stiffness:s,damping:l,mass:c,velocity:u,duration:f,isResolvedFromDuration:h}=Fbt(r),m=u?-Fl(u):0,g=l/(2*Math.sqrt(s*c)),b=a-i,C=Fl(Math.sqrt(s/c)),w=Math.abs(b)<5;n||(n=w?.01:2),t||(t=w?.005:.5);let k;if(g<1){const S=H8(C,g);k=E=>{const A=Math.exp(-g*C*E);return a-A*((m+g*C*b)/S*Math.sin(S*E)+b*Math.cos(S*E))}}else if(g===1)k=S=>a-Math.exp(-C*S)*(b+(m+C*b)*S);else{const S=C*Math.sqrt(g*g-1);k=E=>{const A=Math.exp(-g*C*E),_=Math.min(S*E,300);return a-A*((m+g*C*b)*Math.sinh(_)+S*b*Math.cosh(_))/S}}return{calculatedDuration:h&&f||null,next:S=>{const E=k(S);if(h)o.done=S>=f;else{let A=m;S!==0&&(g<1?A=CW(k,S,E):A=0);const _=Math.abs(A)<=n,T=Math.abs(a-E)<=t;o.done=_&&T}return o.value=o.done?a:E,o}}}function jO({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:l,restDelta:c=.5,restSpeed:u}){const f=e[0],h={done:!1,value:f},m=$=>s!==void 0&&$<s||l!==void 0&&$>l,g=$=>s===void 0?l:l===void 0||Math.abs(s-$)<Math.abs(l-$)?s:l;let b=n*t;const C=f+b,w=o===void 0?C:o(C);w!==C&&(b=w-f);const k=$=>-b*Math.exp(-$/r),S=$=>w+k($),E=$=>{const R=k($),O=S($);h.done=Math.abs(R)<=c,h.value=h.done?w:O};let A,_;const T=$=>{m(h.value)&&(A=$,_=SW({keyframes:[h.value,g(h.value)],velocity:CW(S,$,h.value),damping:i,stiffness:a,restDelta:c,restSpeed:u}))};return T(0),{calculatedDuration:null,next:$=>{let R=!1;return!_&&A===void 0&&(R=!0,E($),T($)),A!==void 0&&$>A?_.next($-A):(!R&&E($),h)}}}const $bt=e=>{const t=({timestamp:n})=>e(n);return{start:()=>jn.update(t,!0),stop:()=>Vl(t),now:()=>Wn.isProcessing?Wn.timestamp:performance.now()}},VO=2e4;function qO(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<VO;)t+=n,r=e.next(t);return t>=VO?1/0:t}const Mbt={decay:jO,inertia:jO,tween:iw,keyframes:iw,spring:SW};function aw({autoplay:e=!0,delay:t=0,driver:n=$bt,keyframes:r,type:i="keyframes",repeat:a=0,repeatDelay:o=0,repeatType:s="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:f,...h}){let m=1,g=!1,b,C;const w=()=>{b&&b(),C=new Promise(de=>{b=de})};w();let k;const S=Mbt[i]||iw;let E;S!==iw&&typeof r[0]!="number"&&(E=vW([0,100],r,{clamp:!1}),r=[0,100]);const A=S({...h,keyframes:r});let _;s==="mirror"&&(_=S({...h,keyframes:[...r].reverse(),velocity:-(h.velocity||0)}));let T="idle",$=null,R=null,O=null;A.calculatedDuration===null&&a&&(A.calculatedDuration=qO(A));const{calculatedDuration:G}=A;let V=1/0,Z=1/0;G!==null&&(V=G+o,Z=V*(a+1)-o);let W=0;const Y=de=>{if(R===null)return;m>0&&(R=Math.min(R,de)),m<0&&(R=Math.min(de-Z/m,R)),$!==null?W=$:W=Math.round(de-R)*m;const ue=W-t*(m>=0?1:-1),I=m>=0?ue<0:ue>Z;W=Math.max(ue,0),T==="finished"&&$===null&&(W=Z);let be=W,ze=A;if(a){const We=W/V;let Pe=Math.floor(We),Ge=We%1;!Ge&&We>=1&&(Ge=1),Ge===1&&Pe--,Pe=Math.min(Pe,a+1);const Xe=!!(Pe%2);Xe&&(s==="reverse"?(Ge=1-Ge,o&&(Ge-=o/V)):s==="mirror"&&(ze=_));let Kt=fu(0,1,Ge);W>Z&&(Kt=s==="reverse"&&Xe?1:0),be=Kt*V}const J=I?{done:!1,value:r[0]}:ze.next(be);E&&(J.value=E(J.value));let{done:Ve}=J;!I&&G!==null&&(Ve=m>=0?W>=Z:W<=0);const ye=$===null&&(T==="finished"||T==="running"&&Ve);return f&&f(J.value),ye&&Q(),J},fe=()=>{k&&k.stop(),k=void 0},ae=()=>{T="idle",fe(),w(),R=O=null},Q=()=>{T="finished",u&&u(),fe(),w()},ce=()=>{if(g)return;k||(k=n(Y));const de=k.now();l&&l(),$!==null?R=de-$:(!R||T==="finished")&&(R=de),O=R,$=null,T="running",k.start()};e&&ce();const L={then(de,ue){return C.then(de,ue)},get time(){return Fl(W)},set time(de){de=iu(de),W=de,$!==null||!k||m===0?$=de:R=k.now()-de/m},get duration(){const de=A.calculatedDuration===null?qO(A):A.calculatedDuration;return Fl(de)},get speed(){return m},set speed(de){de===m||!k||(m=de,L.time=Fl(W))},get state(){return T},play:ce,pause:()=>{T="paused",$=W},stop:()=>{g=!0,T!=="idle"&&(T="idle",c&&c(),ae())},cancel:()=>{O!==null&&Y(O),ae()},complete:()=>{T="finished"},sample:de=>(R=0,Y(de))};return L}const Obt=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),n_=10,Nbt=2e4,Lbt=(e,t)=>t.type==="spring"||e==="backgroundColor"||!tW(t.ease);function Ibt(e,t,{onUpdate:n,onComplete:r,...i}){if(!(iW.waapi()&&Obt.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let o=!1,s,l;const c=()=>{l=new Promise(w=>{s=w})};c();let{keyframes:u,duration:f=300,ease:h,times:m}=i;if(Lbt(t,i)){const w=aw({...i,repeat:0,delay:0});let k={done:!1,value:u[0]};const S=[];let E=0;for(;!k.done&&E<Nbt;)k=w.sample(E),S.push(k.value),E+=n_;m=void 0,u=S,f=E-n_,h="linear"}const g=Y_t(e.owner.current,t,u,{...i,duration:f,ease:h,times:m}),b=()=>g.cancel(),C=()=>{jn.update(b),s(),c()};return g.onfinish=()=>{e.set(Z_t(u,i)),r&&r(),C()},{then(w,k){return l.then(w,k)},get time(){return Fl(g.currentTime||0)},set time(w){g.currentTime=iu(w)},get speed(){return g.playbackRate},set speed(w){g.playbackRate=w},get duration(){return Fl(f)},play:()=>{o||(g.play(),Vl(b))},pause:()=>g.pause(),stop:()=>{if(o=!0,g.playState==="idle")return;const{currentTime:w}=g;if(w){const k=aw({...i,autoplay:!1});e.setWithVelocity(k.sample(w-n_).value,k.sample(w).value,n_)}C()},complete:()=>g.finish(),cancel:C}}function Bbt({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:vr,pause:vr,stop:vr,then:a=>(a(),Promise.resolve()),cancel:vr,complete:vr});return t?aw({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const Rbt={type:"spring",stiffness:500,damping:25,restSpeed:10},Pbt=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),jbt={type:"keyframes",duration:.8},Vbt={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},qbt=(e,{keyframes:t})=>t.length>2?jbt:mf.has(e)?e.startsWith("scale")?Pbt(t[1]):Rbt:Vbt,U8=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(hu.test(t)||t==="0")&&!t.startsWith("url(")),Hbt=new Set(["brightness","contrast","saturate","opacity"]);function Ubt(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(l2)||[];if(!r)return e;const i=n.replace(r,"");let a=Hbt.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const Wbt=/([a-z-]*)\(.*?\)/g,W8={...hu,getAnimatableNone:e=>{const t=e.match(Wbt);return t?t.map(Ubt).join(" "):e}},Gbt={...IU,color:hi,backgroundColor:hi,outlineColor:hi,fill:hi,stroke:hi,borderColor:hi,borderTopColor:hi,borderRightColor:hi,borderBottomColor:hi,borderLeftColor:hi,filter:W8,WebkitFilter:W8},H9=e=>Gbt[e];function DW(e,t){let n=H9(e);return n!==W8&&(n=hu),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const EW=e=>/^0[^.\s]+$/.test(e);function Kbt(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||EW(e)}function Ybt(e,t,n,r){const i=U8(t,n);let a;Array.isArray(n)?a=[...n]:a=[null,n];const o=r.from!==void 0?r.from:e.get();let s;const l=[];for(let c=0;c<a.length;c++)a[c]===null&&(a[c]=c===0?o:a[c-1]),Kbt(a[c])&&l.push(c),typeof a[c]=="string"&&a[c]!=="none"&&a[c]!=="0"&&(s=a[c]);if(i&&l.length&&s)for(let c=0;c<l.length;c++){const u=l[c];a[u]=DW(t,s)}return a}function Zbt({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length}function TW(e,t){return e[t]||e.default||e}const U9=(e,t,n,r={})=>i=>{const a=TW(r,e)||{},o=a.delay||r.delay||0;let{elapsed:s=0}=r;s=s-iu(o);const l=Ybt(t,e,n,a),c=l[0],u=l[l.length-1],f=U8(e,c),h=U8(e,u);let m={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...a,delay:-s,onUpdate:g=>{t.set(g),a.onUpdate&&a.onUpdate(g)},onComplete:()=>{i(),a.onComplete&&a.onComplete()}};if(Zbt(a)||(m={...m,...qbt(e,m)}),m.duration&&(m.duration=iu(m.duration)),m.repeatDelay&&(m.repeatDelay=iu(m.repeatDelay)),!f||!h||K_t.current||a.type===!1)return Bbt(m);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const g=Ibt(t,e,m);if(g)return g}return aw(m)};function ow(e){return!!(Zi(e)&&e.add)}const Xbt=e=>/^\-?\d*\.?\d+$/.test(e);function W9(e,t){e.indexOf(t)===-1&&e.push(t)}function G9(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class K9{constructor(){this.subscriptions=[]}add(t){return W9(this.subscriptions,t),()=>G9(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const o=this.subscriptions[a];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Jbt=e=>!isNaN(parseFloat(e));class Qbt{constructor(t,n={}){this.version="10.12.18",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:a,timestamp:o}=Wn;this.lastUpdated!==o&&(this.timeDelta=a,this.lastUpdated=o,jn.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>jn.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=Jbt(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new K9);const r=this.events[t].add(n);return t==="change"?()=>{r(),jn.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?xW(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function wp(e,t){return new Qbt(e,t)}const AW=e=>t=>t.test(e),ekt={test:e=>e==="auto",parse:e=>e},zW=[gf,xt,zs,Ec,o_t,a_t,ekt],M0=e=>zW.find(AW(e)),tkt=[...zW,hi,hu],nkt=e=>tkt.find(AW(e));function rkt(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,wp(n))}function ikt(e,t){const n=d2(e,t);let{transitionEnd:r={},transition:i={},...a}=n?e.makeTargetAnimatable(n,!1):{};a={...a,...r};for(const o in a){const s=k_t(a[o]);rkt(e,o,s)}}function akt(e,t,n){var r,i;const a=Object.keys(t).filter(s=>!e.hasValue(s)),o=a.length;if(o)for(let s=0;s<o;s++){const l=a[s],c=t[l];let u=null;Array.isArray(c)&&(u=c[0]),u===null&&(u=(i=(r=n[l])!==null&&r!==void 0?r:e.readValue(l))!==null&&i!==void 0?i:t[l]),u!=null&&(typeof u=="string"&&(Xbt(u)||EW(u))?u=parseFloat(u):!nkt(u)&&hu.test(c)&&(u=DW(l,c)),e.addValue(l,wp(u,{owner:e})),n[l]===void 0&&(n[l]=u),u!==null&&e.setBaseTarget(l,u))}}function okt(e,t){return t?(t[e]||t.default||t).from:void 0}function skt(e,t,n){const r={};for(const i in e){const a=okt(i,t);if(a!==void 0)r[i]=a;else{const o=n.getValue(i);o&&(r[i]=o.get())}}return r}function lkt({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function FW(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:o,...s}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(a=r);const c=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const f in s){const h=e.getValue(f),m=s[f];if(!h||m===void 0||u&&lkt(u,f))continue;const g={delay:n,elapsed:0,...a};if(window.HandoffAppearAnimations&&!h.hasAnimated){const C=e.getProps()[W_t];C&&(g.elapsed=window.HandoffAppearAnimations(C,f,h,jn))}h.start(U9(f,h,m,e.shouldReduceMotion&&mf.has(f)?{type:!1}:g));const b=h.animation;ow(l)&&(l.add(f),b.then(()=>l.remove(f))),c.push(b)}return o&&Promise.all(c).then(()=>{o&&ikt(e,o)}),c}function G8(e,t,n={}){const r=d2(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(FW(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:f}=i;return ckt(e,t,c+l,u,f,n)}:()=>Promise.resolve(),{when:s}=i;if(s){const[l,c]=s==="beforeChildren"?[a,o]:[o,a];return l().then(()=>c())}else return Promise.all([a(),o(n.delay)])}function ckt(e,t,n=0,r=0,i=1,a){const o=[],s=(e.variantChildren.size-1)*r,l=i===1?(c=0)=>c*r:(c=0)=>s-c*r;return Array.from(e.variantChildren).sort(ukt).forEach((c,u)=>{c.notify("AnimationStart",t),o.push(G8(c,t,{...a,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(o)}function ukt(e,t){return e.sortNodePosition(t)}function dkt(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>G8(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=G8(e,t,n);else{const i=typeof t=="function"?d2(e,t,n.custom):t;r=Promise.all(FW(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const fkt=[...A9].reverse(),hkt=A9.length;function pkt(e){return t=>Promise.all(t.map(({animation:n,options:r})=>dkt(e,n,r)))}function mkt(e){let t=pkt(e);const n=ykt();let r=!0;const i=(l,c)=>{const u=d2(e,c);if(u){const{transition:f,transitionEnd:h,...m}=u;l={...l,...m,...h}}return l};function a(l){t=l(e)}function o(l,c){const u=e.getProps(),f=e.getVariantContext(!0)||{},h=[],m=new Set;let g={},b=1/0;for(let w=0;w<hkt;w++){const k=fkt[w],S=n[k],E=u[k]!==void 0?u[k]:f[k],A=xg(E),_=k===c?S.isActive:null;_===!1&&(b=w);let T=E===f[k]&&E!==u[k]&&A;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),S.protectedKeys={...g},!S.isActive&&_===null||!E&&!S.prevProp||o2(E)||typeof E=="boolean")continue;const $=gkt(S.prevProp,E);let R=$||k===c&&S.isActive&&!T&&A||w>b&&A;const O=Array.isArray(E)?E:[E];let G=O.reduce(i,{});_===!1&&(G={});const{prevResolvedValues:V={}}=S,Z={...V,...G},W=Y=>{R=!0,m.delete(Y),S.needsAnimating[Y]=!0};for(const Y in Z){const fe=G[Y],ae=V[Y];g.hasOwnProperty(Y)||(fe!==ae?nw(fe)&&nw(ae)?!QU(fe,ae)||$?W(Y):S.protectedKeys[Y]=!0:fe!==void 0?W(Y):m.add(Y):fe!==void 0&&m.has(Y)?W(Y):S.protectedKeys[Y]=!0)}S.prevProp=E,S.prevResolvedValues=G,S.isActive&&(g={...g,...G}),r&&e.blockInitialAnimation&&(R=!1),R&&!T&&h.push(...O.map(Y=>({animation:Y,options:{type:k,...l}})))}if(m.size){const w={};m.forEach(k=>{const S=e.getBaseTarget(k);S!==void 0&&(w[k]=S)}),h.push({animation:w})}let C=!!h.length;return r&&u.initial===!1&&!e.manuallyAnimateOnMount&&(C=!1),r=!1,C?t(h):Promise.resolve()}function s(l,c,u){var f;if(n[l].isActive===c)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(m=>{var g;return(g=m.animationState)===null||g===void 0?void 0:g.setActive(l,c)}),n[l].isActive=c;const h=o(u,l);for(const m in n)n[m].protectedKeys={};return h}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>n}}function gkt(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!QU(t,e):!1}function Gu(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ykt(){return{animate:Gu(!0),whileInView:Gu(),whileHover:Gu(),whileTap:Gu(),whileDrag:Gu(),whileFocus:Gu(),exit:Gu()}}class _kt extends Fu{constructor(t){super(t),t.animationState||(t.animationState=mkt(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),o2(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let bkt=0;class kkt extends Fu{constructor(){super(...arguments),this.id=bkt++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const a=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&a.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const wkt={animation:{Feature:_kt},exit:{Feature:kkt}},HO=(e,t)=>Math.abs(e-t);function vkt(e,t){const n=HO(e.x,t.x),r=HO(e.y,t.y);return Math.sqrt(n**2+r**2)}class $W{constructor(t,n,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const c=j6(this.lastMoveEventInfo,this.history),u=this.startEvent!==null,f=vkt(c.offset,{x:0,y:0})>=3;if(!u&&!f)return;const{point:h}=c,{timestamp:m}=Wn;this.history.push({...h,timestamp:m});const{onStart:g,onMove:b}=this.handlers;u||(g&&g(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,c)},this.handlePointerMove=(c,u)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=P6(u,this.transformPagePoint),jn.update(this.updatePoint,!0)},this.handlePointerUp=(c,u)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:f,onSessionEnd:h}=this.handlers,m=j6(c.type==="pointercancel"?this.lastMoveEventInfo:P6(u,this.transformPagePoint),this.history);this.startEvent&&f&&f(c,m),h&&h(c,m)},!GU(t))return;this.handlers=n,this.transformPagePoint=r;const i=c2(t),a=P6(i,this.transformPagePoint),{point:o}=a,{timestamp:s}=Wn;this.history=[{...o,timestamp:s}];const{onSessionStart:l}=n;l&&l(t,j6(a,this.history)),this.removeListeners=ru(zl(window,"pointermove",this.handlePointerMove),zl(window,"pointerup",this.handlePointerUp),zl(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Vl(this.updatePoint)}}function P6(e,t){return t?{point:t(e.point)}:e}function UO(e,t){return{x:e.x-t.x,y:e.y-t.y}}function j6({point:e},t){return{point:e,delta:UO(e,MW(t)),offset:UO(e,xkt(t)),velocity:Ckt(t,.1)}}function xkt(e){return e[0]}function MW(e){return e[e.length-1]}function Ckt(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=MW(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>iu(t)));)n--;if(!r)return{x:0,y:0};const a=Fl(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Da(e){return e.max-e.min}function K8(e,t=0,n=.01){return Math.abs(e-t)<=n}function WO(e,t,n,r=.5){e.origin=r,e.originPoint=Yn(t.min,t.max,e.origin),e.scale=Da(n)/Da(t),(K8(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Yn(n.min,n.max,e.origin)-e.originPoint,(K8(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Im(e,t,n,r){WO(e.x,t.x,n.x,r?r.originX:void 0),WO(e.y,t.y,n.y,r?r.originY:void 0)}function GO(e,t,n){e.min=n.min+t.min,e.max=e.min+Da(t)}function Skt(e,t,n){GO(e.x,t.x,n.x),GO(e.y,t.y,n.y)}function KO(e,t,n){e.min=t.min-n.min,e.max=e.min+Da(t)}function Bm(e,t,n){KO(e.x,t.x,n.x),KO(e.y,t.y,n.y)}function Dkt(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Yn(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Yn(n,e,r.max):Math.min(e,n)),e}function YO(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Ekt(e,{top:t,left:n,bottom:r,right:i}){return{x:YO(e.x,n,i),y:YO(e.y,t,r)}}function ZO(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Tkt(e,t){return{x:ZO(e.x,t.x),y:ZO(e.y,t.y)}}function Akt(e,t){let n=.5;const r=Da(e),i=Da(t);return i>r?n=Dg(t.min,t.max-r,e.min):r>i&&(n=Dg(e.min,e.max-i,t.min)),fu(0,1,n)}function zkt(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Y8=.35;function Fkt(e=Y8){return e===!1?e=0:e===!0&&(e=Y8),{x:XO(e,"left","right"),y:XO(e,"top","bottom")}}function XO(e,t,n){return{min:JO(e,t),max:JO(e,n)}}function JO(e,t){return typeof e=="number"?e:e[t]||0}const QO=()=>({translate:0,scale:1,origin:0,originPoint:0}),Sh=()=>({x:QO(),y:QO()}),eN=()=>({min:0,max:0}),fr=()=>({x:eN(),y:eN()});function ps(e){return[e("x"),e("y")]}function OW({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function $kt({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Mkt(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function V6(e){return e===void 0||e===1}function Z8({scale:e,scaleX:t,scaleY:n}){return!V6(e)||!V6(t)||!V6(n)}function sd(e){return Z8(e)||NW(e)||e.z||e.rotate||e.rotateX||e.rotateY}function NW(e){return tN(e.x)||tN(e.y)}function tN(e){return e&&e!=="0%"}function sw(e,t,n){const r=e-n,i=t*r;return n+i}function nN(e,t,n,r,i){return i!==void 0&&(e=sw(e,i,r)),sw(e,n,r)+t}function X8(e,t=0,n=1,r,i){e.min=nN(e.min,t,n,r,i),e.max=nN(e.max,t,n,r,i)}function LW(e,{x:t,y:n}){X8(e.x,t.translate,t.scale,t.originPoint),X8(e.y,n.translate,n.scale,n.originPoint)}function Okt(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;const l=a.instance;l&&l.style&&l.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Dh(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,LW(e,o)),r&&sd(a.latestValues)&&Dh(e,a.latestValues))}t.x=rN(t.x),t.y=rN(t.y)}function rN(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function $c(e,t){e.min=e.min+t,e.max=e.max+t}function iN(e,t,[n,r,i]){const a=t[i]!==void 0?t[i]:.5,o=Yn(e.min,e.max,a);X8(e,t[n],t[r],o,t.scale)}const Nkt=["x","scaleX","originX"],Lkt=["y","scaleY","originY"];function Dh(e,t){iN(e.x,t,Nkt),iN(e.y,t,Lkt)}function IW(e,t){return OW(Mkt(e.getBoundingClientRect(),t))}function Ikt(e,t,n){const r=IW(e,n),{scroll:i}=t;return i&&($c(r.x,i.offset.x),$c(r.y,i.offset.y)),r}const Bkt=new WeakMap;class Rkt{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=fr(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=l=>{this.stopAnimation(),n&&this.snapToCursor(c2(l,"page").point)},a=(l,c)=>{const{drag:u,dragPropagation:f,onDragStart:h}=this.getProps();if(u&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=YU(u),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ps(g=>{let b=this.getAxisMotionValue(g).get()||0;if(zs.test(b)){const{projection:C}=this.visualElement;if(C&&C.layout){const w=C.layout.layoutBox[g];w&&(b=Da(w)*(parseFloat(b)/100))}}this.originPoint[g]=b}),h&&jn.update(()=>h(l,c),!1,!0);const{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0)},o=(l,c)=>{const{dragPropagation:u,dragDirectionLock:f,onDirectionLock:h,onDrag:m}=this.getProps();if(!u&&!this.openGlobalLock)return;const{offset:g}=c;if(f&&this.currentDirection===null){this.currentDirection=Pkt(g),this.currentDirection!==null&&h&&h(this.currentDirection);return}this.updateAxis("x",c.point,g),this.updateAxis("y",c.point,g),this.visualElement.render(),m&&m(l,c)},s=(l,c)=>this.stop(l,c);this.panSession=new $W(t,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&jn.update(()=>a(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!r_(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=Dkt(o,this.constraints[t],this.elastic[t])),a.set(o)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),{layout:r}=this.visualElement.projection||{},i=this.constraints;t&&xh(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Ekt(r.layoutBox,t):this.constraints=!1,this.elastic=Fkt(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ps(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=zkt(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!xh(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=Ikt(r,i.root,this.visualElement.getTransformPagePoint());let o=Tkt(i.layout.layoutBox,a);if(n){const s=n($kt(o));this.hasMutatedConstraints=!!s,s&&(o=OW(s))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},c=ps(u=>{if(!r_(u,n,this.currentDirection))return;let f=l&&l[u]||{};o&&(f={min:0,max:0});const h=i?200:1e6,m=i?40:1e7,g={type:"inertia",velocity:r?t[u]:0,bounceStiffness:h,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...a,...f};return this.startAxisValueAnimation(u,g)});return Promise.all(c).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(U9(t,r,0,n))}stopAnimation(){ps(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ps(n=>{const{drag:r}=this.getProps();if(!r_(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:s}=i.layout.layoutBox[n];a.set(t[n]-Yn(o,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!xh(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ps(o=>{const s=this.getAxisMotionValue(o);if(s){const l=s.get();i[o]=Akt({min:l,max:l},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ps(o=>{if(!r_(o,t,null))return;const s=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];s.set(Yn(l,c,i[o]))})}addListeners(){if(!this.visualElement.current)return;Bkt.set(this.visualElement,this);const t=this.visualElement.current,n=zl(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();xh(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const o=El(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(ps(u=>{const f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=l[u].translate,f.set(f.get()+l[u].translate))}),this.visualElement.render())});return()=>{o(),n(),a(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:o=Y8,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:o,dragMomentum:s}}}function r_(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Pkt(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class jkt extends Fu{constructor(t){super(t),this.removeGroupControls=vr,this.removeListeners=vr,this.controls=new Rkt(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||vr}unmount(){this.removeGroupControls(),this.removeListeners()}}const aN=e=>(t,n)=>{e&&jn.update(()=>e(t,n))};class Vkt extends Fu{constructor(){super(...arguments),this.removePointerDownListener=vr}onPointerDown(t){this.session=new $W(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:aN(t),onStart:aN(n),onMove:r,onEnd:(a,o)=>{delete this.session,i&&jn.update(()=>i(a,o))}}}mount(){this.removePointerDownListener=zl(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function qkt(){const e=F.useContext(i2);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=F.useId();return F.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const zb={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function oN(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const O0={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(xt.test(e))e=parseFloat(e);else return e;const n=oN(e,t.target.x),r=oN(e,t.target.y);return`${n}% ${r}%`}},Hkt={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=hu.parse(e);if(i.length>5)return r;const a=hu.createTransformer(e),o=typeof i[0]!="number"?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=l;const c=Yn(s,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=c),typeof i[3+o]=="number"&&(i[3+o]/=c),a(i)}};class Ukt extends cn.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;Jyt(Wkt),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),zb.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,o=r.projection;return o&&(o.isPresent=a,i||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?o.promote():o.relegate()||jn.postRender(()=>{const s=o.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function BW(e){const[t,n]=qkt(),r=F.useContext(F9);return cn.createElement(Ukt,{...e,layoutGroup:r,switchLayoutGroup:F.useContext($U),isPresent:t,safeToRemove:n})}const Wkt={borderRadius:{...O0,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:O0,borderTopRightRadius:O0,borderBottomLeftRadius:O0,borderBottomRightRadius:O0,boxShadow:Hkt},RW=["TopLeft","TopRight","BottomLeft","BottomRight"],Gkt=RW.length,sN=e=>typeof e=="string"?parseFloat(e):e,lN=e=>typeof e=="number"||xt.test(e);function Kkt(e,t,n,r,i,a){i?(e.opacity=Yn(0,n.opacity!==void 0?n.opacity:1,Ykt(r)),e.opacityExit=Yn(t.opacity!==void 0?t.opacity:1,0,Zkt(r))):a&&(e.opacity=Yn(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<Gkt;o++){const s=`border${RW[o]}Radius`;let l=cN(t,s),c=cN(n,s);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||lN(l)===lN(c)?(e[s]=Math.max(Yn(sN(l),sN(c),r),0),(zs.test(c)||zs.test(l))&&(e[s]+="%")):e[s]=c}(t.rotate||n.rotate)&&(e.rotate=Yn(t.rotate||0,n.rotate||0,r))}function cN(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Ykt=PW(0,.5,j9),Zkt=PW(.5,.95,vr);function PW(e,t,n){return r=>r<e?0:r>t?1:n(Dg(e,t,r))}function uN(e,t){e.min=t.min,e.max=t.max}function Wa(e,t){uN(e.x,t.x),uN(e.y,t.y)}function dN(e,t,n,r,i){return e-=t,e=sw(e,1/n,r),i!==void 0&&(e=sw(e,1/i,r)),e}function Xkt(e,t=0,n=1,r=.5,i,a=e,o=e){if(zs.test(t)&&(t=parseFloat(t),t=Yn(o.min,o.max,t/100)-o.min),typeof t!="number")return;let s=Yn(a.min,a.max,r);e===a&&(s-=t),e.min=dN(e.min,t,n,s,i),e.max=dN(e.max,t,n,s,i)}function fN(e,t,[n,r,i],a,o){Xkt(e,t[n],t[r],t[i],t.scale,a,o)}const Jkt=["x","scaleX","originX"],Qkt=["y","scaleY","originY"];function hN(e,t,n,r){fN(e.x,t,Jkt,n?n.x:void 0,r?r.x:void 0),fN(e.y,t,Qkt,n?n.y:void 0,r?r.y:void 0)}function pN(e){return e.translate===0&&e.scale===1}function jW(e){return pN(e.x)&&pN(e.y)}function J8(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function mN(e){return Da(e.x)/Da(e.y)}class ewt{constructor(){this.members=[]}add(t){W9(this.members,t),t.scheduleRender()}remove(t){if(G9(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function gN(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y;if((i||a)&&(r=`translate3d(${i}px, ${a}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:c,rotateY:u}=n;l&&(r+=`rotate(${l}deg) `),c&&(r+=`rotateX(${c}deg) `),u&&(r+=`rotateY(${u}deg) `)}const o=e.x.scale*t.x,s=e.y.scale*t.y;return(o!==1||s!==1)&&(r+=`scale(${o}, ${s})`),r||"none"}const twt=(e,t)=>e.depth-t.depth;class nwt{constructor(){this.children=[],this.isDirty=!1}add(t){W9(this.children,t),this.isDirty=!0}remove(t){G9(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(twt),this.isDirty=!1,this.children.forEach(t)}}function rwt(e,t){const n=performance.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(Vl(r),e(a-t))};return jn.read(r,!0),()=>Vl(r)}function iwt(e){window.MotionDebug&&window.MotionDebug.record(e)}function awt(e){return e instanceof SVGElement&&e.tagName!=="svg"}function owt(e,t,n){const r=Zi(e)?e:wp(e);return r.start(U9("",r,t,n)),r.animation}const yN=["","X","Y","Z"],_N=1e3;let swt=0;const ld={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function VW({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},s=t==null?void 0:t()){this.id=swt++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{ld.totalNodes=ld.resolvedTargetDeltas=ld.recalculatedProjection=0,this.nodes.forEach(uwt),this.nodes.forEach(mwt),this.nodes.forEach(gwt),this.nodes.forEach(dwt),iwt(ld)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new nwt)}addEventListener(o,s){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new K9),this.eventHandlers.get(o).add(s)}notifyListeners(o,...s){const l=this.eventHandlers.get(o);l&&l.notify(...s)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,s=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=awt(o),this.instance=o;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),s&&(c||l)&&(this.isLayoutDirty=!0),e){let f;const h=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=rwt(h,250),zb.hasAnimatedSinceResize&&(zb.hasAnimatedSinceResize=!1,this.nodes.forEach(kN))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:h,hasRelativeTargetChanged:m,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||u.getDefaultTransition()||wwt,{onLayoutAnimationStart:C,onLayoutAnimationComplete:w}=u.getProps(),k=!this.targetLayout||!J8(this.targetLayout,g)||m,S=!h&&m;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||S||h&&(k||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,S);const E={...TW(b,"layout"),onPlay:C,onComplete:w};(u.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else h||kN(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Vl(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ywt),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const f=this.path[u];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(bN);return}this.isUpdating||this.nodes.forEach(hwt),this.isUpdating=!1,this.nodes.forEach(pwt),this.nodes.forEach(lwt),this.nodes.forEach(cwt),this.clearAllSnapshots();const s=performance.now();Wn.delta=fu(0,1e3/60,s-Wn.timestamp),Wn.timestamp=s,Wn.isProcessing=!0,Uh.update.process(Wn),Uh.preRender.process(Wn),Uh.render.process(Wn),Wn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(fwt),this.sharedNodes.forEach(_wt)}scheduleUpdateProjection(){jn.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){jn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=fr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let s=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(s=!1),s&&(this.scroll={animationId:this.root.animationId,phase:o,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform,s=this.projectionDelta&&!jW(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;o&&(s||sd(this.latestValues)||u)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const s=this.measurePageBox();let l=this.removeElementScroll(s);return o&&(l=this.removeTransform(l)),vwt(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return fr();const s=o.measureViewportBox(),{scroll:l}=this.root;return l&&($c(s.x,l.offset.x),$c(s.y,l.offset.y)),s}removeElementScroll(o){const s=fr();Wa(s,o);for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:f}=c;if(c!==this.root&&u&&f.layoutScroll){if(u.isRoot){Wa(s,o);const{scroll:h}=this.root;h&&($c(s.x,-h.offset.x),$c(s.y,-h.offset.y))}$c(s.x,u.offset.x),$c(s.y,u.offset.y)}}return s}applyTransform(o,s=!1){const l=fr();Wa(l,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];!s&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Dh(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),sd(u.latestValues)&&Dh(l,u.latestValues)}return sd(this.latestValues)&&Dh(l,this.latestValues),l}removeTransform(o){const s=fr();Wa(s,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!sd(c.latestValues))continue;Z8(c.latestValues)&&c.updateSnapshot();const u=fr(),f=c.measurePageBox();Wa(u,f),hN(s,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return sd(this.latestValues)&&hN(s,this.latestValues),s}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Wn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var s;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(o||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:f,layoutId:h}=this.options;if(!(!this.layout||!(f||h))){if(this.resolvedRelativeTargetAt=Wn.timestamp,!this.targetDelta&&!this.relativeTarget){const m=this.getClosestProjectingParent();m&&m.layout&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=fr(),this.relativeTargetOrigin=fr(),Bm(this.relativeTargetOrigin,this.layout.layoutBox,m.layout.layoutBox),Wa(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=fr(),this.targetWithTransforms=fr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Skt(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Wa(this.target,this.layout.layoutBox),LW(this.target,this.targetDelta)):Wa(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const m=this.getClosestProjectingParent();m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=fr(),this.relativeTargetOrigin=fr(),Bm(this.relativeTargetOrigin,this.target,m.target),Wa(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ld.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Z8(this.parent.latestValues)||NW(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const s=this.getLead(),l=!!this.resumingFrom||this!==s;let c=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Wn.timestamp&&(c=!1),c)return;const{layout:u,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||f))return;Wa(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,m=this.treeScale.y;Okt(this.layoutCorrected,this.treeScale,this.path,l),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox);const{target:g}=s;if(!g){this.projectionTransform&&(this.projectionDelta=Sh(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Sh(),this.projectionDeltaWithTransform=Sh());const b=this.projectionTransform;Im(this.projectionDelta,this.layoutCorrected,g,this.latestValues),this.projectionTransform=gN(this.projectionDelta,this.treeScale),(this.projectionTransform!==b||this.treeScale.x!==h||this.treeScale.y!==m)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),ld.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),o){const s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(o,s=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},f=Sh();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const h=fr(),m=l?l.source:void 0,g=this.layout?this.layout.source:void 0,b=m!==g,C=this.getStack(),w=!C||C.members.length<=1,k=!!(b&&!w&&this.options.crossfade===!0&&!this.path.some(kwt));this.animationProgress=0;let S;this.mixTargetDelta=E=>{const A=E/1e3;wN(f.x,o.x,A),wN(f.y,o.y,A),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Bm(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),bwt(this.relativeTarget,this.relativeTargetOrigin,h,A),S&&J8(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=fr()),Wa(S,this.relativeTarget)),b&&(this.animationValues=u,Kkt(u,c,this.latestValues,A,k,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Vl(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=jn.update(()=>{zb.hasAnimatedSinceResize=!0,this.currentAnimation=owt(0,_N,{...o,onUpdate:s=>{this.mixTargetDelta(s),o.onUpdate&&o.onUpdate(s)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(_N),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:s,target:l,layout:c,latestValues:u}=o;if(!(!s||!l||!c)){if(this!==o&&this.layout&&c&&qW(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||fr();const f=Da(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+f;const h=Da(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}Wa(s,l),Dh(s,u),Im(this.projectionDeltaWithTransform,this.layoutCorrected,s,u)}}registerSharedNode(o,s){this.sharedNodes.has(o)||this.sharedNodes.set(o,new ewt),this.sharedNodes.get(o).add(s);const c=s.options.initialPromotionConfig;s.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(s):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:s}=this.options;return s?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:s}=this.options;return s?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:s,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetRotation(){const{visualElement:o}=this.options;if(!o)return;let s=!1;const{latestValues:l}=o;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(s=!0),!s)return;const c={};for(let u=0;u<yN.length;u++){const f="rotate"+yN[u];l[f]&&(c[f]=l[f],o.setStaticValue(f,0))}o.render();for(const u in c)o.setStaticValue(u,c[u]);o.scheduleRender()}getProjectionStyles(o={}){var s,l;const c={};if(!this.instance||this.isSVG)return c;if(this.isVisible)c.visibility="";else return{visibility:"hidden"};const u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Ab(o.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Ab(o.pointerEvents)||""),this.hasProjected&&!sd(this.latestValues)&&(b.transform=u?u({},""):"none",this.hasProjected=!1),b}const h=f.animationValues||f.latestValues;this.applyTransformsToTarget(),c.transform=gN(this.projectionDeltaWithTransform,this.treeScale,h),u&&(c.transform=u(h,c.transform));const{x:m,y:g}=this.projectionDelta;c.transformOrigin=`${m.origin*100}% ${g.origin*100}% 0`,f.animationValues?c.opacity=f===this?(l=(s=h.opacity)!==null&&s!==void 0?s:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:c.opacity=f===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const b in ew){if(h[b]===void 0)continue;const{correct:C,applyTo:w}=ew[b],k=c.transform==="none"?h[b]:C(h[b],f);if(w){const S=w.length;for(let E=0;E<S;E++)c[w[E]]=k}else c[b]=k}return this.options.layoutId&&(c.pointerEvents=f===this?Ab(o.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var s;return(s=o.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(bN),this.root.sharedNodes.clear()}}}function lwt(e){e.updateLayout()}function cwt(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:a}=e.options,o=n.source!==e.layout.source;a==="size"?ps(f=>{const h=o?n.measuredBox[f]:n.layoutBox[f],m=Da(h);h.min=r[f].min,h.max=h.min+m}):qW(a,n.layoutBox,r)&&ps(f=>{const h=o?n.measuredBox[f]:n.layoutBox[f],m=Da(r[f]);h.max=h.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+m)});const s=Sh();Im(s,r,n.layoutBox);const l=Sh();o?Im(l,e.applyTransform(i,!0),n.measuredBox):Im(l,r,n.layoutBox);const c=!jW(s);let u=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:h,layout:m}=f;if(h&&m){const g=fr();Bm(g,n.layoutBox,h.layoutBox);const b=fr();Bm(b,r,m.layoutBox),J8(g,b)||(u=!0),f.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=g,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:s,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function uwt(e){ld.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function dwt(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function fwt(e){e.clearSnapshot()}function bN(e){e.clearMeasurements()}function hwt(e){e.isLayoutDirty=!1}function pwt(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function kN(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function mwt(e){e.resolveTargetDelta()}function gwt(e){e.calcProjection()}function ywt(e){e.resetRotation()}function _wt(e){e.removeLeadSnapshot()}function wN(e,t,n){e.translate=Yn(t.translate,0,n),e.scale=Yn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function vN(e,t,n,r){e.min=Yn(t.min,n.min,r),e.max=Yn(t.max,n.max,r)}function bwt(e,t,n,r){vN(e.x,t.x,n.x,r),vN(e.y,t.y,n.y,r)}function kwt(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const wwt={duration:.45,ease:[.4,0,.1,1]};function xN(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function vwt(e){xN(e.x),xN(e.y)}function qW(e,t,n){return e==="position"||e==="preserve-aspect"&&!K8(mN(t),mN(n),.2)}const xwt=VW({attachResizeListener:(e,t)=>El(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),q6={current:void 0},HW=VW({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!q6.current){const e=new xwt({});e.mount(window),e.setOptions({layoutScroll:!0}),q6.current=e}return q6.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Cwt={pan:{Feature:Vkt},drag:{Feature:jkt,ProjectionNode:HW,MeasureLayout:BW}},Swt=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Dwt(e){const t=Swt.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function Q8(e,t,n=1){const[r,i]=Dwt(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);return a?a.trim():P8(i)?Q8(i,t,n+1):i}function Ewt(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const a=i.get();if(!P8(a))return;const o=Q8(a,r);o&&i.set(o)});for(const i in t){const a=t[i];if(!P8(a))continue;const o=Q8(a,r);o&&(t[i]=o,n||(n={}),n[i]===void 0&&(n[i]=a))}return{target:t,transitionEnd:n}}const Twt=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),UW=e=>Twt.has(e),Awt=e=>Object.keys(e).some(UW),CN=e=>e===gf||e===xt,SN=(e,t)=>parseFloat(e.split(", ")[t]),DN=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return SN(i[1],t);{const a=r.match(/^matrix\((.+)\)$/);return a?SN(a[1],e):0}},zwt=new Set(["x","y","z"]),Fwt=h1.filter(e=>!zwt.has(e));function $wt(e){const t=[];return Fwt.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const EN={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:DN(4,13),y:DN(5,14)},Mwt=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,a=getComputedStyle(i),{display:o}=a,s={};o==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(c=>{s[c]=EN[c](r,a)}),t.render();const l=t.measureViewportBox();return n.forEach(c=>{const u=t.getValue(c);u&&u.jump(s[c]),e[c]=EN[c](l,a)}),e},Owt=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(UW);let a=[],o=!1;const s=[];if(i.forEach(l=>{const c=e.getValue(l);if(!e.hasValue(l))return;let u=n[l],f=M0(u);const h=t[l];let m;if(nw(h)){const g=h.length,b=h[0]===null?1:0;u=h[b],f=M0(u);for(let C=b;C<g&&h[C]!==null;C++)m?P9(M0(h[C])===m):m=M0(h[C])}else m=M0(h);if(f!==m)if(CN(f)&&CN(m)){const g=c.get();typeof g=="string"&&c.set(parseFloat(g)),typeof h=="string"?t[l]=parseFloat(h):Array.isArray(h)&&m===xt&&(t[l]=h.map(parseFloat))}else f!=null&&f.transform&&(m!=null&&m.transform)&&(u===0||h===0)?u===0?c.set(m.transform(u)):t[l]=f.transform(h):(o||(a=$wt(e),o=!0),s.push(l),r[l]=r[l]!==void 0?r[l]:t[l],c.jump(h))}),s.length){const l=s.indexOf("height")>=0?window.pageYOffset:null,c=Mwt(t,e,s);return a.length&&a.forEach(([u,f])=>{e.getValue(u).set(f)}),e.render(),a2&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:r}}else return{target:t,transitionEnd:r}};function Nwt(e,t,n,r){return Awt(t)?Owt(e,t,n,r):{target:t,transitionEnd:r}}const Lwt=(e,t,n,r)=>{const i=Ewt(e,t,r);return t=i.target,r=i.transitionEnd,Nwt(e,t,n,r)},e7={current:null},WW={current:!1};function Iwt(){if(WW.current=!0,!!a2)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>e7.current=e.matches;e.addListener(t),t()}else e7.current=!1}function Bwt(e,t,n){const{willChange:r}=t;for(const i in t){const a=t[i],o=n[i];if(Zi(a))e.addValue(i,a),ow(r)&&r.add(i);else if(Zi(o))e.addValue(i,wp(a,{owner:e})),ow(r)&&r.remove(i);else if(o!==a)if(e.hasValue(i)){const s=e.getValue(i);!s.hasAnimated&&s.set(a)}else{const s=e.getStaticValue(i);e.addValue(i,wp(s!==void 0?s:a,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const TN=new WeakMap,GW=Object.keys(Cg),Rwt=GW.length,AN=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Pwt=z9.length;class jwt{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>jn.render(this.render,!1,!0);const{latestValues:s,renderState:l}=a;this.latestValues=s,this.baseTarget={...s},this.initialValues=n.initial?{...s}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.isControllingVariants=s2(n),this.isVariantNode=FU(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(n,{});for(const f in u){const h=u[f];s[f]!==void 0&&Zi(h)&&(h.set(s[f],!1),ow(c)&&c.add(f))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,TN.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),WW.current||Iwt(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:e7.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){TN.delete(this.current),this.projection&&this.projection.unmount(),Vl(this.notifyUpdate),Vl(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=mf.has(t),i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&jn.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),a()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,a){let o,s;for(let l=0;l<Rwt;l++){const c=GW[l],{isEnabled:u,Feature:f,ProjectionNode:h,MeasureLayout:m}=Cg[c];h&&(o=h),u(n)&&(!this.features[c]&&f&&(this.features[c]=new f(this)),m&&(s=m))}if(!this.projection&&o){this.projection=new o(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:c,drag:u,dragConstraints:f,layoutScroll:h,layoutRoot:m}=n;this.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!u||f&&xh(f),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:a,layoutScroll:h,layoutRoot:m})}return s}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):fr()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<AN.length;r++){const i=AN[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a=t["on"+i];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=Bwt(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<Pwt;r++){const i=z9[r],a=this.props[i];(xg(a)||a===!1)&&(n[i]=a)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=wp(n,{owner:this}),this.addValue(t,r)),r}readValue(t){return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=R9(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Zi(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new K9),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class KW extends jwt{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},a){let o=skt(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),o&&(o=i(o))),a){akt(this,r,o);const s=Lwt(this,r,o,n);n=s.transitionEnd,r=s.target}return{transition:t,transitionEnd:n,...r}}}function Vwt(e){return window.getComputedStyle(e)}class qwt extends KW{readValueFromInstance(t,n){if(mf.has(n)){const r=H9(n);return r&&r.default||0}else{const r=Vwt(t),i=(NU(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return IW(t,n)}build(t,n,r,i){M9(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return B9(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Zi(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){jU(t,n,r,i)}}class Hwt extends KW{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(mf.has(n)){const r=H9(n);return r&&r.default||0}return n=VU.has(n)?n:I9(n),t.getAttribute(n)}measureInstanceViewportBox(){return fr()}scrapeMotionValuesFromProps(t,n){return HU(t,n)}build(t,n,r,i){N9(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){qU(t,n,r,i)}mount(t){this.isSVGTag=L9(t.tagName),super.mount(t)}}const Uwt=(e,t)=>$9(e)?new Hwt(t,{enableHardwareAcceleration:!1}):new qwt(t,{enableHardwareAcceleration:!0}),Wwt={layout:{ProjectionNode:HW,MeasureLayout:BW}},Gwt={...wkt,...V_t,...Cwt,...Wwt},lw=Zyt((e,t)=>S_t(e,t,Gwt,Uwt));function YW(){const e=F.useRef(!1);return Qk(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Kwt(){const e=YW(),[t,n]=F.useState(0),r=F.useCallback(()=>{e.current&&n(t+1)},[t]);return[F.useCallback(()=>jn.postRender(r),[r]),t]}class Ywt extends F.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Zwt({children:e,isPresent:t}){const n=F.useId(),r=F.useRef(null),i=F.useRef({width:0,height:0,top:0,left:0});return F.useInsertionEffect(()=>{const{width:a,height:o,top:s,left:l}=i.current;if(t||!r.current||!a||!o)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` +`+(s!==o?`result of cast: ${s}`:""))}return a}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((i,a)=>a.call(this,i,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,i){let{path:a,originalValue:o=t,strict:s=this.spec.strict}=n,l=t;s||(l=this._cast(l,Object.assign({assert:!1},n)));let c=[];for(let u of Object.values(this.internalTests))u&&c.push(u);this.runTests({path:a,value:l,originalValue:o,options:n,tests:c},r,u=>{if(u.length)return i(u,l);this.runTests({path:a,value:l,originalValue:o,options:n,tests:this.tests},r,i)})}runTests(t,n,r){let i=!1,{tests:a,value:o,originalValue:s,path:l,options:c}=t,u=b=>{i||(i=!0,n(b,o))},f=b=>{i||(i=!0,r(b,o))},h=a.length,m=[];if(!h)return f([]);let g={value:o,originalValue:s,path:l,options:c,schema:this};for(let b=0;b<a.length;b++){const C=a[b];C(g,u,function(k){k&&(m=m.concat(k)),--h<=0&&f(m)})}}asNestedTest({key:t,index:n,parent:r,parentPath:i,originalParent:a,options:o}){const s=t??n;if(s==null)throw TypeError("Must include `key` or `index` for nested validations");const l=typeof s=="number";let c=r[s];const u=Object.assign({},o,{strict:!0,parent:r,value:c,originalValue:a[s],key:void 0,[l?"index":"key"]:s,path:l||s.includes(".")?`${i||""}[${c?s:`"${s}"`}]`:(i?`${i}.`:"")+t});return(f,h,m)=>this.resolve(u)._validate(c,u,h,m)}validate(t,n){let r=this.resolve(Object.assign({},n,{value:t}));return new Promise((i,a)=>r._validate(t,n,(o,s)=>{ba.isError(o)&&(o.value=s),a(o)},(o,s)=>{o.length?a(new ba(o,s)):i(s)}))}validateSync(t,n){let r=this.resolve(Object.assign({},n,{value:t})),i;return r._validate(t,Object.assign({},n,{sync:!0}),(a,o)=>{throw ba.isError(a)&&(a.value=o),a},(a,o)=>{if(a.length)throw new ba(a,t);i=o}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(ba.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(ba.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):vh(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=Vf({message:n,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=Vf({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=_l.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=_l.notNull){return this.nullability(!1,t)}required(t=_l.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=_l.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=Vf(n),a=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(o=>!(o.OPTIONS.name===n.name&&(a||o.OPTIONS.test===i.OPTIONS.test))),r.tests.push(i),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),i=SU(t).map(a=>new pf(a));return i.forEach(a=>{a.isSibling&&r.deps.push(a.key)}),r.conditions.push(typeof n=="function"?new Xk(i,n):Xk.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=Vf({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=_l.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=Vf({message:n,name:"oneOf",skipAbsent:!0,test(i){let a=this.schema._whitelist,o=a.resolveAll(this.resolve);return o.includes(i)?!0:this.createError({params:{values:Array.from(a).join(", "),resolved:o}})}}),r}notOneOf(t,n=_l.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=Vf({message:n,name:"notOneOf",test(i){let a=this.schema._blacklist,o=a.resolveAll(this.resolve);return o.includes(i)?this.createError({params:{values:Array.from(a).join(", "),resolved:o}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:i,optional:a,nullable:o}=n.spec;return{meta:i,label:r,optional:a,nullable:o,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(l=>({name:l.OPTIONS.name,params:l.OPTIONS.params})).filter((l,c,u)=>u.findIndex(f=>f.name===l.name)===c)}}};Bs.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Bs.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:a,schema:o}=gyt(this,t,n,r.context);return o[e](i&&i[a],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])Bs.prototype[e]=Bs.prototype.oneOf;for(const e of["not","nope"])Bs.prototype[e]=Bs.prototype.notOneOf;let yyt=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,_yt=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,byt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,kyt=e=>wd(e)||e===e.trim(),wyt={}.toString();function Jd(){return new DU}class DU extends Bs{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const i=t!=null&&t.toString?t.toString():t;return i===wyt?t:i})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||_l.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=Oo.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=Oo.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=Oo.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,i,a;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:i,name:a}=n:i=n),this.test({name:a||"matches",message:i||Oo.matches,params:{regex:t},skipAbsent:!0,test:o=>o===""&&r||o.search(t)!==-1})}email(t=Oo.email){return this.matches(yyt,{name:"email",message:t,excludeEmptyString:!0})}url(t=Oo.url){return this.matches(_yt,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Oo.uuid){return this.matches(byt,{name:"uuid",message:t,excludeEmptyString:!1})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Oo.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:kyt})}lowercase(t=Oo.lowercase){return this.transform(n=>wd(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>wd(n)||n===n.toLowerCase()})}uppercase(t=Oo.uppercase){return this.transform(n=>wd(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>wd(n)||n===n.toUpperCase()})}}Jd.prototype=DU.prototype;var vyt=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;function xyt(e){var t=[1,4,5,6,7,10,11],n=0,r,i;if(i=vyt.exec(e)){for(var a=0,o;o=t[a];++a)i[o]=+i[o]||0;i[2]=(+i[2]||1)-1,i[3]=+i[3]||1,i[7]=i[7]?String(i[7]).substr(0,3):0,(i[8]===void 0||i[8]==="")&&(i[9]===void 0||i[9]==="")?r=+new Date(i[1],i[2],i[3],i[4],i[5],i[6],i[7]):(i[8]!=="Z"&&i[9]!==void 0&&(n=i[10]*60+i[11],i[9]==="+"&&(n=0-n)),r=Date.UTC(i[1],i[2],i[3],i[4],i[5]+n,i[6],i[7]))}else r=Date.parse?Date.parse(e):NaN;return r}let Cyt=new Date(""),Syt=e=>Object.prototype.toString.call(e)==="[object Date]";class t2 extends Bs{constructor(){super({type:"date",check(t){return Syt(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=xyt(t),isNaN(t)?t2.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(pf.isRef(t))r=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=i}return r}min(t,n=B8.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(i){return i>=this.resolve(r)}})}max(t,n=B8.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(i){return i<=this.resolve(r)}})}}t2.INVALID_DATE=Cyt;t2.prototype;function Dyt(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([o,s])=>`${o}-${s}`));function a(o,s){let l=Nd.split(o)[0];r.add(l),i.has(`${s}-${l}`)||n.push([s,l])}for(const o of Object.keys(e)){let s=e[o];r.add(o),pf.isRef(s)&&s.isSibling?a(s.path,o):E9(s)&&"deps"in s&&s.deps.forEach(l=>a(l,o))}return ayt.array(Array.from(r),n).reverse()}function SO(e,t){let n=1/0;return e.some((r,i)=>{var a;if((a=t.path)!=null&&a.includes(r))return n=i,!0}),n}function EU(e){return(t,n)=>SO(e,t)-SO(e,n)}const Eyt=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function Tb(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=Tb(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=Tb(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Tb)}):"optional"in e?e.optional():e}const Tyt=(e,t)=>{const n=[...Nd.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),i=Nd.getter(Nd.join(n),!0)(e);return!!(i&&r in i)};let DO=e=>Object.prototype.toString.call(e)==="[object Object]";function Ayt(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const zyt=EU([]);function d1(e){return new TU(e)}class TU extends Bs{constructor(t){super({type:"object",check(n){return DO(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=zyt,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let i=super._cast(t,n);if(i===void 0)return this.getDefault(n);if(!this._typeCheck(i))return i;let a=this.fields,o=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,s=[].concat(this._nodes,Object.keys(i).filter(f=>!this._nodes.includes(f))),l={},c=Object.assign({},n,{parent:l,__validating:n.__validating||!1}),u=!1;for(const f of s){let h=a[f],m=f in i;if(h){let g,b=i[f];c.path=(n.path?`${n.path}.`:"")+f,h=h.resolve({value:b,context:n.context,parent:l});let C=h instanceof Bs?h.spec:void 0,w=C==null?void 0:C.strict;if(C!=null&&C.strip){u=u||f in i;continue}g=!n.__validating||!w?h.cast(i[f],c):i[f],g!==void 0&&(l[f]=g)}else m&&!o&&(l[f]=i[f]);(m!==f in l||l[f]!==i[f])&&(u=!0)}return u?l:i}_validate(t,n={},r,i){let{from:a=[],originalValue:o=t,recursive:s=this.spec.recursive}=n;n.from=[{schema:this,value:o},...a],n.__validating=!0,n.originalValue=o,super._validate(t,n,r,(l,c)=>{if(!s||!DO(c)){i(l,c);return}o=o||c;let u=[];for(let f of this._nodes){let h=this.fields[f];!h||pf.isRef(h)||u.push(h.asNestedTest({options:n,key:f,parent:c,parentPath:n.path,originalParent:o}))}this.runTests({tests:u,value:c,originalValue:o,options:n},r,f=>{i(f.sort(this._sortErrors).concat(l),c)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[i,a]of Object.entries(this.fields)){const o=r[i];r[i]=o===void 0?a:o}return n.withMutation(i=>i.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var i;const a=this.fields[r];let o=t;(i=o)!=null&&i.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[r]})),n[r]=a&&"getDefault"in a?a.getDefault(o):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=Dyt(t,n),r._sortErrors=EU(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let i=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),i=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),i)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return Tb(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n)}omit(t){const n=Object.assign({},this.fields);for(const r of t)delete n[r];return this.setFields(n)}from(t,n,r){let i=Nd.getter(t,!0);return this.transform(a=>{if(!a)return a;let o=a;return Tyt(a,t)&&(o=Object.assign({},a),r||delete o[t],o[n]=i(a)),o})}json(){return this.transform(Eyt)}noUnknown(t=!0,n=R8.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(i){if(i==null)return!0;const a=Ayt(this.schema,i);return!t||a.length===0||this.createError({params:{unknown:a.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=R8.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const i of Object.keys(n))r[t(i)]=n[i];return r})}camelCase(){return this.transformKeys(F6.camelCase)}snakeCase(){return this.transformKeys(F6.snakeCase)}constantCase(){return this.transformKeys(t=>F6.snakeCase(t).toUpperCase())}describe(t){let n=super.describe(t);n.fields={};for(const[i,a]of Object.entries(this.fields)){var r;let o=t;(r=o)!=null&&r.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[i]})),n.fields[i]=a.describe(o)}return n}}d1.prototype=TU.prototype;d1().shape({alt:Jd(),title:Jd()});const Fyt=({alt:e,title:t})=>Jv({mode:"onChange",defaultValues:{alt:e,title:t}}),$yt=({text:e,required:t=!1,...n})=>j(Myt,{required:t,...n,children:e}),Myt=Ae.label.withConfig({displayName:"LabelStyled"})(["display:inline-flex;justify-content:flex-start;margin-bottom:",";color:",";",""],ee(8),e=>e.error?e.theme.colors.darkRed:e.theme.colors.lightBlack,e=>e.required&&Tn(["&::after{margin-left:",";color:",";font-size:",";content:'*';}"],ee(3),t=>t.theme.colors.darkRed,ee(10))),kp=F.forwardRef(({className:e,required:t,name:n,label:r,error:i,...a},o)=>He(Oyt,{className:e,children:[r&&j($yt,{text:r,htmlFor:n,required:t}),j(Nyt,{...a,ref:o,required:t,name:n,error:!!i}),i&&j(Lyt,{children:i})]})),Oyt=Ae.div.withConfig({displayName:"InputFieldStyled"})(["display:flex;flex-direction:column;margin-bottom:",";"],ee(16)),Nyt=Ae.input.withConfig({displayName:"InputStyled"})(["width:100%;padding:"," ",";color:",";font-size:",";font-weight:500;outline:0;border:1px solid ",";border-radius:",";transition:border-color 0.2s ease-in;&::placeholder{color:",";}&:hover,&:focus{border-color:",";}"],ee(10),ee(16),e=>e.theme.colors.lightBlack,ee(16),e=>e.error?e.theme.colors.darkRed:e.theme.colors.lightGrey,ee(8),e=>e.theme.colors.lightGrey,e=>e.theme.colors.lightBlack),Lyt=Ae.span.withConfig({displayName:"ErrorStyled"})(["color:",";font-size:",";"],e=>e.theme.colors.darkRed,ee(12)),AU=F.createContext({onOpen:()=>{},isOpen:!1,onClose:()=>{}}),Iyt=({onClose:e,isOpen:t,onOpen:n,children:r})=>{const i=F.useMemo(()=>({onOpen:n,isOpen:t,onClose:e}),[e,t,n]);return j(AU.Provider,{value:i,children:r})},Hp=()=>F.useContext(AU),n2=({loading:e,saveText:t,className:n="",isDisabled:r,cancelText:i,withCancel:a=!0,onSaveClick:o,onCancelClick:s,saveButtonType:l="button"})=>{const{onClose:c}=Hp();return He(Byt,{className:n,children:[a&&j(Xt,{color:"secondary",variant:"outlined",type:l,onClick:s||c,oval:!0,loading:e,children:i||"Cancel"}),j(Xt,{color:"primary",variant:"contained",type:l,oval:!0,onClick:o?u=>o(u,c):void 0,disabled:r,loading:e,children:t||"Save"})]})},Byt=Ae.div.withConfig({displayName:"ModalActionsStyled"})(["display:flex;gap:",";justify-content:flex-end;align-items:center;"],ee(8)),f1=Ae.div.withConfig({displayName:"ModalBody"})(["flex:1;padding:"," "," ",";color:",";font-size:",";line-height:",";"],ee(12),ee(24),ee(12),e=>e.theme.colors.lightBlack,ee(16),ee(21)),T9=Ae.div.withConfig({displayName:"ModalFooter"})(["padding:"," "," ",";font-size:",";line-height:",";"],ee(12),ee(24),ee(16),ee(16),ee(18)),Ryt=({alt:e,title:t,onImageEdit:n,onImageRemove:r})=>{const{onClose:i}=Hp(),{handleSubmit:a,register:o}=Fyt({alt:e,title:t});return He("form",{onSubmit:a(l=>{n(l),i()}),children:[He(Pyt,{children:[j(kp,{...o("title"),placeholder:"Add a title",label:"Image title"}),j(kp,{...o("alt"),label:"Alt text",placeholder:"Describe image for search optimization"})]}),He(jyt,{children:[j(Xt,{oval:!0,onClick:r,color:"danger",variant:"outlined",children:"Remove image"}),j(n2,{saveButtonType:"submit"})]})]})},Pyt=Ae(f1).withConfig({displayName:"ModalBodyStyled"})(["padding-top:",";"],ee(32)),jyt=Ae(T9).withConfig({displayName:"ModalFooterStyled"})(["display:flex;align-items:center;justify-content:space-between;"]),zU=F.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),r2=F.createContext({}),i2=F.createContext(null),a2=typeof document<"u",Qk=a2?F.useLayoutEffect:F.useEffect,FU=F.createContext({strict:!1});function Vyt(e,t,n,r){const{visualElement:i}=F.useContext(r2),a=F.useContext(FU),o=F.useContext(i2),s=F.useContext(zU).reducedMotion,l=F.useRef();r=r||a.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:s}));const c=l.current;return F.useInsertionEffect(()=>{c&&c.update(n,o)}),Qk(()=>{c&&c.render()}),F.useEffect(()=>{c&&c.updateFeatures()}),(window.HandoffAppearAnimations?Qk:F.useEffect)(()=>{c&&c.animationState&&c.animationState.animateChanges()}),c}function xh(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function qyt(e,t,n){return F.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):xh(n)&&(n.current=r))},[t])}function xg(e){return typeof e=="string"||Array.isArray(e)}function o2(e){return typeof e=="object"&&typeof e.start=="function"}const A9=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],z9=["initial",...A9];function s2(e){return o2(e.animate)||z9.some(t=>xg(e[t]))}function $U(e){return!!(s2(e)||e.variants)}function Hyt(e,t){if(s2(e)){const{initial:n,animate:r}=e;return{initial:n===!1||xg(n)?n:void 0,animate:xg(r)?r:void 0}}return e.inherit!==!1?t:{}}function Uyt(e){const{initial:t,animate:n}=Hyt(e,F.useContext(r2));return F.useMemo(()=>({initial:t,animate:n}),[EO(t),EO(n)])}function EO(e){return Array.isArray(e)?e.join(" "):e}const TO={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Cg={};for(const e in TO)Cg[e]={isEnabled:t=>TO[e].some(n=>!!t[n])};function Wyt(e){for(const t in e)Cg[t]={...Cg[t],...e[t]}}const F9=F.createContext({}),MU=F.createContext({}),Gyt=Symbol.for("motionComponentSymbol");function Kyt({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&Wyt(e);function a(s,l){let c;const u={...F.useContext(zU),...s,layoutId:Yyt(s)},{isStatic:f}=u,h=Uyt(s),m=r(s,f);if(!f&&a2){h.visualElement=Vyt(i,m,u,t);const g=F.useContext(MU),b=F.useContext(FU).strict;h.visualElement&&(c=h.visualElement.loadFeatures(u,b,e,g))}return F.createElement(r2.Provider,{value:h},c&&h.visualElement?F.createElement(c,{visualElement:h.visualElement,...u}):null,n(i,s,qyt(m,h.visualElement,l),m,f,h.visualElement))}const o=F.forwardRef(a);return o[Gyt]=i,o}function Yyt({layoutId:e}){const t=F.useContext(F9).id;return t&&e!==void 0?t+"-"+e:e}function Zyt(e){function t(r,i={}){return Kyt(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const Xyt=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function $9(e){return typeof e!="string"||e.includes("-")?!1:!!(Xyt.indexOf(e)>-1||/[A-Z]/.test(e))}const ew={};function Jyt(e){Object.assign(ew,e)}const h1=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],mf=new Set(h1);function OU(e,{layout:t,layoutId:n}){return mf.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ew[e]||e==="opacity")}const Zi=e=>!!(e&&e.getVelocity),Qyt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},e_t=h1.length;function t_t(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let a="";for(let o=0;o<e_t;o++){const s=h1[o];if(e[s]!==void 0){const l=Qyt[s]||s;a+=`${l}(${e[s]}) `}}return t&&!e.z&&(a+="translateZ(0)"),a=a.trim(),i?a=i(e,r?"":a):n&&r&&(a="none"),a}const NU=e=>t=>typeof t=="string"&&t.startsWith(e),LU=NU("--"),P8=NU("var(--"),n_t=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,r_t=(e,t)=>t&&typeof e=="number"?t.transform(e):e,fu=(e,t,n)=>Math.min(Math.max(n,e),t),gf={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Nm={...gf,transform:e=>fu(0,1,e)},t_={...gf,default:1},Lm=e=>Math.round(e*1e5)/1e5,l2=/(-)?([\d]*\.?[\d])+/g,IU=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,i_t=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function p1(e){return typeof e=="string"}const m1=e=>({test:t=>p1(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ec=m1("deg"),zs=m1("%"),xt=m1("px"),a_t=m1("vh"),o_t=m1("vw"),AO={...zs,parse:e=>zs.parse(e)/100,transform:e=>zs.transform(e*100)},zO={...gf,transform:Math.round},BU={borderWidth:xt,borderTopWidth:xt,borderRightWidth:xt,borderBottomWidth:xt,borderLeftWidth:xt,borderRadius:xt,radius:xt,borderTopLeftRadius:xt,borderTopRightRadius:xt,borderBottomRightRadius:xt,borderBottomLeftRadius:xt,width:xt,maxWidth:xt,height:xt,maxHeight:xt,size:xt,top:xt,right:xt,bottom:xt,left:xt,padding:xt,paddingTop:xt,paddingRight:xt,paddingBottom:xt,paddingLeft:xt,margin:xt,marginTop:xt,marginRight:xt,marginBottom:xt,marginLeft:xt,rotate:Ec,rotateX:Ec,rotateY:Ec,rotateZ:Ec,scale:t_,scaleX:t_,scaleY:t_,scaleZ:t_,skew:Ec,skewX:Ec,skewY:Ec,distance:xt,translateX:xt,translateY:xt,translateZ:xt,x:xt,y:xt,z:xt,perspective:xt,transformPerspective:xt,opacity:Nm,originX:AO,originY:AO,originZ:xt,zIndex:zO,fillOpacity:Nm,strokeOpacity:Nm,numOctaves:zO};function M9(e,t,n,r){const{style:i,vars:a,transform:o,transformOrigin:s}=e;let l=!1,c=!1,u=!0;for(const f in t){const h=t[f];if(LU(f)){a[f]=h;continue}const m=BU[f],g=r_t(h,m);if(mf.has(f)){if(l=!0,o[f]=g,!u)continue;h!==(m.default||0)&&(u=!1)}else f.startsWith("origin")?(c=!0,s[f]=g):i[f]=g}if(t.transform||(l||r?i.transform=t_t(e.transform,n,u,r):i.transform&&(i.transform="none")),c){const{originX:f="50%",originY:h="50%",originZ:m=0}=s;i.transformOrigin=`${f} ${h} ${m}`}}const O9=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function RU(e,t,n){for(const r in t)!Zi(t[r])&&!OU(r,n)&&(e[r]=t[r])}function s_t({transformTemplate:e},t,n){return F.useMemo(()=>{const r=O9();return M9(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function l_t(e,t,n){const r=e.style||{},i={};return RU(i,r,e),Object.assign(i,s_t(e,t,n)),e.transformValues?e.transformValues(i):i}function c_t(e,t,n){const r={},i=l_t(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const u_t=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function tw(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||u_t.has(e)}let PU=e=>!tw(e);function d_t(e){e&&(PU=t=>t.startsWith("on")?!tw(t):e(t))}try{d_t(require("@emotion/is-prop-valid").default)}catch{}function f_t(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(PU(i)||n===!0&&tw(i)||!t&&!tw(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function FO(e,t,n){return typeof e=="string"?e:xt.transform(t+n*e)}function h_t(e,t,n){const r=FO(t,e.x,e.width),i=FO(n,e.y,e.height);return`${r} ${i}`}const p_t={offset:"stroke-dashoffset",array:"stroke-dasharray"},m_t={offset:"strokeDashoffset",array:"strokeDasharray"};function g_t(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?p_t:m_t;e[a.offset]=xt.transform(-r);const o=xt.transform(t),s=xt.transform(n);e[a.array]=`${o} ${s}`}function N9(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:o,pathSpacing:s=1,pathOffset:l=0,...c},u,f,h){if(M9(e,c,u,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g,dimensions:b}=e;m.transform&&(b&&(g.transform=m.transform),delete m.transform),b&&(i!==void 0||a!==void 0||g.transform)&&(g.transformOrigin=h_t(b,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),o!==void 0&&g_t(m,o,s,l,!1)}const jU=()=>({...O9(),attrs:{}}),L9=e=>typeof e=="string"&&e.toLowerCase()==="svg";function y_t(e,t,n,r){const i=F.useMemo(()=>{const a=jU();return N9(a,t,{enableHardwareAcceleration:!1},L9(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};RU(a,e.style,e),i.style={...a,...i.style}}return i}function __t(e=!1){return(n,r,i,{latestValues:a},o)=>{const l=($9(n)?y_t:c_t)(r,a,o,n),u={...f_t(r,typeof n=="string",e),...l,ref:i},{children:f}=r,h=F.useMemo(()=>Zi(f)?f.get():f,[f]);return F.createElement(n,{...u,children:h})}}const I9=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function VU(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const qU=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function HU(e,t,n,r){VU(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(qU.has(i)?i:I9(i),t.attrs[i])}function B9(e,t){const{style:n}=e,r={};for(const i in n)(Zi(n[i])||t.style&&Zi(t.style[i])||OU(i,e))&&(r[i]=n[i]);return r}function UU(e,t){const n=B9(e,t);for(const r in e)if(Zi(e[r])||Zi(t[r])){const i=h1.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function R9(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function WU(e){const t=F.useRef(null);return t.current===null&&(t.current=e()),t.current}const nw=e=>Array.isArray(e),b_t=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),k_t=e=>nw(e)?e[e.length-1]||0:e;function Ab(e){const t=Zi(e)?e.get():e;return b_t(t)?t.toValue():t}function w_t({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,a){const o={latestValues:v_t(r,i,a,e),renderState:t()};return n&&(o.mount=s=>n(r,s,o)),o}const GU=e=>(t,n)=>{const r=F.useContext(r2),i=F.useContext(i2),a=()=>w_t(e,t,r,i);return n?a():WU(a)};function v_t(e,t,n,r){const i={},a=r(e,{});for(const h in a)i[h]=Ab(a[h]);let{initial:o,animate:s}=e;const l=s2(e),c=$U(e);t&&c&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const f=u?s:o;return f&&typeof f!="boolean"&&!o2(f)&&(Array.isArray(f)?f:[f]).forEach(m=>{const g=R9(e,m);if(!g)return;const{transitionEnd:b,transition:C,...w}=g;for(const k in w){let S=w[k];if(Array.isArray(S)){const E=u?S.length-1:0;S=S[E]}S!==null&&(i[k]=S)}for(const k in b)i[k]=b[k]}),i}const x_t={useVisualState:GU({scrapeMotionValuesFromProps:UU,createRenderState:jU,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}N9(n,r,{enableHardwareAcceleration:!1},L9(t.tagName),e.transformTemplate),HU(t,n)}})},C_t={useVisualState:GU({scrapeMotionValuesFromProps:B9,createRenderState:O9})};function S_t(e,{forwardMotionProps:t=!1},n,r){return{...$9(e)?x_t:C_t,preloadedFeatures:n,useRender:__t(t),createVisualElement:r,Component:e}}function El(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const KU=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function c2(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const D_t=e=>t=>KU(t)&&e(t,c2(t));function zl(e,t,n,r){return El(e,t,D_t(n),r)}const E_t=(e,t)=>n=>t(e(n)),ru=(...e)=>e.reduce(E_t);function YU(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const $O=YU("dragHorizontal"),MO=YU("dragVertical");function ZU(e){let t=!1;if(e==="y")t=MO();else if(e==="x")t=$O();else{const n=$O(),r=MO();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function XU(){const e=ZU(!0);return e?(e(),!1):!0}class Fu{constructor(t){this.isMounted=!1,this.node=t}update(){}}function T_t(e){let t=[],n=[],r=0,i=!1,a=!1;const o=new WeakSet,s={schedule:(l,c=!1,u=!1)=>{const f=u&&i,h=f?t:n;return c&&o.add(l),h.indexOf(l)===-1&&(h.push(l),f&&i&&(r=t.length)),l},cancel:l=>{const c=n.indexOf(l);c!==-1&&n.splice(c,1),o.delete(l)},process:l=>{if(i){a=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let c=0;c<r;c++){const u=t[c];u(l),o.has(u)&&(s.schedule(u),e())}i=!1,a&&(a=!1,s.process(l))}};return s}const Wn={delta:0,timestamp:0,isProcessing:!1},A_t=40;let j8=!0,Sg=!1;const u2=["read","update","preRender","render","postRender"],Uh=u2.reduce((e,t)=>(e[t]=T_t(()=>Sg=!0),e),{}),z_t=e=>Uh[e].process(Wn),JU=e=>{Sg=!1,Wn.delta=j8?1e3/60:Math.max(Math.min(e-Wn.timestamp,A_t),1),Wn.timestamp=e,Wn.isProcessing=!0,u2.forEach(z_t),Wn.isProcessing=!1,Sg&&(j8=!1,requestAnimationFrame(JU))},F_t=()=>{Sg=!0,j8=!0,Wn.isProcessing||requestAnimationFrame(JU)},jn=u2.reduce((e,t)=>{const n=Uh[t];return e[t]=(r,i=!1,a=!1)=>(Sg||F_t(),n.schedule(r,i,a)),e},{});function Vl(e){u2.forEach(t=>Uh[t].cancel(e))}function OO(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(a,o)=>{if(a.type==="touch"||XU())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[r]&&jn.update(()=>s[r](a,o))};return zl(e.current,n,i,{passive:!e.getProps()[r]})}class $_t extends Fu{mount(){this.unmount=ru(OO(this.node,!0),OO(this.node,!1))}unmount(){}}class M_t extends Fu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ru(El(this.node.current,"focus",()=>this.onFocus()),El(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const QU=(e,t)=>t?e===t?!0:QU(e,t.parentElement):!1,vr=e=>e;function $6(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,c2(n))}class O_t extends Fu{constructor(){super(...arguments),this.removeStartListeners=vr,this.removeEndListeners=vr,this.removeAccessibleListeners=vr,this.startPointerPress=(t,n)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),a=zl(window,"pointerup",(s,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:u}=this.node.getProps();jn.update(()=>{QU(this.node.current,s.target)?c&&c(s,l):u&&u(s,l)})},{passive:!(r.onTap||r.onPointerUp)}),o=zl(window,"pointercancel",(s,l)=>this.cancelPress(s,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=ru(a,o),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=a=>{if(a.key!=="Enter"||this.isPressing)return;const o=s=>{s.key!=="Enter"||!this.checkPressEnd()||$6("up",(l,c)=>{const{onTap:u}=this.node.getProps();u&&jn.update(()=>u(l,c))})};this.removeEndListeners(),this.removeEndListeners=El(this.node.current,"keyup",o),$6("down",(s,l)=>{this.startPress(s,l)})},n=El(this.node.current,"keydown",t),r=()=>{this.isPressing&&$6("cancel",(a,o)=>this.cancelPress(a,o))},i=El(this.node.current,"blur",r);this.removeAccessibleListeners=ru(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&jn.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!XU()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&jn.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=zl(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=El(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ru(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const V8=new WeakMap,M6=new WeakMap,N_t=e=>{const t=V8.get(e.target);t&&t(e)},L_t=e=>{e.forEach(N_t)};function I_t({root:e,...t}){const n=e||document;M6.has(n)||M6.set(n,{});const r=M6.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(L_t,{root:e,...t})),r[i]}function B_t(e,t,n){const r=I_t(t);return V8.set(e,n),r.observe(e),()=>{V8.delete(e),r.unobserve(e)}}const R_t={some:0,all:1};class P_t extends Fu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:R_t[i]},s=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,a&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),h=c?u:f;h&&h(l)};return B_t(this.node.current,o,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(j_t(t,n))&&this.startObserver()}unmount(){}}function j_t({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const V_t={inView:{Feature:P_t},tap:{Feature:O_t},focus:{Feature:M_t},hover:{Feature:$_t}};function eW(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function q_t(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function H_t(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function d2(e,t,n){const r=e.getProps();return R9(r,t,n!==void 0?n:r.custom,q_t(e),H_t(e))}const U_t="framerAppearId",W_t="data-"+I9(U_t);let G_t=vr,P9=vr;const iu=e=>e*1e3,Fl=e=>e/1e3,K_t={current:!1},tW=e=>Array.isArray(e)&&typeof e[0]=="number";function nW(e){return!!(!e||typeof e=="string"&&rW[e]||tW(e)||Array.isArray(e)&&e.every(nW))}const om=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,rW={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:om([0,.65,.55,1]),circOut:om([.55,0,1,.45]),backIn:om([.31,.01,.66,-.59]),backOut:om([.33,1.53,.69,.99])};function iW(e){if(e)return tW(e)?om(e):Array.isArray(e)?e.map(iW):rW[e]}function Y_t(e,t,n,{delay:r=0,duration:i,repeat:a=0,repeatType:o="loop",ease:s,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=iW(s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"})}const NO={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},O6={},aW={};for(const e in NO)aW[e]=()=>(O6[e]===void 0&&(O6[e]=NO[e]()),O6[e]);function Z_t(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const oW=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,X_t=1e-7,J_t=12;function Q_t(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=oW(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>X_t&&++s<J_t);return o}function g1(e,t,n,r){if(e===t&&n===r)return vr;const i=a=>Q_t(a,0,1,e,n);return a=>a===0||a===1?a:oW(i(a),t,r)}const ebt=g1(.42,0,1,1),tbt=g1(0,0,.58,1),sW=g1(.42,0,.58,1),nbt=e=>Array.isArray(e)&&typeof e[0]!="number",lW=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,cW=e=>t=>1-e(1-t),uW=e=>1-Math.sin(Math.acos(e)),j9=cW(uW),rbt=lW(j9),dW=g1(.33,1.53,.69,.99),V9=cW(dW),ibt=lW(V9),abt=e=>(e*=2)<1?.5*V9(e):.5*(2-Math.pow(2,-10*(e-1))),obt={linear:vr,easeIn:ebt,easeInOut:sW,easeOut:tbt,circIn:uW,circInOut:rbt,circOut:j9,backIn:V9,backInOut:ibt,backOut:dW,anticipate:abt},LO=e=>{if(Array.isArray(e)){P9(e.length===4);const[t,n,r,i]=e;return g1(t,n,r,i)}else if(typeof e=="string")return obt[e];return e},q9=(e,t)=>n=>!!(p1(n)&&i_t.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),fW=(e,t,n)=>r=>{if(!p1(r))return r;const[i,a,o,s]=r.match(l2);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s!==void 0?parseFloat(s):1}},sbt=e=>fu(0,255,e),N6={...gf,transform:e=>Math.round(sbt(e))},vd={test:q9("rgb","red"),parse:fW("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+N6.transform(e)+", "+N6.transform(t)+", "+N6.transform(n)+", "+Lm(Nm.transform(r))+")"};function lbt(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const q8={test:q9("#"),parse:lbt,transform:vd.transform},Ch={test:q9("hsl","hue"),parse:fW("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+zs.transform(Lm(t))+", "+zs.transform(Lm(n))+", "+Lm(Nm.transform(r))+")"},hi={test:e=>vd.test(e)||q8.test(e)||Ch.test(e),parse:e=>vd.test(e)?vd.parse(e):Ch.test(e)?Ch.parse(e):q8.parse(e),transform:e=>p1(e)?e:e.hasOwnProperty("red")?vd.transform(e):Ch.transform(e)},Yn=(e,t,n)=>-n*e+n*t+e;function L6(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function cbt({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=L6(l,s,e+1/3),a=L6(l,s,e),o=L6(l,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}const I6=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},ubt=[q8,vd,Ch],dbt=e=>ubt.find(t=>t.test(e));function IO(e){const t=dbt(e);let n=t.parse(e);return t===Ch&&(n=cbt(n)),n}const hW=(e,t)=>{const n=IO(e),r=IO(t),i={...n};return a=>(i.red=I6(n.red,r.red,a),i.green=I6(n.green,r.green,a),i.blue=I6(n.blue,r.blue,a),i.alpha=Yn(n.alpha,r.alpha,a),vd.transform(i))};function fbt(e){var t,n;return isNaN(e)&&p1(e)&&(((t=e.match(l2))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(IU))===null||n===void 0?void 0:n.length)||0)>0}const pW={regex:n_t,countKey:"Vars",token:"${v}",parse:vr},mW={regex:IU,countKey:"Colors",token:"${c}",parse:hi.parse},gW={regex:l2,countKey:"Numbers",token:"${n}",parse:gf.parse};function B6(e,{regex:t,countKey:n,token:r,parse:i}){const a=e.tokenised.match(t);a&&(e["num"+n]=a.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...a.map(i)))}function rw(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&B6(n,pW),B6(n,mW),B6(n,gW),n}function yW(e){return rw(e).values}function _W(e){const{values:t,numColors:n,numVars:r,tokenised:i}=rw(e),a=t.length;return o=>{let s=i;for(let l=0;l<a;l++)l<r?s=s.replace(pW.token,o[l]):l<r+n?s=s.replace(mW.token,hi.transform(o[l])):s=s.replace(gW.token,Lm(o[l]));return s}}const hbt=e=>typeof e=="number"?0:e;function pbt(e){const t=yW(e);return _W(e)(t.map(hbt))}const hu={test:fbt,parse:yW,createTransformer:_W,getAnimatableNone:pbt},bW=(e,t)=>n=>`${n>0?t:e}`;function kW(e,t){return typeof e=="number"?n=>Yn(e,t,n):hi.test(e)?hW(e,t):e.startsWith("var(")?bW(e,t):vW(e,t)}const wW=(e,t)=>{const n=[...e],r=n.length,i=e.map((a,o)=>kW(a,t[o]));return a=>{for(let o=0;o<r;o++)n[o]=i[o](a);return n}},mbt=(e,t)=>{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=kW(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}},vW=(e,t)=>{const n=hu.createTransformer(t),r=rw(e),i=rw(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?ru(wW(r.values,i.values),n):bW(e,t)},Dg=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},BO=(e,t)=>n=>Yn(e,t,n);function gbt(e){return typeof e=="number"?BO:typeof e=="string"?hi.test(e)?hW:vW:Array.isArray(e)?wW:typeof e=="object"?mbt:BO}function ybt(e,t,n){const r=[],i=n||gbt(e[0]),a=e.length-1;for(let o=0;o<a;o++){let s=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||vr:t;s=ru(l,s)}r.push(s)}return r}function xW(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(P9(a===t.length),a===1)return()=>t[0];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=ybt(t,r,i),s=o.length,l=c=>{let u=0;if(s>1)for(;u<e.length-2&&!(c<e[u+1]);u++);const f=Dg(e[u],e[u+1],c);return o[u](f)};return n?c=>l(fu(e[0],e[a-1],c)):l}function _bt(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Dg(0,t,r);e.push(Yn(n,1,i))}}function bbt(e){const t=[0];return _bt(t,e.length-1),t}function kbt(e,t){return e.map(n=>n*t)}function wbt(e,t){return e.map(()=>t||sW).splice(0,e.length-1)}function iw({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=nbt(r)?r.map(LO):LO(r),a={done:!1,value:t[0]},o=kbt(n&&n.length===t.length?n:bbt(t),e),s=xW(o,t,{ease:Array.isArray(i)?i:wbt(t,i)});return{calculatedDuration:e,next:l=>(a.value=s(l),a.done=l>=e,a)}}function CW(e,t){return t?e*(1e3/t):0}const vbt=5;function SW(e,t,n){const r=Math.max(t-vbt,0);return CW(n-e(r),t-r)}const R6=.001,xbt=.01,RO=10,Cbt=.05,Sbt=1;function Dbt({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,a;G_t(e<=iu(RO));let o=1-t;o=fu(Cbt,Sbt,o),e=fu(xbt,RO,Fl(e)),o<1?(i=c=>{const u=c*o,f=u*e,h=u-n,m=H8(c,o),g=Math.exp(-f);return R6-h/m*g},a=c=>{const f=c*o*e,h=f*n+n,m=Math.pow(o,2)*Math.pow(c,2)*e,g=Math.exp(-f),b=H8(Math.pow(c,2),o);return(-i(c)+R6>0?-1:1)*((h-m)*g)/b}):(i=c=>{const u=Math.exp(-c*e),f=(c-n)*e+1;return-R6+u*f},a=c=>{const u=Math.exp(-c*e),f=(n-c)*(e*e);return u*f});const s=5/e,l=Tbt(i,a,s);if(e=iu(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const Ebt=12;function Tbt(e,t,n){let r=n;for(let i=1;i<Ebt;i++)r=r-e(r)/t(r);return r}function H8(e,t){return e*Math.sqrt(1-t*t)}const Abt=["duration","bounce"],zbt=["stiffness","damping","mass"];function PO(e,t){return t.some(n=>e[n]!==void 0)}function Fbt(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!PO(e,zbt)&&PO(e,Abt)){const n=Dbt(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function DW({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],a=e[e.length-1],o={done:!1,value:i},{stiffness:s,damping:l,mass:c,velocity:u,duration:f,isResolvedFromDuration:h}=Fbt(r),m=u?-Fl(u):0,g=l/(2*Math.sqrt(s*c)),b=a-i,C=Fl(Math.sqrt(s/c)),w=Math.abs(b)<5;n||(n=w?.01:2),t||(t=w?.005:.5);let k;if(g<1){const S=H8(C,g);k=E=>{const A=Math.exp(-g*C*E);return a-A*((m+g*C*b)/S*Math.sin(S*E)+b*Math.cos(S*E))}}else if(g===1)k=S=>a-Math.exp(-C*S)*(b+(m+C*b)*S);else{const S=C*Math.sqrt(g*g-1);k=E=>{const A=Math.exp(-g*C*E),_=Math.min(S*E,300);return a-A*((m+g*C*b)*Math.sinh(_)+S*b*Math.cosh(_))/S}}return{calculatedDuration:h&&f||null,next:S=>{const E=k(S);if(h)o.done=S>=f;else{let A=m;S!==0&&(g<1?A=SW(k,S,E):A=0);const _=Math.abs(A)<=n,T=Math.abs(a-E)<=t;o.done=_&&T}return o.value=o.done?a:E,o}}}function jO({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:l,restDelta:c=.5,restSpeed:u}){const f=e[0],h={done:!1,value:f},m=$=>s!==void 0&&$<s||l!==void 0&&$>l,g=$=>s===void 0?l:l===void 0||Math.abs(s-$)<Math.abs(l-$)?s:l;let b=n*t;const C=f+b,w=o===void 0?C:o(C);w!==C&&(b=w-f);const k=$=>-b*Math.exp(-$/r),S=$=>w+k($),E=$=>{const R=k($),O=S($);h.done=Math.abs(R)<=c,h.value=h.done?w:O};let A,_;const T=$=>{m(h.value)&&(A=$,_=DW({keyframes:[h.value,g(h.value)],velocity:SW(S,$,h.value),damping:i,stiffness:a,restDelta:c,restSpeed:u}))};return T(0),{calculatedDuration:null,next:$=>{let R=!1;return!_&&A===void 0&&(R=!0,E($),T($)),A!==void 0&&$>A?_.next($-A):(!R&&E($),h)}}}const $bt=e=>{const t=({timestamp:n})=>e(n);return{start:()=>jn.update(t,!0),stop:()=>Vl(t),now:()=>Wn.isProcessing?Wn.timestamp:performance.now()}},VO=2e4;function qO(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<VO;)t+=n,r=e.next(t);return t>=VO?1/0:t}const Mbt={decay:jO,inertia:jO,tween:iw,keyframes:iw,spring:DW};function aw({autoplay:e=!0,delay:t=0,driver:n=$bt,keyframes:r,type:i="keyframes",repeat:a=0,repeatDelay:o=0,repeatType:s="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:f,...h}){let m=1,g=!1,b,C;const w=()=>{b&&b(),C=new Promise(de=>{b=de})};w();let k;const S=Mbt[i]||iw;let E;S!==iw&&typeof r[0]!="number"&&(E=xW([0,100],r,{clamp:!1}),r=[0,100]);const A=S({...h,keyframes:r});let _;s==="mirror"&&(_=S({...h,keyframes:[...r].reverse(),velocity:-(h.velocity||0)}));let T="idle",$=null,R=null,O=null;A.calculatedDuration===null&&a&&(A.calculatedDuration=qO(A));const{calculatedDuration:G}=A;let V=1/0,Z=1/0;G!==null&&(V=G+o,Z=V*(a+1)-o);let W=0;const Y=de=>{if(R===null)return;m>0&&(R=Math.min(R,de)),m<0&&(R=Math.min(de-Z/m,R)),$!==null?W=$:W=Math.round(de-R)*m;const ue=W-t*(m>=0?1:-1),I=m>=0?ue<0:ue>Z;W=Math.max(ue,0),T==="finished"&&$===null&&(W=Z);let be=W,ze=A;if(a){const We=W/V;let Pe=Math.floor(We),Ge=We%1;!Ge&&We>=1&&(Ge=1),Ge===1&&Pe--,Pe=Math.min(Pe,a+1);const Xe=!!(Pe%2);Xe&&(s==="reverse"?(Ge=1-Ge,o&&(Ge-=o/V)):s==="mirror"&&(ze=_));let Kt=fu(0,1,Ge);W>Z&&(Kt=s==="reverse"&&Xe?1:0),be=Kt*V}const J=I?{done:!1,value:r[0]}:ze.next(be);E&&(J.value=E(J.value));let{done:Ve}=J;!I&&G!==null&&(Ve=m>=0?W>=Z:W<=0);const ye=$===null&&(T==="finished"||T==="running"&&Ve);return f&&f(J.value),ye&&Q(),J},fe=()=>{k&&k.stop(),k=void 0},ae=()=>{T="idle",fe(),w(),R=O=null},Q=()=>{T="finished",u&&u(),fe(),w()},ce=()=>{if(g)return;k||(k=n(Y));const de=k.now();l&&l(),$!==null?R=de-$:(!R||T==="finished")&&(R=de),O=R,$=null,T="running",k.start()};e&&ce();const L={then(de,ue){return C.then(de,ue)},get time(){return Fl(W)},set time(de){de=iu(de),W=de,$!==null||!k||m===0?$=de:R=k.now()-de/m},get duration(){const de=A.calculatedDuration===null?qO(A):A.calculatedDuration;return Fl(de)},get speed(){return m},set speed(de){de===m||!k||(m=de,L.time=Fl(W))},get state(){return T},play:ce,pause:()=>{T="paused",$=W},stop:()=>{g=!0,T!=="idle"&&(T="idle",c&&c(),ae())},cancel:()=>{O!==null&&Y(O),ae()},complete:()=>{T="finished"},sample:de=>(R=0,Y(de))};return L}const Obt=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),n_=10,Nbt=2e4,Lbt=(e,t)=>t.type==="spring"||e==="backgroundColor"||!nW(t.ease);function Ibt(e,t,{onUpdate:n,onComplete:r,...i}){if(!(aW.waapi()&&Obt.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let o=!1,s,l;const c=()=>{l=new Promise(w=>{s=w})};c();let{keyframes:u,duration:f=300,ease:h,times:m}=i;if(Lbt(t,i)){const w=aw({...i,repeat:0,delay:0});let k={done:!1,value:u[0]};const S=[];let E=0;for(;!k.done&&E<Nbt;)k=w.sample(E),S.push(k.value),E+=n_;m=void 0,u=S,f=E-n_,h="linear"}const g=Y_t(e.owner.current,t,u,{...i,duration:f,ease:h,times:m}),b=()=>g.cancel(),C=()=>{jn.update(b),s(),c()};return g.onfinish=()=>{e.set(Z_t(u,i)),r&&r(),C()},{then(w,k){return l.then(w,k)},get time(){return Fl(g.currentTime||0)},set time(w){g.currentTime=iu(w)},get speed(){return g.playbackRate},set speed(w){g.playbackRate=w},get duration(){return Fl(f)},play:()=>{o||(g.play(),Vl(b))},pause:()=>g.pause(),stop:()=>{if(o=!0,g.playState==="idle")return;const{currentTime:w}=g;if(w){const k=aw({...i,autoplay:!1});e.setWithVelocity(k.sample(w-n_).value,k.sample(w).value,n_)}C()},complete:()=>g.finish(),cancel:C}}function Bbt({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:vr,pause:vr,stop:vr,then:a=>(a(),Promise.resolve()),cancel:vr,complete:vr});return t?aw({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const Rbt={type:"spring",stiffness:500,damping:25,restSpeed:10},Pbt=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),jbt={type:"keyframes",duration:.8},Vbt={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},qbt=(e,{keyframes:t})=>t.length>2?jbt:mf.has(e)?e.startsWith("scale")?Pbt(t[1]):Rbt:Vbt,U8=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(hu.test(t)||t==="0")&&!t.startsWith("url(")),Hbt=new Set(["brightness","contrast","saturate","opacity"]);function Ubt(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(l2)||[];if(!r)return e;const i=n.replace(r,"");let a=Hbt.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const Wbt=/([a-z-]*)\(.*?\)/g,W8={...hu,getAnimatableNone:e=>{const t=e.match(Wbt);return t?t.map(Ubt).join(" "):e}},Gbt={...BU,color:hi,backgroundColor:hi,outlineColor:hi,fill:hi,stroke:hi,borderColor:hi,borderTopColor:hi,borderRightColor:hi,borderBottomColor:hi,borderLeftColor:hi,filter:W8,WebkitFilter:W8},H9=e=>Gbt[e];function EW(e,t){let n=H9(e);return n!==W8&&(n=hu),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const TW=e=>/^0[^.\s]+$/.test(e);function Kbt(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||TW(e)}function Ybt(e,t,n,r){const i=U8(t,n);let a;Array.isArray(n)?a=[...n]:a=[null,n];const o=r.from!==void 0?r.from:e.get();let s;const l=[];for(let c=0;c<a.length;c++)a[c]===null&&(a[c]=c===0?o:a[c-1]),Kbt(a[c])&&l.push(c),typeof a[c]=="string"&&a[c]!=="none"&&a[c]!=="0"&&(s=a[c]);if(i&&l.length&&s)for(let c=0;c<l.length;c++){const u=l[c];a[u]=EW(t,s)}return a}function Zbt({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length}function AW(e,t){return e[t]||e.default||e}const U9=(e,t,n,r={})=>i=>{const a=AW(r,e)||{},o=a.delay||r.delay||0;let{elapsed:s=0}=r;s=s-iu(o);const l=Ybt(t,e,n,a),c=l[0],u=l[l.length-1],f=U8(e,c),h=U8(e,u);let m={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...a,delay:-s,onUpdate:g=>{t.set(g),a.onUpdate&&a.onUpdate(g)},onComplete:()=>{i(),a.onComplete&&a.onComplete()}};if(Zbt(a)||(m={...m,...qbt(e,m)}),m.duration&&(m.duration=iu(m.duration)),m.repeatDelay&&(m.repeatDelay=iu(m.repeatDelay)),!f||!h||K_t.current||a.type===!1)return Bbt(m);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const g=Ibt(t,e,m);if(g)return g}return aw(m)};function ow(e){return!!(Zi(e)&&e.add)}const Xbt=e=>/^\-?\d*\.?\d+$/.test(e);function W9(e,t){e.indexOf(t)===-1&&e.push(t)}function G9(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class K9{constructor(){this.subscriptions=[]}add(t){return W9(this.subscriptions,t),()=>G9(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const o=this.subscriptions[a];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Jbt=e=>!isNaN(parseFloat(e));class Qbt{constructor(t,n={}){this.version="10.12.18",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:a,timestamp:o}=Wn;this.lastUpdated!==o&&(this.timeDelta=a,this.lastUpdated=o,jn.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>jn.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=Jbt(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new K9);const r=this.events[t].add(n);return t==="change"?()=>{r(),jn.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?CW(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function wp(e,t){return new Qbt(e,t)}const zW=e=>t=>t.test(e),ekt={test:e=>e==="auto",parse:e=>e},FW=[gf,xt,zs,Ec,o_t,a_t,ekt],M0=e=>FW.find(zW(e)),tkt=[...FW,hi,hu],nkt=e=>tkt.find(zW(e));function rkt(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,wp(n))}function ikt(e,t){const n=d2(e,t);let{transitionEnd:r={},transition:i={},...a}=n?e.makeTargetAnimatable(n,!1):{};a={...a,...r};for(const o in a){const s=k_t(a[o]);rkt(e,o,s)}}function akt(e,t,n){var r,i;const a=Object.keys(t).filter(s=>!e.hasValue(s)),o=a.length;if(o)for(let s=0;s<o;s++){const l=a[s],c=t[l];let u=null;Array.isArray(c)&&(u=c[0]),u===null&&(u=(i=(r=n[l])!==null&&r!==void 0?r:e.readValue(l))!==null&&i!==void 0?i:t[l]),u!=null&&(typeof u=="string"&&(Xbt(u)||TW(u))?u=parseFloat(u):!nkt(u)&&hu.test(c)&&(u=EW(l,c)),e.addValue(l,wp(u,{owner:e})),n[l]===void 0&&(n[l]=u),u!==null&&e.setBaseTarget(l,u))}}function okt(e,t){return t?(t[e]||t.default||t).from:void 0}function skt(e,t,n){const r={};for(const i in e){const a=okt(i,t);if(a!==void 0)r[i]=a;else{const o=n.getValue(i);o&&(r[i]=o.get())}}return r}function lkt({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function $W(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:o,...s}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(a=r);const c=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const f in s){const h=e.getValue(f),m=s[f];if(!h||m===void 0||u&&lkt(u,f))continue;const g={delay:n,elapsed:0,...a};if(window.HandoffAppearAnimations&&!h.hasAnimated){const C=e.getProps()[W_t];C&&(g.elapsed=window.HandoffAppearAnimations(C,f,h,jn))}h.start(U9(f,h,m,e.shouldReduceMotion&&mf.has(f)?{type:!1}:g));const b=h.animation;ow(l)&&(l.add(f),b.then(()=>l.remove(f))),c.push(b)}return o&&Promise.all(c).then(()=>{o&&ikt(e,o)}),c}function G8(e,t,n={}){const r=d2(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all($W(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:f}=i;return ckt(e,t,c+l,u,f,n)}:()=>Promise.resolve(),{when:s}=i;if(s){const[l,c]=s==="beforeChildren"?[a,o]:[o,a];return l().then(()=>c())}else return Promise.all([a(),o(n.delay)])}function ckt(e,t,n=0,r=0,i=1,a){const o=[],s=(e.variantChildren.size-1)*r,l=i===1?(c=0)=>c*r:(c=0)=>s-c*r;return Array.from(e.variantChildren).sort(ukt).forEach((c,u)=>{c.notify("AnimationStart",t),o.push(G8(c,t,{...a,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(o)}function ukt(e,t){return e.sortNodePosition(t)}function dkt(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>G8(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=G8(e,t,n);else{const i=typeof t=="function"?d2(e,t,n.custom):t;r=Promise.all($W(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const fkt=[...A9].reverse(),hkt=A9.length;function pkt(e){return t=>Promise.all(t.map(({animation:n,options:r})=>dkt(e,n,r)))}function mkt(e){let t=pkt(e);const n=ykt();let r=!0;const i=(l,c)=>{const u=d2(e,c);if(u){const{transition:f,transitionEnd:h,...m}=u;l={...l,...m,...h}}return l};function a(l){t=l(e)}function o(l,c){const u=e.getProps(),f=e.getVariantContext(!0)||{},h=[],m=new Set;let g={},b=1/0;for(let w=0;w<hkt;w++){const k=fkt[w],S=n[k],E=u[k]!==void 0?u[k]:f[k],A=xg(E),_=k===c?S.isActive:null;_===!1&&(b=w);let T=E===f[k]&&E!==u[k]&&A;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),S.protectedKeys={...g},!S.isActive&&_===null||!E&&!S.prevProp||o2(E)||typeof E=="boolean")continue;const $=gkt(S.prevProp,E);let R=$||k===c&&S.isActive&&!T&&A||w>b&&A;const O=Array.isArray(E)?E:[E];let G=O.reduce(i,{});_===!1&&(G={});const{prevResolvedValues:V={}}=S,Z={...V,...G},W=Y=>{R=!0,m.delete(Y),S.needsAnimating[Y]=!0};for(const Y in Z){const fe=G[Y],ae=V[Y];g.hasOwnProperty(Y)||(fe!==ae?nw(fe)&&nw(ae)?!eW(fe,ae)||$?W(Y):S.protectedKeys[Y]=!0:fe!==void 0?W(Y):m.add(Y):fe!==void 0&&m.has(Y)?W(Y):S.protectedKeys[Y]=!0)}S.prevProp=E,S.prevResolvedValues=G,S.isActive&&(g={...g,...G}),r&&e.blockInitialAnimation&&(R=!1),R&&!T&&h.push(...O.map(Y=>({animation:Y,options:{type:k,...l}})))}if(m.size){const w={};m.forEach(k=>{const S=e.getBaseTarget(k);S!==void 0&&(w[k]=S)}),h.push({animation:w})}let C=!!h.length;return r&&u.initial===!1&&!e.manuallyAnimateOnMount&&(C=!1),r=!1,C?t(h):Promise.resolve()}function s(l,c,u){var f;if(n[l].isActive===c)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(m=>{var g;return(g=m.animationState)===null||g===void 0?void 0:g.setActive(l,c)}),n[l].isActive=c;const h=o(u,l);for(const m in n)n[m].protectedKeys={};return h}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>n}}function gkt(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!eW(t,e):!1}function Gu(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ykt(){return{animate:Gu(!0),whileInView:Gu(),whileHover:Gu(),whileTap:Gu(),whileDrag:Gu(),whileFocus:Gu(),exit:Gu()}}class _kt extends Fu{constructor(t){super(t),t.animationState||(t.animationState=mkt(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),o2(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let bkt=0;class kkt extends Fu{constructor(){super(...arguments),this.id=bkt++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const a=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&a.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const wkt={animation:{Feature:_kt},exit:{Feature:kkt}},HO=(e,t)=>Math.abs(e-t);function vkt(e,t){const n=HO(e.x,t.x),r=HO(e.y,t.y);return Math.sqrt(n**2+r**2)}class MW{constructor(t,n,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const c=j6(this.lastMoveEventInfo,this.history),u=this.startEvent!==null,f=vkt(c.offset,{x:0,y:0})>=3;if(!u&&!f)return;const{point:h}=c,{timestamp:m}=Wn;this.history.push({...h,timestamp:m});const{onStart:g,onMove:b}=this.handlers;u||(g&&g(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,c)},this.handlePointerMove=(c,u)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=P6(u,this.transformPagePoint),jn.update(this.updatePoint,!0)},this.handlePointerUp=(c,u)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:f,onSessionEnd:h}=this.handlers,m=j6(c.type==="pointercancel"?this.lastMoveEventInfo:P6(u,this.transformPagePoint),this.history);this.startEvent&&f&&f(c,m),h&&h(c,m)},!KU(t))return;this.handlers=n,this.transformPagePoint=r;const i=c2(t),a=P6(i,this.transformPagePoint),{point:o}=a,{timestamp:s}=Wn;this.history=[{...o,timestamp:s}];const{onSessionStart:l}=n;l&&l(t,j6(a,this.history)),this.removeListeners=ru(zl(window,"pointermove",this.handlePointerMove),zl(window,"pointerup",this.handlePointerUp),zl(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Vl(this.updatePoint)}}function P6(e,t){return t?{point:t(e.point)}:e}function UO(e,t){return{x:e.x-t.x,y:e.y-t.y}}function j6({point:e},t){return{point:e,delta:UO(e,OW(t)),offset:UO(e,xkt(t)),velocity:Ckt(t,.1)}}function xkt(e){return e[0]}function OW(e){return e[e.length-1]}function Ckt(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=OW(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>iu(t)));)n--;if(!r)return{x:0,y:0};const a=Fl(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Da(e){return e.max-e.min}function K8(e,t=0,n=.01){return Math.abs(e-t)<=n}function WO(e,t,n,r=.5){e.origin=r,e.originPoint=Yn(t.min,t.max,e.origin),e.scale=Da(n)/Da(t),(K8(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Yn(n.min,n.max,e.origin)-e.originPoint,(K8(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Im(e,t,n,r){WO(e.x,t.x,n.x,r?r.originX:void 0),WO(e.y,t.y,n.y,r?r.originY:void 0)}function GO(e,t,n){e.min=n.min+t.min,e.max=e.min+Da(t)}function Skt(e,t,n){GO(e.x,t.x,n.x),GO(e.y,t.y,n.y)}function KO(e,t,n){e.min=t.min-n.min,e.max=e.min+Da(t)}function Bm(e,t,n){KO(e.x,t.x,n.x),KO(e.y,t.y,n.y)}function Dkt(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Yn(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Yn(n,e,r.max):Math.min(e,n)),e}function YO(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Ekt(e,{top:t,left:n,bottom:r,right:i}){return{x:YO(e.x,n,i),y:YO(e.y,t,r)}}function ZO(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Tkt(e,t){return{x:ZO(e.x,t.x),y:ZO(e.y,t.y)}}function Akt(e,t){let n=.5;const r=Da(e),i=Da(t);return i>r?n=Dg(t.min,t.max-r,e.min):r>i&&(n=Dg(e.min,e.max-i,t.min)),fu(0,1,n)}function zkt(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Y8=.35;function Fkt(e=Y8){return e===!1?e=0:e===!0&&(e=Y8),{x:XO(e,"left","right"),y:XO(e,"top","bottom")}}function XO(e,t,n){return{min:JO(e,t),max:JO(e,n)}}function JO(e,t){return typeof e=="number"?e:e[t]||0}const QO=()=>({translate:0,scale:1,origin:0,originPoint:0}),Sh=()=>({x:QO(),y:QO()}),eN=()=>({min:0,max:0}),fr=()=>({x:eN(),y:eN()});function ps(e){return[e("x"),e("y")]}function NW({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function $kt({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Mkt(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function V6(e){return e===void 0||e===1}function Z8({scale:e,scaleX:t,scaleY:n}){return!V6(e)||!V6(t)||!V6(n)}function sd(e){return Z8(e)||LW(e)||e.z||e.rotate||e.rotateX||e.rotateY}function LW(e){return tN(e.x)||tN(e.y)}function tN(e){return e&&e!=="0%"}function sw(e,t,n){const r=e-n,i=t*r;return n+i}function nN(e,t,n,r,i){return i!==void 0&&(e=sw(e,i,r)),sw(e,n,r)+t}function X8(e,t=0,n=1,r,i){e.min=nN(e.min,t,n,r,i),e.max=nN(e.max,t,n,r,i)}function IW(e,{x:t,y:n}){X8(e.x,t.translate,t.scale,t.originPoint),X8(e.y,n.translate,n.scale,n.originPoint)}function Okt(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;const l=a.instance;l&&l.style&&l.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Dh(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,IW(e,o)),r&&sd(a.latestValues)&&Dh(e,a.latestValues))}t.x=rN(t.x),t.y=rN(t.y)}function rN(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function $c(e,t){e.min=e.min+t,e.max=e.max+t}function iN(e,t,[n,r,i]){const a=t[i]!==void 0?t[i]:.5,o=Yn(e.min,e.max,a);X8(e,t[n],t[r],o,t.scale)}const Nkt=["x","scaleX","originX"],Lkt=["y","scaleY","originY"];function Dh(e,t){iN(e.x,t,Nkt),iN(e.y,t,Lkt)}function BW(e,t){return NW(Mkt(e.getBoundingClientRect(),t))}function Ikt(e,t,n){const r=BW(e,n),{scroll:i}=t;return i&&($c(r.x,i.offset.x),$c(r.y,i.offset.y)),r}const Bkt=new WeakMap;class Rkt{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=fr(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=l=>{this.stopAnimation(),n&&this.snapToCursor(c2(l,"page").point)},a=(l,c)=>{const{drag:u,dragPropagation:f,onDragStart:h}=this.getProps();if(u&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ZU(u),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ps(g=>{let b=this.getAxisMotionValue(g).get()||0;if(zs.test(b)){const{projection:C}=this.visualElement;if(C&&C.layout){const w=C.layout.layoutBox[g];w&&(b=Da(w)*(parseFloat(b)/100))}}this.originPoint[g]=b}),h&&jn.update(()=>h(l,c),!1,!0);const{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0)},o=(l,c)=>{const{dragPropagation:u,dragDirectionLock:f,onDirectionLock:h,onDrag:m}=this.getProps();if(!u&&!this.openGlobalLock)return;const{offset:g}=c;if(f&&this.currentDirection===null){this.currentDirection=Pkt(g),this.currentDirection!==null&&h&&h(this.currentDirection);return}this.updateAxis("x",c.point,g),this.updateAxis("y",c.point,g),this.visualElement.render(),m&&m(l,c)},s=(l,c)=>this.stop(l,c);this.panSession=new MW(t,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&jn.update(()=>a(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!r_(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=Dkt(o,this.constraints[t],this.elastic[t])),a.set(o)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),{layout:r}=this.visualElement.projection||{},i=this.constraints;t&&xh(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Ekt(r.layoutBox,t):this.constraints=!1,this.elastic=Fkt(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ps(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=zkt(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!xh(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=Ikt(r,i.root,this.visualElement.getTransformPagePoint());let o=Tkt(i.layout.layoutBox,a);if(n){const s=n($kt(o));this.hasMutatedConstraints=!!s,s&&(o=NW(s))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},c=ps(u=>{if(!r_(u,n,this.currentDirection))return;let f=l&&l[u]||{};o&&(f={min:0,max:0});const h=i?200:1e6,m=i?40:1e7,g={type:"inertia",velocity:r?t[u]:0,bounceStiffness:h,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...a,...f};return this.startAxisValueAnimation(u,g)});return Promise.all(c).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(U9(t,r,0,n))}stopAnimation(){ps(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ps(n=>{const{drag:r}=this.getProps();if(!r_(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:s}=i.layout.layoutBox[n];a.set(t[n]-Yn(o,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!xh(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ps(o=>{const s=this.getAxisMotionValue(o);if(s){const l=s.get();i[o]=Akt({min:l,max:l},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ps(o=>{if(!r_(o,t,null))return;const s=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];s.set(Yn(l,c,i[o]))})}addListeners(){if(!this.visualElement.current)return;Bkt.set(this.visualElement,this);const t=this.visualElement.current,n=zl(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();xh(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const o=El(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(ps(u=>{const f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=l[u].translate,f.set(f.get()+l[u].translate))}),this.visualElement.render())});return()=>{o(),n(),a(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:o=Y8,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:o,dragMomentum:s}}}function r_(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Pkt(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class jkt extends Fu{constructor(t){super(t),this.removeGroupControls=vr,this.removeListeners=vr,this.controls=new Rkt(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||vr}unmount(){this.removeGroupControls(),this.removeListeners()}}const aN=e=>(t,n)=>{e&&jn.update(()=>e(t,n))};class Vkt extends Fu{constructor(){super(...arguments),this.removePointerDownListener=vr}onPointerDown(t){this.session=new MW(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:aN(t),onStart:aN(n),onMove:r,onEnd:(a,o)=>{delete this.session,i&&jn.update(()=>i(a,o))}}}mount(){this.removePointerDownListener=zl(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function qkt(){const e=F.useContext(i2);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=F.useId();return F.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const zb={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function oN(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const O0={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(xt.test(e))e=parseFloat(e);else return e;const n=oN(e,t.target.x),r=oN(e,t.target.y);return`${n}% ${r}%`}},Hkt={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=hu.parse(e);if(i.length>5)return r;const a=hu.createTransformer(e),o=typeof i[0]!="number"?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=l;const c=Yn(s,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=c),typeof i[3+o]=="number"&&(i[3+o]/=c),a(i)}};class Ukt extends cn.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;Jyt(Wkt),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),zb.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,o=r.projection;return o&&(o.isPresent=a,i||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?o.promote():o.relegate()||jn.postRender(()=>{const s=o.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function RW(e){const[t,n]=qkt(),r=F.useContext(F9);return cn.createElement(Ukt,{...e,layoutGroup:r,switchLayoutGroup:F.useContext(MU),isPresent:t,safeToRemove:n})}const Wkt={borderRadius:{...O0,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:O0,borderTopRightRadius:O0,borderBottomLeftRadius:O0,borderBottomRightRadius:O0,boxShadow:Hkt},PW=["TopLeft","TopRight","BottomLeft","BottomRight"],Gkt=PW.length,sN=e=>typeof e=="string"?parseFloat(e):e,lN=e=>typeof e=="number"||xt.test(e);function Kkt(e,t,n,r,i,a){i?(e.opacity=Yn(0,n.opacity!==void 0?n.opacity:1,Ykt(r)),e.opacityExit=Yn(t.opacity!==void 0?t.opacity:1,0,Zkt(r))):a&&(e.opacity=Yn(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<Gkt;o++){const s=`border${PW[o]}Radius`;let l=cN(t,s),c=cN(n,s);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||lN(l)===lN(c)?(e[s]=Math.max(Yn(sN(l),sN(c),r),0),(zs.test(c)||zs.test(l))&&(e[s]+="%")):e[s]=c}(t.rotate||n.rotate)&&(e.rotate=Yn(t.rotate||0,n.rotate||0,r))}function cN(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Ykt=jW(0,.5,j9),Zkt=jW(.5,.95,vr);function jW(e,t,n){return r=>r<e?0:r>t?1:n(Dg(e,t,r))}function uN(e,t){e.min=t.min,e.max=t.max}function Wa(e,t){uN(e.x,t.x),uN(e.y,t.y)}function dN(e,t,n,r,i){return e-=t,e=sw(e,1/n,r),i!==void 0&&(e=sw(e,1/i,r)),e}function Xkt(e,t=0,n=1,r=.5,i,a=e,o=e){if(zs.test(t)&&(t=parseFloat(t),t=Yn(o.min,o.max,t/100)-o.min),typeof t!="number")return;let s=Yn(a.min,a.max,r);e===a&&(s-=t),e.min=dN(e.min,t,n,s,i),e.max=dN(e.max,t,n,s,i)}function fN(e,t,[n,r,i],a,o){Xkt(e,t[n],t[r],t[i],t.scale,a,o)}const Jkt=["x","scaleX","originX"],Qkt=["y","scaleY","originY"];function hN(e,t,n,r){fN(e.x,t,Jkt,n?n.x:void 0,r?r.x:void 0),fN(e.y,t,Qkt,n?n.y:void 0,r?r.y:void 0)}function pN(e){return e.translate===0&&e.scale===1}function VW(e){return pN(e.x)&&pN(e.y)}function J8(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function mN(e){return Da(e.x)/Da(e.y)}class ewt{constructor(){this.members=[]}add(t){W9(this.members,t),t.scheduleRender()}remove(t){if(G9(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function gN(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y;if((i||a)&&(r=`translate3d(${i}px, ${a}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:c,rotateY:u}=n;l&&(r+=`rotate(${l}deg) `),c&&(r+=`rotateX(${c}deg) `),u&&(r+=`rotateY(${u}deg) `)}const o=e.x.scale*t.x,s=e.y.scale*t.y;return(o!==1||s!==1)&&(r+=`scale(${o}, ${s})`),r||"none"}const twt=(e,t)=>e.depth-t.depth;class nwt{constructor(){this.children=[],this.isDirty=!1}add(t){W9(this.children,t),this.isDirty=!0}remove(t){G9(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(twt),this.isDirty=!1,this.children.forEach(t)}}function rwt(e,t){const n=performance.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(Vl(r),e(a-t))};return jn.read(r,!0),()=>Vl(r)}function iwt(e){window.MotionDebug&&window.MotionDebug.record(e)}function awt(e){return e instanceof SVGElement&&e.tagName!=="svg"}function owt(e,t,n){const r=Zi(e)?e:wp(e);return r.start(U9("",r,t,n)),r.animation}const yN=["","X","Y","Z"],_N=1e3;let swt=0;const ld={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function qW({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},s=t==null?void 0:t()){this.id=swt++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{ld.totalNodes=ld.resolvedTargetDeltas=ld.recalculatedProjection=0,this.nodes.forEach(uwt),this.nodes.forEach(mwt),this.nodes.forEach(gwt),this.nodes.forEach(dwt),iwt(ld)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new nwt)}addEventListener(o,s){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new K9),this.eventHandlers.get(o).add(s)}notifyListeners(o,...s){const l=this.eventHandlers.get(o);l&&l.notify(...s)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,s=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=awt(o),this.instance=o;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),s&&(c||l)&&(this.isLayoutDirty=!0),e){let f;const h=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=rwt(h,250),zb.hasAnimatedSinceResize&&(zb.hasAnimatedSinceResize=!1,this.nodes.forEach(kN))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:h,hasRelativeTargetChanged:m,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||u.getDefaultTransition()||wwt,{onLayoutAnimationStart:C,onLayoutAnimationComplete:w}=u.getProps(),k=!this.targetLayout||!J8(this.targetLayout,g)||m,S=!h&&m;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||S||h&&(k||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,S);const E={...AW(b,"layout"),onPlay:C,onComplete:w};(u.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else h||kN(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Vl(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ywt),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const f=this.path[u];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(bN);return}this.isUpdating||this.nodes.forEach(hwt),this.isUpdating=!1,this.nodes.forEach(pwt),this.nodes.forEach(lwt),this.nodes.forEach(cwt),this.clearAllSnapshots();const s=performance.now();Wn.delta=fu(0,1e3/60,s-Wn.timestamp),Wn.timestamp=s,Wn.isProcessing=!0,Uh.update.process(Wn),Uh.preRender.process(Wn),Uh.render.process(Wn),Wn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(fwt),this.sharedNodes.forEach(_wt)}scheduleUpdateProjection(){jn.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){jn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=fr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let s=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(s=!1),s&&(this.scroll={animationId:this.root.animationId,phase:o,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform,s=this.projectionDelta&&!VW(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;o&&(s||sd(this.latestValues)||u)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const s=this.measurePageBox();let l=this.removeElementScroll(s);return o&&(l=this.removeTransform(l)),vwt(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return fr();const s=o.measureViewportBox(),{scroll:l}=this.root;return l&&($c(s.x,l.offset.x),$c(s.y,l.offset.y)),s}removeElementScroll(o){const s=fr();Wa(s,o);for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:f}=c;if(c!==this.root&&u&&f.layoutScroll){if(u.isRoot){Wa(s,o);const{scroll:h}=this.root;h&&($c(s.x,-h.offset.x),$c(s.y,-h.offset.y))}$c(s.x,u.offset.x),$c(s.y,u.offset.y)}}return s}applyTransform(o,s=!1){const l=fr();Wa(l,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];!s&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Dh(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),sd(u.latestValues)&&Dh(l,u.latestValues)}return sd(this.latestValues)&&Dh(l,this.latestValues),l}removeTransform(o){const s=fr();Wa(s,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!sd(c.latestValues))continue;Z8(c.latestValues)&&c.updateSnapshot();const u=fr(),f=c.measurePageBox();Wa(u,f),hN(s,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return sd(this.latestValues)&&hN(s,this.latestValues),s}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Wn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var s;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(o||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:f,layoutId:h}=this.options;if(!(!this.layout||!(f||h))){if(this.resolvedRelativeTargetAt=Wn.timestamp,!this.targetDelta&&!this.relativeTarget){const m=this.getClosestProjectingParent();m&&m.layout&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=fr(),this.relativeTargetOrigin=fr(),Bm(this.relativeTargetOrigin,this.layout.layoutBox,m.layout.layoutBox),Wa(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=fr(),this.targetWithTransforms=fr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Skt(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Wa(this.target,this.layout.layoutBox),IW(this.target,this.targetDelta)):Wa(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const m=this.getClosestProjectingParent();m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=fr(),this.relativeTargetOrigin=fr(),Bm(this.relativeTargetOrigin,this.target,m.target),Wa(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ld.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Z8(this.parent.latestValues)||LW(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const s=this.getLead(),l=!!this.resumingFrom||this!==s;let c=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Wn.timestamp&&(c=!1),c)return;const{layout:u,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||f))return;Wa(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,m=this.treeScale.y;Okt(this.layoutCorrected,this.treeScale,this.path,l),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox);const{target:g}=s;if(!g){this.projectionTransform&&(this.projectionDelta=Sh(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Sh(),this.projectionDeltaWithTransform=Sh());const b=this.projectionTransform;Im(this.projectionDelta,this.layoutCorrected,g,this.latestValues),this.projectionTransform=gN(this.projectionDelta,this.treeScale),(this.projectionTransform!==b||this.treeScale.x!==h||this.treeScale.y!==m)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),ld.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),o){const s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(o,s=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},f=Sh();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const h=fr(),m=l?l.source:void 0,g=this.layout?this.layout.source:void 0,b=m!==g,C=this.getStack(),w=!C||C.members.length<=1,k=!!(b&&!w&&this.options.crossfade===!0&&!this.path.some(kwt));this.animationProgress=0;let S;this.mixTargetDelta=E=>{const A=E/1e3;wN(f.x,o.x,A),wN(f.y,o.y,A),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Bm(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),bwt(this.relativeTarget,this.relativeTargetOrigin,h,A),S&&J8(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=fr()),Wa(S,this.relativeTarget)),b&&(this.animationValues=u,Kkt(u,c,this.latestValues,A,k,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Vl(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=jn.update(()=>{zb.hasAnimatedSinceResize=!0,this.currentAnimation=owt(0,_N,{...o,onUpdate:s=>{this.mixTargetDelta(s),o.onUpdate&&o.onUpdate(s)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(_N),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:s,target:l,layout:c,latestValues:u}=o;if(!(!s||!l||!c)){if(this!==o&&this.layout&&c&&HW(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||fr();const f=Da(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+f;const h=Da(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}Wa(s,l),Dh(s,u),Im(this.projectionDeltaWithTransform,this.layoutCorrected,s,u)}}registerSharedNode(o,s){this.sharedNodes.has(o)||this.sharedNodes.set(o,new ewt),this.sharedNodes.get(o).add(s);const c=s.options.initialPromotionConfig;s.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(s):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:s}=this.options;return s?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:s}=this.options;return s?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:s,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetRotation(){const{visualElement:o}=this.options;if(!o)return;let s=!1;const{latestValues:l}=o;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(s=!0),!s)return;const c={};for(let u=0;u<yN.length;u++){const f="rotate"+yN[u];l[f]&&(c[f]=l[f],o.setStaticValue(f,0))}o.render();for(const u in c)o.setStaticValue(u,c[u]);o.scheduleRender()}getProjectionStyles(o={}){var s,l;const c={};if(!this.instance||this.isSVG)return c;if(this.isVisible)c.visibility="";else return{visibility:"hidden"};const u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Ab(o.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Ab(o.pointerEvents)||""),this.hasProjected&&!sd(this.latestValues)&&(b.transform=u?u({},""):"none",this.hasProjected=!1),b}const h=f.animationValues||f.latestValues;this.applyTransformsToTarget(),c.transform=gN(this.projectionDeltaWithTransform,this.treeScale,h),u&&(c.transform=u(h,c.transform));const{x:m,y:g}=this.projectionDelta;c.transformOrigin=`${m.origin*100}% ${g.origin*100}% 0`,f.animationValues?c.opacity=f===this?(l=(s=h.opacity)!==null&&s!==void 0?s:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:c.opacity=f===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const b in ew){if(h[b]===void 0)continue;const{correct:C,applyTo:w}=ew[b],k=c.transform==="none"?h[b]:C(h[b],f);if(w){const S=w.length;for(let E=0;E<S;E++)c[w[E]]=k}else c[b]=k}return this.options.layoutId&&(c.pointerEvents=f===this?Ab(o.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var s;return(s=o.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(bN),this.root.sharedNodes.clear()}}}function lwt(e){e.updateLayout()}function cwt(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:a}=e.options,o=n.source!==e.layout.source;a==="size"?ps(f=>{const h=o?n.measuredBox[f]:n.layoutBox[f],m=Da(h);h.min=r[f].min,h.max=h.min+m}):HW(a,n.layoutBox,r)&&ps(f=>{const h=o?n.measuredBox[f]:n.layoutBox[f],m=Da(r[f]);h.max=h.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+m)});const s=Sh();Im(s,r,n.layoutBox);const l=Sh();o?Im(l,e.applyTransform(i,!0),n.measuredBox):Im(l,r,n.layoutBox);const c=!VW(s);let u=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:h,layout:m}=f;if(h&&m){const g=fr();Bm(g,n.layoutBox,h.layoutBox);const b=fr();Bm(b,r,m.layoutBox),J8(g,b)||(u=!0),f.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=g,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:s,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function uwt(e){ld.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function dwt(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function fwt(e){e.clearSnapshot()}function bN(e){e.clearMeasurements()}function hwt(e){e.isLayoutDirty=!1}function pwt(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function kN(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function mwt(e){e.resolveTargetDelta()}function gwt(e){e.calcProjection()}function ywt(e){e.resetRotation()}function _wt(e){e.removeLeadSnapshot()}function wN(e,t,n){e.translate=Yn(t.translate,0,n),e.scale=Yn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function vN(e,t,n,r){e.min=Yn(t.min,n.min,r),e.max=Yn(t.max,n.max,r)}function bwt(e,t,n,r){vN(e.x,t.x,n.x,r),vN(e.y,t.y,n.y,r)}function kwt(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const wwt={duration:.45,ease:[.4,0,.1,1]};function xN(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function vwt(e){xN(e.x),xN(e.y)}function HW(e,t,n){return e==="position"||e==="preserve-aspect"&&!K8(mN(t),mN(n),.2)}const xwt=qW({attachResizeListener:(e,t)=>El(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),q6={current:void 0},UW=qW({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!q6.current){const e=new xwt({});e.mount(window),e.setOptions({layoutScroll:!0}),q6.current=e}return q6.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Cwt={pan:{Feature:Vkt},drag:{Feature:jkt,ProjectionNode:UW,MeasureLayout:RW}},Swt=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Dwt(e){const t=Swt.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function Q8(e,t,n=1){const[r,i]=Dwt(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);return a?a.trim():P8(i)?Q8(i,t,n+1):i}function Ewt(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const a=i.get();if(!P8(a))return;const o=Q8(a,r);o&&i.set(o)});for(const i in t){const a=t[i];if(!P8(a))continue;const o=Q8(a,r);o&&(t[i]=o,n||(n={}),n[i]===void 0&&(n[i]=a))}return{target:t,transitionEnd:n}}const Twt=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),WW=e=>Twt.has(e),Awt=e=>Object.keys(e).some(WW),CN=e=>e===gf||e===xt,SN=(e,t)=>parseFloat(e.split(", ")[t]),DN=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return SN(i[1],t);{const a=r.match(/^matrix\((.+)\)$/);return a?SN(a[1],e):0}},zwt=new Set(["x","y","z"]),Fwt=h1.filter(e=>!zwt.has(e));function $wt(e){const t=[];return Fwt.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const EN={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:DN(4,13),y:DN(5,14)},Mwt=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,a=getComputedStyle(i),{display:o}=a,s={};o==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(c=>{s[c]=EN[c](r,a)}),t.render();const l=t.measureViewportBox();return n.forEach(c=>{const u=t.getValue(c);u&&u.jump(s[c]),e[c]=EN[c](l,a)}),e},Owt=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(WW);let a=[],o=!1;const s=[];if(i.forEach(l=>{const c=e.getValue(l);if(!e.hasValue(l))return;let u=n[l],f=M0(u);const h=t[l];let m;if(nw(h)){const g=h.length,b=h[0]===null?1:0;u=h[b],f=M0(u);for(let C=b;C<g&&h[C]!==null;C++)m?P9(M0(h[C])===m):m=M0(h[C])}else m=M0(h);if(f!==m)if(CN(f)&&CN(m)){const g=c.get();typeof g=="string"&&c.set(parseFloat(g)),typeof h=="string"?t[l]=parseFloat(h):Array.isArray(h)&&m===xt&&(t[l]=h.map(parseFloat))}else f!=null&&f.transform&&(m!=null&&m.transform)&&(u===0||h===0)?u===0?c.set(m.transform(u)):t[l]=f.transform(h):(o||(a=$wt(e),o=!0),s.push(l),r[l]=r[l]!==void 0?r[l]:t[l],c.jump(h))}),s.length){const l=s.indexOf("height")>=0?window.pageYOffset:null,c=Mwt(t,e,s);return a.length&&a.forEach(([u,f])=>{e.getValue(u).set(f)}),e.render(),a2&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:r}}else return{target:t,transitionEnd:r}};function Nwt(e,t,n,r){return Awt(t)?Owt(e,t,n,r):{target:t,transitionEnd:r}}const Lwt=(e,t,n,r)=>{const i=Ewt(e,t,r);return t=i.target,r=i.transitionEnd,Nwt(e,t,n,r)},e7={current:null},GW={current:!1};function Iwt(){if(GW.current=!0,!!a2)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>e7.current=e.matches;e.addListener(t),t()}else e7.current=!1}function Bwt(e,t,n){const{willChange:r}=t;for(const i in t){const a=t[i],o=n[i];if(Zi(a))e.addValue(i,a),ow(r)&&r.add(i);else if(Zi(o))e.addValue(i,wp(a,{owner:e})),ow(r)&&r.remove(i);else if(o!==a)if(e.hasValue(i)){const s=e.getValue(i);!s.hasAnimated&&s.set(a)}else{const s=e.getStaticValue(i);e.addValue(i,wp(s!==void 0?s:a,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const TN=new WeakMap,KW=Object.keys(Cg),Rwt=KW.length,AN=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Pwt=z9.length;class jwt{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>jn.render(this.render,!1,!0);const{latestValues:s,renderState:l}=a;this.latestValues=s,this.baseTarget={...s},this.initialValues=n.initial?{...s}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.isControllingVariants=s2(n),this.isVariantNode=$U(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(n,{});for(const f in u){const h=u[f];s[f]!==void 0&&Zi(h)&&(h.set(s[f],!1),ow(c)&&c.add(f))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,TN.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),GW.current||Iwt(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:e7.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){TN.delete(this.current),this.projection&&this.projection.unmount(),Vl(this.notifyUpdate),Vl(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=mf.has(t),i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&jn.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),a()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,a){let o,s;for(let l=0;l<Rwt;l++){const c=KW[l],{isEnabled:u,Feature:f,ProjectionNode:h,MeasureLayout:m}=Cg[c];h&&(o=h),u(n)&&(!this.features[c]&&f&&(this.features[c]=new f(this)),m&&(s=m))}if(!this.projection&&o){this.projection=new o(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:c,drag:u,dragConstraints:f,layoutScroll:h,layoutRoot:m}=n;this.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!u||f&&xh(f),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:a,layoutScroll:h,layoutRoot:m})}return s}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):fr()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<AN.length;r++){const i=AN[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a=t["on"+i];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=Bwt(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<Pwt;r++){const i=z9[r],a=this.props[i];(xg(a)||a===!1)&&(n[i]=a)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=wp(n,{owner:this}),this.addValue(t,r)),r}readValue(t){return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=R9(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Zi(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new K9),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class YW extends jwt{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},a){let o=skt(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),o&&(o=i(o))),a){akt(this,r,o);const s=Lwt(this,r,o,n);n=s.transitionEnd,r=s.target}return{transition:t,transitionEnd:n,...r}}}function Vwt(e){return window.getComputedStyle(e)}class qwt extends YW{readValueFromInstance(t,n){if(mf.has(n)){const r=H9(n);return r&&r.default||0}else{const r=Vwt(t),i=(LU(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return BW(t,n)}build(t,n,r,i){M9(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return B9(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Zi(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){VU(t,n,r,i)}}class Hwt extends YW{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(mf.has(n)){const r=H9(n);return r&&r.default||0}return n=qU.has(n)?n:I9(n),t.getAttribute(n)}measureInstanceViewportBox(){return fr()}scrapeMotionValuesFromProps(t,n){return UU(t,n)}build(t,n,r,i){N9(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){HU(t,n,r,i)}mount(t){this.isSVGTag=L9(t.tagName),super.mount(t)}}const Uwt=(e,t)=>$9(e)?new Hwt(t,{enableHardwareAcceleration:!1}):new qwt(t,{enableHardwareAcceleration:!0}),Wwt={layout:{ProjectionNode:UW,MeasureLayout:RW}},Gwt={...wkt,...V_t,...Cwt,...Wwt},lw=Zyt((e,t)=>S_t(e,t,Gwt,Uwt));function ZW(){const e=F.useRef(!1);return Qk(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Kwt(){const e=ZW(),[t,n]=F.useState(0),r=F.useCallback(()=>{e.current&&n(t+1)},[t]);return[F.useCallback(()=>jn.postRender(r),[r]),t]}class Ywt extends F.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Zwt({children:e,isPresent:t}){const n=F.useId(),r=F.useRef(null),i=F.useRef({width:0,height:0,top:0,left:0});return F.useInsertionEffect(()=>{const{width:a,height:o,top:s,left:l}=i.current;if(t||!r.current||!a||!o)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${a}px !important; @@ -303,20 +303,20 @@ attempted value: ${o} top: ${s}px !important; left: ${l}px !important; } - `),()=>{document.head.removeChild(c)}},[t]),F.createElement(Ywt,{isPresent:t,childRef:r,sizeRef:i},F.cloneElement(e,{ref:r}))}const H6=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o})=>{const s=UU(Xwt),l=F.useId(),c=F.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:u=>{s.set(u,!0);for(const f of s.values())if(!f)return;r&&r()},register:u=>(s.set(u,!1),()=>s.delete(u))}),a?void 0:[n]);return F.useMemo(()=>{s.forEach((u,f)=>s.set(f,!1))},[n]),F.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),o==="popLayout"&&(e=F.createElement(Zwt,{isPresent:n},e)),F.createElement(i2.Provider,{value:c},e)};function Xwt(){return new Map}function Jwt(e){return F.useEffect(()=>()=>e(),[])}const ih=e=>e.key||"";function Qwt(e,t){e.forEach(n=>{const r=ih(n);t.set(r,n)})}function evt(e){const t=[];return F.Children.forEach(e,n=>{F.isValidElement(n)&&t.push(n)}),t}const ZW=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:a=!0,mode:o="sync"})=>{const s=F.useContext(F9).forceRender||Kwt()[0],l=YW(),c=evt(e);let u=c;const f=F.useRef(new Map).current,h=F.useRef(u),m=F.useRef(new Map).current,g=F.useRef(!0);if(Qk(()=>{g.current=!1,Qwt(c,m),h.current=u}),Jwt(()=>{g.current=!0,m.clear(),f.clear()}),g.current)return F.createElement(F.Fragment,null,u.map(k=>F.createElement(H6,{key:ih(k),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:a,mode:o},k)));u=[...u];const b=h.current.map(ih),C=c.map(ih),w=b.length;for(let k=0;k<w;k++){const S=b[k];C.indexOf(S)===-1&&!f.has(S)&&f.set(S,void 0)}return o==="wait"&&f.size&&(u=[]),f.forEach((k,S)=>{if(C.indexOf(S)!==-1)return;const E=m.get(S);if(!E)return;const A=b.indexOf(S);let _=k;if(!_){const T=()=>{m.delete(S),f.delete(S);const $=h.current.findIndex(R=>R.key===S);if(h.current.splice($,1),!f.size){if(h.current=c,l.current===!1)return;s(),r&&r()}};_=F.createElement(H6,{key:ih(E),isPresent:!1,onExitComplete:T,custom:t,presenceAffectsLayout:a,mode:o},E),f.set(S,_)}u.splice(A,0,_)}),u=u.map(k=>{const S=k.key;return f.has(S)?k:F.createElement(H6,{key:ih(k),isPresent:!0,presenceAffectsLayout:a,mode:o},k)}),F.createElement(F.Fragment,null,f.size?u:u.map(k=>F.cloneElement(k)))},tvt=({animation:e})=>j(nvt,{...e}),nvt=Ae(lw.div).withConfig({displayName:"ModalBackdropStyled"})(["position:fixed;top:0;left:0;z-index:",";width:100%;height:100%;overflow:hidden;background:",";"],e=>e.theme.zIndexes.modal.backdrop,e=>e.theme.components.modal.backdrop.background),sm=e=>({Escape:t=>(e.code==="Escape"&&t(),sm(e)),ArrowUp:t=>(e.code==="ArrowUp"&&t(),sm(e)),ArrowDown:t=>(e.code==="ArrowDown"&&t(),sm(e)),Enter:t=>(e.code==="Enter"&&t(),sm(e))}),XW=({Enter:e,Escape:t,ArrowUp:n,options:r,ArrowDown:i})=>{const{onMount:a=!0,isBodyKeyDownActive:o}=r||{},s=F.useCallback(l=>{sm(l).ArrowUp(()=>n==null?void 0:n(l)).ArrowDown(()=>i==null?void 0:i(l)).Escape(()=>t==null?void 0:t(l)).Enter(()=>e==null?void 0:e(l))},[t,i,n,e]);F.useEffect(()=>{if(a)return document.body.addEventListener("keydown",s),()=>document.body.removeEventListener("keydown",s)},[a,s]),F.useEffect(()=>{if(o)return document.body.addEventListener("keydown",s,!1),()=>document.body.removeEventListener("keydown",s,!1)},[o,s])},rvt=({children:e,animation:t,withCloseIcon:n,closeOnOutsideClick:r,...i})=>{const a=F.useRef(null),o=F.useRef(null),{onClose:s}=Hp();return XW({Escape:s}),j(ivt,{...i,onClick:c=>{const{current:u}=a,{current:f}=o,h=c.target;h.closest("[data-modal]")===f&&!(u!=null&&u.contains(h))&&r&&s()},ref:o,"data-modal":!0,children:j(JW,{...t||{},ref:a,children:He(Gr,{children:[n&&j(QW,{onClick:s,oval:!0,color:"secondary",children:j(ut,{icon:"close"})}),e]})})})},ivt=Ae.div.withConfig({displayName:"ModalContainerStyled"})(["position:fixed;top:0;bottom:0;left:0;z-index:",";display:flex;align-items:center;justify-content:center;width:100%;overflow-y:auto;& > div::before{position:absolute;top:0;right:0;z-index:-1;display:block;width:100%;height:100%;background-color:transparent;transition:0.3s background-color ease;content:'';}&:not(:last-of-type) > div::before{z-index:",";background-color:",";}"],e=>e.theme.zIndexes.modal.container,e=>e.theme.zIndexes.modal.container,e=>e.theme.components.modal.backdrop.background),JW=Ae(lw.div).withConfig({displayName:"ModalBoxStyled"})(["width:100vw;height:100vh;max-height:100vh;overflow:auto;position:relative;display:flex;flex-direction:column;font-size:",";background-color:",";@media (min-width:","){width:",";height:auto;max-height:auto;border-radius:",";box-shadow:0 25px 50px -12px ",";}"],ee(16),e=>e.theme.colors.white,Vt.queries.laptop,ee(480),ee(12),e=>e.theme.components.modal.backdrop.background),QW=Ae(Xt).withConfig({displayName:"CloseButtonStyled"})(["position:absolute;top:",";right:",";padding:",";z-index:2;"],ee(16),ee(16),ee(4)),avt=({isLock:e})=>{F.useEffect(()=>{e?document.body.style.overflow="hidden":document.body.style.overflow="unset"},[e])},zN={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}},ovt={initial:{opacity:0,height:0},animate:{height:"auto",opacity:1},exit:{opacity:0,height:0}},svt={show:{height:"auto",opacity:1,pointerEvents:"auto"},hidden:{height:"0",opacity:0,pointerEvents:"none"}},Y9=({onOpen:e=()=>{},isOpen:t,onClose:n=()=>{},animation:r=zN,withBackdrop:i=!0,withCloseIcon:a=!0,backdropAnimation:o=zN,closeOnOutsideClick:s=!0,...l})=>{avt({isLock:t});const c=document.querySelector(".date-data_text-editor");return c?Op.createPortal(j(Iyt,{onClose:n,isOpen:t,onOpen:e,children:j(ZW,{initial:!1,children:t&&He(Gr,{children:[i&&j(tvt,{animation:o}),j(rvt,{...l,animation:r,withCloseIcon:a,closeOnOutsideClick:s})]})})}),c):null},Up=(e=!1)=>{const[t,n]=F.useState(e);return{state:t,on:F.useCallback(()=>n(!0),[]),off:F.useCallback(()=>n(!1),[]),toggle:F.useCallback(()=>n(r=>!r),[])}},lvt=({imageWidth:e,imageHeight:t,...n})=>{const{colors:r}=Kl(),i=Up(),a=t<100||e<100,o=ee(a?0:8),s=ee(a?-38:8);return He(Gr,{children:[j(cvt,{$top:o,$right:s,oval:!0,onClick:c=>{c.preventDefault(),c.stopPropagation(),i.on()},color:"secondary",variant:"contained",space:"small",children:j(ut,{icon:"edit",fill:r.lightBlack})}),j(Y9,{isOpen:i.state,onOpen:i.on,onClose:i.off,children:j(Ryt,{...n})})]})},cvt=Ae(Xt).withConfig({displayName:"ButtonStyled"})(["position:absolute;top:",";right:",";display:flex;align-items:center;"],e=>e.$top,e=>e.$right),uvt={thin:"16px",small:"24px",normal:"36px",large:"60px"},dvt={thin:"2px",small:"2px",normal:"4px",large:"4px"},eG=({size:e="small",loading:t=!0,children:n,className:r,...i})=>t?j(fvt,{"data-test-role":"spinner",className:r,children:j(pvt,{...i,size:e})}):j(Gr,{children:n}),fvt=Ae.div.withConfig({displayName:"ContainerStyled"})(["display:flex;align-items:center;justify-content:center;"]),hvt=PP(["from{transform:rotate(0deg);}to{transform:rotate(360deg);}"]),FN=(e="small")=>uvt[e],i_=(e="small")=>dvt[e],pvt=Ae.div.withConfig({displayName:"SpinnerStyled"})(["width:",";height:",";text-indent:-9999em;border-top:"," solid ",";border-right:"," solid ",";border-bottom:"," solid ",";border-left:"," solid ",";border-radius:50%;animation:0.65s linear "," infinite;"],e=>FN(e.size),e=>FN(e.size),e=>i_(e.size),e=>e.theme.colors.secondaryGrey,e=>i_(e.size),e=>e.theme.colors.secondaryGrey,e=>i_(e.size),e=>e.theme.colors.secondaryGrey,e=>i_(e.size),e=>e.theme.colors.lightGreen,hvt),tG=({children:e,isLoading:t=!0,loaderSize:n="large",className:r="",loaderWidth:i=300,loaderHeight:a=300})=>He(mvt,{className:r,$loading:t,$loaderHeight:a,$loaderWidth:i,children:[j(gvt,{size:n,loading:t}),e]}),mvt=Ae.div.withConfig({displayName:"ImageContainerStyled"})(["position:relative;",""],e=>e.$loading&&Tn(["background-color:",";width:","px;height:","px;"],t=>t.theme.colors.secondaryLightGrey,t=>t.$loaderWidth,t=>t.$loaderHeight)),gvt=Ae(eG).withConfig({displayName:"LoaderStyled"})(["position:absolute;inset:0;"]),nG={image:{size:"File size exceeds 20MB. Rather add a link to larger files if needed.",format:"Unsupported file format. Please upload an appropriate format.",upload:"The image could not be uploaded",not_image:"We can't find or access the image in the URL",google_slides:"Invalid url. Please post a Google Slides link."}},rG=({onLoad:e,children:t,className:n="",loaderHeight:r=300,loaderWidth:i=300,...a})=>{const o=Up(!0),s=F.useRef(null),{onErrorNotification:l}=Xv(),c=()=>{o.off(),l(nG.image.upload)},u=r>150&&i>150?"large":"normal",f=h=>{e==null||e(h),o.off()};return j(yvt,{loaderSize:u,loaderHeight:r,loaderWidth:i,className:n,isLoading:o.state,children:He(Gr,{children:[j(iG,{ref:s,...a,onLoad:f,onError:c}),typeof t=="function"&&t(o.state)]})})},iG=Ae.img.withConfig({displayName:"ImageStyled"})(["aspect-ratio:auto;max-width:",";max-height:",";"],ee(500),ee(500)),yvt=Ae(tG).withConfig({displayName:"ImageLoaderStyled"})(["display:flex;"]),_vt=({src:e,...t})=>j(bvt,{...t,children:j(kvt,{src:e})}),bvt=Ae(Y9).withConfig({displayName:"ControlledModalStyled"})(["","{@media (min-width:","){width:auto;border:"," solid ",";border-radius:0;}}","{svg{width:",";height:",";fill:",";}&:hover{background-color:transparent;}}"],JW,Vt.queries.laptop,ee(4),e=>e.theme.colors.white,QW,ee(30),ee(30),e=>e.theme.colors.white),kvt=Ae(rG).withConfig({displayName:"LightboxImageStyled"})(["height:100%;width:100%;@media (min-width:","){width:auto;height:auto;}","{max-width:100vw;max-height:100vh;@media (min-width:","){max-width:90vw;max-height:90vh;}}"],Vt.queries.laptop,iG,Vt.queries.laptop),wvt=({nodeType:e})=>{const{view:t,getPos:n}=es(),{editor:r,loading:i}=li(),{state:{selection:a}}=t,o=F.useMemo(()=>{if(i||!r||r.status!==pn.Created)return;const{ctx:c}=r;return dq(a,e(c))},[a,e,r,i]),s=F.useMemo(()=>n(),[n]);return{isSelected:F.useMemo(()=>(o==null?void 0:o.pos)===s,[o,s])}},vvt=()=>{const[e,t]=F.useState({width:0,height:0}),{mode:n}=ta(),{isSelected:r}=wvt({nodeType:zu.type}),{node:i,contentRef:a,setAttrs:o}=es(),{attrs:s}=i,{editor:l,loading:c}=li(),u=Up(),f=({alt:C,title:w})=>{o({alt:C,title:w})},h=()=>{c||!l||l.status!==pn.Created||l.action(C=>{const w=C.get(ai),{state:k}=w;w.dispatch(k.tr.deleteSelection())})},m=({currentTarget:C})=>{const{naturalHeight:w,naturalWidth:k}=C;t({width:k,height:w})},g=s.alt||"",b=s.title||"";return j(xvt,{ref:a,$isSelected:r,children:s.src&&He(Gr,{children:[j(Cvt,{src:s.src,onClick:u.on,onLoad:m,alt:g,title:b,children:C=>j(Gr,{children:n==="active"&&!C&&j(lvt,{imageHeight:e.height,imageWidth:e.width,onImageRemove:h,onImageEdit:f,alt:g,title:b})})}),j(_vt,{src:s.src,onOpen:u.on,isOpen:u.state,onClose:u.off})]})})},xvt=Ae.div.withConfig({displayName:"ImageNodeContainerStyled"})(["position:relative;display:inline-flex;margin-bottom:",";outline-offset:",";outline:"," solid ",";transition:outline-color 0.2s ease-in;"],ee(16),ee(2),ee(2),e=>e.$isSelected?e.theme.colors.lightBlack:"transparent"),Cvt=Ae(rG).withConfig({displayName:"ImageStyled"})(["cursor:pointer;transition:opacity 0.1s ease-in;&:hover{opacity:0.9;}"]),Svt=/^http.*\.(jpeg|jpg|gif|png|tiff|bmp|eps|svg)$/,Dvt=()=>{const{node:e}=es(),{attrs:t}=e;return t.src.match(Svt)!==null||t.src.includes("data:image/")?j(vvt,{}):j(_1t,{})},Evt=()=>{const{view:e}=Fv(),{state:t}=e,{selection:n}=t,r=t.doc.nodeAt(n.from),i=r==null?void 0:r.marks.find(a=>a.type.name==="link");return{href:kh(i==null?void 0:i.attrs.href).getOrElse(()=>""),title:kh(i==null?void 0:i.attrs.title).getOrElse(()=>"")}},aG=F.forwardRef(({oval:e=!1,space:t="no",color:n="primary",variant:r="text",children:i,target:a="_blank",...o},s)=>j(Avt,{ref:s,target:a,$space:t,$color:n,$variant:r,$oval:e,...o,children:i})),a_=e=>qp(e).match("button",()=>({bg:{primary:"transparent"},border:{primary:Vt.colors.green},color:{primary:Vt.colors.green}})).getOrElse(()=>({bg:{primary:"transparent"},border:{primary:"transparent"},color:{primary:Vt.colors.green}})),ll=e=>qp(e).match("button",()=>({idle:{bg:{primary:"transparent"},border:{primary:"transparent"},color:{primary:Vt.colors.lightBlack}},hover:a_(e),focus:a_(e)})).getOrElse(()=>({idle:{bg:{primary:"transparent"},border:{primary:"transparent"},color:{primary:Vt.colors.lightBlack}},hover:a_(e),focus:a_(e)})),Tvt={no:0,thin:ee(4),small:ee(7),normal:`${ee(10)} ${ee(16)};`},Avt=Ae.a.withConfig({displayName:"AnchorStyled"})(["background-color:",";border:1px solid ",";color:",";outline:0;cursor:pointer;transition:background-color 0.2s ease-in,border-color 0.2s ease-in,color 0.2s ease-in;padding:",";",";"," &:hover{color:",";background-color:",";border:1px solid ",";}&:focus{color:",";background-color:",";border:1px solid ",";}"],e=>ll(e.$variant).idle.bg[e.$color],e=>ll(e.$variant).idle.border[e.$color],e=>ll(e.$variant).idle.color[e.$color],e=>Tvt[e.$space],e=>e.$variant==="button"&&Tn(["display:flex;align-items:center;justify-content:center;"]),e=>e.$oval&&Tn(["border-radius:",";"],ee(8)),e=>ll(e.$variant).hover.color[e.$color],e=>ll(e.$variant).hover.bg[e.$color],e=>ll(e.$variant).hover.border[e.$color],e=>ll(e.$variant).focus.color[e.$color],e=>ll(e.$variant).focus.bg[e.$color],e=>ll(e.$variant).focus.border[e.$color]),Z9=()=>{const{getNodesByMark:e}=iU(),t=F.useCallback((r,i)=>{const{state:a}=r;return e(a.doc,i).map(o=>({end:o.pos+o.node.nodeSize,start:o.pos,text:o.node.text??""}))},[e]);return{getSelectedMarkPosition:F.useCallback((r,i)=>{const{state:a}=r,{selection:o}=a;return t(r,i).find(({start:s,end:l})=>o.from>s&&o.to<l)},[t]),getNodesPositions:t}};var $N=function(e,t,n){if(e&&"reportValidity"in e){var r=rt(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},oG=function(e,t){var n=function(i){var a=t.fields[i];a&&a.ref&&"reportValidity"in a.ref?$N(a.ref,i,e):a.refs&&a.refs.forEach(function(o){return $N(o,i,e)})};for(var r in t.fields)n(r)},zvt=function(e,t){t.shouldUseNativeValidation&&oG(e,t);var n={};for(var r in e){var i=rt(t.fields,r);En(n,r,Object.assign(e[r],{ref:i&&i.ref}))}return n},X9=function(e,t,n){return t===void 0&&(t={}),n===void 0&&(n={}),function(r,i,a){try{return Promise.resolve(function(o,s){try{var l=(t.context,Promise.resolve(e[n.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then(function(c){return a.shouldUseNativeValidation&&oG({},a),{values:n.rawValues?r:c,errors:{}}}))}catch(c){return s(c)}return l&&l.then?l.then(void 0,s):l}(0,function(o){if(!o.inner)throw o;return{values:{},errors:zvt((s=o,l=!a.shouldUseNativeValidation&&a.criteriaMode==="all",(s.inner||[]).reduce(function(c,u){if(c[u.path]||(c[u.path]={message:u.message,type:u.type}),l){var f=c[u.path].types,h=f&&f[u.type];c[u.path]=pU(u.path,l,c,u.type,h?[].concat(h,u.message):u.message)}return c},{})),a)};var s,l}))}catch(o){return Promise.reject(o)}}};const Fvt=d1().shape({href:Jd().required("This value is required"),text:Jd()}).required(),$vt=({text:e,href:t})=>Jv({mode:"onChange",resolver:X9(Fvt),defaultValues:{href:t,text:e}}),sG=Ae.div.withConfig({displayName:"ModalHeader"})(["padding:"," "," ",";color:",";font-size:",";line-height:",";font-weight:500;"],ee(24),ee(24),ee(12),e=>e.theme.colors.lightBlack,ee(21),ee(27)),lG=()=>{const{getSelectedMarkPosition:e}=Z9(),{editor:t,loading:n}=li(),r=F.useCallback((a,{href:o,text:s})=>{if(n||!t||t.status!==pn.Created)return;const{ctx:l}=t,{state:c}=a,u=co.type(l).create({href:o}),f=c.schema.text(s||o).mark([u]);return c.tr.replaceSelectionWith(f,!1)},[n,t]),i=F.useCallback((a,{href:o,text:s})=>{if(n||!t||t.status!==pn.Created)return;const{ctx:l}=t,{state:c}=a,u=l&&e(a,co.type(l));if(u){const f=co.type(l).create({href:o}),h=c.schema.text(s||o).mark([f]);return c.tr.replaceRangeWith(u.start,u.end,h)}},[e,t,n]);return{getLinkCreationTransaction:r,getLinkUpdateTransaction:i}},Mvt=({text:e="",href:t="",editable:n,onSubmit:r})=>{var C,w;const{onClose:i}=Hp(),{editor:a,loading:o}=li(),{formState:s,register:l,handleSubmit:c}=$vt({text:e,href:t}),{getSelectedMarkPosition:u}=Z9(),{getLinkCreationTransaction:f,getLinkUpdateTransaction:h}=lG(),m=k=>{r==null||r(),a&&!o&&a.status===pn.Created&&a.action(S=>{const E=S.get(ai);if(n){const A=h(E,k);A&&E.dispatch(A)}else{const A=f(E,k);A&&E.dispatch(A)}i()})},g=()=>{a&&!o&&a.status===pn.Created&&a.action(k=>{const S=k.get(ai),E=u(S,co.type(k));E&&S.dispatch(S.state.tr.deleteRange(E.start,E.end)),i()})},b=n?"Edit a link":"Add a link";return He("form",{onSubmit:c(m),children:[j(sG,{children:b}),He(f1,{children:[j(kp,{...l("text"),label:"Text",error:(C=s.errors.text)==null?void 0:C.message,placeholder:"Optional"}),j(kp,{label:"Link",placeholder:"Paste a link",required:!0,...l("href"),error:(w=s.errors.href)==null?void 0:w.message})]}),He(Ovt,{children:[n&&j(Xt,{oval:!0,onClick:g,color:"danger",variant:"outlined",children:"Remove link"}),j(Nvt,{isDisabled:!s.isValid,saveButtonType:"submit"})]})]})},Ovt=Ae(T9).withConfig({displayName:"ModalFooterStyled"})(["display:flex;align-items:center;"]),Nvt=Ae(n2).withConfig({displayName:"ModalActionsStyled"})(["margin-left:auto;"]),J9=({handler:e,onModalOpen:t,onModalClose:n,...r})=>{const{state:i,on:a,off:o}=Up(!1),s=F.useCallback(()=>{t==null||t(),a()},[t,a]),l=F.useCallback(()=>{n==null||n(),o()},[n,o]);return He(Gr,{children:[j(e,{onOpen:s}),j(Y9,{isOpen:i,onOpen:s,onClose:l,...r})]})},f2=({handler:e,onModalOpen:t,onModalClose:n,...r})=>j(J9,{handler:e,onModalOpen:t,onModalClose:n,children:j(Mvt,{...r})}),Lvt=()=>{const{colors:e}=Kl(),t=F.useRef(null),n=F.useRef(),[r,i]=F.useState(""),{editor:a,loading:o}=li(),{view:s,prevState:l}=Fv(),{mode:c}=ta(),{getSelectedMarkPosition:u}=Z9(),{href:f}=Evt();return F.useEffect(()=>{if(t.current&&!n.current&&!o&&a&&a.status===pn.Created){const h=new TH({content:t.current,tippyOptions:{zIndex:30,arrow:!0,placement:"bottom"},shouldShow:m=>{if(o||!a||a.status!==pn.Created)return!1;const{ctx:g}=a,{selection:b}=m.state,C=g&&u(m,co.type(g));return b instanceof Nt&&C?(i(C.text),!0):!1}});n.current=h}return()=>{var h;(h=n.current)==null||h.destroy()}},[a,u,c,o]),F.useEffect(()=>{var h;(h=n.current)==null||h.update(s,l)}),c==="preview"?null:j("div",{style:{display:"none"},children:He(Ivt,{ref:t,children:[j(Bvt,{children:f}),j(f2,{editable:!0,text:r,href:f,handler:({onOpen:h})=>j(Rvt,{oval:!0,onClick:h,space:"small",children:j(ut,{icon:"edit",fill:e.white})})}),j(Pvt,{href:f,target:"_blank",variant:"button",space:"small",oval:!0,children:j(ut,{icon:"export"})})]})})},Ivt=Ae.div.withConfig({displayName:"LinkTooltipStyled"})(["display:flex;align-items:center;padding:"," "," "," ",";background-color:",";border-radius:",";"],ee(6),ee(8),ee(6),ee(14),e=>e.theme.colors.lightBlack,ee(8)),Bvt=Ae.span.withConfig({displayName:"LinkTextStyled"})(["overflow:hidden;color:",";font-size:",";text-overflow:ellipsis;white-space:nowrap;text-decoration:underline;"],e=>e.theme.colors.white,ee(14)),Rvt=Ae(Xt).withConfig({displayName:"ButtonStyled"})(["margin-left:",";margin-right:",";&:hover,&:focus{background-color:transparent;border-color:",";}"],ee(6),ee(2),e=>e.theme.colors.green),Pvt=Ae(aG).withConfig({displayName:"AnchorStyled"})(["&:hover,&:focus{background-color:transparent;}"]),MN=AH("HYPERLINK"),cG=Lt("WrapEntireInBulletListCommand",e=>()=>zH(df.type(e))),uG=Lt("WrapEntireInOrderedListCommand",e=>()=>zH(ff.type(e))),jvt=()=>{const e=aS(),t=pgt(),n=oS();return F.useMemo(()=>[sgt,MN,i=>()=>{i.set(MN.key,{view:n({component:Lvt})})},jk(Pp.node,()=>e({component:l1t,as:"div"})),jk(zu.node,()=>e({component:Dvt,as:"div"})),t,cG,uG].flat(),[n,e,t])};var t7,n7;if(typeof WeakMap<"u"){let e=new WeakMap;t7=t=>e.get(t),n7=(t,n)=>(e.set(t,n),n)}else{const e=[];let n=0;t7=r=>{for(let i=0;i<e.length;i+=2)if(e[i]==r)return e[i+1]},n7=(r,i)=>(n==10&&(n=0),e[n++]=r,e[n++]=i)}var mn=class{constructor(e,t,n,r){this.width=e,this.height=t,this.map=n,this.problems=r}findCell(e){for(let t=0;t<this.map.length;t++){const n=this.map[t];if(n!=e)continue;const r=t%this.width,i=t/this.width|0;let a=r+1,o=i+1;for(let s=1;a<this.width&&this.map[t+s]==n;s++)a++;for(let s=1;o<this.height&&this.map[t+this.width*s]==n;s++)o++;return{left:r,top:i,right:a,bottom:o}}throw new RangeError(`No cell with offset ${e} found`)}colCount(e){for(let t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw new RangeError(`No cell with offset ${e} found`)}nextCell(e,t,n){const{left:r,right:i,top:a,bottom:o}=this.findCell(e);return t=="horiz"?(n<0?r==0:i==this.width)?null:this.map[a*this.width+(n<0?r-1:i)]:(n<0?a==0:o==this.height)?null:this.map[r+this.width*(n<0?a-1:o)]}rectBetween(e,t){const{left:n,right:r,top:i,bottom:a}=this.findCell(e),{left:o,right:s,top:l,bottom:c}=this.findCell(t);return{left:Math.min(n,o),top:Math.min(i,l),right:Math.max(r,s),bottom:Math.max(a,c)}}cellsInRect(e){const t=[],n={};for(let r=e.top;r<e.bottom;r++)for(let i=e.left;i<e.right;i++){const a=r*this.width+i,o=this.map[a];n[o]||(n[o]=!0,!(i==e.left&&i&&this.map[a-1]==o||r==e.top&&r&&this.map[a-this.width]==o)&&t.push(o))}return t}positionAt(e,t,n){for(let r=0,i=0;;r++){const a=i+n.child(r).nodeSize;if(r==e){let o=t+e*this.width;const s=(e+1)*this.width;for(;o<s&&this.map[o]<i;)o++;return o==s?a-1:this.map[o]}i=a}}static get(e){return t7(e)||n7(e,Vvt(e))}};function Vvt(e){if(e.type.spec.tableRole!="table")throw new RangeError("Not a table node: "+e.type.name);const t=qvt(e),n=e.childCount,r=[];let i=0,a=null;const o=[];for(let c=0,u=t*n;c<u;c++)r[c]=0;for(let c=0,u=0;c<n;c++){const f=e.child(c);u++;for(let g=0;;g++){for(;i<r.length&&r[i]!=0;)i++;if(g==f.childCount)break;const b=f.child(g),{colspan:C,rowspan:w,colwidth:k}=b.attrs;for(let S=0;S<w;S++){if(S+c>=n){(a||(a=[])).push({type:"overlong_rowspan",pos:u,n:w-S});break}const E=i+S*t;for(let A=0;A<C;A++){r[E+A]==0?r[E+A]=u:(a||(a=[])).push({type:"collision",row:c,pos:u,n:C-A});const _=k&&k[A];if(_){const T=(E+A)%t*2,$=o[T];$==null||$!=_&&o[T+1]==1?(o[T]=_,o[T+1]=1):$==_&&o[T+1]++}}}i+=C,u+=b.nodeSize}const h=(c+1)*t;let m=0;for(;i<h;)r[i++]==0&&m++;m&&(a||(a=[])).push({type:"missing",row:c,n:m}),u++}const s=new mn(t,n,r,a);let l=!1;for(let c=0;!l&&c<o.length;c+=2)o[c]!=null&&o[c+1]<n&&(l=!0);return l&&Hvt(s,o,e),s}function qvt(e){let t=-1,n=!1;for(let r=0;r<e.childCount;r++){const i=e.child(r);let a=0;if(n)for(let o=0;o<r;o++){const s=e.child(o);for(let l=0;l<s.childCount;l++){const c=s.child(l);o+c.attrs.rowspan>r&&(a+=c.attrs.colspan)}}for(let o=0;o<i.childCount;o++){const s=i.child(o);a+=s.attrs.colspan,s.attrs.rowspan>1&&(n=!0)}t==-1?t=a:t!=a&&(t=Math.max(t,a))}return t}function Hvt(e,t,n){e.problems||(e.problems=[]);const r={};for(let i=0;i<e.map.length;i++){const a=e.map[i];if(r[a])continue;r[a]=!0;const o=n.nodeAt(a);if(!o)throw new RangeError(`No cell with offset ${a} found`);let s=null;const l=o.attrs;for(let c=0;c<l.colspan;c++){const u=(i+c)%e.width,f=t[u*2];f!=null&&(!l.colwidth||l.colwidth[c]!=f)&&((s||(s=Uvt(l)))[c]=f)}s&&e.problems.unshift({type:"colwidth mismatch",pos:a,colwidth:s})}}function Uvt(e){if(e.colwidth)return e.colwidth.slice();const t=[];for(let n=0;n<e.colspan;n++)t.push(0);return t}function ON(e,t){if(typeof e=="string")return{};const n=e.getAttribute("data-colwidth"),r=n&&/^\d+(,\d+)*$/.test(n)?n.split(",").map(o=>Number(o)):null,i=Number(e.getAttribute("colspan")||1),a={colspan:i,rowspan:Number(e.getAttribute("rowspan")||1),colwidth:r&&r.length==i?r:null};for(const o in t){const s=t[o].getFromDOM,l=s&&s(e);l!=null&&(a[o]=l)}return a}function NN(e,t){const n={};e.attrs.colspan!=1&&(n.colspan=e.attrs.colspan),e.attrs.rowspan!=1&&(n.rowspan=e.attrs.rowspan),e.attrs.colwidth&&(n["data-colwidth"]=e.attrs.colwidth.join(","));for(const r in t){const i=t[r].setDOMAttr;i&&i(e.attrs[r],n)}return n}function Wvt(e){const t=e.cellAttributes||{},n={colspan:{default:1},rowspan:{default:1},colwidth:{default:null}};for(const r in t)n[r]={default:t[r].default};return{table:{content:"table_row+",tableRole:"table",isolating:!0,group:e.tableGroup,parseDOM:[{tag:"table"}],toDOM(){return["table",["tbody",0]]}},table_row:{content:"(table_cell | table_header)*",tableRole:"row",parseDOM:[{tag:"tr"}],toDOM(){return["tr",0]}},table_cell:{content:e.cellContent,attrs:n,tableRole:"cell",isolating:!0,parseDOM:[{tag:"td",getAttrs:r=>ON(r,t)}],toDOM(r){return["td",NN(r,t),0]}},table_header:{content:e.cellContent,attrs:n,tableRole:"header_cell",isolating:!0,parseDOM:[{tag:"th",getAttrs:r=>ON(r,t)}],toDOM(r){return["th",NN(r,t),0]}}}}function mo(e){let t=e.cached.tableNodeTypes;if(!t){t=e.cached.tableNodeTypes={};for(const n in e.nodes){const r=e.nodes[n],i=r.spec.tableRole;i&&(t[i]=r)}}return t}var Bc=new Fn("selectingCells");function y1(e){for(let t=e.depth-1;t>0;t--)if(e.node(t).type.spec.tableRole=="row")return e.node(0).resolve(e.before(t+1));return null}function Xi(e){const t=e.selection.$head;for(let n=t.depth;n>0;n--)if(t.node(n).type.spec.tableRole=="row")return!0;return!1}function h2(e){const t=e.selection;if("$anchorCell"in t&&t.$anchorCell)return t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell;if("node"in t&&t.node&&t.node.type.spec.tableRole=="cell")return t.$anchor;const n=y1(t.$head)||Gvt(t.$head);if(n)return n;throw new RangeError(`No cell found around position ${t.head}`)}function Gvt(e){for(let t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){const r=t.type.spec.tableRole;if(r=="cell"||r=="header_cell")return e.doc.resolve(n)}for(let t=e.nodeBefore,n=e.pos;t;t=t.lastChild,n--){const r=t.type.spec.tableRole;if(r=="cell"||r=="header_cell")return e.doc.resolve(n-t.nodeSize)}}function r7(e){return e.parent.type.spec.tableRole=="row"&&!!e.nodeAfter}function Kvt(e){return e.node(0).resolve(e.pos+e.nodeAfter.nodeSize)}function Q9(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function dG(e,t,n){const r=e.node(-1),i=mn.get(r),a=e.start(-1),o=i.nextCell(e.pos-a,t,n);return o==null?null:e.node(0).resolve(a+o)}function Qd(e,t,n=1){const r={...e,colspan:e.colspan-n};return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(t,n),r.colwidth.some(i=>i>0)||(r.colwidth=null)),r}function Yvt(e,t,n=1){const r={...e,colspan:e.colspan+n};if(r.colwidth){r.colwidth=r.colwidth.slice();for(let i=0;i<n;i++)r.colwidth.splice(t,0,0)}return r}function Zvt(e,t,n){const r=mo(t.type.schema).header_cell;for(let i=0;i<e.height;i++)if(t.nodeAt(e.map[n+i*e.width]).type!=r)return!1;return!0}var an=class extends $t{constructor(e,t=e){const n=e.node(-1),r=mn.get(n),i=e.start(-1),a=r.rectBetween(e.pos-i,t.pos-i),o=e.node(0),s=r.cellsInRect(a).filter(c=>c!=t.pos-i);s.unshift(t.pos-i);const l=s.map(c=>{const u=n.nodeAt(c);if(!u)throw RangeError(`No cell with offset ${c} found`);const f=i+c+1;return new gj(o.resolve(f),o.resolve(f+u.content.size))});super(l[0].$from,l[0].$to,l),this.$anchorCell=e,this.$headCell=t}map(e,t){const n=e.resolve(t.map(this.$anchorCell.pos)),r=e.resolve(t.map(this.$headCell.pos));if(r7(n)&&r7(r)&&Q9(n,r)){const i=this.$anchorCell.node(-1)!=n.node(-1);return i&&this.isRowSelection()?an.rowSelection(n,r):i&&this.isColSelection()?an.colSelection(n,r):new an(n,r)}return Nt.between(n,r)}content(){const e=this.$anchorCell.node(-1),t=mn.get(e),n=this.$anchorCell.start(-1),r=t.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),i={},a=[];for(let s=r.top;s<r.bottom;s++){const l=[];for(let c=s*t.width+r.left,u=r.left;u<r.right;u++,c++){const f=t.map[c];if(i[f])continue;i[f]=!0;const h=t.findCell(f);let m=e.nodeAt(f);if(!m)throw RangeError(`No cell with offset ${f} found`);const g=r.left-h.left,b=h.right-r.right;if(g>0||b>0){let C=m.attrs;if(g>0&&(C=Qd(C,0,g)),b>0&&(C=Qd(C,C.colspan-b,b)),h.left<r.left){if(m=m.type.createAndFill(C),!m)throw RangeError(`Could not create cell with attrs ${JSON.stringify(C)}`)}else m=m.type.create(C,m.content)}if(h.top<r.top||h.bottom>r.bottom){const C={...m.attrs,rowspan:Math.min(h.bottom,r.bottom)-Math.max(h.top,r.top)};h.top<r.top?m=m.type.createAndFill(C):m=m.type.create(C,m.content)}l.push(m)}a.push(e.child(s).copy(Ee.from(l)))}const o=this.isColSelection()&&this.isRowSelection()?e:a;return new Ue(Ee.from(o),1,1)}replace(e,t=Ue.empty){const n=e.steps.length,r=this.ranges;for(let a=0;a<r.length;a++){const{$from:o,$to:s}=r[a],l=e.mapping.slice(n);e.replace(l.map(o.pos),l.map(s.pos),a?Ue.empty:t)}const i=$t.findFrom(e.doc.resolve(e.mapping.slice(n).map(this.to)),-1);i&&e.setSelection(i)}replaceWith(e,t){this.replace(e,new Ue(Ee.from(t),0,0))}forEachCell(e){const t=this.$anchorCell.node(-1),n=mn.get(t),r=this.$anchorCell.start(-1),i=n.cellsInRect(n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r));for(let a=0;a<i.length;a++)e(t.nodeAt(i[a]),r+i[a])}isColSelection(){const e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);if(Math.min(e,t)>0)return!1;const n=e+this.$anchorCell.nodeAfter.attrs.rowspan,r=t+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,r)==this.$headCell.node(-1).childCount}static colSelection(e,t=e){const n=e.node(-1),r=mn.get(n),i=e.start(-1),a=r.findCell(e.pos-i),o=r.findCell(t.pos-i),s=e.node(0);return a.top<=o.top?(a.top>0&&(e=s.resolve(i+r.map[a.left])),o.bottom<r.height&&(t=s.resolve(i+r.map[r.width*(r.height-1)+o.right-1]))):(o.top>0&&(t=s.resolve(i+r.map[o.left])),a.bottom<r.height&&(e=s.resolve(i+r.map[r.width*(r.height-1)+a.right-1]))),new an(e,t)}isRowSelection(){const e=this.$anchorCell.node(-1),t=mn.get(e),n=this.$anchorCell.start(-1),r=t.colCount(this.$anchorCell.pos-n),i=t.colCount(this.$headCell.pos-n);if(Math.min(r,i)>0)return!1;const a=r+this.$anchorCell.nodeAfter.attrs.colspan,o=i+this.$headCell.nodeAfter.attrs.colspan;return Math.max(a,o)==t.width}eq(e){return e instanceof an&&e.$anchorCell.pos==this.$anchorCell.pos&&e.$headCell.pos==this.$headCell.pos}static rowSelection(e,t=e){const n=e.node(-1),r=mn.get(n),i=e.start(-1),a=r.findCell(e.pos-i),o=r.findCell(t.pos-i),s=e.node(0);return a.left<=o.left?(a.left>0&&(e=s.resolve(i+r.map[a.top*r.width])),o.right<r.width&&(t=s.resolve(i+r.map[r.width*(o.top+1)-1]))):(o.left>0&&(t=s.resolve(i+r.map[o.top*r.width])),a.right<r.width&&(e=s.resolve(i+r.map[r.width*(a.top+1)-1]))),new an(e,t)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(e,t){return new an(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,n=t){return new an(e.resolve(t),e.resolve(n))}getBookmark(){return new fG(this.$anchorCell.pos,this.$headCell.pos)}};an.prototype.visible=!1;$t.jsonID("cell",an);var fG=class{constructor(e,t){this.anchor=e,this.head=t}map(e){return new fG(e.map(this.anchor),e.map(this.head))}resolve(e){const t=e.resolve(this.anchor),n=e.resolve(this.head);return t.parent.type.spec.tableRole=="row"&&n.parent.type.spec.tableRole=="row"&&t.index()<t.parent.childCount&&n.index()<n.parent.childCount&&Q9(t,n)?new an(t,n):$t.near(n,1)}};function Xvt(e){if(!(e.selection instanceof an))return null;const t=[];return e.selection.forEachCell((n,r)=>{t.push($r.node(r,r+n.nodeSize,{class:"selectedCell"}))}),en.create(e.doc,t)}function Jvt({$from:e,$to:t}){if(e.pos==t.pos||e.pos<e.pos-6)return!1;let n=e.pos,r=t.pos,i=e.depth;for(;i>=0&&!(e.after(i+1)<e.end(i));i--,n++);for(let a=t.depth;a>=0&&!(t.before(a+1)>t.start(a));a--,r--);return n==r&&/row|table/.test(e.node(i).type.spec.tableRole)}function Qvt({$from:e,$to:t}){let n,r;for(let i=e.depth;i>0;i--){const a=e.node(i);if(a.type.spec.tableRole==="cell"||a.type.spec.tableRole==="header_cell"){n=a;break}}for(let i=t.depth;i>0;i--){const a=t.node(i);if(a.type.spec.tableRole==="cell"||a.type.spec.tableRole==="header_cell"){r=a;break}}return n!==r&&t.parentOffset===0}function e2t(e,t,n){const r=(t||e).selection,i=(t||e).doc;let a,o;if(r instanceof Mt&&(o=r.node.type.spec.tableRole)){if(o=="cell"||o=="header_cell")a=an.create(i,r.from);else if(o=="row"){const s=i.resolve(r.from+1);a=an.rowSelection(s,s)}else if(!n){const s=mn.get(r.node),l=r.from+1,c=l+s.map[s.width*s.height-1];a=an.create(i,l+1,c)}}else r instanceof Nt&&Jvt(r)?a=Nt.create(i,r.from):r instanceof Nt&&Qvt(r)&&(a=Nt.create(i,r.$from.start(),r.$from.end()));return a&&(t||(t=e.tr)).setSelection(a),t}var t2t=new Fn("fix-tables");function hG(e,t,n,r){const i=e.childCount,a=t.childCount;e:for(let o=0,s=0;o<a;o++){const l=t.child(o);for(let c=s,u=Math.min(i,o+3);c<u;c++)if(e.child(c)==l){s=c+1,n+=l.nodeSize;continue e}r(l,n),s<i&&e.child(s).sameMarkup(l)?hG(e.child(s),l,n+1,r):l.nodesBetween(0,l.content.size,r,n+1),n+=l.nodeSize}}function n2t(e,t){let n;const r=(i,a)=>{i.type.spec.tableRole=="table"&&(n=r2t(e,i,a,n))};return t?t.doc!=e.doc&&hG(t.doc,e.doc,0,r):e.doc.descendants(r),n}function r2t(e,t,n,r){const i=mn.get(t);if(!i.problems)return r;r||(r=e.tr);const a=[];for(let l=0;l<i.height;l++)a.push(0);for(let l=0;l<i.problems.length;l++){const c=i.problems[l];if(c.type=="collision"){const u=t.nodeAt(c.pos);if(!u)continue;const f=u.attrs;for(let h=0;h<f.rowspan;h++)a[c.row+h]+=c.n;r.setNodeMarkup(r.mapping.map(n+1+c.pos),null,Qd(f,f.colspan-c.n,c.n))}else if(c.type=="missing")a[c.row]+=c.n;else if(c.type=="overlong_rowspan"){const u=t.nodeAt(c.pos);if(!u)continue;r.setNodeMarkup(r.mapping.map(n+1+c.pos),null,{...u.attrs,rowspan:u.attrs.rowspan-c.n})}else if(c.type=="colwidth mismatch"){const u=t.nodeAt(c.pos);if(!u)continue;r.setNodeMarkup(r.mapping.map(n+1+c.pos),null,{...u.attrs,colwidth:c.colwidth})}}let o,s;for(let l=0;l<a.length;l++)a[l]&&(o==null&&(o=l),s=l);for(let l=0,c=n+1;l<i.height;l++){const u=t.child(l),f=c+u.nodeSize,h=a[l];if(h>0){let m="cell";u.firstChild&&(m=u.firstChild.type.spec.tableRole);const g=[];for(let C=0;C<h;C++){const w=mo(e.schema)[m].createAndFill();w&&g.push(w)}const b=(l==0||o==l-1)&&s==l?c+1:f-1;r.insert(r.mapping.map(b),g)}c=f}return r.setMeta(t2t,{fixTables:!0})}function i2t(e){if(!e.size)return null;let{content:t,openStart:n,openEnd:r}=e;for(;t.childCount==1&&(n>0&&r>0||t.child(0).type.spec.tableRole=="table");)n--,r--,t=t.child(0).content;const i=t.child(0),a=i.type.spec.tableRole,o=i.type.schema,s=[];if(a=="row")for(let l=0;l<t.childCount;l++){let c=t.child(l).content;const u=l?0:Math.max(0,n-1),f=l<t.childCount-1?0:Math.max(0,r-1);(u||f)&&(c=i7(mo(o).row,new Ue(c,u,f)).content),s.push(c)}else if(a=="cell"||a=="header_cell")s.push(n||r?i7(mo(o).row,new Ue(t,n,r)).content:t);else return null;return a2t(o,s)}function a2t(e,t){const n=[];for(let i=0;i<t.length;i++){const a=t[i];for(let o=a.childCount-1;o>=0;o--){const{rowspan:s,colspan:l}=a.child(o).attrs;for(let c=i;c<i+s;c++)n[c]=(n[c]||0)+l}}let r=0;for(let i=0;i<n.length;i++)r=Math.max(r,n[i]);for(let i=0;i<n.length;i++)if(i>=t.length&&t.push(Ee.empty),n[i]<r){const a=mo(e).cell.createAndFill(),o=[];for(let s=n[i];s<r;s++)o.push(a);t[i]=t[i].append(Ee.from(o))}return{height:t.length,width:r,rows:t}}function i7(e,t){const n=e.createAndFill();return new mj(n).replace(0,n.content.size,t).doc}function o2t({width:e,height:t,rows:n},r,i){if(e!=r){const a=[],o=[];for(let s=0;s<n.length;s++){const l=n[s],c=[];for(let u=a[s]||0,f=0;u<r;f++){let h=l.child(f%l.childCount);u+h.attrs.colspan>r&&(h=h.type.createChecked(Qd(h.attrs,h.attrs.colspan,u+h.attrs.colspan-r),h.content)),c.push(h),u+=h.attrs.colspan;for(let m=1;m<h.attrs.rowspan;m++)a[s+m]=(a[s+m]||0)+h.attrs.colspan}o.push(Ee.from(c))}n=o,e=r}if(t!=i){const a=[];for(let o=0,s=0;o<i;o++,s++){const l=[],c=n[s%t];for(let u=0;u<c.childCount;u++){let f=c.child(u);o+f.attrs.rowspan>i&&(f=f.type.create({...f.attrs,rowspan:Math.max(1,i-f.attrs.rowspan)},f.content)),l.push(f)}a.push(Ee.from(l))}n=a,t=i}return{width:e,height:t,rows:n}}function s2t(e,t,n,r,i,a,o){const s=e.doc.type.schema,l=mo(s);let c,u;if(i>t.width)for(let f=0,h=0;f<t.height;f++){const m=n.child(f);h+=m.nodeSize;const g=[];let b;m.lastChild==null||m.lastChild.type==l.cell?b=c||(c=l.cell.createAndFill()):b=u||(u=l.header_cell.createAndFill());for(let C=t.width;C<i;C++)g.push(b);e.insert(e.mapping.slice(o).map(h-1+r),g)}if(a>t.height){const f=[];for(let g=0,b=(t.height-1)*t.width;g<Math.max(t.width,i);g++){const C=g>=t.width?!1:n.nodeAt(t.map[b+g]).type==l.header_cell;f.push(C?u||(u=l.header_cell.createAndFill()):c||(c=l.cell.createAndFill()))}const h=l.row.create(null,Ee.from(f)),m=[];for(let g=t.height;g<a;g++)m.push(h);e.insert(e.mapping.slice(o).map(r+n.nodeSize-2),m)}return!!(c||u)}function LN(e,t,n,r,i,a,o,s){if(o==0||o==t.height)return!1;let l=!1;for(let c=i;c<a;c++){const u=o*t.width+c,f=t.map[u];if(t.map[u-t.width]==f){l=!0;const h=n.nodeAt(f),{top:m,left:g}=t.findCell(f);e.setNodeMarkup(e.mapping.slice(s).map(f+r),null,{...h.attrs,rowspan:o-m}),e.insert(e.mapping.slice(s).map(t.positionAt(o,g,n)),h.type.createAndFill({...h.attrs,rowspan:m+h.attrs.rowspan-o})),c+=h.attrs.colspan-1}}return l}function IN(e,t,n,r,i,a,o,s){if(o==0||o==t.width)return!1;let l=!1;for(let c=i;c<a;c++){const u=c*t.width+o,f=t.map[u];if(t.map[u-1]==f){l=!0;const h=n.nodeAt(f),m=t.colCount(f),g=e.mapping.slice(s).map(f+r);e.setNodeMarkup(g,null,Qd(h.attrs,o-m,h.attrs.colspan-(o-m))),e.insert(g+h.nodeSize,h.type.createAndFill(Qd(h.attrs,0,o-m))),c+=h.attrs.rowspan-1}}return l}function BN(e,t,n,r,i){let a=n?e.doc.nodeAt(n-1):e.doc;if(!a)throw new Error("No table found");let o=mn.get(a);const{top:s,left:l}=r,c=l+i.width,u=s+i.height,f=e.tr;let h=0;function m(){if(a=n?f.doc.nodeAt(n-1):f.doc,!a)throw new Error("No table found");o=mn.get(a),h=f.mapping.maps.length}s2t(f,o,a,n,c,u,h)&&m(),LN(f,o,a,n,l,c,s,h)&&m(),LN(f,o,a,n,l,c,u,h)&&m(),IN(f,o,a,n,s,u,l,h)&&m(),IN(f,o,a,n,s,u,c,h)&&m();for(let g=s;g<u;g++){const b=o.positionAt(g,l,a),C=o.positionAt(g,c,a);f.replace(f.mapping.slice(h).map(b+n),f.mapping.slice(h).map(C+n),new Ue(i.rows[g-s],0,0))}m(),f.setSelection(new an(f.doc.resolve(n+o.positionAt(s,l,a)),f.doc.resolve(n+o.positionAt(u-1,c-1,a)))),t(f)}var l2t=bq({ArrowLeft:o_("horiz",-1),ArrowRight:o_("horiz",1),ArrowUp:o_("vert",-1),ArrowDown:o_("vert",1),"Shift-ArrowLeft":s_("horiz",-1),"Shift-ArrowRight":s_("horiz",1),"Shift-ArrowUp":s_("vert",-1),"Shift-ArrowDown":s_("vert",1),Backspace:l_,"Mod-Backspace":l_,Delete:l_,"Mod-Delete":l_});function Fb(e,t,n){return n.eq(e.selection)?!1:(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function o_(e,t){return(n,r,i)=>{if(!i)return!1;const a=n.selection;if(a instanceof an)return Fb(n,r,$t.near(a.$headCell,t));if(e!="horiz"&&!a.empty)return!1;const o=pG(i,e,t);if(o==null)return!1;if(e=="horiz")return Fb(n,r,$t.near(n.doc.resolve(a.head+t),t));{const s=n.doc.resolve(o),l=dG(s,e,t);let c;return l?c=$t.near(l,1):t<0?c=$t.near(n.doc.resolve(s.before(-1)),-1):c=$t.near(n.doc.resolve(s.after(-1)),1),Fb(n,r,c)}}}function s_(e,t){return(n,r,i)=>{if(!i)return!1;const a=n.selection;let o;if(a instanceof an)o=a;else{const l=pG(i,e,t);if(l==null)return!1;o=new an(n.doc.resolve(l))}const s=dG(o.$headCell,e,t);return s?Fb(n,r,new an(o.$anchorCell,s)):!1}}function l_(e,t){const n=e.selection;if(!(n instanceof an))return!1;if(t){const r=e.tr,i=mo(e.schema).cell.createAndFill().content;n.forEachCell((a,o)=>{a.content.eq(i)||r.replace(r.mapping.map(o+1),r.mapping.map(o+a.nodeSize-1),new Ue(i,0,0))}),r.docChanged&&t(r)}return!0}function c2t(e,t){const n=e.state.doc,r=y1(n.resolve(t));return r?(e.dispatch(e.state.tr.setSelection(new an(r))),!0):!1}function u2t(e,t,n){if(!Xi(e.state))return!1;let r=i2t(n);const i=e.state.selection;if(i instanceof an){r||(r={width:1,height:1,rows:[Ee.from(i7(mo(e.state.schema).cell,n))]});const a=i.$anchorCell.node(-1),o=i.$anchorCell.start(-1),s=mn.get(a).rectBetween(i.$anchorCell.pos-o,i.$headCell.pos-o);return r=o2t(r,s.right-s.left,s.bottom-s.top),BN(e.state,e.dispatch,o,s,r),!0}else if(r){const a=h2(e.state),o=a.start(-1);return BN(e.state,e.dispatch,o,mn.get(a.node(-1)).findCell(a.pos-o),r),!0}else return!1}function d2t(e,t){var n;if(t.ctrlKey||t.metaKey)return;const r=RN(e,t.target);let i;if(t.shiftKey&&e.state.selection instanceof an)a(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&r&&(i=y1(e.state.selection.$anchor))!=null&&((n=U6(e,t))==null?void 0:n.pos)!=i.pos)a(i,t),t.preventDefault();else if(!r)return;function a(l,c){let u=U6(e,c);const f=Bc.getState(e.state)==null;if(!u||!Q9(l,u))if(f)u=l;else return;const h=new an(l,u);if(f||!e.state.selection.eq(h)){const m=e.state.tr.setSelection(h);f&&m.setMeta(Bc,l.pos),e.dispatch(m)}}function o(){e.root.removeEventListener("mouseup",o),e.root.removeEventListener("dragstart",o),e.root.removeEventListener("mousemove",s),Bc.getState(e.state)!=null&&e.dispatch(e.state.tr.setMeta(Bc,-1))}function s(l){const c=l,u=Bc.getState(e.state);let f;if(u!=null)f=e.state.doc.resolve(u);else if(RN(e,c.target)!=r&&(f=U6(e,t),!f))return o();f&&a(f,c)}e.root.addEventListener("mouseup",o),e.root.addEventListener("dragstart",o),e.root.addEventListener("mousemove",s)}function pG(e,t,n){if(!(e.state.selection instanceof Nt))return null;const{$head:r}=e.state.selection;for(let i=r.depth-1;i>=0;i--){const a=r.node(i);if((n<0?r.index(i):r.indexAfter(i))!=(n<0?0:a.childCount))return null;if(a.type.spec.tableRole=="cell"||a.type.spec.tableRole=="header_cell"){const s=r.before(i),l=t=="vert"?n>0?"down":"up":n>0?"right":"left";return e.endOfTextblock(l)?s:null}}return null}function RN(e,t){for(;t&&t!=e.dom;t=t.parentNode)if(t.nodeName=="TD"||t.nodeName=="TH")return t;return null}function U6(e,t){const n=e.posAtCoords({left:t.clientX,top:t.clientY});return n&&n?y1(e.state.doc.resolve(n.pos)):null}var f2t=class{constructor(e,t){this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),a7(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type!=this.node.type?!1:(this.node=e,a7(e,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(e){return e.type=="attributes"&&(e.target==this.table||this.colgroup.contains(e.target))}};function a7(e,t,n,r,i,a){var o;let s=0,l=!0,c=t.firstChild;const u=e.firstChild;if(u){for(let f=0,h=0;f<u.childCount;f++){const{colspan:m,colwidth:g}=u.child(f).attrs;for(let b=0;b<m;b++,h++){const C=i==h?a:g&&g[b],w=C?C+"px":"";s+=C||r,C||(l=!1),c?(c.style.width!=w&&(c.style.width=w),c=c.nextSibling):t.appendChild(document.createElement("col")).style.width=w}}for(;c;){const f=c.nextSibling;(o=c.parentNode)==null||o.removeChild(c),c=f}l?(n.style.width=s+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=s+"px")}}var no=new Fn("tableColumnResizing");function h2t({handleWidth:e=5,cellMinWidth:t=25,View:n=f2t,lastColumnResizable:r=!0}={}){const i=new Bn({key:no,state:{init(a,o){return i.spec.props.nodeViews[mo(o.schema).table.name]=(s,l)=>new n(s,t,l),new $b(-1,!1)},apply(a,o){return o.apply(a)}},props:{attributes:a=>{const o=no.getState(a);return o&&o.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(a,o)=>{p2t(a,o,e,t,r)},mouseleave:a=>{m2t(a)},mousedown:(a,o)=>{g2t(a,o,t)}},decorations:a=>{const o=no.getState(a);if(o&&o.activeHandle>-1)return v2t(a,o.activeHandle)},nodeViews:{}}});return i}var $b=class{constructor(e,t){this.activeHandle=e,this.dragging=t}apply(e){const t=this,n=e.getMeta(no);if(n&&n.setHandle!=null)return new $b(n.setHandle,!1);if(n&&n.setDragging!==void 0)return new $b(t.activeHandle,n.setDragging);if(t.activeHandle>-1&&e.docChanged){let r=e.mapping.map(t.activeHandle,-1);return r7(e.doc.resolve(r))||(r=-1),new $b(r,t.dragging)}return t}};function p2t(e,t,n,r,i){const a=no.getState(e.state);if(a&&!a.dragging){const o=_2t(t.target);let s=-1;if(o){const{left:l,right:c}=o.getBoundingClientRect();t.clientX-l<=n?s=PN(e,t,"left",n):c-t.clientX<=n&&(s=PN(e,t,"right",n))}if(s!=a.activeHandle){if(!i&&s!==-1){const l=e.state.doc.resolve(s),c=l.node(-1),u=mn.get(c),f=l.start(-1);if(u.colCount(l.pos-f)+l.nodeAfter.attrs.colspan-1==u.width-1)return}mG(e,s)}}}function m2t(e){const t=no.getState(e.state);t&&t.activeHandle>-1&&!t.dragging&&mG(e,-1)}function g2t(e,t,n){const r=no.getState(e.state);if(!r||r.activeHandle==-1||r.dragging)return!1;const i=e.state.doc.nodeAt(r.activeHandle),a=y2t(e,r.activeHandle,i.attrs);e.dispatch(e.state.tr.setMeta(no,{setDragging:{startX:t.clientX,startWidth:a}}));function o(l){window.removeEventListener("mouseup",o),window.removeEventListener("mousemove",s);const c=no.getState(e.state);c!=null&&c.dragging&&(b2t(e,c.activeHandle,jN(c.dragging,l,n)),e.dispatch(e.state.tr.setMeta(no,{setDragging:null})))}function s(l){if(!l.which)return o(l);const c=no.getState(e.state);if(c&&c.dragging){const u=jN(c.dragging,l,n);k2t(e,c.activeHandle,u,n)}}return window.addEventListener("mouseup",o),window.addEventListener("mousemove",s),t.preventDefault(),!0}function y2t(e,t,{colspan:n,colwidth:r}){const i=r&&r[r.length-1];if(i)return i;const a=e.domAtPos(t);let s=a.node.childNodes[a.offset].offsetWidth,l=n;if(r)for(let c=0;c<n;c++)r[c]&&(s-=r[c],l--);return s/l}function _2t(e){for(;e&&e.nodeName!="TD"&&e.nodeName!="TH";)e=e.classList&&e.classList.contains("ProseMirror")?null:e.parentNode;return e}function PN(e,t,n,r){const i=n=="right"?-r:r,a=e.posAtCoords({left:t.clientX+i,top:t.clientY});if(!a)return-1;const{pos:o}=a,s=y1(e.state.doc.resolve(o));if(!s)return-1;if(n=="right")return s.pos;const l=mn.get(s.node(-1)),c=s.start(-1),u=l.map.indexOf(s.pos-c);return u%l.width==0?-1:c+l.map[u-1]}function jN(e,t,n){const r=t.clientX-e.startX;return Math.max(n,e.startWidth+r)}function mG(e,t){e.dispatch(e.state.tr.setMeta(no,{setHandle:t}))}function b2t(e,t,n){const r=e.state.doc.resolve(t),i=r.node(-1),a=mn.get(i),o=r.start(-1),s=a.colCount(r.pos-o)+r.nodeAfter.attrs.colspan-1,l=e.state.tr;for(let c=0;c<a.height;c++){const u=c*a.width+s;if(c&&a.map[u]==a.map[u-a.width])continue;const f=a.map[u],h=i.nodeAt(f).attrs,m=h.colspan==1?0:s-a.colCount(f);if(h.colwidth&&h.colwidth[m]==n)continue;const g=h.colwidth?h.colwidth.slice():w2t(h.colspan);g[m]=n,l.setNodeMarkup(o+f,null,{...h,colwidth:g})}l.docChanged&&e.dispatch(l)}function k2t(e,t,n,r){const i=e.state.doc.resolve(t),a=i.node(-1),o=i.start(-1),s=mn.get(a).colCount(i.pos-o)+i.nodeAfter.attrs.colspan-1;let l=e.domAtPos(i.start(-1)).node;for(;l&&l.nodeName!="TABLE";)l=l.parentNode;l&&a7(a,l.firstChild,l,r,s,n)}function w2t(e){return Array(e).fill(0)}function v2t(e,t){const n=[],r=e.doc.resolve(t),i=r.node(-1);if(!i)return en.empty;const a=mn.get(i),o=r.start(-1),s=a.colCount(r.pos-o)+r.nodeAfter.attrs.colspan;for(let l=0;l<a.height;l++){const c=s+l*a.width-1;if((s==a.width||a.map[c]!=a.map[c+1])&&(l==0||a.map[c]!=a.map[c-a.width])){const u=a.map[c],f=o+u+i.nodeAt(u).nodeSize-1,h=document.createElement("div");h.className="column-resize-handle",n.push($r.widget(f,h))}}return en.create(e.doc,n)}function $u(e){const t=e.selection,n=h2(e),r=n.node(-1),i=n.start(-1),a=mn.get(r);return{...t instanceof an?a.rectBetween(t.$anchorCell.pos-i,t.$headCell.pos-i):a.findCell(n.pos-i),tableStart:i,map:a,table:r}}function gG(e,{map:t,tableStart:n,table:r},i){let a=i>0?-1:0;Zvt(t,r,i+a)&&(a=i==0||i==t.width?null:0);for(let o=0;o<t.height;o++){const s=o*t.width+i;if(i>0&&i<t.width&&t.map[s-1]==t.map[s]){const l=t.map[s],c=r.nodeAt(l);e.setNodeMarkup(e.mapping.map(n+l),null,Yvt(c.attrs,i-t.colCount(l))),o+=c.attrs.rowspan-1}else{const l=a==null?mo(r.type.schema).cell:r.nodeAt(t.map[s+a]).type,c=t.positionAt(o,i,r);e.insert(e.mapping.map(n+c),l.createAndFill())}}return e}function x2t(e,t){if(!Xi(e))return!1;if(t){const n=$u(e);t(gG(e.tr,n,n.left))}return!0}function C2t(e,t){if(!Xi(e))return!1;if(t){const n=$u(e);t(gG(e.tr,n,n.right))}return!0}function S2t(e,{map:t,table:n,tableStart:r},i){const a=e.mapping.maps.length;for(let o=0;o<t.height;){const s=o*t.width+i,l=t.map[s],c=n.nodeAt(l),u=c.attrs;if(i>0&&t.map[s-1]==l||i<t.width-1&&t.map[s+1]==l)e.setNodeMarkup(e.mapping.slice(a).map(r+l),null,Qd(u,i-t.colCount(l)));else{const f=e.mapping.slice(a).map(r+l);e.delete(f,f+c.nodeSize)}o+=u.rowspan}}function D2t(e,t){if(!Xi(e))return!1;if(t){const n=$u(e),r=e.tr;if(n.left==0&&n.right==n.map.width)return!1;for(let i=n.right-1;S2t(r,n,i),i!=n.left;i--){const a=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!a)throw RangeError("No table found");n.table=a,n.map=mn.get(a)}t(r)}return!0}function E2t(e,{map:t,table:n,tableStart:r},i){let a=0;for(let l=0;l<i;l++)a+=n.child(l).nodeSize;const o=a+n.child(i).nodeSize,s=e.mapping.maps.length;e.delete(a+r,o+r);for(let l=0,c=i*t.width;l<t.width;l++,c++){const u=t.map[c];if(i>0&&u==t.map[c-t.width]){const f=n.nodeAt(u).attrs;e.setNodeMarkup(e.mapping.slice(s).map(u+r),null,{...f,rowspan:f.rowspan-1}),l+=f.colspan-1}else if(i<t.width&&u==t.map[c+t.width]){const f=n.nodeAt(u),h=f.attrs,m=f.type.create({...h,rowspan:f.attrs.rowspan-1},f.content),g=t.positionAt(i+1,l,n);e.insert(e.mapping.slice(s).map(r+g),m),l+=h.colspan-1}}}function T2t(e,t){if(!Xi(e))return!1;if(t){const n=$u(e),r=e.tr;if(n.top==0&&n.bottom==n.map.height)return!1;for(let i=n.bottom-1;E2t(r,n,i),i!=n.top;i--){const a=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!a)throw RangeError("No table found");n.table=a,n.map=mn.get(n.table)}t(r)}return!0}function A2t(e,t){return function(n,r){if(!Xi(n))return!1;const i=h2(n);if(i.nodeAfter.attrs[e]===t)return!1;if(r){const a=n.tr;n.selection instanceof an?n.selection.forEachCell((o,s)=>{o.attrs[e]!==t&&a.setNodeMarkup(s,null,{...o.attrs,[e]:t})}):a.setNodeMarkup(i.pos,null,{...i.nodeAfter.attrs,[e]:t}),r(a)}return!0}}function z2t(e){return function(t,n){if(!Xi(t))return!1;if(n){const r=mo(t.schema),i=$u(t),a=t.tr,o=i.map.cellsInRect(e=="column"?{left:i.left,top:0,right:i.right,bottom:i.map.height}:e=="row"?{left:0,top:i.top,right:i.map.width,bottom:i.bottom}:i),s=o.map(l=>i.table.nodeAt(l));for(let l=0;l<o.length;l++)s[l].type==r.header_cell&&a.setNodeMarkup(i.tableStart+o[l],r.cell,s[l].attrs);if(a.steps.length==0)for(let l=0;l<o.length;l++)a.setNodeMarkup(i.tableStart+o[l],r.header_cell,s[l].attrs);n(a)}return!0}}function VN(e,t,n){const r=t.map.cellsInRect({left:0,top:0,right:e=="row"?t.map.width:1,bottom:e=="column"?t.map.height:1});for(let i=0;i<r.length;i++){const a=t.table.nodeAt(r[i]);if(a&&a.type!==n.header_cell)return!1}return!0}function eD(e,t){return t=t||{useDeprecatedLogic:!1},t.useDeprecatedLogic?z2t(e):function(n,r){if(!Xi(n))return!1;if(r){const i=mo(n.schema),a=$u(n),o=n.tr,s=VN("row",a,i),l=VN("column",a,i),u=(e==="column"?s:e==="row"?l:!1)?1:0,f=e=="column"?{left:0,top:u,right:1,bottom:a.map.height}:e=="row"?{left:u,top:0,right:a.map.width,bottom:1}:a,h=e=="column"?l?i.cell:i.header_cell:e=="row"?s?i.cell:i.header_cell:i.cell;a.map.cellsInRect(f).forEach(m=>{const g=m+a.tableStart,b=o.doc.nodeAt(g);b&&o.setNodeMarkup(g,h,b.attrs)}),r(o)}return!0}}eD("row",{useDeprecatedLogic:!0});eD("column",{useDeprecatedLogic:!0});eD("cell",{useDeprecatedLogic:!0});function F2t(e,t){if(t<0){const n=e.nodeBefore;if(n)return e.pos-n.nodeSize;for(let r=e.index(-1)-1,i=e.before();r>=0;r--){const a=e.node(-1).child(r),o=a.lastChild;if(o)return i-1-o.nodeSize;i-=a.nodeSize}}else{if(e.index()<e.parent.childCount-1)return e.pos+e.nodeAfter.nodeSize;const n=e.node(-1);for(let r=e.indexAfter(-1),i=e.after();r<n.childCount;r++){const a=n.child(r);if(a.childCount)return i+1;i+=a.nodeSize}}return null}function yG(e){return function(t,n){if(!Xi(t))return!1;const r=F2t(h2(t),e);if(r==null)return!1;if(n){const i=t.doc.resolve(r);n(t.tr.setSelection(Nt.between(i,Kvt(i))).scrollIntoView())}return!0}}function $2t(e,t){const n=e.selection.$anchor;for(let r=n.depth;r>0;r--)if(n.node(r).type.spec.tableRole=="table")return t&&t(e.tr.delete(n.before(r),n.after(r)).scrollIntoView()),!0;return!1}function M2t({allowTableNodeSelection:e=!1}={}){return new Bn({key:Bc,state:{init(){return null},apply(t,n){const r=t.getMeta(Bc);if(r!=null)return r==-1?null:r;if(n==null||!t.docChanged)return n;const{deleted:i,pos:a}=t.mapping.mapResult(n);return i?null:a}},props:{decorations:Xvt,handleDOMEvents:{mousedown:d2t},createSelectionBetween(t){return Bc.getState(t.state)!=null?t.state.selection:null},handleTripleClick:c2t,handleKeyDown:l2t,handlePaste:u2t},appendTransaction(t,n,r){return e2t(r,n2t(r,n),e)}})}const O2t={tokenize:P2t,partial:!0},_G={tokenize:j2t,partial:!0},bG={tokenize:V2t,partial:!0},kG={tokenize:q2t,partial:!0},N2t={tokenize:H2t,partial:!0},wG={tokenize:B2t,previous:xG},vG={tokenize:R2t,previous:CG},Xl={tokenize:I2t,previous:SG},js={},L2t={text:js};let Ku=48;for(;Ku<123;)js[Ku]=Xl,Ku++,Ku===58?Ku=65:Ku===91&&(Ku=97);js[43]=Xl;js[45]=Xl;js[46]=Xl;js[95]=Xl;js[72]=[Xl,vG];js[104]=[Xl,vG];js[87]=[Xl,wG];js[119]=[Xl,wG];function I2t(e,t,n){const r=this;let i,a;return o;function o(f){return!o7(f)||!SG.call(r,r.previous)||tD(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(f))}function s(f){return o7(f)?(e.consume(f),s):f===64?(e.consume(f),l):n(f)}function l(f){return f===46?e.check(N2t,u,c)(f):f===45||f===95||ji(f)?(a=!0,e.consume(f),l):u(f)}function c(f){return e.consume(f),i=!0,l}function u(f){return a&&i&&gi(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function B2t(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!xG.call(r,r.previous)||tD(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(O2t,e.attempt(_G,e.attempt(bG,a),n),n)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function R2t(e,t,n){const r=this;let i="",a=!1;return o;function o(f){return(f===72||f===104)&&CG.call(r,r.previous)&&!tD(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),e.consume(f),s):n(f)}function s(f){if(gi(f)&&i.length<5)return i+=String.fromCodePoint(f),e.consume(f),s;if(f===58){const h=i.toLowerCase();if(h==="http"||h==="https")return e.consume(f),l}return n(f)}function l(f){return f===47?(e.consume(f),a?c:(a=!0,l)):n(f)}function c(f){return f===null||Ik(f)||Cn(f)||Yd(f)||Ov(f)?n(f):e.attempt(_G,e.attempt(bG,u),n)(f)}function u(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function P2t(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),a):n(o)}function a(o){return o===null?n(o):t(o)}}function j2t(e,t,n){let r,i,a;return o;function o(c){return c===46||c===95?e.check(kG,l,s)(c):c===null||Cn(c)||Yd(c)||c!==45&&Ov(c)?l(c):(a=!0,e.consume(c),o)}function s(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),o}function l(c){return i||r||!a?n(c):t(c)}}function V2t(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(kG,t,a)(o):o===null||Cn(o)||Yd(o)?t(o):(e.consume(o),i)}function a(o){return o===41&&r++,e.consume(o),i}}function q2t(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),a):s===93?(e.consume(s),i):s===60||s===null||Cn(s)||Yd(s)?t(s):n(s)}function i(s){return s===null||s===40||s===91||Cn(s)||Yd(s)?t(s):r(s)}function a(s){return gi(s)?o(s):n(s)}function o(s){return s===59?(e.consume(s),r):gi(s)?(e.consume(s),o):n(s)}}function H2t(e,t,n){return r;function r(a){return e.consume(a),i}function i(a){return ji(a)?n(a):t(a)}}function xG(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Cn(e)}function CG(e){return!gi(e)}function SG(e){return!(e===47||o7(e))}function o7(e){return e===43||e===45||e===46||e===95||ji(e)}function tD(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const U2t={tokenize:Q2t,partial:!0};function W2t(){return{document:{[91]:{tokenize:Z2t,continuation:{tokenize:X2t},exit:J2t}},text:{[91]:{tokenize:Y2t},[93]:{add:"after",tokenize:G2t,resolveTo:K2t}}}}function G2t(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!o||!o._balanced)return n(l);const c=Go(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function K2t(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function Y2t(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,o;return s;function s(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),l}function l(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(f){if(a>999||f===93&&!o||f===null||f===91||Cn(f))return n(f);if(f===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return i.includes(Go(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return Cn(f)||(o=!0),a++,e.consume(f),f===92?u:c}function u(f){return f===91||f===92||f===93?(e.consume(f),a++,c):c(f)}}function Z2t(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o=0,s;return l;function l(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(g)}function u(g){if(o>999||g===93&&!s||g===null||g===91||Cn(g))return n(g);if(g===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return a=Go(r.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return Cn(g)||(s=!0),o++,e.consume(g),g===92?f:u}function f(g){return g===91||g===92||g===93?(e.consume(g),o++,u):u(g)}function h(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),i.includes(a)||i.push(a),Yt(e,m,"gfmFootnoteDefinitionWhitespace")):n(g)}function m(g){return t(g)}}function X2t(e,t,n){return e.check(Kg,t,e.attempt(U2t,t,n))}function J2t(e){e.exit("gfmFootnoteDefinition")}function Q2t(e,t,n){const r=this;return Yt(e,i,"gfmFootnoteDefinitionIndent",4+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(a):n(a)}}function e3t(e){let n=(e||{}).singleTilde;const r={tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{[126]:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,s){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let c=l;for(;c--;)if(o[c][0]==="exit"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[c][1].end.offset-o[c][1].start.offset){o[l][1].type="strikethroughSequence",o[c][1].type="strikethroughSequence";const u={type:"strikethrough",start:Object.assign({},o[c][1].start),end:Object.assign({},o[l][1].end)},f={type:"strikethroughText",start:Object.assign({},o[c][1].end),end:Object.assign({},o[l][1].start)},h=[["enter",u,s],["enter",o[c][1],s],["exit",o[c][1],s],["enter",f,s]],m=s.parser.constructs.insideSpan.null;m&&xa(h,h.length,0,Nv(m,o.slice(c+1,l),s)),xa(h,h.length,0,[["exit",f,s],["enter",o[l][1],s],["exit",o[l][1],s],["exit",u,s]]),xa(o,c-1,l-c+3,h),l=c+h.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function a(o,s,l){const c=this.previous,u=this.events;let f=0;return h;function h(g){return c===126&&u[u.length-1][1].type!=="characterEscape"?l(g):(o.enter("strikethroughSequenceTemporary"),m(g))}function m(g){const b=Bk(c);if(g===126)return f>1?l(g):(o.consume(g),f++,m);if(f<2&&!n)return l(g);const C=o.exit("strikethroughSequenceTemporary"),w=Bk(g);return C._open=!w||w===2&&!!b,C._close=!b||b===2&&!!w,s(g)}}}class t3t{constructor(){this.map=[]}add(t,n,r){n3t(this,t,n,r)}consume(t){if(this.map.sort((a,o)=>a[0]-o[0]),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1])),r.push(this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function n3t(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function r3t(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}const i3t={flow:{null:{tokenize:a3t,resolveAll:o3t}}};function a3t(e,t,n){const r=this;let i=0,a=0,o;return s;function s(O){let G=r.events.length-1;for(;G>-1;){const W=r.events[G][1].type;if(W==="lineEnding"||W==="linePrefix")G--;else break}const V=G>-1?r.events[G][1].type:null,Z=V==="tableHead"||V==="tableRow"?_:l;return Z===_&&r.parser.lazy[r.now().line]?n(O):Z(O)}function l(O){return e.enter("tableHead"),e.enter("tableRow"),c(O)}function c(O){return O===124||(o=!0,a+=1),u(O)}function u(O){return O===null?n(O):st(O)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),m):n(O):Jt(O)?Yt(e,u,"whitespace")(O):(a+=1,o&&(o=!1,i+=1),O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),o=!0,u):(e.enter("data"),f(O)))}function f(O){return O===null||O===124||Cn(O)?(e.exit("data"),u(O)):(e.consume(O),O===92?h:f)}function h(O){return O===92||O===124?(e.consume(O),f):f(O)}function m(O){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(O):(e.enter("tableDelimiterRow"),o=!1,Jt(O)?Yt(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):g(O))}function g(O){return O===45||O===58?C(O):O===124?(o=!0,e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),b):A(O)}function b(O){return Jt(O)?Yt(e,C,"whitespace")(O):C(O)}function C(O){return O===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),w):O===45?(a+=1,w(O)):O===null||st(O)?E(O):A(O)}function w(O){return O===45?(e.enter("tableDelimiterFiller"),k(O)):A(O)}function k(O){return O===45?(e.consume(O),k):O===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(O))}function S(O){return Jt(O)?Yt(e,E,"whitespace")(O):E(O)}function E(O){return O===124?g(O):O===null||st(O)?!o||i!==a?A(O):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(O)):A(O)}function A(O){return n(O)}function _(O){return e.enter("tableRow"),T(O)}function T(O){return O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),T):O===null||st(O)?(e.exit("tableRow"),t(O)):Jt(O)?Yt(e,T,"whitespace")(O):(e.enter("data"),$(O))}function $(O){return O===null||O===124||Cn(O)?(e.exit("data"),T(O)):(e.consume(O),O===92?R:$)}function R(O){return O===92||O===124?(e.consume(O),$):$(O)}}function o3t(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,l=0,c,u,f;const h=new t3t;for(;++n<e.length;){const m=e[n],g=m[1];m[0]==="enter"?g.type==="tableHead"?(s=!1,l!==0&&(qN(h,t,l,c,u),u=void 0,l=0),c={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},h.add(n,0,[["enter",c,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,f=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},h.add(n,0,[["enter",u,t]])),i=g.type==="tableDelimiterRow"?2:u?3:1):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],f=c_(h,t,a,i,void 0,f),a=[0,0,0,0]),o[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],f=c_(h,t,a,i,void 0,f)),a=o,o=[a[1],n,0,0])):g.type==="tableHead"?(s=!0,l=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=n,a[1]!==0?(o[0]=o[1],f=c_(h,t,a,i,n,f)):o[1]!==0&&(f=c_(h,t,o,i,n,f)),i=0):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(o[3]=n)}for(l!==0&&qN(h,t,l,c,u),h.consume(t.events),n=-1;++n<t.events.length;){const m=t.events[n];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=r3t(t.events,n))}return e}function c_(e,t,n,r,i,a){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(a.end=Object.assign({},ah(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const l=ah(t.events,n[1]);if(a={type:o,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const c=ah(t.events,n[2]),u=ah(t.events,n[3]),f={type:s,start:Object.assign({},c),end:Object.assign({},u)};if(e.add(n[2],0,[["enter",f,t]]),r!==2){const h=t.events[n[2]],m=t.events[n[3]];if(h[1].end=Object.assign({},m[1].end),h[1].type="chunkText",h[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,b=n[3]-n[2]-1;e.add(g,b,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return i!==void 0&&(a.end=Object.assign({},ah(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function qN(e,t,n,r,i){const a=[],o=ah(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function ah(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const s3t={tokenize:c3t},l3t={text:{[91]:s3t}};function c3t(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),a)}function a(l){return Cn(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):n(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return st(l)?t(l):Jt(l)?e.check({tokenize:u3t},t,n)(l):n(l)}}function u3t(e,t,n){return Yt(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function d3t(e){return fV([L2t,W2t(),e3t(e),i3t,l3t])}function HN(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}const W6="phrasing",G6=["autolink","link","image","label"],f3t={transforms:[b3t],enter:{literalAutolink:p3t,literalAutolinkEmail:K6,literalAutolinkHttp:K6,literalAutolinkWww:K6},exit:{literalAutolink:_3t,literalAutolinkEmail:y3t,literalAutolinkHttp:m3t,literalAutolinkWww:g3t}},h3t={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:W6,notInConstruct:G6},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:W6,notInConstruct:G6},{character:":",before:"[ps]",after:"\\/",inConstruct:W6,notInConstruct:G6}]};function p3t(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function K6(e){this.config.enter.autolinkProtocol.call(this,e)}function m3t(e){this.config.exit.autolinkProtocol.call(this,e)}function g3t(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function y3t(e){this.config.exit.autolinkEmail.call(this,e)}function _3t(e){this.exit(e)}function b3t(e){Jq(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,k3t],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,w3t]],{ignore:["link","linkReference"]})}function k3t(e,t,n,r,i){let a="";if(!DG(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!v3t(n)))return!1;const o=x3t(n+r);if(!o[0])return!1;const s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function w3t(e,t,n,r){return!DG(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function v3t(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function x3t(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=HN(e,"(");let a=HN(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function DG(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Yd(n)||Ov(n))&&(!t||n!==47)}EG.peek=O3t;function C3t(){return{enter:{gfmFootnoteDefinition:D3t,gfmFootnoteDefinitionLabelString:E3t,gfmFootnoteCall:z3t,gfmFootnoteCallString:F3t},exit:{gfmFootnoteDefinition:A3t,gfmFootnoteDefinitionLabelString:T3t,gfmFootnoteCall:M3t,gfmFootnoteCallString:$3t}}}function S3t(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:N3t,footnoteReference:EG}}}function D3t(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function E3t(){this.buffer()}function T3t(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Go(this.sliceSerialize(e)).toLowerCase()}function A3t(e){this.exit(e)}function z3t(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function F3t(){this.buffer()}function $3t(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Go(this.sliceSerialize(e)).toLowerCase()}function M3t(e){this.exit(e)}function EG(e,t,n,r){const i=Lp(r);let a=i.move("[^");const o=n.enter("footnoteReference"),s=n.enter("reference");return a+=i.move(Bv(n,pS(e),{...i.current(),before:a,after:"]"})),s(),o(),a+=i.move("]"),a}function O3t(){return"["}function N3t(e,t,n,r){const i=Lp(r);let a=i.move("[^");const o=n.enter("footnoteDefinition"),s=n.enter("label");return a+=i.move(Bv(n,pS(e),{...i.current(),before:a,after:"]"})),s(),a+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),a+=i.move(VV(jV(e,n,i.current()),L3t)),o(),a}function L3t(e,t,n){return t===0?e:(n?"":" ")+e}const I3t=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];TG.peek=V3t;const B3t={canContainEols:["delete"],enter:{strikethrough:P3t},exit:{strikethrough:j3t}},R3t={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:I3t}],handlers:{delete:TG}};function P3t(e){this.enter({type:"delete",children:[]},e)}function j3t(e){this.exit(e)}function TG(e,t,n,r){const i=Lp(r),a=n.enter("strikethrough");let o=i.move("~~");return o+=mS(e,n,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function V3t(){return"~"}function q3t(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||U3t,i=[],a=[],o=[],s=[];let l=0,c=-1;for(;++c<e.length;){const g=[],b=[];let C=-1;for(e[c].length>l&&(l=e[c].length);++C<e[c].length;){const w=H3t(e[c][C]);if(t.alignDelimiters!==!1){const k=r(w);b[C]=k,(s[C]===void 0||k>s[C])&&(s[C]=k)}g.push(w)}a[c]=g,o[c]=b}let u=-1;if(typeof n=="object"&&"length"in n)for(;++u<l;)i[u]=UN(n[u]);else{const g=UN(n);for(;++u<l;)i[u]=g}u=-1;const f=[],h=[];for(;++u<l;){const g=i[u];let b="",C="";g===99?(b=":",C=":"):g===108?b=":":g===114&&(C=":");let w=t.alignDelimiters===!1?1:Math.max(1,s[u]-b.length-C.length);const k=b+"-".repeat(w)+C;t.alignDelimiters!==!1&&(w=b.length+w+C.length,w>s[u]&&(s[u]=w),h[u]=w),f[u]=k}a.splice(1,0,f),o.splice(1,0,h),c=-1;const m=[];for(;++c<a.length;){const g=a[c],b=o[c];u=-1;const C=[];for(;++u<l;){const w=g[u]||"";let k="",S="";if(t.alignDelimiters!==!1){const E=s[u]-(b[u]||0),A=i[u];A===114?k=" ".repeat(E):A===99?E%2?(k=" ".repeat(E/2+.5),S=" ".repeat(E/2-.5)):(k=" ".repeat(E/2),S=k):S=" ".repeat(E)}t.delimiterStart!==!1&&!u&&C.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&w==="")&&(t.delimiterStart!==!1||u)&&C.push(" "),t.alignDelimiters!==!1&&C.push(k),C.push(w),t.alignDelimiters!==!1&&C.push(S),t.padding!==!1&&C.push(" "),(t.delimiterEnd!==!1||u!==l-1)&&C.push("|")}m.push(t.delimiterEnd===!1?C.join("").replace(/ +$/,""):C.join(""))}return m.join(` -`)}function H3t(e){return e==null?"":String(e)}function U3t(e){return e.length}function UN(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}const W3t={enter:{table:G3t,tableData:WN,tableHeader:WN,tableRow:Y3t},exit:{codeText:Z3t,table:K3t,tableData:Y6,tableHeader:Y6,tableRow:Y6}};function G3t(e){const t=e._align;this.enter({type:"table",align:t.map(n=>n==="none"?null:n),children:[]},e),this.setData("inTable",!0)}function K3t(e){this.exit(e),this.setData("inTable")}function Y3t(e){this.enter({type:"tableRow",children:[]},e)}function Y6(e){this.exit(e)}function WN(e){this.enter({type:"tableCell",children:[]},e)}function Z3t(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,X3t));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)}function X3t(e,t){return t==="|"?t:e}function J3t(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` + `),()=>{document.head.removeChild(c)}},[t]),F.createElement(Ywt,{isPresent:t,childRef:r,sizeRef:i},F.cloneElement(e,{ref:r}))}const H6=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o})=>{const s=WU(Xwt),l=F.useId(),c=F.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:u=>{s.set(u,!0);for(const f of s.values())if(!f)return;r&&r()},register:u=>(s.set(u,!1),()=>s.delete(u))}),a?void 0:[n]);return F.useMemo(()=>{s.forEach((u,f)=>s.set(f,!1))},[n]),F.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),o==="popLayout"&&(e=F.createElement(Zwt,{isPresent:n},e)),F.createElement(i2.Provider,{value:c},e)};function Xwt(){return new Map}function Jwt(e){return F.useEffect(()=>()=>e(),[])}const ih=e=>e.key||"";function Qwt(e,t){e.forEach(n=>{const r=ih(n);t.set(r,n)})}function evt(e){const t=[];return F.Children.forEach(e,n=>{F.isValidElement(n)&&t.push(n)}),t}const XW=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:a=!0,mode:o="sync"})=>{const s=F.useContext(F9).forceRender||Kwt()[0],l=ZW(),c=evt(e);let u=c;const f=F.useRef(new Map).current,h=F.useRef(u),m=F.useRef(new Map).current,g=F.useRef(!0);if(Qk(()=>{g.current=!1,Qwt(c,m),h.current=u}),Jwt(()=>{g.current=!0,m.clear(),f.clear()}),g.current)return F.createElement(F.Fragment,null,u.map(k=>F.createElement(H6,{key:ih(k),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:a,mode:o},k)));u=[...u];const b=h.current.map(ih),C=c.map(ih),w=b.length;for(let k=0;k<w;k++){const S=b[k];C.indexOf(S)===-1&&!f.has(S)&&f.set(S,void 0)}return o==="wait"&&f.size&&(u=[]),f.forEach((k,S)=>{if(C.indexOf(S)!==-1)return;const E=m.get(S);if(!E)return;const A=b.indexOf(S);let _=k;if(!_){const T=()=>{m.delete(S),f.delete(S);const $=h.current.findIndex(R=>R.key===S);if(h.current.splice($,1),!f.size){if(h.current=c,l.current===!1)return;s(),r&&r()}};_=F.createElement(H6,{key:ih(E),isPresent:!1,onExitComplete:T,custom:t,presenceAffectsLayout:a,mode:o},E),f.set(S,_)}u.splice(A,0,_)}),u=u.map(k=>{const S=k.key;return f.has(S)?k:F.createElement(H6,{key:ih(k),isPresent:!0,presenceAffectsLayout:a,mode:o},k)}),F.createElement(F.Fragment,null,f.size?u:u.map(k=>F.cloneElement(k)))},tvt=({animation:e})=>j(nvt,{...e}),nvt=Ae(lw.div).withConfig({displayName:"ModalBackdropStyled"})(["position:fixed;top:0;left:0;z-index:",";width:100%;height:100%;overflow:hidden;background:",";"],e=>e.theme.zIndexes.modal.backdrop,e=>e.theme.components.modal.backdrop.background),sm=e=>({Escape:t=>(e.code==="Escape"&&t(),sm(e)),ArrowUp:t=>(e.code==="ArrowUp"&&t(),sm(e)),ArrowDown:t=>(e.code==="ArrowDown"&&t(),sm(e)),Enter:t=>(e.code==="Enter"&&t(),sm(e))}),JW=({Enter:e,Escape:t,ArrowUp:n,options:r,ArrowDown:i})=>{const{onMount:a=!0,isBodyKeyDownActive:o}=r||{},s=F.useCallback(l=>{sm(l).ArrowUp(()=>n==null?void 0:n(l)).ArrowDown(()=>i==null?void 0:i(l)).Escape(()=>t==null?void 0:t(l)).Enter(()=>e==null?void 0:e(l))},[t,i,n,e]);F.useEffect(()=>{if(a)return document.body.addEventListener("keydown",s),()=>document.body.removeEventListener("keydown",s)},[a,s]),F.useEffect(()=>{if(o)return document.body.addEventListener("keydown",s,!1),()=>document.body.removeEventListener("keydown",s,!1)},[o,s])},rvt=({children:e,animation:t,withCloseIcon:n,closeOnOutsideClick:r,...i})=>{const a=F.useRef(null),o=F.useRef(null),{onClose:s}=Hp();return JW({Escape:s}),j(ivt,{...i,onClick:c=>{const{current:u}=a,{current:f}=o,h=c.target;h.closest("[data-modal]")===f&&!(u!=null&&u.contains(h))&&r&&s()},ref:o,"data-modal":!0,children:j(QW,{...t||{},ref:a,children:He(Gr,{children:[n&&j(eG,{onClick:s,oval:!0,color:"secondary",children:j(ut,{icon:"close"})}),e]})})})},ivt=Ae.div.withConfig({displayName:"ModalContainerStyled"})(["position:fixed;top:0;bottom:0;left:0;z-index:",";display:flex;align-items:center;justify-content:center;width:100%;overflow-y:auto;& > div::before{position:absolute;top:0;right:0;z-index:-1;display:block;width:100%;height:100%;background-color:transparent;transition:0.3s background-color ease;content:'';}&:not(:last-of-type) > div::before{z-index:",";background-color:",";}"],e=>e.theme.zIndexes.modal.container,e=>e.theme.zIndexes.modal.container,e=>e.theme.components.modal.backdrop.background),QW=Ae(lw.div).withConfig({displayName:"ModalBoxStyled"})(["width:100vw;height:100vh;max-height:100vh;overflow:auto;position:relative;display:flex;flex-direction:column;font-size:",";background-color:",";@media (min-width:","){width:",";height:auto;max-height:auto;border-radius:",";box-shadow:0 25px 50px -12px ",";}"],ee(16),e=>e.theme.colors.white,Vt.queries.laptop,ee(480),ee(12),e=>e.theme.components.modal.backdrop.background),eG=Ae(Xt).withConfig({displayName:"CloseButtonStyled"})(["position:absolute;top:",";right:",";padding:",";z-index:2;"],ee(16),ee(16),ee(4)),avt=({isLock:e})=>{F.useEffect(()=>{e?document.body.style.overflow="hidden":document.body.style.overflow="unset"},[e])},zN={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}},ovt={initial:{opacity:0,height:0},animate:{height:"auto",opacity:1},exit:{opacity:0,height:0}},svt={show:{height:"auto",opacity:1,pointerEvents:"auto"},hidden:{height:"0",opacity:0,pointerEvents:"none"}},Y9=({onOpen:e=()=>{},isOpen:t,onClose:n=()=>{},animation:r=zN,withBackdrop:i=!0,withCloseIcon:a=!0,backdropAnimation:o=zN,closeOnOutsideClick:s=!0,...l})=>{avt({isLock:t});const c=document.querySelector(".date-data_text-editor");return c?Op.createPortal(j(Iyt,{onClose:n,isOpen:t,onOpen:e,children:j(XW,{initial:!1,children:t&&He(Gr,{children:[i&&j(tvt,{animation:o}),j(rvt,{...l,animation:r,withCloseIcon:a,closeOnOutsideClick:s})]})})}),c):null},Up=(e=!1)=>{const[t,n]=F.useState(e);return{state:t,on:F.useCallback(()=>n(!0),[]),off:F.useCallback(()=>n(!1),[]),toggle:F.useCallback(()=>n(r=>!r),[])}},lvt=({imageWidth:e,imageHeight:t,...n})=>{const{colors:r}=Kl(),i=Up(),a=t<100||e<100,o=ee(a?0:8),s=ee(a?-38:8);return He(Gr,{children:[j(cvt,{$top:o,$right:s,oval:!0,onClick:c=>{c.preventDefault(),c.stopPropagation(),i.on()},color:"secondary",variant:"contained",space:"small",children:j(ut,{icon:"edit",fill:r.lightBlack})}),j(Y9,{isOpen:i.state,onOpen:i.on,onClose:i.off,children:j(Ryt,{...n})})]})},cvt=Ae(Xt).withConfig({displayName:"ButtonStyled"})(["position:absolute;top:",";right:",";display:flex;align-items:center;"],e=>e.$top,e=>e.$right),uvt={thin:"16px",small:"24px",normal:"36px",large:"60px"},dvt={thin:"2px",small:"2px",normal:"4px",large:"4px"},tG=({size:e="small",loading:t=!0,children:n,className:r,...i})=>t?j(fvt,{"data-test-role":"spinner",className:r,children:j(pvt,{...i,size:e})}):j(Gr,{children:n}),fvt=Ae.div.withConfig({displayName:"ContainerStyled"})(["display:flex;align-items:center;justify-content:center;"]),hvt=PP(["from{transform:rotate(0deg);}to{transform:rotate(360deg);}"]),FN=(e="small")=>uvt[e],i_=(e="small")=>dvt[e],pvt=Ae.div.withConfig({displayName:"SpinnerStyled"})(["width:",";height:",";text-indent:-9999em;border-top:"," solid ",";border-right:"," solid ",";border-bottom:"," solid ",";border-left:"," solid ",";border-radius:50%;animation:0.65s linear "," infinite;"],e=>FN(e.size),e=>FN(e.size),e=>i_(e.size),e=>e.theme.colors.secondaryGrey,e=>i_(e.size),e=>e.theme.colors.secondaryGrey,e=>i_(e.size),e=>e.theme.colors.secondaryGrey,e=>i_(e.size),e=>e.theme.colors.lightGreen,hvt),nG=({children:e,isLoading:t=!0,loaderSize:n="large",className:r="",loaderWidth:i=300,loaderHeight:a=300})=>He(mvt,{className:r,$loading:t,$loaderHeight:a,$loaderWidth:i,children:[j(gvt,{size:n,loading:t}),e]}),mvt=Ae.div.withConfig({displayName:"ImageContainerStyled"})(["position:relative;",""],e=>e.$loading&&Tn(["background-color:",";width:","px;height:","px;"],t=>t.theme.colors.secondaryLightGrey,t=>t.$loaderWidth,t=>t.$loaderHeight)),gvt=Ae(tG).withConfig({displayName:"LoaderStyled"})(["position:absolute;inset:0;"]),rG={image:{size:"File size exceeds 20MB. Rather add a link to larger files if needed.",format:"Unsupported file format. Please upload an appropriate format.",upload:"The image could not be uploaded",not_image:"We can't find or access the image in the URL",google_slides:"Invalid url. Please post a Google Slides link."}},iG=({onLoad:e,children:t,className:n="",loaderHeight:r=300,loaderWidth:i=300,...a})=>{const o=Up(!0),s=F.useRef(null),{onErrorNotification:l}=Xv(),c=()=>{o.off(),l(rG.image.upload)},u=r>150&&i>150?"large":"normal",f=h=>{e==null||e(h),o.off()};return j(yvt,{loaderSize:u,loaderHeight:r,loaderWidth:i,className:n,isLoading:o.state,children:He(Gr,{children:[j(aG,{ref:s,...a,onLoad:f,onError:c}),typeof t=="function"&&t(o.state)]})})},aG=Ae.img.withConfig({displayName:"ImageStyled"})(["aspect-ratio:auto;max-width:",";max-height:",";"],ee(500),ee(500)),yvt=Ae(nG).withConfig({displayName:"ImageLoaderStyled"})(["display:flex;"]),_vt=({src:e,...t})=>j(bvt,{...t,children:j(kvt,{src:e})}),bvt=Ae(Y9).withConfig({displayName:"ControlledModalStyled"})(["","{@media (min-width:","){width:auto;border:"," solid ",";border-radius:0;}}","{svg{width:",";height:",";fill:",";}&:hover{background-color:transparent;}}"],QW,Vt.queries.laptop,ee(4),e=>e.theme.colors.white,eG,ee(30),ee(30),e=>e.theme.colors.white),kvt=Ae(iG).withConfig({displayName:"LightboxImageStyled"})(["height:100%;width:100%;@media (min-width:","){width:auto;height:auto;}","{max-width:100vw;max-height:100vh;@media (min-width:","){max-width:90vw;max-height:90vh;}}"],Vt.queries.laptop,aG,Vt.queries.laptop),wvt=({nodeType:e})=>{const{view:t,getPos:n}=es(),{editor:r,loading:i}=li(),{state:{selection:a}}=t,o=F.useMemo(()=>{if(i||!r||r.status!==fn.Created)return;const{ctx:c}=r;return fq(a,e(c))},[a,e,r,i]),s=F.useMemo(()=>n(),[n]);return{isSelected:F.useMemo(()=>(o==null?void 0:o.pos)===s,[o,s])}},vvt=()=>{const[e,t]=F.useState({width:0,height:0}),{mode:n}=ta(),{isSelected:r}=wvt({nodeType:zu.type}),{node:i,contentRef:a,setAttrs:o}=es(),{attrs:s}=i,{editor:l,loading:c}=li(),u=Up(),f=({alt:C,title:w})=>{o({alt:C,title:w})},h=()=>{c||!l||l.status!==fn.Created||l.action(C=>{const w=C.get(ai),{state:k}=w;w.dispatch(k.tr.deleteSelection())})},m=({currentTarget:C})=>{const{naturalHeight:w,naturalWidth:k}=C;t({width:k,height:w})},g=s.alt||"",b=s.title||"";return j(xvt,{ref:a,$isSelected:r,children:s.src&&He(Gr,{children:[j(Cvt,{src:s.src,onClick:u.on,onLoad:m,alt:g,title:b,children:C=>j(Gr,{children:n==="active"&&!C&&j(lvt,{imageHeight:e.height,imageWidth:e.width,onImageRemove:h,onImageEdit:f,alt:g,title:b})})}),j(_vt,{src:s.src,onOpen:u.on,isOpen:u.state,onClose:u.off})]})})},xvt=Ae.div.withConfig({displayName:"ImageNodeContainerStyled"})(["position:relative;display:inline-flex;margin-bottom:",";outline-offset:",";outline:"," solid ",";transition:outline-color 0.2s ease-in;"],ee(16),ee(2),ee(2),e=>e.$isSelected?e.theme.colors.lightBlack:"transparent"),Cvt=Ae(iG).withConfig({displayName:"ImageStyled"})(["cursor:pointer;transition:opacity 0.1s ease-in;&:hover{opacity:0.9;}"]),Svt=/^http.*\.(jpeg|jpg|gif|png|tiff|bmp|eps|svg)$/,Dvt=()=>{const{node:e}=es(),{attrs:t}=e;return t.src.match(Svt)!==null||t.src.includes("data:image/")?j(vvt,{}):j(_1t,{})},Evt=()=>{const{view:e}=Fv(),{state:t}=e,{selection:n}=t,r=t.doc.nodeAt(n.from),i=r==null?void 0:r.marks.find(a=>a.type.name==="link");return{href:kh(i==null?void 0:i.attrs.href).getOrElse(()=>""),title:kh(i==null?void 0:i.attrs.title).getOrElse(()=>"")}},oG=F.forwardRef(({oval:e=!1,space:t="no",color:n="primary",variant:r="text",children:i,target:a="_blank",...o},s)=>j(Avt,{ref:s,target:a,$space:t,$color:n,$variant:r,$oval:e,...o,children:i})),a_=e=>qp(e).match("button",()=>({bg:{primary:"transparent"},border:{primary:Vt.colors.green},color:{primary:Vt.colors.green}})).getOrElse(()=>({bg:{primary:"transparent"},border:{primary:"transparent"},color:{primary:Vt.colors.green}})),ll=e=>qp(e).match("button",()=>({idle:{bg:{primary:"transparent"},border:{primary:"transparent"},color:{primary:Vt.colors.lightBlack}},hover:a_(e),focus:a_(e)})).getOrElse(()=>({idle:{bg:{primary:"transparent"},border:{primary:"transparent"},color:{primary:Vt.colors.lightBlack}},hover:a_(e),focus:a_(e)})),Tvt={no:0,thin:ee(4),small:ee(7),normal:`${ee(10)} ${ee(16)};`},Avt=Ae.a.withConfig({displayName:"AnchorStyled"})(["background-color:",";border:1px solid ",";color:",";outline:0;cursor:pointer;transition:background-color 0.2s ease-in,border-color 0.2s ease-in,color 0.2s ease-in;padding:",";",";"," &:hover{color:",";background-color:",";border:1px solid ",";}&:focus{color:",";background-color:",";border:1px solid ",";}"],e=>ll(e.$variant).idle.bg[e.$color],e=>ll(e.$variant).idle.border[e.$color],e=>ll(e.$variant).idle.color[e.$color],e=>Tvt[e.$space],e=>e.$variant==="button"&&Tn(["display:flex;align-items:center;justify-content:center;"]),e=>e.$oval&&Tn(["border-radius:",";"],ee(8)),e=>ll(e.$variant).hover.color[e.$color],e=>ll(e.$variant).hover.bg[e.$color],e=>ll(e.$variant).hover.border[e.$color],e=>ll(e.$variant).focus.color[e.$color],e=>ll(e.$variant).focus.bg[e.$color],e=>ll(e.$variant).focus.border[e.$color]),Z9=()=>{const{getNodesByMark:e}=aU(),t=F.useCallback((r,i)=>{const{state:a}=r;return e(a.doc,i).map(o=>({end:o.pos+o.node.nodeSize,start:o.pos,text:o.node.text??""}))},[e]);return{getSelectedMarkPosition:F.useCallback((r,i)=>{const{state:a}=r,{selection:o}=a;return t(r,i).find(({start:s,end:l})=>o.from>s&&o.to<l)},[t]),getNodesPositions:t}};var $N=function(e,t,n){if(e&&"reportValidity"in e){var r=rt(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},sG=function(e,t){var n=function(i){var a=t.fields[i];a&&a.ref&&"reportValidity"in a.ref?$N(a.ref,i,e):a.refs&&a.refs.forEach(function(o){return $N(o,i,e)})};for(var r in t.fields)n(r)},zvt=function(e,t){t.shouldUseNativeValidation&&sG(e,t);var n={};for(var r in e){var i=rt(t.fields,r);En(n,r,Object.assign(e[r],{ref:i&&i.ref}))}return n},X9=function(e,t,n){return t===void 0&&(t={}),n===void 0&&(n={}),function(r,i,a){try{return Promise.resolve(function(o,s){try{var l=(t.context,Promise.resolve(e[n.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then(function(c){return a.shouldUseNativeValidation&&sG({},a),{values:n.rawValues?r:c,errors:{}}}))}catch(c){return s(c)}return l&&l.then?l.then(void 0,s):l}(0,function(o){if(!o.inner)throw o;return{values:{},errors:zvt((s=o,l=!a.shouldUseNativeValidation&&a.criteriaMode==="all",(s.inner||[]).reduce(function(c,u){if(c[u.path]||(c[u.path]={message:u.message,type:u.type}),l){var f=c[u.path].types,h=f&&f[u.type];c[u.path]=mU(u.path,l,c,u.type,h?[].concat(h,u.message):u.message)}return c},{})),a)};var s,l}))}catch(o){return Promise.reject(o)}}};const Fvt=d1().shape({href:Jd().required("This value is required"),text:Jd()}).required(),$vt=({text:e,href:t})=>Jv({mode:"onChange",resolver:X9(Fvt),defaultValues:{href:t,text:e}}),lG=Ae.div.withConfig({displayName:"ModalHeader"})(["padding:"," "," ",";color:",";font-size:",";line-height:",";font-weight:500;"],ee(24),ee(24),ee(12),e=>e.theme.colors.lightBlack,ee(21),ee(27)),cG=()=>{const{getSelectedMarkPosition:e}=Z9(),{editor:t,loading:n}=li(),r=F.useCallback((a,{href:o,text:s})=>{if(n||!t||t.status!==fn.Created)return;const{ctx:l}=t,{state:c}=a,u=co.type(l).create({href:o}),f=c.schema.text(s||o).mark([u]);return c.tr.replaceSelectionWith(f,!1)},[n,t]),i=F.useCallback((a,{href:o,text:s})=>{if(n||!t||t.status!==fn.Created)return;const{ctx:l}=t,{state:c}=a,u=l&&e(a,co.type(l));if(u){const f=co.type(l).create({href:o}),h=c.schema.text(s||o).mark([f]);return c.tr.replaceRangeWith(u.start,u.end,h)}},[e,t,n]);return{getLinkCreationTransaction:r,getLinkUpdateTransaction:i}},Mvt=({text:e="",href:t="",editable:n,onSubmit:r})=>{var C,w;const{onClose:i}=Hp(),{editor:a,loading:o}=li(),{formState:s,register:l,handleSubmit:c}=$vt({text:e,href:t}),{getSelectedMarkPosition:u}=Z9(),{getLinkCreationTransaction:f,getLinkUpdateTransaction:h}=cG(),m=k=>{r==null||r(),a&&!o&&a.status===fn.Created&&a.action(S=>{const E=S.get(ai);if(n){const A=h(E,k);A&&E.dispatch(A)}else{const A=f(E,k);A&&E.dispatch(A)}i()})},g=()=>{a&&!o&&a.status===fn.Created&&a.action(k=>{const S=k.get(ai),E=u(S,co.type(k));E&&S.dispatch(S.state.tr.deleteRange(E.start,E.end)),i()})},b=n?"Edit a link":"Add a link";return He("form",{onSubmit:c(m),children:[j(lG,{children:b}),He(f1,{children:[j(kp,{...l("text"),label:"Text",error:(C=s.errors.text)==null?void 0:C.message,placeholder:"Optional"}),j(kp,{label:"Link",placeholder:"Paste a link",required:!0,...l("href"),error:(w=s.errors.href)==null?void 0:w.message})]}),He(Ovt,{children:[n&&j(Xt,{oval:!0,onClick:g,color:"danger",variant:"outlined",children:"Remove link"}),j(Nvt,{isDisabled:!s.isValid,saveButtonType:"submit"})]})]})},Ovt=Ae(T9).withConfig({displayName:"ModalFooterStyled"})(["display:flex;align-items:center;"]),Nvt=Ae(n2).withConfig({displayName:"ModalActionsStyled"})(["margin-left:auto;"]),J9=({handler:e,onModalOpen:t,onModalClose:n,...r})=>{const{state:i,on:a,off:o}=Up(!1),s=F.useCallback(()=>{t==null||t(),a()},[t,a]),l=F.useCallback(()=>{n==null||n(),o()},[n,o]);return He(Gr,{children:[j(e,{onOpen:s}),j(Y9,{isOpen:i,onOpen:s,onClose:l,...r})]})},f2=({handler:e,onModalOpen:t,onModalClose:n,...r})=>j(J9,{handler:e,onModalOpen:t,onModalClose:n,children:j(Mvt,{...r})}),Lvt=()=>{const{colors:e}=Kl(),t=F.useRef(null),n=F.useRef(),[r,i]=F.useState(""),{editor:a,loading:o}=li(),{view:s,prevState:l}=Fv(),{mode:c}=ta(),{getSelectedMarkPosition:u}=Z9(),{href:f}=Evt();return F.useEffect(()=>{if(t.current&&!n.current&&!o&&a&&a.status===fn.Created){const h=new AH({content:t.current,tippyOptions:{zIndex:30,arrow:!0,placement:"bottom"},shouldShow:m=>{if(o||!a||a.status!==fn.Created)return!1;const{ctx:g}=a,{selection:b}=m.state,C=g&&u(m,co.type(g));return b instanceof Nt&&C?(i(C.text),!0):!1}});n.current=h}return()=>{var h;(h=n.current)==null||h.destroy()}},[a,u,c,o]),F.useEffect(()=>{var h;(h=n.current)==null||h.update(s,l)}),c==="preview"?null:j("div",{style:{display:"none"},children:He(Ivt,{ref:t,children:[j(Bvt,{children:f}),j(f2,{editable:!0,text:r,href:f,handler:({onOpen:h})=>j(Rvt,{oval:!0,onClick:h,space:"small",children:j(ut,{icon:"edit",fill:e.white})})}),j(Pvt,{href:f,target:"_blank",variant:"button",space:"small",oval:!0,children:j(ut,{icon:"export"})})]})})},Ivt=Ae.div.withConfig({displayName:"LinkTooltipStyled"})(["display:flex;align-items:center;padding:"," "," "," ",";background-color:",";border-radius:",";"],ee(6),ee(8),ee(6),ee(14),e=>e.theme.colors.lightBlack,ee(8)),Bvt=Ae.span.withConfig({displayName:"LinkTextStyled"})(["overflow:hidden;color:",";font-size:",";text-overflow:ellipsis;white-space:nowrap;text-decoration:underline;"],e=>e.theme.colors.white,ee(14)),Rvt=Ae(Xt).withConfig({displayName:"ButtonStyled"})(["margin-left:",";margin-right:",";&:hover,&:focus{background-color:transparent;border-color:",";}"],ee(6),ee(2),e=>e.theme.colors.green),Pvt=Ae(oG).withConfig({displayName:"AnchorStyled"})(["&:hover,&:focus{background-color:transparent;}"]),MN=zH("HYPERLINK"),uG=Lt("WrapEntireInBulletListCommand",e=>()=>FH(df.type(e))),dG=Lt("WrapEntireInOrderedListCommand",e=>()=>FH(ff.type(e))),jvt=()=>{const e=aS(),t=pgt(),n=oS();return F.useMemo(()=>[sgt,MN,i=>()=>{i.set(MN.key,{view:n({component:Lvt})})},jk(Pp.node,()=>e({component:l1t,as:"div"})),jk(zu.node,()=>e({component:Dvt,as:"div"})),t,uG,dG].flat(),[n,e,t])},Vvt=()=>{const{loading:e,editor:t}=li(),{mode:n}=ta();F.useEffect(()=>{const r=async()=>{e||!t||t.status!==fn.Created||(t.use([i=>()=>{i.update(zm,a=>({...a,editable:()=>n==="active"}))}].flat()),await t.create())};requestAnimationFrame(()=>{r()})},[e,t,n])};var t7,n7;if(typeof WeakMap<"u"){let e=new WeakMap;t7=t=>e.get(t),n7=(t,n)=>(e.set(t,n),n)}else{const e=[];let n=0;t7=r=>{for(let i=0;i<e.length;i+=2)if(e[i]==r)return e[i+1]},n7=(r,i)=>(n==10&&(n=0),e[n++]=r,e[n++]=i)}var mn=class{constructor(e,t,n,r){this.width=e,this.height=t,this.map=n,this.problems=r}findCell(e){for(let t=0;t<this.map.length;t++){const n=this.map[t];if(n!=e)continue;const r=t%this.width,i=t/this.width|0;let a=r+1,o=i+1;for(let s=1;a<this.width&&this.map[t+s]==n;s++)a++;for(let s=1;o<this.height&&this.map[t+this.width*s]==n;s++)o++;return{left:r,top:i,right:a,bottom:o}}throw new RangeError(`No cell with offset ${e} found`)}colCount(e){for(let t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw new RangeError(`No cell with offset ${e} found`)}nextCell(e,t,n){const{left:r,right:i,top:a,bottom:o}=this.findCell(e);return t=="horiz"?(n<0?r==0:i==this.width)?null:this.map[a*this.width+(n<0?r-1:i)]:(n<0?a==0:o==this.height)?null:this.map[r+this.width*(n<0?a-1:o)]}rectBetween(e,t){const{left:n,right:r,top:i,bottom:a}=this.findCell(e),{left:o,right:s,top:l,bottom:c}=this.findCell(t);return{left:Math.min(n,o),top:Math.min(i,l),right:Math.max(r,s),bottom:Math.max(a,c)}}cellsInRect(e){const t=[],n={};for(let r=e.top;r<e.bottom;r++)for(let i=e.left;i<e.right;i++){const a=r*this.width+i,o=this.map[a];n[o]||(n[o]=!0,!(i==e.left&&i&&this.map[a-1]==o||r==e.top&&r&&this.map[a-this.width]==o)&&t.push(o))}return t}positionAt(e,t,n){for(let r=0,i=0;;r++){const a=i+n.child(r).nodeSize;if(r==e){let o=t+e*this.width;const s=(e+1)*this.width;for(;o<s&&this.map[o]<i;)o++;return o==s?a-1:this.map[o]}i=a}}static get(e){return t7(e)||n7(e,qvt(e))}};function qvt(e){if(e.type.spec.tableRole!="table")throw new RangeError("Not a table node: "+e.type.name);const t=Hvt(e),n=e.childCount,r=[];let i=0,a=null;const o=[];for(let c=0,u=t*n;c<u;c++)r[c]=0;for(let c=0,u=0;c<n;c++){const f=e.child(c);u++;for(let g=0;;g++){for(;i<r.length&&r[i]!=0;)i++;if(g==f.childCount)break;const b=f.child(g),{colspan:C,rowspan:w,colwidth:k}=b.attrs;for(let S=0;S<w;S++){if(S+c>=n){(a||(a=[])).push({type:"overlong_rowspan",pos:u,n:w-S});break}const E=i+S*t;for(let A=0;A<C;A++){r[E+A]==0?r[E+A]=u:(a||(a=[])).push({type:"collision",row:c,pos:u,n:C-A});const _=k&&k[A];if(_){const T=(E+A)%t*2,$=o[T];$==null||$!=_&&o[T+1]==1?(o[T]=_,o[T+1]=1):$==_&&o[T+1]++}}}i+=C,u+=b.nodeSize}const h=(c+1)*t;let m=0;for(;i<h;)r[i++]==0&&m++;m&&(a||(a=[])).push({type:"missing",row:c,n:m}),u++}const s=new mn(t,n,r,a);let l=!1;for(let c=0;!l&&c<o.length;c+=2)o[c]!=null&&o[c+1]<n&&(l=!0);return l&&Uvt(s,o,e),s}function Hvt(e){let t=-1,n=!1;for(let r=0;r<e.childCount;r++){const i=e.child(r);let a=0;if(n)for(let o=0;o<r;o++){const s=e.child(o);for(let l=0;l<s.childCount;l++){const c=s.child(l);o+c.attrs.rowspan>r&&(a+=c.attrs.colspan)}}for(let o=0;o<i.childCount;o++){const s=i.child(o);a+=s.attrs.colspan,s.attrs.rowspan>1&&(n=!0)}t==-1?t=a:t!=a&&(t=Math.max(t,a))}return t}function Uvt(e,t,n){e.problems||(e.problems=[]);const r={};for(let i=0;i<e.map.length;i++){const a=e.map[i];if(r[a])continue;r[a]=!0;const o=n.nodeAt(a);if(!o)throw new RangeError(`No cell with offset ${a} found`);let s=null;const l=o.attrs;for(let c=0;c<l.colspan;c++){const u=(i+c)%e.width,f=t[u*2];f!=null&&(!l.colwidth||l.colwidth[c]!=f)&&((s||(s=Wvt(l)))[c]=f)}s&&e.problems.unshift({type:"colwidth mismatch",pos:a,colwidth:s})}}function Wvt(e){if(e.colwidth)return e.colwidth.slice();const t=[];for(let n=0;n<e.colspan;n++)t.push(0);return t}function ON(e,t){if(typeof e=="string")return{};const n=e.getAttribute("data-colwidth"),r=n&&/^\d+(,\d+)*$/.test(n)?n.split(",").map(o=>Number(o)):null,i=Number(e.getAttribute("colspan")||1),a={colspan:i,rowspan:Number(e.getAttribute("rowspan")||1),colwidth:r&&r.length==i?r:null};for(const o in t){const s=t[o].getFromDOM,l=s&&s(e);l!=null&&(a[o]=l)}return a}function NN(e,t){const n={};e.attrs.colspan!=1&&(n.colspan=e.attrs.colspan),e.attrs.rowspan!=1&&(n.rowspan=e.attrs.rowspan),e.attrs.colwidth&&(n["data-colwidth"]=e.attrs.colwidth.join(","));for(const r in t){const i=t[r].setDOMAttr;i&&i(e.attrs[r],n)}return n}function Gvt(e){const t=e.cellAttributes||{},n={colspan:{default:1},rowspan:{default:1},colwidth:{default:null}};for(const r in t)n[r]={default:t[r].default};return{table:{content:"table_row+",tableRole:"table",isolating:!0,group:e.tableGroup,parseDOM:[{tag:"table"}],toDOM(){return["table",["tbody",0]]}},table_row:{content:"(table_cell | table_header)*",tableRole:"row",parseDOM:[{tag:"tr"}],toDOM(){return["tr",0]}},table_cell:{content:e.cellContent,attrs:n,tableRole:"cell",isolating:!0,parseDOM:[{tag:"td",getAttrs:r=>ON(r,t)}],toDOM(r){return["td",NN(r,t),0]}},table_header:{content:e.cellContent,attrs:n,tableRole:"header_cell",isolating:!0,parseDOM:[{tag:"th",getAttrs:r=>ON(r,t)}],toDOM(r){return["th",NN(r,t),0]}}}}function mo(e){let t=e.cached.tableNodeTypes;if(!t){t=e.cached.tableNodeTypes={};for(const n in e.nodes){const r=e.nodes[n],i=r.spec.tableRole;i&&(t[i]=r)}}return t}var Bc=new Fn("selectingCells");function y1(e){for(let t=e.depth-1;t>0;t--)if(e.node(t).type.spec.tableRole=="row")return e.node(0).resolve(e.before(t+1));return null}function Xi(e){const t=e.selection.$head;for(let n=t.depth;n>0;n--)if(t.node(n).type.spec.tableRole=="row")return!0;return!1}function h2(e){const t=e.selection;if("$anchorCell"in t&&t.$anchorCell)return t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell;if("node"in t&&t.node&&t.node.type.spec.tableRole=="cell")return t.$anchor;const n=y1(t.$head)||Kvt(t.$head);if(n)return n;throw new RangeError(`No cell found around position ${t.head}`)}function Kvt(e){for(let t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){const r=t.type.spec.tableRole;if(r=="cell"||r=="header_cell")return e.doc.resolve(n)}for(let t=e.nodeBefore,n=e.pos;t;t=t.lastChild,n--){const r=t.type.spec.tableRole;if(r=="cell"||r=="header_cell")return e.doc.resolve(n-t.nodeSize)}}function r7(e){return e.parent.type.spec.tableRole=="row"&&!!e.nodeAfter}function Yvt(e){return e.node(0).resolve(e.pos+e.nodeAfter.nodeSize)}function Q9(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function fG(e,t,n){const r=e.node(-1),i=mn.get(r),a=e.start(-1),o=i.nextCell(e.pos-a,t,n);return o==null?null:e.node(0).resolve(a+o)}function Qd(e,t,n=1){const r={...e,colspan:e.colspan-n};return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(t,n),r.colwidth.some(i=>i>0)||(r.colwidth=null)),r}function Zvt(e,t,n=1){const r={...e,colspan:e.colspan+n};if(r.colwidth){r.colwidth=r.colwidth.slice();for(let i=0;i<n;i++)r.colwidth.splice(t,0,0)}return r}function Xvt(e,t,n){const r=mo(t.type.schema).header_cell;for(let i=0;i<e.height;i++)if(t.nodeAt(e.map[n+i*e.width]).type!=r)return!1;return!0}var an=class extends $t{constructor(e,t=e){const n=e.node(-1),r=mn.get(n),i=e.start(-1),a=r.rectBetween(e.pos-i,t.pos-i),o=e.node(0),s=r.cellsInRect(a).filter(c=>c!=t.pos-i);s.unshift(t.pos-i);const l=s.map(c=>{const u=n.nodeAt(c);if(!u)throw RangeError(`No cell with offset ${c} found`);const f=i+c+1;return new yj(o.resolve(f),o.resolve(f+u.content.size))});super(l[0].$from,l[0].$to,l),this.$anchorCell=e,this.$headCell=t}map(e,t){const n=e.resolve(t.map(this.$anchorCell.pos)),r=e.resolve(t.map(this.$headCell.pos));if(r7(n)&&r7(r)&&Q9(n,r)){const i=this.$anchorCell.node(-1)!=n.node(-1);return i&&this.isRowSelection()?an.rowSelection(n,r):i&&this.isColSelection()?an.colSelection(n,r):new an(n,r)}return Nt.between(n,r)}content(){const e=this.$anchorCell.node(-1),t=mn.get(e),n=this.$anchorCell.start(-1),r=t.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),i={},a=[];for(let s=r.top;s<r.bottom;s++){const l=[];for(let c=s*t.width+r.left,u=r.left;u<r.right;u++,c++){const f=t.map[c];if(i[f])continue;i[f]=!0;const h=t.findCell(f);let m=e.nodeAt(f);if(!m)throw RangeError(`No cell with offset ${f} found`);const g=r.left-h.left,b=h.right-r.right;if(g>0||b>0){let C=m.attrs;if(g>0&&(C=Qd(C,0,g)),b>0&&(C=Qd(C,C.colspan-b,b)),h.left<r.left){if(m=m.type.createAndFill(C),!m)throw RangeError(`Could not create cell with attrs ${JSON.stringify(C)}`)}else m=m.type.create(C,m.content)}if(h.top<r.top||h.bottom>r.bottom){const C={...m.attrs,rowspan:Math.min(h.bottom,r.bottom)-Math.max(h.top,r.top)};h.top<r.top?m=m.type.createAndFill(C):m=m.type.create(C,m.content)}l.push(m)}a.push(e.child(s).copy(Ee.from(l)))}const o=this.isColSelection()&&this.isRowSelection()?e:a;return new Ue(Ee.from(o),1,1)}replace(e,t=Ue.empty){const n=e.steps.length,r=this.ranges;for(let a=0;a<r.length;a++){const{$from:o,$to:s}=r[a],l=e.mapping.slice(n);e.replace(l.map(o.pos),l.map(s.pos),a?Ue.empty:t)}const i=$t.findFrom(e.doc.resolve(e.mapping.slice(n).map(this.to)),-1);i&&e.setSelection(i)}replaceWith(e,t){this.replace(e,new Ue(Ee.from(t),0,0))}forEachCell(e){const t=this.$anchorCell.node(-1),n=mn.get(t),r=this.$anchorCell.start(-1),i=n.cellsInRect(n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r));for(let a=0;a<i.length;a++)e(t.nodeAt(i[a]),r+i[a])}isColSelection(){const e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);if(Math.min(e,t)>0)return!1;const n=e+this.$anchorCell.nodeAfter.attrs.rowspan,r=t+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,r)==this.$headCell.node(-1).childCount}static colSelection(e,t=e){const n=e.node(-1),r=mn.get(n),i=e.start(-1),a=r.findCell(e.pos-i),o=r.findCell(t.pos-i),s=e.node(0);return a.top<=o.top?(a.top>0&&(e=s.resolve(i+r.map[a.left])),o.bottom<r.height&&(t=s.resolve(i+r.map[r.width*(r.height-1)+o.right-1]))):(o.top>0&&(t=s.resolve(i+r.map[o.left])),a.bottom<r.height&&(e=s.resolve(i+r.map[r.width*(r.height-1)+a.right-1]))),new an(e,t)}isRowSelection(){const e=this.$anchorCell.node(-1),t=mn.get(e),n=this.$anchorCell.start(-1),r=t.colCount(this.$anchorCell.pos-n),i=t.colCount(this.$headCell.pos-n);if(Math.min(r,i)>0)return!1;const a=r+this.$anchorCell.nodeAfter.attrs.colspan,o=i+this.$headCell.nodeAfter.attrs.colspan;return Math.max(a,o)==t.width}eq(e){return e instanceof an&&e.$anchorCell.pos==this.$anchorCell.pos&&e.$headCell.pos==this.$headCell.pos}static rowSelection(e,t=e){const n=e.node(-1),r=mn.get(n),i=e.start(-1),a=r.findCell(e.pos-i),o=r.findCell(t.pos-i),s=e.node(0);return a.left<=o.left?(a.left>0&&(e=s.resolve(i+r.map[a.top*r.width])),o.right<r.width&&(t=s.resolve(i+r.map[r.width*(o.top+1)-1]))):(o.left>0&&(t=s.resolve(i+r.map[o.top*r.width])),a.right<r.width&&(e=s.resolve(i+r.map[r.width*(a.top+1)-1]))),new an(e,t)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(e,t){return new an(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,n=t){return new an(e.resolve(t),e.resolve(n))}getBookmark(){return new hG(this.$anchorCell.pos,this.$headCell.pos)}};an.prototype.visible=!1;$t.jsonID("cell",an);var hG=class{constructor(e,t){this.anchor=e,this.head=t}map(e){return new hG(e.map(this.anchor),e.map(this.head))}resolve(e){const t=e.resolve(this.anchor),n=e.resolve(this.head);return t.parent.type.spec.tableRole=="row"&&n.parent.type.spec.tableRole=="row"&&t.index()<t.parent.childCount&&n.index()<n.parent.childCount&&Q9(t,n)?new an(t,n):$t.near(n,1)}};function Jvt(e){if(!(e.selection instanceof an))return null;const t=[];return e.selection.forEachCell((n,r)=>{t.push($r.node(r,r+n.nodeSize,{class:"selectedCell"}))}),en.create(e.doc,t)}function Qvt({$from:e,$to:t}){if(e.pos==t.pos||e.pos<e.pos-6)return!1;let n=e.pos,r=t.pos,i=e.depth;for(;i>=0&&!(e.after(i+1)<e.end(i));i--,n++);for(let a=t.depth;a>=0&&!(t.before(a+1)>t.start(a));a--,r--);return n==r&&/row|table/.test(e.node(i).type.spec.tableRole)}function e2t({$from:e,$to:t}){let n,r;for(let i=e.depth;i>0;i--){const a=e.node(i);if(a.type.spec.tableRole==="cell"||a.type.spec.tableRole==="header_cell"){n=a;break}}for(let i=t.depth;i>0;i--){const a=t.node(i);if(a.type.spec.tableRole==="cell"||a.type.spec.tableRole==="header_cell"){r=a;break}}return n!==r&&t.parentOffset===0}function t2t(e,t,n){const r=(t||e).selection,i=(t||e).doc;let a,o;if(r instanceof Mt&&(o=r.node.type.spec.tableRole)){if(o=="cell"||o=="header_cell")a=an.create(i,r.from);else if(o=="row"){const s=i.resolve(r.from+1);a=an.rowSelection(s,s)}else if(!n){const s=mn.get(r.node),l=r.from+1,c=l+s.map[s.width*s.height-1];a=an.create(i,l+1,c)}}else r instanceof Nt&&Qvt(r)?a=Nt.create(i,r.from):r instanceof Nt&&e2t(r)&&(a=Nt.create(i,r.$from.start(),r.$from.end()));return a&&(t||(t=e.tr)).setSelection(a),t}var n2t=new Fn("fix-tables");function pG(e,t,n,r){const i=e.childCount,a=t.childCount;e:for(let o=0,s=0;o<a;o++){const l=t.child(o);for(let c=s,u=Math.min(i,o+3);c<u;c++)if(e.child(c)==l){s=c+1,n+=l.nodeSize;continue e}r(l,n),s<i&&e.child(s).sameMarkup(l)?pG(e.child(s),l,n+1,r):l.nodesBetween(0,l.content.size,r,n+1),n+=l.nodeSize}}function r2t(e,t){let n;const r=(i,a)=>{i.type.spec.tableRole=="table"&&(n=i2t(e,i,a,n))};return t?t.doc!=e.doc&&pG(t.doc,e.doc,0,r):e.doc.descendants(r),n}function i2t(e,t,n,r){const i=mn.get(t);if(!i.problems)return r;r||(r=e.tr);const a=[];for(let l=0;l<i.height;l++)a.push(0);for(let l=0;l<i.problems.length;l++){const c=i.problems[l];if(c.type=="collision"){const u=t.nodeAt(c.pos);if(!u)continue;const f=u.attrs;for(let h=0;h<f.rowspan;h++)a[c.row+h]+=c.n;r.setNodeMarkup(r.mapping.map(n+1+c.pos),null,Qd(f,f.colspan-c.n,c.n))}else if(c.type=="missing")a[c.row]+=c.n;else if(c.type=="overlong_rowspan"){const u=t.nodeAt(c.pos);if(!u)continue;r.setNodeMarkup(r.mapping.map(n+1+c.pos),null,{...u.attrs,rowspan:u.attrs.rowspan-c.n})}else if(c.type=="colwidth mismatch"){const u=t.nodeAt(c.pos);if(!u)continue;r.setNodeMarkup(r.mapping.map(n+1+c.pos),null,{...u.attrs,colwidth:c.colwidth})}}let o,s;for(let l=0;l<a.length;l++)a[l]&&(o==null&&(o=l),s=l);for(let l=0,c=n+1;l<i.height;l++){const u=t.child(l),f=c+u.nodeSize,h=a[l];if(h>0){let m="cell";u.firstChild&&(m=u.firstChild.type.spec.tableRole);const g=[];for(let C=0;C<h;C++){const w=mo(e.schema)[m].createAndFill();w&&g.push(w)}const b=(l==0||o==l-1)&&s==l?c+1:f-1;r.insert(r.mapping.map(b),g)}c=f}return r.setMeta(n2t,{fixTables:!0})}function a2t(e){if(!e.size)return null;let{content:t,openStart:n,openEnd:r}=e;for(;t.childCount==1&&(n>0&&r>0||t.child(0).type.spec.tableRole=="table");)n--,r--,t=t.child(0).content;const i=t.child(0),a=i.type.spec.tableRole,o=i.type.schema,s=[];if(a=="row")for(let l=0;l<t.childCount;l++){let c=t.child(l).content;const u=l?0:Math.max(0,n-1),f=l<t.childCount-1?0:Math.max(0,r-1);(u||f)&&(c=i7(mo(o).row,new Ue(c,u,f)).content),s.push(c)}else if(a=="cell"||a=="header_cell")s.push(n||r?i7(mo(o).row,new Ue(t,n,r)).content:t);else return null;return o2t(o,s)}function o2t(e,t){const n=[];for(let i=0;i<t.length;i++){const a=t[i];for(let o=a.childCount-1;o>=0;o--){const{rowspan:s,colspan:l}=a.child(o).attrs;for(let c=i;c<i+s;c++)n[c]=(n[c]||0)+l}}let r=0;for(let i=0;i<n.length;i++)r=Math.max(r,n[i]);for(let i=0;i<n.length;i++)if(i>=t.length&&t.push(Ee.empty),n[i]<r){const a=mo(e).cell.createAndFill(),o=[];for(let s=n[i];s<r;s++)o.push(a);t[i]=t[i].append(Ee.from(o))}return{height:t.length,width:r,rows:t}}function i7(e,t){const n=e.createAndFill();return new gj(n).replace(0,n.content.size,t).doc}function s2t({width:e,height:t,rows:n},r,i){if(e!=r){const a=[],o=[];for(let s=0;s<n.length;s++){const l=n[s],c=[];for(let u=a[s]||0,f=0;u<r;f++){let h=l.child(f%l.childCount);u+h.attrs.colspan>r&&(h=h.type.createChecked(Qd(h.attrs,h.attrs.colspan,u+h.attrs.colspan-r),h.content)),c.push(h),u+=h.attrs.colspan;for(let m=1;m<h.attrs.rowspan;m++)a[s+m]=(a[s+m]||0)+h.attrs.colspan}o.push(Ee.from(c))}n=o,e=r}if(t!=i){const a=[];for(let o=0,s=0;o<i;o++,s++){const l=[],c=n[s%t];for(let u=0;u<c.childCount;u++){let f=c.child(u);o+f.attrs.rowspan>i&&(f=f.type.create({...f.attrs,rowspan:Math.max(1,i-f.attrs.rowspan)},f.content)),l.push(f)}a.push(Ee.from(l))}n=a,t=i}return{width:e,height:t,rows:n}}function l2t(e,t,n,r,i,a,o){const s=e.doc.type.schema,l=mo(s);let c,u;if(i>t.width)for(let f=0,h=0;f<t.height;f++){const m=n.child(f);h+=m.nodeSize;const g=[];let b;m.lastChild==null||m.lastChild.type==l.cell?b=c||(c=l.cell.createAndFill()):b=u||(u=l.header_cell.createAndFill());for(let C=t.width;C<i;C++)g.push(b);e.insert(e.mapping.slice(o).map(h-1+r),g)}if(a>t.height){const f=[];for(let g=0,b=(t.height-1)*t.width;g<Math.max(t.width,i);g++){const C=g>=t.width?!1:n.nodeAt(t.map[b+g]).type==l.header_cell;f.push(C?u||(u=l.header_cell.createAndFill()):c||(c=l.cell.createAndFill()))}const h=l.row.create(null,Ee.from(f)),m=[];for(let g=t.height;g<a;g++)m.push(h);e.insert(e.mapping.slice(o).map(r+n.nodeSize-2),m)}return!!(c||u)}function LN(e,t,n,r,i,a,o,s){if(o==0||o==t.height)return!1;let l=!1;for(let c=i;c<a;c++){const u=o*t.width+c,f=t.map[u];if(t.map[u-t.width]==f){l=!0;const h=n.nodeAt(f),{top:m,left:g}=t.findCell(f);e.setNodeMarkup(e.mapping.slice(s).map(f+r),null,{...h.attrs,rowspan:o-m}),e.insert(e.mapping.slice(s).map(t.positionAt(o,g,n)),h.type.createAndFill({...h.attrs,rowspan:m+h.attrs.rowspan-o})),c+=h.attrs.colspan-1}}return l}function IN(e,t,n,r,i,a,o,s){if(o==0||o==t.width)return!1;let l=!1;for(let c=i;c<a;c++){const u=c*t.width+o,f=t.map[u];if(t.map[u-1]==f){l=!0;const h=n.nodeAt(f),m=t.colCount(f),g=e.mapping.slice(s).map(f+r);e.setNodeMarkup(g,null,Qd(h.attrs,o-m,h.attrs.colspan-(o-m))),e.insert(g+h.nodeSize,h.type.createAndFill(Qd(h.attrs,0,o-m))),c+=h.attrs.rowspan-1}}return l}function BN(e,t,n,r,i){let a=n?e.doc.nodeAt(n-1):e.doc;if(!a)throw new Error("No table found");let o=mn.get(a);const{top:s,left:l}=r,c=l+i.width,u=s+i.height,f=e.tr;let h=0;function m(){if(a=n?f.doc.nodeAt(n-1):f.doc,!a)throw new Error("No table found");o=mn.get(a),h=f.mapping.maps.length}l2t(f,o,a,n,c,u,h)&&m(),LN(f,o,a,n,l,c,s,h)&&m(),LN(f,o,a,n,l,c,u,h)&&m(),IN(f,o,a,n,s,u,l,h)&&m(),IN(f,o,a,n,s,u,c,h)&&m();for(let g=s;g<u;g++){const b=o.positionAt(g,l,a),C=o.positionAt(g,c,a);f.replace(f.mapping.slice(h).map(b+n),f.mapping.slice(h).map(C+n),new Ue(i.rows[g-s],0,0))}m(),f.setSelection(new an(f.doc.resolve(n+o.positionAt(s,l,a)),f.doc.resolve(n+o.positionAt(u-1,c-1,a)))),t(f)}var c2t=kq({ArrowLeft:o_("horiz",-1),ArrowRight:o_("horiz",1),ArrowUp:o_("vert",-1),ArrowDown:o_("vert",1),"Shift-ArrowLeft":s_("horiz",-1),"Shift-ArrowRight":s_("horiz",1),"Shift-ArrowUp":s_("vert",-1),"Shift-ArrowDown":s_("vert",1),Backspace:l_,"Mod-Backspace":l_,Delete:l_,"Mod-Delete":l_});function Fb(e,t,n){return n.eq(e.selection)?!1:(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function o_(e,t){return(n,r,i)=>{if(!i)return!1;const a=n.selection;if(a instanceof an)return Fb(n,r,$t.near(a.$headCell,t));if(e!="horiz"&&!a.empty)return!1;const o=mG(i,e,t);if(o==null)return!1;if(e=="horiz")return Fb(n,r,$t.near(n.doc.resolve(a.head+t),t));{const s=n.doc.resolve(o),l=fG(s,e,t);let c;return l?c=$t.near(l,1):t<0?c=$t.near(n.doc.resolve(s.before(-1)),-1):c=$t.near(n.doc.resolve(s.after(-1)),1),Fb(n,r,c)}}}function s_(e,t){return(n,r,i)=>{if(!i)return!1;const a=n.selection;let o;if(a instanceof an)o=a;else{const l=mG(i,e,t);if(l==null)return!1;o=new an(n.doc.resolve(l))}const s=fG(o.$headCell,e,t);return s?Fb(n,r,new an(o.$anchorCell,s)):!1}}function l_(e,t){const n=e.selection;if(!(n instanceof an))return!1;if(t){const r=e.tr,i=mo(e.schema).cell.createAndFill().content;n.forEachCell((a,o)=>{a.content.eq(i)||r.replace(r.mapping.map(o+1),r.mapping.map(o+a.nodeSize-1),new Ue(i,0,0))}),r.docChanged&&t(r)}return!0}function u2t(e,t){const n=e.state.doc,r=y1(n.resolve(t));return r?(e.dispatch(e.state.tr.setSelection(new an(r))),!0):!1}function d2t(e,t,n){if(!Xi(e.state))return!1;let r=a2t(n);const i=e.state.selection;if(i instanceof an){r||(r={width:1,height:1,rows:[Ee.from(i7(mo(e.state.schema).cell,n))]});const a=i.$anchorCell.node(-1),o=i.$anchorCell.start(-1),s=mn.get(a).rectBetween(i.$anchorCell.pos-o,i.$headCell.pos-o);return r=s2t(r,s.right-s.left,s.bottom-s.top),BN(e.state,e.dispatch,o,s,r),!0}else if(r){const a=h2(e.state),o=a.start(-1);return BN(e.state,e.dispatch,o,mn.get(a.node(-1)).findCell(a.pos-o),r),!0}else return!1}function f2t(e,t){var n;if(t.ctrlKey||t.metaKey)return;const r=RN(e,t.target);let i;if(t.shiftKey&&e.state.selection instanceof an)a(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&r&&(i=y1(e.state.selection.$anchor))!=null&&((n=U6(e,t))==null?void 0:n.pos)!=i.pos)a(i,t),t.preventDefault();else if(!r)return;function a(l,c){let u=U6(e,c);const f=Bc.getState(e.state)==null;if(!u||!Q9(l,u))if(f)u=l;else return;const h=new an(l,u);if(f||!e.state.selection.eq(h)){const m=e.state.tr.setSelection(h);f&&m.setMeta(Bc,l.pos),e.dispatch(m)}}function o(){e.root.removeEventListener("mouseup",o),e.root.removeEventListener("dragstart",o),e.root.removeEventListener("mousemove",s),Bc.getState(e.state)!=null&&e.dispatch(e.state.tr.setMeta(Bc,-1))}function s(l){const c=l,u=Bc.getState(e.state);let f;if(u!=null)f=e.state.doc.resolve(u);else if(RN(e,c.target)!=r&&(f=U6(e,t),!f))return o();f&&a(f,c)}e.root.addEventListener("mouseup",o),e.root.addEventListener("dragstart",o),e.root.addEventListener("mousemove",s)}function mG(e,t,n){if(!(e.state.selection instanceof Nt))return null;const{$head:r}=e.state.selection;for(let i=r.depth-1;i>=0;i--){const a=r.node(i);if((n<0?r.index(i):r.indexAfter(i))!=(n<0?0:a.childCount))return null;if(a.type.spec.tableRole=="cell"||a.type.spec.tableRole=="header_cell"){const s=r.before(i),l=t=="vert"?n>0?"down":"up":n>0?"right":"left";return e.endOfTextblock(l)?s:null}}return null}function RN(e,t){for(;t&&t!=e.dom;t=t.parentNode)if(t.nodeName=="TD"||t.nodeName=="TH")return t;return null}function U6(e,t){const n=e.posAtCoords({left:t.clientX,top:t.clientY});return n&&n?y1(e.state.doc.resolve(n.pos)):null}var h2t=class{constructor(e,t){this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),a7(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type!=this.node.type?!1:(this.node=e,a7(e,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(e){return e.type=="attributes"&&(e.target==this.table||this.colgroup.contains(e.target))}};function a7(e,t,n,r,i,a){var o;let s=0,l=!0,c=t.firstChild;const u=e.firstChild;if(u){for(let f=0,h=0;f<u.childCount;f++){const{colspan:m,colwidth:g}=u.child(f).attrs;for(let b=0;b<m;b++,h++){const C=i==h?a:g&&g[b],w=C?C+"px":"";s+=C||r,C||(l=!1),c?(c.style.width!=w&&(c.style.width=w),c=c.nextSibling):t.appendChild(document.createElement("col")).style.width=w}}for(;c;){const f=c.nextSibling;(o=c.parentNode)==null||o.removeChild(c),c=f}l?(n.style.width=s+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=s+"px")}}var no=new Fn("tableColumnResizing");function p2t({handleWidth:e=5,cellMinWidth:t=25,View:n=h2t,lastColumnResizable:r=!0}={}){const i=new Bn({key:no,state:{init(a,o){return i.spec.props.nodeViews[mo(o.schema).table.name]=(s,l)=>new n(s,t,l),new $b(-1,!1)},apply(a,o){return o.apply(a)}},props:{attributes:a=>{const o=no.getState(a);return o&&o.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(a,o)=>{m2t(a,o,e,t,r)},mouseleave:a=>{g2t(a)},mousedown:(a,o)=>{y2t(a,o,t)}},decorations:a=>{const o=no.getState(a);if(o&&o.activeHandle>-1)return x2t(a,o.activeHandle)},nodeViews:{}}});return i}var $b=class{constructor(e,t){this.activeHandle=e,this.dragging=t}apply(e){const t=this,n=e.getMeta(no);if(n&&n.setHandle!=null)return new $b(n.setHandle,!1);if(n&&n.setDragging!==void 0)return new $b(t.activeHandle,n.setDragging);if(t.activeHandle>-1&&e.docChanged){let r=e.mapping.map(t.activeHandle,-1);return r7(e.doc.resolve(r))||(r=-1),new $b(r,t.dragging)}return t}};function m2t(e,t,n,r,i){const a=no.getState(e.state);if(a&&!a.dragging){const o=b2t(t.target);let s=-1;if(o){const{left:l,right:c}=o.getBoundingClientRect();t.clientX-l<=n?s=PN(e,t,"left",n):c-t.clientX<=n&&(s=PN(e,t,"right",n))}if(s!=a.activeHandle){if(!i&&s!==-1){const l=e.state.doc.resolve(s),c=l.node(-1),u=mn.get(c),f=l.start(-1);if(u.colCount(l.pos-f)+l.nodeAfter.attrs.colspan-1==u.width-1)return}gG(e,s)}}}function g2t(e){const t=no.getState(e.state);t&&t.activeHandle>-1&&!t.dragging&&gG(e,-1)}function y2t(e,t,n){const r=no.getState(e.state);if(!r||r.activeHandle==-1||r.dragging)return!1;const i=e.state.doc.nodeAt(r.activeHandle),a=_2t(e,r.activeHandle,i.attrs);e.dispatch(e.state.tr.setMeta(no,{setDragging:{startX:t.clientX,startWidth:a}}));function o(l){window.removeEventListener("mouseup",o),window.removeEventListener("mousemove",s);const c=no.getState(e.state);c!=null&&c.dragging&&(k2t(e,c.activeHandle,jN(c.dragging,l,n)),e.dispatch(e.state.tr.setMeta(no,{setDragging:null})))}function s(l){if(!l.which)return o(l);const c=no.getState(e.state);if(c&&c.dragging){const u=jN(c.dragging,l,n);w2t(e,c.activeHandle,u,n)}}return window.addEventListener("mouseup",o),window.addEventListener("mousemove",s),t.preventDefault(),!0}function _2t(e,t,{colspan:n,colwidth:r}){const i=r&&r[r.length-1];if(i)return i;const a=e.domAtPos(t);let s=a.node.childNodes[a.offset].offsetWidth,l=n;if(r)for(let c=0;c<n;c++)r[c]&&(s-=r[c],l--);return s/l}function b2t(e){for(;e&&e.nodeName!="TD"&&e.nodeName!="TH";)e=e.classList&&e.classList.contains("ProseMirror")?null:e.parentNode;return e}function PN(e,t,n,r){const i=n=="right"?-r:r,a=e.posAtCoords({left:t.clientX+i,top:t.clientY});if(!a)return-1;const{pos:o}=a,s=y1(e.state.doc.resolve(o));if(!s)return-1;if(n=="right")return s.pos;const l=mn.get(s.node(-1)),c=s.start(-1),u=l.map.indexOf(s.pos-c);return u%l.width==0?-1:c+l.map[u-1]}function jN(e,t,n){const r=t.clientX-e.startX;return Math.max(n,e.startWidth+r)}function gG(e,t){e.dispatch(e.state.tr.setMeta(no,{setHandle:t}))}function k2t(e,t,n){const r=e.state.doc.resolve(t),i=r.node(-1),a=mn.get(i),o=r.start(-1),s=a.colCount(r.pos-o)+r.nodeAfter.attrs.colspan-1,l=e.state.tr;for(let c=0;c<a.height;c++){const u=c*a.width+s;if(c&&a.map[u]==a.map[u-a.width])continue;const f=a.map[u],h=i.nodeAt(f).attrs,m=h.colspan==1?0:s-a.colCount(f);if(h.colwidth&&h.colwidth[m]==n)continue;const g=h.colwidth?h.colwidth.slice():v2t(h.colspan);g[m]=n,l.setNodeMarkup(o+f,null,{...h,colwidth:g})}l.docChanged&&e.dispatch(l)}function w2t(e,t,n,r){const i=e.state.doc.resolve(t),a=i.node(-1),o=i.start(-1),s=mn.get(a).colCount(i.pos-o)+i.nodeAfter.attrs.colspan-1;let l=e.domAtPos(i.start(-1)).node;for(;l&&l.nodeName!="TABLE";)l=l.parentNode;l&&a7(a,l.firstChild,l,r,s,n)}function v2t(e){return Array(e).fill(0)}function x2t(e,t){const n=[],r=e.doc.resolve(t),i=r.node(-1);if(!i)return en.empty;const a=mn.get(i),o=r.start(-1),s=a.colCount(r.pos-o)+r.nodeAfter.attrs.colspan;for(let l=0;l<a.height;l++){const c=s+l*a.width-1;if((s==a.width||a.map[c]!=a.map[c+1])&&(l==0||a.map[c]!=a.map[c-a.width])){const u=a.map[c],f=o+u+i.nodeAt(u).nodeSize-1,h=document.createElement("div");h.className="column-resize-handle",n.push($r.widget(f,h))}}return en.create(e.doc,n)}function $u(e){const t=e.selection,n=h2(e),r=n.node(-1),i=n.start(-1),a=mn.get(r);return{...t instanceof an?a.rectBetween(t.$anchorCell.pos-i,t.$headCell.pos-i):a.findCell(n.pos-i),tableStart:i,map:a,table:r}}function yG(e,{map:t,tableStart:n,table:r},i){let a=i>0?-1:0;Xvt(t,r,i+a)&&(a=i==0||i==t.width?null:0);for(let o=0;o<t.height;o++){const s=o*t.width+i;if(i>0&&i<t.width&&t.map[s-1]==t.map[s]){const l=t.map[s],c=r.nodeAt(l);e.setNodeMarkup(e.mapping.map(n+l),null,Zvt(c.attrs,i-t.colCount(l))),o+=c.attrs.rowspan-1}else{const l=a==null?mo(r.type.schema).cell:r.nodeAt(t.map[s+a]).type,c=t.positionAt(o,i,r);e.insert(e.mapping.map(n+c),l.createAndFill())}}return e}function C2t(e,t){if(!Xi(e))return!1;if(t){const n=$u(e);t(yG(e.tr,n,n.left))}return!0}function S2t(e,t){if(!Xi(e))return!1;if(t){const n=$u(e);t(yG(e.tr,n,n.right))}return!0}function D2t(e,{map:t,table:n,tableStart:r},i){const a=e.mapping.maps.length;for(let o=0;o<t.height;){const s=o*t.width+i,l=t.map[s],c=n.nodeAt(l),u=c.attrs;if(i>0&&t.map[s-1]==l||i<t.width-1&&t.map[s+1]==l)e.setNodeMarkup(e.mapping.slice(a).map(r+l),null,Qd(u,i-t.colCount(l)));else{const f=e.mapping.slice(a).map(r+l);e.delete(f,f+c.nodeSize)}o+=u.rowspan}}function E2t(e,t){if(!Xi(e))return!1;if(t){const n=$u(e),r=e.tr;if(n.left==0&&n.right==n.map.width)return!1;for(let i=n.right-1;D2t(r,n,i),i!=n.left;i--){const a=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!a)throw RangeError("No table found");n.table=a,n.map=mn.get(a)}t(r)}return!0}function T2t(e,{map:t,table:n,tableStart:r},i){let a=0;for(let l=0;l<i;l++)a+=n.child(l).nodeSize;const o=a+n.child(i).nodeSize,s=e.mapping.maps.length;e.delete(a+r,o+r);for(let l=0,c=i*t.width;l<t.width;l++,c++){const u=t.map[c];if(i>0&&u==t.map[c-t.width]){const f=n.nodeAt(u).attrs;e.setNodeMarkup(e.mapping.slice(s).map(u+r),null,{...f,rowspan:f.rowspan-1}),l+=f.colspan-1}else if(i<t.width&&u==t.map[c+t.width]){const f=n.nodeAt(u),h=f.attrs,m=f.type.create({...h,rowspan:f.attrs.rowspan-1},f.content),g=t.positionAt(i+1,l,n);e.insert(e.mapping.slice(s).map(r+g),m),l+=h.colspan-1}}}function A2t(e,t){if(!Xi(e))return!1;if(t){const n=$u(e),r=e.tr;if(n.top==0&&n.bottom==n.map.height)return!1;for(let i=n.bottom-1;T2t(r,n,i),i!=n.top;i--){const a=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!a)throw RangeError("No table found");n.table=a,n.map=mn.get(n.table)}t(r)}return!0}function z2t(e,t){return function(n,r){if(!Xi(n))return!1;const i=h2(n);if(i.nodeAfter.attrs[e]===t)return!1;if(r){const a=n.tr;n.selection instanceof an?n.selection.forEachCell((o,s)=>{o.attrs[e]!==t&&a.setNodeMarkup(s,null,{...o.attrs,[e]:t})}):a.setNodeMarkup(i.pos,null,{...i.nodeAfter.attrs,[e]:t}),r(a)}return!0}}function F2t(e){return function(t,n){if(!Xi(t))return!1;if(n){const r=mo(t.schema),i=$u(t),a=t.tr,o=i.map.cellsInRect(e=="column"?{left:i.left,top:0,right:i.right,bottom:i.map.height}:e=="row"?{left:0,top:i.top,right:i.map.width,bottom:i.bottom}:i),s=o.map(l=>i.table.nodeAt(l));for(let l=0;l<o.length;l++)s[l].type==r.header_cell&&a.setNodeMarkup(i.tableStart+o[l],r.cell,s[l].attrs);if(a.steps.length==0)for(let l=0;l<o.length;l++)a.setNodeMarkup(i.tableStart+o[l],r.header_cell,s[l].attrs);n(a)}return!0}}function VN(e,t,n){const r=t.map.cellsInRect({left:0,top:0,right:e=="row"?t.map.width:1,bottom:e=="column"?t.map.height:1});for(let i=0;i<r.length;i++){const a=t.table.nodeAt(r[i]);if(a&&a.type!==n.header_cell)return!1}return!0}function eD(e,t){return t=t||{useDeprecatedLogic:!1},t.useDeprecatedLogic?F2t(e):function(n,r){if(!Xi(n))return!1;if(r){const i=mo(n.schema),a=$u(n),o=n.tr,s=VN("row",a,i),l=VN("column",a,i),u=(e==="column"?s:e==="row"?l:!1)?1:0,f=e=="column"?{left:0,top:u,right:1,bottom:a.map.height}:e=="row"?{left:u,top:0,right:a.map.width,bottom:1}:a,h=e=="column"?l?i.cell:i.header_cell:e=="row"?s?i.cell:i.header_cell:i.cell;a.map.cellsInRect(f).forEach(m=>{const g=m+a.tableStart,b=o.doc.nodeAt(g);b&&o.setNodeMarkup(g,h,b.attrs)}),r(o)}return!0}}eD("row",{useDeprecatedLogic:!0});eD("column",{useDeprecatedLogic:!0});eD("cell",{useDeprecatedLogic:!0});function $2t(e,t){if(t<0){const n=e.nodeBefore;if(n)return e.pos-n.nodeSize;for(let r=e.index(-1)-1,i=e.before();r>=0;r--){const a=e.node(-1).child(r),o=a.lastChild;if(o)return i-1-o.nodeSize;i-=a.nodeSize}}else{if(e.index()<e.parent.childCount-1)return e.pos+e.nodeAfter.nodeSize;const n=e.node(-1);for(let r=e.indexAfter(-1),i=e.after();r<n.childCount;r++){const a=n.child(r);if(a.childCount)return i+1;i+=a.nodeSize}}return null}function _G(e){return function(t,n){if(!Xi(t))return!1;const r=$2t(h2(t),e);if(r==null)return!1;if(n){const i=t.doc.resolve(r);n(t.tr.setSelection(Nt.between(i,Yvt(i))).scrollIntoView())}return!0}}function M2t(e,t){const n=e.selection.$anchor;for(let r=n.depth;r>0;r--)if(n.node(r).type.spec.tableRole=="table")return t&&t(e.tr.delete(n.before(r),n.after(r)).scrollIntoView()),!0;return!1}function O2t({allowTableNodeSelection:e=!1}={}){return new Bn({key:Bc,state:{init(){return null},apply(t,n){const r=t.getMeta(Bc);if(r!=null)return r==-1?null:r;if(n==null||!t.docChanged)return n;const{deleted:i,pos:a}=t.mapping.mapResult(n);return i?null:a}},props:{decorations:Jvt,handleDOMEvents:{mousedown:f2t},createSelectionBetween(t){return Bc.getState(t.state)!=null?t.state.selection:null},handleTripleClick:u2t,handleKeyDown:c2t,handlePaste:d2t},appendTransaction(t,n,r){return t2t(r,r2t(r,n),e)}})}const N2t={tokenize:j2t,partial:!0},bG={tokenize:V2t,partial:!0},kG={tokenize:q2t,partial:!0},wG={tokenize:H2t,partial:!0},L2t={tokenize:U2t,partial:!0},vG={tokenize:R2t,previous:CG},xG={tokenize:P2t,previous:SG},Xl={tokenize:B2t,previous:DG},js={},I2t={text:js};let Ku=48;for(;Ku<123;)js[Ku]=Xl,Ku++,Ku===58?Ku=65:Ku===91&&(Ku=97);js[43]=Xl;js[45]=Xl;js[46]=Xl;js[95]=Xl;js[72]=[Xl,xG];js[104]=[Xl,xG];js[87]=[Xl,vG];js[119]=[Xl,vG];function B2t(e,t,n){const r=this;let i,a;return o;function o(f){return!o7(f)||!DG.call(r,r.previous)||tD(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(f))}function s(f){return o7(f)?(e.consume(f),s):f===64?(e.consume(f),l):n(f)}function l(f){return f===46?e.check(L2t,u,c)(f):f===45||f===95||ji(f)?(a=!0,e.consume(f),l):u(f)}function c(f){return e.consume(f),i=!0,l}function u(f){return a&&i&&gi(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function R2t(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!CG.call(r,r.previous)||tD(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(N2t,e.attempt(bG,e.attempt(kG,a),n),n)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function P2t(e,t,n){const r=this;let i="",a=!1;return o;function o(f){return(f===72||f===104)&&SG.call(r,r.previous)&&!tD(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),e.consume(f),s):n(f)}function s(f){if(gi(f)&&i.length<5)return i+=String.fromCodePoint(f),e.consume(f),s;if(f===58){const h=i.toLowerCase();if(h==="http"||h==="https")return e.consume(f),l}return n(f)}function l(f){return f===47?(e.consume(f),a?c:(a=!0,l)):n(f)}function c(f){return f===null||Ik(f)||Cn(f)||Yd(f)||Ov(f)?n(f):e.attempt(bG,e.attempt(kG,u),n)(f)}function u(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function j2t(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),a):n(o)}function a(o){return o===null?n(o):t(o)}}function V2t(e,t,n){let r,i,a;return o;function o(c){return c===46||c===95?e.check(wG,l,s)(c):c===null||Cn(c)||Yd(c)||c!==45&&Ov(c)?l(c):(a=!0,e.consume(c),o)}function s(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),o}function l(c){return i||r||!a?n(c):t(c)}}function q2t(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(wG,t,a)(o):o===null||Cn(o)||Yd(o)?t(o):(e.consume(o),i)}function a(o){return o===41&&r++,e.consume(o),i}}function H2t(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),a):s===93?(e.consume(s),i):s===60||s===null||Cn(s)||Yd(s)?t(s):n(s)}function i(s){return s===null||s===40||s===91||Cn(s)||Yd(s)?t(s):r(s)}function a(s){return gi(s)?o(s):n(s)}function o(s){return s===59?(e.consume(s),r):gi(s)?(e.consume(s),o):n(s)}}function U2t(e,t,n){return r;function r(a){return e.consume(a),i}function i(a){return ji(a)?n(a):t(a)}}function CG(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Cn(e)}function SG(e){return!gi(e)}function DG(e){return!(e===47||o7(e))}function o7(e){return e===43||e===45||e===46||e===95||ji(e)}function tD(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const W2t={tokenize:e3t,partial:!0};function G2t(){return{document:{[91]:{tokenize:X2t,continuation:{tokenize:J2t},exit:Q2t}},text:{[91]:{tokenize:Z2t},[93]:{add:"after",tokenize:K2t,resolveTo:Y2t}}}}function K2t(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!o||!o._balanced)return n(l);const c=Go(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function Y2t(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function Z2t(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,o;return s;function s(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),l}function l(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(f){if(a>999||f===93&&!o||f===null||f===91||Cn(f))return n(f);if(f===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return i.includes(Go(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return Cn(f)||(o=!0),a++,e.consume(f),f===92?u:c}function u(f){return f===91||f===92||f===93?(e.consume(f),a++,c):c(f)}}function X2t(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o=0,s;return l;function l(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(g)}function u(g){if(o>999||g===93&&!s||g===null||g===91||Cn(g))return n(g);if(g===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return a=Go(r.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return Cn(g)||(s=!0),o++,e.consume(g),g===92?f:u}function f(g){return g===91||g===92||g===93?(e.consume(g),o++,u):u(g)}function h(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),i.includes(a)||i.push(a),Yt(e,m,"gfmFootnoteDefinitionWhitespace")):n(g)}function m(g){return t(g)}}function J2t(e,t,n){return e.check(Kg,t,e.attempt(W2t,t,n))}function Q2t(e){e.exit("gfmFootnoteDefinition")}function e3t(e,t,n){const r=this;return Yt(e,i,"gfmFootnoteDefinitionIndent",4+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(a):n(a)}}function t3t(e){let n=(e||{}).singleTilde;const r={tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{[126]:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,s){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let c=l;for(;c--;)if(o[c][0]==="exit"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[c][1].end.offset-o[c][1].start.offset){o[l][1].type="strikethroughSequence",o[c][1].type="strikethroughSequence";const u={type:"strikethrough",start:Object.assign({},o[c][1].start),end:Object.assign({},o[l][1].end)},f={type:"strikethroughText",start:Object.assign({},o[c][1].end),end:Object.assign({},o[l][1].start)},h=[["enter",u,s],["enter",o[c][1],s],["exit",o[c][1],s],["enter",f,s]],m=s.parser.constructs.insideSpan.null;m&&xa(h,h.length,0,Nv(m,o.slice(c+1,l),s)),xa(h,h.length,0,[["exit",f,s],["enter",o[l][1],s],["exit",o[l][1],s],["exit",u,s]]),xa(o,c-1,l-c+3,h),l=c+h.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function a(o,s,l){const c=this.previous,u=this.events;let f=0;return h;function h(g){return c===126&&u[u.length-1][1].type!=="characterEscape"?l(g):(o.enter("strikethroughSequenceTemporary"),m(g))}function m(g){const b=Bk(c);if(g===126)return f>1?l(g):(o.consume(g),f++,m);if(f<2&&!n)return l(g);const C=o.exit("strikethroughSequenceTemporary"),w=Bk(g);return C._open=!w||w===2&&!!b,C._close=!b||b===2&&!!w,s(g)}}}class n3t{constructor(){this.map=[]}add(t,n,r){r3t(this,t,n,r)}consume(t){if(this.map.sort((a,o)=>a[0]-o[0]),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1])),r.push(this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function r3t(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function i3t(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}const a3t={flow:{null:{tokenize:o3t,resolveAll:s3t}}};function o3t(e,t,n){const r=this;let i=0,a=0,o;return s;function s(O){let G=r.events.length-1;for(;G>-1;){const W=r.events[G][1].type;if(W==="lineEnding"||W==="linePrefix")G--;else break}const V=G>-1?r.events[G][1].type:null,Z=V==="tableHead"||V==="tableRow"?_:l;return Z===_&&r.parser.lazy[r.now().line]?n(O):Z(O)}function l(O){return e.enter("tableHead"),e.enter("tableRow"),c(O)}function c(O){return O===124||(o=!0,a+=1),u(O)}function u(O){return O===null?n(O):st(O)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),m):n(O):Jt(O)?Yt(e,u,"whitespace")(O):(a+=1,o&&(o=!1,i+=1),O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),o=!0,u):(e.enter("data"),f(O)))}function f(O){return O===null||O===124||Cn(O)?(e.exit("data"),u(O)):(e.consume(O),O===92?h:f)}function h(O){return O===92||O===124?(e.consume(O),f):f(O)}function m(O){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(O):(e.enter("tableDelimiterRow"),o=!1,Jt(O)?Yt(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):g(O))}function g(O){return O===45||O===58?C(O):O===124?(o=!0,e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),b):A(O)}function b(O){return Jt(O)?Yt(e,C,"whitespace")(O):C(O)}function C(O){return O===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),w):O===45?(a+=1,w(O)):O===null||st(O)?E(O):A(O)}function w(O){return O===45?(e.enter("tableDelimiterFiller"),k(O)):A(O)}function k(O){return O===45?(e.consume(O),k):O===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(O))}function S(O){return Jt(O)?Yt(e,E,"whitespace")(O):E(O)}function E(O){return O===124?g(O):O===null||st(O)?!o||i!==a?A(O):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(O)):A(O)}function A(O){return n(O)}function _(O){return e.enter("tableRow"),T(O)}function T(O){return O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),T):O===null||st(O)?(e.exit("tableRow"),t(O)):Jt(O)?Yt(e,T,"whitespace")(O):(e.enter("data"),$(O))}function $(O){return O===null||O===124||Cn(O)?(e.exit("data"),T(O)):(e.consume(O),O===92?R:$)}function R(O){return O===92||O===124?(e.consume(O),$):$(O)}}function s3t(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,l=0,c,u,f;const h=new n3t;for(;++n<e.length;){const m=e[n],g=m[1];m[0]==="enter"?g.type==="tableHead"?(s=!1,l!==0&&(qN(h,t,l,c,u),u=void 0,l=0),c={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},h.add(n,0,[["enter",c,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,f=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},h.add(n,0,[["enter",u,t]])),i=g.type==="tableDelimiterRow"?2:u?3:1):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],f=c_(h,t,a,i,void 0,f),a=[0,0,0,0]),o[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],f=c_(h,t,a,i,void 0,f)),a=o,o=[a[1],n,0,0])):g.type==="tableHead"?(s=!0,l=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=n,a[1]!==0?(o[0]=o[1],f=c_(h,t,a,i,n,f)):o[1]!==0&&(f=c_(h,t,o,i,n,f)),i=0):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(o[3]=n)}for(l!==0&&qN(h,t,l,c,u),h.consume(t.events),n=-1;++n<t.events.length;){const m=t.events[n];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=i3t(t.events,n))}return e}function c_(e,t,n,r,i,a){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(a.end=Object.assign({},ah(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const l=ah(t.events,n[1]);if(a={type:o,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const c=ah(t.events,n[2]),u=ah(t.events,n[3]),f={type:s,start:Object.assign({},c),end:Object.assign({},u)};if(e.add(n[2],0,[["enter",f,t]]),r!==2){const h=t.events[n[2]],m=t.events[n[3]];if(h[1].end=Object.assign({},m[1].end),h[1].type="chunkText",h[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,b=n[3]-n[2]-1;e.add(g,b,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return i!==void 0&&(a.end=Object.assign({},ah(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function qN(e,t,n,r,i){const a=[],o=ah(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function ah(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const l3t={tokenize:u3t},c3t={text:{[91]:l3t}};function u3t(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),a)}function a(l){return Cn(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):n(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return st(l)?t(l):Jt(l)?e.check({tokenize:d3t},t,n)(l):n(l)}}function d3t(e,t,n){return Yt(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function f3t(e){return hV([I2t,G2t(),t3t(e),a3t,c3t])}function HN(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}const W6="phrasing",G6=["autolink","link","image","label"],h3t={transforms:[k3t],enter:{literalAutolink:m3t,literalAutolinkEmail:K6,literalAutolinkHttp:K6,literalAutolinkWww:K6},exit:{literalAutolink:b3t,literalAutolinkEmail:_3t,literalAutolinkHttp:g3t,literalAutolinkWww:y3t}},p3t={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:W6,notInConstruct:G6},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:W6,notInConstruct:G6},{character:":",before:"[ps]",after:"\\/",inConstruct:W6,notInConstruct:G6}]};function m3t(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function K6(e){this.config.enter.autolinkProtocol.call(this,e)}function g3t(e){this.config.exit.autolinkProtocol.call(this,e)}function y3t(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function _3t(e){this.config.exit.autolinkEmail.call(this,e)}function b3t(e){this.exit(e)}function k3t(e){Qq(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,w3t],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,v3t]],{ignore:["link","linkReference"]})}function w3t(e,t,n,r,i){let a="";if(!EG(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!x3t(n)))return!1;const o=C3t(n+r);if(!o[0])return!1;const s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function v3t(e,t,n,r){return!EG(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function x3t(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function C3t(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=HN(e,"(");let a=HN(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function EG(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Yd(n)||Ov(n))&&(!t||n!==47)}TG.peek=N3t;function S3t(){return{enter:{gfmFootnoteDefinition:E3t,gfmFootnoteDefinitionLabelString:T3t,gfmFootnoteCall:F3t,gfmFootnoteCallString:$3t},exit:{gfmFootnoteDefinition:z3t,gfmFootnoteDefinitionLabelString:A3t,gfmFootnoteCall:O3t,gfmFootnoteCallString:M3t}}}function D3t(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:L3t,footnoteReference:TG}}}function E3t(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function T3t(){this.buffer()}function A3t(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Go(this.sliceSerialize(e)).toLowerCase()}function z3t(e){this.exit(e)}function F3t(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function $3t(){this.buffer()}function M3t(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Go(this.sliceSerialize(e)).toLowerCase()}function O3t(e){this.exit(e)}function TG(e,t,n,r){const i=Lp(r);let a=i.move("[^");const o=n.enter("footnoteReference"),s=n.enter("reference");return a+=i.move(Bv(n,pS(e),{...i.current(),before:a,after:"]"})),s(),o(),a+=i.move("]"),a}function N3t(){return"["}function L3t(e,t,n,r){const i=Lp(r);let a=i.move("[^");const o=n.enter("footnoteDefinition"),s=n.enter("label");return a+=i.move(Bv(n,pS(e),{...i.current(),before:a,after:"]"})),s(),a+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),a+=i.move(qV(VV(e,n,i.current()),I3t)),o(),a}function I3t(e,t,n){return t===0?e:(n?"":" ")+e}const B3t=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];AG.peek=q3t;const R3t={canContainEols:["delete"],enter:{strikethrough:j3t},exit:{strikethrough:V3t}},P3t={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:B3t}],handlers:{delete:AG}};function j3t(e){this.enter({type:"delete",children:[]},e)}function V3t(e){this.exit(e)}function AG(e,t,n,r){const i=Lp(r),a=n.enter("strikethrough");let o=i.move("~~");return o+=mS(e,n,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function q3t(){return"~"}function H3t(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||W3t,i=[],a=[],o=[],s=[];let l=0,c=-1;for(;++c<e.length;){const g=[],b=[];let C=-1;for(e[c].length>l&&(l=e[c].length);++C<e[c].length;){const w=U3t(e[c][C]);if(t.alignDelimiters!==!1){const k=r(w);b[C]=k,(s[C]===void 0||k>s[C])&&(s[C]=k)}g.push(w)}a[c]=g,o[c]=b}let u=-1;if(typeof n=="object"&&"length"in n)for(;++u<l;)i[u]=UN(n[u]);else{const g=UN(n);for(;++u<l;)i[u]=g}u=-1;const f=[],h=[];for(;++u<l;){const g=i[u];let b="",C="";g===99?(b=":",C=":"):g===108?b=":":g===114&&(C=":");let w=t.alignDelimiters===!1?1:Math.max(1,s[u]-b.length-C.length);const k=b+"-".repeat(w)+C;t.alignDelimiters!==!1&&(w=b.length+w+C.length,w>s[u]&&(s[u]=w),h[u]=w),f[u]=k}a.splice(1,0,f),o.splice(1,0,h),c=-1;const m=[];for(;++c<a.length;){const g=a[c],b=o[c];u=-1;const C=[];for(;++u<l;){const w=g[u]||"";let k="",S="";if(t.alignDelimiters!==!1){const E=s[u]-(b[u]||0),A=i[u];A===114?k=" ".repeat(E):A===99?E%2?(k=" ".repeat(E/2+.5),S=" ".repeat(E/2-.5)):(k=" ".repeat(E/2),S=k):S=" ".repeat(E)}t.delimiterStart!==!1&&!u&&C.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&w==="")&&(t.delimiterStart!==!1||u)&&C.push(" "),t.alignDelimiters!==!1&&C.push(k),C.push(w),t.alignDelimiters!==!1&&C.push(S),t.padding!==!1&&C.push(" "),(t.delimiterEnd!==!1||u!==l-1)&&C.push("|")}m.push(t.delimiterEnd===!1?C.join("").replace(/ +$/,""):C.join(""))}return m.join(` +`)}function U3t(e){return e==null?"":String(e)}function W3t(e){return e.length}function UN(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}const G3t={enter:{table:K3t,tableData:WN,tableHeader:WN,tableRow:Z3t},exit:{codeText:X3t,table:Y3t,tableData:Y6,tableHeader:Y6,tableRow:Y6}};function K3t(e){const t=e._align;this.enter({type:"table",align:t.map(n=>n==="none"?null:n),children:[]},e),this.setData("inTable",!0)}function Y3t(e){this.exit(e),this.setData("inTable")}function Z3t(e){this.enter({type:"tableRow",children:[]},e)}function Y6(e){this.exit(e)}function WN(e){this.enter({type:"tableCell",children:[]},e)}function X3t(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,J3t));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)}function J3t(e,t){return t==="|"?t:e}function Q3t(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:o,tableRow:s,tableCell:l,inlineCode:h}};function o(m,g,b,C){return c(u(m,b,C),m.align)}function s(m,g,b,C){const w=f(m,b,C),k=c([w]);return k.slice(0,k.indexOf(` -`))}function l(m,g,b,C){const w=b.enter("tableCell"),k=b.enter("phrasing"),S=mS(m,b,{...C,before:a,after:a});return k(),w(),S}function c(m,g){return q3t(m,{align:g,alignDelimiters:r,padding:n,stringLength:i})}function u(m,g,b){const C=m.children;let w=-1;const k=[],S=g.enter("table");for(;++w<C.length;)k[w]=f(C[w],g,b);return S(),k}function f(m,g,b){const C=m.children;let w=-1;const k=[],S=g.enter("tableRow");for(;++w<C.length;)k[w]=l(C[w],m,g,b);return S(),k}function h(m,g,b){let C=fS(m,g,b);return b.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}const Q3t={exit:{taskListCheckValueChecked:GN,taskListCheckValueUnchecked:GN,paragraph:t4t}},e4t={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:n4t}};function GN(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function t4t(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1],r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,o;for(;++a<i.length;){const s=i[a];if(s.type==="paragraph"){o=s;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function n4t(e,t,n,r){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",s=Lp(r);a&&s.move(o);let l=RV(e,t,n,{...r,...s.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(u){return u+o}}function r4t(){return[f3t,C3t(),B3t,W3t,Q3t]}function i4t(e){return{extensions:[h3t,S3t(),R3t,J3t(e),e4t]}}function a4t(e={}){const t=this.data();n("micromarkExtensions",d3t(e)),n("fromMarkdownExtensions",r4t()),n("toMarkdownExtensions",i4t(e));function n(r,i){(t[r]?t[r]:t[r]=[]).push(i)}}const Rt=(e,t)=>(Object.assign(e,{meta:{package:"@milkdown/preset-gfm",...t}}),e),nD=Xg("strike_through");Rt(nD,{displayName:"Attr<strikethrough>",group:"Strikethrough"});const vp=Zg("strike_through",e=>({parseDOM:[{tag:"del"},{style:"text-decoration",getAttrs:t=>t==="line-through"}],toDOM:t=>["del",e.get(nD.key)(t)],parseMarkdown:{match:t=>t.type==="delete",runner:(t,n,r)=>{t.openMark(r),t.next(n.children),t.closeMark(r)}},toMarkdown:{match:t=>t.type.name==="strike_through",runner:(t,n)=>{t.withMark(n,"delete")}}}));Rt(vp.mark,{displayName:"MarkSchema<strikethrough>",group:"Strikethrough"});Rt(vp.ctx,{displayName:"MarkSchemaCtx<strikethrough>",group:"Strikethrough"});const _1=Lt("ToggleStrikeThrough",e=>()=>jv(vp.type(e)));Rt(_1,{displayName:"Command<ToggleStrikethrough>",group:"Strikethrough"});const rD=ea("strikeThroughKeymap",{ToggleStrikethrough:{shortcuts:"Mod-Alt-x",command:e=>{const t=e.get(Bt);return()=>t.call(_1.key)}}});Rt(rD.ctx,{displayName:"KeymapCtx<strikethrough>",group:"Strikethrough"});Rt(rD.shortcuts,{displayName:"Keymap<strikethrough>",group:"Strikethrough"});const AG=(e,t=3,n=3)=>{const r=Array(n).fill(0).map(()=>w1.type(e).createAndFill()),i=Array(n).fill(0).map(()=>m2.type(e).createAndFill()),a=Array(t).fill(0).map((o,s)=>k1.type(e).create(null,s===0?i:r));return b1.type(e).create(null,a)},Wp=e=>uq(t=>t.type.spec.tableRole==="table")(e),fd=(e,t)=>{const n=Wp(t);if(!n)return;const r=mn.get(n.node);if(!(e<0||e>=r.width))return r.cellsInRect({left:e,right:e+1,top:0,bottom:r.height}).map(i=>{const a=n.node.nodeAt(i);if(!a)return;const o=i+n.start;return{pos:o,start:o+1,node:a}}).filter(i=>i!=null)},hd=(e,t)=>{const n=Wp(t);if(!n)return;const r=mn.get(n.node);if(!(e<0||e>=r.height))return r.cellsInRect({left:0,right:r.width,top:e,bottom:e+1}).map(i=>{const a=n.node.nodeAt(i);if(!a)return;const o=i+n.start;return{pos:o,start:o+1,node:a}}).filter(i=>i!=null)},o4t=e=>{const t=Wp(e);if(!t)return;const n=mn.get(t.node);return n.cellsInRect({left:0,right:n.width,top:0,bottom:n.height}).map(r=>{const i=t.node.nodeAt(r),a=r+t.start;return{pos:a,start:a+1,node:i}})},s4t=e=>{const t=o4t(e.selection);if(t&&t[0]){const n=e.doc.resolve(t[0].pos),r=t[t.length-1];if(r){const i=e.doc.resolve(r.pos);return Pv(e.setSelection(new an(i,n)))}}return e};function zG(e,t,{map:n,tableStart:r,table:i},a){const o=Array(a).fill(0).reduce((l,c,u)=>l+i.child(u).nodeSize,r),s=Array(n.width).fill(0).map((l,c)=>{const u=i.nodeAt(n.map[c]);return w1.type(e).createAndFill({alignment:u==null?void 0:u.attrs.alignment})});return t.insert(o,k1.type(e).create(null,s)),t}const FG=e=>t=>n=>{const r=Wp(n.selection),i=e==="row";if(r){const a=mn.get(r.node);if(t>=0&&t<(i?a.height:a.width)){const o=a.positionAt(i?t:a.height-1,i?a.width-1:t,r.node),s=n.doc.resolve(r.start+o),l=i?an.rowSelection:an.colSelection,c=a.positionAt(i?t:0,i?0:t,r.node),u=n.doc.resolve(r.start+c);return Pv(n.setSelection(l(s,u)))}}return n},l4t=FG("row"),c4t=FG("col"),KN=e=>e[0].map((t,n)=>e.map(r=>r[n])),$G=(e,t)=>{const n=[],r=mn.get(e);for(let i=0;i<r.height;i++){const a=e.child(i),o=[];for(let s=0;s<r.width;s++){if(!t[i][s])continue;const l=r.map[i*r.width+s],c=t[i][s],u=e.nodeAt(l).type.createChecked(Object.assign({},c.attrs),c.content,c.marks);o.push(u)}n.push(a.type.createChecked(a.attrs,o,a.marks))}return e.type.createChecked(e.attrs,n,e.marks)},MG=e=>{const t=mn.get(e),n=[];for(let r=0;r<t.height;r++){const i=[],a={};for(let o=0;o<t.width;o++){const s=t.map[r*t.width+o],l=e.nodeAt(s),c=t.findCell(s);if(a[s]||c.top!==r){i.push(null);continue}a[s]=!0,i.push(l)}n.push(i)}return n},OG=(e,t,n,r)=>{const i=t[0]>n[0]?-1:1,a=e.splice(t[0],t.length),o=a.length%2===0?1:0;let s;return r===-1&&i===1?s=n[0]-1:r===1&&i===-1?s=n[n.length-1]-o+1:s=i===-1?n[0]:n[n.length-1]-o,e.splice(s,0,...a),e},u4t=(e,t,n,r)=>{let i=KN(MG(e.node));return i=OG(i,t,n,r),i=KN(i),$G(e.node,i)},d4t=(e,t,n,r)=>{let i=MG(e.node);return i=OG(i,t,n,r),$G(e.node,i)},YN=(e,t)=>{let n=e,r=e;for(let u=e;u>=0;u--){const f=fd(u,t.selection);f&&f.forEach(h=>{const m=h.node.attrs.colspan+u-1;m>=n&&(n=u),m>r&&(r=m)})}for(let u=e;u<=r;u++){const f=fd(u,t.selection);f&&f.forEach(h=>{const m=h.node.attrs.colspan+u-1;h.node.attrs.colspan>1&&m>r&&(r=m)})}const i=[];for(let u=n;u<=r;u++){const f=fd(u,t.selection);f&&f.length&&i.push(u)}n=i[0],r=i[i.length-1];const a=fd(n,t.selection),o=hd(0,t.selection),s=t.doc.resolve(a[a.length-1].pos);let l;for(let u=r;u>=n;u--){const f=fd(u,t.selection);if(f&&f.length){for(let h=o.length-1;h>=0;h--)if(o[h].pos===f[0].pos){l=f[0];break}if(l)break}}const c=t.doc.resolve(l.pos);return{$anchor:s,$head:c,indexes:i}},ZN=(e,t)=>{let n=e,r=e;for(let u=e;u>=0;u--)hd(u,t.selection).forEach(f=>{const h=f.node.attrs.rowspan+u-1;h>=n&&(n=u),h>r&&(r=h)});for(let u=e;u<=r;u++)hd(u,t.selection).forEach(f=>{const h=f.node.attrs.rowspan+u-1;f.node.attrs.rowspan>1&&h>r&&(r=h)});const i=[];for(let u=n;u<=r;u++){const f=hd(u,t.selection);f&&f.length&&i.push(u)}n=i[0],r=i[i.length-1];const a=hd(n,t.selection),o=fd(0,t.selection),s=t.doc.resolve(a[a.length-1].pos);let l;for(let u=r;u>=n;u--){const f=hd(u,t.selection);if(f&&f.length){for(let h=o.length-1;h>=0;h--)if(o[h].pos===f[0].pos){l=f[0];break}if(l)break}}const c=t.doc.resolve(l.pos);return{$anchor:s,$head:c,indexes:i}};function f4t(e,t,n,r=!0){const i=Wp(e.selection);if(!i)return e;const{indexes:a}=YN(t,e),{indexes:o}=YN(n,e);if(a.includes(n))return e;const s=u4t(i,a,o,0),l=Pv(e).replaceWith(i.pos,i.pos+i.node.nodeSize,s);if(!r)return l;const c=mn.get(s),u=i.start,f=n,h=c.positionAt(c.height-1,f,s),m=l.doc.resolve(u+h),g=an.colSelection,b=c.positionAt(0,f,s),C=l.doc.resolve(u+b);return l.setSelection(g(m,C))}function h4t(e,t,n,r=!0){const i=Wp(e.selection);if(!i)return e;const{indexes:a}=ZN(t,e),{indexes:o}=ZN(n,e);if(a.includes(n))return e;const s=d4t(i,a,o,0),l=Pv(e).replaceWith(i.pos,i.pos+i.node.nodeSize,s);if(!r)return l;const c=mn.get(s),u=i.start,f=n,h=c.positionAt(f,c.width-1,s),m=l.doc.resolve(u+h),g=an.rowSelection,b=c.positionAt(f,0,s),C=l.doc.resolve(u+b);return l.setSelection(g(m,C))}const p2=Wvt({tableGroup:"block",cellContent:"paragraph",cellAttributes:{alignment:{default:"left",getFromDOM:e=>e.style.textAlign||"left",setDOMAttr:(e,t)=>{t.style=`text-align: ${e||"left"}`}}}}),b1=cr("table",()=>({...p2.table,parseMarkdown:{match:e=>e.type==="table",runner:(e,t,n)=>{const r=t.align,i=t.children.map((a,o)=>({...a,align:r,isHeader:o===0}));e.openNode(n),e.next(i),e.closeNode()}},toMarkdown:{match:e=>e.type.name==="table",runner:(e,t)=>{var n;const r=(n=t.content.firstChild)==null?void 0:n.content;if(!r)return;const i=[];r.forEach(a=>{i.push(a.attrs.alignment)}),e.openNode("table",void 0,{align:i}),e.next(t.content),e.closeNode()}}}));Rt(b1.node,{displayName:"NodeSchema<table>",group:"Table"});Rt(b1.ctx,{displayName:"NodeSchemaCtx<table>",group:"Table"});const k1=cr("table_row",()=>({...p2.table_row,parseMarkdown:{match:e=>e.type==="tableRow",runner:(e,t,n)=>{const r=t.align,i=t.children.map((a,o)=>({...a,align:r[o],isHeader:t.isHeader}));e.openNode(n),e.next(i),e.closeNode()}},toMarkdown:{match:e=>e.type.name==="table_row",runner:(e,t)=>{e.openNode("tableRow"),e.next(t.content),e.closeNode()}}}));Rt(k1.node,{displayName:"NodeSchema<tableRow>",group:"Table"});Rt(k1.ctx,{displayName:"NodeSchemaCtx<tableRow>",group:"Table"});const w1=cr("table_cell",()=>({...p2.table_cell,parseMarkdown:{match:e=>e.type==="tableCell"&&!e.isHeader,runner:(e,t,n)=>{const r=t.align;e.openNode(n,{alignment:r}).openNode(e.schema.nodes.paragraph).next(t.children).closeNode().closeNode()}},toMarkdown:{match:e=>e.type.name==="table_cell",runner:(e,t)=>{e.openNode("tableCell").next(t.content).closeNode()}}}));Rt(w1.node,{displayName:"NodeSchema<tableCell>",group:"Table"});Rt(w1.ctx,{displayName:"NodeSchemaCtx<tableCell>",group:"Table"});const m2=cr("table_header",()=>({...p2.table_header,parseMarkdown:{match:e=>e.type==="tableCell"&&!!e.isHeader,runner:(e,t,n)=>{const r=t.align;e.openNode(n,{alignment:r}),e.openNode(e.schema.nodes.paragraph),e.next(t.children),e.closeNode(),e.closeNode()}},toMarkdown:{match:e=>e.type.name==="table_header",runner:(e,t)=>{e.openNode("tableCell"),e.next(t.content),e.closeNode()}}}));Rt(m2.node,{displayName:"NodeSchema<tableHeader>",group:"Table"});Rt(m2.ctx,{displayName:"NodeSchemaCtx<tableHeader>",group:"Table"});const NG=vo(e=>new Yl(/^\|(?<col>\d+)[xX](?<row>\d+)\|\s$/,(t,n,r,i)=>{var a,o;const s=t.doc.resolve(r);if(!s.node(-1).canReplaceWith(s.index(-1),s.indexAfter(-1),b1.type(e)))return null;const l=AG(e,Number((a=n.groups)==null?void 0:a.row),Number((o=n.groups)==null?void 0:o.col)),c=t.tr.replaceRangeWith(r,i,l);return c.setSelection(Nt.create(c.doc,r+3)).scrollIntoView()}));Rt(NG,{displayName:"InputRule<insertTableInputRule>",group:"Table"});const iD=Lt("GoToPrevTableCell",()=>()=>yG(-1));Rt(iD,{displayName:"Command<goToPrevTableCellCommand>",group:"Table"});const aD=Lt("GoToNextTableCell",()=>()=>yG(1));Rt(aD,{displayName:"Command<goToNextTableCellCommand>",group:"Table"});const oD=Lt("BreakTable",e=>()=>(t,n)=>{if(!Xi(t))return!1;const{$head:r}=t.selection,i=r.after(),a=t.tr.replaceWith(i,i,Zl.type(e).createAndFill());return a.setSelection($t.near(a.doc.resolve(i),1)).scrollIntoView(),n==null||n(a),!0});Rt(oD,{displayName:"Command<breakTableCommand>",group:"Table"});const v1=Lt("InsertTable",e=>({row:t,col:n}={})=>(r,i)=>{const{selection:a,tr:o}=r,{from:s}=a,l=AG(e,t,n),c=o.replaceSelectionWith(l),u=$t.findFrom(c.doc.resolve(s),1,!0);return u&&c.setSelection(u),i==null||i(c),!0});Rt(v1,{displayName:"Command<insertTableCommand>",group:"Table"});const sD=Lt("MoveRow",()=>({from:e,to:t}={})=>(n,r)=>{const{tr:i}=n;return!!(r!=null&&r(h4t(i,e??0,t??0,!0)))});Rt(sD,{displayName:"Command<moveRowCommand>",group:"Table"});const lD=Lt("MoveCol",()=>({from:e,to:t}={})=>(n,r)=>{const{tr:i}=n;return!!(r!=null&&r(f4t(i,e??0,t??0,!0)))});Rt(lD,{displayName:"Command<moveColCommand>",group:"Table"});const cD=Lt("SelectRow",()=>(e=0)=>(t,n)=>{const{tr:r}=t;return!!(n!=null&&n(l4t(e)(r)))});Rt(cD,{displayName:"Command<selectRowCommand>",group:"Table"});const uD=Lt("SelectCol",()=>(e=0)=>(t,n)=>{const{tr:r}=t;return!!(n!=null&&n(c4t(e)(r)))});Rt(uD,{displayName:"Command<selectColCommand>",group:"Table"});const dD=Lt("SelectTable",()=>()=>(e,t)=>{const{tr:n}=e;return!!(t!=null&&t(s4t(n)))});Rt(dD,{displayName:"Command<selectTableCommand>",group:"Table"});const fD=Lt("DeleteSelectedCells",()=>()=>(e,t)=>{const{selection:n}=e;if(!(n instanceof an))return!1;const r=n.isRowSelection(),i=n.isColSelection();return r&&i?$2t(e,t):i?D2t(e,t):T2t(e,t)});Rt(fD,{displayName:"Command<deleteSelectedCellsCommand>",group:"Table"});const hD=Lt("AddColBefore",()=>()=>x2t);Rt(hD,{displayName:"Command<addColBeforeCommand>",group:"Table"});const pD=Lt("AddColAfter",()=>()=>C2t);Rt(pD,{displayName:"Command<addColAfterCommand>",group:"Table"});const mD=Lt("AddRowBefore",e=>()=>(t,n)=>{if(!Xi(t))return!1;if(n){const r=$u(t);n(zG(e,t.tr,r,r.top))}return!0});Rt(mD,{displayName:"Command<addRowBeforeCommand>",group:"Table"});const gD=Lt("AddRowAfter",e=>()=>(t,n)=>{if(!Xi(t))return!1;if(n){const r=$u(t);n(zG(e,t.tr,r,r.bottom))}return!0});Rt(gD,{displayName:"Command<addRowAfterCommand>",group:"Table"});const Rm=Lt("SetAlign",()=>(e="left")=>A2t("alignment",e));Rt(Rm,{displayName:"Command<setAlignCommand>",group:"Table"});const yD=ea("tableKeymap",{NextCell:{shortcuts:["Mod-]","Tab"],command:e=>{const t=e.get(Bt);return()=>t.call(aD.key)}},PrevCell:{shortcuts:["Mod-[","Shift-Tab"],command:e=>{const t=e.get(Bt);return()=>t.call(iD.key)}},ExitTable:{shortcuts:["Mod-Enter"],command:e=>{const t=e.get(Bt);return()=>t.call(oD.key)}}});Rt(yD.ctx,{displayName:"KeymapCtx<table>",group:"Table"});Rt(yD.shortcuts,{displayName:"Keymap<table>",group:"Table"});const Z6="footnote_definition",XN="footnoteDefinition",_D=cr("footnote_definition",()=>({group:"block",content:"block+",defining:!0,attrs:{label:{default:""}},parseDOM:[{tag:`dl[data-type="${Z6}"]`,getAttrs:e=>{if(!(e instanceof HTMLElement))throw Ma(e);return{label:e.dataset.label}},contentElement:"dd"}],toDOM:e=>{const t=e.attrs.label;return["dl",{"data-label":t,"data-type":Z6},["dt",t],["dd",0]]},parseMarkdown:{match:({type:e})=>e===XN,runner:(e,t,n)=>{e.openNode(n,{label:t.label}).next(t.children).closeNode()}},toMarkdown:{match:e=>e.type.name===Z6,runner:(e,t)=>{e.openNode(XN,void 0,{label:t.attrs.label,identifier:t.attrs.label}).next(t.content).closeNode()}}}));Rt(_D.ctx,{displayName:"NodeSchemaCtx<footnodeDef>",group:"footnote"});Rt(_D.node,{displayName:"NodeSchema<footnodeDef>",group:"footnote"});const X6="footnote_reference",bD=cr("footnote_reference",()=>({group:"inline",inline:!0,atom:!0,attrs:{label:{default:""}},parseDOM:[{tag:`sup[data-type="${X6}"]`,getAttrs:e=>{if(!(e instanceof HTMLElement))throw Ma(e);return{label:e.dataset.label}}}],toDOM:e=>{const t=e.attrs.label;return["sup",{"data-label":t,"data-type":X6},t]},parseMarkdown:{match:({type:e})=>e==="footnoteReference",runner:(e,t,n)=>{e.addNode(n,{label:t.label})}},toMarkdown:{match:e=>e.type.name===X6,runner:(e,t)=>{e.addNode("footnoteReference",void 0,void 0,{label:t.attrs.label,identifier:t.attrs.label})}}}));Rt(bD.ctx,{displayName:"NodeSchemaCtx<footnodeRef>",group:"footnote"});Rt(bD.node,{displayName:"NodeSchema<footnodeRef>",group:"footnote"});const LG=Is.extendSchema(e=>t=>{const n=e(t);return{...n,attrs:{...n.attrs,checked:{default:null}},parseDOM:[{tag:'li[data-item-type="task"]',getAttrs:r=>{if(!(r instanceof HTMLElement))throw Ma(r);return{label:r.dataset.label,listType:r.dataset["list-type"],spread:r.dataset.spread,checked:r.dataset.checked?r.dataset.checked==="true":null}}},...(n==null?void 0:n.parseDOM)||[]],toDOM:r=>n.toDOM&&r.attrs.checked==null?n.toDOM(r):["li",{"data-item-type":"task","data-label":r.attrs.label,"data-list-type":r.attrs.listType,"data-spread":r.attrs.spread,"data-checked":r.attrs.checked},0],parseMarkdown:{match:({type:r})=>r==="listItem",runner:(r,i,a)=>{if(i.checked==null){n.parseMarkdown.runner(r,i,a);return}const o=i.label!=null?`${i.label}.`:"•",s=i.checked!=null?!!i.checked:null,l=i.label!=null?"ordered":"bullet",c=i.spread!=null?`${i.spread}`:"true";r.openNode(a,{label:o,listType:l,spread:c,checked:s}),r.next(i.children),r.closeNode()}},toMarkdown:{match:r=>r.type.name==="list_item",runner:(r,i)=>{if(i.attrs.checked==null){n.toMarkdown.runner(r,i);return}const a=i.attrs.label,o=i.attrs.listType,s=i.attrs.spread==="true",l=i.attrs.checked;r.openNode("listItem",void 0,{label:a,listType:o,spread:s,checked:l}),r.next(i.content),r.closeNode()}}}});Rt(LG,{displayName:"NodeSchema<listItem>",group:"ListItem"});const IG=vo(()=>new Yl(/^\[(?<checked>\s|x)\]\s$/,(e,t,n,r)=>{var i;const a=e.doc.resolve(n);let o=0,s=a.node(o);for(;s&&s.type.name!=="list_item";)o--,s=a.node(o);if(!s||s.attrs.checked!=null)return null;const l=((i=t.groups)==null?void 0:i.checked)==="x",c=a.before(o),u=e.tr;return u.deleteRange(n,r).setNodeMarkup(c,void 0,{...s.attrs,checked:l}),u}));Rt(IG,{displayName:"InputRule<wrapInTaskListInputRule>",group:"ListItem"});const p4t=[rD,yD].flat(),m4t=[NG,IG],BG=yr(e=>{const t=new Fn("MILKDOWN_AUTO_INSERT_ZERO_SPACE"),n=i=>i.type===Zl.type(e),r=i=>n(i)&&i.nodeSize===2;return new Bn({key:t,props:{handleDOMEvents:{compositionstart(i){const{state:a,dispatch:o}=i,{tr:s,selection:l}=a,{$from:c}=l;return mM.safari&&Xi(a)&&l.empty&&r(c.parent)&&o(s.insertText("⁠",c.start())),!1},compositionend(i){const{state:a,dispatch:o}=i,{tr:s,selection:l}=a,{$from:c}=l;return mM.safari&&Xi(a)&&l.empty&&n(c.parent)&&c.parent.textContent.startsWith("⁠")&&o(s.delete(c.start(),c.start()+1)),!1}}}})});Rt(BG,{displayName:"Prose<autoInsertZeroSpaceInTablePlugin>",group:"Prose"});const RG=yr(()=>h2t({}));Rt(RG,{displayName:"Prose<columnResizingPlugin>",group:"Prose"});const PG=yr(()=>M2t());Rt(PG,{displayName:"Prose<tableEditingPlugin>",group:"Prose"});const jG=Ps(()=>a4t);Rt(jG,{displayName:"Remark<remarkGFMPlugin>",group:"Remark"});const g4t=[BG,RG,PG,jG],y4t=[LG,b1,k1,m2,w1,_D,bD,nD,vp].flat(),_4t=[aD,iD,oD,v1,sD,lD,cD,uD,dD,fD,mD,gD,hD,pD,Rm,_1],b4t=[y4t,m4t,p4t,g4t,_4t].flat(),k4t=e=>qp(e).match("left",()=>"row").match("top",()=>"column").getOrElse(()=>"table"),w4t=()=>{const{spec:e}=Np(),t=e==null?void 0:e.type,n=(e==null?void 0:e.index)??0,{editor:r,loading:i}=li(),a=F.useRef(null),{mode:o}=ta(),[s,l]=F.useState(!1),c=F.useMemo(()=>k4t(t),[t]);return o==="preview"?null:j(v4t,{ref:a,space:"no",draggable:t!=="top-left",$dragOver:s,$position:c,onClick:u=>{u.stopPropagation();const f=a.current;i||!f||!r||r.status!==pn.Created||r.action(h=>{var b;const m=h.get(cw.key);(b=m==null?void 0:m.getInstance())==null||b.setProps({getReferenceClientRect:()=>f.getBoundingClientRect()}),m==null||m.show();const g=h.get(Bt);t==="left"?g.call(cD.key,n):t==="top"?g.call(uD.key,n):g.call(dD.key)})},onDragStart:u=>{u.stopPropagation();const f={index:e==null?void 0:e.index,type:e==null?void 0:e.type};u.dataTransfer.setData("application/milkdown-table-sort",JSON.stringify(f)),u.dataTransfer.effectAllowed="move"},onDragOver:u=>{l(!0),u.stopPropagation(),u.preventDefault(),u.dataTransfer.dropEffect="move"},onDragLeave:()=>{l(!1)},onDrop:u=>{if(l(!1),t==="top-left")return;const f=e==null?void 0:e.index;if(i||f==null||!r||r.status!==pn.Created)return;const h=u.dataTransfer.getData("application/milkdown-table-sort");try{const{index:m,type:g}=JSON.parse(h);r.action(b=>{const C=b.get(Bt),w={from:Number(m),to:f};C.call(g==="left"?sD.key:lD.key,w)})}catch{}}})},qf={top:{row:ee(1),column:ee(-12),table:ee(-12)},bottom:{row:ee(1),column:"auto",table:"auto"},left:{row:ee(-12),column:ee(1),table:ee(-12)},right:{row:"auto",column:ee(1),table:"auto"},width:{row:ee(8),column:"auto",table:ee(8)},height:{row:"auto",column:ee(8),table:ee(8)}},v4t=Ae(Xt).withConfig({displayName:"ButtonWidgetStyled"})(["position:absolute;background-color:",";width:",";height:",";border-radius:",";inset:"," "," "," ",";&:hover,&:focus{background-color:",";}",";",""],e=>e.theme.colors.secondaryGrey,e=>qf.width[e.$position],e=>qf.height[e.$position],ee(1),e=>qf.top[e.$position],e=>qf.right[e.$position],e=>qf.bottom[e.$position],e=>qf.left[e.$position],e=>e.theme.colors.green,e=>e.$dragOver&&Tn(["border:1px solid ",";"],t=>t.theme.colors.green),e=>e.$position==="table"&&Tn(["border-radius:50%;opacity:0.5;"])),x4t=()=>{const e=$v();return{tableSelectorPlugin:F.useMemo(()=>yr(()=>{const n=new Fn("MILKDOWN_TABLE_SELECTOR");return new Bn({key:n,state:{init(){return{decorations:en.empty,pos:0}},apply(r,i,a,o){const s=fd(0,r.selection);if(!s)return{decorations:en.empty,pos:0};const l=hd(0,r.selection);if(!l)return{decorations:en.empty,pos:0};const c=e({as:"div",component:w4t}),[u]=s;if(!u)return{decorations:en.empty,pos:0};const f=[];return f.push(c(u.pos+1,{type:"top-left"})),s.forEach((h,m)=>{f.push(c(h.pos+1,{type:"left",index:m}))}),l.forEach((h,m)=>{f.push(c(h.pos+1,{type:"top",index:m}))}),i.pos===u.pos&&a.doc.eq(o.doc)?i:{decorations:en.create(r.doc,f),pos:u.pos}}},props:{decorations(r){return n.getState(r).decorations}}})}),[e])}},C4t=()=>{var c;const e=F.useRef(null),{view:t}=Fv(),n=F.useRef(),{loading:r,editor:i}=li(),a=t.state.selection instanceof an&&t.state.selection.isRowSelection(),o=t.state.selection instanceof an&&t.state.selection.isColSelection(),s=a&&o,l=a&&((c=t.state.doc.nodeAt(t.state.selection.$headCell.pos))==null?void 0:c.type.name)==="table_header";return F.useEffect(()=>{if(e.current&&!r&&!n.current&&t&&t.state&&i&&i.status===pn.Created){const u=new TH({content:e.current,tippyOptions:{zIndex:30,arrow:!1},shouldShow:()=>!1});u.update(t);const f=i;f&&f.ctx&&f.ctx.isInjected(cw.key)&&(f.ctx.set(cw.key,u),n.current=u)}return()=>{var u;(u=n.current)==null||u.destroy()}},[i,r,t,e,n]),j("div",{style:{display:"none"},children:He(S4t,{ref:e,children:[!s&&!l&&a&&j(Xt,{oval:!0,space:"small",color:"secondary",onClick:()=>{var u;r||!i||i.status!==pn.Created||(i.action(f=>{f.get(Bt).call(mD.key)}),(u=n.current)==null||u.hide())},children:j(ut,{icon:"add_row_top"})}),!s&&o&&j(Xt,{oval:!0,space:"small",color:"secondary",onClick:()=>{var u;r||!i||i.status!==pn.Created||(i.action(f=>{f.get(Bt).call(hD.key)}),(u=n.current)==null||u.hide())},children:j(ut,{icon:"add_column_left"})}),(s||!l)&&j(Xt,{oval:!0,space:"small",color:"secondary",onClick:()=>{var u;r||!i||i.status!==pn.Created||(i.action(f=>{f.get(Bt).call(fD.key)}),(u=n.current)==null||u.hide())},children:j(ut,{icon:"delete"})}),!s&&a&&j(Xt,{oval:!0,space:"small",color:"secondary",onClick:()=>{var u;r||!i||i.status!==pn.Created||(i.action(f=>{f.get(Bt).call(gD.key)}),(u=n.current)==null||u.hide())},children:j(ut,{icon:"add_row_bottom"})}),!s&&o&&j(Xt,{oval:!0,space:"small",color:"secondary",onClick:()=>{var u;r||!i||i.status!==pn.Created||(i.action(f=>{f.get(Bt).call(pD.key)}),(u=n.current)==null||u.hide())},children:j(ut,{icon:"add_column_right"})}),!s&&o&&j(Xt,{oval:!0,space:"small",color:"secondary",onClick:()=>{r||!i||i.status!==pn.Created||i.action(u=>{u.get(Bt).call(Rm.key,"left")})},children:j(ut,{icon:"text_align_left"})}),!s&&o&&j(Xt,{oval:!0,space:"small",color:"secondary",onClick:()=>{r||!i||i.status!==pn.Created||i.action(u=>{u.get(Bt).call(Rm.key,"right")})},children:j(ut,{icon:"text_align_right"})}),!s&&o&&j(Xt,{oval:!0,space:"small",color:"secondary",onClick:()=>{r||!i||i.status!==pn.Created||i.action(u=>{u.get(Bt).call(Rm.key,"center")})},children:j(ut,{icon:"text_align_center"})})]})})},S4t=Ae.div.withConfig({displayName:"TableTooltipContainerStyled"})(["display:flex;gap:",";align-items:center;padding:"," ",";background-color:",";border:"," solid ",";border-radius:",";"],ee(20),ee(6),ee(15),e=>e.theme.colors.white,ee(1),e=>e.theme.colors.lightGrey,ee(8)),JN=AH("TABLE"),cw=Lr(null,"tableTooltip"),D4t=()=>{const e=oS(),{tableSelectorPlugin:t}=x4t();return F.useMemo(()=>[b4t,JN,cw,r=>()=>{r.set(JN.key,{view:e({component:C4t})})},t].flat(),[t,e])};let VG=class{constructor(){this.beforeMountedListeners=[],this.mountedListeners=[],this.updatedListeners=[],this.markdownUpdatedListeners=[],this.blurListeners=[],this.focusListeners=[],this.destroyListeners=[],this.beforeMount=t=>(this.beforeMountedListeners.push(t),this),this.mounted=t=>(this.mountedListeners.push(t),this),this.updated=t=>(this.updatedListeners.push(t),this)}get listeners(){return{beforeMount:this.beforeMountedListeners,mounted:this.mountedListeners,updated:this.updatedListeners,markdownUpdated:this.markdownUpdatedListeners,blur:this.blurListeners,focus:this.focusListeners,destroy:this.destroyListeners}}markdownUpdated(t){return this.markdownUpdatedListeners.push(t),this}blur(t){return this.blurListeners.push(t),this}focus(t){return this.focusListeners.push(t),this}destroy(t){return this.destroyListeners.push(t),this}};const uw=un(new VG,"listener"),E4t=new Fn("MILKDOWN_LISTENER"),qG=e=>(e.inject(uw,new VG),async()=>{await e.wait(zd);const t=e.get(uw),{listeners:n}=t;n.beforeMount.forEach(s=>s(e)),await e.wait(Am);const r=e.get($d);let i=null,a=null;const o=new Bn({key:E4t,view:()=>({destroy:()=>{n.destroy.forEach(s=>s(e))}}),props:{handleDOMEvents:{focus:()=>(n.focus.forEach(s=>s(e)),!1),blur:()=>(n.blur.forEach(s=>s(e)),!1)}},state:{init:()=>{},apply:s=>!s.docChanged||s.getMeta("addToHistory")===!1?void 0:TS(()=>{const{doc:l}=s;if(n.updated.length>0&&(i==null||!i.eq(l))&&n.updated.forEach(c=>{c(e,l,i)}),n.markdownUpdated.length>0&&(i==null||!i.eq(l))){const c=r(l);n.markdownUpdated.forEach(u=>{u(e,c,a)}),a=c}i=l},200)()}});e.update(Ns,s=>s.concat(o)),await e.wait(hb),n.mounted.forEach(s=>s(e))});qG.meta={package:"@milkdown/plugin-listener",displayName:"Listener"};var dw={exports:{}};/** +`))}function l(m,g,b,C){const w=b.enter("tableCell"),k=b.enter("phrasing"),S=mS(m,b,{...C,before:a,after:a});return k(),w(),S}function c(m,g){return H3t(m,{align:g,alignDelimiters:r,padding:n,stringLength:i})}function u(m,g,b){const C=m.children;let w=-1;const k=[],S=g.enter("table");for(;++w<C.length;)k[w]=f(C[w],g,b);return S(),k}function f(m,g,b){const C=m.children;let w=-1;const k=[],S=g.enter("tableRow");for(;++w<C.length;)k[w]=l(C[w],m,g,b);return S(),k}function h(m,g,b){let C=fS(m,g,b);return b.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}const e4t={exit:{taskListCheckValueChecked:GN,taskListCheckValueUnchecked:GN,paragraph:n4t}},t4t={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:r4t}};function GN(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function n4t(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1],r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,o;for(;++a<i.length;){const s=i[a];if(s.type==="paragraph"){o=s;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function r4t(e,t,n,r){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",s=Lp(r);a&&s.move(o);let l=PV(e,t,n,{...r,...s.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(u){return u+o}}function i4t(){return[h3t,S3t(),R3t,G3t,e4t]}function a4t(e){return{extensions:[p3t,D3t(),P3t,Q3t(e),t4t]}}function o4t(e={}){const t=this.data();n("micromarkExtensions",f3t(e)),n("fromMarkdownExtensions",i4t()),n("toMarkdownExtensions",a4t(e));function n(r,i){(t[r]?t[r]:t[r]=[]).push(i)}}const Rt=(e,t)=>(Object.assign(e,{meta:{package:"@milkdown/preset-gfm",...t}}),e),nD=Xg("strike_through");Rt(nD,{displayName:"Attr<strikethrough>",group:"Strikethrough"});const vp=Zg("strike_through",e=>({parseDOM:[{tag:"del"},{style:"text-decoration",getAttrs:t=>t==="line-through"}],toDOM:t=>["del",e.get(nD.key)(t)],parseMarkdown:{match:t=>t.type==="delete",runner:(t,n,r)=>{t.openMark(r),t.next(n.children),t.closeMark(r)}},toMarkdown:{match:t=>t.type.name==="strike_through",runner:(t,n)=>{t.withMark(n,"delete")}}}));Rt(vp.mark,{displayName:"MarkSchema<strikethrough>",group:"Strikethrough"});Rt(vp.ctx,{displayName:"MarkSchemaCtx<strikethrough>",group:"Strikethrough"});const _1=Lt("ToggleStrikeThrough",e=>()=>jv(vp.type(e)));Rt(_1,{displayName:"Command<ToggleStrikethrough>",group:"Strikethrough"});const rD=ea("strikeThroughKeymap",{ToggleStrikethrough:{shortcuts:"Mod-Alt-x",command:e=>{const t=e.get(Bt);return()=>t.call(_1.key)}}});Rt(rD.ctx,{displayName:"KeymapCtx<strikethrough>",group:"Strikethrough"});Rt(rD.shortcuts,{displayName:"Keymap<strikethrough>",group:"Strikethrough"});const zG=(e,t=3,n=3)=>{const r=Array(n).fill(0).map(()=>w1.type(e).createAndFill()),i=Array(n).fill(0).map(()=>m2.type(e).createAndFill()),a=Array(t).fill(0).map((o,s)=>k1.type(e).create(null,s===0?i:r));return b1.type(e).create(null,a)},Wp=e=>dq(t=>t.type.spec.tableRole==="table")(e),fd=(e,t)=>{const n=Wp(t);if(!n)return;const r=mn.get(n.node);if(!(e<0||e>=r.width))return r.cellsInRect({left:e,right:e+1,top:0,bottom:r.height}).map(i=>{const a=n.node.nodeAt(i);if(!a)return;const o=i+n.start;return{pos:o,start:o+1,node:a}}).filter(i=>i!=null)},hd=(e,t)=>{const n=Wp(t);if(!n)return;const r=mn.get(n.node);if(!(e<0||e>=r.height))return r.cellsInRect({left:0,right:r.width,top:e,bottom:e+1}).map(i=>{const a=n.node.nodeAt(i);if(!a)return;const o=i+n.start;return{pos:o,start:o+1,node:a}}).filter(i=>i!=null)},s4t=e=>{const t=Wp(e);if(!t)return;const n=mn.get(t.node);return n.cellsInRect({left:0,right:n.width,top:0,bottom:n.height}).map(r=>{const i=t.node.nodeAt(r),a=r+t.start;return{pos:a,start:a+1,node:i}})},l4t=e=>{const t=s4t(e.selection);if(t&&t[0]){const n=e.doc.resolve(t[0].pos),r=t[t.length-1];if(r){const i=e.doc.resolve(r.pos);return Pv(e.setSelection(new an(i,n)))}}return e};function FG(e,t,{map:n,tableStart:r,table:i},a){const o=Array(a).fill(0).reduce((l,c,u)=>l+i.child(u).nodeSize,r),s=Array(n.width).fill(0).map((l,c)=>{const u=i.nodeAt(n.map[c]);return w1.type(e).createAndFill({alignment:u==null?void 0:u.attrs.alignment})});return t.insert(o,k1.type(e).create(null,s)),t}const $G=e=>t=>n=>{const r=Wp(n.selection),i=e==="row";if(r){const a=mn.get(r.node);if(t>=0&&t<(i?a.height:a.width)){const o=a.positionAt(i?t:a.height-1,i?a.width-1:t,r.node),s=n.doc.resolve(r.start+o),l=i?an.rowSelection:an.colSelection,c=a.positionAt(i?t:0,i?0:t,r.node),u=n.doc.resolve(r.start+c);return Pv(n.setSelection(l(s,u)))}}return n},c4t=$G("row"),u4t=$G("col"),KN=e=>e[0].map((t,n)=>e.map(r=>r[n])),MG=(e,t)=>{const n=[],r=mn.get(e);for(let i=0;i<r.height;i++){const a=e.child(i),o=[];for(let s=0;s<r.width;s++){if(!t[i][s])continue;const l=r.map[i*r.width+s],c=t[i][s],u=e.nodeAt(l).type.createChecked(Object.assign({},c.attrs),c.content,c.marks);o.push(u)}n.push(a.type.createChecked(a.attrs,o,a.marks))}return e.type.createChecked(e.attrs,n,e.marks)},OG=e=>{const t=mn.get(e),n=[];for(let r=0;r<t.height;r++){const i=[],a={};for(let o=0;o<t.width;o++){const s=t.map[r*t.width+o],l=e.nodeAt(s),c=t.findCell(s);if(a[s]||c.top!==r){i.push(null);continue}a[s]=!0,i.push(l)}n.push(i)}return n},NG=(e,t,n,r)=>{const i=t[0]>n[0]?-1:1,a=e.splice(t[0],t.length),o=a.length%2===0?1:0;let s;return r===-1&&i===1?s=n[0]-1:r===1&&i===-1?s=n[n.length-1]-o+1:s=i===-1?n[0]:n[n.length-1]-o,e.splice(s,0,...a),e},d4t=(e,t,n,r)=>{let i=KN(OG(e.node));return i=NG(i,t,n,r),i=KN(i),MG(e.node,i)},f4t=(e,t,n,r)=>{let i=OG(e.node);return i=NG(i,t,n,r),MG(e.node,i)},YN=(e,t)=>{let n=e,r=e;for(let u=e;u>=0;u--){const f=fd(u,t.selection);f&&f.forEach(h=>{const m=h.node.attrs.colspan+u-1;m>=n&&(n=u),m>r&&(r=m)})}for(let u=e;u<=r;u++){const f=fd(u,t.selection);f&&f.forEach(h=>{const m=h.node.attrs.colspan+u-1;h.node.attrs.colspan>1&&m>r&&(r=m)})}const i=[];for(let u=n;u<=r;u++){const f=fd(u,t.selection);f&&f.length&&i.push(u)}n=i[0],r=i[i.length-1];const a=fd(n,t.selection),o=hd(0,t.selection),s=t.doc.resolve(a[a.length-1].pos);let l;for(let u=r;u>=n;u--){const f=fd(u,t.selection);if(f&&f.length){for(let h=o.length-1;h>=0;h--)if(o[h].pos===f[0].pos){l=f[0];break}if(l)break}}const c=t.doc.resolve(l.pos);return{$anchor:s,$head:c,indexes:i}},ZN=(e,t)=>{let n=e,r=e;for(let u=e;u>=0;u--)hd(u,t.selection).forEach(f=>{const h=f.node.attrs.rowspan+u-1;h>=n&&(n=u),h>r&&(r=h)});for(let u=e;u<=r;u++)hd(u,t.selection).forEach(f=>{const h=f.node.attrs.rowspan+u-1;f.node.attrs.rowspan>1&&h>r&&(r=h)});const i=[];for(let u=n;u<=r;u++){const f=hd(u,t.selection);f&&f.length&&i.push(u)}n=i[0],r=i[i.length-1];const a=hd(n,t.selection),o=fd(0,t.selection),s=t.doc.resolve(a[a.length-1].pos);let l;for(let u=r;u>=n;u--){const f=hd(u,t.selection);if(f&&f.length){for(let h=o.length-1;h>=0;h--)if(o[h].pos===f[0].pos){l=f[0];break}if(l)break}}const c=t.doc.resolve(l.pos);return{$anchor:s,$head:c,indexes:i}};function h4t(e,t,n,r=!0){const i=Wp(e.selection);if(!i)return e;const{indexes:a}=YN(t,e),{indexes:o}=YN(n,e);if(a.includes(n))return e;const s=d4t(i,a,o,0),l=Pv(e).replaceWith(i.pos,i.pos+i.node.nodeSize,s);if(!r)return l;const c=mn.get(s),u=i.start,f=n,h=c.positionAt(c.height-1,f,s),m=l.doc.resolve(u+h),g=an.colSelection,b=c.positionAt(0,f,s),C=l.doc.resolve(u+b);return l.setSelection(g(m,C))}function p4t(e,t,n,r=!0){const i=Wp(e.selection);if(!i)return e;const{indexes:a}=ZN(t,e),{indexes:o}=ZN(n,e);if(a.includes(n))return e;const s=f4t(i,a,o,0),l=Pv(e).replaceWith(i.pos,i.pos+i.node.nodeSize,s);if(!r)return l;const c=mn.get(s),u=i.start,f=n,h=c.positionAt(f,c.width-1,s),m=l.doc.resolve(u+h),g=an.rowSelection,b=c.positionAt(f,0,s),C=l.doc.resolve(u+b);return l.setSelection(g(m,C))}const p2=Gvt({tableGroup:"block",cellContent:"paragraph",cellAttributes:{alignment:{default:"left",getFromDOM:e=>e.style.textAlign||"left",setDOMAttr:(e,t)=>{t.style=`text-align: ${e||"left"}`}}}}),b1=cr("table",()=>({...p2.table,parseMarkdown:{match:e=>e.type==="table",runner:(e,t,n)=>{const r=t.align,i=t.children.map((a,o)=>({...a,align:r,isHeader:o===0}));e.openNode(n),e.next(i),e.closeNode()}},toMarkdown:{match:e=>e.type.name==="table",runner:(e,t)=>{var n;const r=(n=t.content.firstChild)==null?void 0:n.content;if(!r)return;const i=[];r.forEach(a=>{i.push(a.attrs.alignment)}),e.openNode("table",void 0,{align:i}),e.next(t.content),e.closeNode()}}}));Rt(b1.node,{displayName:"NodeSchema<table>",group:"Table"});Rt(b1.ctx,{displayName:"NodeSchemaCtx<table>",group:"Table"});const k1=cr("table_row",()=>({...p2.table_row,parseMarkdown:{match:e=>e.type==="tableRow",runner:(e,t,n)=>{const r=t.align,i=t.children.map((a,o)=>({...a,align:r[o],isHeader:t.isHeader}));e.openNode(n),e.next(i),e.closeNode()}},toMarkdown:{match:e=>e.type.name==="table_row",runner:(e,t)=>{e.openNode("tableRow"),e.next(t.content),e.closeNode()}}}));Rt(k1.node,{displayName:"NodeSchema<tableRow>",group:"Table"});Rt(k1.ctx,{displayName:"NodeSchemaCtx<tableRow>",group:"Table"});const w1=cr("table_cell",()=>({...p2.table_cell,parseMarkdown:{match:e=>e.type==="tableCell"&&!e.isHeader,runner:(e,t,n)=>{const r=t.align;e.openNode(n,{alignment:r}).openNode(e.schema.nodes.paragraph).next(t.children).closeNode().closeNode()}},toMarkdown:{match:e=>e.type.name==="table_cell",runner:(e,t)=>{e.openNode("tableCell").next(t.content).closeNode()}}}));Rt(w1.node,{displayName:"NodeSchema<tableCell>",group:"Table"});Rt(w1.ctx,{displayName:"NodeSchemaCtx<tableCell>",group:"Table"});const m2=cr("table_header",()=>({...p2.table_header,parseMarkdown:{match:e=>e.type==="tableCell"&&!!e.isHeader,runner:(e,t,n)=>{const r=t.align;e.openNode(n,{alignment:r}),e.openNode(e.schema.nodes.paragraph),e.next(t.children),e.closeNode(),e.closeNode()}},toMarkdown:{match:e=>e.type.name==="table_header",runner:(e,t)=>{e.openNode("tableCell"),e.next(t.content),e.closeNode()}}}));Rt(m2.node,{displayName:"NodeSchema<tableHeader>",group:"Table"});Rt(m2.ctx,{displayName:"NodeSchemaCtx<tableHeader>",group:"Table"});const LG=vo(e=>new Yl(/^\|(?<col>\d+)[xX](?<row>\d+)\|\s$/,(t,n,r,i)=>{var a,o;const s=t.doc.resolve(r);if(!s.node(-1).canReplaceWith(s.index(-1),s.indexAfter(-1),b1.type(e)))return null;const l=zG(e,Number((a=n.groups)==null?void 0:a.row),Number((o=n.groups)==null?void 0:o.col)),c=t.tr.replaceRangeWith(r,i,l);return c.setSelection(Nt.create(c.doc,r+3)).scrollIntoView()}));Rt(LG,{displayName:"InputRule<insertTableInputRule>",group:"Table"});const iD=Lt("GoToPrevTableCell",()=>()=>_G(-1));Rt(iD,{displayName:"Command<goToPrevTableCellCommand>",group:"Table"});const aD=Lt("GoToNextTableCell",()=>()=>_G(1));Rt(aD,{displayName:"Command<goToNextTableCellCommand>",group:"Table"});const oD=Lt("BreakTable",e=>()=>(t,n)=>{if(!Xi(t))return!1;const{$head:r}=t.selection,i=r.after(),a=t.tr.replaceWith(i,i,Zl.type(e).createAndFill());return a.setSelection($t.near(a.doc.resolve(i),1)).scrollIntoView(),n==null||n(a),!0});Rt(oD,{displayName:"Command<breakTableCommand>",group:"Table"});const v1=Lt("InsertTable",e=>({row:t,col:n}={})=>(r,i)=>{const{selection:a,tr:o}=r,{from:s}=a,l=zG(e,t,n),c=o.replaceSelectionWith(l),u=$t.findFrom(c.doc.resolve(s),1,!0);return u&&c.setSelection(u),i==null||i(c),!0});Rt(v1,{displayName:"Command<insertTableCommand>",group:"Table"});const sD=Lt("MoveRow",()=>({from:e,to:t}={})=>(n,r)=>{const{tr:i}=n;return!!(r!=null&&r(p4t(i,e??0,t??0,!0)))});Rt(sD,{displayName:"Command<moveRowCommand>",group:"Table"});const lD=Lt("MoveCol",()=>({from:e,to:t}={})=>(n,r)=>{const{tr:i}=n;return!!(r!=null&&r(h4t(i,e??0,t??0,!0)))});Rt(lD,{displayName:"Command<moveColCommand>",group:"Table"});const cD=Lt("SelectRow",()=>(e=0)=>(t,n)=>{const{tr:r}=t;return!!(n!=null&&n(c4t(e)(r)))});Rt(cD,{displayName:"Command<selectRowCommand>",group:"Table"});const uD=Lt("SelectCol",()=>(e=0)=>(t,n)=>{const{tr:r}=t;return!!(n!=null&&n(u4t(e)(r)))});Rt(uD,{displayName:"Command<selectColCommand>",group:"Table"});const dD=Lt("SelectTable",()=>()=>(e,t)=>{const{tr:n}=e;return!!(t!=null&&t(l4t(n)))});Rt(dD,{displayName:"Command<selectTableCommand>",group:"Table"});const fD=Lt("DeleteSelectedCells",()=>()=>(e,t)=>{const{selection:n}=e;if(!(n instanceof an))return!1;const r=n.isRowSelection(),i=n.isColSelection();return r&&i?M2t(e,t):i?E2t(e,t):A2t(e,t)});Rt(fD,{displayName:"Command<deleteSelectedCellsCommand>",group:"Table"});const hD=Lt("AddColBefore",()=>()=>C2t);Rt(hD,{displayName:"Command<addColBeforeCommand>",group:"Table"});const pD=Lt("AddColAfter",()=>()=>S2t);Rt(pD,{displayName:"Command<addColAfterCommand>",group:"Table"});const mD=Lt("AddRowBefore",e=>()=>(t,n)=>{if(!Xi(t))return!1;if(n){const r=$u(t);n(FG(e,t.tr,r,r.top))}return!0});Rt(mD,{displayName:"Command<addRowBeforeCommand>",group:"Table"});const gD=Lt("AddRowAfter",e=>()=>(t,n)=>{if(!Xi(t))return!1;if(n){const r=$u(t);n(FG(e,t.tr,r,r.bottom))}return!0});Rt(gD,{displayName:"Command<addRowAfterCommand>",group:"Table"});const Rm=Lt("SetAlign",()=>(e="left")=>z2t("alignment",e));Rt(Rm,{displayName:"Command<setAlignCommand>",group:"Table"});const yD=ea("tableKeymap",{NextCell:{shortcuts:["Mod-]","Tab"],command:e=>{const t=e.get(Bt);return()=>t.call(aD.key)}},PrevCell:{shortcuts:["Mod-[","Shift-Tab"],command:e=>{const t=e.get(Bt);return()=>t.call(iD.key)}},ExitTable:{shortcuts:["Mod-Enter"],command:e=>{const t=e.get(Bt);return()=>t.call(oD.key)}}});Rt(yD.ctx,{displayName:"KeymapCtx<table>",group:"Table"});Rt(yD.shortcuts,{displayName:"Keymap<table>",group:"Table"});const Z6="footnote_definition",XN="footnoteDefinition",_D=cr("footnote_definition",()=>({group:"block",content:"block+",defining:!0,attrs:{label:{default:""}},parseDOM:[{tag:`dl[data-type="${Z6}"]`,getAttrs:e=>{if(!(e instanceof HTMLElement))throw Ma(e);return{label:e.dataset.label}},contentElement:"dd"}],toDOM:e=>{const t=e.attrs.label;return["dl",{"data-label":t,"data-type":Z6},["dt",t],["dd",0]]},parseMarkdown:{match:({type:e})=>e===XN,runner:(e,t,n)=>{e.openNode(n,{label:t.label}).next(t.children).closeNode()}},toMarkdown:{match:e=>e.type.name===Z6,runner:(e,t)=>{e.openNode(XN,void 0,{label:t.attrs.label,identifier:t.attrs.label}).next(t.content).closeNode()}}}));Rt(_D.ctx,{displayName:"NodeSchemaCtx<footnodeDef>",group:"footnote"});Rt(_D.node,{displayName:"NodeSchema<footnodeDef>",group:"footnote"});const X6="footnote_reference",bD=cr("footnote_reference",()=>({group:"inline",inline:!0,atom:!0,attrs:{label:{default:""}},parseDOM:[{tag:`sup[data-type="${X6}"]`,getAttrs:e=>{if(!(e instanceof HTMLElement))throw Ma(e);return{label:e.dataset.label}}}],toDOM:e=>{const t=e.attrs.label;return["sup",{"data-label":t,"data-type":X6},t]},parseMarkdown:{match:({type:e})=>e==="footnoteReference",runner:(e,t,n)=>{e.addNode(n,{label:t.label})}},toMarkdown:{match:e=>e.type.name===X6,runner:(e,t)=>{e.addNode("footnoteReference",void 0,void 0,{label:t.attrs.label,identifier:t.attrs.label})}}}));Rt(bD.ctx,{displayName:"NodeSchemaCtx<footnodeRef>",group:"footnote"});Rt(bD.node,{displayName:"NodeSchema<footnodeRef>",group:"footnote"});const IG=Is.extendSchema(e=>t=>{const n=e(t);return{...n,attrs:{...n.attrs,checked:{default:null}},parseDOM:[{tag:'li[data-item-type="task"]',getAttrs:r=>{if(!(r instanceof HTMLElement))throw Ma(r);return{label:r.dataset.label,listType:r.dataset["list-type"],spread:r.dataset.spread,checked:r.dataset.checked?r.dataset.checked==="true":null}}},...(n==null?void 0:n.parseDOM)||[]],toDOM:r=>n.toDOM&&r.attrs.checked==null?n.toDOM(r):["li",{"data-item-type":"task","data-label":r.attrs.label,"data-list-type":r.attrs.listType,"data-spread":r.attrs.spread,"data-checked":r.attrs.checked},0],parseMarkdown:{match:({type:r})=>r==="listItem",runner:(r,i,a)=>{if(i.checked==null){n.parseMarkdown.runner(r,i,a);return}const o=i.label!=null?`${i.label}.`:"•",s=i.checked!=null?!!i.checked:null,l=i.label!=null?"ordered":"bullet",c=i.spread!=null?`${i.spread}`:"true";r.openNode(a,{label:o,listType:l,spread:c,checked:s}),r.next(i.children),r.closeNode()}},toMarkdown:{match:r=>r.type.name==="list_item",runner:(r,i)=>{if(i.attrs.checked==null){n.toMarkdown.runner(r,i);return}const a=i.attrs.label,o=i.attrs.listType,s=i.attrs.spread==="true",l=i.attrs.checked;r.openNode("listItem",void 0,{label:a,listType:o,spread:s,checked:l}),r.next(i.content),r.closeNode()}}}});Rt(IG,{displayName:"NodeSchema<listItem>",group:"ListItem"});const BG=vo(()=>new Yl(/^\[(?<checked>\s|x)\]\s$/,(e,t,n,r)=>{var i;const a=e.doc.resolve(n);let o=0,s=a.node(o);for(;s&&s.type.name!=="list_item";)o--,s=a.node(o);if(!s||s.attrs.checked!=null)return null;const l=((i=t.groups)==null?void 0:i.checked)==="x",c=a.before(o),u=e.tr;return u.deleteRange(n,r).setNodeMarkup(c,void 0,{...s.attrs,checked:l}),u}));Rt(BG,{displayName:"InputRule<wrapInTaskListInputRule>",group:"ListItem"});const m4t=[rD,yD].flat(),g4t=[LG,BG],RG=yr(e=>{const t=new Fn("MILKDOWN_AUTO_INSERT_ZERO_SPACE"),n=i=>i.type===Zl.type(e),r=i=>n(i)&&i.nodeSize===2;return new Bn({key:t,props:{handleDOMEvents:{compositionstart(i){const{state:a,dispatch:o}=i,{tr:s,selection:l}=a,{$from:c}=l;return mM.safari&&Xi(a)&&l.empty&&r(c.parent)&&o(s.insertText("⁠",c.start())),!1},compositionend(i){const{state:a,dispatch:o}=i,{tr:s,selection:l}=a,{$from:c}=l;return mM.safari&&Xi(a)&&l.empty&&n(c.parent)&&c.parent.textContent.startsWith("⁠")&&o(s.delete(c.start(),c.start()+1)),!1}}}})});Rt(RG,{displayName:"Prose<autoInsertZeroSpaceInTablePlugin>",group:"Prose"});const PG=yr(()=>p2t({}));Rt(PG,{displayName:"Prose<columnResizingPlugin>",group:"Prose"});const jG=yr(()=>O2t());Rt(jG,{displayName:"Prose<tableEditingPlugin>",group:"Prose"});const VG=Ps(()=>o4t);Rt(VG,{displayName:"Remark<remarkGFMPlugin>",group:"Remark"});const y4t=[RG,PG,jG,VG],_4t=[IG,b1,k1,m2,w1,_D,bD,nD,vp].flat(),b4t=[aD,iD,oD,v1,sD,lD,cD,uD,dD,fD,mD,gD,hD,pD,Rm,_1],k4t=[_4t,g4t,m4t,y4t,b4t].flat(),w4t=e=>qp(e).match("left",()=>"row").match("top",()=>"column").getOrElse(()=>"table"),v4t=()=>{const{spec:e}=Np(),t=e==null?void 0:e.type,n=(e==null?void 0:e.index)??0,{editor:r,loading:i}=li(),a=F.useRef(null),{mode:o}=ta(),[s,l]=F.useState(!1),c=F.useMemo(()=>w4t(t),[t]);return o==="preview"?null:j(x4t,{ref:a,space:"no",draggable:t!=="top-left",$dragOver:s,$position:c,onClick:u=>{u.stopPropagation();const f=a.current;i||!f||!r||r.status!==fn.Created||r.action(h=>{var b;const m=h.get(cw.key);(b=m==null?void 0:m.getInstance())==null||b.setProps({getReferenceClientRect:()=>f.getBoundingClientRect()}),m==null||m.show();const g=h.get(Bt);t==="left"?g.call(cD.key,n):t==="top"?g.call(uD.key,n):g.call(dD.key)})},onDragStart:u=>{u.stopPropagation();const f={index:e==null?void 0:e.index,type:e==null?void 0:e.type};u.dataTransfer.setData("application/milkdown-table-sort",JSON.stringify(f)),u.dataTransfer.effectAllowed="move"},onDragOver:u=>{l(!0),u.stopPropagation(),u.preventDefault(),u.dataTransfer.dropEffect="move"},onDragLeave:()=>{l(!1)},onDrop:u=>{if(l(!1),t==="top-left")return;const f=e==null?void 0:e.index;if(i||f==null||!r||r.status!==fn.Created)return;const h=u.dataTransfer.getData("application/milkdown-table-sort");try{const{index:m,type:g}=JSON.parse(h);r.action(b=>{const C=b.get(Bt),w={from:Number(m),to:f};C.call(g==="left"?sD.key:lD.key,w)})}catch{}}})},qf={top:{row:ee(1),column:ee(-12),table:ee(-12)},bottom:{row:ee(1),column:"auto",table:"auto"},left:{row:ee(-12),column:ee(1),table:ee(-12)},right:{row:"auto",column:ee(1),table:"auto"},width:{row:ee(8),column:"auto",table:ee(8)},height:{row:"auto",column:ee(8),table:ee(8)}},x4t=Ae(Xt).withConfig({displayName:"ButtonWidgetStyled"})(["position:absolute;background-color:",";width:",";height:",";border-radius:",";inset:"," "," "," ",";&:hover,&:focus{background-color:",";}",";",""],e=>e.theme.colors.secondaryGrey,e=>qf.width[e.$position],e=>qf.height[e.$position],ee(1),e=>qf.top[e.$position],e=>qf.right[e.$position],e=>qf.bottom[e.$position],e=>qf.left[e.$position],e=>e.theme.colors.green,e=>e.$dragOver&&Tn(["border:1px solid ",";"],t=>t.theme.colors.green),e=>e.$position==="table"&&Tn(["border-radius:50%;opacity:0.5;"])),C4t=()=>{const e=$v();return{tableSelectorPlugin:F.useMemo(()=>yr(()=>{const n=new Fn("MILKDOWN_TABLE_SELECTOR");return new Bn({key:n,state:{init(){return{decorations:en.empty,pos:0}},apply(r,i,a,o){const s=fd(0,r.selection);if(!s)return{decorations:en.empty,pos:0};const l=hd(0,r.selection);if(!l)return{decorations:en.empty,pos:0};const c=e({as:"div",component:v4t}),[u]=s;if(!u)return{decorations:en.empty,pos:0};const f=[];return f.push(c(u.pos+1,{type:"top-left"})),s.forEach((h,m)=>{f.push(c(h.pos+1,{type:"left",index:m}))}),l.forEach((h,m)=>{f.push(c(h.pos+1,{type:"top",index:m}))}),i.pos===u.pos&&a.doc.eq(o.doc)?i:{decorations:en.create(r.doc,f),pos:u.pos}}},props:{decorations(r){return n.getState(r).decorations}}})}),[e])}},S4t=()=>{var c;const e=F.useRef(null),{view:t}=Fv(),n=F.useRef(),{loading:r,editor:i}=li(),a=t.state.selection instanceof an&&t.state.selection.isRowSelection(),o=t.state.selection instanceof an&&t.state.selection.isColSelection(),s=a&&o,l=a&&((c=t.state.doc.nodeAt(t.state.selection.$headCell.pos))==null?void 0:c.type.name)==="table_header";return F.useEffect(()=>{if(e.current&&!r&&!n.current&&t&&t.state&&i&&i.status===fn.Created){const u=new AH({content:e.current,tippyOptions:{zIndex:30,arrow:!1},shouldShow:()=>!1});u.update(t);const f=i;f&&f.ctx&&f.ctx.isInjected(cw.key)&&(f.ctx.set(cw.key,u),n.current=u)}return()=>{var u;(u=n.current)==null||u.destroy()}},[i,r,t,e,n]),j("div",{style:{display:"none"},children:He(D4t,{ref:e,children:[!s&&!l&&a&&j(Xt,{oval:!0,space:"small",color:"secondary",onClick:()=>{var u;r||!i||i.status!==fn.Created||(i.action(f=>{f.get(Bt).call(mD.key)}),(u=n.current)==null||u.hide())},children:j(ut,{icon:"add_row_top"})}),!s&&o&&j(Xt,{oval:!0,space:"small",color:"secondary",onClick:()=>{var u;r||!i||i.status!==fn.Created||(i.action(f=>{f.get(Bt).call(hD.key)}),(u=n.current)==null||u.hide())},children:j(ut,{icon:"add_column_left"})}),(s||!l)&&j(Xt,{oval:!0,space:"small",color:"secondary",onClick:()=>{var u;r||!i||i.status!==fn.Created||(i.action(f=>{f.get(Bt).call(fD.key)}),(u=n.current)==null||u.hide())},children:j(ut,{icon:"delete"})}),!s&&a&&j(Xt,{oval:!0,space:"small",color:"secondary",onClick:()=>{var u;r||!i||i.status!==fn.Created||(i.action(f=>{f.get(Bt).call(gD.key)}),(u=n.current)==null||u.hide())},children:j(ut,{icon:"add_row_bottom"})}),!s&&o&&j(Xt,{oval:!0,space:"small",color:"secondary",onClick:()=>{var u;r||!i||i.status!==fn.Created||(i.action(f=>{f.get(Bt).call(pD.key)}),(u=n.current)==null||u.hide())},children:j(ut,{icon:"add_column_right"})}),!s&&o&&j(Xt,{oval:!0,space:"small",color:"secondary",onClick:()=>{r||!i||i.status!==fn.Created||i.action(u=>{u.get(Bt).call(Rm.key,"left")})},children:j(ut,{icon:"text_align_left"})}),!s&&o&&j(Xt,{oval:!0,space:"small",color:"secondary",onClick:()=>{r||!i||i.status!==fn.Created||i.action(u=>{u.get(Bt).call(Rm.key,"right")})},children:j(ut,{icon:"text_align_right"})}),!s&&o&&j(Xt,{oval:!0,space:"small",color:"secondary",onClick:()=>{r||!i||i.status!==fn.Created||i.action(u=>{u.get(Bt).call(Rm.key,"center")})},children:j(ut,{icon:"text_align_center"})})]})})},D4t=Ae.div.withConfig({displayName:"TableTooltipContainerStyled"})(["display:flex;gap:",";align-items:center;padding:"," ",";background-color:",";border:"," solid ",";border-radius:",";"],ee(20),ee(6),ee(15),e=>e.theme.colors.white,ee(1),e=>e.theme.colors.lightGrey,ee(8)),JN=zH("TABLE"),cw=Lr(null,"tableTooltip"),E4t=()=>{const e=oS(),{tableSelectorPlugin:t}=C4t();return F.useMemo(()=>[k4t,JN,cw,r=>()=>{r.set(JN.key,{view:e({component:S4t})})},t].flat(),[t,e])};let qG=class{constructor(){this.beforeMountedListeners=[],this.mountedListeners=[],this.updatedListeners=[],this.markdownUpdatedListeners=[],this.blurListeners=[],this.focusListeners=[],this.destroyListeners=[],this.beforeMount=t=>(this.beforeMountedListeners.push(t),this),this.mounted=t=>(this.mountedListeners.push(t),this),this.updated=t=>(this.updatedListeners.push(t),this)}get listeners(){return{beforeMount:this.beforeMountedListeners,mounted:this.mountedListeners,updated:this.updatedListeners,markdownUpdated:this.markdownUpdatedListeners,blur:this.blurListeners,focus:this.focusListeners,destroy:this.destroyListeners}}markdownUpdated(t){return this.markdownUpdatedListeners.push(t),this}blur(t){return this.blurListeners.push(t),this}focus(t){return this.focusListeners.push(t),this}destroy(t){return this.destroyListeners.push(t),this}};const uw=un(new qG,"listener"),T4t=new Fn("MILKDOWN_LISTENER"),HG=e=>(e.inject(uw,new qG),async()=>{await e.wait(zd);const t=e.get(uw),{listeners:n}=t;n.beforeMount.forEach(s=>s(e)),await e.wait(Am);const r=e.get($d);let i=null,a=null;const o=new Bn({key:T4t,view:()=>({destroy:()=>{n.destroy.forEach(s=>s(e))}}),props:{handleDOMEvents:{focus:()=>(n.focus.forEach(s=>s(e)),!1),blur:()=>(n.blur.forEach(s=>s(e)),!1)}},state:{init:()=>{},apply:s=>!s.docChanged||s.getMeta("addToHistory")===!1?void 0:TS(()=>{const{doc:l}=s;if(n.updated.length>0&&(i==null||!i.eq(l))&&n.updated.forEach(c=>{c(e,l,i)}),n.markdownUpdated.length>0&&(i==null||!i.eq(l))){const c=r(l);n.markdownUpdated.forEach(u=>{u(e,c,a)}),a=c}i=l},200)()}});e.update(Ns,s=>s.concat(o)),await e.wait(hb),n.mounted.forEach(s=>s(e))});HG.meta={package:"@milkdown/plugin-listener",displayName:"Listener"};var dw={exports:{}};/** * @license * Lodash <https://lodash.com/> * Copyright OpenJS Foundation and other contributors <https://openjsf.org/> * Released under MIT license <https://lodash.com/license> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */dw.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",c=500,u="__lodash_placeholder__",f=1,h=2,m=4,g=1,b=2,C=1,w=2,k=4,S=8,E=16,A=32,_=64,T=128,$=256,R=512,O=30,G="...",V=800,Z=16,W=1,Y=2,fe=3,ae=1/0,Q=9007199254740991,ce=17976931348623157e292,L=0/0,de=4294967295,ue=de-1,I=de>>>1,be=[["ary",T],["bind",C],["bindKey",w],["curry",S],["curryRight",E],["flip",R],["partial",A],["partialRight",_],["rearg",$]],ze="[object Arguments]",J="[object Array]",Ve="[object AsyncFunction]",ye="[object Boolean]",We="[object Date]",Pe="[object DOMException]",Ge="[object Error]",Xe="[object Function]",Kt="[object GeneratorFunction]",Et="[object Map]",mt="[object Number]",K="[object Null]",ie="[object Object]",he="[object Promise]",Ie="[object Proxy]",xe="[object RegExp]",ke="[object Set]",Be="[object String]",dt="[object Symbol]",Re="[object Undefined]",zt="[object WeakMap]",Ir="[object WeakSet]",pe="[object ArrayBuffer]",Ce="[object DataView]",it="[object Float32Array]",It="[object Float64Array]",Tt="[object Int8Array]",vn="[object Int16Array]",Tr="[object Int32Array]",ge="[object Uint8Array]",Ye="[object Uint8ClampedArray]",nt="[object Uint16Array]",ct="[object Uint32Array]",Pt=/\b__p \+= '';/g,Dt=/\b(__p \+=) '' \+/g,rr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,So=/&(?:amp|lt|gt|quot|#39);/g,tc=/[&<>"']/g,ra=RegExp(So.source),nc=RegExp(tc.source),Gs=/<%-([\s\S]+?)%>/g,ns=/<%([\s\S]+?)%>/g,Ks=/<%=([\s\S]+?)%>/g,Ys=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rc=/^\w*$/,Zs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Nu=/[\\^$.*+?()[\]{}|]/g,L1=RegExp(Nu.source),vf=/^\s+/,G2=/\s/,xf=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Do=/\{\n\/\* \[wrapped with (.+)\] \*/,I1=/,? & /,B1=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,R1=/[()=,{}\[\]\/\s]/,P1=/\\(\\)?/g,K2=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ot=/\w*$/,ne=/^[-+]0x[0-9a-f]+$/i,$e=/^0b[01]+$/i,Ze=/^\[object .+?Constructor\]$/,fn=/^0o[0-7]+$/i,ur=/^(?:0|[1-9]\d*)$/,Ti=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wn=/($^)/,Na=/['\n\r\u2028\u2029\\]/g,ic="\\ud800-\\udfff",j1="\\u0300-\\u036f",XE="\\ufe20-\\ufe2f",LX="\\u20d0-\\u20ff",JE=j1+XE+LX,QE="\\u2700-\\u27bf",eT="a-z\\xdf-\\xf6\\xf8-\\xff",IX="\\xac\\xb1\\xd7\\xf7",BX="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",RX="\\u2000-\\u206f",PX=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",tT="A-Z\\xc0-\\xd6\\xd8-\\xde",nT="\\ufe0e\\ufe0f",rT=IX+BX+RX+PX,Y2="['’]",jX="["+ic+"]",iT="["+rT+"]",V1="["+JE+"]",aT="\\d+",VX="["+QE+"]",oT="["+eT+"]",sT="[^"+ic+rT+aT+QE+eT+tT+"]",Z2="\\ud83c[\\udffb-\\udfff]",qX="(?:"+V1+"|"+Z2+")",lT="[^"+ic+"]",X2="(?:\\ud83c[\\udde6-\\uddff]){2}",J2="[\\ud800-\\udbff][\\udc00-\\udfff]",Cf="["+tT+"]",cT="\\u200d",uT="(?:"+oT+"|"+sT+")",HX="(?:"+Cf+"|"+sT+")",dT="(?:"+Y2+"(?:d|ll|m|re|s|t|ve))?",fT="(?:"+Y2+"(?:D|LL|M|RE|S|T|VE))?",hT=qX+"?",pT="["+nT+"]?",UX="(?:"+cT+"(?:"+[lT,X2,J2].join("|")+")"+pT+hT+")*",WX="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",GX="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",mT=pT+hT+UX,KX="(?:"+[VX,X2,J2].join("|")+")"+mT,YX="(?:"+[lT+V1+"?",V1,X2,J2,jX].join("|")+")",ZX=RegExp(Y2,"g"),XX=RegExp(V1,"g"),Q2=RegExp(Z2+"(?="+Z2+")|"+YX+mT,"g"),JX=RegExp([Cf+"?"+oT+"+"+dT+"(?="+[iT,Cf,"$"].join("|")+")",HX+"+"+fT+"(?="+[iT,Cf+uT,"$"].join("|")+")",Cf+"?"+uT+"+"+dT,Cf+"+"+fT,GX,WX,aT,KX].join("|"),"g"),QX=RegExp("["+cT+ic+JE+nT+"]"),eJ=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tJ=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],nJ=-1,$n={};$n[it]=$n[It]=$n[Tt]=$n[vn]=$n[Tr]=$n[ge]=$n[Ye]=$n[nt]=$n[ct]=!0,$n[ze]=$n[J]=$n[pe]=$n[ye]=$n[Ce]=$n[We]=$n[Ge]=$n[Xe]=$n[Et]=$n[mt]=$n[ie]=$n[xe]=$n[ke]=$n[Be]=$n[zt]=!1;var Dn={};Dn[ze]=Dn[J]=Dn[pe]=Dn[Ce]=Dn[ye]=Dn[We]=Dn[it]=Dn[It]=Dn[Tt]=Dn[vn]=Dn[Tr]=Dn[Et]=Dn[mt]=Dn[ie]=Dn[xe]=Dn[ke]=Dn[Be]=Dn[dt]=Dn[ge]=Dn[Ye]=Dn[nt]=Dn[ct]=!0,Dn[Ge]=Dn[Xe]=Dn[zt]=!1;var rJ={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},iJ={"&":"&","<":"<",">":">",'"':""","'":"'"},aJ={"&":"&","<":"<",">":">",""":'"',"'":"'"},oJ={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},sJ=parseFloat,lJ=parseInt,gT=typeof Bi=="object"&&Bi&&Bi.Object===Object&&Bi,cJ=typeof self=="object"&&self&&self.Object===Object&&self,Br=gT||cJ||Function("return this")(),e3=t&&!t.nodeType&&t,Lu=e3&&!0&&e&&!e.nodeType&&e,yT=Lu&&Lu.exports===e3,t3=yT&&gT.process,La=function(){try{var re=Lu&&Lu.require&&Lu.require("util").types;return re||t3&&t3.binding&&t3.binding("util")}catch{}}(),_T=La&&La.isArrayBuffer,bT=La&&La.isDate,kT=La&&La.isMap,wT=La&&La.isRegExp,vT=La&&La.isSet,xT=La&&La.isTypedArray;function ia(re,_e,me){switch(me.length){case 0:return re.call(_e);case 1:return re.call(_e,me[0]);case 2:return re.call(_e,me[0],me[1]);case 3:return re.call(_e,me[0],me[1],me[2])}return re.apply(_e,me)}function uJ(re,_e,me,et){for(var Ft=-1,dn=re==null?0:re.length;++Ft<dn;){var br=re[Ft];_e(et,br,me(br),re)}return et}function Ia(re,_e){for(var me=-1,et=re==null?0:re.length;++me<et&&_e(re[me],me,re)!==!1;);return re}function dJ(re,_e){for(var me=re==null?0:re.length;me--&&_e(re[me],me,re)!==!1;);return re}function CT(re,_e){for(var me=-1,et=re==null?0:re.length;++me<et;)if(!_e(re[me],me,re))return!1;return!0}function ac(re,_e){for(var me=-1,et=re==null?0:re.length,Ft=0,dn=[];++me<et;){var br=re[me];_e(br,me,re)&&(dn[Ft++]=br)}return dn}function q1(re,_e){var me=re==null?0:re.length;return!!me&&Sf(re,_e,0)>-1}function n3(re,_e,me){for(var et=-1,Ft=re==null?0:re.length;++et<Ft;)if(me(_e,re[et]))return!0;return!1}function Rn(re,_e){for(var me=-1,et=re==null?0:re.length,Ft=Array(et);++me<et;)Ft[me]=_e(re[me],me,re);return Ft}function oc(re,_e){for(var me=-1,et=_e.length,Ft=re.length;++me<et;)re[Ft+me]=_e[me];return re}function r3(re,_e,me,et){var Ft=-1,dn=re==null?0:re.length;for(et&&dn&&(me=re[++Ft]);++Ft<dn;)me=_e(me,re[Ft],Ft,re);return me}function fJ(re,_e,me,et){var Ft=re==null?0:re.length;for(et&&Ft&&(me=re[--Ft]);Ft--;)me=_e(me,re[Ft],Ft,re);return me}function i3(re,_e){for(var me=-1,et=re==null?0:re.length;++me<et;)if(_e(re[me],me,re))return!0;return!1}var hJ=a3("length");function pJ(re){return re.split("")}function mJ(re){return re.match(B1)||[]}function ST(re,_e,me){var et;return me(re,function(Ft,dn,br){if(_e(Ft,dn,br))return et=dn,!1}),et}function H1(re,_e,me,et){for(var Ft=re.length,dn=me+(et?1:-1);et?dn--:++dn<Ft;)if(_e(re[dn],dn,re))return dn;return-1}function Sf(re,_e,me){return _e===_e?EJ(re,_e,me):H1(re,DT,me)}function gJ(re,_e,me,et){for(var Ft=me-1,dn=re.length;++Ft<dn;)if(et(re[Ft],_e))return Ft;return-1}function DT(re){return re!==re}function ET(re,_e){var me=re==null?0:re.length;return me?s3(re,_e)/me:L}function a3(re){return function(_e){return _e==null?n:_e[re]}}function o3(re){return function(_e){return re==null?n:re[_e]}}function TT(re,_e,me,et,Ft){return Ft(re,function(dn,br,xn){me=et?(et=!1,dn):_e(me,dn,br,xn)}),me}function yJ(re,_e){var me=re.length;for(re.sort(_e);me--;)re[me]=re[me].value;return re}function s3(re,_e){for(var me,et=-1,Ft=re.length;++et<Ft;){var dn=_e(re[et]);dn!==n&&(me=me===n?dn:me+dn)}return me}function l3(re,_e){for(var me=-1,et=Array(re);++me<re;)et[me]=_e(me);return et}function _J(re,_e){return Rn(_e,function(me){return[me,re[me]]})}function AT(re){return re&&re.slice(0,MT(re)+1).replace(vf,"")}function aa(re){return function(_e){return re(_e)}}function c3(re,_e){return Rn(_e,function(me){return re[me]})}function r0(re,_e){return re.has(_e)}function zT(re,_e){for(var me=-1,et=re.length;++me<et&&Sf(_e,re[me],0)>-1;);return me}function FT(re,_e){for(var me=re.length;me--&&Sf(_e,re[me],0)>-1;);return me}function bJ(re,_e){for(var me=re.length,et=0;me--;)re[me]===_e&&++et;return et}var kJ=o3(rJ),wJ=o3(iJ);function vJ(re){return"\\"+oJ[re]}function xJ(re,_e){return re==null?n:re[_e]}function Df(re){return QX.test(re)}function CJ(re){return eJ.test(re)}function SJ(re){for(var _e,me=[];!(_e=re.next()).done;)me.push(_e.value);return me}function u3(re){var _e=-1,me=Array(re.size);return re.forEach(function(et,Ft){me[++_e]=[Ft,et]}),me}function $T(re,_e){return function(me){return re(_e(me))}}function sc(re,_e){for(var me=-1,et=re.length,Ft=0,dn=[];++me<et;){var br=re[me];(br===_e||br===u)&&(re[me]=u,dn[Ft++]=me)}return dn}function U1(re){var _e=-1,me=Array(re.size);return re.forEach(function(et){me[++_e]=et}),me}function DJ(re){var _e=-1,me=Array(re.size);return re.forEach(function(et){me[++_e]=[et,et]}),me}function EJ(re,_e,me){for(var et=me-1,Ft=re.length;++et<Ft;)if(re[et]===_e)return et;return-1}function TJ(re,_e,me){for(var et=me+1;et--;)if(re[et]===_e)return et;return et}function Ef(re){return Df(re)?zJ(re):hJ(re)}function Eo(re){return Df(re)?FJ(re):pJ(re)}function MT(re){for(var _e=re.length;_e--&&G2.test(re.charAt(_e)););return _e}var AJ=o3(aJ);function zJ(re){for(var _e=Q2.lastIndex=0;Q2.test(re);)++_e;return _e}function FJ(re){return re.match(Q2)||[]}function $J(re){return re.match(JX)||[]}var MJ=function re(_e){_e=_e==null?Br:Tf.defaults(Br.Object(),_e,Tf.pick(Br,tJ));var me=_e.Array,et=_e.Date,Ft=_e.Error,dn=_e.Function,br=_e.Math,xn=_e.Object,d3=_e.RegExp,OJ=_e.String,Ba=_e.TypeError,W1=me.prototype,NJ=dn.prototype,Af=xn.prototype,G1=_e["__core-js_shared__"],K1=NJ.toString,gn=Af.hasOwnProperty,LJ=0,OT=function(){var d=/[^.]+$/.exec(G1&&G1.keys&&G1.keys.IE_PROTO||"");return d?"Symbol(src)_1."+d:""}(),Y1=Af.toString,IJ=K1.call(xn),BJ=Br._,RJ=d3("^"+K1.call(gn).replace(Nu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Z1=yT?_e.Buffer:n,lc=_e.Symbol,X1=_e.Uint8Array,NT=Z1?Z1.allocUnsafe:n,J1=$T(xn.getPrototypeOf,xn),LT=xn.create,IT=Af.propertyIsEnumerable,Q1=W1.splice,BT=lc?lc.isConcatSpreadable:n,i0=lc?lc.iterator:n,Iu=lc?lc.toStringTag:n,ey=function(){try{var d=Vu(xn,"defineProperty");return d({},"",{}),d}catch{}}(),PJ=_e.clearTimeout!==Br.clearTimeout&&_e.clearTimeout,jJ=et&&et.now!==Br.Date.now&&et.now,VJ=_e.setTimeout!==Br.setTimeout&&_e.setTimeout,ty=br.ceil,ny=br.floor,f3=xn.getOwnPropertySymbols,qJ=Z1?Z1.isBuffer:n,RT=_e.isFinite,HJ=W1.join,UJ=$T(xn.keys,xn),kr=br.max,Yr=br.min,WJ=et.now,GJ=_e.parseInt,PT=br.random,KJ=W1.reverse,h3=Vu(_e,"DataView"),a0=Vu(_e,"Map"),p3=Vu(_e,"Promise"),zf=Vu(_e,"Set"),o0=Vu(_e,"WeakMap"),s0=Vu(xn,"create"),ry=o0&&new o0,Ff={},YJ=qu(h3),ZJ=qu(a0),XJ=qu(p3),JJ=qu(zf),QJ=qu(o0),iy=lc?lc.prototype:n,l0=iy?iy.valueOf:n,jT=iy?iy.toString:n;function N(d){if(Jn(d)&&!Ot(d)&&!(d instanceof Qt)){if(d instanceof Ra)return d;if(gn.call(d,"__wrapped__"))return VA(d)}return new Ra(d)}var $f=function(){function d(){}return function(p){if(!qn(p))return{};if(LT)return LT(p);d.prototype=p;var y=new d;return d.prototype=n,y}}();function ay(){}function Ra(d,p){this.__wrapped__=d,this.__actions__=[],this.__chain__=!!p,this.__index__=0,this.__values__=n}N.templateSettings={escape:Gs,evaluate:ns,interpolate:Ks,variable:"",imports:{_:N}},N.prototype=ay.prototype,N.prototype.constructor=N,Ra.prototype=$f(ay.prototype),Ra.prototype.constructor=Ra;function Qt(d){this.__wrapped__=d,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=de,this.__views__=[]}function eQ(){var d=new Qt(this.__wrapped__);return d.__actions__=Ai(this.__actions__),d.__dir__=this.__dir__,d.__filtered__=this.__filtered__,d.__iteratees__=Ai(this.__iteratees__),d.__takeCount__=this.__takeCount__,d.__views__=Ai(this.__views__),d}function tQ(){if(this.__filtered__){var d=new Qt(this);d.__dir__=-1,d.__filtered__=!0}else d=this.clone(),d.__dir__*=-1;return d}function nQ(){var d=this.__wrapped__.value(),p=this.__dir__,y=Ot(d),x=p<0,z=y?d.length:0,P=pee(0,z,this.__views__),H=P.start,X=P.end,oe=X-H,we=x?X:H-1,ve=this.__iteratees__,De=ve.length,qe=0,at=Yr(oe,this.__takeCount__);if(!y||!x&&z==oe&&at==oe)return dA(d,this.__actions__);var wt=[];e:for(;oe--&&qe<at;){we+=p;for(var Ht=-1,vt=d[we];++Ht<De;){var Zt=ve[Ht],nn=Zt.iteratee,la=Zt.type,di=nn(vt);if(la==Y)vt=di;else if(!di){if(la==W)continue e;break e}}wt[qe++]=vt}return wt}Qt.prototype=$f(ay.prototype),Qt.prototype.constructor=Qt;function Bu(d){var p=-1,y=d==null?0:d.length;for(this.clear();++p<y;){var x=d[p];this.set(x[0],x[1])}}function rQ(){this.__data__=s0?s0(null):{},this.size=0}function iQ(d){var p=this.has(d)&&delete this.__data__[d];return this.size-=p?1:0,p}function aQ(d){var p=this.__data__;if(s0){var y=p[d];return y===l?n:y}return gn.call(p,d)?p[d]:n}function oQ(d){var p=this.__data__;return s0?p[d]!==n:gn.call(p,d)}function sQ(d,p){var y=this.__data__;return this.size+=this.has(d)?0:1,y[d]=s0&&p===n?l:p,this}Bu.prototype.clear=rQ,Bu.prototype.delete=iQ,Bu.prototype.get=aQ,Bu.prototype.has=oQ,Bu.prototype.set=sQ;function Xs(d){var p=-1,y=d==null?0:d.length;for(this.clear();++p<y;){var x=d[p];this.set(x[0],x[1])}}function lQ(){this.__data__=[],this.size=0}function cQ(d){var p=this.__data__,y=oy(p,d);if(y<0)return!1;var x=p.length-1;return y==x?p.pop():Q1.call(p,y,1),--this.size,!0}function uQ(d){var p=this.__data__,y=oy(p,d);return y<0?n:p[y][1]}function dQ(d){return oy(this.__data__,d)>-1}function fQ(d,p){var y=this.__data__,x=oy(y,d);return x<0?(++this.size,y.push([d,p])):y[x][1]=p,this}Xs.prototype.clear=lQ,Xs.prototype.delete=cQ,Xs.prototype.get=uQ,Xs.prototype.has=dQ,Xs.prototype.set=fQ;function Js(d){var p=-1,y=d==null?0:d.length;for(this.clear();++p<y;){var x=d[p];this.set(x[0],x[1])}}function hQ(){this.size=0,this.__data__={hash:new Bu,map:new(a0||Xs),string:new Bu}}function pQ(d){var p=_y(this,d).delete(d);return this.size-=p?1:0,p}function mQ(d){return _y(this,d).get(d)}function gQ(d){return _y(this,d).has(d)}function yQ(d,p){var y=_y(this,d),x=y.size;return y.set(d,p),this.size+=y.size==x?0:1,this}Js.prototype.clear=hQ,Js.prototype.delete=pQ,Js.prototype.get=mQ,Js.prototype.has=gQ,Js.prototype.set=yQ;function Ru(d){var p=-1,y=d==null?0:d.length;for(this.__data__=new Js;++p<y;)this.add(d[p])}function _Q(d){return this.__data__.set(d,l),this}function bQ(d){return this.__data__.has(d)}Ru.prototype.add=Ru.prototype.push=_Q,Ru.prototype.has=bQ;function To(d){var p=this.__data__=new Xs(d);this.size=p.size}function kQ(){this.__data__=new Xs,this.size=0}function wQ(d){var p=this.__data__,y=p.delete(d);return this.size=p.size,y}function vQ(d){return this.__data__.get(d)}function xQ(d){return this.__data__.has(d)}function CQ(d,p){var y=this.__data__;if(y instanceof Xs){var x=y.__data__;if(!a0||x.length<i-1)return x.push([d,p]),this.size=++y.size,this;y=this.__data__=new Js(x)}return y.set(d,p),this.size=y.size,this}To.prototype.clear=kQ,To.prototype.delete=wQ,To.prototype.get=vQ,To.prototype.has=xQ,To.prototype.set=CQ;function VT(d,p){var y=Ot(d),x=!y&&Hu(d),z=!y&&!x&&hc(d),P=!y&&!x&&!z&&Lf(d),H=y||x||z||P,X=H?l3(d.length,OJ):[],oe=X.length;for(var we in d)(p||gn.call(d,we))&&!(H&&(we=="length"||z&&(we=="offset"||we=="parent")||P&&(we=="buffer"||we=="byteLength"||we=="byteOffset")||nl(we,oe)))&&X.push(we);return X}function qT(d){var p=d.length;return p?d[S3(0,p-1)]:n}function SQ(d,p){return by(Ai(d),Pu(p,0,d.length))}function DQ(d){return by(Ai(d))}function m3(d,p,y){(y!==n&&!Ao(d[p],y)||y===n&&!(p in d))&&Qs(d,p,y)}function c0(d,p,y){var x=d[p];(!(gn.call(d,p)&&Ao(x,y))||y===n&&!(p in d))&&Qs(d,p,y)}function oy(d,p){for(var y=d.length;y--;)if(Ao(d[y][0],p))return y;return-1}function EQ(d,p,y,x){return cc(d,function(z,P,H){p(x,z,y(z),H)}),x}function HT(d,p){return d&&is(p,Ar(p),d)}function TQ(d,p){return d&&is(p,Fi(p),d)}function Qs(d,p,y){p=="__proto__"&&ey?ey(d,p,{configurable:!0,enumerable:!0,value:y,writable:!0}):d[p]=y}function g3(d,p){for(var y=-1,x=p.length,z=me(x),P=d==null;++y<x;)z[y]=P?n:Z3(d,p[y]);return z}function Pu(d,p,y){return d===d&&(y!==n&&(d=d<=y?d:y),p!==n&&(d=d>=p?d:p)),d}function Pa(d,p,y,x,z,P){var H,X=p&f,oe=p&h,we=p&m;if(y&&(H=z?y(d,x,z,P):y(d)),H!==n)return H;if(!qn(d))return d;var ve=Ot(d);if(ve){if(H=gee(d),!X)return Ai(d,H)}else{var De=Zr(d),qe=De==Xe||De==Kt;if(hc(d))return pA(d,X);if(De==ie||De==ze||qe&&!z){if(H=oe||qe?{}:MA(d),!X)return oe?aee(d,TQ(H,d)):iee(d,HT(H,d))}else{if(!Dn[De])return z?d:{};H=yee(d,De,X)}}P||(P=new To);var at=P.get(d);if(at)return at;P.set(d,H),lz(d)?d.forEach(function(vt){H.add(Pa(vt,p,y,vt,d,P))}):oz(d)&&d.forEach(function(vt,Zt){H.set(Zt,Pa(vt,p,y,Zt,d,P))});var wt=we?oe?L3:N3:oe?Fi:Ar,Ht=ve?n:wt(d);return Ia(Ht||d,function(vt,Zt){Ht&&(Zt=vt,vt=d[Zt]),c0(H,Zt,Pa(vt,p,y,Zt,d,P))}),H}function AQ(d){var p=Ar(d);return function(y){return UT(y,d,p)}}function UT(d,p,y){var x=y.length;if(d==null)return!x;for(d=xn(d);x--;){var z=y[x],P=p[z],H=d[z];if(H===n&&!(z in d)||!P(H))return!1}return!0}function WT(d,p,y){if(typeof d!="function")throw new Ba(o);return g0(function(){d.apply(n,y)},p)}function u0(d,p,y,x){var z=-1,P=q1,H=!0,X=d.length,oe=[],we=p.length;if(!X)return oe;y&&(p=Rn(p,aa(y))),x?(P=n3,H=!1):p.length>=i&&(P=r0,H=!1,p=new Ru(p));e:for(;++z<X;){var ve=d[z],De=y==null?ve:y(ve);if(ve=x||ve!==0?ve:0,H&&De===De){for(var qe=we;qe--;)if(p[qe]===De)continue e;oe.push(ve)}else P(p,De,x)||oe.push(ve)}return oe}var cc=bA(rs),GT=bA(_3,!0);function zQ(d,p){var y=!0;return cc(d,function(x,z,P){return y=!!p(x,z,P),y}),y}function sy(d,p,y){for(var x=-1,z=d.length;++x<z;){var P=d[x],H=p(P);if(H!=null&&(X===n?H===H&&!sa(H):y(H,X)))var X=H,oe=P}return oe}function FQ(d,p,y,x){var z=d.length;for(y=jt(y),y<0&&(y=-y>z?0:z+y),x=x===n||x>z?z:jt(x),x<0&&(x+=z),x=y>x?0:uz(x);y<x;)d[y++]=p;return d}function KT(d,p){var y=[];return cc(d,function(x,z,P){p(x,z,P)&&y.push(x)}),y}function Rr(d,p,y,x,z){var P=-1,H=d.length;for(y||(y=bee),z||(z=[]);++P<H;){var X=d[P];p>0&&y(X)?p>1?Rr(X,p-1,y,x,z):oc(z,X):x||(z[z.length]=X)}return z}var y3=kA(),YT=kA(!0);function rs(d,p){return d&&y3(d,p,Ar)}function _3(d,p){return d&&YT(d,p,Ar)}function ly(d,p){return ac(p,function(y){return rl(d[y])})}function ju(d,p){p=dc(p,d);for(var y=0,x=p.length;d!=null&&y<x;)d=d[as(p[y++])];return y&&y==x?d:n}function ZT(d,p,y){var x=p(d);return Ot(d)?x:oc(x,y(d))}function ci(d){return d==null?d===n?Re:K:Iu&&Iu in xn(d)?hee(d):Dee(d)}function b3(d,p){return d>p}function $Q(d,p){return d!=null&&gn.call(d,p)}function MQ(d,p){return d!=null&&p in xn(d)}function OQ(d,p,y){return d>=Yr(p,y)&&d<kr(p,y)}function k3(d,p,y){for(var x=y?n3:q1,z=d[0].length,P=d.length,H=P,X=me(P),oe=1/0,we=[];H--;){var ve=d[H];H&&p&&(ve=Rn(ve,aa(p))),oe=Yr(ve.length,oe),X[H]=!y&&(p||z>=120&&ve.length>=120)?new Ru(H&&ve):n}ve=d[0];var De=-1,qe=X[0];e:for(;++De<z&&we.length<oe;){var at=ve[De],wt=p?p(at):at;if(at=y||at!==0?at:0,!(qe?r0(qe,wt):x(we,wt,y))){for(H=P;--H;){var Ht=X[H];if(!(Ht?r0(Ht,wt):x(d[H],wt,y)))continue e}qe&&qe.push(wt),we.push(at)}}return we}function NQ(d,p,y,x){return rs(d,function(z,P,H){p(x,y(z),P,H)}),x}function d0(d,p,y){p=dc(p,d),d=IA(d,p);var x=d==null?d:d[as(Va(p))];return x==null?n:ia(x,d,y)}function XT(d){return Jn(d)&&ci(d)==ze}function LQ(d){return Jn(d)&&ci(d)==pe}function IQ(d){return Jn(d)&&ci(d)==We}function f0(d,p,y,x,z){return d===p?!0:d==null||p==null||!Jn(d)&&!Jn(p)?d!==d&&p!==p:BQ(d,p,y,x,f0,z)}function BQ(d,p,y,x,z,P){var H=Ot(d),X=Ot(p),oe=H?J:Zr(d),we=X?J:Zr(p);oe=oe==ze?ie:oe,we=we==ze?ie:we;var ve=oe==ie,De=we==ie,qe=oe==we;if(qe&&hc(d)){if(!hc(p))return!1;H=!0,ve=!1}if(qe&&!ve)return P||(P=new To),H||Lf(d)?zA(d,p,y,x,z,P):dee(d,p,oe,y,x,z,P);if(!(y&g)){var at=ve&&gn.call(d,"__wrapped__"),wt=De&&gn.call(p,"__wrapped__");if(at||wt){var Ht=at?d.value():d,vt=wt?p.value():p;return P||(P=new To),z(Ht,vt,y,x,P)}}return qe?(P||(P=new To),fee(d,p,y,x,z,P)):!1}function RQ(d){return Jn(d)&&Zr(d)==Et}function w3(d,p,y,x){var z=y.length,P=z,H=!x;if(d==null)return!P;for(d=xn(d);z--;){var X=y[z];if(H&&X[2]?X[1]!==d[X[0]]:!(X[0]in d))return!1}for(;++z<P;){X=y[z];var oe=X[0],we=d[oe],ve=X[1];if(H&&X[2]){if(we===n&&!(oe in d))return!1}else{var De=new To;if(x)var qe=x(we,ve,oe,d,p,De);if(!(qe===n?f0(ve,we,g|b,x,De):qe))return!1}}return!0}function JT(d){if(!qn(d)||wee(d))return!1;var p=rl(d)?RJ:Ze;return p.test(qu(d))}function PQ(d){return Jn(d)&&ci(d)==xe}function jQ(d){return Jn(d)&&Zr(d)==ke}function VQ(d){return Jn(d)&&Sy(d.length)&&!!$n[ci(d)]}function QT(d){return typeof d=="function"?d:d==null?$i:typeof d=="object"?Ot(d)?nA(d[0],d[1]):tA(d):wz(d)}function v3(d){if(!m0(d))return UJ(d);var p=[];for(var y in xn(d))gn.call(d,y)&&y!="constructor"&&p.push(y);return p}function qQ(d){if(!qn(d))return See(d);var p=m0(d),y=[];for(var x in d)x=="constructor"&&(p||!gn.call(d,x))||y.push(x);return y}function x3(d,p){return d<p}function eA(d,p){var y=-1,x=zi(d)?me(d.length):[];return cc(d,function(z,P,H){x[++y]=p(z,P,H)}),x}function tA(d){var p=B3(d);return p.length==1&&p[0][2]?NA(p[0][0],p[0][1]):function(y){return y===d||w3(y,d,p)}}function nA(d,p){return P3(d)&&OA(p)?NA(as(d),p):function(y){var x=Z3(y,d);return x===n&&x===p?X3(y,d):f0(p,x,g|b)}}function cy(d,p,y,x,z){d!==p&&y3(p,function(P,H){if(z||(z=new To),qn(P))HQ(d,p,H,y,cy,x,z);else{var X=x?x(V3(d,H),P,H+"",d,p,z):n;X===n&&(X=P),m3(d,H,X)}},Fi)}function HQ(d,p,y,x,z,P,H){var X=V3(d,y),oe=V3(p,y),we=H.get(oe);if(we){m3(d,y,we);return}var ve=P?P(X,oe,y+"",d,p,H):n,De=ve===n;if(De){var qe=Ot(oe),at=!qe&&hc(oe),wt=!qe&&!at&&Lf(oe);ve=oe,qe||at||wt?Ot(X)?ve=X:ir(X)?ve=Ai(X):at?(De=!1,ve=pA(oe,!0)):wt?(De=!1,ve=mA(oe,!0)):ve=[]:y0(oe)||Hu(oe)?(ve=X,Hu(X)?ve=dz(X):(!qn(X)||rl(X))&&(ve=MA(oe))):De=!1}De&&(H.set(oe,ve),z(ve,oe,x,P,H),H.delete(oe)),m3(d,y,ve)}function rA(d,p){var y=d.length;if(y)return p+=p<0?y:0,nl(p,y)?d[p]:n}function iA(d,p,y){p.length?p=Rn(p,function(P){return Ot(P)?function(H){return ju(H,P.length===1?P[0]:P)}:P}):p=[$i];var x=-1;p=Rn(p,aa(bt()));var z=eA(d,function(P,H,X){var oe=Rn(p,function(we){return we(P)});return{criteria:oe,index:++x,value:P}});return yJ(z,function(P,H){return ree(P,H,y)})}function UQ(d,p){return aA(d,p,function(y,x){return X3(d,x)})}function aA(d,p,y){for(var x=-1,z=p.length,P={};++x<z;){var H=p[x],X=ju(d,H);y(X,H)&&h0(P,dc(H,d),X)}return P}function WQ(d){return function(p){return ju(p,d)}}function C3(d,p,y,x){var z=x?gJ:Sf,P=-1,H=p.length,X=d;for(d===p&&(p=Ai(p)),y&&(X=Rn(d,aa(y)));++P<H;)for(var oe=0,we=p[P],ve=y?y(we):we;(oe=z(X,ve,oe,x))>-1;)X!==d&&Q1.call(X,oe,1),Q1.call(d,oe,1);return d}function oA(d,p){for(var y=d?p.length:0,x=y-1;y--;){var z=p[y];if(y==x||z!==P){var P=z;nl(z)?Q1.call(d,z,1):T3(d,z)}}return d}function S3(d,p){return d+ny(PT()*(p-d+1))}function GQ(d,p,y,x){for(var z=-1,P=kr(ty((p-d)/(y||1)),0),H=me(P);P--;)H[x?P:++z]=d,d+=y;return H}function D3(d,p){var y="";if(!d||p<1||p>Q)return y;do p%2&&(y+=d),p=ny(p/2),p&&(d+=d);while(p);return y}function Gt(d,p){return q3(LA(d,p,$i),d+"")}function KQ(d){return qT(If(d))}function YQ(d,p){var y=If(d);return by(y,Pu(p,0,y.length))}function h0(d,p,y,x){if(!qn(d))return d;p=dc(p,d);for(var z=-1,P=p.length,H=P-1,X=d;X!=null&&++z<P;){var oe=as(p[z]),we=y;if(oe==="__proto__"||oe==="constructor"||oe==="prototype")return d;if(z!=H){var ve=X[oe];we=x?x(ve,oe,X):n,we===n&&(we=qn(ve)?ve:nl(p[z+1])?[]:{})}c0(X,oe,we),X=X[oe]}return d}var sA=ry?function(d,p){return ry.set(d,p),d}:$i,ZQ=ey?function(d,p){return ey(d,"toString",{configurable:!0,enumerable:!1,value:Q3(p),writable:!0})}:$i;function XQ(d){return by(If(d))}function ja(d,p,y){var x=-1,z=d.length;p<0&&(p=-p>z?0:z+p),y=y>z?z:y,y<0&&(y+=z),z=p>y?0:y-p>>>0,p>>>=0;for(var P=me(z);++x<z;)P[x]=d[x+p];return P}function JQ(d,p){var y;return cc(d,function(x,z,P){return y=p(x,z,P),!y}),!!y}function uy(d,p,y){var x=0,z=d==null?x:d.length;if(typeof p=="number"&&p===p&&z<=I){for(;x<z;){var P=x+z>>>1,H=d[P];H!==null&&!sa(H)&&(y?H<=p:H<p)?x=P+1:z=P}return z}return E3(d,p,$i,y)}function E3(d,p,y,x){var z=0,P=d==null?0:d.length;if(P===0)return 0;p=y(p);for(var H=p!==p,X=p===null,oe=sa(p),we=p===n;z<P;){var ve=ny((z+P)/2),De=y(d[ve]),qe=De!==n,at=De===null,wt=De===De,Ht=sa(De);if(H)var vt=x||wt;else we?vt=wt&&(x||qe):X?vt=wt&&qe&&(x||!at):oe?vt=wt&&qe&&!at&&(x||!Ht):at||Ht?vt=!1:vt=x?De<=p:De<p;vt?z=ve+1:P=ve}return Yr(P,ue)}function lA(d,p){for(var y=-1,x=d.length,z=0,P=[];++y<x;){var H=d[y],X=p?p(H):H;if(!y||!Ao(X,oe)){var oe=X;P[z++]=H===0?0:H}}return P}function cA(d){return typeof d=="number"?d:sa(d)?L:+d}function oa(d){if(typeof d=="string")return d;if(Ot(d))return Rn(d,oa)+"";if(sa(d))return jT?jT.call(d):"";var p=d+"";return p=="0"&&1/d==-ae?"-0":p}function uc(d,p,y){var x=-1,z=q1,P=d.length,H=!0,X=[],oe=X;if(y)H=!1,z=n3;else if(P>=i){var we=p?null:cee(d);if(we)return U1(we);H=!1,z=r0,oe=new Ru}else oe=p?[]:X;e:for(;++x<P;){var ve=d[x],De=p?p(ve):ve;if(ve=y||ve!==0?ve:0,H&&De===De){for(var qe=oe.length;qe--;)if(oe[qe]===De)continue e;p&&oe.push(De),X.push(ve)}else z(oe,De,y)||(oe!==X&&oe.push(De),X.push(ve))}return X}function T3(d,p){return p=dc(p,d),d=IA(d,p),d==null||delete d[as(Va(p))]}function uA(d,p,y,x){return h0(d,p,y(ju(d,p)),x)}function dy(d,p,y,x){for(var z=d.length,P=x?z:-1;(x?P--:++P<z)&&p(d[P],P,d););return y?ja(d,x?0:P,x?P+1:z):ja(d,x?P+1:0,x?z:P)}function dA(d,p){var y=d;return y instanceof Qt&&(y=y.value()),r3(p,function(x,z){return z.func.apply(z.thisArg,oc([x],z.args))},y)}function A3(d,p,y){var x=d.length;if(x<2)return x?uc(d[0]):[];for(var z=-1,P=me(x);++z<x;)for(var H=d[z],X=-1;++X<x;)X!=z&&(P[z]=u0(P[z]||H,d[X],p,y));return uc(Rr(P,1),p,y)}function fA(d,p,y){for(var x=-1,z=d.length,P=p.length,H={};++x<z;){var X=x<P?p[x]:n;y(H,d[x],X)}return H}function z3(d){return ir(d)?d:[]}function F3(d){return typeof d=="function"?d:$i}function dc(d,p){return Ot(d)?d:P3(d,p)?[d]:jA(hn(d))}var QQ=Gt;function fc(d,p,y){var x=d.length;return y=y===n?x:y,!p&&y>=x?d:ja(d,p,y)}var hA=PJ||function(d){return Br.clearTimeout(d)};function pA(d,p){if(p)return d.slice();var y=d.length,x=NT?NT(y):new d.constructor(y);return d.copy(x),x}function $3(d){var p=new d.constructor(d.byteLength);return new X1(p).set(new X1(d)),p}function eee(d,p){var y=p?$3(d.buffer):d.buffer;return new d.constructor(y,d.byteOffset,d.byteLength)}function tee(d){var p=new d.constructor(d.source,ot.exec(d));return p.lastIndex=d.lastIndex,p}function nee(d){return l0?xn(l0.call(d)):{}}function mA(d,p){var y=p?$3(d.buffer):d.buffer;return new d.constructor(y,d.byteOffset,d.length)}function gA(d,p){if(d!==p){var y=d!==n,x=d===null,z=d===d,P=sa(d),H=p!==n,X=p===null,oe=p===p,we=sa(p);if(!X&&!we&&!P&&d>p||P&&H&&oe&&!X&&!we||x&&H&&oe||!y&&oe||!z)return 1;if(!x&&!P&&!we&&d<p||we&&y&&z&&!x&&!P||X&&y&&z||!H&&z||!oe)return-1}return 0}function ree(d,p,y){for(var x=-1,z=d.criteria,P=p.criteria,H=z.length,X=y.length;++x<H;){var oe=gA(z[x],P[x]);if(oe){if(x>=X)return oe;var we=y[x];return oe*(we=="desc"?-1:1)}}return d.index-p.index}function yA(d,p,y,x){for(var z=-1,P=d.length,H=y.length,X=-1,oe=p.length,we=kr(P-H,0),ve=me(oe+we),De=!x;++X<oe;)ve[X]=p[X];for(;++z<H;)(De||z<P)&&(ve[y[z]]=d[z]);for(;we--;)ve[X++]=d[z++];return ve}function _A(d,p,y,x){for(var z=-1,P=d.length,H=-1,X=y.length,oe=-1,we=p.length,ve=kr(P-X,0),De=me(ve+we),qe=!x;++z<ve;)De[z]=d[z];for(var at=z;++oe<we;)De[at+oe]=p[oe];for(;++H<X;)(qe||z<P)&&(De[at+y[H]]=d[z++]);return De}function Ai(d,p){var y=-1,x=d.length;for(p||(p=me(x));++y<x;)p[y]=d[y];return p}function is(d,p,y,x){var z=!y;y||(y={});for(var P=-1,H=p.length;++P<H;){var X=p[P],oe=x?x(y[X],d[X],X,y,d):n;oe===n&&(oe=d[X]),z?Qs(y,X,oe):c0(y,X,oe)}return y}function iee(d,p){return is(d,R3(d),p)}function aee(d,p){return is(d,FA(d),p)}function fy(d,p){return function(y,x){var z=Ot(y)?uJ:EQ,P=p?p():{};return z(y,d,bt(x,2),P)}}function Mf(d){return Gt(function(p,y){var x=-1,z=y.length,P=z>1?y[z-1]:n,H=z>2?y[2]:n;for(P=d.length>3&&typeof P=="function"?(z--,P):n,H&&ui(y[0],y[1],H)&&(P=z<3?n:P,z=1),p=xn(p);++x<z;){var X=y[x];X&&d(p,X,x,P)}return p})}function bA(d,p){return function(y,x){if(y==null)return y;if(!zi(y))return d(y,x);for(var z=y.length,P=p?z:-1,H=xn(y);(p?P--:++P<z)&&x(H[P],P,H)!==!1;);return y}}function kA(d){return function(p,y,x){for(var z=-1,P=xn(p),H=x(p),X=H.length;X--;){var oe=H[d?X:++z];if(y(P[oe],oe,P)===!1)break}return p}}function oee(d,p,y){var x=p&C,z=p0(d);function P(){var H=this&&this!==Br&&this instanceof P?z:d;return H.apply(x?y:this,arguments)}return P}function wA(d){return function(p){p=hn(p);var y=Df(p)?Eo(p):n,x=y?y[0]:p.charAt(0),z=y?fc(y,1).join(""):p.slice(1);return x[d]()+z}}function Of(d){return function(p){return r3(bz(_z(p).replace(ZX,"")),d,"")}}function p0(d){return function(){var p=arguments;switch(p.length){case 0:return new d;case 1:return new d(p[0]);case 2:return new d(p[0],p[1]);case 3:return new d(p[0],p[1],p[2]);case 4:return new d(p[0],p[1],p[2],p[3]);case 5:return new d(p[0],p[1],p[2],p[3],p[4]);case 6:return new d(p[0],p[1],p[2],p[3],p[4],p[5]);case 7:return new d(p[0],p[1],p[2],p[3],p[4],p[5],p[6])}var y=$f(d.prototype),x=d.apply(y,p);return qn(x)?x:y}}function see(d,p,y){var x=p0(d);function z(){for(var P=arguments.length,H=me(P),X=P,oe=Nf(z);X--;)H[X]=arguments[X];var we=P<3&&H[0]!==oe&&H[P-1]!==oe?[]:sc(H,oe);if(P-=we.length,P<y)return DA(d,p,hy,z.placeholder,n,H,we,n,n,y-P);var ve=this&&this!==Br&&this instanceof z?x:d;return ia(ve,this,H)}return z}function vA(d){return function(p,y,x){var z=xn(p);if(!zi(p)){var P=bt(y,3);p=Ar(p),y=function(X){return P(z[X],X,z)}}var H=d(p,y,x);return H>-1?z[P?p[H]:H]:n}}function xA(d){return tl(function(p){var y=p.length,x=y,z=Ra.prototype.thru;for(d&&p.reverse();x--;){var P=p[x];if(typeof P!="function")throw new Ba(o);if(z&&!H&&yy(P)=="wrapper")var H=new Ra([],!0)}for(x=H?x:y;++x<y;){P=p[x];var X=yy(P),oe=X=="wrapper"?I3(P):n;oe&&j3(oe[0])&&oe[1]==(T|S|A|$)&&!oe[4].length&&oe[9]==1?H=H[yy(oe[0])].apply(H,oe[3]):H=P.length==1&&j3(P)?H[X]():H.thru(P)}return function(){var we=arguments,ve=we[0];if(H&&we.length==1&&Ot(ve))return H.plant(ve).value();for(var De=0,qe=y?p[De].apply(this,we):ve;++De<y;)qe=p[De].call(this,qe);return qe}})}function hy(d,p,y,x,z,P,H,X,oe,we){var ve=p&T,De=p&C,qe=p&w,at=p&(S|E),wt=p&R,Ht=qe?n:p0(d);function vt(){for(var Zt=arguments.length,nn=me(Zt),la=Zt;la--;)nn[la]=arguments[la];if(at)var di=Nf(vt),ca=bJ(nn,di);if(x&&(nn=yA(nn,x,z,at)),P&&(nn=_A(nn,P,H,at)),Zt-=ca,at&&Zt<we){var ar=sc(nn,di);return DA(d,p,hy,vt.placeholder,y,nn,ar,X,oe,we-Zt)}var zo=De?y:this,al=qe?zo[d]:d;return Zt=nn.length,X?nn=Eee(nn,X):wt&&Zt>1&&nn.reverse(),ve&&oe<Zt&&(nn.length=oe),this&&this!==Br&&this instanceof vt&&(al=Ht||p0(al)),al.apply(zo,nn)}return vt}function CA(d,p){return function(y,x){return NQ(y,d,p(x),{})}}function py(d,p){return function(y,x){var z;if(y===n&&x===n)return p;if(y!==n&&(z=y),x!==n){if(z===n)return x;typeof y=="string"||typeof x=="string"?(y=oa(y),x=oa(x)):(y=cA(y),x=cA(x)),z=d(y,x)}return z}}function M3(d){return tl(function(p){return p=Rn(p,aa(bt())),Gt(function(y){var x=this;return d(p,function(z){return ia(z,x,y)})})})}function my(d,p){p=p===n?" ":oa(p);var y=p.length;if(y<2)return y?D3(p,d):p;var x=D3(p,ty(d/Ef(p)));return Df(p)?fc(Eo(x),0,d).join(""):x.slice(0,d)}function lee(d,p,y,x){var z=p&C,P=p0(d);function H(){for(var X=-1,oe=arguments.length,we=-1,ve=x.length,De=me(ve+oe),qe=this&&this!==Br&&this instanceof H?P:d;++we<ve;)De[we]=x[we];for(;oe--;)De[we++]=arguments[++X];return ia(qe,z?y:this,De)}return H}function SA(d){return function(p,y,x){return x&&typeof x!="number"&&ui(p,y,x)&&(y=x=n),p=il(p),y===n?(y=p,p=0):y=il(y),x=x===n?p<y?1:-1:il(x),GQ(p,y,x,d)}}function gy(d){return function(p,y){return typeof p=="string"&&typeof y=="string"||(p=qa(p),y=qa(y)),d(p,y)}}function DA(d,p,y,x,z,P,H,X,oe,we){var ve=p&S,De=ve?H:n,qe=ve?n:H,at=ve?P:n,wt=ve?n:P;p|=ve?A:_,p&=~(ve?_:A),p&k||(p&=~(C|w));var Ht=[d,p,z,at,De,wt,qe,X,oe,we],vt=y.apply(n,Ht);return j3(d)&&BA(vt,Ht),vt.placeholder=x,RA(vt,d,p)}function O3(d){var p=br[d];return function(y,x){if(y=qa(y),x=x==null?0:Yr(jt(x),292),x&&RT(y)){var z=(hn(y)+"e").split("e"),P=p(z[0]+"e"+(+z[1]+x));return z=(hn(P)+"e").split("e"),+(z[0]+"e"+(+z[1]-x))}return p(y)}}var cee=zf&&1/U1(new zf([,-0]))[1]==ae?function(d){return new zf(d)}:n4;function EA(d){return function(p){var y=Zr(p);return y==Et?u3(p):y==ke?DJ(p):_J(p,d(p))}}function el(d,p,y,x,z,P,H,X){var oe=p&w;if(!oe&&typeof d!="function")throw new Ba(o);var we=x?x.length:0;if(we||(p&=~(A|_),x=z=n),H=H===n?H:kr(jt(H),0),X=X===n?X:jt(X),we-=z?z.length:0,p&_){var ve=x,De=z;x=z=n}var qe=oe?n:I3(d),at=[d,p,y,x,z,ve,De,P,H,X];if(qe&&Cee(at,qe),d=at[0],p=at[1],y=at[2],x=at[3],z=at[4],X=at[9]=at[9]===n?oe?0:d.length:kr(at[9]-we,0),!X&&p&(S|E)&&(p&=~(S|E)),!p||p==C)var wt=oee(d,p,y);else p==S||p==E?wt=see(d,p,X):(p==A||p==(C|A))&&!z.length?wt=lee(d,p,y,x):wt=hy.apply(n,at);var Ht=qe?sA:BA;return RA(Ht(wt,at),d,p)}function TA(d,p,y,x){return d===n||Ao(d,Af[y])&&!gn.call(x,y)?p:d}function AA(d,p,y,x,z,P){return qn(d)&&qn(p)&&(P.set(p,d),cy(d,p,n,AA,P),P.delete(p)),d}function uee(d){return y0(d)?n:d}function zA(d,p,y,x,z,P){var H=y&g,X=d.length,oe=p.length;if(X!=oe&&!(H&&oe>X))return!1;var we=P.get(d),ve=P.get(p);if(we&&ve)return we==p&&ve==d;var De=-1,qe=!0,at=y&b?new Ru:n;for(P.set(d,p),P.set(p,d);++De<X;){var wt=d[De],Ht=p[De];if(x)var vt=H?x(Ht,wt,De,p,d,P):x(wt,Ht,De,d,p,P);if(vt!==n){if(vt)continue;qe=!1;break}if(at){if(!i3(p,function(Zt,nn){if(!r0(at,nn)&&(wt===Zt||z(wt,Zt,y,x,P)))return at.push(nn)})){qe=!1;break}}else if(!(wt===Ht||z(wt,Ht,y,x,P))){qe=!1;break}}return P.delete(d),P.delete(p),qe}function dee(d,p,y,x,z,P,H){switch(y){case Ce:if(d.byteLength!=p.byteLength||d.byteOffset!=p.byteOffset)return!1;d=d.buffer,p=p.buffer;case pe:return!(d.byteLength!=p.byteLength||!P(new X1(d),new X1(p)));case ye:case We:case mt:return Ao(+d,+p);case Ge:return d.name==p.name&&d.message==p.message;case xe:case Be:return d==p+"";case Et:var X=u3;case ke:var oe=x&g;if(X||(X=U1),d.size!=p.size&&!oe)return!1;var we=H.get(d);if(we)return we==p;x|=b,H.set(d,p);var ve=zA(X(d),X(p),x,z,P,H);return H.delete(d),ve;case dt:if(l0)return l0.call(d)==l0.call(p)}return!1}function fee(d,p,y,x,z,P){var H=y&g,X=N3(d),oe=X.length,we=N3(p),ve=we.length;if(oe!=ve&&!H)return!1;for(var De=oe;De--;){var qe=X[De];if(!(H?qe in p:gn.call(p,qe)))return!1}var at=P.get(d),wt=P.get(p);if(at&&wt)return at==p&&wt==d;var Ht=!0;P.set(d,p),P.set(p,d);for(var vt=H;++De<oe;){qe=X[De];var Zt=d[qe],nn=p[qe];if(x)var la=H?x(nn,Zt,qe,p,d,P):x(Zt,nn,qe,d,p,P);if(!(la===n?Zt===nn||z(Zt,nn,y,x,P):la)){Ht=!1;break}vt||(vt=qe=="constructor")}if(Ht&&!vt){var di=d.constructor,ca=p.constructor;di!=ca&&"constructor"in d&&"constructor"in p&&!(typeof di=="function"&&di instanceof di&&typeof ca=="function"&&ca instanceof ca)&&(Ht=!1)}return P.delete(d),P.delete(p),Ht}function tl(d){return q3(LA(d,n,UA),d+"")}function N3(d){return ZT(d,Ar,R3)}function L3(d){return ZT(d,Fi,FA)}var I3=ry?function(d){return ry.get(d)}:n4;function yy(d){for(var p=d.name+"",y=Ff[p],x=gn.call(Ff,p)?y.length:0;x--;){var z=y[x],P=z.func;if(P==null||P==d)return z.name}return p}function Nf(d){var p=gn.call(N,"placeholder")?N:d;return p.placeholder}function bt(){var d=N.iteratee||e4;return d=d===e4?QT:d,arguments.length?d(arguments[0],arguments[1]):d}function _y(d,p){var y=d.__data__;return kee(p)?y[typeof p=="string"?"string":"hash"]:y.map}function B3(d){for(var p=Ar(d),y=p.length;y--;){var x=p[y],z=d[x];p[y]=[x,z,OA(z)]}return p}function Vu(d,p){var y=xJ(d,p);return JT(y)?y:n}function hee(d){var p=gn.call(d,Iu),y=d[Iu];try{d[Iu]=n;var x=!0}catch{}var z=Y1.call(d);return x&&(p?d[Iu]=y:delete d[Iu]),z}var R3=f3?function(d){return d==null?[]:(d=xn(d),ac(f3(d),function(p){return IT.call(d,p)}))}:r4,FA=f3?function(d){for(var p=[];d;)oc(p,R3(d)),d=J1(d);return p}:r4,Zr=ci;(h3&&Zr(new h3(new ArrayBuffer(1)))!=Ce||a0&&Zr(new a0)!=Et||p3&&Zr(p3.resolve())!=he||zf&&Zr(new zf)!=ke||o0&&Zr(new o0)!=zt)&&(Zr=function(d){var p=ci(d),y=p==ie?d.constructor:n,x=y?qu(y):"";if(x)switch(x){case YJ:return Ce;case ZJ:return Et;case XJ:return he;case JJ:return ke;case QJ:return zt}return p});function pee(d,p,y){for(var x=-1,z=y.length;++x<z;){var P=y[x],H=P.size;switch(P.type){case"drop":d+=H;break;case"dropRight":p-=H;break;case"take":p=Yr(p,d+H);break;case"takeRight":d=kr(d,p-H);break}}return{start:d,end:p}}function mee(d){var p=d.match(Do);return p?p[1].split(I1):[]}function $A(d,p,y){p=dc(p,d);for(var x=-1,z=p.length,P=!1;++x<z;){var H=as(p[x]);if(!(P=d!=null&&y(d,H)))break;d=d[H]}return P||++x!=z?P:(z=d==null?0:d.length,!!z&&Sy(z)&&nl(H,z)&&(Ot(d)||Hu(d)))}function gee(d){var p=d.length,y=new d.constructor(p);return p&&typeof d[0]=="string"&&gn.call(d,"index")&&(y.index=d.index,y.input=d.input),y}function MA(d){return typeof d.constructor=="function"&&!m0(d)?$f(J1(d)):{}}function yee(d,p,y){var x=d.constructor;switch(p){case pe:return $3(d);case ye:case We:return new x(+d);case Ce:return eee(d,y);case it:case It:case Tt:case vn:case Tr:case ge:case Ye:case nt:case ct:return mA(d,y);case Et:return new x;case mt:case Be:return new x(d);case xe:return tee(d);case ke:return new x;case dt:return nee(d)}}function _ee(d,p){var y=p.length;if(!y)return d;var x=y-1;return p[x]=(y>1?"& ":"")+p[x],p=p.join(y>2?", ":" "),d.replace(xf,`{ + */dw.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",c=500,u="__lodash_placeholder__",f=1,h=2,m=4,g=1,b=2,C=1,w=2,k=4,S=8,E=16,A=32,_=64,T=128,$=256,R=512,O=30,G="...",V=800,Z=16,W=1,Y=2,fe=3,ae=1/0,Q=9007199254740991,ce=17976931348623157e292,L=0/0,de=4294967295,ue=de-1,I=de>>>1,be=[["ary",T],["bind",C],["bindKey",w],["curry",S],["curryRight",E],["flip",R],["partial",A],["partialRight",_],["rearg",$]],ze="[object Arguments]",J="[object Array]",Ve="[object AsyncFunction]",ye="[object Boolean]",We="[object Date]",Pe="[object DOMException]",Ge="[object Error]",Xe="[object Function]",Kt="[object GeneratorFunction]",Et="[object Map]",mt="[object Number]",K="[object Null]",ie="[object Object]",he="[object Promise]",Ie="[object Proxy]",xe="[object RegExp]",ke="[object Set]",Be="[object String]",dt="[object Symbol]",Re="[object Undefined]",zt="[object WeakMap]",Ir="[object WeakSet]",pe="[object ArrayBuffer]",Ce="[object DataView]",it="[object Float32Array]",It="[object Float64Array]",Tt="[object Int8Array]",vn="[object Int16Array]",Tr="[object Int32Array]",ge="[object Uint8Array]",Ye="[object Uint8ClampedArray]",nt="[object Uint16Array]",ct="[object Uint32Array]",Pt=/\b__p \+= '';/g,Dt=/\b(__p \+=) '' \+/g,rr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,So=/&(?:amp|lt|gt|quot|#39);/g,tc=/[&<>"']/g,ra=RegExp(So.source),nc=RegExp(tc.source),Gs=/<%-([\s\S]+?)%>/g,ns=/<%([\s\S]+?)%>/g,Ks=/<%=([\s\S]+?)%>/g,Ys=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rc=/^\w*$/,Zs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Nu=/[\\^$.*+?()[\]{}|]/g,L1=RegExp(Nu.source),vf=/^\s+/,G2=/\s/,xf=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Do=/\{\n\/\* \[wrapped with (.+)\] \*/,I1=/,? & /,B1=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,R1=/[()=,{}\[\]\/\s]/,P1=/\\(\\)?/g,K2=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ot=/\w*$/,ne=/^[-+]0x[0-9a-f]+$/i,$e=/^0b[01]+$/i,Ze=/^\[object .+?Constructor\]$/,hn=/^0o[0-7]+$/i,ur=/^(?:0|[1-9]\d*)$/,Ti=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wn=/($^)/,Na=/['\n\r\u2028\u2029\\]/g,ic="\\ud800-\\udfff",j1="\\u0300-\\u036f",XE="\\ufe20-\\ufe2f",IX="\\u20d0-\\u20ff",JE=j1+XE+IX,QE="\\u2700-\\u27bf",eT="a-z\\xdf-\\xf6\\xf8-\\xff",BX="\\xac\\xb1\\xd7\\xf7",RX="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",PX="\\u2000-\\u206f",jX=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",tT="A-Z\\xc0-\\xd6\\xd8-\\xde",nT="\\ufe0e\\ufe0f",rT=BX+RX+PX+jX,Y2="['’]",VX="["+ic+"]",iT="["+rT+"]",V1="["+JE+"]",aT="\\d+",qX="["+QE+"]",oT="["+eT+"]",sT="[^"+ic+rT+aT+QE+eT+tT+"]",Z2="\\ud83c[\\udffb-\\udfff]",HX="(?:"+V1+"|"+Z2+")",lT="[^"+ic+"]",X2="(?:\\ud83c[\\udde6-\\uddff]){2}",J2="[\\ud800-\\udbff][\\udc00-\\udfff]",Cf="["+tT+"]",cT="\\u200d",uT="(?:"+oT+"|"+sT+")",UX="(?:"+Cf+"|"+sT+")",dT="(?:"+Y2+"(?:d|ll|m|re|s|t|ve))?",fT="(?:"+Y2+"(?:D|LL|M|RE|S|T|VE))?",hT=HX+"?",pT="["+nT+"]?",WX="(?:"+cT+"(?:"+[lT,X2,J2].join("|")+")"+pT+hT+")*",GX="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",KX="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",mT=pT+hT+WX,YX="(?:"+[qX,X2,J2].join("|")+")"+mT,ZX="(?:"+[lT+V1+"?",V1,X2,J2,VX].join("|")+")",XX=RegExp(Y2,"g"),JX=RegExp(V1,"g"),Q2=RegExp(Z2+"(?="+Z2+")|"+ZX+mT,"g"),QX=RegExp([Cf+"?"+oT+"+"+dT+"(?="+[iT,Cf,"$"].join("|")+")",UX+"+"+fT+"(?="+[iT,Cf+uT,"$"].join("|")+")",Cf+"?"+uT+"+"+dT,Cf+"+"+fT,KX,GX,aT,YX].join("|"),"g"),eJ=RegExp("["+cT+ic+JE+nT+"]"),tJ=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nJ=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rJ=-1,$n={};$n[it]=$n[It]=$n[Tt]=$n[vn]=$n[Tr]=$n[ge]=$n[Ye]=$n[nt]=$n[ct]=!0,$n[ze]=$n[J]=$n[pe]=$n[ye]=$n[Ce]=$n[We]=$n[Ge]=$n[Xe]=$n[Et]=$n[mt]=$n[ie]=$n[xe]=$n[ke]=$n[Be]=$n[zt]=!1;var Dn={};Dn[ze]=Dn[J]=Dn[pe]=Dn[Ce]=Dn[ye]=Dn[We]=Dn[it]=Dn[It]=Dn[Tt]=Dn[vn]=Dn[Tr]=Dn[Et]=Dn[mt]=Dn[ie]=Dn[xe]=Dn[ke]=Dn[Be]=Dn[dt]=Dn[ge]=Dn[Ye]=Dn[nt]=Dn[ct]=!0,Dn[Ge]=Dn[Xe]=Dn[zt]=!1;var iJ={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},aJ={"&":"&","<":"<",">":">",'"':""","'":"'"},oJ={"&":"&","<":"<",">":">",""":'"',"'":"'"},sJ={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lJ=parseFloat,cJ=parseInt,gT=typeof Bi=="object"&&Bi&&Bi.Object===Object&&Bi,uJ=typeof self=="object"&&self&&self.Object===Object&&self,Br=gT||uJ||Function("return this")(),e3=t&&!t.nodeType&&t,Lu=e3&&!0&&e&&!e.nodeType&&e,yT=Lu&&Lu.exports===e3,t3=yT&&gT.process,La=function(){try{var re=Lu&&Lu.require&&Lu.require("util").types;return re||t3&&t3.binding&&t3.binding("util")}catch{}}(),_T=La&&La.isArrayBuffer,bT=La&&La.isDate,kT=La&&La.isMap,wT=La&&La.isRegExp,vT=La&&La.isSet,xT=La&&La.isTypedArray;function ia(re,_e,me){switch(me.length){case 0:return re.call(_e);case 1:return re.call(_e,me[0]);case 2:return re.call(_e,me[0],me[1]);case 3:return re.call(_e,me[0],me[1],me[2])}return re.apply(_e,me)}function dJ(re,_e,me,et){for(var Ft=-1,dn=re==null?0:re.length;++Ft<dn;){var br=re[Ft];_e(et,br,me(br),re)}return et}function Ia(re,_e){for(var me=-1,et=re==null?0:re.length;++me<et&&_e(re[me],me,re)!==!1;);return re}function fJ(re,_e){for(var me=re==null?0:re.length;me--&&_e(re[me],me,re)!==!1;);return re}function CT(re,_e){for(var me=-1,et=re==null?0:re.length;++me<et;)if(!_e(re[me],me,re))return!1;return!0}function ac(re,_e){for(var me=-1,et=re==null?0:re.length,Ft=0,dn=[];++me<et;){var br=re[me];_e(br,me,re)&&(dn[Ft++]=br)}return dn}function q1(re,_e){var me=re==null?0:re.length;return!!me&&Sf(re,_e,0)>-1}function n3(re,_e,me){for(var et=-1,Ft=re==null?0:re.length;++et<Ft;)if(me(_e,re[et]))return!0;return!1}function Rn(re,_e){for(var me=-1,et=re==null?0:re.length,Ft=Array(et);++me<et;)Ft[me]=_e(re[me],me,re);return Ft}function oc(re,_e){for(var me=-1,et=_e.length,Ft=re.length;++me<et;)re[Ft+me]=_e[me];return re}function r3(re,_e,me,et){var Ft=-1,dn=re==null?0:re.length;for(et&&dn&&(me=re[++Ft]);++Ft<dn;)me=_e(me,re[Ft],Ft,re);return me}function hJ(re,_e,me,et){var Ft=re==null?0:re.length;for(et&&Ft&&(me=re[--Ft]);Ft--;)me=_e(me,re[Ft],Ft,re);return me}function i3(re,_e){for(var me=-1,et=re==null?0:re.length;++me<et;)if(_e(re[me],me,re))return!0;return!1}var pJ=a3("length");function mJ(re){return re.split("")}function gJ(re){return re.match(B1)||[]}function ST(re,_e,me){var et;return me(re,function(Ft,dn,br){if(_e(Ft,dn,br))return et=dn,!1}),et}function H1(re,_e,me,et){for(var Ft=re.length,dn=me+(et?1:-1);et?dn--:++dn<Ft;)if(_e(re[dn],dn,re))return dn;return-1}function Sf(re,_e,me){return _e===_e?TJ(re,_e,me):H1(re,DT,me)}function yJ(re,_e,me,et){for(var Ft=me-1,dn=re.length;++Ft<dn;)if(et(re[Ft],_e))return Ft;return-1}function DT(re){return re!==re}function ET(re,_e){var me=re==null?0:re.length;return me?s3(re,_e)/me:L}function a3(re){return function(_e){return _e==null?n:_e[re]}}function o3(re){return function(_e){return re==null?n:re[_e]}}function TT(re,_e,me,et,Ft){return Ft(re,function(dn,br,xn){me=et?(et=!1,dn):_e(me,dn,br,xn)}),me}function _J(re,_e){var me=re.length;for(re.sort(_e);me--;)re[me]=re[me].value;return re}function s3(re,_e){for(var me,et=-1,Ft=re.length;++et<Ft;){var dn=_e(re[et]);dn!==n&&(me=me===n?dn:me+dn)}return me}function l3(re,_e){for(var me=-1,et=Array(re);++me<re;)et[me]=_e(me);return et}function bJ(re,_e){return Rn(_e,function(me){return[me,re[me]]})}function AT(re){return re&&re.slice(0,MT(re)+1).replace(vf,"")}function aa(re){return function(_e){return re(_e)}}function c3(re,_e){return Rn(_e,function(me){return re[me]})}function r0(re,_e){return re.has(_e)}function zT(re,_e){for(var me=-1,et=re.length;++me<et&&Sf(_e,re[me],0)>-1;);return me}function FT(re,_e){for(var me=re.length;me--&&Sf(_e,re[me],0)>-1;);return me}function kJ(re,_e){for(var me=re.length,et=0;me--;)re[me]===_e&&++et;return et}var wJ=o3(iJ),vJ=o3(aJ);function xJ(re){return"\\"+sJ[re]}function CJ(re,_e){return re==null?n:re[_e]}function Df(re){return eJ.test(re)}function SJ(re){return tJ.test(re)}function DJ(re){for(var _e,me=[];!(_e=re.next()).done;)me.push(_e.value);return me}function u3(re){var _e=-1,me=Array(re.size);return re.forEach(function(et,Ft){me[++_e]=[Ft,et]}),me}function $T(re,_e){return function(me){return re(_e(me))}}function sc(re,_e){for(var me=-1,et=re.length,Ft=0,dn=[];++me<et;){var br=re[me];(br===_e||br===u)&&(re[me]=u,dn[Ft++]=me)}return dn}function U1(re){var _e=-1,me=Array(re.size);return re.forEach(function(et){me[++_e]=et}),me}function EJ(re){var _e=-1,me=Array(re.size);return re.forEach(function(et){me[++_e]=[et,et]}),me}function TJ(re,_e,me){for(var et=me-1,Ft=re.length;++et<Ft;)if(re[et]===_e)return et;return-1}function AJ(re,_e,me){for(var et=me+1;et--;)if(re[et]===_e)return et;return et}function Ef(re){return Df(re)?FJ(re):pJ(re)}function Eo(re){return Df(re)?$J(re):mJ(re)}function MT(re){for(var _e=re.length;_e--&&G2.test(re.charAt(_e)););return _e}var zJ=o3(oJ);function FJ(re){for(var _e=Q2.lastIndex=0;Q2.test(re);)++_e;return _e}function $J(re){return re.match(Q2)||[]}function MJ(re){return re.match(QX)||[]}var OJ=function re(_e){_e=_e==null?Br:Tf.defaults(Br.Object(),_e,Tf.pick(Br,nJ));var me=_e.Array,et=_e.Date,Ft=_e.Error,dn=_e.Function,br=_e.Math,xn=_e.Object,d3=_e.RegExp,NJ=_e.String,Ba=_e.TypeError,W1=me.prototype,LJ=dn.prototype,Af=xn.prototype,G1=_e["__core-js_shared__"],K1=LJ.toString,gn=Af.hasOwnProperty,IJ=0,OT=function(){var d=/[^.]+$/.exec(G1&&G1.keys&&G1.keys.IE_PROTO||"");return d?"Symbol(src)_1."+d:""}(),Y1=Af.toString,BJ=K1.call(xn),RJ=Br._,PJ=d3("^"+K1.call(gn).replace(Nu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Z1=yT?_e.Buffer:n,lc=_e.Symbol,X1=_e.Uint8Array,NT=Z1?Z1.allocUnsafe:n,J1=$T(xn.getPrototypeOf,xn),LT=xn.create,IT=Af.propertyIsEnumerable,Q1=W1.splice,BT=lc?lc.isConcatSpreadable:n,i0=lc?lc.iterator:n,Iu=lc?lc.toStringTag:n,ey=function(){try{var d=Vu(xn,"defineProperty");return d({},"",{}),d}catch{}}(),jJ=_e.clearTimeout!==Br.clearTimeout&&_e.clearTimeout,VJ=et&&et.now!==Br.Date.now&&et.now,qJ=_e.setTimeout!==Br.setTimeout&&_e.setTimeout,ty=br.ceil,ny=br.floor,f3=xn.getOwnPropertySymbols,HJ=Z1?Z1.isBuffer:n,RT=_e.isFinite,UJ=W1.join,WJ=$T(xn.keys,xn),kr=br.max,Yr=br.min,GJ=et.now,KJ=_e.parseInt,PT=br.random,YJ=W1.reverse,h3=Vu(_e,"DataView"),a0=Vu(_e,"Map"),p3=Vu(_e,"Promise"),zf=Vu(_e,"Set"),o0=Vu(_e,"WeakMap"),s0=Vu(xn,"create"),ry=o0&&new o0,Ff={},ZJ=qu(h3),XJ=qu(a0),JJ=qu(p3),QJ=qu(zf),eQ=qu(o0),iy=lc?lc.prototype:n,l0=iy?iy.valueOf:n,jT=iy?iy.toString:n;function N(d){if(Jn(d)&&!Ot(d)&&!(d instanceof Qt)){if(d instanceof Ra)return d;if(gn.call(d,"__wrapped__"))return VA(d)}return new Ra(d)}var $f=function(){function d(){}return function(p){if(!qn(p))return{};if(LT)return LT(p);d.prototype=p;var y=new d;return d.prototype=n,y}}();function ay(){}function Ra(d,p){this.__wrapped__=d,this.__actions__=[],this.__chain__=!!p,this.__index__=0,this.__values__=n}N.templateSettings={escape:Gs,evaluate:ns,interpolate:Ks,variable:"",imports:{_:N}},N.prototype=ay.prototype,N.prototype.constructor=N,Ra.prototype=$f(ay.prototype),Ra.prototype.constructor=Ra;function Qt(d){this.__wrapped__=d,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=de,this.__views__=[]}function tQ(){var d=new Qt(this.__wrapped__);return d.__actions__=Ai(this.__actions__),d.__dir__=this.__dir__,d.__filtered__=this.__filtered__,d.__iteratees__=Ai(this.__iteratees__),d.__takeCount__=this.__takeCount__,d.__views__=Ai(this.__views__),d}function nQ(){if(this.__filtered__){var d=new Qt(this);d.__dir__=-1,d.__filtered__=!0}else d=this.clone(),d.__dir__*=-1;return d}function rQ(){var d=this.__wrapped__.value(),p=this.__dir__,y=Ot(d),x=p<0,z=y?d.length:0,P=mee(0,z,this.__views__),H=P.start,X=P.end,oe=X-H,we=x?X:H-1,ve=this.__iteratees__,De=ve.length,qe=0,at=Yr(oe,this.__takeCount__);if(!y||!x&&z==oe&&at==oe)return dA(d,this.__actions__);var wt=[];e:for(;oe--&&qe<at;){we+=p;for(var Ht=-1,vt=d[we];++Ht<De;){var Zt=ve[Ht],nn=Zt.iteratee,la=Zt.type,di=nn(vt);if(la==Y)vt=di;else if(!di){if(la==W)continue e;break e}}wt[qe++]=vt}return wt}Qt.prototype=$f(ay.prototype),Qt.prototype.constructor=Qt;function Bu(d){var p=-1,y=d==null?0:d.length;for(this.clear();++p<y;){var x=d[p];this.set(x[0],x[1])}}function iQ(){this.__data__=s0?s0(null):{},this.size=0}function aQ(d){var p=this.has(d)&&delete this.__data__[d];return this.size-=p?1:0,p}function oQ(d){var p=this.__data__;if(s0){var y=p[d];return y===l?n:y}return gn.call(p,d)?p[d]:n}function sQ(d){var p=this.__data__;return s0?p[d]!==n:gn.call(p,d)}function lQ(d,p){var y=this.__data__;return this.size+=this.has(d)?0:1,y[d]=s0&&p===n?l:p,this}Bu.prototype.clear=iQ,Bu.prototype.delete=aQ,Bu.prototype.get=oQ,Bu.prototype.has=sQ,Bu.prototype.set=lQ;function Xs(d){var p=-1,y=d==null?0:d.length;for(this.clear();++p<y;){var x=d[p];this.set(x[0],x[1])}}function cQ(){this.__data__=[],this.size=0}function uQ(d){var p=this.__data__,y=oy(p,d);if(y<0)return!1;var x=p.length-1;return y==x?p.pop():Q1.call(p,y,1),--this.size,!0}function dQ(d){var p=this.__data__,y=oy(p,d);return y<0?n:p[y][1]}function fQ(d){return oy(this.__data__,d)>-1}function hQ(d,p){var y=this.__data__,x=oy(y,d);return x<0?(++this.size,y.push([d,p])):y[x][1]=p,this}Xs.prototype.clear=cQ,Xs.prototype.delete=uQ,Xs.prototype.get=dQ,Xs.prototype.has=fQ,Xs.prototype.set=hQ;function Js(d){var p=-1,y=d==null?0:d.length;for(this.clear();++p<y;){var x=d[p];this.set(x[0],x[1])}}function pQ(){this.size=0,this.__data__={hash:new Bu,map:new(a0||Xs),string:new Bu}}function mQ(d){var p=_y(this,d).delete(d);return this.size-=p?1:0,p}function gQ(d){return _y(this,d).get(d)}function yQ(d){return _y(this,d).has(d)}function _Q(d,p){var y=_y(this,d),x=y.size;return y.set(d,p),this.size+=y.size==x?0:1,this}Js.prototype.clear=pQ,Js.prototype.delete=mQ,Js.prototype.get=gQ,Js.prototype.has=yQ,Js.prototype.set=_Q;function Ru(d){var p=-1,y=d==null?0:d.length;for(this.__data__=new Js;++p<y;)this.add(d[p])}function bQ(d){return this.__data__.set(d,l),this}function kQ(d){return this.__data__.has(d)}Ru.prototype.add=Ru.prototype.push=bQ,Ru.prototype.has=kQ;function To(d){var p=this.__data__=new Xs(d);this.size=p.size}function wQ(){this.__data__=new Xs,this.size=0}function vQ(d){var p=this.__data__,y=p.delete(d);return this.size=p.size,y}function xQ(d){return this.__data__.get(d)}function CQ(d){return this.__data__.has(d)}function SQ(d,p){var y=this.__data__;if(y instanceof Xs){var x=y.__data__;if(!a0||x.length<i-1)return x.push([d,p]),this.size=++y.size,this;y=this.__data__=new Js(x)}return y.set(d,p),this.size=y.size,this}To.prototype.clear=wQ,To.prototype.delete=vQ,To.prototype.get=xQ,To.prototype.has=CQ,To.prototype.set=SQ;function VT(d,p){var y=Ot(d),x=!y&&Hu(d),z=!y&&!x&&hc(d),P=!y&&!x&&!z&&Lf(d),H=y||x||z||P,X=H?l3(d.length,NJ):[],oe=X.length;for(var we in d)(p||gn.call(d,we))&&!(H&&(we=="length"||z&&(we=="offset"||we=="parent")||P&&(we=="buffer"||we=="byteLength"||we=="byteOffset")||nl(we,oe)))&&X.push(we);return X}function qT(d){var p=d.length;return p?d[S3(0,p-1)]:n}function DQ(d,p){return by(Ai(d),Pu(p,0,d.length))}function EQ(d){return by(Ai(d))}function m3(d,p,y){(y!==n&&!Ao(d[p],y)||y===n&&!(p in d))&&Qs(d,p,y)}function c0(d,p,y){var x=d[p];(!(gn.call(d,p)&&Ao(x,y))||y===n&&!(p in d))&&Qs(d,p,y)}function oy(d,p){for(var y=d.length;y--;)if(Ao(d[y][0],p))return y;return-1}function TQ(d,p,y,x){return cc(d,function(z,P,H){p(x,z,y(z),H)}),x}function HT(d,p){return d&&is(p,Ar(p),d)}function AQ(d,p){return d&&is(p,Fi(p),d)}function Qs(d,p,y){p=="__proto__"&&ey?ey(d,p,{configurable:!0,enumerable:!0,value:y,writable:!0}):d[p]=y}function g3(d,p){for(var y=-1,x=p.length,z=me(x),P=d==null;++y<x;)z[y]=P?n:Z3(d,p[y]);return z}function Pu(d,p,y){return d===d&&(y!==n&&(d=d<=y?d:y),p!==n&&(d=d>=p?d:p)),d}function Pa(d,p,y,x,z,P){var H,X=p&f,oe=p&h,we=p&m;if(y&&(H=z?y(d,x,z,P):y(d)),H!==n)return H;if(!qn(d))return d;var ve=Ot(d);if(ve){if(H=yee(d),!X)return Ai(d,H)}else{var De=Zr(d),qe=De==Xe||De==Kt;if(hc(d))return pA(d,X);if(De==ie||De==ze||qe&&!z){if(H=oe||qe?{}:MA(d),!X)return oe?oee(d,AQ(H,d)):aee(d,HT(H,d))}else{if(!Dn[De])return z?d:{};H=_ee(d,De,X)}}P||(P=new To);var at=P.get(d);if(at)return at;P.set(d,H),lz(d)?d.forEach(function(vt){H.add(Pa(vt,p,y,vt,d,P))}):oz(d)&&d.forEach(function(vt,Zt){H.set(Zt,Pa(vt,p,y,Zt,d,P))});var wt=we?oe?L3:N3:oe?Fi:Ar,Ht=ve?n:wt(d);return Ia(Ht||d,function(vt,Zt){Ht&&(Zt=vt,vt=d[Zt]),c0(H,Zt,Pa(vt,p,y,Zt,d,P))}),H}function zQ(d){var p=Ar(d);return function(y){return UT(y,d,p)}}function UT(d,p,y){var x=y.length;if(d==null)return!x;for(d=xn(d);x--;){var z=y[x],P=p[z],H=d[z];if(H===n&&!(z in d)||!P(H))return!1}return!0}function WT(d,p,y){if(typeof d!="function")throw new Ba(o);return g0(function(){d.apply(n,y)},p)}function u0(d,p,y,x){var z=-1,P=q1,H=!0,X=d.length,oe=[],we=p.length;if(!X)return oe;y&&(p=Rn(p,aa(y))),x?(P=n3,H=!1):p.length>=i&&(P=r0,H=!1,p=new Ru(p));e:for(;++z<X;){var ve=d[z],De=y==null?ve:y(ve);if(ve=x||ve!==0?ve:0,H&&De===De){for(var qe=we;qe--;)if(p[qe]===De)continue e;oe.push(ve)}else P(p,De,x)||oe.push(ve)}return oe}var cc=bA(rs),GT=bA(_3,!0);function FQ(d,p){var y=!0;return cc(d,function(x,z,P){return y=!!p(x,z,P),y}),y}function sy(d,p,y){for(var x=-1,z=d.length;++x<z;){var P=d[x],H=p(P);if(H!=null&&(X===n?H===H&&!sa(H):y(H,X)))var X=H,oe=P}return oe}function $Q(d,p,y,x){var z=d.length;for(y=jt(y),y<0&&(y=-y>z?0:z+y),x=x===n||x>z?z:jt(x),x<0&&(x+=z),x=y>x?0:uz(x);y<x;)d[y++]=p;return d}function KT(d,p){var y=[];return cc(d,function(x,z,P){p(x,z,P)&&y.push(x)}),y}function Rr(d,p,y,x,z){var P=-1,H=d.length;for(y||(y=kee),z||(z=[]);++P<H;){var X=d[P];p>0&&y(X)?p>1?Rr(X,p-1,y,x,z):oc(z,X):x||(z[z.length]=X)}return z}var y3=kA(),YT=kA(!0);function rs(d,p){return d&&y3(d,p,Ar)}function _3(d,p){return d&&YT(d,p,Ar)}function ly(d,p){return ac(p,function(y){return rl(d[y])})}function ju(d,p){p=dc(p,d);for(var y=0,x=p.length;d!=null&&y<x;)d=d[as(p[y++])];return y&&y==x?d:n}function ZT(d,p,y){var x=p(d);return Ot(d)?x:oc(x,y(d))}function ci(d){return d==null?d===n?Re:K:Iu&&Iu in xn(d)?pee(d):Eee(d)}function b3(d,p){return d>p}function MQ(d,p){return d!=null&&gn.call(d,p)}function OQ(d,p){return d!=null&&p in xn(d)}function NQ(d,p,y){return d>=Yr(p,y)&&d<kr(p,y)}function k3(d,p,y){for(var x=y?n3:q1,z=d[0].length,P=d.length,H=P,X=me(P),oe=1/0,we=[];H--;){var ve=d[H];H&&p&&(ve=Rn(ve,aa(p))),oe=Yr(ve.length,oe),X[H]=!y&&(p||z>=120&&ve.length>=120)?new Ru(H&&ve):n}ve=d[0];var De=-1,qe=X[0];e:for(;++De<z&&we.length<oe;){var at=ve[De],wt=p?p(at):at;if(at=y||at!==0?at:0,!(qe?r0(qe,wt):x(we,wt,y))){for(H=P;--H;){var Ht=X[H];if(!(Ht?r0(Ht,wt):x(d[H],wt,y)))continue e}qe&&qe.push(wt),we.push(at)}}return we}function LQ(d,p,y,x){return rs(d,function(z,P,H){p(x,y(z),P,H)}),x}function d0(d,p,y){p=dc(p,d),d=IA(d,p);var x=d==null?d:d[as(Va(p))];return x==null?n:ia(x,d,y)}function XT(d){return Jn(d)&&ci(d)==ze}function IQ(d){return Jn(d)&&ci(d)==pe}function BQ(d){return Jn(d)&&ci(d)==We}function f0(d,p,y,x,z){return d===p?!0:d==null||p==null||!Jn(d)&&!Jn(p)?d!==d&&p!==p:RQ(d,p,y,x,f0,z)}function RQ(d,p,y,x,z,P){var H=Ot(d),X=Ot(p),oe=H?J:Zr(d),we=X?J:Zr(p);oe=oe==ze?ie:oe,we=we==ze?ie:we;var ve=oe==ie,De=we==ie,qe=oe==we;if(qe&&hc(d)){if(!hc(p))return!1;H=!0,ve=!1}if(qe&&!ve)return P||(P=new To),H||Lf(d)?zA(d,p,y,x,z,P):fee(d,p,oe,y,x,z,P);if(!(y&g)){var at=ve&&gn.call(d,"__wrapped__"),wt=De&&gn.call(p,"__wrapped__");if(at||wt){var Ht=at?d.value():d,vt=wt?p.value():p;return P||(P=new To),z(Ht,vt,y,x,P)}}return qe?(P||(P=new To),hee(d,p,y,x,z,P)):!1}function PQ(d){return Jn(d)&&Zr(d)==Et}function w3(d,p,y,x){var z=y.length,P=z,H=!x;if(d==null)return!P;for(d=xn(d);z--;){var X=y[z];if(H&&X[2]?X[1]!==d[X[0]]:!(X[0]in d))return!1}for(;++z<P;){X=y[z];var oe=X[0],we=d[oe],ve=X[1];if(H&&X[2]){if(we===n&&!(oe in d))return!1}else{var De=new To;if(x)var qe=x(we,ve,oe,d,p,De);if(!(qe===n?f0(ve,we,g|b,x,De):qe))return!1}}return!0}function JT(d){if(!qn(d)||vee(d))return!1;var p=rl(d)?PJ:Ze;return p.test(qu(d))}function jQ(d){return Jn(d)&&ci(d)==xe}function VQ(d){return Jn(d)&&Zr(d)==ke}function qQ(d){return Jn(d)&&Sy(d.length)&&!!$n[ci(d)]}function QT(d){return typeof d=="function"?d:d==null?$i:typeof d=="object"?Ot(d)?nA(d[0],d[1]):tA(d):wz(d)}function v3(d){if(!m0(d))return WJ(d);var p=[];for(var y in xn(d))gn.call(d,y)&&y!="constructor"&&p.push(y);return p}function HQ(d){if(!qn(d))return Dee(d);var p=m0(d),y=[];for(var x in d)x=="constructor"&&(p||!gn.call(d,x))||y.push(x);return y}function x3(d,p){return d<p}function eA(d,p){var y=-1,x=zi(d)?me(d.length):[];return cc(d,function(z,P,H){x[++y]=p(z,P,H)}),x}function tA(d){var p=B3(d);return p.length==1&&p[0][2]?NA(p[0][0],p[0][1]):function(y){return y===d||w3(y,d,p)}}function nA(d,p){return P3(d)&&OA(p)?NA(as(d),p):function(y){var x=Z3(y,d);return x===n&&x===p?X3(y,d):f0(p,x,g|b)}}function cy(d,p,y,x,z){d!==p&&y3(p,function(P,H){if(z||(z=new To),qn(P))UQ(d,p,H,y,cy,x,z);else{var X=x?x(V3(d,H),P,H+"",d,p,z):n;X===n&&(X=P),m3(d,H,X)}},Fi)}function UQ(d,p,y,x,z,P,H){var X=V3(d,y),oe=V3(p,y),we=H.get(oe);if(we){m3(d,y,we);return}var ve=P?P(X,oe,y+"",d,p,H):n,De=ve===n;if(De){var qe=Ot(oe),at=!qe&&hc(oe),wt=!qe&&!at&&Lf(oe);ve=oe,qe||at||wt?Ot(X)?ve=X:ir(X)?ve=Ai(X):at?(De=!1,ve=pA(oe,!0)):wt?(De=!1,ve=mA(oe,!0)):ve=[]:y0(oe)||Hu(oe)?(ve=X,Hu(X)?ve=dz(X):(!qn(X)||rl(X))&&(ve=MA(oe))):De=!1}De&&(H.set(oe,ve),z(ve,oe,x,P,H),H.delete(oe)),m3(d,y,ve)}function rA(d,p){var y=d.length;if(y)return p+=p<0?y:0,nl(p,y)?d[p]:n}function iA(d,p,y){p.length?p=Rn(p,function(P){return Ot(P)?function(H){return ju(H,P.length===1?P[0]:P)}:P}):p=[$i];var x=-1;p=Rn(p,aa(bt()));var z=eA(d,function(P,H,X){var oe=Rn(p,function(we){return we(P)});return{criteria:oe,index:++x,value:P}});return _J(z,function(P,H){return iee(P,H,y)})}function WQ(d,p){return aA(d,p,function(y,x){return X3(d,x)})}function aA(d,p,y){for(var x=-1,z=p.length,P={};++x<z;){var H=p[x],X=ju(d,H);y(X,H)&&h0(P,dc(H,d),X)}return P}function GQ(d){return function(p){return ju(p,d)}}function C3(d,p,y,x){var z=x?yJ:Sf,P=-1,H=p.length,X=d;for(d===p&&(p=Ai(p)),y&&(X=Rn(d,aa(y)));++P<H;)for(var oe=0,we=p[P],ve=y?y(we):we;(oe=z(X,ve,oe,x))>-1;)X!==d&&Q1.call(X,oe,1),Q1.call(d,oe,1);return d}function oA(d,p){for(var y=d?p.length:0,x=y-1;y--;){var z=p[y];if(y==x||z!==P){var P=z;nl(z)?Q1.call(d,z,1):T3(d,z)}}return d}function S3(d,p){return d+ny(PT()*(p-d+1))}function KQ(d,p,y,x){for(var z=-1,P=kr(ty((p-d)/(y||1)),0),H=me(P);P--;)H[x?P:++z]=d,d+=y;return H}function D3(d,p){var y="";if(!d||p<1||p>Q)return y;do p%2&&(y+=d),p=ny(p/2),p&&(d+=d);while(p);return y}function Gt(d,p){return q3(LA(d,p,$i),d+"")}function YQ(d){return qT(If(d))}function ZQ(d,p){var y=If(d);return by(y,Pu(p,0,y.length))}function h0(d,p,y,x){if(!qn(d))return d;p=dc(p,d);for(var z=-1,P=p.length,H=P-1,X=d;X!=null&&++z<P;){var oe=as(p[z]),we=y;if(oe==="__proto__"||oe==="constructor"||oe==="prototype")return d;if(z!=H){var ve=X[oe];we=x?x(ve,oe,X):n,we===n&&(we=qn(ve)?ve:nl(p[z+1])?[]:{})}c0(X,oe,we),X=X[oe]}return d}var sA=ry?function(d,p){return ry.set(d,p),d}:$i,XQ=ey?function(d,p){return ey(d,"toString",{configurable:!0,enumerable:!1,value:Q3(p),writable:!0})}:$i;function JQ(d){return by(If(d))}function ja(d,p,y){var x=-1,z=d.length;p<0&&(p=-p>z?0:z+p),y=y>z?z:y,y<0&&(y+=z),z=p>y?0:y-p>>>0,p>>>=0;for(var P=me(z);++x<z;)P[x]=d[x+p];return P}function QQ(d,p){var y;return cc(d,function(x,z,P){return y=p(x,z,P),!y}),!!y}function uy(d,p,y){var x=0,z=d==null?x:d.length;if(typeof p=="number"&&p===p&&z<=I){for(;x<z;){var P=x+z>>>1,H=d[P];H!==null&&!sa(H)&&(y?H<=p:H<p)?x=P+1:z=P}return z}return E3(d,p,$i,y)}function E3(d,p,y,x){var z=0,P=d==null?0:d.length;if(P===0)return 0;p=y(p);for(var H=p!==p,X=p===null,oe=sa(p),we=p===n;z<P;){var ve=ny((z+P)/2),De=y(d[ve]),qe=De!==n,at=De===null,wt=De===De,Ht=sa(De);if(H)var vt=x||wt;else we?vt=wt&&(x||qe):X?vt=wt&&qe&&(x||!at):oe?vt=wt&&qe&&!at&&(x||!Ht):at||Ht?vt=!1:vt=x?De<=p:De<p;vt?z=ve+1:P=ve}return Yr(P,ue)}function lA(d,p){for(var y=-1,x=d.length,z=0,P=[];++y<x;){var H=d[y],X=p?p(H):H;if(!y||!Ao(X,oe)){var oe=X;P[z++]=H===0?0:H}}return P}function cA(d){return typeof d=="number"?d:sa(d)?L:+d}function oa(d){if(typeof d=="string")return d;if(Ot(d))return Rn(d,oa)+"";if(sa(d))return jT?jT.call(d):"";var p=d+"";return p=="0"&&1/d==-ae?"-0":p}function uc(d,p,y){var x=-1,z=q1,P=d.length,H=!0,X=[],oe=X;if(y)H=!1,z=n3;else if(P>=i){var we=p?null:uee(d);if(we)return U1(we);H=!1,z=r0,oe=new Ru}else oe=p?[]:X;e:for(;++x<P;){var ve=d[x],De=p?p(ve):ve;if(ve=y||ve!==0?ve:0,H&&De===De){for(var qe=oe.length;qe--;)if(oe[qe]===De)continue e;p&&oe.push(De),X.push(ve)}else z(oe,De,y)||(oe!==X&&oe.push(De),X.push(ve))}return X}function T3(d,p){return p=dc(p,d),d=IA(d,p),d==null||delete d[as(Va(p))]}function uA(d,p,y,x){return h0(d,p,y(ju(d,p)),x)}function dy(d,p,y,x){for(var z=d.length,P=x?z:-1;(x?P--:++P<z)&&p(d[P],P,d););return y?ja(d,x?0:P,x?P+1:z):ja(d,x?P+1:0,x?z:P)}function dA(d,p){var y=d;return y instanceof Qt&&(y=y.value()),r3(p,function(x,z){return z.func.apply(z.thisArg,oc([x],z.args))},y)}function A3(d,p,y){var x=d.length;if(x<2)return x?uc(d[0]):[];for(var z=-1,P=me(x);++z<x;)for(var H=d[z],X=-1;++X<x;)X!=z&&(P[z]=u0(P[z]||H,d[X],p,y));return uc(Rr(P,1),p,y)}function fA(d,p,y){for(var x=-1,z=d.length,P=p.length,H={};++x<z;){var X=x<P?p[x]:n;y(H,d[x],X)}return H}function z3(d){return ir(d)?d:[]}function F3(d){return typeof d=="function"?d:$i}function dc(d,p){return Ot(d)?d:P3(d,p)?[d]:jA(pn(d))}var eee=Gt;function fc(d,p,y){var x=d.length;return y=y===n?x:y,!p&&y>=x?d:ja(d,p,y)}var hA=jJ||function(d){return Br.clearTimeout(d)};function pA(d,p){if(p)return d.slice();var y=d.length,x=NT?NT(y):new d.constructor(y);return d.copy(x),x}function $3(d){var p=new d.constructor(d.byteLength);return new X1(p).set(new X1(d)),p}function tee(d,p){var y=p?$3(d.buffer):d.buffer;return new d.constructor(y,d.byteOffset,d.byteLength)}function nee(d){var p=new d.constructor(d.source,ot.exec(d));return p.lastIndex=d.lastIndex,p}function ree(d){return l0?xn(l0.call(d)):{}}function mA(d,p){var y=p?$3(d.buffer):d.buffer;return new d.constructor(y,d.byteOffset,d.length)}function gA(d,p){if(d!==p){var y=d!==n,x=d===null,z=d===d,P=sa(d),H=p!==n,X=p===null,oe=p===p,we=sa(p);if(!X&&!we&&!P&&d>p||P&&H&&oe&&!X&&!we||x&&H&&oe||!y&&oe||!z)return 1;if(!x&&!P&&!we&&d<p||we&&y&&z&&!x&&!P||X&&y&&z||!H&&z||!oe)return-1}return 0}function iee(d,p,y){for(var x=-1,z=d.criteria,P=p.criteria,H=z.length,X=y.length;++x<H;){var oe=gA(z[x],P[x]);if(oe){if(x>=X)return oe;var we=y[x];return oe*(we=="desc"?-1:1)}}return d.index-p.index}function yA(d,p,y,x){for(var z=-1,P=d.length,H=y.length,X=-1,oe=p.length,we=kr(P-H,0),ve=me(oe+we),De=!x;++X<oe;)ve[X]=p[X];for(;++z<H;)(De||z<P)&&(ve[y[z]]=d[z]);for(;we--;)ve[X++]=d[z++];return ve}function _A(d,p,y,x){for(var z=-1,P=d.length,H=-1,X=y.length,oe=-1,we=p.length,ve=kr(P-X,0),De=me(ve+we),qe=!x;++z<ve;)De[z]=d[z];for(var at=z;++oe<we;)De[at+oe]=p[oe];for(;++H<X;)(qe||z<P)&&(De[at+y[H]]=d[z++]);return De}function Ai(d,p){var y=-1,x=d.length;for(p||(p=me(x));++y<x;)p[y]=d[y];return p}function is(d,p,y,x){var z=!y;y||(y={});for(var P=-1,H=p.length;++P<H;){var X=p[P],oe=x?x(y[X],d[X],X,y,d):n;oe===n&&(oe=d[X]),z?Qs(y,X,oe):c0(y,X,oe)}return y}function aee(d,p){return is(d,R3(d),p)}function oee(d,p){return is(d,FA(d),p)}function fy(d,p){return function(y,x){var z=Ot(y)?dJ:TQ,P=p?p():{};return z(y,d,bt(x,2),P)}}function Mf(d){return Gt(function(p,y){var x=-1,z=y.length,P=z>1?y[z-1]:n,H=z>2?y[2]:n;for(P=d.length>3&&typeof P=="function"?(z--,P):n,H&&ui(y[0],y[1],H)&&(P=z<3?n:P,z=1),p=xn(p);++x<z;){var X=y[x];X&&d(p,X,x,P)}return p})}function bA(d,p){return function(y,x){if(y==null)return y;if(!zi(y))return d(y,x);for(var z=y.length,P=p?z:-1,H=xn(y);(p?P--:++P<z)&&x(H[P],P,H)!==!1;);return y}}function kA(d){return function(p,y,x){for(var z=-1,P=xn(p),H=x(p),X=H.length;X--;){var oe=H[d?X:++z];if(y(P[oe],oe,P)===!1)break}return p}}function see(d,p,y){var x=p&C,z=p0(d);function P(){var H=this&&this!==Br&&this instanceof P?z:d;return H.apply(x?y:this,arguments)}return P}function wA(d){return function(p){p=pn(p);var y=Df(p)?Eo(p):n,x=y?y[0]:p.charAt(0),z=y?fc(y,1).join(""):p.slice(1);return x[d]()+z}}function Of(d){return function(p){return r3(bz(_z(p).replace(XX,"")),d,"")}}function p0(d){return function(){var p=arguments;switch(p.length){case 0:return new d;case 1:return new d(p[0]);case 2:return new d(p[0],p[1]);case 3:return new d(p[0],p[1],p[2]);case 4:return new d(p[0],p[1],p[2],p[3]);case 5:return new d(p[0],p[1],p[2],p[3],p[4]);case 6:return new d(p[0],p[1],p[2],p[3],p[4],p[5]);case 7:return new d(p[0],p[1],p[2],p[3],p[4],p[5],p[6])}var y=$f(d.prototype),x=d.apply(y,p);return qn(x)?x:y}}function lee(d,p,y){var x=p0(d);function z(){for(var P=arguments.length,H=me(P),X=P,oe=Nf(z);X--;)H[X]=arguments[X];var we=P<3&&H[0]!==oe&&H[P-1]!==oe?[]:sc(H,oe);if(P-=we.length,P<y)return DA(d,p,hy,z.placeholder,n,H,we,n,n,y-P);var ve=this&&this!==Br&&this instanceof z?x:d;return ia(ve,this,H)}return z}function vA(d){return function(p,y,x){var z=xn(p);if(!zi(p)){var P=bt(y,3);p=Ar(p),y=function(X){return P(z[X],X,z)}}var H=d(p,y,x);return H>-1?z[P?p[H]:H]:n}}function xA(d){return tl(function(p){var y=p.length,x=y,z=Ra.prototype.thru;for(d&&p.reverse();x--;){var P=p[x];if(typeof P!="function")throw new Ba(o);if(z&&!H&&yy(P)=="wrapper")var H=new Ra([],!0)}for(x=H?x:y;++x<y;){P=p[x];var X=yy(P),oe=X=="wrapper"?I3(P):n;oe&&j3(oe[0])&&oe[1]==(T|S|A|$)&&!oe[4].length&&oe[9]==1?H=H[yy(oe[0])].apply(H,oe[3]):H=P.length==1&&j3(P)?H[X]():H.thru(P)}return function(){var we=arguments,ve=we[0];if(H&&we.length==1&&Ot(ve))return H.plant(ve).value();for(var De=0,qe=y?p[De].apply(this,we):ve;++De<y;)qe=p[De].call(this,qe);return qe}})}function hy(d,p,y,x,z,P,H,X,oe,we){var ve=p&T,De=p&C,qe=p&w,at=p&(S|E),wt=p&R,Ht=qe?n:p0(d);function vt(){for(var Zt=arguments.length,nn=me(Zt),la=Zt;la--;)nn[la]=arguments[la];if(at)var di=Nf(vt),ca=kJ(nn,di);if(x&&(nn=yA(nn,x,z,at)),P&&(nn=_A(nn,P,H,at)),Zt-=ca,at&&Zt<we){var ar=sc(nn,di);return DA(d,p,hy,vt.placeholder,y,nn,ar,X,oe,we-Zt)}var zo=De?y:this,al=qe?zo[d]:d;return Zt=nn.length,X?nn=Tee(nn,X):wt&&Zt>1&&nn.reverse(),ve&&oe<Zt&&(nn.length=oe),this&&this!==Br&&this instanceof vt&&(al=Ht||p0(al)),al.apply(zo,nn)}return vt}function CA(d,p){return function(y,x){return LQ(y,d,p(x),{})}}function py(d,p){return function(y,x){var z;if(y===n&&x===n)return p;if(y!==n&&(z=y),x!==n){if(z===n)return x;typeof y=="string"||typeof x=="string"?(y=oa(y),x=oa(x)):(y=cA(y),x=cA(x)),z=d(y,x)}return z}}function M3(d){return tl(function(p){return p=Rn(p,aa(bt())),Gt(function(y){var x=this;return d(p,function(z){return ia(z,x,y)})})})}function my(d,p){p=p===n?" ":oa(p);var y=p.length;if(y<2)return y?D3(p,d):p;var x=D3(p,ty(d/Ef(p)));return Df(p)?fc(Eo(x),0,d).join(""):x.slice(0,d)}function cee(d,p,y,x){var z=p&C,P=p0(d);function H(){for(var X=-1,oe=arguments.length,we=-1,ve=x.length,De=me(ve+oe),qe=this&&this!==Br&&this instanceof H?P:d;++we<ve;)De[we]=x[we];for(;oe--;)De[we++]=arguments[++X];return ia(qe,z?y:this,De)}return H}function SA(d){return function(p,y,x){return x&&typeof x!="number"&&ui(p,y,x)&&(y=x=n),p=il(p),y===n?(y=p,p=0):y=il(y),x=x===n?p<y?1:-1:il(x),KQ(p,y,x,d)}}function gy(d){return function(p,y){return typeof p=="string"&&typeof y=="string"||(p=qa(p),y=qa(y)),d(p,y)}}function DA(d,p,y,x,z,P,H,X,oe,we){var ve=p&S,De=ve?H:n,qe=ve?n:H,at=ve?P:n,wt=ve?n:P;p|=ve?A:_,p&=~(ve?_:A),p&k||(p&=~(C|w));var Ht=[d,p,z,at,De,wt,qe,X,oe,we],vt=y.apply(n,Ht);return j3(d)&&BA(vt,Ht),vt.placeholder=x,RA(vt,d,p)}function O3(d){var p=br[d];return function(y,x){if(y=qa(y),x=x==null?0:Yr(jt(x),292),x&&RT(y)){var z=(pn(y)+"e").split("e"),P=p(z[0]+"e"+(+z[1]+x));return z=(pn(P)+"e").split("e"),+(z[0]+"e"+(+z[1]-x))}return p(y)}}var uee=zf&&1/U1(new zf([,-0]))[1]==ae?function(d){return new zf(d)}:n4;function EA(d){return function(p){var y=Zr(p);return y==Et?u3(p):y==ke?EJ(p):bJ(p,d(p))}}function el(d,p,y,x,z,P,H,X){var oe=p&w;if(!oe&&typeof d!="function")throw new Ba(o);var we=x?x.length:0;if(we||(p&=~(A|_),x=z=n),H=H===n?H:kr(jt(H),0),X=X===n?X:jt(X),we-=z?z.length:0,p&_){var ve=x,De=z;x=z=n}var qe=oe?n:I3(d),at=[d,p,y,x,z,ve,De,P,H,X];if(qe&&See(at,qe),d=at[0],p=at[1],y=at[2],x=at[3],z=at[4],X=at[9]=at[9]===n?oe?0:d.length:kr(at[9]-we,0),!X&&p&(S|E)&&(p&=~(S|E)),!p||p==C)var wt=see(d,p,y);else p==S||p==E?wt=lee(d,p,X):(p==A||p==(C|A))&&!z.length?wt=cee(d,p,y,x):wt=hy.apply(n,at);var Ht=qe?sA:BA;return RA(Ht(wt,at),d,p)}function TA(d,p,y,x){return d===n||Ao(d,Af[y])&&!gn.call(x,y)?p:d}function AA(d,p,y,x,z,P){return qn(d)&&qn(p)&&(P.set(p,d),cy(d,p,n,AA,P),P.delete(p)),d}function dee(d){return y0(d)?n:d}function zA(d,p,y,x,z,P){var H=y&g,X=d.length,oe=p.length;if(X!=oe&&!(H&&oe>X))return!1;var we=P.get(d),ve=P.get(p);if(we&&ve)return we==p&&ve==d;var De=-1,qe=!0,at=y&b?new Ru:n;for(P.set(d,p),P.set(p,d);++De<X;){var wt=d[De],Ht=p[De];if(x)var vt=H?x(Ht,wt,De,p,d,P):x(wt,Ht,De,d,p,P);if(vt!==n){if(vt)continue;qe=!1;break}if(at){if(!i3(p,function(Zt,nn){if(!r0(at,nn)&&(wt===Zt||z(wt,Zt,y,x,P)))return at.push(nn)})){qe=!1;break}}else if(!(wt===Ht||z(wt,Ht,y,x,P))){qe=!1;break}}return P.delete(d),P.delete(p),qe}function fee(d,p,y,x,z,P,H){switch(y){case Ce:if(d.byteLength!=p.byteLength||d.byteOffset!=p.byteOffset)return!1;d=d.buffer,p=p.buffer;case pe:return!(d.byteLength!=p.byteLength||!P(new X1(d),new X1(p)));case ye:case We:case mt:return Ao(+d,+p);case Ge:return d.name==p.name&&d.message==p.message;case xe:case Be:return d==p+"";case Et:var X=u3;case ke:var oe=x&g;if(X||(X=U1),d.size!=p.size&&!oe)return!1;var we=H.get(d);if(we)return we==p;x|=b,H.set(d,p);var ve=zA(X(d),X(p),x,z,P,H);return H.delete(d),ve;case dt:if(l0)return l0.call(d)==l0.call(p)}return!1}function hee(d,p,y,x,z,P){var H=y&g,X=N3(d),oe=X.length,we=N3(p),ve=we.length;if(oe!=ve&&!H)return!1;for(var De=oe;De--;){var qe=X[De];if(!(H?qe in p:gn.call(p,qe)))return!1}var at=P.get(d),wt=P.get(p);if(at&&wt)return at==p&&wt==d;var Ht=!0;P.set(d,p),P.set(p,d);for(var vt=H;++De<oe;){qe=X[De];var Zt=d[qe],nn=p[qe];if(x)var la=H?x(nn,Zt,qe,p,d,P):x(Zt,nn,qe,d,p,P);if(!(la===n?Zt===nn||z(Zt,nn,y,x,P):la)){Ht=!1;break}vt||(vt=qe=="constructor")}if(Ht&&!vt){var di=d.constructor,ca=p.constructor;di!=ca&&"constructor"in d&&"constructor"in p&&!(typeof di=="function"&&di instanceof di&&typeof ca=="function"&&ca instanceof ca)&&(Ht=!1)}return P.delete(d),P.delete(p),Ht}function tl(d){return q3(LA(d,n,UA),d+"")}function N3(d){return ZT(d,Ar,R3)}function L3(d){return ZT(d,Fi,FA)}var I3=ry?function(d){return ry.get(d)}:n4;function yy(d){for(var p=d.name+"",y=Ff[p],x=gn.call(Ff,p)?y.length:0;x--;){var z=y[x],P=z.func;if(P==null||P==d)return z.name}return p}function Nf(d){var p=gn.call(N,"placeholder")?N:d;return p.placeholder}function bt(){var d=N.iteratee||e4;return d=d===e4?QT:d,arguments.length?d(arguments[0],arguments[1]):d}function _y(d,p){var y=d.__data__;return wee(p)?y[typeof p=="string"?"string":"hash"]:y.map}function B3(d){for(var p=Ar(d),y=p.length;y--;){var x=p[y],z=d[x];p[y]=[x,z,OA(z)]}return p}function Vu(d,p){var y=CJ(d,p);return JT(y)?y:n}function pee(d){var p=gn.call(d,Iu),y=d[Iu];try{d[Iu]=n;var x=!0}catch{}var z=Y1.call(d);return x&&(p?d[Iu]=y:delete d[Iu]),z}var R3=f3?function(d){return d==null?[]:(d=xn(d),ac(f3(d),function(p){return IT.call(d,p)}))}:r4,FA=f3?function(d){for(var p=[];d;)oc(p,R3(d)),d=J1(d);return p}:r4,Zr=ci;(h3&&Zr(new h3(new ArrayBuffer(1)))!=Ce||a0&&Zr(new a0)!=Et||p3&&Zr(p3.resolve())!=he||zf&&Zr(new zf)!=ke||o0&&Zr(new o0)!=zt)&&(Zr=function(d){var p=ci(d),y=p==ie?d.constructor:n,x=y?qu(y):"";if(x)switch(x){case ZJ:return Ce;case XJ:return Et;case JJ:return he;case QJ:return ke;case eQ:return zt}return p});function mee(d,p,y){for(var x=-1,z=y.length;++x<z;){var P=y[x],H=P.size;switch(P.type){case"drop":d+=H;break;case"dropRight":p-=H;break;case"take":p=Yr(p,d+H);break;case"takeRight":d=kr(d,p-H);break}}return{start:d,end:p}}function gee(d){var p=d.match(Do);return p?p[1].split(I1):[]}function $A(d,p,y){p=dc(p,d);for(var x=-1,z=p.length,P=!1;++x<z;){var H=as(p[x]);if(!(P=d!=null&&y(d,H)))break;d=d[H]}return P||++x!=z?P:(z=d==null?0:d.length,!!z&&Sy(z)&&nl(H,z)&&(Ot(d)||Hu(d)))}function yee(d){var p=d.length,y=new d.constructor(p);return p&&typeof d[0]=="string"&&gn.call(d,"index")&&(y.index=d.index,y.input=d.input),y}function MA(d){return typeof d.constructor=="function"&&!m0(d)?$f(J1(d)):{}}function _ee(d,p,y){var x=d.constructor;switch(p){case pe:return $3(d);case ye:case We:return new x(+d);case Ce:return tee(d,y);case it:case It:case Tt:case vn:case Tr:case ge:case Ye:case nt:case ct:return mA(d,y);case Et:return new x;case mt:case Be:return new x(d);case xe:return nee(d);case ke:return new x;case dt:return ree(d)}}function bee(d,p){var y=p.length;if(!y)return d;var x=y-1;return p[x]=(y>1?"& ":"")+p[x],p=p.join(y>2?", ":" "),d.replace(xf,`{ /* [wrapped with `+p+`] */ -`)}function bee(d){return Ot(d)||Hu(d)||!!(BT&&d&&d[BT])}function nl(d,p){var y=typeof d;return p=p??Q,!!p&&(y=="number"||y!="symbol"&&ur.test(d))&&d>-1&&d%1==0&&d<p}function ui(d,p,y){if(!qn(y))return!1;var x=typeof p;return(x=="number"?zi(y)&&nl(p,y.length):x=="string"&&p in y)?Ao(y[p],d):!1}function P3(d,p){if(Ot(d))return!1;var y=typeof d;return y=="number"||y=="symbol"||y=="boolean"||d==null||sa(d)?!0:rc.test(d)||!Ys.test(d)||p!=null&&d in xn(p)}function kee(d){var p=typeof d;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?d!=="__proto__":d===null}function j3(d){var p=yy(d),y=N[p];if(typeof y!="function"||!(p in Qt.prototype))return!1;if(d===y)return!0;var x=I3(y);return!!x&&d===x[0]}function wee(d){return!!OT&&OT in d}var vee=G1?rl:i4;function m0(d){var p=d&&d.constructor,y=typeof p=="function"&&p.prototype||Af;return d===y}function OA(d){return d===d&&!qn(d)}function NA(d,p){return function(y){return y==null?!1:y[d]===p&&(p!==n||d in xn(y))}}function xee(d){var p=xy(d,function(x){return y.size===c&&y.clear(),x}),y=p.cache;return p}function Cee(d,p){var y=d[1],x=p[1],z=y|x,P=z<(C|w|T),H=x==T&&y==S||x==T&&y==$&&d[7].length<=p[8]||x==(T|$)&&p[7].length<=p[8]&&y==S;if(!(P||H))return d;x&C&&(d[2]=p[2],z|=y&C?0:k);var X=p[3];if(X){var oe=d[3];d[3]=oe?yA(oe,X,p[4]):X,d[4]=oe?sc(d[3],u):p[4]}return X=p[5],X&&(oe=d[5],d[5]=oe?_A(oe,X,p[6]):X,d[6]=oe?sc(d[5],u):p[6]),X=p[7],X&&(d[7]=X),x&T&&(d[8]=d[8]==null?p[8]:Yr(d[8],p[8])),d[9]==null&&(d[9]=p[9]),d[0]=p[0],d[1]=z,d}function See(d){var p=[];if(d!=null)for(var y in xn(d))p.push(y);return p}function Dee(d){return Y1.call(d)}function LA(d,p,y){return p=kr(p===n?d.length-1:p,0),function(){for(var x=arguments,z=-1,P=kr(x.length-p,0),H=me(P);++z<P;)H[z]=x[p+z];z=-1;for(var X=me(p+1);++z<p;)X[z]=x[z];return X[p]=y(H),ia(d,this,X)}}function IA(d,p){return p.length<2?d:ju(d,ja(p,0,-1))}function Eee(d,p){for(var y=d.length,x=Yr(p.length,y),z=Ai(d);x--;){var P=p[x];d[x]=nl(P,y)?z[P]:n}return d}function V3(d,p){if(!(p==="constructor"&&typeof d[p]=="function")&&p!="__proto__")return d[p]}var BA=PA(sA),g0=VJ||function(d,p){return Br.setTimeout(d,p)},q3=PA(ZQ);function RA(d,p,y){var x=p+"";return q3(d,_ee(x,Tee(mee(x),y)))}function PA(d){var p=0,y=0;return function(){var x=WJ(),z=Z-(x-y);if(y=x,z>0){if(++p>=V)return arguments[0]}else p=0;return d.apply(n,arguments)}}function by(d,p){var y=-1,x=d.length,z=x-1;for(p=p===n?x:p;++y<p;){var P=S3(y,z),H=d[P];d[P]=d[y],d[y]=H}return d.length=p,d}var jA=xee(function(d){var p=[];return d.charCodeAt(0)===46&&p.push(""),d.replace(Zs,function(y,x,z,P){p.push(z?P.replace(P1,"$1"):x||y)}),p});function as(d){if(typeof d=="string"||sa(d))return d;var p=d+"";return p=="0"&&1/d==-ae?"-0":p}function qu(d){if(d!=null){try{return K1.call(d)}catch{}try{return d+""}catch{}}return""}function Tee(d,p){return Ia(be,function(y){var x="_."+y[0];p&y[1]&&!q1(d,x)&&d.push(x)}),d.sort()}function VA(d){if(d instanceof Qt)return d.clone();var p=new Ra(d.__wrapped__,d.__chain__);return p.__actions__=Ai(d.__actions__),p.__index__=d.__index__,p.__values__=d.__values__,p}function Aee(d,p,y){(y?ui(d,p,y):p===n)?p=1:p=kr(jt(p),0);var x=d==null?0:d.length;if(!x||p<1)return[];for(var z=0,P=0,H=me(ty(x/p));z<x;)H[P++]=ja(d,z,z+=p);return H}function zee(d){for(var p=-1,y=d==null?0:d.length,x=0,z=[];++p<y;){var P=d[p];P&&(z[x++]=P)}return z}function Fee(){var d=arguments.length;if(!d)return[];for(var p=me(d-1),y=arguments[0],x=d;x--;)p[x-1]=arguments[x];return oc(Ot(y)?Ai(y):[y],Rr(p,1))}var $ee=Gt(function(d,p){return ir(d)?u0(d,Rr(p,1,ir,!0)):[]}),Mee=Gt(function(d,p){var y=Va(p);return ir(y)&&(y=n),ir(d)?u0(d,Rr(p,1,ir,!0),bt(y,2)):[]}),Oee=Gt(function(d,p){var y=Va(p);return ir(y)&&(y=n),ir(d)?u0(d,Rr(p,1,ir,!0),n,y):[]});function Nee(d,p,y){var x=d==null?0:d.length;return x?(p=y||p===n?1:jt(p),ja(d,p<0?0:p,x)):[]}function Lee(d,p,y){var x=d==null?0:d.length;return x?(p=y||p===n?1:jt(p),p=x-p,ja(d,0,p<0?0:p)):[]}function Iee(d,p){return d&&d.length?dy(d,bt(p,3),!0,!0):[]}function Bee(d,p){return d&&d.length?dy(d,bt(p,3),!0):[]}function Ree(d,p,y,x){var z=d==null?0:d.length;return z?(y&&typeof y!="number"&&ui(d,p,y)&&(y=0,x=z),FQ(d,p,y,x)):[]}function qA(d,p,y){var x=d==null?0:d.length;if(!x)return-1;var z=y==null?0:jt(y);return z<0&&(z=kr(x+z,0)),H1(d,bt(p,3),z)}function HA(d,p,y){var x=d==null?0:d.length;if(!x)return-1;var z=x-1;return y!==n&&(z=jt(y),z=y<0?kr(x+z,0):Yr(z,x-1)),H1(d,bt(p,3),z,!0)}function UA(d){var p=d==null?0:d.length;return p?Rr(d,1):[]}function Pee(d){var p=d==null?0:d.length;return p?Rr(d,ae):[]}function jee(d,p){var y=d==null?0:d.length;return y?(p=p===n?1:jt(p),Rr(d,p)):[]}function Vee(d){for(var p=-1,y=d==null?0:d.length,x={};++p<y;){var z=d[p];x[z[0]]=z[1]}return x}function WA(d){return d&&d.length?d[0]:n}function qee(d,p,y){var x=d==null?0:d.length;if(!x)return-1;var z=y==null?0:jt(y);return z<0&&(z=kr(x+z,0)),Sf(d,p,z)}function Hee(d){var p=d==null?0:d.length;return p?ja(d,0,-1):[]}var Uee=Gt(function(d){var p=Rn(d,z3);return p.length&&p[0]===d[0]?k3(p):[]}),Wee=Gt(function(d){var p=Va(d),y=Rn(d,z3);return p===Va(y)?p=n:y.pop(),y.length&&y[0]===d[0]?k3(y,bt(p,2)):[]}),Gee=Gt(function(d){var p=Va(d),y=Rn(d,z3);return p=typeof p=="function"?p:n,p&&y.pop(),y.length&&y[0]===d[0]?k3(y,n,p):[]});function Kee(d,p){return d==null?"":HJ.call(d,p)}function Va(d){var p=d==null?0:d.length;return p?d[p-1]:n}function Yee(d,p,y){var x=d==null?0:d.length;if(!x)return-1;var z=x;return y!==n&&(z=jt(y),z=z<0?kr(x+z,0):Yr(z,x-1)),p===p?TJ(d,p,z):H1(d,DT,z,!0)}function Zee(d,p){return d&&d.length?rA(d,jt(p)):n}var Xee=Gt(GA);function GA(d,p){return d&&d.length&&p&&p.length?C3(d,p):d}function Jee(d,p,y){return d&&d.length&&p&&p.length?C3(d,p,bt(y,2)):d}function Qee(d,p,y){return d&&d.length&&p&&p.length?C3(d,p,n,y):d}var ete=tl(function(d,p){var y=d==null?0:d.length,x=g3(d,p);return oA(d,Rn(p,function(z){return nl(z,y)?+z:z}).sort(gA)),x});function tte(d,p){var y=[];if(!(d&&d.length))return y;var x=-1,z=[],P=d.length;for(p=bt(p,3);++x<P;){var H=d[x];p(H,x,d)&&(y.push(H),z.push(x))}return oA(d,z),y}function H3(d){return d==null?d:KJ.call(d)}function nte(d,p,y){var x=d==null?0:d.length;return x?(y&&typeof y!="number"&&ui(d,p,y)?(p=0,y=x):(p=p==null?0:jt(p),y=y===n?x:jt(y)),ja(d,p,y)):[]}function rte(d,p){return uy(d,p)}function ite(d,p,y){return E3(d,p,bt(y,2))}function ate(d,p){var y=d==null?0:d.length;if(y){var x=uy(d,p);if(x<y&&Ao(d[x],p))return x}return-1}function ote(d,p){return uy(d,p,!0)}function ste(d,p,y){return E3(d,p,bt(y,2),!0)}function lte(d,p){var y=d==null?0:d.length;if(y){var x=uy(d,p,!0)-1;if(Ao(d[x],p))return x}return-1}function cte(d){return d&&d.length?lA(d):[]}function ute(d,p){return d&&d.length?lA(d,bt(p,2)):[]}function dte(d){var p=d==null?0:d.length;return p?ja(d,1,p):[]}function fte(d,p,y){return d&&d.length?(p=y||p===n?1:jt(p),ja(d,0,p<0?0:p)):[]}function hte(d,p,y){var x=d==null?0:d.length;return x?(p=y||p===n?1:jt(p),p=x-p,ja(d,p<0?0:p,x)):[]}function pte(d,p){return d&&d.length?dy(d,bt(p,3),!1,!0):[]}function mte(d,p){return d&&d.length?dy(d,bt(p,3)):[]}var gte=Gt(function(d){return uc(Rr(d,1,ir,!0))}),yte=Gt(function(d){var p=Va(d);return ir(p)&&(p=n),uc(Rr(d,1,ir,!0),bt(p,2))}),_te=Gt(function(d){var p=Va(d);return p=typeof p=="function"?p:n,uc(Rr(d,1,ir,!0),n,p)});function bte(d){return d&&d.length?uc(d):[]}function kte(d,p){return d&&d.length?uc(d,bt(p,2)):[]}function wte(d,p){return p=typeof p=="function"?p:n,d&&d.length?uc(d,n,p):[]}function U3(d){if(!(d&&d.length))return[];var p=0;return d=ac(d,function(y){if(ir(y))return p=kr(y.length,p),!0}),l3(p,function(y){return Rn(d,a3(y))})}function KA(d,p){if(!(d&&d.length))return[];var y=U3(d);return p==null?y:Rn(y,function(x){return ia(p,n,x)})}var vte=Gt(function(d,p){return ir(d)?u0(d,p):[]}),xte=Gt(function(d){return A3(ac(d,ir))}),Cte=Gt(function(d){var p=Va(d);return ir(p)&&(p=n),A3(ac(d,ir),bt(p,2))}),Ste=Gt(function(d){var p=Va(d);return p=typeof p=="function"?p:n,A3(ac(d,ir),n,p)}),Dte=Gt(U3);function Ete(d,p){return fA(d||[],p||[],c0)}function Tte(d,p){return fA(d||[],p||[],h0)}var Ate=Gt(function(d){var p=d.length,y=p>1?d[p-1]:n;return y=typeof y=="function"?(d.pop(),y):n,KA(d,y)});function YA(d){var p=N(d);return p.__chain__=!0,p}function zte(d,p){return p(d),d}function ky(d,p){return p(d)}var Fte=tl(function(d){var p=d.length,y=p?d[0]:0,x=this.__wrapped__,z=function(P){return g3(P,d)};return p>1||this.__actions__.length||!(x instanceof Qt)||!nl(y)?this.thru(z):(x=x.slice(y,+y+(p?1:0)),x.__actions__.push({func:ky,args:[z],thisArg:n}),new Ra(x,this.__chain__).thru(function(P){return p&&!P.length&&P.push(n),P}))});function $te(){return YA(this)}function Mte(){return new Ra(this.value(),this.__chain__)}function Ote(){this.__values__===n&&(this.__values__=cz(this.value()));var d=this.__index__>=this.__values__.length,p=d?n:this.__values__[this.__index__++];return{done:d,value:p}}function Nte(){return this}function Lte(d){for(var p,y=this;y instanceof ay;){var x=VA(y);x.__index__=0,x.__values__=n,p?z.__wrapped__=x:p=x;var z=x;y=y.__wrapped__}return z.__wrapped__=d,p}function Ite(){var d=this.__wrapped__;if(d instanceof Qt){var p=d;return this.__actions__.length&&(p=new Qt(this)),p=p.reverse(),p.__actions__.push({func:ky,args:[H3],thisArg:n}),new Ra(p,this.__chain__)}return this.thru(H3)}function Bte(){return dA(this.__wrapped__,this.__actions__)}var Rte=fy(function(d,p,y){gn.call(d,y)?++d[y]:Qs(d,y,1)});function Pte(d,p,y){var x=Ot(d)?CT:zQ;return y&&ui(d,p,y)&&(p=n),x(d,bt(p,3))}function jte(d,p){var y=Ot(d)?ac:KT;return y(d,bt(p,3))}var Vte=vA(qA),qte=vA(HA);function Hte(d,p){return Rr(wy(d,p),1)}function Ute(d,p){return Rr(wy(d,p),ae)}function Wte(d,p,y){return y=y===n?1:jt(y),Rr(wy(d,p),y)}function ZA(d,p){var y=Ot(d)?Ia:cc;return y(d,bt(p,3))}function XA(d,p){var y=Ot(d)?dJ:GT;return y(d,bt(p,3))}var Gte=fy(function(d,p,y){gn.call(d,y)?d[y].push(p):Qs(d,y,[p])});function Kte(d,p,y,x){d=zi(d)?d:If(d),y=y&&!x?jt(y):0;var z=d.length;return y<0&&(y=kr(z+y,0)),Dy(d)?y<=z&&d.indexOf(p,y)>-1:!!z&&Sf(d,p,y)>-1}var Yte=Gt(function(d,p,y){var x=-1,z=typeof p=="function",P=zi(d)?me(d.length):[];return cc(d,function(H){P[++x]=z?ia(p,H,y):d0(H,p,y)}),P}),Zte=fy(function(d,p,y){Qs(d,y,p)});function wy(d,p){var y=Ot(d)?Rn:eA;return y(d,bt(p,3))}function Xte(d,p,y,x){return d==null?[]:(Ot(p)||(p=p==null?[]:[p]),y=x?n:y,Ot(y)||(y=y==null?[]:[y]),iA(d,p,y))}var Jte=fy(function(d,p,y){d[y?0:1].push(p)},function(){return[[],[]]});function Qte(d,p,y){var x=Ot(d)?r3:TT,z=arguments.length<3;return x(d,bt(p,4),y,z,cc)}function ene(d,p,y){var x=Ot(d)?fJ:TT,z=arguments.length<3;return x(d,bt(p,4),y,z,GT)}function tne(d,p){var y=Ot(d)?ac:KT;return y(d,Cy(bt(p,3)))}function nne(d){var p=Ot(d)?qT:KQ;return p(d)}function rne(d,p,y){(y?ui(d,p,y):p===n)?p=1:p=jt(p);var x=Ot(d)?SQ:YQ;return x(d,p)}function ine(d){var p=Ot(d)?DQ:XQ;return p(d)}function ane(d){if(d==null)return 0;if(zi(d))return Dy(d)?Ef(d):d.length;var p=Zr(d);return p==Et||p==ke?d.size:v3(d).length}function one(d,p,y){var x=Ot(d)?i3:JQ;return y&&ui(d,p,y)&&(p=n),x(d,bt(p,3))}var sne=Gt(function(d,p){if(d==null)return[];var y=p.length;return y>1&&ui(d,p[0],p[1])?p=[]:y>2&&ui(p[0],p[1],p[2])&&(p=[p[0]]),iA(d,Rr(p,1),[])}),vy=jJ||function(){return Br.Date.now()};function lne(d,p){if(typeof p!="function")throw new Ba(o);return d=jt(d),function(){if(--d<1)return p.apply(this,arguments)}}function JA(d,p,y){return p=y?n:p,p=d&&p==null?d.length:p,el(d,T,n,n,n,n,p)}function QA(d,p){var y;if(typeof p!="function")throw new Ba(o);return d=jt(d),function(){return--d>0&&(y=p.apply(this,arguments)),d<=1&&(p=n),y}}var W3=Gt(function(d,p,y){var x=C;if(y.length){var z=sc(y,Nf(W3));x|=A}return el(d,x,p,y,z)}),ez=Gt(function(d,p,y){var x=C|w;if(y.length){var z=sc(y,Nf(ez));x|=A}return el(p,x,d,y,z)});function tz(d,p,y){p=y?n:p;var x=el(d,S,n,n,n,n,n,p);return x.placeholder=tz.placeholder,x}function nz(d,p,y){p=y?n:p;var x=el(d,E,n,n,n,n,n,p);return x.placeholder=nz.placeholder,x}function rz(d,p,y){var x,z,P,H,X,oe,we=0,ve=!1,De=!1,qe=!0;if(typeof d!="function")throw new Ba(o);p=qa(p)||0,qn(y)&&(ve=!!y.leading,De="maxWait"in y,P=De?kr(qa(y.maxWait)||0,p):P,qe="trailing"in y?!!y.trailing:qe);function at(ar){var zo=x,al=z;return x=z=n,we=ar,H=d.apply(al,zo),H}function wt(ar){return we=ar,X=g0(Zt,p),ve?at(ar):H}function Ht(ar){var zo=ar-oe,al=ar-we,vz=p-zo;return De?Yr(vz,P-al):vz}function vt(ar){var zo=ar-oe,al=ar-we;return oe===n||zo>=p||zo<0||De&&al>=P}function Zt(){var ar=vy();if(vt(ar))return nn(ar);X=g0(Zt,Ht(ar))}function nn(ar){return X=n,qe&&x?at(ar):(x=z=n,H)}function la(){X!==n&&hA(X),we=0,x=oe=z=X=n}function di(){return X===n?H:nn(vy())}function ca(){var ar=vy(),zo=vt(ar);if(x=arguments,z=this,oe=ar,zo){if(X===n)return wt(oe);if(De)return hA(X),X=g0(Zt,p),at(oe)}return X===n&&(X=g0(Zt,p)),H}return ca.cancel=la,ca.flush=di,ca}var cne=Gt(function(d,p){return WT(d,1,p)}),une=Gt(function(d,p,y){return WT(d,qa(p)||0,y)});function dne(d){return el(d,R)}function xy(d,p){if(typeof d!="function"||p!=null&&typeof p!="function")throw new Ba(o);var y=function(){var x=arguments,z=p?p.apply(this,x):x[0],P=y.cache;if(P.has(z))return P.get(z);var H=d.apply(this,x);return y.cache=P.set(z,H)||P,H};return y.cache=new(xy.Cache||Js),y}xy.Cache=Js;function Cy(d){if(typeof d!="function")throw new Ba(o);return function(){var p=arguments;switch(p.length){case 0:return!d.call(this);case 1:return!d.call(this,p[0]);case 2:return!d.call(this,p[0],p[1]);case 3:return!d.call(this,p[0],p[1],p[2])}return!d.apply(this,p)}}function fne(d){return QA(2,d)}var hne=QQ(function(d,p){p=p.length==1&&Ot(p[0])?Rn(p[0],aa(bt())):Rn(Rr(p,1),aa(bt()));var y=p.length;return Gt(function(x){for(var z=-1,P=Yr(x.length,y);++z<P;)x[z]=p[z].call(this,x[z]);return ia(d,this,x)})}),G3=Gt(function(d,p){var y=sc(p,Nf(G3));return el(d,A,n,p,y)}),iz=Gt(function(d,p){var y=sc(p,Nf(iz));return el(d,_,n,p,y)}),pne=tl(function(d,p){return el(d,$,n,n,n,p)});function mne(d,p){if(typeof d!="function")throw new Ba(o);return p=p===n?p:jt(p),Gt(d,p)}function gne(d,p){if(typeof d!="function")throw new Ba(o);return p=p==null?0:kr(jt(p),0),Gt(function(y){var x=y[p],z=fc(y,0,p);return x&&oc(z,x),ia(d,this,z)})}function yne(d,p,y){var x=!0,z=!0;if(typeof d!="function")throw new Ba(o);return qn(y)&&(x="leading"in y?!!y.leading:x,z="trailing"in y?!!y.trailing:z),rz(d,p,{leading:x,maxWait:p,trailing:z})}function _ne(d){return JA(d,1)}function bne(d,p){return G3(F3(p),d)}function kne(){if(!arguments.length)return[];var d=arguments[0];return Ot(d)?d:[d]}function wne(d){return Pa(d,m)}function vne(d,p){return p=typeof p=="function"?p:n,Pa(d,m,p)}function xne(d){return Pa(d,f|m)}function Cne(d,p){return p=typeof p=="function"?p:n,Pa(d,f|m,p)}function Sne(d,p){return p==null||UT(d,p,Ar(p))}function Ao(d,p){return d===p||d!==d&&p!==p}var Dne=gy(b3),Ene=gy(function(d,p){return d>=p}),Hu=XT(function(){return arguments}())?XT:function(d){return Jn(d)&&gn.call(d,"callee")&&!IT.call(d,"callee")},Ot=me.isArray,Tne=_T?aa(_T):LQ;function zi(d){return d!=null&&Sy(d.length)&&!rl(d)}function ir(d){return Jn(d)&&zi(d)}function Ane(d){return d===!0||d===!1||Jn(d)&&ci(d)==ye}var hc=qJ||i4,zne=bT?aa(bT):IQ;function Fne(d){return Jn(d)&&d.nodeType===1&&!y0(d)}function $ne(d){if(d==null)return!0;if(zi(d)&&(Ot(d)||typeof d=="string"||typeof d.splice=="function"||hc(d)||Lf(d)||Hu(d)))return!d.length;var p=Zr(d);if(p==Et||p==ke)return!d.size;if(m0(d))return!v3(d).length;for(var y in d)if(gn.call(d,y))return!1;return!0}function Mne(d,p){return f0(d,p)}function One(d,p,y){y=typeof y=="function"?y:n;var x=y?y(d,p):n;return x===n?f0(d,p,n,y):!!x}function K3(d){if(!Jn(d))return!1;var p=ci(d);return p==Ge||p==Pe||typeof d.message=="string"&&typeof d.name=="string"&&!y0(d)}function Nne(d){return typeof d=="number"&&RT(d)}function rl(d){if(!qn(d))return!1;var p=ci(d);return p==Xe||p==Kt||p==Ve||p==Ie}function az(d){return typeof d=="number"&&d==jt(d)}function Sy(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=Q}function qn(d){var p=typeof d;return d!=null&&(p=="object"||p=="function")}function Jn(d){return d!=null&&typeof d=="object"}var oz=kT?aa(kT):RQ;function Lne(d,p){return d===p||w3(d,p,B3(p))}function Ine(d,p,y){return y=typeof y=="function"?y:n,w3(d,p,B3(p),y)}function Bne(d){return sz(d)&&d!=+d}function Rne(d){if(vee(d))throw new Ft(a);return JT(d)}function Pne(d){return d===null}function jne(d){return d==null}function sz(d){return typeof d=="number"||Jn(d)&&ci(d)==mt}function y0(d){if(!Jn(d)||ci(d)!=ie)return!1;var p=J1(d);if(p===null)return!0;var y=gn.call(p,"constructor")&&p.constructor;return typeof y=="function"&&y instanceof y&&K1.call(y)==IJ}var Y3=wT?aa(wT):PQ;function Vne(d){return az(d)&&d>=-Q&&d<=Q}var lz=vT?aa(vT):jQ;function Dy(d){return typeof d=="string"||!Ot(d)&&Jn(d)&&ci(d)==Be}function sa(d){return typeof d=="symbol"||Jn(d)&&ci(d)==dt}var Lf=xT?aa(xT):VQ;function qne(d){return d===n}function Hne(d){return Jn(d)&&Zr(d)==zt}function Une(d){return Jn(d)&&ci(d)==Ir}var Wne=gy(x3),Gne=gy(function(d,p){return d<=p});function cz(d){if(!d)return[];if(zi(d))return Dy(d)?Eo(d):Ai(d);if(i0&&d[i0])return SJ(d[i0]());var p=Zr(d),y=p==Et?u3:p==ke?U1:If;return y(d)}function il(d){if(!d)return d===0?d:0;if(d=qa(d),d===ae||d===-ae){var p=d<0?-1:1;return p*ce}return d===d?d:0}function jt(d){var p=il(d),y=p%1;return p===p?y?p-y:p:0}function uz(d){return d?Pu(jt(d),0,de):0}function qa(d){if(typeof d=="number")return d;if(sa(d))return L;if(qn(d)){var p=typeof d.valueOf=="function"?d.valueOf():d;d=qn(p)?p+"":p}if(typeof d!="string")return d===0?d:+d;d=AT(d);var y=$e.test(d);return y||fn.test(d)?lJ(d.slice(2),y?2:8):ne.test(d)?L:+d}function dz(d){return is(d,Fi(d))}function Kne(d){return d?Pu(jt(d),-Q,Q):d===0?d:0}function hn(d){return d==null?"":oa(d)}var Yne=Mf(function(d,p){if(m0(p)||zi(p)){is(p,Ar(p),d);return}for(var y in p)gn.call(p,y)&&c0(d,y,p[y])}),fz=Mf(function(d,p){is(p,Fi(p),d)}),Ey=Mf(function(d,p,y,x){is(p,Fi(p),d,x)}),Zne=Mf(function(d,p,y,x){is(p,Ar(p),d,x)}),Xne=tl(g3);function Jne(d,p){var y=$f(d);return p==null?y:HT(y,p)}var Qne=Gt(function(d,p){d=xn(d);var y=-1,x=p.length,z=x>2?p[2]:n;for(z&&ui(p[0],p[1],z)&&(x=1);++y<x;)for(var P=p[y],H=Fi(P),X=-1,oe=H.length;++X<oe;){var we=H[X],ve=d[we];(ve===n||Ao(ve,Af[we])&&!gn.call(d,we))&&(d[we]=P[we])}return d}),ere=Gt(function(d){return d.push(n,AA),ia(hz,n,d)});function tre(d,p){return ST(d,bt(p,3),rs)}function nre(d,p){return ST(d,bt(p,3),_3)}function rre(d,p){return d==null?d:y3(d,bt(p,3),Fi)}function ire(d,p){return d==null?d:YT(d,bt(p,3),Fi)}function are(d,p){return d&&rs(d,bt(p,3))}function ore(d,p){return d&&_3(d,bt(p,3))}function sre(d){return d==null?[]:ly(d,Ar(d))}function lre(d){return d==null?[]:ly(d,Fi(d))}function Z3(d,p,y){var x=d==null?n:ju(d,p);return x===n?y:x}function cre(d,p){return d!=null&&$A(d,p,$Q)}function X3(d,p){return d!=null&&$A(d,p,MQ)}var ure=CA(function(d,p,y){p!=null&&typeof p.toString!="function"&&(p=Y1.call(p)),d[p]=y},Q3($i)),dre=CA(function(d,p,y){p!=null&&typeof p.toString!="function"&&(p=Y1.call(p)),gn.call(d,p)?d[p].push(y):d[p]=[y]},bt),fre=Gt(d0);function Ar(d){return zi(d)?VT(d):v3(d)}function Fi(d){return zi(d)?VT(d,!0):qQ(d)}function hre(d,p){var y={};return p=bt(p,3),rs(d,function(x,z,P){Qs(y,p(x,z,P),x)}),y}function pre(d,p){var y={};return p=bt(p,3),rs(d,function(x,z,P){Qs(y,z,p(x,z,P))}),y}var mre=Mf(function(d,p,y){cy(d,p,y)}),hz=Mf(function(d,p,y,x){cy(d,p,y,x)}),gre=tl(function(d,p){var y={};if(d==null)return y;var x=!1;p=Rn(p,function(P){return P=dc(P,d),x||(x=P.length>1),P}),is(d,L3(d),y),x&&(y=Pa(y,f|h|m,uee));for(var z=p.length;z--;)T3(y,p[z]);return y});function yre(d,p){return pz(d,Cy(bt(p)))}var _re=tl(function(d,p){return d==null?{}:UQ(d,p)});function pz(d,p){if(d==null)return{};var y=Rn(L3(d),function(x){return[x]});return p=bt(p),aA(d,y,function(x,z){return p(x,z[0])})}function bre(d,p,y){p=dc(p,d);var x=-1,z=p.length;for(z||(z=1,d=n);++x<z;){var P=d==null?n:d[as(p[x])];P===n&&(x=z,P=y),d=rl(P)?P.call(d):P}return d}function kre(d,p,y){return d==null?d:h0(d,p,y)}function wre(d,p,y,x){return x=typeof x=="function"?x:n,d==null?d:h0(d,p,y,x)}var mz=EA(Ar),gz=EA(Fi);function vre(d,p,y){var x=Ot(d),z=x||hc(d)||Lf(d);if(p=bt(p,4),y==null){var P=d&&d.constructor;z?y=x?new P:[]:qn(d)?y=rl(P)?$f(J1(d)):{}:y={}}return(z?Ia:rs)(d,function(H,X,oe){return p(y,H,X,oe)}),y}function xre(d,p){return d==null?!0:T3(d,p)}function Cre(d,p,y){return d==null?d:uA(d,p,F3(y))}function Sre(d,p,y,x){return x=typeof x=="function"?x:n,d==null?d:uA(d,p,F3(y),x)}function If(d){return d==null?[]:c3(d,Ar(d))}function Dre(d){return d==null?[]:c3(d,Fi(d))}function Ere(d,p,y){return y===n&&(y=p,p=n),y!==n&&(y=qa(y),y=y===y?y:0),p!==n&&(p=qa(p),p=p===p?p:0),Pu(qa(d),p,y)}function Tre(d,p,y){return p=il(p),y===n?(y=p,p=0):y=il(y),d=qa(d),OQ(d,p,y)}function Are(d,p,y){if(y&&typeof y!="boolean"&&ui(d,p,y)&&(p=y=n),y===n&&(typeof p=="boolean"?(y=p,p=n):typeof d=="boolean"&&(y=d,d=n)),d===n&&p===n?(d=0,p=1):(d=il(d),p===n?(p=d,d=0):p=il(p)),d>p){var x=d;d=p,p=x}if(y||d%1||p%1){var z=PT();return Yr(d+z*(p-d+sJ("1e-"+((z+"").length-1))),p)}return S3(d,p)}var zre=Of(function(d,p,y){return p=p.toLowerCase(),d+(y?yz(p):p)});function yz(d){return J3(hn(d).toLowerCase())}function _z(d){return d=hn(d),d&&d.replace(Ti,kJ).replace(XX,"")}function Fre(d,p,y){d=hn(d),p=oa(p);var x=d.length;y=y===n?x:Pu(jt(y),0,x);var z=y;return y-=p.length,y>=0&&d.slice(y,z)==p}function $re(d){return d=hn(d),d&&nc.test(d)?d.replace(tc,wJ):d}function Mre(d){return d=hn(d),d&&L1.test(d)?d.replace(Nu,"\\$&"):d}var Ore=Of(function(d,p,y){return d+(y?"-":"")+p.toLowerCase()}),Nre=Of(function(d,p,y){return d+(y?" ":"")+p.toLowerCase()}),Lre=wA("toLowerCase");function Ire(d,p,y){d=hn(d),p=jt(p);var x=p?Ef(d):0;if(!p||x>=p)return d;var z=(p-x)/2;return my(ny(z),y)+d+my(ty(z),y)}function Bre(d,p,y){d=hn(d),p=jt(p);var x=p?Ef(d):0;return p&&x<p?d+my(p-x,y):d}function Rre(d,p,y){d=hn(d),p=jt(p);var x=p?Ef(d):0;return p&&x<p?my(p-x,y)+d:d}function Pre(d,p,y){return y||p==null?p=0:p&&(p=+p),GJ(hn(d).replace(vf,""),p||0)}function jre(d,p,y){return(y?ui(d,p,y):p===n)?p=1:p=jt(p),D3(hn(d),p)}function Vre(){var d=arguments,p=hn(d[0]);return d.length<3?p:p.replace(d[1],d[2])}var qre=Of(function(d,p,y){return d+(y?"_":"")+p.toLowerCase()});function Hre(d,p,y){return y&&typeof y!="number"&&ui(d,p,y)&&(p=y=n),y=y===n?de:y>>>0,y?(d=hn(d),d&&(typeof p=="string"||p!=null&&!Y3(p))&&(p=oa(p),!p&&Df(d))?fc(Eo(d),0,y):d.split(p,y)):[]}var Ure=Of(function(d,p,y){return d+(y?" ":"")+J3(p)});function Wre(d,p,y){return d=hn(d),y=y==null?0:Pu(jt(y),0,d.length),p=oa(p),d.slice(y,y+p.length)==p}function Gre(d,p,y){var x=N.templateSettings;y&&ui(d,p,y)&&(p=n),d=hn(d),p=Ey({},p,x,TA);var z=Ey({},p.imports,x.imports,TA),P=Ar(z),H=c3(z,P),X,oe,we=0,ve=p.interpolate||wn,De="__p += '",qe=d3((p.escape||wn).source+"|"+ve.source+"|"+(ve===Ks?K2:wn).source+"|"+(p.evaluate||wn).source+"|$","g"),at="//# sourceURL="+(gn.call(p,"sourceURL")?(p.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++nJ+"]")+` -`;d.replace(qe,function(vt,Zt,nn,la,di,ca){return nn||(nn=la),De+=d.slice(we,ca).replace(Na,vJ),Zt&&(X=!0,De+=`' + +`)}function kee(d){return Ot(d)||Hu(d)||!!(BT&&d&&d[BT])}function nl(d,p){var y=typeof d;return p=p??Q,!!p&&(y=="number"||y!="symbol"&&ur.test(d))&&d>-1&&d%1==0&&d<p}function ui(d,p,y){if(!qn(y))return!1;var x=typeof p;return(x=="number"?zi(y)&&nl(p,y.length):x=="string"&&p in y)?Ao(y[p],d):!1}function P3(d,p){if(Ot(d))return!1;var y=typeof d;return y=="number"||y=="symbol"||y=="boolean"||d==null||sa(d)?!0:rc.test(d)||!Ys.test(d)||p!=null&&d in xn(p)}function wee(d){var p=typeof d;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?d!=="__proto__":d===null}function j3(d){var p=yy(d),y=N[p];if(typeof y!="function"||!(p in Qt.prototype))return!1;if(d===y)return!0;var x=I3(y);return!!x&&d===x[0]}function vee(d){return!!OT&&OT in d}var xee=G1?rl:i4;function m0(d){var p=d&&d.constructor,y=typeof p=="function"&&p.prototype||Af;return d===y}function OA(d){return d===d&&!qn(d)}function NA(d,p){return function(y){return y==null?!1:y[d]===p&&(p!==n||d in xn(y))}}function Cee(d){var p=xy(d,function(x){return y.size===c&&y.clear(),x}),y=p.cache;return p}function See(d,p){var y=d[1],x=p[1],z=y|x,P=z<(C|w|T),H=x==T&&y==S||x==T&&y==$&&d[7].length<=p[8]||x==(T|$)&&p[7].length<=p[8]&&y==S;if(!(P||H))return d;x&C&&(d[2]=p[2],z|=y&C?0:k);var X=p[3];if(X){var oe=d[3];d[3]=oe?yA(oe,X,p[4]):X,d[4]=oe?sc(d[3],u):p[4]}return X=p[5],X&&(oe=d[5],d[5]=oe?_A(oe,X,p[6]):X,d[6]=oe?sc(d[5],u):p[6]),X=p[7],X&&(d[7]=X),x&T&&(d[8]=d[8]==null?p[8]:Yr(d[8],p[8])),d[9]==null&&(d[9]=p[9]),d[0]=p[0],d[1]=z,d}function Dee(d){var p=[];if(d!=null)for(var y in xn(d))p.push(y);return p}function Eee(d){return Y1.call(d)}function LA(d,p,y){return p=kr(p===n?d.length-1:p,0),function(){for(var x=arguments,z=-1,P=kr(x.length-p,0),H=me(P);++z<P;)H[z]=x[p+z];z=-1;for(var X=me(p+1);++z<p;)X[z]=x[z];return X[p]=y(H),ia(d,this,X)}}function IA(d,p){return p.length<2?d:ju(d,ja(p,0,-1))}function Tee(d,p){for(var y=d.length,x=Yr(p.length,y),z=Ai(d);x--;){var P=p[x];d[x]=nl(P,y)?z[P]:n}return d}function V3(d,p){if(!(p==="constructor"&&typeof d[p]=="function")&&p!="__proto__")return d[p]}var BA=PA(sA),g0=qJ||function(d,p){return Br.setTimeout(d,p)},q3=PA(XQ);function RA(d,p,y){var x=p+"";return q3(d,bee(x,Aee(gee(x),y)))}function PA(d){var p=0,y=0;return function(){var x=GJ(),z=Z-(x-y);if(y=x,z>0){if(++p>=V)return arguments[0]}else p=0;return d.apply(n,arguments)}}function by(d,p){var y=-1,x=d.length,z=x-1;for(p=p===n?x:p;++y<p;){var P=S3(y,z),H=d[P];d[P]=d[y],d[y]=H}return d.length=p,d}var jA=Cee(function(d){var p=[];return d.charCodeAt(0)===46&&p.push(""),d.replace(Zs,function(y,x,z,P){p.push(z?P.replace(P1,"$1"):x||y)}),p});function as(d){if(typeof d=="string"||sa(d))return d;var p=d+"";return p=="0"&&1/d==-ae?"-0":p}function qu(d){if(d!=null){try{return K1.call(d)}catch{}try{return d+""}catch{}}return""}function Aee(d,p){return Ia(be,function(y){var x="_."+y[0];p&y[1]&&!q1(d,x)&&d.push(x)}),d.sort()}function VA(d){if(d instanceof Qt)return d.clone();var p=new Ra(d.__wrapped__,d.__chain__);return p.__actions__=Ai(d.__actions__),p.__index__=d.__index__,p.__values__=d.__values__,p}function zee(d,p,y){(y?ui(d,p,y):p===n)?p=1:p=kr(jt(p),0);var x=d==null?0:d.length;if(!x||p<1)return[];for(var z=0,P=0,H=me(ty(x/p));z<x;)H[P++]=ja(d,z,z+=p);return H}function Fee(d){for(var p=-1,y=d==null?0:d.length,x=0,z=[];++p<y;){var P=d[p];P&&(z[x++]=P)}return z}function $ee(){var d=arguments.length;if(!d)return[];for(var p=me(d-1),y=arguments[0],x=d;x--;)p[x-1]=arguments[x];return oc(Ot(y)?Ai(y):[y],Rr(p,1))}var Mee=Gt(function(d,p){return ir(d)?u0(d,Rr(p,1,ir,!0)):[]}),Oee=Gt(function(d,p){var y=Va(p);return ir(y)&&(y=n),ir(d)?u0(d,Rr(p,1,ir,!0),bt(y,2)):[]}),Nee=Gt(function(d,p){var y=Va(p);return ir(y)&&(y=n),ir(d)?u0(d,Rr(p,1,ir,!0),n,y):[]});function Lee(d,p,y){var x=d==null?0:d.length;return x?(p=y||p===n?1:jt(p),ja(d,p<0?0:p,x)):[]}function Iee(d,p,y){var x=d==null?0:d.length;return x?(p=y||p===n?1:jt(p),p=x-p,ja(d,0,p<0?0:p)):[]}function Bee(d,p){return d&&d.length?dy(d,bt(p,3),!0,!0):[]}function Ree(d,p){return d&&d.length?dy(d,bt(p,3),!0):[]}function Pee(d,p,y,x){var z=d==null?0:d.length;return z?(y&&typeof y!="number"&&ui(d,p,y)&&(y=0,x=z),$Q(d,p,y,x)):[]}function qA(d,p,y){var x=d==null?0:d.length;if(!x)return-1;var z=y==null?0:jt(y);return z<0&&(z=kr(x+z,0)),H1(d,bt(p,3),z)}function HA(d,p,y){var x=d==null?0:d.length;if(!x)return-1;var z=x-1;return y!==n&&(z=jt(y),z=y<0?kr(x+z,0):Yr(z,x-1)),H1(d,bt(p,3),z,!0)}function UA(d){var p=d==null?0:d.length;return p?Rr(d,1):[]}function jee(d){var p=d==null?0:d.length;return p?Rr(d,ae):[]}function Vee(d,p){var y=d==null?0:d.length;return y?(p=p===n?1:jt(p),Rr(d,p)):[]}function qee(d){for(var p=-1,y=d==null?0:d.length,x={};++p<y;){var z=d[p];x[z[0]]=z[1]}return x}function WA(d){return d&&d.length?d[0]:n}function Hee(d,p,y){var x=d==null?0:d.length;if(!x)return-1;var z=y==null?0:jt(y);return z<0&&(z=kr(x+z,0)),Sf(d,p,z)}function Uee(d){var p=d==null?0:d.length;return p?ja(d,0,-1):[]}var Wee=Gt(function(d){var p=Rn(d,z3);return p.length&&p[0]===d[0]?k3(p):[]}),Gee=Gt(function(d){var p=Va(d),y=Rn(d,z3);return p===Va(y)?p=n:y.pop(),y.length&&y[0]===d[0]?k3(y,bt(p,2)):[]}),Kee=Gt(function(d){var p=Va(d),y=Rn(d,z3);return p=typeof p=="function"?p:n,p&&y.pop(),y.length&&y[0]===d[0]?k3(y,n,p):[]});function Yee(d,p){return d==null?"":UJ.call(d,p)}function Va(d){var p=d==null?0:d.length;return p?d[p-1]:n}function Zee(d,p,y){var x=d==null?0:d.length;if(!x)return-1;var z=x;return y!==n&&(z=jt(y),z=z<0?kr(x+z,0):Yr(z,x-1)),p===p?AJ(d,p,z):H1(d,DT,z,!0)}function Xee(d,p){return d&&d.length?rA(d,jt(p)):n}var Jee=Gt(GA);function GA(d,p){return d&&d.length&&p&&p.length?C3(d,p):d}function Qee(d,p,y){return d&&d.length&&p&&p.length?C3(d,p,bt(y,2)):d}function ete(d,p,y){return d&&d.length&&p&&p.length?C3(d,p,n,y):d}var tte=tl(function(d,p){var y=d==null?0:d.length,x=g3(d,p);return oA(d,Rn(p,function(z){return nl(z,y)?+z:z}).sort(gA)),x});function nte(d,p){var y=[];if(!(d&&d.length))return y;var x=-1,z=[],P=d.length;for(p=bt(p,3);++x<P;){var H=d[x];p(H,x,d)&&(y.push(H),z.push(x))}return oA(d,z),y}function H3(d){return d==null?d:YJ.call(d)}function rte(d,p,y){var x=d==null?0:d.length;return x?(y&&typeof y!="number"&&ui(d,p,y)?(p=0,y=x):(p=p==null?0:jt(p),y=y===n?x:jt(y)),ja(d,p,y)):[]}function ite(d,p){return uy(d,p)}function ate(d,p,y){return E3(d,p,bt(y,2))}function ote(d,p){var y=d==null?0:d.length;if(y){var x=uy(d,p);if(x<y&&Ao(d[x],p))return x}return-1}function ste(d,p){return uy(d,p,!0)}function lte(d,p,y){return E3(d,p,bt(y,2),!0)}function cte(d,p){var y=d==null?0:d.length;if(y){var x=uy(d,p,!0)-1;if(Ao(d[x],p))return x}return-1}function ute(d){return d&&d.length?lA(d):[]}function dte(d,p){return d&&d.length?lA(d,bt(p,2)):[]}function fte(d){var p=d==null?0:d.length;return p?ja(d,1,p):[]}function hte(d,p,y){return d&&d.length?(p=y||p===n?1:jt(p),ja(d,0,p<0?0:p)):[]}function pte(d,p,y){var x=d==null?0:d.length;return x?(p=y||p===n?1:jt(p),p=x-p,ja(d,p<0?0:p,x)):[]}function mte(d,p){return d&&d.length?dy(d,bt(p,3),!1,!0):[]}function gte(d,p){return d&&d.length?dy(d,bt(p,3)):[]}var yte=Gt(function(d){return uc(Rr(d,1,ir,!0))}),_te=Gt(function(d){var p=Va(d);return ir(p)&&(p=n),uc(Rr(d,1,ir,!0),bt(p,2))}),bte=Gt(function(d){var p=Va(d);return p=typeof p=="function"?p:n,uc(Rr(d,1,ir,!0),n,p)});function kte(d){return d&&d.length?uc(d):[]}function wte(d,p){return d&&d.length?uc(d,bt(p,2)):[]}function vte(d,p){return p=typeof p=="function"?p:n,d&&d.length?uc(d,n,p):[]}function U3(d){if(!(d&&d.length))return[];var p=0;return d=ac(d,function(y){if(ir(y))return p=kr(y.length,p),!0}),l3(p,function(y){return Rn(d,a3(y))})}function KA(d,p){if(!(d&&d.length))return[];var y=U3(d);return p==null?y:Rn(y,function(x){return ia(p,n,x)})}var xte=Gt(function(d,p){return ir(d)?u0(d,p):[]}),Cte=Gt(function(d){return A3(ac(d,ir))}),Ste=Gt(function(d){var p=Va(d);return ir(p)&&(p=n),A3(ac(d,ir),bt(p,2))}),Dte=Gt(function(d){var p=Va(d);return p=typeof p=="function"?p:n,A3(ac(d,ir),n,p)}),Ete=Gt(U3);function Tte(d,p){return fA(d||[],p||[],c0)}function Ate(d,p){return fA(d||[],p||[],h0)}var zte=Gt(function(d){var p=d.length,y=p>1?d[p-1]:n;return y=typeof y=="function"?(d.pop(),y):n,KA(d,y)});function YA(d){var p=N(d);return p.__chain__=!0,p}function Fte(d,p){return p(d),d}function ky(d,p){return p(d)}var $te=tl(function(d){var p=d.length,y=p?d[0]:0,x=this.__wrapped__,z=function(P){return g3(P,d)};return p>1||this.__actions__.length||!(x instanceof Qt)||!nl(y)?this.thru(z):(x=x.slice(y,+y+(p?1:0)),x.__actions__.push({func:ky,args:[z],thisArg:n}),new Ra(x,this.__chain__).thru(function(P){return p&&!P.length&&P.push(n),P}))});function Mte(){return YA(this)}function Ote(){return new Ra(this.value(),this.__chain__)}function Nte(){this.__values__===n&&(this.__values__=cz(this.value()));var d=this.__index__>=this.__values__.length,p=d?n:this.__values__[this.__index__++];return{done:d,value:p}}function Lte(){return this}function Ite(d){for(var p,y=this;y instanceof ay;){var x=VA(y);x.__index__=0,x.__values__=n,p?z.__wrapped__=x:p=x;var z=x;y=y.__wrapped__}return z.__wrapped__=d,p}function Bte(){var d=this.__wrapped__;if(d instanceof Qt){var p=d;return this.__actions__.length&&(p=new Qt(this)),p=p.reverse(),p.__actions__.push({func:ky,args:[H3],thisArg:n}),new Ra(p,this.__chain__)}return this.thru(H3)}function Rte(){return dA(this.__wrapped__,this.__actions__)}var Pte=fy(function(d,p,y){gn.call(d,y)?++d[y]:Qs(d,y,1)});function jte(d,p,y){var x=Ot(d)?CT:FQ;return y&&ui(d,p,y)&&(p=n),x(d,bt(p,3))}function Vte(d,p){var y=Ot(d)?ac:KT;return y(d,bt(p,3))}var qte=vA(qA),Hte=vA(HA);function Ute(d,p){return Rr(wy(d,p),1)}function Wte(d,p){return Rr(wy(d,p),ae)}function Gte(d,p,y){return y=y===n?1:jt(y),Rr(wy(d,p),y)}function ZA(d,p){var y=Ot(d)?Ia:cc;return y(d,bt(p,3))}function XA(d,p){var y=Ot(d)?fJ:GT;return y(d,bt(p,3))}var Kte=fy(function(d,p,y){gn.call(d,y)?d[y].push(p):Qs(d,y,[p])});function Yte(d,p,y,x){d=zi(d)?d:If(d),y=y&&!x?jt(y):0;var z=d.length;return y<0&&(y=kr(z+y,0)),Dy(d)?y<=z&&d.indexOf(p,y)>-1:!!z&&Sf(d,p,y)>-1}var Zte=Gt(function(d,p,y){var x=-1,z=typeof p=="function",P=zi(d)?me(d.length):[];return cc(d,function(H){P[++x]=z?ia(p,H,y):d0(H,p,y)}),P}),Xte=fy(function(d,p,y){Qs(d,y,p)});function wy(d,p){var y=Ot(d)?Rn:eA;return y(d,bt(p,3))}function Jte(d,p,y,x){return d==null?[]:(Ot(p)||(p=p==null?[]:[p]),y=x?n:y,Ot(y)||(y=y==null?[]:[y]),iA(d,p,y))}var Qte=fy(function(d,p,y){d[y?0:1].push(p)},function(){return[[],[]]});function ene(d,p,y){var x=Ot(d)?r3:TT,z=arguments.length<3;return x(d,bt(p,4),y,z,cc)}function tne(d,p,y){var x=Ot(d)?hJ:TT,z=arguments.length<3;return x(d,bt(p,4),y,z,GT)}function nne(d,p){var y=Ot(d)?ac:KT;return y(d,Cy(bt(p,3)))}function rne(d){var p=Ot(d)?qT:YQ;return p(d)}function ine(d,p,y){(y?ui(d,p,y):p===n)?p=1:p=jt(p);var x=Ot(d)?DQ:ZQ;return x(d,p)}function ane(d){var p=Ot(d)?EQ:JQ;return p(d)}function one(d){if(d==null)return 0;if(zi(d))return Dy(d)?Ef(d):d.length;var p=Zr(d);return p==Et||p==ke?d.size:v3(d).length}function sne(d,p,y){var x=Ot(d)?i3:QQ;return y&&ui(d,p,y)&&(p=n),x(d,bt(p,3))}var lne=Gt(function(d,p){if(d==null)return[];var y=p.length;return y>1&&ui(d,p[0],p[1])?p=[]:y>2&&ui(p[0],p[1],p[2])&&(p=[p[0]]),iA(d,Rr(p,1),[])}),vy=VJ||function(){return Br.Date.now()};function cne(d,p){if(typeof p!="function")throw new Ba(o);return d=jt(d),function(){if(--d<1)return p.apply(this,arguments)}}function JA(d,p,y){return p=y?n:p,p=d&&p==null?d.length:p,el(d,T,n,n,n,n,p)}function QA(d,p){var y;if(typeof p!="function")throw new Ba(o);return d=jt(d),function(){return--d>0&&(y=p.apply(this,arguments)),d<=1&&(p=n),y}}var W3=Gt(function(d,p,y){var x=C;if(y.length){var z=sc(y,Nf(W3));x|=A}return el(d,x,p,y,z)}),ez=Gt(function(d,p,y){var x=C|w;if(y.length){var z=sc(y,Nf(ez));x|=A}return el(p,x,d,y,z)});function tz(d,p,y){p=y?n:p;var x=el(d,S,n,n,n,n,n,p);return x.placeholder=tz.placeholder,x}function nz(d,p,y){p=y?n:p;var x=el(d,E,n,n,n,n,n,p);return x.placeholder=nz.placeholder,x}function rz(d,p,y){var x,z,P,H,X,oe,we=0,ve=!1,De=!1,qe=!0;if(typeof d!="function")throw new Ba(o);p=qa(p)||0,qn(y)&&(ve=!!y.leading,De="maxWait"in y,P=De?kr(qa(y.maxWait)||0,p):P,qe="trailing"in y?!!y.trailing:qe);function at(ar){var zo=x,al=z;return x=z=n,we=ar,H=d.apply(al,zo),H}function wt(ar){return we=ar,X=g0(Zt,p),ve?at(ar):H}function Ht(ar){var zo=ar-oe,al=ar-we,vz=p-zo;return De?Yr(vz,P-al):vz}function vt(ar){var zo=ar-oe,al=ar-we;return oe===n||zo>=p||zo<0||De&&al>=P}function Zt(){var ar=vy();if(vt(ar))return nn(ar);X=g0(Zt,Ht(ar))}function nn(ar){return X=n,qe&&x?at(ar):(x=z=n,H)}function la(){X!==n&&hA(X),we=0,x=oe=z=X=n}function di(){return X===n?H:nn(vy())}function ca(){var ar=vy(),zo=vt(ar);if(x=arguments,z=this,oe=ar,zo){if(X===n)return wt(oe);if(De)return hA(X),X=g0(Zt,p),at(oe)}return X===n&&(X=g0(Zt,p)),H}return ca.cancel=la,ca.flush=di,ca}var une=Gt(function(d,p){return WT(d,1,p)}),dne=Gt(function(d,p,y){return WT(d,qa(p)||0,y)});function fne(d){return el(d,R)}function xy(d,p){if(typeof d!="function"||p!=null&&typeof p!="function")throw new Ba(o);var y=function(){var x=arguments,z=p?p.apply(this,x):x[0],P=y.cache;if(P.has(z))return P.get(z);var H=d.apply(this,x);return y.cache=P.set(z,H)||P,H};return y.cache=new(xy.Cache||Js),y}xy.Cache=Js;function Cy(d){if(typeof d!="function")throw new Ba(o);return function(){var p=arguments;switch(p.length){case 0:return!d.call(this);case 1:return!d.call(this,p[0]);case 2:return!d.call(this,p[0],p[1]);case 3:return!d.call(this,p[0],p[1],p[2])}return!d.apply(this,p)}}function hne(d){return QA(2,d)}var pne=eee(function(d,p){p=p.length==1&&Ot(p[0])?Rn(p[0],aa(bt())):Rn(Rr(p,1),aa(bt()));var y=p.length;return Gt(function(x){for(var z=-1,P=Yr(x.length,y);++z<P;)x[z]=p[z].call(this,x[z]);return ia(d,this,x)})}),G3=Gt(function(d,p){var y=sc(p,Nf(G3));return el(d,A,n,p,y)}),iz=Gt(function(d,p){var y=sc(p,Nf(iz));return el(d,_,n,p,y)}),mne=tl(function(d,p){return el(d,$,n,n,n,p)});function gne(d,p){if(typeof d!="function")throw new Ba(o);return p=p===n?p:jt(p),Gt(d,p)}function yne(d,p){if(typeof d!="function")throw new Ba(o);return p=p==null?0:kr(jt(p),0),Gt(function(y){var x=y[p],z=fc(y,0,p);return x&&oc(z,x),ia(d,this,z)})}function _ne(d,p,y){var x=!0,z=!0;if(typeof d!="function")throw new Ba(o);return qn(y)&&(x="leading"in y?!!y.leading:x,z="trailing"in y?!!y.trailing:z),rz(d,p,{leading:x,maxWait:p,trailing:z})}function bne(d){return JA(d,1)}function kne(d,p){return G3(F3(p),d)}function wne(){if(!arguments.length)return[];var d=arguments[0];return Ot(d)?d:[d]}function vne(d){return Pa(d,m)}function xne(d,p){return p=typeof p=="function"?p:n,Pa(d,m,p)}function Cne(d){return Pa(d,f|m)}function Sne(d,p){return p=typeof p=="function"?p:n,Pa(d,f|m,p)}function Dne(d,p){return p==null||UT(d,p,Ar(p))}function Ao(d,p){return d===p||d!==d&&p!==p}var Ene=gy(b3),Tne=gy(function(d,p){return d>=p}),Hu=XT(function(){return arguments}())?XT:function(d){return Jn(d)&&gn.call(d,"callee")&&!IT.call(d,"callee")},Ot=me.isArray,Ane=_T?aa(_T):IQ;function zi(d){return d!=null&&Sy(d.length)&&!rl(d)}function ir(d){return Jn(d)&&zi(d)}function zne(d){return d===!0||d===!1||Jn(d)&&ci(d)==ye}var hc=HJ||i4,Fne=bT?aa(bT):BQ;function $ne(d){return Jn(d)&&d.nodeType===1&&!y0(d)}function Mne(d){if(d==null)return!0;if(zi(d)&&(Ot(d)||typeof d=="string"||typeof d.splice=="function"||hc(d)||Lf(d)||Hu(d)))return!d.length;var p=Zr(d);if(p==Et||p==ke)return!d.size;if(m0(d))return!v3(d).length;for(var y in d)if(gn.call(d,y))return!1;return!0}function One(d,p){return f0(d,p)}function Nne(d,p,y){y=typeof y=="function"?y:n;var x=y?y(d,p):n;return x===n?f0(d,p,n,y):!!x}function K3(d){if(!Jn(d))return!1;var p=ci(d);return p==Ge||p==Pe||typeof d.message=="string"&&typeof d.name=="string"&&!y0(d)}function Lne(d){return typeof d=="number"&&RT(d)}function rl(d){if(!qn(d))return!1;var p=ci(d);return p==Xe||p==Kt||p==Ve||p==Ie}function az(d){return typeof d=="number"&&d==jt(d)}function Sy(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=Q}function qn(d){var p=typeof d;return d!=null&&(p=="object"||p=="function")}function Jn(d){return d!=null&&typeof d=="object"}var oz=kT?aa(kT):PQ;function Ine(d,p){return d===p||w3(d,p,B3(p))}function Bne(d,p,y){return y=typeof y=="function"?y:n,w3(d,p,B3(p),y)}function Rne(d){return sz(d)&&d!=+d}function Pne(d){if(xee(d))throw new Ft(a);return JT(d)}function jne(d){return d===null}function Vne(d){return d==null}function sz(d){return typeof d=="number"||Jn(d)&&ci(d)==mt}function y0(d){if(!Jn(d)||ci(d)!=ie)return!1;var p=J1(d);if(p===null)return!0;var y=gn.call(p,"constructor")&&p.constructor;return typeof y=="function"&&y instanceof y&&K1.call(y)==BJ}var Y3=wT?aa(wT):jQ;function qne(d){return az(d)&&d>=-Q&&d<=Q}var lz=vT?aa(vT):VQ;function Dy(d){return typeof d=="string"||!Ot(d)&&Jn(d)&&ci(d)==Be}function sa(d){return typeof d=="symbol"||Jn(d)&&ci(d)==dt}var Lf=xT?aa(xT):qQ;function Hne(d){return d===n}function Une(d){return Jn(d)&&Zr(d)==zt}function Wne(d){return Jn(d)&&ci(d)==Ir}var Gne=gy(x3),Kne=gy(function(d,p){return d<=p});function cz(d){if(!d)return[];if(zi(d))return Dy(d)?Eo(d):Ai(d);if(i0&&d[i0])return DJ(d[i0]());var p=Zr(d),y=p==Et?u3:p==ke?U1:If;return y(d)}function il(d){if(!d)return d===0?d:0;if(d=qa(d),d===ae||d===-ae){var p=d<0?-1:1;return p*ce}return d===d?d:0}function jt(d){var p=il(d),y=p%1;return p===p?y?p-y:p:0}function uz(d){return d?Pu(jt(d),0,de):0}function qa(d){if(typeof d=="number")return d;if(sa(d))return L;if(qn(d)){var p=typeof d.valueOf=="function"?d.valueOf():d;d=qn(p)?p+"":p}if(typeof d!="string")return d===0?d:+d;d=AT(d);var y=$e.test(d);return y||hn.test(d)?cJ(d.slice(2),y?2:8):ne.test(d)?L:+d}function dz(d){return is(d,Fi(d))}function Yne(d){return d?Pu(jt(d),-Q,Q):d===0?d:0}function pn(d){return d==null?"":oa(d)}var Zne=Mf(function(d,p){if(m0(p)||zi(p)){is(p,Ar(p),d);return}for(var y in p)gn.call(p,y)&&c0(d,y,p[y])}),fz=Mf(function(d,p){is(p,Fi(p),d)}),Ey=Mf(function(d,p,y,x){is(p,Fi(p),d,x)}),Xne=Mf(function(d,p,y,x){is(p,Ar(p),d,x)}),Jne=tl(g3);function Qne(d,p){var y=$f(d);return p==null?y:HT(y,p)}var ere=Gt(function(d,p){d=xn(d);var y=-1,x=p.length,z=x>2?p[2]:n;for(z&&ui(p[0],p[1],z)&&(x=1);++y<x;)for(var P=p[y],H=Fi(P),X=-1,oe=H.length;++X<oe;){var we=H[X],ve=d[we];(ve===n||Ao(ve,Af[we])&&!gn.call(d,we))&&(d[we]=P[we])}return d}),tre=Gt(function(d){return d.push(n,AA),ia(hz,n,d)});function nre(d,p){return ST(d,bt(p,3),rs)}function rre(d,p){return ST(d,bt(p,3),_3)}function ire(d,p){return d==null?d:y3(d,bt(p,3),Fi)}function are(d,p){return d==null?d:YT(d,bt(p,3),Fi)}function ore(d,p){return d&&rs(d,bt(p,3))}function sre(d,p){return d&&_3(d,bt(p,3))}function lre(d){return d==null?[]:ly(d,Ar(d))}function cre(d){return d==null?[]:ly(d,Fi(d))}function Z3(d,p,y){var x=d==null?n:ju(d,p);return x===n?y:x}function ure(d,p){return d!=null&&$A(d,p,MQ)}function X3(d,p){return d!=null&&$A(d,p,OQ)}var dre=CA(function(d,p,y){p!=null&&typeof p.toString!="function"&&(p=Y1.call(p)),d[p]=y},Q3($i)),fre=CA(function(d,p,y){p!=null&&typeof p.toString!="function"&&(p=Y1.call(p)),gn.call(d,p)?d[p].push(y):d[p]=[y]},bt),hre=Gt(d0);function Ar(d){return zi(d)?VT(d):v3(d)}function Fi(d){return zi(d)?VT(d,!0):HQ(d)}function pre(d,p){var y={};return p=bt(p,3),rs(d,function(x,z,P){Qs(y,p(x,z,P),x)}),y}function mre(d,p){var y={};return p=bt(p,3),rs(d,function(x,z,P){Qs(y,z,p(x,z,P))}),y}var gre=Mf(function(d,p,y){cy(d,p,y)}),hz=Mf(function(d,p,y,x){cy(d,p,y,x)}),yre=tl(function(d,p){var y={};if(d==null)return y;var x=!1;p=Rn(p,function(P){return P=dc(P,d),x||(x=P.length>1),P}),is(d,L3(d),y),x&&(y=Pa(y,f|h|m,dee));for(var z=p.length;z--;)T3(y,p[z]);return y});function _re(d,p){return pz(d,Cy(bt(p)))}var bre=tl(function(d,p){return d==null?{}:WQ(d,p)});function pz(d,p){if(d==null)return{};var y=Rn(L3(d),function(x){return[x]});return p=bt(p),aA(d,y,function(x,z){return p(x,z[0])})}function kre(d,p,y){p=dc(p,d);var x=-1,z=p.length;for(z||(z=1,d=n);++x<z;){var P=d==null?n:d[as(p[x])];P===n&&(x=z,P=y),d=rl(P)?P.call(d):P}return d}function wre(d,p,y){return d==null?d:h0(d,p,y)}function vre(d,p,y,x){return x=typeof x=="function"?x:n,d==null?d:h0(d,p,y,x)}var mz=EA(Ar),gz=EA(Fi);function xre(d,p,y){var x=Ot(d),z=x||hc(d)||Lf(d);if(p=bt(p,4),y==null){var P=d&&d.constructor;z?y=x?new P:[]:qn(d)?y=rl(P)?$f(J1(d)):{}:y={}}return(z?Ia:rs)(d,function(H,X,oe){return p(y,H,X,oe)}),y}function Cre(d,p){return d==null?!0:T3(d,p)}function Sre(d,p,y){return d==null?d:uA(d,p,F3(y))}function Dre(d,p,y,x){return x=typeof x=="function"?x:n,d==null?d:uA(d,p,F3(y),x)}function If(d){return d==null?[]:c3(d,Ar(d))}function Ere(d){return d==null?[]:c3(d,Fi(d))}function Tre(d,p,y){return y===n&&(y=p,p=n),y!==n&&(y=qa(y),y=y===y?y:0),p!==n&&(p=qa(p),p=p===p?p:0),Pu(qa(d),p,y)}function Are(d,p,y){return p=il(p),y===n?(y=p,p=0):y=il(y),d=qa(d),NQ(d,p,y)}function zre(d,p,y){if(y&&typeof y!="boolean"&&ui(d,p,y)&&(p=y=n),y===n&&(typeof p=="boolean"?(y=p,p=n):typeof d=="boolean"&&(y=d,d=n)),d===n&&p===n?(d=0,p=1):(d=il(d),p===n?(p=d,d=0):p=il(p)),d>p){var x=d;d=p,p=x}if(y||d%1||p%1){var z=PT();return Yr(d+z*(p-d+lJ("1e-"+((z+"").length-1))),p)}return S3(d,p)}var Fre=Of(function(d,p,y){return p=p.toLowerCase(),d+(y?yz(p):p)});function yz(d){return J3(pn(d).toLowerCase())}function _z(d){return d=pn(d),d&&d.replace(Ti,wJ).replace(JX,"")}function $re(d,p,y){d=pn(d),p=oa(p);var x=d.length;y=y===n?x:Pu(jt(y),0,x);var z=y;return y-=p.length,y>=0&&d.slice(y,z)==p}function Mre(d){return d=pn(d),d&&nc.test(d)?d.replace(tc,vJ):d}function Ore(d){return d=pn(d),d&&L1.test(d)?d.replace(Nu,"\\$&"):d}var Nre=Of(function(d,p,y){return d+(y?"-":"")+p.toLowerCase()}),Lre=Of(function(d,p,y){return d+(y?" ":"")+p.toLowerCase()}),Ire=wA("toLowerCase");function Bre(d,p,y){d=pn(d),p=jt(p);var x=p?Ef(d):0;if(!p||x>=p)return d;var z=(p-x)/2;return my(ny(z),y)+d+my(ty(z),y)}function Rre(d,p,y){d=pn(d),p=jt(p);var x=p?Ef(d):0;return p&&x<p?d+my(p-x,y):d}function Pre(d,p,y){d=pn(d),p=jt(p);var x=p?Ef(d):0;return p&&x<p?my(p-x,y)+d:d}function jre(d,p,y){return y||p==null?p=0:p&&(p=+p),KJ(pn(d).replace(vf,""),p||0)}function Vre(d,p,y){return(y?ui(d,p,y):p===n)?p=1:p=jt(p),D3(pn(d),p)}function qre(){var d=arguments,p=pn(d[0]);return d.length<3?p:p.replace(d[1],d[2])}var Hre=Of(function(d,p,y){return d+(y?"_":"")+p.toLowerCase()});function Ure(d,p,y){return y&&typeof y!="number"&&ui(d,p,y)&&(p=y=n),y=y===n?de:y>>>0,y?(d=pn(d),d&&(typeof p=="string"||p!=null&&!Y3(p))&&(p=oa(p),!p&&Df(d))?fc(Eo(d),0,y):d.split(p,y)):[]}var Wre=Of(function(d,p,y){return d+(y?" ":"")+J3(p)});function Gre(d,p,y){return d=pn(d),y=y==null?0:Pu(jt(y),0,d.length),p=oa(p),d.slice(y,y+p.length)==p}function Kre(d,p,y){var x=N.templateSettings;y&&ui(d,p,y)&&(p=n),d=pn(d),p=Ey({},p,x,TA);var z=Ey({},p.imports,x.imports,TA),P=Ar(z),H=c3(z,P),X,oe,we=0,ve=p.interpolate||wn,De="__p += '",qe=d3((p.escape||wn).source+"|"+ve.source+"|"+(ve===Ks?K2:wn).source+"|"+(p.evaluate||wn).source+"|$","g"),at="//# sourceURL="+(gn.call(p,"sourceURL")?(p.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rJ+"]")+` +`;d.replace(qe,function(vt,Zt,nn,la,di,ca){return nn||(nn=la),De+=d.slice(we,ca).replace(Na,xJ),Zt&&(X=!0,De+=`' + __e(`+Zt+`) + '`),di&&(oe=!0,De+=`'; `+di+`; @@ -332,7 +332,7 @@ __p += '`),nn&&(De+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+De+`return __p -}`;var Ht=kz(function(){return dn(P,at+"return "+De).apply(n,H)});if(Ht.source=De,K3(Ht))throw Ht;return Ht}function Kre(d){return hn(d).toLowerCase()}function Yre(d){return hn(d).toUpperCase()}function Zre(d,p,y){if(d=hn(d),d&&(y||p===n))return AT(d);if(!d||!(p=oa(p)))return d;var x=Eo(d),z=Eo(p),P=zT(x,z),H=FT(x,z)+1;return fc(x,P,H).join("")}function Xre(d,p,y){if(d=hn(d),d&&(y||p===n))return d.slice(0,MT(d)+1);if(!d||!(p=oa(p)))return d;var x=Eo(d),z=FT(x,Eo(p))+1;return fc(x,0,z).join("")}function Jre(d,p,y){if(d=hn(d),d&&(y||p===n))return d.replace(vf,"");if(!d||!(p=oa(p)))return d;var x=Eo(d),z=zT(x,Eo(p));return fc(x,z).join("")}function Qre(d,p){var y=O,x=G;if(qn(p)){var z="separator"in p?p.separator:z;y="length"in p?jt(p.length):y,x="omission"in p?oa(p.omission):x}d=hn(d);var P=d.length;if(Df(d)){var H=Eo(d);P=H.length}if(y>=P)return d;var X=y-Ef(x);if(X<1)return x;var oe=H?fc(H,0,X).join(""):d.slice(0,X);if(z===n)return oe+x;if(H&&(X+=oe.length-X),Y3(z)){if(d.slice(X).search(z)){var we,ve=oe;for(z.global||(z=d3(z.source,hn(ot.exec(z))+"g")),z.lastIndex=0;we=z.exec(ve);)var De=we.index;oe=oe.slice(0,De===n?X:De)}}else if(d.indexOf(oa(z),X)!=X){var qe=oe.lastIndexOf(z);qe>-1&&(oe=oe.slice(0,qe))}return oe+x}function eie(d){return d=hn(d),d&&ra.test(d)?d.replace(So,AJ):d}var tie=Of(function(d,p,y){return d+(y?" ":"")+p.toUpperCase()}),J3=wA("toUpperCase");function bz(d,p,y){return d=hn(d),p=y?n:p,p===n?CJ(d)?$J(d):mJ(d):d.match(p)||[]}var kz=Gt(function(d,p){try{return ia(d,n,p)}catch(y){return K3(y)?y:new Ft(y)}}),nie=tl(function(d,p){return Ia(p,function(y){y=as(y),Qs(d,y,W3(d[y],d))}),d});function rie(d){var p=d==null?0:d.length,y=bt();return d=p?Rn(d,function(x){if(typeof x[1]!="function")throw new Ba(o);return[y(x[0]),x[1]]}):[],Gt(function(x){for(var z=-1;++z<p;){var P=d[z];if(ia(P[0],this,x))return ia(P[1],this,x)}})}function iie(d){return AQ(Pa(d,f))}function Q3(d){return function(){return d}}function aie(d,p){return d==null||d!==d?p:d}var oie=xA(),sie=xA(!0);function $i(d){return d}function e4(d){return QT(typeof d=="function"?d:Pa(d,f))}function lie(d){return tA(Pa(d,f))}function cie(d,p){return nA(d,Pa(p,f))}var uie=Gt(function(d,p){return function(y){return d0(y,d,p)}}),die=Gt(function(d,p){return function(y){return d0(d,y,p)}});function t4(d,p,y){var x=Ar(p),z=ly(p,x);y==null&&!(qn(p)&&(z.length||!x.length))&&(y=p,p=d,d=this,z=ly(p,Ar(p)));var P=!(qn(y)&&"chain"in y)||!!y.chain,H=rl(d);return Ia(z,function(X){var oe=p[X];d[X]=oe,H&&(d.prototype[X]=function(){var we=this.__chain__;if(P||we){var ve=d(this.__wrapped__),De=ve.__actions__=Ai(this.__actions__);return De.push({func:oe,args:arguments,thisArg:d}),ve.__chain__=we,ve}return oe.apply(d,oc([this.value()],arguments))})}),d}function fie(){return Br._===this&&(Br._=BJ),this}function n4(){}function hie(d){return d=jt(d),Gt(function(p){return rA(p,d)})}var pie=M3(Rn),mie=M3(CT),gie=M3(i3);function wz(d){return P3(d)?a3(as(d)):WQ(d)}function yie(d){return function(p){return d==null?n:ju(d,p)}}var _ie=SA(),bie=SA(!0);function r4(){return[]}function i4(){return!1}function kie(){return{}}function wie(){return""}function vie(){return!0}function xie(d,p){if(d=jt(d),d<1||d>Q)return[];var y=de,x=Yr(d,de);p=bt(p),d-=de;for(var z=l3(x,p);++y<d;)p(y);return z}function Cie(d){return Ot(d)?Rn(d,as):sa(d)?[d]:Ai(jA(hn(d)))}function Sie(d){var p=++LJ;return hn(d)+p}var Die=py(function(d,p){return d+p},0),Eie=O3("ceil"),Tie=py(function(d,p){return d/p},1),Aie=O3("floor");function zie(d){return d&&d.length?sy(d,$i,b3):n}function Fie(d,p){return d&&d.length?sy(d,bt(p,2),b3):n}function $ie(d){return ET(d,$i)}function Mie(d,p){return ET(d,bt(p,2))}function Oie(d){return d&&d.length?sy(d,$i,x3):n}function Nie(d,p){return d&&d.length?sy(d,bt(p,2),x3):n}var Lie=py(function(d,p){return d*p},1),Iie=O3("round"),Bie=py(function(d,p){return d-p},0);function Rie(d){return d&&d.length?s3(d,$i):0}function Pie(d,p){return d&&d.length?s3(d,bt(p,2)):0}return N.after=lne,N.ary=JA,N.assign=Yne,N.assignIn=fz,N.assignInWith=Ey,N.assignWith=Zne,N.at=Xne,N.before=QA,N.bind=W3,N.bindAll=nie,N.bindKey=ez,N.castArray=kne,N.chain=YA,N.chunk=Aee,N.compact=zee,N.concat=Fee,N.cond=rie,N.conforms=iie,N.constant=Q3,N.countBy=Rte,N.create=Jne,N.curry=tz,N.curryRight=nz,N.debounce=rz,N.defaults=Qne,N.defaultsDeep=ere,N.defer=cne,N.delay=une,N.difference=$ee,N.differenceBy=Mee,N.differenceWith=Oee,N.drop=Nee,N.dropRight=Lee,N.dropRightWhile=Iee,N.dropWhile=Bee,N.fill=Ree,N.filter=jte,N.flatMap=Hte,N.flatMapDeep=Ute,N.flatMapDepth=Wte,N.flatten=UA,N.flattenDeep=Pee,N.flattenDepth=jee,N.flip=dne,N.flow=oie,N.flowRight=sie,N.fromPairs=Vee,N.functions=sre,N.functionsIn=lre,N.groupBy=Gte,N.initial=Hee,N.intersection=Uee,N.intersectionBy=Wee,N.intersectionWith=Gee,N.invert=ure,N.invertBy=dre,N.invokeMap=Yte,N.iteratee=e4,N.keyBy=Zte,N.keys=Ar,N.keysIn=Fi,N.map=wy,N.mapKeys=hre,N.mapValues=pre,N.matches=lie,N.matchesProperty=cie,N.memoize=xy,N.merge=mre,N.mergeWith=hz,N.method=uie,N.methodOf=die,N.mixin=t4,N.negate=Cy,N.nthArg=hie,N.omit=gre,N.omitBy=yre,N.once=fne,N.orderBy=Xte,N.over=pie,N.overArgs=hne,N.overEvery=mie,N.overSome=gie,N.partial=G3,N.partialRight=iz,N.partition=Jte,N.pick=_re,N.pickBy=pz,N.property=wz,N.propertyOf=yie,N.pull=Xee,N.pullAll=GA,N.pullAllBy=Jee,N.pullAllWith=Qee,N.pullAt=ete,N.range=_ie,N.rangeRight=bie,N.rearg=pne,N.reject=tne,N.remove=tte,N.rest=mne,N.reverse=H3,N.sampleSize=rne,N.set=kre,N.setWith=wre,N.shuffle=ine,N.slice=nte,N.sortBy=sne,N.sortedUniq=cte,N.sortedUniqBy=ute,N.split=Hre,N.spread=gne,N.tail=dte,N.take=fte,N.takeRight=hte,N.takeRightWhile=pte,N.takeWhile=mte,N.tap=zte,N.throttle=yne,N.thru=ky,N.toArray=cz,N.toPairs=mz,N.toPairsIn=gz,N.toPath=Cie,N.toPlainObject=dz,N.transform=vre,N.unary=_ne,N.union=gte,N.unionBy=yte,N.unionWith=_te,N.uniq=bte,N.uniqBy=kte,N.uniqWith=wte,N.unset=xre,N.unzip=U3,N.unzipWith=KA,N.update=Cre,N.updateWith=Sre,N.values=If,N.valuesIn=Dre,N.without=vte,N.words=bz,N.wrap=bne,N.xor=xte,N.xorBy=Cte,N.xorWith=Ste,N.zip=Dte,N.zipObject=Ete,N.zipObjectDeep=Tte,N.zipWith=Ate,N.entries=mz,N.entriesIn=gz,N.extend=fz,N.extendWith=Ey,t4(N,N),N.add=Die,N.attempt=kz,N.camelCase=zre,N.capitalize=yz,N.ceil=Eie,N.clamp=Ere,N.clone=wne,N.cloneDeep=xne,N.cloneDeepWith=Cne,N.cloneWith=vne,N.conformsTo=Sne,N.deburr=_z,N.defaultTo=aie,N.divide=Tie,N.endsWith=Fre,N.eq=Ao,N.escape=$re,N.escapeRegExp=Mre,N.every=Pte,N.find=Vte,N.findIndex=qA,N.findKey=tre,N.findLast=qte,N.findLastIndex=HA,N.findLastKey=nre,N.floor=Aie,N.forEach=ZA,N.forEachRight=XA,N.forIn=rre,N.forInRight=ire,N.forOwn=are,N.forOwnRight=ore,N.get=Z3,N.gt=Dne,N.gte=Ene,N.has=cre,N.hasIn=X3,N.head=WA,N.identity=$i,N.includes=Kte,N.indexOf=qee,N.inRange=Tre,N.invoke=fre,N.isArguments=Hu,N.isArray=Ot,N.isArrayBuffer=Tne,N.isArrayLike=zi,N.isArrayLikeObject=ir,N.isBoolean=Ane,N.isBuffer=hc,N.isDate=zne,N.isElement=Fne,N.isEmpty=$ne,N.isEqual=Mne,N.isEqualWith=One,N.isError=K3,N.isFinite=Nne,N.isFunction=rl,N.isInteger=az,N.isLength=Sy,N.isMap=oz,N.isMatch=Lne,N.isMatchWith=Ine,N.isNaN=Bne,N.isNative=Rne,N.isNil=jne,N.isNull=Pne,N.isNumber=sz,N.isObject=qn,N.isObjectLike=Jn,N.isPlainObject=y0,N.isRegExp=Y3,N.isSafeInteger=Vne,N.isSet=lz,N.isString=Dy,N.isSymbol=sa,N.isTypedArray=Lf,N.isUndefined=qne,N.isWeakMap=Hne,N.isWeakSet=Une,N.join=Kee,N.kebabCase=Ore,N.last=Va,N.lastIndexOf=Yee,N.lowerCase=Nre,N.lowerFirst=Lre,N.lt=Wne,N.lte=Gne,N.max=zie,N.maxBy=Fie,N.mean=$ie,N.meanBy=Mie,N.min=Oie,N.minBy=Nie,N.stubArray=r4,N.stubFalse=i4,N.stubObject=kie,N.stubString=wie,N.stubTrue=vie,N.multiply=Lie,N.nth=Zee,N.noConflict=fie,N.noop=n4,N.now=vy,N.pad=Ire,N.padEnd=Bre,N.padStart=Rre,N.parseInt=Pre,N.random=Are,N.reduce=Qte,N.reduceRight=ene,N.repeat=jre,N.replace=Vre,N.result=bre,N.round=Iie,N.runInContext=re,N.sample=nne,N.size=ane,N.snakeCase=qre,N.some=one,N.sortedIndex=rte,N.sortedIndexBy=ite,N.sortedIndexOf=ate,N.sortedLastIndex=ote,N.sortedLastIndexBy=ste,N.sortedLastIndexOf=lte,N.startCase=Ure,N.startsWith=Wre,N.subtract=Bie,N.sum=Rie,N.sumBy=Pie,N.template=Gre,N.times=xie,N.toFinite=il,N.toInteger=jt,N.toLength=uz,N.toLower=Kre,N.toNumber=qa,N.toSafeInteger=Kne,N.toString=hn,N.toUpper=Yre,N.trim=Zre,N.trimEnd=Xre,N.trimStart=Jre,N.truncate=Qre,N.unescape=eie,N.uniqueId=Sie,N.upperCase=tie,N.upperFirst=J3,N.each=ZA,N.eachRight=XA,N.first=WA,t4(N,function(){var d={};return rs(N,function(p,y){gn.call(N.prototype,y)||(d[y]=p)}),d}(),{chain:!1}),N.VERSION=r,Ia(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){N[d].placeholder=N}),Ia(["drop","take"],function(d,p){Qt.prototype[d]=function(y){y=y===n?1:kr(jt(y),0);var x=this.__filtered__&&!p?new Qt(this):this.clone();return x.__filtered__?x.__takeCount__=Yr(y,x.__takeCount__):x.__views__.push({size:Yr(y,de),type:d+(x.__dir__<0?"Right":"")}),x},Qt.prototype[d+"Right"]=function(y){return this.reverse()[d](y).reverse()}}),Ia(["filter","map","takeWhile"],function(d,p){var y=p+1,x=y==W||y==fe;Qt.prototype[d]=function(z){var P=this.clone();return P.__iteratees__.push({iteratee:bt(z,3),type:y}),P.__filtered__=P.__filtered__||x,P}}),Ia(["head","last"],function(d,p){var y="take"+(p?"Right":"");Qt.prototype[d]=function(){return this[y](1).value()[0]}}),Ia(["initial","tail"],function(d,p){var y="drop"+(p?"":"Right");Qt.prototype[d]=function(){return this.__filtered__?new Qt(this):this[y](1)}}),Qt.prototype.compact=function(){return this.filter($i)},Qt.prototype.find=function(d){return this.filter(d).head()},Qt.prototype.findLast=function(d){return this.reverse().find(d)},Qt.prototype.invokeMap=Gt(function(d,p){return typeof d=="function"?new Qt(this):this.map(function(y){return d0(y,d,p)})}),Qt.prototype.reject=function(d){return this.filter(Cy(bt(d)))},Qt.prototype.slice=function(d,p){d=jt(d);var y=this;return y.__filtered__&&(d>0||p<0)?new Qt(y):(d<0?y=y.takeRight(-d):d&&(y=y.drop(d)),p!==n&&(p=jt(p),y=p<0?y.dropRight(-p):y.take(p-d)),y)},Qt.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},Qt.prototype.toArray=function(){return this.take(de)},rs(Qt.prototype,function(d,p){var y=/^(?:filter|find|map|reject)|While$/.test(p),x=/^(?:head|last)$/.test(p),z=N[x?"take"+(p=="last"?"Right":""):p],P=x||/^find/.test(p);z&&(N.prototype[p]=function(){var H=this.__wrapped__,X=x?[1]:arguments,oe=H instanceof Qt,we=X[0],ve=oe||Ot(H),De=function(Zt){var nn=z.apply(N,oc([Zt],X));return x&&qe?nn[0]:nn};ve&&y&&typeof we=="function"&&we.length!=1&&(oe=ve=!1);var qe=this.__chain__,at=!!this.__actions__.length,wt=P&&!qe,Ht=oe&&!at;if(!P&&ve){H=Ht?H:new Qt(this);var vt=d.apply(H,X);return vt.__actions__.push({func:ky,args:[De],thisArg:n}),new Ra(vt,qe)}return wt&&Ht?d.apply(this,X):(vt=this.thru(De),wt?x?vt.value()[0]:vt.value():vt)})}),Ia(["pop","push","shift","sort","splice","unshift"],function(d){var p=W1[d],y=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",x=/^(?:pop|shift)$/.test(d);N.prototype[d]=function(){var z=arguments;if(x&&!this.__chain__){var P=this.value();return p.apply(Ot(P)?P:[],z)}return this[y](function(H){return p.apply(Ot(H)?H:[],z)})}}),rs(Qt.prototype,function(d,p){var y=N[p];if(y){var x=y.name+"";gn.call(Ff,x)||(Ff[x]=[]),Ff[x].push({name:p,func:y})}}),Ff[hy(n,w).name]=[{name:"wrapper",func:n}],Qt.prototype.clone=eQ,Qt.prototype.reverse=tQ,Qt.prototype.value=nQ,N.prototype.at=Fte,N.prototype.chain=$te,N.prototype.commit=Mte,N.prototype.next=Ote,N.prototype.plant=Lte,N.prototype.reverse=Ite,N.prototype.toJSON=N.prototype.valueOf=N.prototype.value=Bte,N.prototype.first=N.prototype.head,i0&&(N.prototype[i0]=Nte),N},Tf=MJ();Lu?((Lu.exports=Tf)._=Tf,e3._=Tf):Br._=Tf}).call(Bi)})(dw,dw.exports);var T4t=dw.exports;const A4t=({callback:e,wait:t=300})=>{const n=F.useMemo(()=>{if(e)return T4t.debounce(e,t)},[e,t]);return F.useEffect(()=>()=>n&&n.cancel(),[n]),{debounce:n}},z4t=({onFocus:e,onChange:t,debounceChange:n=0})=>{const{debounce:r}=A4t({callback:t,wait:n});return F.useMemo(()=>[qG,a=>()=>{a.get(uw).markdownUpdated((o,s)=>{r==null||r(s)}),a.get(uw).focus(()=>{e==null||e()})}].flat(),[r,e])};class ga{constructor(t,n,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=n,this.end=r}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new ga(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}let au=class HG{constructor(t,n){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=n}range(t,n){return new HG(n,ga.range(this,t))}};class Oe{constructor(t,n){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r="KaTeX parse error: "+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=" at end of input: ":r+=" at position "+(i+1)+": ";var l=s.slice(i,a).replace(/[^]/g,"$&̲"),c;i>15?c="…"+s.slice(i-15,i):c=s.slice(0,i);var u;a+15<s.length?u=s.slice(a,a+15)+"…":u=s.slice(a),r+=c+l+u}var f=new Error(r);return f.name="ParseError",f.__proto__=Oe.prototype,f.position=i,i!=null&&a!=null&&(f.length=a-i),f.rawMessage=t,f}}Oe.prototype.__proto__=Error.prototype;var F4t=function(t,n){return t.indexOf(n)!==-1},$4t=function(t,n){return t===void 0?n:t},M4t=/([A-Z])/g,O4t=function(t){return t.replace(M4t,"-$1").toLowerCase()},N4t={"&":"&",">":">","<":"<",'"':""","'":"'"},L4t=/[&><"']/g;function I4t(e){return String(e).replace(L4t,t=>N4t[t])}var UG=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},B4t=function(t){var n=UG(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},R4t=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},P4t=function(t){var n=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(t);return n!=null?n[1]:"_relative"},Ct={contains:F4t,deflt:$4t,escape:I4t,hyphenate:O4t,getBaseElem:UG,isCharacterBox:B4t,protocolFromUrl:P4t},Mb={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function j4t(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class kD{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n in Mb)if(Mb.hasOwnProperty(n)){var r=Mb[n];this[n]=t[n]!==void 0?r.processor?r.processor(t[n]):t[n]:j4t(r)}}reportNonstrict(t,n,r){var i=this.strict;if(typeof i=="function"&&(i=i(t,n,r)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new Oe("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,r){var i=this.strict;if(typeof i=="function")try{i=i(t,n,r)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]")),!1)}isTrusted(t){t.url&&!t.protocol&&(t.protocol=Ct.protocolFromUrl(t.url));var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}}class yc{constructor(t,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=r}sup(){return ys[V4t[this.id]]}sub(){return ys[q4t[this.id]]}fracNum(){return ys[H4t[this.id]]}fracDen(){return ys[U4t[this.id]]}cramp(){return ys[W4t[this.id]]}text(){return ys[G4t[this.id]]}isTight(){return this.size>=2}}var wD=0,fw=1,Wh=2,$l=3,Eg=4,ao=5,xp=6,_i=7,ys=[new yc(wD,0,!1),new yc(fw,0,!0),new yc(Wh,1,!1),new yc($l,1,!0),new yc(Eg,2,!1),new yc(ao,2,!0),new yc(xp,3,!1),new yc(_i,3,!0)],V4t=[Eg,ao,Eg,ao,xp,_i,xp,_i],q4t=[ao,ao,ao,ao,_i,_i,_i,_i],H4t=[Wh,$l,Eg,ao,xp,_i,xp,_i],U4t=[$l,$l,ao,ao,_i,_i,_i,_i],W4t=[fw,fw,$l,$l,ao,ao,_i,_i],G4t=[wD,fw,Wh,$l,Wh,$l,Wh,$l],_t={DISPLAY:ys[wD],TEXT:ys[Wh],SCRIPT:ys[Eg],SCRIPTSCRIPT:ys[xp]},s7=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function K4t(e){for(var t=0;t<s7.length;t++)for(var n=s7[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}var Ob=[];s7.forEach(e=>e.blocks.forEach(t=>Ob.push(...t)));function WG(e){for(var t=0;t<Ob.length;t+=2)if(e>=Ob[t]&&e<=Ob[t+1])return!0;return!1}var Hf=80,Y4t=function(t,n){return"M95,"+(622+t+n)+` +}`;var Ht=kz(function(){return dn(P,at+"return "+De).apply(n,H)});if(Ht.source=De,K3(Ht))throw Ht;return Ht}function Yre(d){return pn(d).toLowerCase()}function Zre(d){return pn(d).toUpperCase()}function Xre(d,p,y){if(d=pn(d),d&&(y||p===n))return AT(d);if(!d||!(p=oa(p)))return d;var x=Eo(d),z=Eo(p),P=zT(x,z),H=FT(x,z)+1;return fc(x,P,H).join("")}function Jre(d,p,y){if(d=pn(d),d&&(y||p===n))return d.slice(0,MT(d)+1);if(!d||!(p=oa(p)))return d;var x=Eo(d),z=FT(x,Eo(p))+1;return fc(x,0,z).join("")}function Qre(d,p,y){if(d=pn(d),d&&(y||p===n))return d.replace(vf,"");if(!d||!(p=oa(p)))return d;var x=Eo(d),z=zT(x,Eo(p));return fc(x,z).join("")}function eie(d,p){var y=O,x=G;if(qn(p)){var z="separator"in p?p.separator:z;y="length"in p?jt(p.length):y,x="omission"in p?oa(p.omission):x}d=pn(d);var P=d.length;if(Df(d)){var H=Eo(d);P=H.length}if(y>=P)return d;var X=y-Ef(x);if(X<1)return x;var oe=H?fc(H,0,X).join(""):d.slice(0,X);if(z===n)return oe+x;if(H&&(X+=oe.length-X),Y3(z)){if(d.slice(X).search(z)){var we,ve=oe;for(z.global||(z=d3(z.source,pn(ot.exec(z))+"g")),z.lastIndex=0;we=z.exec(ve);)var De=we.index;oe=oe.slice(0,De===n?X:De)}}else if(d.indexOf(oa(z),X)!=X){var qe=oe.lastIndexOf(z);qe>-1&&(oe=oe.slice(0,qe))}return oe+x}function tie(d){return d=pn(d),d&&ra.test(d)?d.replace(So,zJ):d}var nie=Of(function(d,p,y){return d+(y?" ":"")+p.toUpperCase()}),J3=wA("toUpperCase");function bz(d,p,y){return d=pn(d),p=y?n:p,p===n?SJ(d)?MJ(d):gJ(d):d.match(p)||[]}var kz=Gt(function(d,p){try{return ia(d,n,p)}catch(y){return K3(y)?y:new Ft(y)}}),rie=tl(function(d,p){return Ia(p,function(y){y=as(y),Qs(d,y,W3(d[y],d))}),d});function iie(d){var p=d==null?0:d.length,y=bt();return d=p?Rn(d,function(x){if(typeof x[1]!="function")throw new Ba(o);return[y(x[0]),x[1]]}):[],Gt(function(x){for(var z=-1;++z<p;){var P=d[z];if(ia(P[0],this,x))return ia(P[1],this,x)}})}function aie(d){return zQ(Pa(d,f))}function Q3(d){return function(){return d}}function oie(d,p){return d==null||d!==d?p:d}var sie=xA(),lie=xA(!0);function $i(d){return d}function e4(d){return QT(typeof d=="function"?d:Pa(d,f))}function cie(d){return tA(Pa(d,f))}function uie(d,p){return nA(d,Pa(p,f))}var die=Gt(function(d,p){return function(y){return d0(y,d,p)}}),fie=Gt(function(d,p){return function(y){return d0(d,y,p)}});function t4(d,p,y){var x=Ar(p),z=ly(p,x);y==null&&!(qn(p)&&(z.length||!x.length))&&(y=p,p=d,d=this,z=ly(p,Ar(p)));var P=!(qn(y)&&"chain"in y)||!!y.chain,H=rl(d);return Ia(z,function(X){var oe=p[X];d[X]=oe,H&&(d.prototype[X]=function(){var we=this.__chain__;if(P||we){var ve=d(this.__wrapped__),De=ve.__actions__=Ai(this.__actions__);return De.push({func:oe,args:arguments,thisArg:d}),ve.__chain__=we,ve}return oe.apply(d,oc([this.value()],arguments))})}),d}function hie(){return Br._===this&&(Br._=RJ),this}function n4(){}function pie(d){return d=jt(d),Gt(function(p){return rA(p,d)})}var mie=M3(Rn),gie=M3(CT),yie=M3(i3);function wz(d){return P3(d)?a3(as(d)):GQ(d)}function _ie(d){return function(p){return d==null?n:ju(d,p)}}var bie=SA(),kie=SA(!0);function r4(){return[]}function i4(){return!1}function wie(){return{}}function vie(){return""}function xie(){return!0}function Cie(d,p){if(d=jt(d),d<1||d>Q)return[];var y=de,x=Yr(d,de);p=bt(p),d-=de;for(var z=l3(x,p);++y<d;)p(y);return z}function Sie(d){return Ot(d)?Rn(d,as):sa(d)?[d]:Ai(jA(pn(d)))}function Die(d){var p=++IJ;return pn(d)+p}var Eie=py(function(d,p){return d+p},0),Tie=O3("ceil"),Aie=py(function(d,p){return d/p},1),zie=O3("floor");function Fie(d){return d&&d.length?sy(d,$i,b3):n}function $ie(d,p){return d&&d.length?sy(d,bt(p,2),b3):n}function Mie(d){return ET(d,$i)}function Oie(d,p){return ET(d,bt(p,2))}function Nie(d){return d&&d.length?sy(d,$i,x3):n}function Lie(d,p){return d&&d.length?sy(d,bt(p,2),x3):n}var Iie=py(function(d,p){return d*p},1),Bie=O3("round"),Rie=py(function(d,p){return d-p},0);function Pie(d){return d&&d.length?s3(d,$i):0}function jie(d,p){return d&&d.length?s3(d,bt(p,2)):0}return N.after=cne,N.ary=JA,N.assign=Zne,N.assignIn=fz,N.assignInWith=Ey,N.assignWith=Xne,N.at=Jne,N.before=QA,N.bind=W3,N.bindAll=rie,N.bindKey=ez,N.castArray=wne,N.chain=YA,N.chunk=zee,N.compact=Fee,N.concat=$ee,N.cond=iie,N.conforms=aie,N.constant=Q3,N.countBy=Pte,N.create=Qne,N.curry=tz,N.curryRight=nz,N.debounce=rz,N.defaults=ere,N.defaultsDeep=tre,N.defer=une,N.delay=dne,N.difference=Mee,N.differenceBy=Oee,N.differenceWith=Nee,N.drop=Lee,N.dropRight=Iee,N.dropRightWhile=Bee,N.dropWhile=Ree,N.fill=Pee,N.filter=Vte,N.flatMap=Ute,N.flatMapDeep=Wte,N.flatMapDepth=Gte,N.flatten=UA,N.flattenDeep=jee,N.flattenDepth=Vee,N.flip=fne,N.flow=sie,N.flowRight=lie,N.fromPairs=qee,N.functions=lre,N.functionsIn=cre,N.groupBy=Kte,N.initial=Uee,N.intersection=Wee,N.intersectionBy=Gee,N.intersectionWith=Kee,N.invert=dre,N.invertBy=fre,N.invokeMap=Zte,N.iteratee=e4,N.keyBy=Xte,N.keys=Ar,N.keysIn=Fi,N.map=wy,N.mapKeys=pre,N.mapValues=mre,N.matches=cie,N.matchesProperty=uie,N.memoize=xy,N.merge=gre,N.mergeWith=hz,N.method=die,N.methodOf=fie,N.mixin=t4,N.negate=Cy,N.nthArg=pie,N.omit=yre,N.omitBy=_re,N.once=hne,N.orderBy=Jte,N.over=mie,N.overArgs=pne,N.overEvery=gie,N.overSome=yie,N.partial=G3,N.partialRight=iz,N.partition=Qte,N.pick=bre,N.pickBy=pz,N.property=wz,N.propertyOf=_ie,N.pull=Jee,N.pullAll=GA,N.pullAllBy=Qee,N.pullAllWith=ete,N.pullAt=tte,N.range=bie,N.rangeRight=kie,N.rearg=mne,N.reject=nne,N.remove=nte,N.rest=gne,N.reverse=H3,N.sampleSize=ine,N.set=wre,N.setWith=vre,N.shuffle=ane,N.slice=rte,N.sortBy=lne,N.sortedUniq=ute,N.sortedUniqBy=dte,N.split=Ure,N.spread=yne,N.tail=fte,N.take=hte,N.takeRight=pte,N.takeRightWhile=mte,N.takeWhile=gte,N.tap=Fte,N.throttle=_ne,N.thru=ky,N.toArray=cz,N.toPairs=mz,N.toPairsIn=gz,N.toPath=Sie,N.toPlainObject=dz,N.transform=xre,N.unary=bne,N.union=yte,N.unionBy=_te,N.unionWith=bte,N.uniq=kte,N.uniqBy=wte,N.uniqWith=vte,N.unset=Cre,N.unzip=U3,N.unzipWith=KA,N.update=Sre,N.updateWith=Dre,N.values=If,N.valuesIn=Ere,N.without=xte,N.words=bz,N.wrap=kne,N.xor=Cte,N.xorBy=Ste,N.xorWith=Dte,N.zip=Ete,N.zipObject=Tte,N.zipObjectDeep=Ate,N.zipWith=zte,N.entries=mz,N.entriesIn=gz,N.extend=fz,N.extendWith=Ey,t4(N,N),N.add=Eie,N.attempt=kz,N.camelCase=Fre,N.capitalize=yz,N.ceil=Tie,N.clamp=Tre,N.clone=vne,N.cloneDeep=Cne,N.cloneDeepWith=Sne,N.cloneWith=xne,N.conformsTo=Dne,N.deburr=_z,N.defaultTo=oie,N.divide=Aie,N.endsWith=$re,N.eq=Ao,N.escape=Mre,N.escapeRegExp=Ore,N.every=jte,N.find=qte,N.findIndex=qA,N.findKey=nre,N.findLast=Hte,N.findLastIndex=HA,N.findLastKey=rre,N.floor=zie,N.forEach=ZA,N.forEachRight=XA,N.forIn=ire,N.forInRight=are,N.forOwn=ore,N.forOwnRight=sre,N.get=Z3,N.gt=Ene,N.gte=Tne,N.has=ure,N.hasIn=X3,N.head=WA,N.identity=$i,N.includes=Yte,N.indexOf=Hee,N.inRange=Are,N.invoke=hre,N.isArguments=Hu,N.isArray=Ot,N.isArrayBuffer=Ane,N.isArrayLike=zi,N.isArrayLikeObject=ir,N.isBoolean=zne,N.isBuffer=hc,N.isDate=Fne,N.isElement=$ne,N.isEmpty=Mne,N.isEqual=One,N.isEqualWith=Nne,N.isError=K3,N.isFinite=Lne,N.isFunction=rl,N.isInteger=az,N.isLength=Sy,N.isMap=oz,N.isMatch=Ine,N.isMatchWith=Bne,N.isNaN=Rne,N.isNative=Pne,N.isNil=Vne,N.isNull=jne,N.isNumber=sz,N.isObject=qn,N.isObjectLike=Jn,N.isPlainObject=y0,N.isRegExp=Y3,N.isSafeInteger=qne,N.isSet=lz,N.isString=Dy,N.isSymbol=sa,N.isTypedArray=Lf,N.isUndefined=Hne,N.isWeakMap=Une,N.isWeakSet=Wne,N.join=Yee,N.kebabCase=Nre,N.last=Va,N.lastIndexOf=Zee,N.lowerCase=Lre,N.lowerFirst=Ire,N.lt=Gne,N.lte=Kne,N.max=Fie,N.maxBy=$ie,N.mean=Mie,N.meanBy=Oie,N.min=Nie,N.minBy=Lie,N.stubArray=r4,N.stubFalse=i4,N.stubObject=wie,N.stubString=vie,N.stubTrue=xie,N.multiply=Iie,N.nth=Xee,N.noConflict=hie,N.noop=n4,N.now=vy,N.pad=Bre,N.padEnd=Rre,N.padStart=Pre,N.parseInt=jre,N.random=zre,N.reduce=ene,N.reduceRight=tne,N.repeat=Vre,N.replace=qre,N.result=kre,N.round=Bie,N.runInContext=re,N.sample=rne,N.size=one,N.snakeCase=Hre,N.some=sne,N.sortedIndex=ite,N.sortedIndexBy=ate,N.sortedIndexOf=ote,N.sortedLastIndex=ste,N.sortedLastIndexBy=lte,N.sortedLastIndexOf=cte,N.startCase=Wre,N.startsWith=Gre,N.subtract=Rie,N.sum=Pie,N.sumBy=jie,N.template=Kre,N.times=Cie,N.toFinite=il,N.toInteger=jt,N.toLength=uz,N.toLower=Yre,N.toNumber=qa,N.toSafeInteger=Yne,N.toString=pn,N.toUpper=Zre,N.trim=Xre,N.trimEnd=Jre,N.trimStart=Qre,N.truncate=eie,N.unescape=tie,N.uniqueId=Die,N.upperCase=nie,N.upperFirst=J3,N.each=ZA,N.eachRight=XA,N.first=WA,t4(N,function(){var d={};return rs(N,function(p,y){gn.call(N.prototype,y)||(d[y]=p)}),d}(),{chain:!1}),N.VERSION=r,Ia(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){N[d].placeholder=N}),Ia(["drop","take"],function(d,p){Qt.prototype[d]=function(y){y=y===n?1:kr(jt(y),0);var x=this.__filtered__&&!p?new Qt(this):this.clone();return x.__filtered__?x.__takeCount__=Yr(y,x.__takeCount__):x.__views__.push({size:Yr(y,de),type:d+(x.__dir__<0?"Right":"")}),x},Qt.prototype[d+"Right"]=function(y){return this.reverse()[d](y).reverse()}}),Ia(["filter","map","takeWhile"],function(d,p){var y=p+1,x=y==W||y==fe;Qt.prototype[d]=function(z){var P=this.clone();return P.__iteratees__.push({iteratee:bt(z,3),type:y}),P.__filtered__=P.__filtered__||x,P}}),Ia(["head","last"],function(d,p){var y="take"+(p?"Right":"");Qt.prototype[d]=function(){return this[y](1).value()[0]}}),Ia(["initial","tail"],function(d,p){var y="drop"+(p?"":"Right");Qt.prototype[d]=function(){return this.__filtered__?new Qt(this):this[y](1)}}),Qt.prototype.compact=function(){return this.filter($i)},Qt.prototype.find=function(d){return this.filter(d).head()},Qt.prototype.findLast=function(d){return this.reverse().find(d)},Qt.prototype.invokeMap=Gt(function(d,p){return typeof d=="function"?new Qt(this):this.map(function(y){return d0(y,d,p)})}),Qt.prototype.reject=function(d){return this.filter(Cy(bt(d)))},Qt.prototype.slice=function(d,p){d=jt(d);var y=this;return y.__filtered__&&(d>0||p<0)?new Qt(y):(d<0?y=y.takeRight(-d):d&&(y=y.drop(d)),p!==n&&(p=jt(p),y=p<0?y.dropRight(-p):y.take(p-d)),y)},Qt.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},Qt.prototype.toArray=function(){return this.take(de)},rs(Qt.prototype,function(d,p){var y=/^(?:filter|find|map|reject)|While$/.test(p),x=/^(?:head|last)$/.test(p),z=N[x?"take"+(p=="last"?"Right":""):p],P=x||/^find/.test(p);z&&(N.prototype[p]=function(){var H=this.__wrapped__,X=x?[1]:arguments,oe=H instanceof Qt,we=X[0],ve=oe||Ot(H),De=function(Zt){var nn=z.apply(N,oc([Zt],X));return x&&qe?nn[0]:nn};ve&&y&&typeof we=="function"&&we.length!=1&&(oe=ve=!1);var qe=this.__chain__,at=!!this.__actions__.length,wt=P&&!qe,Ht=oe&&!at;if(!P&&ve){H=Ht?H:new Qt(this);var vt=d.apply(H,X);return vt.__actions__.push({func:ky,args:[De],thisArg:n}),new Ra(vt,qe)}return wt&&Ht?d.apply(this,X):(vt=this.thru(De),wt?x?vt.value()[0]:vt.value():vt)})}),Ia(["pop","push","shift","sort","splice","unshift"],function(d){var p=W1[d],y=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",x=/^(?:pop|shift)$/.test(d);N.prototype[d]=function(){var z=arguments;if(x&&!this.__chain__){var P=this.value();return p.apply(Ot(P)?P:[],z)}return this[y](function(H){return p.apply(Ot(H)?H:[],z)})}}),rs(Qt.prototype,function(d,p){var y=N[p];if(y){var x=y.name+"";gn.call(Ff,x)||(Ff[x]=[]),Ff[x].push({name:p,func:y})}}),Ff[hy(n,w).name]=[{name:"wrapper",func:n}],Qt.prototype.clone=tQ,Qt.prototype.reverse=nQ,Qt.prototype.value=rQ,N.prototype.at=$te,N.prototype.chain=Mte,N.prototype.commit=Ote,N.prototype.next=Nte,N.prototype.plant=Ite,N.prototype.reverse=Bte,N.prototype.toJSON=N.prototype.valueOf=N.prototype.value=Rte,N.prototype.first=N.prototype.head,i0&&(N.prototype[i0]=Lte),N},Tf=OJ();Lu?((Lu.exports=Tf)._=Tf,e3._=Tf):Br._=Tf}).call(Bi)})(dw,dw.exports);var A4t=dw.exports;const z4t=({callback:e,wait:t=300})=>{const n=F.useMemo(()=>{if(e)return A4t.debounce(e,t)},[e,t]);return F.useEffect(()=>()=>n&&n.cancel(),[n]),{debounce:n}},F4t=({onFocus:e,onChange:t,debounceChange:n=0})=>{const{debounce:r}=z4t({callback:t,wait:n});return F.useMemo(()=>[HG,a=>()=>{a.get(uw).markdownUpdated((o,s)=>{r==null||r(s)}),a.get(uw).focus(()=>{e==null||e()})}].flat(),[r,e])};class ga{constructor(t,n,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=n,this.end=r}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new ga(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}let au=class UG{constructor(t,n){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=n}range(t,n){return new UG(n,ga.range(this,t))}};class Oe{constructor(t,n){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r="KaTeX parse error: "+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=" at end of input: ":r+=" at position "+(i+1)+": ";var l=s.slice(i,a).replace(/[^]/g,"$&̲"),c;i>15?c="…"+s.slice(i-15,i):c=s.slice(0,i);var u;a+15<s.length?u=s.slice(a,a+15)+"…":u=s.slice(a),r+=c+l+u}var f=new Error(r);return f.name="ParseError",f.__proto__=Oe.prototype,f.position=i,i!=null&&a!=null&&(f.length=a-i),f.rawMessage=t,f}}Oe.prototype.__proto__=Error.prototype;var $4t=function(t,n){return t.indexOf(n)!==-1},M4t=function(t,n){return t===void 0?n:t},O4t=/([A-Z])/g,N4t=function(t){return t.replace(O4t,"-$1").toLowerCase()},L4t={"&":"&",">":">","<":"<",'"':""","'":"'"},I4t=/[&><"']/g;function B4t(e){return String(e).replace(I4t,t=>L4t[t])}var WG=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},R4t=function(t){var n=WG(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},P4t=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},j4t=function(t){var n=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(t);return n!=null?n[1]:"_relative"},Ct={contains:$4t,deflt:M4t,escape:B4t,hyphenate:N4t,getBaseElem:WG,isCharacterBox:R4t,protocolFromUrl:j4t},Mb={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function V4t(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class kD{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n in Mb)if(Mb.hasOwnProperty(n)){var r=Mb[n];this[n]=t[n]!==void 0?r.processor?r.processor(t[n]):t[n]:V4t(r)}}reportNonstrict(t,n,r){var i=this.strict;if(typeof i=="function"&&(i=i(t,n,r)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new Oe("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,r){var i=this.strict;if(typeof i=="function")try{i=i(t,n,r)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]")),!1)}isTrusted(t){t.url&&!t.protocol&&(t.protocol=Ct.protocolFromUrl(t.url));var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}}class yc{constructor(t,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=r}sup(){return ys[q4t[this.id]]}sub(){return ys[H4t[this.id]]}fracNum(){return ys[U4t[this.id]]}fracDen(){return ys[W4t[this.id]]}cramp(){return ys[G4t[this.id]]}text(){return ys[K4t[this.id]]}isTight(){return this.size>=2}}var wD=0,fw=1,Wh=2,$l=3,Eg=4,ao=5,xp=6,_i=7,ys=[new yc(wD,0,!1),new yc(fw,0,!0),new yc(Wh,1,!1),new yc($l,1,!0),new yc(Eg,2,!1),new yc(ao,2,!0),new yc(xp,3,!1),new yc(_i,3,!0)],q4t=[Eg,ao,Eg,ao,xp,_i,xp,_i],H4t=[ao,ao,ao,ao,_i,_i,_i,_i],U4t=[Wh,$l,Eg,ao,xp,_i,xp,_i],W4t=[$l,$l,ao,ao,_i,_i,_i,_i],G4t=[fw,fw,$l,$l,ao,ao,_i,_i],K4t=[wD,fw,Wh,$l,Wh,$l,Wh,$l],_t={DISPLAY:ys[wD],TEXT:ys[Wh],SCRIPT:ys[Eg],SCRIPTSCRIPT:ys[xp]},s7=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Y4t(e){for(var t=0;t<s7.length;t++)for(var n=s7[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}var Ob=[];s7.forEach(e=>e.blocks.forEach(t=>Ob.push(...t)));function GG(e){for(var t=0;t<Ob.length;t+=2)if(e>=Ob[t]&&e<=Ob[t+1])return!0;return!1}var Hf=80,Z4t=function(t,n){return"M95,"+(622+t+n)+` c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 @@ -343,7 +343,7 @@ c5.3,-9.3,12,-14,20,-14 H400000v`+(40+t)+`H845.2724 s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z -M`+(834+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Z4t=function(t,n){return"M263,"+(601+t+n)+`c0.7,0,18,39.7,52,119 +M`+(834+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},X4t=function(t,n){return"M263,"+(601+t+n)+`c0.7,0,18,39.7,52,119 c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 c340,-704.7,510.7,-1060.3,512,-1067 l`+t/2.084+" -"+t+` @@ -353,7 +353,7 @@ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5, c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z -M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},X4t=function(t,n){return"M983 "+(10+t+n)+` +M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},J4t=function(t,n){return"M983 "+(10+t+n)+` l`+t/3.13+" -"+t+` c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+` H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 @@ -362,7 +362,7 @@ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 c53.7,-170.3,84.5,-266.8,92.5,-289.5z -M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},J4t=function(t,n){return"M424,"+(2398+t+n)+` +M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Q4t=function(t,n){return"M424,"+(2398+t+n)+` c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 @@ -372,18 +372,18 @@ v`+(40+t)+`H1014.6 s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+n+` -h400000v`+(40+t)+"h-400000z"},Q4t=function(t,n){return"M473,"+(2713+t+n)+` +h400000v`+(40+t)+"h-400000z"},e6t=function(t,n){return"M473,"+(2713+t+n)+` c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+` c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7 s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, -606zM`+(1001+t)+" "+n+"h400000v"+(40+t)+"H1017.7z"},e6t=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},t6t=function(t,n,r){var i=r-54-n-t;return"M702 "+(t+n)+"H400000"+(40+t)+` +606zM`+(1001+t)+" "+n+"h400000v"+(40+t)+"H1017.7z"},t6t=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},n6t=function(t,n,r){var i=r-54-n-t;return"M702 "+(t+n)+"H400000"+(40+t)+` H742v`+i+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 -219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},n6t=function(t,n,r){n=1e3*n;var i="";switch(t){case"sqrtMain":i=Y4t(n,Hf);break;case"sqrtSize1":i=Z4t(n,Hf);break;case"sqrtSize2":i=X4t(n,Hf);break;case"sqrtSize3":i=J4t(n,Hf);break;case"sqrtSize4":i=Q4t(n,Hf);break;case"sqrtTall":i=t6t(n,Hf,r)}return i},r6t=function(t,n){switch(t){case"⎜":return"M291 0 H417 V"+n+" H291z M291 0 H417 V"+n+" H291z";case"∣":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z";case"∥":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z"+("M367 0 H410 V"+n+" H367z M367 0 H410 V"+n+" H367z");case"⎟":return"M457 0 H583 V"+n+" H457z M457 0 H583 V"+n+" H457z";case"⎢":return"M319 0 H403 V"+n+" H319z M319 0 H403 V"+n+" H319z";case"⎥":return"M263 0 H347 V"+n+" H263z M263 0 H347 V"+n+" H263z";case"⎪":return"M384 0 H504 V"+n+" H384z M384 0 H504 V"+n+" H384z";case"⏐":return"M312 0 H355 V"+n+" H312z M312 0 H355 V"+n+" H312z";case"‖":return"M257 0 H300 V"+n+" H257z M257 0 H300 V"+n+" H257z"+("M478 0 H521 V"+n+" H478z M478 0 H521 V"+n+" H478z");default:return""}},QN={doubleleftarrow:`M262 157 +219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},r6t=function(t,n,r){n=1e3*n;var i="";switch(t){case"sqrtMain":i=Z4t(n,Hf);break;case"sqrtSize1":i=X4t(n,Hf);break;case"sqrtSize2":i=J4t(n,Hf);break;case"sqrtSize3":i=Q4t(n,Hf);break;case"sqrtSize4":i=e6t(n,Hf);break;case"sqrtTall":i=n6t(n,Hf,r)}return i},i6t=function(t,n){switch(t){case"⎜":return"M291 0 H417 V"+n+" H291z M291 0 H417 V"+n+" H291z";case"∣":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z";case"∥":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z"+("M367 0 H410 V"+n+" H367z M367 0 H410 V"+n+" H367z");case"⎟":return"M457 0 H583 V"+n+" H457z M457 0 H583 V"+n+" H457z";case"⎢":return"M319 0 H403 V"+n+" H319z M319 0 H403 V"+n+" H319z";case"⎥":return"M263 0 H347 V"+n+" H263z M263 0 H347 V"+n+" H263z";case"⎪":return"M384 0 H504 V"+n+" H384z M384 0 H504 V"+n+" H384z";case"⏐":return"M312 0 H355 V"+n+" H312z M312 0 H355 V"+n+" H312z";case"‖":return"M257 0 H300 V"+n+" H257z M257 0 H300 V"+n+" H257z"+("M478 0 H521 V"+n+" H478z M478 0 H521 V"+n+" H478z");default:return""}},QN={doubleleftarrow:`M262 157 l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 @@ -558,7 +558,7 @@ M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z` c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z -M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},i6t=function(t,n){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84 +M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},a6t=function(t,n){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84 H403z M403 1759 V0 H319 V1759 v`+n+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v1759 H0 v84 H347z M347 1759 V0 H263 V1759 v`+n+" v1759 h84z";case"vert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15 c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15 @@ -586,39 +586,39 @@ c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6 c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, --470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class x1{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return Ct.contains(this.classes,t)}toNode(){for(var t=document.createDocumentFragment(),n=0;n<this.children.length;n++)t.appendChild(this.children[n].toNode());return t}toMarkup(){for(var t="",n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t}toText(){var t=n=>n.toText();return this.children.map(t).join("")}}var Cs={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},u_={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},eL={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function a6t(e,t){Cs[e]=t}function vD(e,t,n){if(!Cs[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),i=Cs[t][r];if(!i&&e[0]in eL&&(r=eL[e[0]].charCodeAt(0),i=Cs[t][r]),!i&&n==="text"&&WG(r)&&(i=Cs[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var J6={};function o6t(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!J6[t]){var n=J6[t]={cssEmPerMu:u_.quad[t]/18};for(var r in u_)u_.hasOwnProperty(r)&&(n[r]=u_[r][t])}return J6[t]}var s6t=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],tL=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],nL=function(t,n){return n.size<2?t:s6t[t-1][n.size-1]};class wl{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||wl.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=tL[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new wl(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:nL(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:tL[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=nL(wl.BASESIZE,t);return this.size===n&&this.textSize===wl.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==wl.BASESIZE?["sizing","reset-size"+this.size,"size"+wl.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=o6t(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}wl.BASESIZE=6;var l7={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},l6t={ex:!0,em:!0,mu:!0},GG=function(t){return typeof t!="string"&&(t=t.unit),t in l7||t in l6t||t==="ex"},Kn=function(t,n){var r;if(t.unit in l7)r=l7[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var i;if(n.style.isTight()?i=n.havingStyle(n.style.text()):i=n,t.unit==="ex")r=i.fontMetrics().xHeight;else if(t.unit==="em")r=i.fontMetrics().quad;else throw new Oe("Invalid unit: '"+t.unit+"'");i!==n&&(r*=i.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},Le=function(t){return+t.toFixed(4)+"em"},pu=function(t){return t.filter(n=>n).join(" ")},KG=function(t,n,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var i=n.getColor();i&&(this.style.color=i)}},YG=function(t){var n=document.createElement(t);n.className=pu(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&n.setAttribute(i,this.attributes[i]);for(var a=0;a<this.children.length;a++)n.appendChild(this.children[a].toNode());return n},ZG=function(t){var n="<"+t;this.classes.length&&(n+=' class="'+Ct.escape(pu(this.classes))+'"');var r="";for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=Ct.hyphenate(i)+":"+this.style[i]+";");r&&(n+=' style="'+Ct.escape(r)+'"');for(var a in this.attributes)this.attributes.hasOwnProperty(a)&&(n+=" "+a+'="'+Ct.escape(this.attributes[a])+'"');n+=">";for(var o=0;o<this.children.length;o++)n+=this.children[o].toMarkup();return n+="</"+t+">",n};class C1{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,KG.call(this,t,r,i),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return Ct.contains(this.classes,t)}toNode(){return YG.call(this,"span")}toMarkup(){return ZG.call(this,"span")}}class xD{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,KG.call(this,n,i),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return Ct.contains(this.classes,t)}toNode(){return YG.call(this,"a")}toMarkup(){return ZG.call(this,"a")}}class c6t{constructor(t,n,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=t,this.classes=["mord"],this.style=r}hasClass(t){return Ct.contains(this.classes,t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);return t}toMarkup(){var t="<img src='"+this.src+" 'alt='"+this.alt+"' ",n="";for(var r in this.style)this.style.hasOwnProperty(r)&&(n+=Ct.hyphenate(r)+":"+this.style[r]+";");return n&&(t+=' style="'+Ct.escape(n)+'"'),t+="'/>",t}}var u6t={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class go{constructor(t,n,r,i,a,o,s,l){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=t,this.height=n||0,this.depth=r||0,this.italic=i||0,this.skew=a||0,this.width=o||0,this.classes=s||[],this.style=l||{},this.maxFontSize=0;var c=K4t(this.text.charCodeAt(0));c&&this.classes.push(c+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=u6t[this.text])}hasClass(t){return Ct.contains(this.classes,t)}toNode(){var t=document.createTextNode(this.text),n=null;this.italic>0&&(n=document.createElement("span"),n.style.marginRight=Le(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=pu(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(n=n||document.createElement("span"),n.style[r]=this.style[r]);return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="<span";this.classes.length&&(t=!0,n+=' class="',n+=Ct.escape(pu(this.classes)),n+='"');var r="";this.italic>0&&(r+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=Ct.hyphenate(i)+":"+this.style[i]+";");r&&(t=!0,n+=' style="'+Ct.escape(r)+'"');var a=Ct.escape(this.text);return t?(n+=">",n+=a,n+="</span>",n):a}}class ql{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);for(var i=0;i<this.children.length;i++)n.appendChild(this.children[i].toNode());return n}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+"='"+this.attributes[n]+"'");t+=">";for(var r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t+="</svg>",t}}class mu{constructor(t,n){this.pathName=void 0,this.alternate=void 0,this.pathName=t,this.alternate=n}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"path");return this.alternate?n.setAttribute("d",this.alternate):n.setAttribute("d",QN[this.pathName]),n}toMarkup(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+QN[this.pathName]+"'/>"}}class c7{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t="<line";for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+"='"+this.attributes[n]+"'");return t+="/>",t}}function rL(e){if(e instanceof go)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function d6t(e){if(e instanceof C1)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var f6t={bin:1,close:1,inner:1,open:1,punct:1,rel:1},h6t={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},zn={math:{},text:{}};function v(e,t,n,r,i,a){zn[e][i]={font:t,group:n,replace:r},a&&r&&(zn[e][r]=zn[e][i])}var D="math",Te="text",M="main",q="ams",Vn="accent-token",Je="bin",Ei="close",Gp="inner",kt="mathord",_r="op-token",Oa="open",g2="punct",U="rel",Jl="spacing",te="textord";v(D,M,U,"≡","\\equiv",!0);v(D,M,U,"≺","\\prec",!0);v(D,M,U,"≻","\\succ",!0);v(D,M,U,"∼","\\sim",!0);v(D,M,U,"⊥","\\perp");v(D,M,U,"⪯","\\preceq",!0);v(D,M,U,"⪰","\\succeq",!0);v(D,M,U,"≃","\\simeq",!0);v(D,M,U,"∣","\\mid",!0);v(D,M,U,"≪","\\ll",!0);v(D,M,U,"≫","\\gg",!0);v(D,M,U,"≍","\\asymp",!0);v(D,M,U,"∥","\\parallel");v(D,M,U,"⋈","\\bowtie",!0);v(D,M,U,"⌣","\\smile",!0);v(D,M,U,"⊑","\\sqsubseteq",!0);v(D,M,U,"⊒","\\sqsupseteq",!0);v(D,M,U,"≐","\\doteq",!0);v(D,M,U,"⌢","\\frown",!0);v(D,M,U,"∋","\\ni",!0);v(D,M,U,"∝","\\propto",!0);v(D,M,U,"⊢","\\vdash",!0);v(D,M,U,"⊣","\\dashv",!0);v(D,M,U,"∋","\\owns");v(D,M,g2,".","\\ldotp");v(D,M,g2,"⋅","\\cdotp");v(D,M,te,"#","\\#");v(Te,M,te,"#","\\#");v(D,M,te,"&","\\&");v(Te,M,te,"&","\\&");v(D,M,te,"ℵ","\\aleph",!0);v(D,M,te,"∀","\\forall",!0);v(D,M,te,"ℏ","\\hbar",!0);v(D,M,te,"∃","\\exists",!0);v(D,M,te,"∇","\\nabla",!0);v(D,M,te,"♭","\\flat",!0);v(D,M,te,"ℓ","\\ell",!0);v(D,M,te,"♮","\\natural",!0);v(D,M,te,"♣","\\clubsuit",!0);v(D,M,te,"℘","\\wp",!0);v(D,M,te,"♯","\\sharp",!0);v(D,M,te,"♢","\\diamondsuit",!0);v(D,M,te,"ℜ","\\Re",!0);v(D,M,te,"♡","\\heartsuit",!0);v(D,M,te,"ℑ","\\Im",!0);v(D,M,te,"♠","\\spadesuit",!0);v(D,M,te,"§","\\S",!0);v(Te,M,te,"§","\\S");v(D,M,te,"¶","\\P",!0);v(Te,M,te,"¶","\\P");v(D,M,te,"†","\\dag");v(Te,M,te,"†","\\dag");v(Te,M,te,"†","\\textdagger");v(D,M,te,"‡","\\ddag");v(Te,M,te,"‡","\\ddag");v(Te,M,te,"‡","\\textdaggerdbl");v(D,M,Ei,"⎱","\\rmoustache",!0);v(D,M,Oa,"⎰","\\lmoustache",!0);v(D,M,Ei,"⟯","\\rgroup",!0);v(D,M,Oa,"⟮","\\lgroup",!0);v(D,M,Je,"∓","\\mp",!0);v(D,M,Je,"⊖","\\ominus",!0);v(D,M,Je,"⊎","\\uplus",!0);v(D,M,Je,"⊓","\\sqcap",!0);v(D,M,Je,"∗","\\ast");v(D,M,Je,"⊔","\\sqcup",!0);v(D,M,Je,"◯","\\bigcirc",!0);v(D,M,Je,"∙","\\bullet",!0);v(D,M,Je,"‡","\\ddagger");v(D,M,Je,"≀","\\wr",!0);v(D,M,Je,"⨿","\\amalg");v(D,M,Je,"&","\\And");v(D,M,U,"⟵","\\longleftarrow",!0);v(D,M,U,"⇐","\\Leftarrow",!0);v(D,M,U,"⟸","\\Longleftarrow",!0);v(D,M,U,"⟶","\\longrightarrow",!0);v(D,M,U,"⇒","\\Rightarrow",!0);v(D,M,U,"⟹","\\Longrightarrow",!0);v(D,M,U,"↔","\\leftrightarrow",!0);v(D,M,U,"⟷","\\longleftrightarrow",!0);v(D,M,U,"⇔","\\Leftrightarrow",!0);v(D,M,U,"⟺","\\Longleftrightarrow",!0);v(D,M,U,"↦","\\mapsto",!0);v(D,M,U,"⟼","\\longmapsto",!0);v(D,M,U,"↗","\\nearrow",!0);v(D,M,U,"↩","\\hookleftarrow",!0);v(D,M,U,"↪","\\hookrightarrow",!0);v(D,M,U,"↘","\\searrow",!0);v(D,M,U,"↼","\\leftharpoonup",!0);v(D,M,U,"⇀","\\rightharpoonup",!0);v(D,M,U,"↙","\\swarrow",!0);v(D,M,U,"↽","\\leftharpoondown",!0);v(D,M,U,"⇁","\\rightharpoondown",!0);v(D,M,U,"↖","\\nwarrow",!0);v(D,M,U,"⇌","\\rightleftharpoons",!0);v(D,q,U,"≮","\\nless",!0);v(D,q,U,"","\\@nleqslant");v(D,q,U,"","\\@nleqq");v(D,q,U,"⪇","\\lneq",!0);v(D,q,U,"≨","\\lneqq",!0);v(D,q,U,"","\\@lvertneqq");v(D,q,U,"⋦","\\lnsim",!0);v(D,q,U,"⪉","\\lnapprox",!0);v(D,q,U,"⊀","\\nprec",!0);v(D,q,U,"⋠","\\npreceq",!0);v(D,q,U,"⋨","\\precnsim",!0);v(D,q,U,"⪹","\\precnapprox",!0);v(D,q,U,"≁","\\nsim",!0);v(D,q,U,"","\\@nshortmid");v(D,q,U,"∤","\\nmid",!0);v(D,q,U,"⊬","\\nvdash",!0);v(D,q,U,"⊭","\\nvDash",!0);v(D,q,U,"⋪","\\ntriangleleft");v(D,q,U,"⋬","\\ntrianglelefteq",!0);v(D,q,U,"⊊","\\subsetneq",!0);v(D,q,U,"","\\@varsubsetneq");v(D,q,U,"⫋","\\subsetneqq",!0);v(D,q,U,"","\\@varsubsetneqq");v(D,q,U,"≯","\\ngtr",!0);v(D,q,U,"","\\@ngeqslant");v(D,q,U,"","\\@ngeqq");v(D,q,U,"⪈","\\gneq",!0);v(D,q,U,"≩","\\gneqq",!0);v(D,q,U,"","\\@gvertneqq");v(D,q,U,"⋧","\\gnsim",!0);v(D,q,U,"⪊","\\gnapprox",!0);v(D,q,U,"⊁","\\nsucc",!0);v(D,q,U,"⋡","\\nsucceq",!0);v(D,q,U,"⋩","\\succnsim",!0);v(D,q,U,"⪺","\\succnapprox",!0);v(D,q,U,"≆","\\ncong",!0);v(D,q,U,"","\\@nshortparallel");v(D,q,U,"∦","\\nparallel",!0);v(D,q,U,"⊯","\\nVDash",!0);v(D,q,U,"⋫","\\ntriangleright");v(D,q,U,"⋭","\\ntrianglerighteq",!0);v(D,q,U,"","\\@nsupseteqq");v(D,q,U,"⊋","\\supsetneq",!0);v(D,q,U,"","\\@varsupsetneq");v(D,q,U,"⫌","\\supsetneqq",!0);v(D,q,U,"","\\@varsupsetneqq");v(D,q,U,"⊮","\\nVdash",!0);v(D,q,U,"⪵","\\precneqq",!0);v(D,q,U,"⪶","\\succneqq",!0);v(D,q,U,"","\\@nsubseteqq");v(D,q,Je,"⊴","\\unlhd");v(D,q,Je,"⊵","\\unrhd");v(D,q,U,"↚","\\nleftarrow",!0);v(D,q,U,"↛","\\nrightarrow",!0);v(D,q,U,"⇍","\\nLeftarrow",!0);v(D,q,U,"⇏","\\nRightarrow",!0);v(D,q,U,"↮","\\nleftrightarrow",!0);v(D,q,U,"⇎","\\nLeftrightarrow",!0);v(D,q,U,"△","\\vartriangle");v(D,q,te,"ℏ","\\hslash");v(D,q,te,"▽","\\triangledown");v(D,q,te,"◊","\\lozenge");v(D,q,te,"Ⓢ","\\circledS");v(D,q,te,"®","\\circledR");v(Te,q,te,"®","\\circledR");v(D,q,te,"∡","\\measuredangle",!0);v(D,q,te,"∄","\\nexists");v(D,q,te,"℧","\\mho");v(D,q,te,"Ⅎ","\\Finv",!0);v(D,q,te,"⅁","\\Game",!0);v(D,q,te,"‵","\\backprime");v(D,q,te,"▲","\\blacktriangle");v(D,q,te,"▼","\\blacktriangledown");v(D,q,te,"■","\\blacksquare");v(D,q,te,"⧫","\\blacklozenge");v(D,q,te,"★","\\bigstar");v(D,q,te,"∢","\\sphericalangle",!0);v(D,q,te,"∁","\\complement",!0);v(D,q,te,"ð","\\eth",!0);v(Te,M,te,"ð","ð");v(D,q,te,"╱","\\diagup");v(D,q,te,"╲","\\diagdown");v(D,q,te,"□","\\square");v(D,q,te,"□","\\Box");v(D,q,te,"◊","\\Diamond");v(D,q,te,"¥","\\yen",!0);v(Te,q,te,"¥","\\yen",!0);v(D,q,te,"✓","\\checkmark",!0);v(Te,q,te,"✓","\\checkmark");v(D,q,te,"ℶ","\\beth",!0);v(D,q,te,"ℸ","\\daleth",!0);v(D,q,te,"ℷ","\\gimel",!0);v(D,q,te,"ϝ","\\digamma",!0);v(D,q,te,"ϰ","\\varkappa");v(D,q,Oa,"┌","\\@ulcorner",!0);v(D,q,Ei,"┐","\\@urcorner",!0);v(D,q,Oa,"└","\\@llcorner",!0);v(D,q,Ei,"┘","\\@lrcorner",!0);v(D,q,U,"≦","\\leqq",!0);v(D,q,U,"⩽","\\leqslant",!0);v(D,q,U,"⪕","\\eqslantless",!0);v(D,q,U,"≲","\\lesssim",!0);v(D,q,U,"⪅","\\lessapprox",!0);v(D,q,U,"≊","\\approxeq",!0);v(D,q,Je,"⋖","\\lessdot");v(D,q,U,"⋘","\\lll",!0);v(D,q,U,"≶","\\lessgtr",!0);v(D,q,U,"⋚","\\lesseqgtr",!0);v(D,q,U,"⪋","\\lesseqqgtr",!0);v(D,q,U,"≑","\\doteqdot");v(D,q,U,"≓","\\risingdotseq",!0);v(D,q,U,"≒","\\fallingdotseq",!0);v(D,q,U,"∽","\\backsim",!0);v(D,q,U,"⋍","\\backsimeq",!0);v(D,q,U,"⫅","\\subseteqq",!0);v(D,q,U,"⋐","\\Subset",!0);v(D,q,U,"⊏","\\sqsubset",!0);v(D,q,U,"≼","\\preccurlyeq",!0);v(D,q,U,"⋞","\\curlyeqprec",!0);v(D,q,U,"≾","\\precsim",!0);v(D,q,U,"⪷","\\precapprox",!0);v(D,q,U,"⊲","\\vartriangleleft");v(D,q,U,"⊴","\\trianglelefteq");v(D,q,U,"⊨","\\vDash",!0);v(D,q,U,"⊪","\\Vvdash",!0);v(D,q,U,"⌣","\\smallsmile");v(D,q,U,"⌢","\\smallfrown");v(D,q,U,"≏","\\bumpeq",!0);v(D,q,U,"≎","\\Bumpeq",!0);v(D,q,U,"≧","\\geqq",!0);v(D,q,U,"⩾","\\geqslant",!0);v(D,q,U,"⪖","\\eqslantgtr",!0);v(D,q,U,"≳","\\gtrsim",!0);v(D,q,U,"⪆","\\gtrapprox",!0);v(D,q,Je,"⋗","\\gtrdot");v(D,q,U,"⋙","\\ggg",!0);v(D,q,U,"≷","\\gtrless",!0);v(D,q,U,"⋛","\\gtreqless",!0);v(D,q,U,"⪌","\\gtreqqless",!0);v(D,q,U,"≖","\\eqcirc",!0);v(D,q,U,"≗","\\circeq",!0);v(D,q,U,"≜","\\triangleq",!0);v(D,q,U,"∼","\\thicksim");v(D,q,U,"≈","\\thickapprox");v(D,q,U,"⫆","\\supseteqq",!0);v(D,q,U,"⋑","\\Supset",!0);v(D,q,U,"⊐","\\sqsupset",!0);v(D,q,U,"≽","\\succcurlyeq",!0);v(D,q,U,"⋟","\\curlyeqsucc",!0);v(D,q,U,"≿","\\succsim",!0);v(D,q,U,"⪸","\\succapprox",!0);v(D,q,U,"⊳","\\vartriangleright");v(D,q,U,"⊵","\\trianglerighteq");v(D,q,U,"⊩","\\Vdash",!0);v(D,q,U,"∣","\\shortmid");v(D,q,U,"∥","\\shortparallel");v(D,q,U,"≬","\\between",!0);v(D,q,U,"⋔","\\pitchfork",!0);v(D,q,U,"∝","\\varpropto");v(D,q,U,"◀","\\blacktriangleleft");v(D,q,U,"∴","\\therefore",!0);v(D,q,U,"∍","\\backepsilon");v(D,q,U,"▶","\\blacktriangleright");v(D,q,U,"∵","\\because",!0);v(D,q,U,"⋘","\\llless");v(D,q,U,"⋙","\\gggtr");v(D,q,Je,"⊲","\\lhd");v(D,q,Je,"⊳","\\rhd");v(D,q,U,"≂","\\eqsim",!0);v(D,M,U,"⋈","\\Join");v(D,q,U,"≑","\\Doteq",!0);v(D,q,Je,"∔","\\dotplus",!0);v(D,q,Je,"∖","\\smallsetminus");v(D,q,Je,"⋒","\\Cap",!0);v(D,q,Je,"⋓","\\Cup",!0);v(D,q,Je,"⩞","\\doublebarwedge",!0);v(D,q,Je,"⊟","\\boxminus",!0);v(D,q,Je,"⊞","\\boxplus",!0);v(D,q,Je,"⋇","\\divideontimes",!0);v(D,q,Je,"⋉","\\ltimes",!0);v(D,q,Je,"⋊","\\rtimes",!0);v(D,q,Je,"⋋","\\leftthreetimes",!0);v(D,q,Je,"⋌","\\rightthreetimes",!0);v(D,q,Je,"⋏","\\curlywedge",!0);v(D,q,Je,"⋎","\\curlyvee",!0);v(D,q,Je,"⊝","\\circleddash",!0);v(D,q,Je,"⊛","\\circledast",!0);v(D,q,Je,"⋅","\\centerdot");v(D,q,Je,"⊺","\\intercal",!0);v(D,q,Je,"⋒","\\doublecap");v(D,q,Je,"⋓","\\doublecup");v(D,q,Je,"⊠","\\boxtimes",!0);v(D,q,U,"⇢","\\dashrightarrow",!0);v(D,q,U,"⇠","\\dashleftarrow",!0);v(D,q,U,"⇇","\\leftleftarrows",!0);v(D,q,U,"⇆","\\leftrightarrows",!0);v(D,q,U,"⇚","\\Lleftarrow",!0);v(D,q,U,"↞","\\twoheadleftarrow",!0);v(D,q,U,"↢","\\leftarrowtail",!0);v(D,q,U,"↫","\\looparrowleft",!0);v(D,q,U,"⇋","\\leftrightharpoons",!0);v(D,q,U,"↶","\\curvearrowleft",!0);v(D,q,U,"↺","\\circlearrowleft",!0);v(D,q,U,"↰","\\Lsh",!0);v(D,q,U,"⇈","\\upuparrows",!0);v(D,q,U,"↿","\\upharpoonleft",!0);v(D,q,U,"⇃","\\downharpoonleft",!0);v(D,M,U,"⊶","\\origof",!0);v(D,M,U,"⊷","\\imageof",!0);v(D,q,U,"⊸","\\multimap",!0);v(D,q,U,"↭","\\leftrightsquigarrow",!0);v(D,q,U,"⇉","\\rightrightarrows",!0);v(D,q,U,"⇄","\\rightleftarrows",!0);v(D,q,U,"↠","\\twoheadrightarrow",!0);v(D,q,U,"↣","\\rightarrowtail",!0);v(D,q,U,"↬","\\looparrowright",!0);v(D,q,U,"↷","\\curvearrowright",!0);v(D,q,U,"↻","\\circlearrowright",!0);v(D,q,U,"↱","\\Rsh",!0);v(D,q,U,"⇊","\\downdownarrows",!0);v(D,q,U,"↾","\\upharpoonright",!0);v(D,q,U,"⇂","\\downharpoonright",!0);v(D,q,U,"⇝","\\rightsquigarrow",!0);v(D,q,U,"⇝","\\leadsto");v(D,q,U,"⇛","\\Rrightarrow",!0);v(D,q,U,"↾","\\restriction");v(D,M,te,"‘","`");v(D,M,te,"$","\\$");v(Te,M,te,"$","\\$");v(Te,M,te,"$","\\textdollar");v(D,M,te,"%","\\%");v(Te,M,te,"%","\\%");v(D,M,te,"_","\\_");v(Te,M,te,"_","\\_");v(Te,M,te,"_","\\textunderscore");v(D,M,te,"∠","\\angle",!0);v(D,M,te,"∞","\\infty",!0);v(D,M,te,"′","\\prime");v(D,M,te,"△","\\triangle");v(D,M,te,"Γ","\\Gamma",!0);v(D,M,te,"Δ","\\Delta",!0);v(D,M,te,"Θ","\\Theta",!0);v(D,M,te,"Λ","\\Lambda",!0);v(D,M,te,"Ξ","\\Xi",!0);v(D,M,te,"Π","\\Pi",!0);v(D,M,te,"Σ","\\Sigma",!0);v(D,M,te,"Υ","\\Upsilon",!0);v(D,M,te,"Φ","\\Phi",!0);v(D,M,te,"Ψ","\\Psi",!0);v(D,M,te,"Ω","\\Omega",!0);v(D,M,te,"A","Α");v(D,M,te,"B","Β");v(D,M,te,"E","Ε");v(D,M,te,"Z","Ζ");v(D,M,te,"H","Η");v(D,M,te,"I","Ι");v(D,M,te,"K","Κ");v(D,M,te,"M","Μ");v(D,M,te,"N","Ν");v(D,M,te,"O","Ο");v(D,M,te,"P","Ρ");v(D,M,te,"T","Τ");v(D,M,te,"X","Χ");v(D,M,te,"¬","\\neg",!0);v(D,M,te,"¬","\\lnot");v(D,M,te,"⊤","\\top");v(D,M,te,"⊥","\\bot");v(D,M,te,"∅","\\emptyset");v(D,q,te,"∅","\\varnothing");v(D,M,kt,"α","\\alpha",!0);v(D,M,kt,"β","\\beta",!0);v(D,M,kt,"γ","\\gamma",!0);v(D,M,kt,"δ","\\delta",!0);v(D,M,kt,"ϵ","\\epsilon",!0);v(D,M,kt,"ζ","\\zeta",!0);v(D,M,kt,"η","\\eta",!0);v(D,M,kt,"θ","\\theta",!0);v(D,M,kt,"ι","\\iota",!0);v(D,M,kt,"κ","\\kappa",!0);v(D,M,kt,"λ","\\lambda",!0);v(D,M,kt,"μ","\\mu",!0);v(D,M,kt,"ν","\\nu",!0);v(D,M,kt,"ξ","\\xi",!0);v(D,M,kt,"ο","\\omicron",!0);v(D,M,kt,"π","\\pi",!0);v(D,M,kt,"ρ","\\rho",!0);v(D,M,kt,"σ","\\sigma",!0);v(D,M,kt,"τ","\\tau",!0);v(D,M,kt,"υ","\\upsilon",!0);v(D,M,kt,"ϕ","\\phi",!0);v(D,M,kt,"χ","\\chi",!0);v(D,M,kt,"ψ","\\psi",!0);v(D,M,kt,"ω","\\omega",!0);v(D,M,kt,"ε","\\varepsilon",!0);v(D,M,kt,"ϑ","\\vartheta",!0);v(D,M,kt,"ϖ","\\varpi",!0);v(D,M,kt,"ϱ","\\varrho",!0);v(D,M,kt,"ς","\\varsigma",!0);v(D,M,kt,"φ","\\varphi",!0);v(D,M,Je,"∗","*",!0);v(D,M,Je,"+","+");v(D,M,Je,"−","-",!0);v(D,M,Je,"⋅","\\cdot",!0);v(D,M,Je,"∘","\\circ",!0);v(D,M,Je,"÷","\\div",!0);v(D,M,Je,"±","\\pm",!0);v(D,M,Je,"×","\\times",!0);v(D,M,Je,"∩","\\cap",!0);v(D,M,Je,"∪","\\cup",!0);v(D,M,Je,"∖","\\setminus",!0);v(D,M,Je,"∧","\\land");v(D,M,Je,"∨","\\lor");v(D,M,Je,"∧","\\wedge",!0);v(D,M,Je,"∨","\\vee",!0);v(D,M,te,"√","\\surd");v(D,M,Oa,"⟨","\\langle",!0);v(D,M,Oa,"∣","\\lvert");v(D,M,Oa,"∥","\\lVert");v(D,M,Ei,"?","?");v(D,M,Ei,"!","!");v(D,M,Ei,"⟩","\\rangle",!0);v(D,M,Ei,"∣","\\rvert");v(D,M,Ei,"∥","\\rVert");v(D,M,U,"=","=");v(D,M,U,":",":");v(D,M,U,"≈","\\approx",!0);v(D,M,U,"≅","\\cong",!0);v(D,M,U,"≥","\\ge");v(D,M,U,"≥","\\geq",!0);v(D,M,U,"←","\\gets");v(D,M,U,">","\\gt",!0);v(D,M,U,"∈","\\in",!0);v(D,M,U,"","\\@not");v(D,M,U,"⊂","\\subset",!0);v(D,M,U,"⊃","\\supset",!0);v(D,M,U,"⊆","\\subseteq",!0);v(D,M,U,"⊇","\\supseteq",!0);v(D,q,U,"⊈","\\nsubseteq",!0);v(D,q,U,"⊉","\\nsupseteq",!0);v(D,M,U,"⊨","\\models");v(D,M,U,"←","\\leftarrow",!0);v(D,M,U,"≤","\\le");v(D,M,U,"≤","\\leq",!0);v(D,M,U,"<","\\lt",!0);v(D,M,U,"→","\\rightarrow",!0);v(D,M,U,"→","\\to");v(D,q,U,"≱","\\ngeq",!0);v(D,q,U,"≰","\\nleq",!0);v(D,M,Jl," ","\\ ");v(D,M,Jl," ","\\space");v(D,M,Jl," ","\\nobreakspace");v(Te,M,Jl," ","\\ ");v(Te,M,Jl," "," ");v(Te,M,Jl," ","\\space");v(Te,M,Jl," ","\\nobreakspace");v(D,M,Jl,null,"\\nobreak");v(D,M,Jl,null,"\\allowbreak");v(D,M,g2,",",",");v(D,M,g2,";",";");v(D,q,Je,"⊼","\\barwedge",!0);v(D,q,Je,"⊻","\\veebar",!0);v(D,M,Je,"⊙","\\odot",!0);v(D,M,Je,"⊕","\\oplus",!0);v(D,M,Je,"⊗","\\otimes",!0);v(D,M,te,"∂","\\partial",!0);v(D,M,Je,"⊘","\\oslash",!0);v(D,q,Je,"⊚","\\circledcirc",!0);v(D,q,Je,"⊡","\\boxdot",!0);v(D,M,Je,"△","\\bigtriangleup");v(D,M,Je,"▽","\\bigtriangledown");v(D,M,Je,"†","\\dagger");v(D,M,Je,"⋄","\\diamond");v(D,M,Je,"⋆","\\star");v(D,M,Je,"◃","\\triangleleft");v(D,M,Je,"▹","\\triangleright");v(D,M,Oa,"{","\\{");v(Te,M,te,"{","\\{");v(Te,M,te,"{","\\textbraceleft");v(D,M,Ei,"}","\\}");v(Te,M,te,"}","\\}");v(Te,M,te,"}","\\textbraceright");v(D,M,Oa,"{","\\lbrace");v(D,M,Ei,"}","\\rbrace");v(D,M,Oa,"[","\\lbrack",!0);v(Te,M,te,"[","\\lbrack",!0);v(D,M,Ei,"]","\\rbrack",!0);v(Te,M,te,"]","\\rbrack",!0);v(D,M,Oa,"(","\\lparen",!0);v(D,M,Ei,")","\\rparen",!0);v(Te,M,te,"<","\\textless",!0);v(Te,M,te,">","\\textgreater",!0);v(D,M,Oa,"⌊","\\lfloor",!0);v(D,M,Ei,"⌋","\\rfloor",!0);v(D,M,Oa,"⌈","\\lceil",!0);v(D,M,Ei,"⌉","\\rceil",!0);v(D,M,te,"\\","\\backslash");v(D,M,te,"∣","|");v(D,M,te,"∣","\\vert");v(Te,M,te,"|","\\textbar",!0);v(D,M,te,"∥","\\|");v(D,M,te,"∥","\\Vert");v(Te,M,te,"∥","\\textbardbl");v(Te,M,te,"~","\\textasciitilde");v(Te,M,te,"\\","\\textbackslash");v(Te,M,te,"^","\\textasciicircum");v(D,M,U,"↑","\\uparrow",!0);v(D,M,U,"⇑","\\Uparrow",!0);v(D,M,U,"↓","\\downarrow",!0);v(D,M,U,"⇓","\\Downarrow",!0);v(D,M,U,"↕","\\updownarrow",!0);v(D,M,U,"⇕","\\Updownarrow",!0);v(D,M,_r,"∐","\\coprod");v(D,M,_r,"⋁","\\bigvee");v(D,M,_r,"⋀","\\bigwedge");v(D,M,_r,"⨄","\\biguplus");v(D,M,_r,"⋂","\\bigcap");v(D,M,_r,"⋃","\\bigcup");v(D,M,_r,"∫","\\int");v(D,M,_r,"∫","\\intop");v(D,M,_r,"∬","\\iint");v(D,M,_r,"∭","\\iiint");v(D,M,_r,"∏","\\prod");v(D,M,_r,"∑","\\sum");v(D,M,_r,"⨂","\\bigotimes");v(D,M,_r,"⨁","\\bigoplus");v(D,M,_r,"⨀","\\bigodot");v(D,M,_r,"∮","\\oint");v(D,M,_r,"∯","\\oiint");v(D,M,_r,"∰","\\oiiint");v(D,M,_r,"⨆","\\bigsqcup");v(D,M,_r,"∫","\\smallint");v(Te,M,Gp,"…","\\textellipsis");v(D,M,Gp,"…","\\mathellipsis");v(Te,M,Gp,"…","\\ldots",!0);v(D,M,Gp,"…","\\ldots",!0);v(D,M,Gp,"⋯","\\@cdots",!0);v(D,M,Gp,"⋱","\\ddots",!0);v(D,M,te,"⋮","\\varvdots");v(D,M,Vn,"ˊ","\\acute");v(D,M,Vn,"ˋ","\\grave");v(D,M,Vn,"¨","\\ddot");v(D,M,Vn,"~","\\tilde");v(D,M,Vn,"ˉ","\\bar");v(D,M,Vn,"˘","\\breve");v(D,M,Vn,"ˇ","\\check");v(D,M,Vn,"^","\\hat");v(D,M,Vn,"⃗","\\vec");v(D,M,Vn,"˙","\\dot");v(D,M,Vn,"˚","\\mathring");v(D,M,kt,"","\\@imath");v(D,M,kt,"","\\@jmath");v(D,M,te,"ı","ı");v(D,M,te,"ȷ","ȷ");v(Te,M,te,"ı","\\i",!0);v(Te,M,te,"ȷ","\\j",!0);v(Te,M,te,"ß","\\ss",!0);v(Te,M,te,"æ","\\ae",!0);v(Te,M,te,"œ","\\oe",!0);v(Te,M,te,"ø","\\o",!0);v(Te,M,te,"Æ","\\AE",!0);v(Te,M,te,"Œ","\\OE",!0);v(Te,M,te,"Ø","\\O",!0);v(Te,M,Vn,"ˊ","\\'");v(Te,M,Vn,"ˋ","\\`");v(Te,M,Vn,"ˆ","\\^");v(Te,M,Vn,"˜","\\~");v(Te,M,Vn,"ˉ","\\=");v(Te,M,Vn,"˘","\\u");v(Te,M,Vn,"˙","\\.");v(Te,M,Vn,"¸","\\c");v(Te,M,Vn,"˚","\\r");v(Te,M,Vn,"ˇ","\\v");v(Te,M,Vn,"¨",'\\"');v(Te,M,Vn,"˝","\\H");v(Te,M,Vn,"◯","\\textcircled");var XG={"--":!0,"---":!0,"``":!0,"''":!0};v(Te,M,te,"–","--",!0);v(Te,M,te,"–","\\textendash");v(Te,M,te,"—","---",!0);v(Te,M,te,"—","\\textemdash");v(Te,M,te,"‘","`",!0);v(Te,M,te,"‘","\\textquoteleft");v(Te,M,te,"’","'",!0);v(Te,M,te,"’","\\textquoteright");v(Te,M,te,"“","``",!0);v(Te,M,te,"“","\\textquotedblleft");v(Te,M,te,"”","''",!0);v(Te,M,te,"”","\\textquotedblright");v(D,M,te,"°","\\degree",!0);v(Te,M,te,"°","\\degree");v(Te,M,te,"°","\\textdegree",!0);v(D,M,te,"£","\\pounds");v(D,M,te,"£","\\mathsterling",!0);v(Te,M,te,"£","\\pounds");v(Te,M,te,"£","\\textsterling",!0);v(D,q,te,"✠","\\maltese");v(Te,q,te,"✠","\\maltese");var iL='0123456789/@."';for(var Q6=0;Q6<iL.length;Q6++){var aL=iL.charAt(Q6);v(D,M,te,aL,aL)}var oL='0123456789!@*()-=+";:?/.,';for(var e5=0;e5<oL.length;e5++){var sL=oL.charAt(e5);v(Te,M,te,sL,sL)}var hw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var t5=0;t5<hw.length;t5++){var d_=hw.charAt(t5);v(D,M,kt,d_,d_),v(Te,M,te,d_,d_)}v(D,q,te,"C","ℂ");v(Te,q,te,"C","ℂ");v(D,q,te,"H","ℍ");v(Te,q,te,"H","ℍ");v(D,q,te,"N","ℕ");v(Te,q,te,"N","ℕ");v(D,q,te,"P","ℙ");v(Te,q,te,"P","ℙ");v(D,q,te,"Q","ℚ");v(Te,q,te,"Q","ℚ");v(D,q,te,"R","ℝ");v(Te,q,te,"R","ℝ");v(D,q,te,"Z","ℤ");v(Te,q,te,"Z","ℤ");v(D,M,kt,"h","ℎ");v(Te,M,kt,"h","ℎ");var At="";for(var Mi=0;Mi<hw.length;Mi++){var dr=hw.charAt(Mi);At=String.fromCharCode(55349,56320+Mi),v(D,M,kt,dr,At),v(Te,M,te,dr,At),At=String.fromCharCode(55349,56372+Mi),v(D,M,kt,dr,At),v(Te,M,te,dr,At),At=String.fromCharCode(55349,56424+Mi),v(D,M,kt,dr,At),v(Te,M,te,dr,At),At=String.fromCharCode(55349,56580+Mi),v(D,M,kt,dr,At),v(Te,M,te,dr,At),At=String.fromCharCode(55349,56736+Mi),v(D,M,kt,dr,At),v(Te,M,te,dr,At),At=String.fromCharCode(55349,56788+Mi),v(D,M,kt,dr,At),v(Te,M,te,dr,At),At=String.fromCharCode(55349,56840+Mi),v(D,M,kt,dr,At),v(Te,M,te,dr,At),At=String.fromCharCode(55349,56944+Mi),v(D,M,kt,dr,At),v(Te,M,te,dr,At),Mi<26&&(At=String.fromCharCode(55349,56632+Mi),v(D,M,kt,dr,At),v(Te,M,te,dr,At),At=String.fromCharCode(55349,56476+Mi),v(D,M,kt,dr,At),v(Te,M,te,dr,At))}At=String.fromCharCode(55349,56668);v(D,M,kt,"k",At);v(Te,M,te,"k",At);for(var Yu=0;Yu<10;Yu++){var _c=Yu.toString();At=String.fromCharCode(55349,57294+Yu),v(D,M,kt,_c,At),v(Te,M,te,_c,At),At=String.fromCharCode(55349,57314+Yu),v(D,M,kt,_c,At),v(Te,M,te,_c,At),At=String.fromCharCode(55349,57324+Yu),v(D,M,kt,_c,At),v(Te,M,te,_c,At),At=String.fromCharCode(55349,57334+Yu),v(D,M,kt,_c,At),v(Te,M,te,_c,At)}var u7="ÐÞþ";for(var n5=0;n5<u7.length;n5++){var f_=u7.charAt(n5);v(D,M,kt,f_,f_),v(Te,M,te,f_,f_)}var h_=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["","",""],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],lL=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],p6t=function(t,n){var r=t.charCodeAt(0),i=t.charCodeAt(1),a=(r-55296)*1024+(i-56320)+65536,o=n==="math"?0:1;if(119808<=a&&a<120484){var s=Math.floor((a-119808)/26);return[h_[s][2],h_[s][o]]}else if(120782<=a&&a<=120831){var l=Math.floor((a-120782)/10);return[lL[l][2],lL[l][o]]}else{if(a===120485||a===120486)return[h_[0][2],h_[0][o]];if(120486<a&&a<120782)return["",""];throw new Oe("Unsupported character: "+t)}},y2=function(t,n,r){return zn[r][t]&&zn[r][t].replace&&(t=zn[r][t].replace),{value:t,metrics:vD(t,n,r)}},Io=function(t,n,r,i,a){var o=y2(t,n,r),s=o.metrics;t=o.value;var l;if(s){var c=s.italic;(r==="text"||i&&i.font==="mathit")&&(c=0),l=new go(t,s.height,s.depth,c,s.skew,s.width,a)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+n+"' and mode '"+r+"'")),l=new go(t,0,0,0,0,0,a);if(i){l.maxFontSize=i.sizeMultiplier,i.style.isTight()&&l.classes.push("mtight");var u=i.getColor();u&&(l.style.color=u)}return l},m6t=function(t,n,r,i){return i===void 0&&(i=[]),r.font==="boldsymbol"&&y2(t,"Main-Bold",n).metrics?Io(t,"Main-Bold",n,r,i.concat(["mathbf"])):t==="\\"||zn[n][t].font==="main"?Io(t,"Main-Regular",n,r,i):Io(t,"AMS-Regular",n,r,i.concat(["amsrm"]))},g6t=function(t,n,r,i,a){return a!=="textord"&&y2(t,"Math-BoldItalic",n).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},y6t=function(t,n,r){var i=t.mode,a=t.text,o=["mord"],s=i==="math"||i==="text"&&n.font,l=s?n.font:n.fontFamily;if(a.charCodeAt(0)===55349){var[c,u]=p6t(a,i);return Io(a,c,i,n,o.concat(u))}else if(l){var f,h;if(l==="boldsymbol"){var m=g6t(a,i,n,o,r);f=m.fontName,h=[m.fontClass]}else s?(f=eK[l].fontName,h=[l]):(f=p_(l,n.fontWeight,n.fontShape),h=[l,n.fontWeight,n.fontShape]);if(y2(a,f,i).metrics)return Io(a,f,i,n,o.concat(h));if(XG.hasOwnProperty(a)&&f.slice(0,10)==="Typewriter"){for(var g=[],b=0;b<a.length;b++)g.push(Io(a[b],f,i,n,o.concat(h)));return QG(g)}}if(r==="mathord")return Io(a,"Math-Italic",i,n,o.concat(["mathnormal"]));if(r==="textord"){var C=zn[i][a]&&zn[i][a].font;if(C==="ams"){var w=p_("amsrm",n.fontWeight,n.fontShape);return Io(a,w,i,n,o.concat("amsrm",n.fontWeight,n.fontShape))}else if(C==="main"||!C){var k=p_("textrm",n.fontWeight,n.fontShape);return Io(a,k,i,n,o.concat(n.fontWeight,n.fontShape))}else{var S=p_(C,n.fontWeight,n.fontShape);return Io(a,S,i,n,o.concat(S,n.fontWeight,n.fontShape))}}else throw new Error("unexpected type: "+r+" in makeOrd")},_6t=(e,t)=>{if(pu(e.classes)!==pu(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},b6t=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof go&&r instanceof go&&_6t(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e},CD=function(t){for(var n=0,r=0,i=0,a=0;a<t.children.length;a++){var o=t.children[a];o.height>n&&(n=o.height),o.depth>r&&(r=o.depth),o.maxFontSize>i&&(i=o.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=i},Ni=function(t,n,r,i){var a=new C1(t,n,r,i);return CD(a),a},JG=(e,t,n,r)=>new C1(e,t,n,r),k6t=function(t,n,r){var i=Ni([t],[],n);return i.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),i.style.borderBottomWidth=Le(i.height),i.maxFontSize=1,i},w6t=function(t,n,r,i){var a=new xD(t,n,r,i);return CD(a),a},QG=function(t){var n=new x1(t);return CD(n),n},v6t=function(t,n){return t instanceof x1?Ni([],[t],n):t},x6t=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],i=-n[0].shift-n[0].elem.depth,a=i,o=1;o<n.length;o++){var s=-n[o].shift-a-n[o].elem.depth,l=s-(n[o-1].elem.height+n[o-1].elem.depth);a=a+s,r.push({type:"kern",size:l}),r.push(n[o])}return{children:r,depth:i}}var c;if(t.positionType==="top"){for(var u=t.positionData,f=0;f<t.children.length;f++){var h=t.children[f];u-=h.type==="kern"?h.size:h.elem.height+h.elem.depth}c=u}else if(t.positionType==="bottom")c=-t.positionData;else{var m=t.children[0];if(m.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")c=-m.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")c=-m.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:c}},C6t=function(t,n){for(var{children:r,depth:i}=x6t(t),a=0,o=0;o<r.length;o++){var s=r[o];if(s.type==="elem"){var l=s.elem;a=Math.max(a,l.maxFontSize,l.height)}}a+=2;var c=Ni(["pstrut"],[]);c.style.height=Le(a);for(var u=[],f=i,h=i,m=i,g=0;g<r.length;g++){var b=r[g];if(b.type==="kern")m+=b.size;else{var C=b.elem,w=b.wrapperClasses||[],k=b.wrapperStyle||{},S=Ni(w,[c,C],void 0,k);S.style.top=Le(-a-m-C.depth),b.marginLeft&&(S.style.marginLeft=b.marginLeft),b.marginRight&&(S.style.marginRight=b.marginRight),u.push(S),m+=C.height+C.depth}f=Math.min(f,m),h=Math.max(h,m)}var E=Ni(["vlist"],u);E.style.height=Le(h);var A;if(f<0){var _=Ni([],[]),T=Ni(["vlist"],[_]);T.style.height=Le(-f);var $=Ni(["vlist-s"],[new go("​")]);A=[Ni(["vlist-r"],[E,$]),Ni(["vlist-r"],[T])]}else A=[Ni(["vlist-r"],[E])];var R=Ni(["vlist-t"],A);return A.length===2&&R.classes.push("vlist-t2"),R.height=h,R.depth=-f,R},S6t=(e,t)=>{var n=Ni(["mspace"],[],t),r=Kn(e,t);return n.style.marginRight=Le(r),n},p_=function(t,n,r){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var a;return n==="textbf"&&r==="textit"?a="BoldItalic":n==="textbf"?a="Bold":n==="textit"?a="Italic":a="Regular",i+"-"+a},eK={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},tK={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},D6t=function(t,n){var[r,i,a]=tK[t],o=new mu(r),s=new ql([o],{width:Le(i),height:Le(a),style:"width:"+Le(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),l=JG(["overlay"],[s],n);return l.height=a,l.style.height=Le(a),l.style.width=Le(i),l},le={fontMap:eK,makeSymbol:Io,mathsym:m6t,makeSpan:Ni,makeSvgSpan:JG,makeLineSpan:k6t,makeAnchor:w6t,makeFragment:QG,wrapFragment:v6t,makeVList:C6t,makeOrd:y6t,makeGlue:S6t,staticSvg:D6t,svgData:tK,tryCombineChars:b6t},Un={number:3,unit:"mu"},Zu={number:4,unit:"mu"},cl={number:5,unit:"mu"},E6t={mord:{mop:Un,mbin:Zu,mrel:cl,minner:Un},mop:{mord:Un,mop:Un,mrel:cl,minner:Un},mbin:{mord:Zu,mop:Zu,mopen:Zu,minner:Zu},mrel:{mord:cl,mop:cl,mopen:cl,minner:cl},mopen:{},mclose:{mop:Un,mbin:Zu,mrel:cl,minner:Un},mpunct:{mord:Un,mop:Un,mrel:cl,mopen:Un,mclose:Un,mpunct:Un,minner:Un},minner:{mord:Un,mop:Un,mbin:Zu,mrel:cl,mopen:Un,mpunct:Un,minner:Un}},T6t={mord:{mop:Un},mop:{mord:Un,mop:Un},mbin:{},mrel:{},mopen:{},mclose:{mop:Un},mpunct:{},minner:{mop:Un}},nK={},pw={},mw={};function Ke(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},l=0;l<n.length;++l)nK[n[l]]=s;t&&(a&&(pw[t]=a),o&&(mw[t]=o))}function yf(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;Ke({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:r})}var gw=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},lr=function(t){return t.type==="ordgroup"?t.body:[t]},Hl=le.makeSpan,A6t=["leftmost","mbin","mopen","mrel","mop","mpunct"],z6t=["rightmost","mrel","mclose","mpunct"],F6t={display:_t.DISPLAY,text:_t.TEXT,script:_t.SCRIPT,scriptscript:_t.SCRIPTSCRIPT},$6t={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Dr=function(t,n,r,i){i===void 0&&(i=[null,null]);for(var a=[],o=0;o<t.length;o++){var s=sn(t[o],n);if(s instanceof x1){var l=s.children;a.push(...l)}else a.push(s)}if(le.tryCombineChars(a),!r)return a;var c=n;if(t.length===1){var u=t[0];u.type==="sizing"?c=n.havingSize(u.size):u.type==="styling"&&(c=n.havingStyle(F6t[u.style]))}var f=Hl([i[0]||"leftmost"],[],n),h=Hl([i[1]||"rightmost"],[],n),m=r==="root";return cL(a,(g,b)=>{var C=b.classes[0],w=g.classes[0];C==="mbin"&&Ct.contains(z6t,w)?b.classes[0]="mord":w==="mbin"&&Ct.contains(A6t,C)&&(g.classes[0]="mord")},{node:f},h,m),cL(a,(g,b)=>{var C=d7(b),w=d7(g),k=C&&w?g.hasClass("mtight")?T6t[C][w]:E6t[C][w]:null;if(k)return le.makeGlue(k,c)},{node:f},h,m),a},cL=function e(t,n,r,i,a){i&&t.push(i);for(var o=0;o<t.length;o++){var s=t[o],l=rK(s);if(l){e(l.children,n,r,null,a);continue}var c=!s.hasClass("mspace");if(c){var u=n(s,r.node);u&&(r.insertAfter?r.insertAfter(u):(t.unshift(u),o++))}c?r.node=s:a&&s.hasClass("newline")&&(r.node=Hl(["leftmost"])),r.insertAfter=(f=>h=>{t.splice(f+1,0,h),o++})(o)}i&&t.pop()},rK=function(t){return t instanceof x1||t instanceof xD||t instanceof C1&&t.hasClass("enclosing")?t:null},M6t=function e(t,n){var r=rK(t);if(r){var i=r.children;if(i.length){if(n==="right")return e(i[i.length-1],"right");if(n==="left")return e(i[0],"left")}}return t},d7=function(t,n){return t?(n&&(t=M6t(t,n)),$6t[t.classes[0]]||null):null},Tg=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return Hl(n.concat(r))},sn=function(t,n,r){if(!t)return Hl();if(pw[t.type]){var i=pw[t.type](t,n);if(r&&n.size!==r.size){i=Hl(n.sizingClasses(r),[i],n);var a=n.sizeMultiplier/r.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new Oe("Got group of unknown type: '"+t.type+"'")};function m_(e,t){var n=Hl(["base"],e,t),r=Hl(["strut"]);return r.style.height=Le(n.height+n.depth),n.depth&&(r.style.verticalAlign=Le(-n.depth)),n.children.unshift(r),n}function f7(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=Dr(e,t,"root"),i;r.length===2&&r[1].hasClass("tag")&&(i=r.pop());for(var a=[],o=[],s=0;s<r.length;s++)if(o.push(r[s]),r[s].hasClass("mbin")||r[s].hasClass("mrel")||r[s].hasClass("allowbreak")){for(var l=!1;s<r.length-1&&r[s+1].hasClass("mspace")&&!r[s+1].hasClass("newline");)s++,o.push(r[s]),r[s].hasClass("nobreak")&&(l=!0);l||(a.push(m_(o,t)),o=[])}else r[s].hasClass("newline")&&(o.pop(),o.length>0&&(a.push(m_(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(m_(o,t));var c;n?(c=m_(Dr(n,t,!0)),c.classes=["tag"],a.push(c)):i&&a.push(i);var u=Hl(["katex-html"],a);if(u.setAttribute("aria-hidden","true"),c){var f=c.children[0];f.style.height=Le(u.height+u.depth),u.depth&&(f.style.verticalAlign=Le(-u.depth))}return u}function iK(e){return new x1(e)}let ro=class{constructor(t,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=pu(this.classes));for(var r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t}toMarkup(){var t="<"+this.type;for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="',t+=Ct.escape(this.attributes[n]),t+='"');this.classes.length>0&&(t+=' class ="'+Ct.escape(pu(this.classes))+'"'),t+=">";for(var r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}};class Pm{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return Ct.escape(this.toText())}toText(){return this.text}}class O6t{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",Le(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Le(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var Fe={MathNode:ro,TextNode:Pm,SpaceNode:O6t,newDocumentFragment:iK},yo=function(t,n,r){return zn[n][t]&&zn[n][t].replace&&t.charCodeAt(0)!==55349&&!(XG.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=zn[n][t].replace),new Fe.TextNode(t)},SD=function(t){return t.length===1?t[0]:new Fe.MathNode("mrow",t)},DD=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var i=t.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var a=t.text;if(Ct.contains(["\\imath","\\jmath"],a))return null;zn[i][a]&&zn[i][a].replace&&(a=zn[i][a].replace);var o=le.fontMap[r].fontName;return vD(a,o,i)?le.fontMap[r].variant:null},na=function(t,n,r){if(t.length===1){var i=Sn(t[0],n);return r&&i instanceof ro&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],o,s=0;s<t.length;s++){var l=Sn(t[s],n);if(l instanceof ro&&o instanceof ro){if(l.type==="mtext"&&o.type==="mtext"&&l.getAttribute("mathvariant")===o.getAttribute("mathvariant")){o.children.push(...l.children);continue}else if(l.type==="mn"&&o.type==="mn"){o.children.push(...l.children);continue}else if(l.type==="mi"&&l.children.length===1&&o.type==="mn"){var c=l.children[0];if(c instanceof Pm&&c.text==="."){o.children.push(...l.children);continue}}else if(o.type==="mi"&&o.children.length===1){var u=o.children[0];if(u instanceof Pm&&u.text==="̸"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var f=l.children[0];f instanceof Pm&&f.text.length>0&&(f.text=f.text.slice(0,1)+"̸"+f.text.slice(1),a.pop())}}}a.push(l),o=l}return a},gu=function(t,n,r){return SD(na(t,n,r))},Sn=function(t,n){if(!t)return new Fe.MathNode("mrow");if(mw[t.type]){var r=mw[t.type](t,n);return r}else throw new Oe("Got group of unknown type: '"+t.type+"'")};function uL(e,t,n,r,i){var a=na(e,n),o;a.length===1&&a[0]instanceof ro&&Ct.contains(["mrow","mtable"],a[0].type)?o=a[0]:o=new Fe.MathNode("mrow",a);var s=new Fe.MathNode("annotation",[new Fe.TextNode(t)]);s.setAttribute("encoding","application/x-tex");var l=new Fe.MathNode("semantics",[o,s]),c=new Fe.MathNode("math",[l]);c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&c.setAttribute("display","block");var u=i?"katex":"katex-mathml";return le.makeSpan([u],[c])}var aK=function(t){return new wl({style:t.displayMode?_t.DISPLAY:_t.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},oK=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=le.makeSpan(r,[t])}return t},N6t=function(t,n,r){var i=aK(r),a;if(r.output==="mathml")return uL(t,n,i,r.displayMode,!0);if(r.output==="html"){var o=f7(t,i);a=le.makeSpan(["katex"],[o])}else{var s=uL(t,n,i,r.displayMode,!1),l=f7(t,i);a=le.makeSpan(["katex"],[s,l])}return oK(a,r)},L6t=function(t,n,r){var i=aK(r),a=f7(t,i),o=le.makeSpan(["katex"],[a]);return oK(o,r)},I6t={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},B6t=function(t){var n=new Fe.MathNode("mo",[new Fe.TextNode(I6t[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},R6t={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},P6t=function(t){return t.type==="ordgroup"?t.body.length:1},j6t=function(t,n){function r(){var s=4e5,l=t.label.slice(1);if(Ct.contains(["widehat","widecheck","widetilde","utilde"],l)){var c=t,u=P6t(c.base),f,h,m;if(u>5)l==="widehat"||l==="widecheck"?(f=420,s=2364,m=.42,h=l+"4"):(f=312,s=2340,m=.34,h="tilde4");else{var g=[1,1,2,2,3,3][u];l==="widehat"||l==="widecheck"?(s=[0,1062,2364,2364,2364][g],f=[0,239,300,360,420][g],m=[0,.24,.3,.3,.36,.42][g],h=l+g):(s=[0,600,1033,2339,2340][g],f=[0,260,286,306,312][g],m=[0,.26,.286,.3,.306,.34][g],h="tilde"+g)}var b=new mu(h),C=new ql([b],{width:"100%",height:Le(m),viewBox:"0 0 "+s+" "+f,preserveAspectRatio:"none"});return{span:le.makeSvgSpan([],[C],n),minWidth:0,height:m}}else{var w=[],k=R6t[l],[S,E,A]=k,_=A/1e3,T=S.length,$,R;if(T===1){var O=k[3];$=["hide-tail"],R=[O]}else if(T===2)$=["halfarrow-left","halfarrow-right"],R=["xMinYMin","xMaxYMin"];else if(T===3)$=["brace-left","brace-center","brace-right"],R=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support - `+T+" children.");for(var G=0;G<T;G++){var V=new mu(S[G]),Z=new ql([V],{width:"400em",height:Le(_),viewBox:"0 0 "+s+" "+A,preserveAspectRatio:R[G]+" slice"}),W=le.makeSvgSpan([$[G]],[Z],n);if(T===1)return{span:W,minWidth:E,height:_};W.style.height=Le(_),w.push(W)}return{span:le.makeSpan(["stretchy"],w,n),minWidth:E,height:_}}}var{span:i,minWidth:a,height:o}=r();return i.height=o,i.style.height=Le(o),a>0&&(i.style.minWidth=Le(a)),i},V6t=function(t,n,r,i,a){var o,s=t.height+t.depth+r+i;if(/fbox|color|angl/.test(n)){if(o=le.makeSpan(["stretchy",n],[],a),n==="fbox"){var l=a.color&&a.getColor();l&&(o.style.borderColor=l)}}else{var c=[];/^[bx]cancel$/.test(n)&&c.push(new c7({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&c.push(new c7({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var u=new ql(c,{width:"100%",height:Le(s)});o=le.makeSvgSpan([],[u],a)}return o.height=s,o.style.height=Le(s),o},Ul={encloseSpan:V6t,mathMLnode:B6t,svgSpan:j6t};function qt(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function ED(e){var t=_2(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function _2(e){return e&&(e.type==="atom"||h6t.hasOwnProperty(e.type))?e:null}var TD=(e,t)=>{var n,r,i;e&&e.type==="supsub"?(r=qt(e.base,"accent"),n=r.base,e.base=n,i=d6t(sn(e,t)),e.base=r):(r=qt(e,"accent"),n=r.base);var a=sn(n,t.havingCrampedStyle()),o=r.isShifty&&Ct.isCharacterBox(n),s=0;if(o){var l=Ct.getBaseElem(n),c=sn(l,t.havingCrampedStyle());s=rL(c).skew}var u=r.label==="\\c",f=u?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),h;if(r.isStretchy)h=Ul.svgSpan(r,t),h=le.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:h,wrapperClasses:["svg-align"],wrapperStyle:s>0?{width:"calc(100% - "+Le(2*s)+")",marginLeft:Le(2*s)}:void 0}]},t);else{var m,g;r.label==="\\vec"?(m=le.staticSvg("vec",t),g=le.svgData.vec[1]):(m=le.makeOrd({mode:r.mode,text:r.label},t,"textord"),m=rL(m),m.italic=0,g=m.width,u&&(f+=m.depth)),h=le.makeSpan(["accent-body"],[m]);var b=r.label==="\\textcircled";b&&(h.classes.push("accent-full"),f=a.height);var C=s;b||(C-=g/2),h.style.left=Le(C),r.label==="\\textcircled"&&(h.style.top=".2em"),h=le.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-f},{type:"elem",elem:h}]},t)}var w=le.makeSpan(["mord","accent"],[h],t);return i?(i.children[0]=w,i.height=Math.max(w.height,i.height),i.classes[0]="mord",i):w},sK=(e,t)=>{var n=e.isStretchy?Ul.mathMLnode(e.label):new Fe.MathNode("mo",[yo(e.label,e.mode)]),r=new Fe.MathNode("mover",[Sn(e.base,t),n]);return r.setAttribute("accent","true"),r},q6t=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));Ke({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=gw(t[0]),r=!q6t.test(e.funcName),i=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:TD,mathmlBuilder:sK});Ke({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:TD,mathmlBuilder:sK});Ke({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=sn(e.base,t),r=Ul.svgSpan(e,t),i=e.label==="\\utilde"?.12:0,a=le.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]},t);return le.makeSpan(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var n=Ul.mathMLnode(e.label),r=new Fe.MathNode("munder",[Sn(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var g_=e=>{var t=new Fe.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};Ke({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:"xArrow",mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=le.wrapFragment(sn(e.body,r,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var o;e.below&&(r=t.havingStyle(n.sub()),o=le.wrapFragment(sn(e.below,r,t),t),o.classes.push(a+"-arrow-pad"));var s=Ul.svgSpan(e,t),l=-t.fontMetrics().axisHeight+.5*s.height,c=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(c-=i.depth);var u;if(o){var f=-t.fontMetrics().axisHeight+o.height+.5*s.height+.111;u=le.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:c},{type:"elem",elem:s,shift:l},{type:"elem",elem:o,shift:f}]},t)}else u=le.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:c},{type:"elem",elem:s,shift:l}]},t);return u.children[0].children[0].children[1].classes.push("svg-align"),le.makeSpan(["mrel","x-arrow"],[u],t)},mathmlBuilder(e,t){var n=Ul.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var i=g_(Sn(e.body,t));if(e.below){var a=g_(Sn(e.below,t));r=new Fe.MathNode("munderover",[n,a,i])}else r=new Fe.MathNode("mover",[n,i])}else if(e.below){var o=g_(Sn(e.below,t));r=new Fe.MathNode("munder",[n,o])}else r=g_(),r=new Fe.MathNode("mover",[n,r]);return r}});var H6t=le.makeSpan;function lK(e,t){var n=Dr(e.body,t,!0);return H6t([e.mclass],n,t)}function cK(e,t){var n,r=na(e.body,t);return e.mclass==="minner"?n=new Fe.MathNode("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new Fe.MathNode("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new Fe.MathNode("mo",r),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}Ke({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:lr(i),isCharacterBox:Ct.isCharacterBox(i)}},htmlBuilder:lK,mathmlBuilder:cK});var b2=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};Ke({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:b2(t[0]),body:lr(t[1]),isCharacterBox:Ct.isCharacterBox(t[1])}}});Ke({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],o;r!=="\\stackrel"?o=b2(i):o="mrel";var s={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:lr(i)},l={type:"supsub",mode:a.mode,base:s,sup:r==="\\underset"?null:a,sub:r==="\\underset"?a:null};return{type:"mclass",mode:n.mode,mclass:o,body:[l],isCharacterBox:Ct.isCharacterBox(l)}},htmlBuilder:lK,mathmlBuilder:cK});Ke({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:b2(t[0]),body:lr(t[0])}},htmlBuilder(e,t){var n=Dr(e.body,t,!0),r=le.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=na(e.body,t),r=new Fe.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var U6t={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},dL=()=>({type:"styling",body:[],mode:"math",style:"display"}),fL=e=>e.type==="textord"&&e.text==="@",W6t=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function G6t(e,t,n){var r=U6t[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=n.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:r,mode:"math",family:"rel"},o=n.callFunction("\\Big",[a],[]),s=n.callFunction("\\\\cdright",[t[1]],[]),l={type:"ordgroup",mode:"math",body:[i,o,s]};return n.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var c={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[c],[])}default:return{type:"textord",text:" ",mode:"math"}}}function K6t(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new Oe("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],i=[r],a=0;a<t.length;a++){for(var o=t[a],s=dL(),l=0;l<o.length;l++)if(!fL(o[l]))s.body.push(o[l]);else{r.push(s),l+=1;var c=ED(o[l]).text,u=new Array(2);if(u[0]={type:"ordgroup",mode:"math",body:[]},u[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(c)>-1))if("<>AV".indexOf(c)>-1)for(var f=0;f<2;f++){for(var h=!0,m=l+1;m<o.length;m++){if(W6t(o[m],c)){h=!1,l=m;break}if(fL(o[m]))throw new Oe("Missing a "+c+" character to complete a CD arrow.",o[m]);u[f].body.push(o[m])}if(h)throw new Oe("Missing a "+c+" character to complete a CD arrow.",o[l])}else throw new Oe('Expected one of "<>AV=|." after @',o[l]);var g=G6t(c,u,e),b={type:"styling",body:[g],mode:"math",style:"display"};r.push(b),s=dL()}a%2===0?r.push(s):r.shift(),r=[],i.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var C=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:C,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}Ke({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=le.wrapFragment(sn(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=Le(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new Fe.MathNode("mrow",[Sn(e.label,t)]);return n=new Fe.MathNode("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new Fe.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});Ke({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=le.wrapFragment(sn(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new Fe.MathNode("mrow",[Sn(e.fragment,t)])}});Ke({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=qt(t[0],"ordgroup"),i=r.body,a="",o=0;o<i.length;o++){var s=qt(i[o],"textord");a+=s.text}var l=parseInt(a),c;if(isNaN(l))throw new Oe("\\@char has non-numeric argument "+a);if(l<0||l>=1114111)throw new Oe("\\@char with invalid code point "+a);return l<=65535?c=String.fromCharCode(l):(l-=65536,c=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:n.mode,text:c}}});var uK=(e,t)=>{var n=Dr(e.body,t.withColor(e.color),!1);return le.makeFragment(n)},dK=(e,t)=>{var n=na(e.body,t.withColor(e.color)),r=new Fe.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};Ke({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=qt(t[0],"color-token").color,i=t[1];return{type:"color",mode:n.mode,color:r,body:lr(i)}},htmlBuilder:uK,mathmlBuilder:dK});Ke({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=qt(t[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var a=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:a}},htmlBuilder:uK,mathmlBuilder:dK});Ke({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:a,size:i&&qt(i,"size").value}},htmlBuilder(e,t){var n=le.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=Le(Kn(e.size,t)))),n},mathmlBuilder(e,t){var n=new Fe.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",Le(Kn(e.size,t)))),n}});var h7={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},fK=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Oe("Expected a control sequence",e);return t},Y6t=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},hK=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i==null&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};Ke({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(h7[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=h7[r.text]),qt(t.parseFunction(),"internal");throw new Oe("Invalid token after macro prefix",r)}});Ke({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new Oe("Expected a control sequence",r);for(var a=0,o,s=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){o=t.gullet.future(),s[a].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new Oe('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==a+1)throw new Oe('Argument number "'+r.text+'" out of order');a++,s.push([])}else{if(r.text==="EOF")throw new Oe("Expected a macro definition");s[a].push(r.text)}var{tokens:l}=t.gullet.consumeArg();return o&&l.unshift(o),(n==="\\edef"||n==="\\xdef")&&(l=t.gullet.expandTokens(l),l.reverse()),t.gullet.macros.set(i,{tokens:l,numArgs:a,delimiters:s},n===h7[n]),{type:"internal",mode:t.mode}}});Ke({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=fK(t.gullet.popToken());t.gullet.consumeSpaces();var i=Y6t(t);return hK(t,r,i,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});Ke({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=fK(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return hK(t,r,a,n==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var lm=function(t,n,r){var i=zn.math[t]&&zn.math[t].replace,a=vD(i||t,n,r);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return a},AD=function(t,n,r,i){var a=r.havingBaseStyle(n),o=le.makeSpan(i.concat(a.sizingClasses(r)),[t],r),s=a.sizeMultiplier/r.sizeMultiplier;return o.height*=s,o.depth*=s,o.maxFontSize=a.sizeMultiplier,o},pK=function(t,n,r){var i=n.havingBaseStyle(r),a=(1-n.sizeMultiplier/i.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Le(a),t.height-=a,t.depth+=a},Z6t=function(t,n,r,i,a,o){var s=le.makeSymbol(t,"Main-Regular",a,i),l=AD(s,n,i,o);return r&&pK(l,i,n),l},X6t=function(t,n,r,i){return le.makeSymbol(t,"Size"+n+"-Regular",r,i)},mK=function(t,n,r,i,a,o){var s=X6t(t,n,a,i),l=AD(le.makeSpan(["delimsizing","size"+n],[s],i),_t.TEXT,i,o);return r&&pK(l,i,_t.TEXT),l},r5=function(t,n,r){var i;n==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=le.makeSpan(["delimsizinginner",i],[le.makeSpan([],[le.makeSymbol(t,n,r)])]);return{type:"elem",elem:a}},i5=function(t,n,r){var i=Cs["Size4-Regular"][t.charCodeAt(0)]?Cs["Size4-Regular"][t.charCodeAt(0)][4]:Cs["Size1-Regular"][t.charCodeAt(0)][4],a=new mu("inner",r6t(t,Math.round(1e3*n))),o=new ql([a],{width:Le(i),height:Le(n),style:"width:"+Le(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),s=le.makeSvgSpan([],[o],r);return s.height=n,s.style.height=Le(n),s.style.width=Le(i),{type:"elem",elem:s}},p7=.008,y_={type:"kern",size:-1*p7},J6t=["|","\\lvert","\\rvert","\\vert"],Q6t=["\\|","\\lVert","\\rVert","\\Vert"],gK=function(t,n,r,i,a,o){var s,l,c,u,f="",h=0;s=c=u=t,l=null;var m="Size1-Regular";t==="\\uparrow"?c=u="⏐":t==="\\Uparrow"?c=u="‖":t==="\\downarrow"?s=c="⏐":t==="\\Downarrow"?s=c="‖":t==="\\updownarrow"?(s="\\uparrow",c="⏐",u="\\downarrow"):t==="\\Updownarrow"?(s="\\Uparrow",c="‖",u="\\Downarrow"):Ct.contains(J6t,t)?(c="∣",f="vert",h=333):Ct.contains(Q6t,t)?(c="∥",f="doublevert",h=556):t==="["||t==="\\lbrack"?(s="⎡",c="⎢",u="⎣",m="Size4-Regular",f="lbrack",h=667):t==="]"||t==="\\rbrack"?(s="⎤",c="⎥",u="⎦",m="Size4-Regular",f="rbrack",h=667):t==="\\lfloor"||t==="⌊"?(c=s="⎢",u="⎣",m="Size4-Regular",f="lfloor",h=667):t==="\\lceil"||t==="⌈"?(s="⎡",c=u="⎢",m="Size4-Regular",f="lceil",h=667):t==="\\rfloor"||t==="⌋"?(c=s="⎥",u="⎦",m="Size4-Regular",f="rfloor",h=667):t==="\\rceil"||t==="⌉"?(s="⎤",c=u="⎥",m="Size4-Regular",f="rceil",h=667):t==="("||t==="\\lparen"?(s="⎛",c="⎜",u="⎝",m="Size4-Regular",f="lparen",h=875):t===")"||t==="\\rparen"?(s="⎞",c="⎟",u="⎠",m="Size4-Regular",f="rparen",h=875):t==="\\{"||t==="\\lbrace"?(s="⎧",l="⎨",u="⎩",c="⎪",m="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(s="⎫",l="⎬",u="⎭",c="⎪",m="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(s="⎧",u="⎩",c="⎪",m="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(s="⎫",u="⎭",c="⎪",m="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(s="⎧",u="⎭",c="⎪",m="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(s="⎫",u="⎩",c="⎪",m="Size4-Regular");var g=lm(s,m,a),b=g.height+g.depth,C=lm(c,m,a),w=C.height+C.depth,k=lm(u,m,a),S=k.height+k.depth,E=0,A=1;if(l!==null){var _=lm(l,m,a);E=_.height+_.depth,A=2}var T=b+S+E,$=Math.max(0,Math.ceil((n-T)/(A*w))),R=T+$*A*w,O=i.fontMetrics().axisHeight;r&&(O*=i.sizeMultiplier);var G=R/2-O,V=[];if(f.length>0){var Z=R-b-S,W=Math.round(R*1e3),Y=i6t(f,Math.round(Z*1e3)),fe=new mu(f,Y),ae=(h/1e3).toFixed(3)+"em",Q=(W/1e3).toFixed(3)+"em",ce=new ql([fe],{width:ae,height:Q,viewBox:"0 0 "+h+" "+W}),L=le.makeSvgSpan([],[ce],i);L.height=W/1e3,L.style.width=ae,L.style.height=Q,V.push({type:"elem",elem:L})}else{if(V.push(r5(u,m,a)),V.push(y_),l===null){var de=R-b-S+2*p7;V.push(i5(c,de,i))}else{var ue=(R-b-S-E)/2+2*p7;V.push(i5(c,ue,i)),V.push(y_),V.push(r5(l,m,a)),V.push(y_),V.push(i5(c,ue,i))}V.push(y_),V.push(r5(s,m,a))}var I=i.havingBaseStyle(_t.TEXT),be=le.makeVList({positionType:"bottom",positionData:G,children:V},I);return AD(le.makeSpan(["delimsizing","mult"],[be],I),_t.TEXT,i,o)},a5=80,o5=.08,s5=function(t,n,r,i,a){var o=n6t(t,i,r),s=new mu(t,o),l=new ql([s],{width:"400em",height:Le(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return le.makeSvgSpan(["hide-tail"],[l],a)},e5t=function(t,n){var r=n.havingBaseSizing(),i=kK("\\surd",t*r.sizeMultiplier,bK,r),a=r.sizeMultiplier,o=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),s,l=0,c=0,u=0,f;return i.type==="small"?(u=1e3+1e3*o+a5,t<1?a=1:t<1.4&&(a=.7),l=(1+o+o5)/a,c=(1+o)/a,s=s5("sqrtMain",l,u,o,n),s.style.minWidth="0.853em",f=.833/a):i.type==="large"?(u=(1e3+a5)*jm[i.size],c=(jm[i.size]+o)/a,l=(jm[i.size]+o+o5)/a,s=s5("sqrtSize"+i.size,l,u,o,n),s.style.minWidth="1.02em",f=1/a):(l=t+o+o5,c=t+o,u=Math.floor(1e3*t+o)+a5,s=s5("sqrtTall",l,u,o,n),s.style.minWidth="0.742em",f=1.056),s.height=c,s.style.height=Le(l),{span:s,advanceWidth:f,ruleWidth:(n.fontMetrics().sqrtRuleThickness+o)*a}},yK=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],t5t=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],_K=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],jm=[0,1.2,1.8,2.4,3],n5t=function(t,n,r,i,a){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),Ct.contains(yK,t)||Ct.contains(_K,t))return mK(t,n,!1,r,i,a);if(Ct.contains(t5t,t))return gK(t,jm[n],!1,r,i,a);throw new Oe("Illegal delimiter: '"+t+"'")},r5t=[{type:"small",style:_t.SCRIPTSCRIPT},{type:"small",style:_t.SCRIPT},{type:"small",style:_t.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],i5t=[{type:"small",style:_t.SCRIPTSCRIPT},{type:"small",style:_t.SCRIPT},{type:"small",style:_t.TEXT},{type:"stack"}],bK=[{type:"small",style:_t.SCRIPTSCRIPT},{type:"small",style:_t.SCRIPT},{type:"small",style:_t.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],a5t=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},kK=function(t,n,r,i){for(var a=Math.min(2,3-i.style.size),o=a;o<r.length&&r[o].type!=="stack";o++){var s=lm(t,a5t(r[o]),"math"),l=s.height+s.depth;if(r[o].type==="small"){var c=i.havingBaseStyle(r[o].style);l*=c.sizeMultiplier}if(l>n)return r[o]}return r[r.length-1]},wK=function(t,n,r,i,a,o){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var s;Ct.contains(_K,t)?s=r5t:Ct.contains(yK,t)?s=bK:s=i5t;var l=kK(t,n,s,i);return l.type==="small"?Z6t(t,l.style,r,i,a,o):l.type==="large"?mK(t,l.size,r,i,a,o):gK(t,n,r,i,a,o)},o5t=function(t,n,r,i,a,o){var s=i.fontMetrics().axisHeight*i.sizeMultiplier,l=901,c=5/i.fontMetrics().ptPerEm,u=Math.max(n-s,r+s),f=Math.max(u/500*l,2*u-c);return wK(t,f,!0,i,a,o)},Ml={sqrtImage:e5t,sizedDelim:n5t,sizeToMaxHeight:jm,customSizedDelim:wK,leftRightDelim:o5t},hL={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},s5t=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function k2(e,t){var n=_2(e);if(n&&Ct.contains(s5t,n.text))return n;throw n?new Oe("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new Oe("Invalid delimiter type '"+e.type+"'",e)}Ke({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=k2(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:hL[e.funcName].size,mclass:hL[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?le.makeSpan([e.mclass]):Ml.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(yo(e.delim,e.mode));var n=new Fe.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=Le(Ml.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function pL(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Ke({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new Oe("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:k2(t[0],e).text,color:n}}});Ke({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=k2(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var a=qt(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{pL(e);for(var n=Dr(e.body,t,!0,["mopen","mclose"]),r=0,i=0,a=!1,o=0;o<n.length;o++)n[o].isMiddle?a=!0:(r=Math.max(n[o].height,r),i=Math.max(n[o].depth,i));r*=t.sizeMultiplier,i*=t.sizeMultiplier;var s;if(e.left==="."?s=Tg(t,["mopen"]):s=Ml.leftRightDelim(e.left,r,i,t,e.mode,["mopen"]),n.unshift(s),a)for(var l=1;l<n.length;l++){var c=n[l],u=c.isMiddle;u&&(n[l]=Ml.leftRightDelim(u.delim,r,i,u.options,e.mode,[]))}var f;if(e.right===".")f=Tg(t,["mclose"]);else{var h=e.rightColor?t.withColor(e.rightColor):t;f=Ml.leftRightDelim(e.right,r,i,h,e.mode,["mclose"])}return n.push(f),le.makeSpan(["minner"],n,t)},mathmlBuilder:(e,t)=>{pL(e);var n=na(e.body,t);if(e.left!=="."){var r=new Fe.MathNode("mo",[yo(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var i=new Fe.MathNode("mo",[yo(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),n.push(i)}return SD(n)}});Ke({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=k2(t[0],e);if(!e.parser.leftrightDepth)throw new Oe("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=Tg(t,[]);else{n=Ml.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?yo("|","text"):yo(e.delim,e.mode),r=new Fe.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var zD=(e,t)=>{var n=le.wrapFragment(sn(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o=0,s=Ct.isCharacterBox(e.body);if(r==="sout")a=le.makeSpan(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var l=Kn({number:.6,unit:"pt"},t),c=Kn({number:.35,unit:"ex"},t),u=t.havingBaseSizing();i=i/u.sizeMultiplier;var f=n.height+n.depth+l+c;n.style.paddingLeft=Le(f/2+l);var h=Math.floor(1e3*f*i),m=e6t(h),g=new ql([new mu("phase",m)],{width:"400em",height:Le(h/1e3),viewBox:"0 0 400000 "+h,preserveAspectRatio:"xMinYMin slice"});a=le.makeSvgSpan(["hide-tail"],[g],t),a.style.height=Le(f),o=n.depth+l+c}else{/cancel/.test(r)?s||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var b=0,C=0,w=0;/box/.test(r)?(w=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),b=t.fontMetrics().fboxsep+(r==="colorbox"?0:w),C=b):r==="angl"?(w=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),b=4*w,C=Math.max(0,.25-n.depth)):(b=s?.2:0,C=b),a=Ul.encloseSpan(n,r,b,C,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle="solid",a.style.borderWidth=Le(w)):r==="angl"&&w!==.049&&(a.style.borderTopWidth=Le(w),a.style.borderRightWidth=Le(w)),o=n.depth+C,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var k;if(e.backgroundColor)k=le.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:o},{type:"elem",elem:n,shift:0}]},t);else{var S=/cancel|phase/.test(r)?["svg-align"]:[];k=le.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:a,shift:o,wrapperClasses:S}]},t)}return/cancel/.test(r)&&(k.height=n.height,k.depth=n.depth),/cancel/.test(r)&&!s?le.makeSpan(["mord","cancel-lap"],[k],t):le.makeSpan(["mord"],[k],t)},FD=(e,t)=>{var n=0,r=new Fe.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Sn(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};Ke({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=qt(t[0],"color-token").color,o=t[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:zD,mathmlBuilder:FD});Ke({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=qt(t[0],"color-token").color,o=qt(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}},htmlBuilder:zD,mathmlBuilder:FD});Ke({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});Ke({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:zD,mathmlBuilder:FD});Ke({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var vK={};function Vs(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l<n.length;++l)vK[n[l]]=s;a&&(pw[t]=a),o&&(mw[t]=o)}var xK={};function B(e,t){xK[e]=t}function mL(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n==="\\relax"&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n==="\\hline"||n==="\\hdashline";)e.consume(),t.push(n==="\\hdashline"),e.consumeSpaces(),n=e.fetch().text;return t}var w2=e=>{var t=e.parser.settings;if(!t.displayMode)throw new Oe("{"+e.envName+"} can be used only in display mode.")};function $D(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function Mu(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:o,colSeparationType:s,autoTag:l,singleRow:c,emptySingleRow:u,maxNumCols:f,leqno:h}=t;if(e.gullet.beginGroup(),c||e.gullet.macros.set("\\cr","\\\\\\relax"),!o){var m=e.gullet.expandMacroAsText("\\arraystretch");if(m==null)o=1;else if(o=parseFloat(m),!o||o<0)throw new Oe("Invalid \\arraystretch: "+m)}e.gullet.beginGroup();var g=[],b=[g],C=[],w=[],k=l!=null?[]:void 0;function S(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function E(){k&&(e.gullet.macros.get("\\df@tag")?(k.push(e.subparse([new au("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):k.push(!!l&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(S(),w.push(mL(e));;){var A=e.parseExpression(!1,c?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),A={type:"ordgroup",mode:e.mode,body:A},n&&(A={type:"styling",mode:e.mode,style:n,body:[A]}),g.push(A);var _=e.fetch().text;if(_==="&"){if(f&&g.length===f){if(c||s)throw new Oe("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(_==="\\end"){E(),g.length===1&&A.type==="styling"&&A.body[0].body.length===0&&(b.length>1||!u)&&b.pop(),w.length<b.length+1&&w.push([]);break}else if(_==="\\\\"){e.consume();var T=void 0;e.gullet.future().text!==" "&&(T=e.parseSizeGroup(!0)),C.push(T?T.value:null),E(),w.push(mL(e)),g=[],b.push(g),S()}else throw new Oe("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:i,arraystretch:o,body:b,cols:a,rowGaps:C,hskipBeforeAndAfter:r,hLinesBeforeRow:w,colSeparationType:s,tags:k,leqno:h}}function MD(e){return e.slice(0,1)==="d"?"display":"text"}var qs=function(t,n){var r,i,a=t.body.length,o=t.hLinesBeforeRow,s=0,l=new Array(a),c=[],u=Math.max(n.fontMetrics().arrayRuleWidth,n.minRuleThickness),f=1/n.fontMetrics().ptPerEm,h=5*f;if(t.colSeparationType&&t.colSeparationType==="small"){var m=n.havingStyle(_t.SCRIPT).sizeMultiplier;h=.2778*(m/n.sizeMultiplier)}var g=t.colSeparationType==="CD"?Kn({number:3,unit:"ex"},n):12*f,b=3*f,C=t.arraystretch*g,w=.7*C,k=.3*C,S=0;function E(he){for(var Ie=0;Ie<he.length;++Ie)Ie>0&&(S+=.25),c.push({pos:S,isDashed:he[Ie]})}for(E(o[0]),r=0;r<t.body.length;++r){var A=t.body[r],_=w,T=k;s<A.length&&(s=A.length);var $=new Array(A.length);for(i=0;i<A.length;++i){var R=sn(A[i],n);T<R.depth&&(T=R.depth),_<R.height&&(_=R.height),$[i]=R}var O=t.rowGaps[r],G=0;O&&(G=Kn(O,n),G>0&&(G+=k,T<G&&(T=G),G=0)),t.addJot&&(T+=b),$.height=_,$.depth=T,S+=_,$.pos=S,S+=T+G,l[r]=$,E(o[r+1])}var V=S/2+n.fontMetrics().axisHeight,Z=t.cols||[],W=[],Y,fe,ae=[];if(t.tags&&t.tags.some(he=>he))for(r=0;r<a;++r){var Q=l[r],ce=Q.pos-V,L=t.tags[r],de=void 0;L===!0?de=le.makeSpan(["eqn-num"],[],n):L===!1?de=le.makeSpan([],[],n):de=le.makeSpan([],Dr(L,n,!0),n),de.depth=Q.depth,de.height=Q.height,ae.push({type:"elem",elem:de,shift:ce})}for(i=0,fe=0;i<s||fe<Z.length;++i,++fe){for(var ue=Z[fe]||{},I=!0;ue.type==="separator";){if(I||(Y=le.makeSpan(["arraycolsep"],[]),Y.style.width=Le(n.fontMetrics().doubleRuleSep),W.push(Y)),ue.separator==="|"||ue.separator===":"){var be=ue.separator==="|"?"solid":"dashed",ze=le.makeSpan(["vertical-separator"],[],n);ze.style.height=Le(S),ze.style.borderRightWidth=Le(u),ze.style.borderRightStyle=be,ze.style.margin="0 "+Le(-u/2);var J=S-V;J&&(ze.style.verticalAlign=Le(-J)),W.push(ze)}else throw new Oe("Invalid separator type: "+ue.separator);fe++,ue=Z[fe]||{},I=!1}if(!(i>=s)){var Ve=void 0;(i>0||t.hskipBeforeAndAfter)&&(Ve=Ct.deflt(ue.pregap,h),Ve!==0&&(Y=le.makeSpan(["arraycolsep"],[]),Y.style.width=Le(Ve),W.push(Y)));var ye=[];for(r=0;r<a;++r){var We=l[r],Pe=We[i];if(Pe){var Ge=We.pos-V;Pe.depth=We.depth,Pe.height=We.height,ye.push({type:"elem",elem:Pe,shift:Ge})}}ye=le.makeVList({positionType:"individualShift",children:ye},n),ye=le.makeSpan(["col-align-"+(ue.align||"c")],[ye]),W.push(ye),(i<s-1||t.hskipBeforeAndAfter)&&(Ve=Ct.deflt(ue.postgap,h),Ve!==0&&(Y=le.makeSpan(["arraycolsep"],[]),Y.style.width=Le(Ve),W.push(Y)))}}if(l=le.makeSpan(["mtable"],W),c.length>0){for(var Xe=le.makeLineSpan("hline",n,u),Kt=le.makeLineSpan("hdashline",n,u),Et=[{type:"elem",elem:l,shift:0}];c.length>0;){var mt=c.pop(),K=mt.pos-V;mt.isDashed?Et.push({type:"elem",elem:Kt,shift:K}):Et.push({type:"elem",elem:Xe,shift:K})}l=le.makeVList({positionType:"individualShift",children:Et},n)}if(ae.length===0)return le.makeSpan(["mord"],[l],n);var ie=le.makeVList({positionType:"individualShift",children:ae},n);return ie=le.makeSpan(["tag"],[ie],n),le.makeFragment([l,ie])},l5t={c:"center ",l:"left ",r:"right "},Hs=function(t,n){for(var r=[],i=new Fe.MathNode("mtd",[],["mtr-glue"]),a=new Fe.MathNode("mtd",[],["mml-eqn-num"]),o=0;o<t.body.length;o++){for(var s=t.body[o],l=[],c=0;c<s.length;c++)l.push(new Fe.MathNode("mtd",[Sn(s[c],n)]));t.tags&&t.tags[o]&&(l.unshift(i),l.push(i),t.leqno?l.unshift(a):l.push(a)),r.push(new Fe.MathNode("mtr",l))}var u=new Fe.MathNode("mtable",r),f=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);u.setAttribute("rowspacing",Le(f));var h="",m="";if(t.cols&&t.cols.length>0){var g=t.cols,b="",C=!1,w=0,k=g.length;g[0].type==="separator"&&(h+="top ",w=1),g[g.length-1].type==="separator"&&(h+="bottom ",k-=1);for(var S=w;S<k;S++)g[S].type==="align"?(m+=l5t[g[S].align],C&&(b+="none "),C=!0):g[S].type==="separator"&&C&&(b+=g[S].separator==="|"?"solid ":"dashed ",C=!1);u.setAttribute("columnalign",m.trim()),/[sd]/.test(b)&&u.setAttribute("columnlines",b.trim())}if(t.colSeparationType==="align"){for(var E=t.cols||[],A="",_=1;_<E.length;_++)A+=_%2?"0em ":"1em ";u.setAttribute("columnspacing",A.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?u.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?u.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?u.setAttribute("columnspacing","0.5em"):u.setAttribute("columnspacing","1em");var T="",$=t.hLinesBeforeRow;h+=$[0].length>0?"left ":"",h+=$[$.length-1].length>0?"right ":"";for(var R=1;R<$.length-1;R++)T+=$[R].length===0?"none ":$[R][0]?"dashed ":"solid ";return/[sd]/.test(T)&&u.setAttribute("rowlines",T.trim()),h!==""&&(u=new Fe.MathNode("menclose",[u]),u.setAttribute("notation",h.trim())),t.arraystretch&&t.arraystretch<1&&(u=new Fe.MathNode("mstyle",[u]),u.setAttribute("scriptlevel","1")),u},CK=function(t,n){t.envName.indexOf("ed")===-1&&w2(t);var r=[],i=t.envName.indexOf("at")>-1?"alignat":"align",a=t.envName==="split",o=Mu(t.parser,{cols:r,addJot:!0,autoTag:a?void 0:$D(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),s,l=0,c={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var u="",f=0;f<n[0].body.length;f++){var h=qt(n[0].body[f],"textord");u+=h.text}s=Number(u),l=s*2}var m=!l;o.body.forEach(function(w){for(var k=1;k<w.length;k+=2){var S=qt(w[k],"styling"),E=qt(S.body[0],"ordgroup");E.body.unshift(c)}if(m)l<w.length&&(l=w.length);else{var A=w.length/2;if(s<A)throw new Oe("Too many math in a row: "+("expected "+s+", but got "+A),w[0])}});for(var g=0;g<l;++g){var b="r",C=0;g%2===1?b="l":g>0&&m&&(C=1),r[g]={type:"align",align:b,pregap:C,postgap:0}}return o.colSeparationType=m?"align":"alignat",o};Vs({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=_2(t[0]),r=n?[t[0]]:qt(t[0],"ordgroup").body,i=r.map(function(o){var s=ED(o),l=s.text;if("lcr".indexOf(l)!==-1)return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new Oe("Unknown column alignment: "+l,o)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return Mu(e.parser,a,MD(e.envName))},htmlBuilder:qs,mathmlBuilder:Hs});Vs({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,"lcr".indexOf(n)===-1)throw new Oe("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:n}]}}var a=Mu(e.parser,r,MD(e.envName)),o=Math.max(0,...a.body.map(s=>s.length));return a.cols=new Array(o).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:qs,mathmlBuilder:Hs});Vs({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=Mu(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:qs,mathmlBuilder:Hs});Vs({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=_2(t[0]),r=n?[t[0]]:qt(t[0],"ordgroup").body,i=r.map(function(o){var s=ED(o),l=s.text;if("lc".indexOf(l)!==-1)return{type:"align",align:l};throw new Oe("Unknown column alignment: "+l,o)});if(i.length>1)throw new Oe("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=Mu(e.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new Oe("{subarray} can contain only one column");return a},htmlBuilder:qs,mathmlBuilder:Hs});Vs({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=Mu(e.parser,t,MD(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:qs,mathmlBuilder:Hs});Vs({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:CK,htmlBuilder:qs,mathmlBuilder:Hs});Vs({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){Ct.contains(["gather","gather*"],e.envName)&&w2(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:$D(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Mu(e.parser,t,"display")},htmlBuilder:qs,mathmlBuilder:Hs});Vs({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:CK,htmlBuilder:qs,mathmlBuilder:Hs});Vs({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){w2(e);var t={autoTag:$D(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Mu(e.parser,t,"display")},htmlBuilder:qs,mathmlBuilder:Hs});Vs({type:"array",names:["CD"],props:{numArgs:0},handler(e){return w2(e),K6t(e.parser)},htmlBuilder:qs,mathmlBuilder:Hs});B("\\nonumber","\\gdef\\@eqnsw{0}");B("\\notag","\\nonumber");Ke({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Oe(e.funcName+" valid only within array environment")}});var gL=vK;Ke({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!=="ordgroup")throw new Oe("Invalid environment name",i);for(var a="",o=0;o<i.body.length;++o)a+=qt(i.body[o],"textord").text;if(r==="\\begin"){if(!gL.hasOwnProperty(a))throw new Oe("No such environment: "+a,i);var s=gL[a],{args:l,optArgs:c}=n.parseArguments("\\begin{"+a+"}",s),u={mode:n.mode,envName:a,parser:n},f=s.handler(u,l,c);n.expect("\\end",!1);var h=n.nextToken,m=qt(n.parseFunction(),"environment");if(m.name!==a)throw new Oe("Mismatch: \\begin{"+a+"} matched by \\end{"+m.name+"}",h);return f}return{type:"environment",mode:n.mode,name:a,nameGroup:i}}});var SK=(e,t)=>{var n=e.font,r=t.withFont(n);return sn(e.body,r)},DK=(e,t)=>{var n=e.font,r=t.withFont(n);return Sn(e.body,r)},yL={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Ke({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=gw(t[0]),a=r;return a in yL&&(a=yL[a]),{type:"font",mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:SK,mathmlBuilder:DK});Ke({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],i=Ct.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:b2(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:i}}});Ke({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,o=n.parseExpression(!0,i),s="math"+r.slice(1);return{type:"font",mode:a,font:s,body:{type:"ordgroup",mode:n.mode,body:o}}},htmlBuilder:SK,mathmlBuilder:DK});var EK=(e,t)=>{var n=t;return e==="display"?n=n.id>=_t.SCRIPT.id?n.text():_t.DISPLAY:e==="text"&&n.size===_t.DISPLAY.size?n=_t.TEXT:e==="script"?n=_t.SCRIPT:e==="scriptscript"&&(n=_t.SCRIPTSCRIPT),n},OD=(e,t)=>{var n=EK(e.size,t.style),r=n.fracNum(),i=n.fracDen(),a;a=t.havingStyle(r);var o=sn(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;o.height=o.height<s?s:o.height,o.depth=o.depth<l?l:o.depth}a=t.havingStyle(i);var c=sn(e.denom,a,t),u,f,h;e.hasBarLine?(e.barSize?(f=Kn(e.barSize,t),u=le.makeLineSpan("frac-line",t,f)):u=le.makeLineSpan("frac-line",t),f=u.height,h=u.height):(u=null,f=0,h=t.fontMetrics().defaultRuleThickness);var m,g,b;n.size===_t.DISPLAY.size||e.size==="display"?(m=t.fontMetrics().num1,f>0?g=3*h:g=7*h,b=t.fontMetrics().denom1):(f>0?(m=t.fontMetrics().num2,g=h):(m=t.fontMetrics().num3,g=3*h),b=t.fontMetrics().denom2);var C;if(u){var k=t.fontMetrics().axisHeight;m-o.depth-(k+.5*f)<g&&(m+=g-(m-o.depth-(k+.5*f))),k-.5*f-(c.height-b)<g&&(b+=g-(k-.5*f-(c.height-b)));var S=-(k-.5*f);C=le.makeVList({positionType:"individualShift",children:[{type:"elem",elem:c,shift:b},{type:"elem",elem:u,shift:S},{type:"elem",elem:o,shift:-m}]},t)}else{var w=m-o.depth-(c.height-b);w<g&&(m+=.5*(g-w),b+=.5*(g-w)),C=le.makeVList({positionType:"individualShift",children:[{type:"elem",elem:c,shift:b},{type:"elem",elem:o,shift:-m}]},t)}a=t.havingStyle(n),C.height*=a.sizeMultiplier/t.sizeMultiplier,C.depth*=a.sizeMultiplier/t.sizeMultiplier;var E;n.size===_t.DISPLAY.size?E=t.fontMetrics().delim1:n.size===_t.SCRIPTSCRIPT.size?E=t.havingStyle(_t.SCRIPT).fontMetrics().delim2:E=t.fontMetrics().delim2;var A,_;return e.leftDelim==null?A=Tg(t,["mopen"]):A=Ml.customSizedDelim(e.leftDelim,E,!0,t.havingStyle(n),e.mode,["mopen"]),e.continued?_=le.makeSpan([]):e.rightDelim==null?_=Tg(t,["mclose"]):_=Ml.customSizedDelim(e.rightDelim,E,!0,t.havingStyle(n),e.mode,["mclose"]),le.makeSpan(["mord"].concat(a.sizingClasses(t)),[A,le.makeSpan(["mfrac"],[C]),_],t)},ND=(e,t)=>{var n=new Fe.MathNode("mfrac",[Sn(e.numer,t),Sn(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=Kn(e.barSize,t);n.setAttribute("linethickness",Le(r))}var i=EK(e.size,t.style);if(i.size!==t.style.size){n=new Fe.MathNode("mstyle",[n]);var a=i.size===_t.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",a),n.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var o=[];if(e.leftDelim!=null){var s=new Fe.MathNode("mo",[new Fe.TextNode(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),o.push(s)}if(o.push(n),e.rightDelim!=null){var l=new Fe.MathNode("mo",[new Fe.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),o.push(l)}return SD(o)}return n};Ke({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],o,s=null,l=null,c="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":o=!0;break;case"\\\\atopfrac":o=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":o=!1,s="(",l=")";break;case"\\\\bracefrac":o=!1,s="\\{",l="\\}";break;case"\\\\brackfrac":o=!1,s="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":c="display";break;case"\\tfrac":case"\\tbinom":c="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:i,denom:a,hasBarLine:o,leftDelim:s,rightDelim:l,size:c,barSize:null}},htmlBuilder:OD,mathmlBuilder:ND});Ke({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});Ke({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:r}}});var _L=["display","text","script","scriptscript"],bL=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};Ke({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=gw(t[0]),o=a.type==="atom"&&a.family==="open"?bL(a.text):null,s=gw(t[1]),l=s.type==="atom"&&s.family==="close"?bL(s.text):null,c=qt(t[2],"size"),u,f=null;c.isBlank?u=!0:(f=c.value,u=f.number>0);var h="auto",m=t[3];if(m.type==="ordgroup"){if(m.body.length>0){var g=qt(m.body[0],"textord");h=_L[Number(g.text)]}}else m=qt(m,"textord"),h=_L[Number(m.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:u,barSize:f,leftDelim:o,rightDelim:l,size:h}},htmlBuilder:OD,mathmlBuilder:ND});Ke({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:qt(t[0],"size").value,token:i}}});Ke({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=R4t(qt(t[1],"infix").size),o=t[2],s=a.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:o,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:OD,mathmlBuilder:ND});var TK=(e,t)=>{var n=t.style,r,i;e.type==="supsub"?(r=e.sup?sn(e.sup,t.havingStyle(n.sup()),t):sn(e.sub,t.havingStyle(n.sub()),t),i=qt(e.base,"horizBrace")):i=qt(e,"horizBrace");var a=sn(i.base,t.havingBaseStyle(_t.DISPLAY)),o=Ul.svgSpan(i,t),s;if(i.isOver?(s=le.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:o}]},t),s.children[0].children[0].children[1].classes.push("svg-align")):(s=le.makeVList({positionType:"bottom",positionData:a.depth+.1+o.height,children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:a}]},t),s.children[0].children[0].children[0].classes.push("svg-align")),r){var l=le.makeSpan(["mord",i.isOver?"mover":"munder"],[s],t);i.isOver?s=le.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},t):s=le.makeVList({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return le.makeSpan(["mord",i.isOver?"mover":"munder"],[s],t)},c5t=(e,t)=>{var n=Ul.mathMLnode(e.label);return new Fe.MathNode(e.isOver?"mover":"munder",[Sn(e.base,t),n])};Ke({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:TK,mathmlBuilder:c5t});Ke({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=qt(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:lr(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=Dr(e.body,t,!1);return le.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=gu(e.body,t);return n instanceof ro||(n=new ro("mrow",[n])),n.setAttribute("href",e.href),n}});Ke({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=qt(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],a=0;a<r.length;a++){var o=r[a];o==="~"&&(o="\\textasciitilde"),i.push({type:"textord",mode:"text",text:o})}var s={type:"text",mode:n.mode,font:"\\texttt",body:i};return{type:"href",mode:n.mode,href:r,body:lr(s)}}});Ke({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:"hbox",mode:n.mode,body:lr(t[0])}},htmlBuilder(e,t){var n=Dr(e.body,t,!1);return le.makeFragment(n)},mathmlBuilder(e,t){return new Fe.MathNode("mrow",na(e.body,t))}});Ke({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,token:i}=e,a=qt(t[0],"raw").string,o=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var s,l={};switch(r){case"\\htmlClass":l.class=a,s={command:"\\htmlClass",class:a};break;case"\\htmlId":l.id=a,s={command:"\\htmlId",id:a};break;case"\\htmlStyle":l.style=a,s={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var c=a.split(","),u=0;u<c.length;u++){var f=c[u].split("=");if(f.length!==2)throw new Oe("Error parsing key-value for \\htmlData");l["data-"+f[0].trim()]=f[1].trim()}s={command:"\\htmlData",attributes:l};break}default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(s)?{type:"html",mode:n.mode,attributes:l,body:lr(o)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=Dr(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=le.makeSpan(r,n,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>gu(e.body,t)});Ke({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:lr(t[0]),mathml:lr(t[1])}},htmlBuilder:(e,t)=>{var n=Dr(e.html,t,!1);return le.makeFragment(n)},mathmlBuilder:(e,t)=>gu(e.mathml,t)});var l5=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new Oe("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!GG(r))throw new Oe("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};Ke({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},o={number:0,unit:"em"},s="";if(n[0])for(var l=qt(n[0],"raw").string,c=l.split(","),u=0;u<c.length;u++){var f=c[u].split("=");if(f.length===2){var h=f[1].trim();switch(f[0].trim()){case"alt":s=h;break;case"width":i=l5(h);break;case"height":a=l5(h);break;case"totalheight":o=l5(h);break;default:throw new Oe("Invalid key: '"+f[0]+"' in \\includegraphics.")}}}var m=qt(t[0],"url").url;return s===""&&(s=m,s=s.replace(/^.*[\\/]/,""),s=s.substring(0,s.lastIndexOf("."))),r.settings.isTrusted({command:"\\includegraphics",url:m})?{type:"includegraphics",mode:r.mode,alt:s,width:i,height:a,totalheight:o,src:m}:r.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var n=Kn(e.height,t),r=0;e.totalheight.number>0&&(r=Kn(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=Kn(e.width,t));var a={height:Le(n+r)};i>0&&(a.width=Le(i)),r>0&&(a.verticalAlign=Le(-r));var o=new c6t(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new Fe.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=Kn(e.height,t),i=0;if(e.totalheight.number>0&&(i=Kn(e.totalheight,t)-r,n.setAttribute("valign",Le(-i))),n.setAttribute("height",Le(r+i)),e.width.number>0){var a=Kn(e.width,t);n.setAttribute("width",Le(a))}return n.setAttribute("src",e.src),n}});Ke({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=qt(t[0],"size");if(n.settings.strict){var a=r[1]==="m",o=i.value.unit==="mu";a?(o||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+i.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):o&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return le.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=Kn(e.dimension,t);return new Fe.SpaceNode(n)}});Ke({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=le.makeSpan([],[sn(e.body,t)]),n=le.makeSpan(["inner"],[n],t)):n=le.makeSpan(["inner"],[sn(e.body,t)]);var r=le.makeSpan(["fix"],[]),i=le.makeSpan([e.alignment],[n,r],t),a=le.makeSpan(["strut"]);return a.style.height=Le(i.height+i.depth),i.depth&&(a.style.verticalAlign=Le(-i.depth)),i.children.unshift(a),i=le.makeSpan(["thinbox"],[i],t),le.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var n=new Fe.MathNode("mpadded",[Sn(e.body,t)]);if(e.alignment!=="rlap"){var r=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}});Ke({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode("math");var a=n==="\\("?"\\)":"$",o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:o}}});Ke({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Oe("Mismatched "+e.funcName)}});var kL=(e,t)=>{switch(t.style.size){case _t.DISPLAY.size:return e.display;case _t.TEXT.size:return e.text;case _t.SCRIPT.size:return e.script;case _t.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Ke({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:lr(t[0]),text:lr(t[1]),script:lr(t[2]),scriptscript:lr(t[3])}},htmlBuilder:(e,t)=>{var n=kL(e,t),r=Dr(n,t,!1);return le.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=kL(e,t);return gu(n,t)}});var AK=(e,t,n,r,i,a,o)=>{e=le.makeSpan([],[e]);var s=n&&Ct.isCharacterBox(n),l,c;if(t){var u=sn(t,r.havingStyle(i.sup()),r);c={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var f=sn(n,r.havingStyle(i.sub()),r);l={elem:f,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-f.height)}}var h;if(c&&l){var m=r.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+o;h=le.makeVList({positionType:"bottom",positionData:m,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Le(-a)},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:Le(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(l){var g=e.height-o;h=le.makeVList({positionType:"top",positionData:g,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Le(-a)},{type:"kern",size:l.kern},{type:"elem",elem:e}]},r)}else if(c){var b=e.depth+o;h=le.makeVList({positionType:"bottom",positionData:b,children:[{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:Le(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return e;var C=[h];if(l&&a!==0&&!s){var w=le.makeSpan(["mspace"],[],r);w.style.marginRight=Le(a),C.unshift(w)}return le.makeSpan(["mop","op-limits"],C,r)},zK=["\\smallint"],Kp=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=qt(e.base,"op"),i=!0):a=qt(e,"op");var o=t.style,s=!1;o.size===_t.DISPLAY.size&&a.symbol&&!Ct.contains(zK,a.name)&&(s=!0);var l;if(a.symbol){var c=s?"Size2-Regular":"Size1-Regular",u="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(u=a.name.slice(1),a.name=u==="oiint"?"\\iint":"\\iiint"),l=le.makeSymbol(a.name,c,"math",t,["mop","op-symbol",s?"large-op":"small-op"]),u.length>0){var f=l.italic,h=le.staticSvg(u+"Size"+(s?"2":"1"),t);l=le.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:h,shift:s?.08:0}]},t),a.name="\\"+u,l.classes.unshift("mop"),l.italic=f}}else if(a.body){var m=Dr(a.body,t,!0);m.length===1&&m[0]instanceof go?(l=m[0],l.classes[0]="mop"):l=le.makeSpan(["mop"],m,t)}else{for(var g=[],b=1;b<a.name.length;b++)g.push(le.mathsym(a.name[b],a.mode,t));l=le.makeSpan(["mop"],g,t)}var C=0,w=0;return(l instanceof go||a.name==="\\oiint"||a.name==="\\oiiint")&&!a.suppressBaseShift&&(C=(l.height-l.depth)/2-t.fontMetrics().axisHeight,w=l.italic),i?AK(l,n,r,t,o,w,C):(C&&(l.style.position="relative",l.style.top=Le(C)),l)},S1=(e,t)=>{var n;if(e.symbol)n=new ro("mo",[yo(e.name,e.mode)]),Ct.contains(zK,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new ro("mo",na(e.body,t));else{n=new ro("mi",[new Pm(e.name.slice(1))]);var r=new ro("mo",[yo("⁡","text")]);e.parentIsSupSub?n=new ro("mrow",[n,r]):n=iK([n,r])}return n},u5t={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};Ke({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=u5t[i]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Kp,mathmlBuilder:S1});Ke({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:lr(r)}},htmlBuilder:Kp,mathmlBuilder:S1});var d5t={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};Ke({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Kp,mathmlBuilder:S1});Ke({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Kp,mathmlBuilder:S1});Ke({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=d5t[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:Kp,mathmlBuilder:S1});var FK=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=qt(e.base,"operatorname"),i=!0):a=qt(e,"operatorname");var o;if(a.body.length>0){for(var s=a.body.map(f=>{var h=f.text;return typeof h=="string"?{type:"textord",mode:f.mode,text:h}:f}),l=Dr(s,t.withFont("mathrm"),!0),c=0;c<l.length;c++){var u=l[c];u instanceof go&&(u.text=u.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}o=le.makeSpan(["mop"],l,t)}else o=le.makeSpan(["mop"],[],t);return i?AK(o,n,r,t,t.style,0,0):o},f5t=(e,t)=>{for(var n=na(e.body,t.withFont("mathrm")),r=!0,i=0;i<n.length;i++){var a=n[i];if(!(a instanceof Fe.SpaceNode))if(a instanceof Fe.MathNode)switch(a.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var o=a.children[0];a.children.length===1&&o instanceof Fe.TextNode?o.text=o.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):r=!1;break}default:r=!1}else r=!1}if(r){var s=n.map(u=>u.toText()).join("");n=[new Fe.TextNode(s)]}var l=new Fe.MathNode("mi",n);l.setAttribute("mathvariant","normal");var c=new Fe.MathNode("mo",[yo("⁡","text")]);return e.parentIsSupSub?new Fe.MathNode("mrow",[l,c]):Fe.newDocumentFragment([l,c])};Ke({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"operatorname",mode:n.mode,body:lr(i),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:FK,mathmlBuilder:f5t});B("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");yf({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?le.makeFragment(Dr(e.body,t,!1)):le.makeSpan(["mord"],Dr(e.body,t,!0),t)},mathmlBuilder(e,t){return gu(e.body,t,!0)}});Ke({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=sn(e.body,t.havingCrampedStyle()),r=le.makeLineSpan("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=le.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]},t);return le.makeSpan(["mord","overline"],[a],t)},mathmlBuilder(e,t){var n=new Fe.MathNode("mo",[new Fe.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new Fe.MathNode("mover",[Sn(e.body,t),n]);return r.setAttribute("accent","true"),r}});Ke({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:lr(r)}},htmlBuilder:(e,t)=>{var n=Dr(e.body,t.withPhantom(),!1);return le.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=na(e.body,t);return new Fe.MathNode("mphantom",n)}});Ke({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=le.makeSpan([],[sn(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r<n.children.length;r++)n.children[r].height=0,n.children[r].depth=0;return n=le.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t),le.makeSpan(["mord"],[n],t)},mathmlBuilder:(e,t)=>{var n=na(lr(e.body),t),r=new Fe.MathNode("mphantom",n),i=new Fe.MathNode("mpadded",[r]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}});Ke({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=le.makeSpan(["inner"],[sn(e.body,t.withPhantom())]),r=le.makeSpan(["fix"],[]);return le.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=na(lr(e.body),t),r=new Fe.MathNode("mphantom",n),i=new Fe.MathNode("mpadded",[r]);return i.setAttribute("width","0px"),i}});Ke({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=qt(t[0],"size").value,i=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=sn(e.body,t),r=Kn(e.dy,t);return le.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new Fe.MathNode("mpadded",[Sn(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}});Ke({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});Ke({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,i=n[0],a=qt(t[0],"size"),o=qt(t[1],"size");return{type:"rule",mode:r.mode,shift:i&&qt(i,"size").value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=le.makeSpan(["mord","rule"],[],t),r=Kn(e.width,t),i=Kn(e.height,t),a=e.shift?Kn(e.shift,t):0;return n.style.borderRightWidth=Le(r),n.style.borderTopWidth=Le(i),n.style.bottom=Le(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=Kn(e.width,t),r=Kn(e.height,t),i=e.shift?Kn(e.shift,t):0,a=t.color&&t.getColor()||"black",o=new Fe.MathNode("mspace");o.setAttribute("mathbackground",a),o.setAttribute("width",Le(n)),o.setAttribute("height",Le(r));var s=new Fe.MathNode("mpadded",[o]);return i>=0?s.setAttribute("height",Le(i)):(s.setAttribute("height",Le(i)),s.setAttribute("depth",Le(-i))),s.setAttribute("voffset",Le(i)),s}});function $K(e,t,n){for(var r=Dr(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a<r.length;a++){var o=r[a].classes.indexOf("sizing");o<0?Array.prototype.push.apply(r[a].classes,t.sizingClasses(n)):r[a].classes[o+1]==="reset-size"+t.size&&(r[a].classes[o+1]="reset-size"+n.size),r[a].height*=i,r[a].depth*=i}return le.makeFragment(r)}var wL=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],h5t=(e,t)=>{var n=t.havingSize(e.size);return $K(e.body,n,t)};Ke({type:"sizing",names:wL,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:wL.indexOf(r)+1,body:a}},htmlBuilder:h5t,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=na(e.body,n),i=new Fe.MathNode("mstyle",r);return i.setAttribute("mathsize",Le(n.sizeMultiplier)),i}});Ke({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,o=n[0]&&qt(n[0],"ordgroup");if(o)for(var s="",l=0;l<o.body.length;++l){var c=o.body[l];if(s=c.text,s==="t")i=!0;else if(s==="b")a=!0;else{i=!1,a=!1;break}}else i=!0,a=!0;var u=t[0];return{type:"smash",mode:r.mode,body:u,smashHeight:i,smashDepth:a}},htmlBuilder:(e,t)=>{var n=le.makeSpan([],[sn(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r<n.children.length;r++)n.children[r].height=0;if(e.smashDepth&&(n.depth=0,n.children))for(var i=0;i<n.children.length;i++)n.children[i].depth=0;var a=le.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t);return le.makeSpan(["mord"],[a],t)},mathmlBuilder:(e,t)=>{var n=new Fe.MathNode("mpadded",[Sn(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});Ke({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:"sqrt",mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=sn(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=le.wrapFragment(n,t);var r=t.fontMetrics(),i=r.defaultRuleThickness,a=i;t.style.id<_t.TEXT.id&&(a=t.fontMetrics().xHeight);var o=i+a/4,s=n.height+n.depth+o+i,{span:l,ruleWidth:c,advanceWidth:u}=Ml.sqrtImage(s,t),f=l.height-c;f>n.height+n.depth+o&&(o=(o+f-n.height-n.depth)/2);var h=l.height-n.height-o-c;n.style.paddingLeft=Le(u);var m=le.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+h)},{type:"elem",elem:l},{type:"kern",size:c}]},t);if(e.index){var g=t.havingStyle(_t.SCRIPTSCRIPT),b=sn(e.index,g,t),C=.6*(m.height-m.depth),w=le.makeVList({positionType:"shift",positionData:-C,children:[{type:"elem",elem:b}]},t),k=le.makeSpan(["root"],[w]);return le.makeSpan(["mord","sqrt"],[k,m],t)}else return le.makeSpan(["mord","sqrt"],[m],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new Fe.MathNode("mroot",[Sn(n,t),Sn(r,t)]):new Fe.MathNode("msqrt",[Sn(n,t)])}});var vL={display:_t.DISPLAY,text:_t.TEXT,script:_t.SCRIPT,scriptscript:_t.SCRIPTSCRIPT};Ke({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=vL[e.style],r=t.havingStyle(n).withFont("");return $K(e.body,r,t)},mathmlBuilder(e,t){var n=vL[e.style],r=t.havingStyle(n),i=na(e.body,r),a=new Fe.MathNode("mstyle",i),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},s=o[e.style];return a.setAttribute("scriptlevel",s[0]),a.setAttribute("displaystyle",s[1]),a}});var p5t=function(t,n){var r=t.base;if(r)if(r.type==="op"){var i=r.limits&&(n.style.size===_t.DISPLAY.size||r.alwaysHandleSupSub);return i?Kp:null}else if(r.type==="operatorname"){var a=r.alwaysHandleSupSub&&(n.style.size===_t.DISPLAY.size||r.limits);return a?FK:null}else{if(r.type==="accent")return Ct.isCharacterBox(r.base)?TD:null;if(r.type==="horizBrace"){var o=!t.sub;return o===r.isOver?TK:null}else return null}else return null};yf({type:"supsub",htmlBuilder(e,t){var n=p5t(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,o=sn(r,t),s,l,c=t.fontMetrics(),u=0,f=0,h=r&&Ct.isCharacterBox(r);if(i){var m=t.havingStyle(t.style.sup());s=sn(i,m,t),h||(u=o.height-m.fontMetrics().supDrop*m.sizeMultiplier/t.sizeMultiplier)}if(a){var g=t.havingStyle(t.style.sub());l=sn(a,g,t),h||(f=o.depth+g.fontMetrics().subDrop*g.sizeMultiplier/t.sizeMultiplier)}var b;t.style===_t.DISPLAY?b=c.sup1:t.style.cramped?b=c.sup3:b=c.sup2;var C=t.sizeMultiplier,w=Le(.5/c.ptPerEm/C),k=null;if(l){var S=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(o instanceof go||S)&&(k=Le(-o.italic))}var E;if(s&&l){u=Math.max(u,b,s.depth+.25*c.xHeight),f=Math.max(f,c.sub2);var A=c.defaultRuleThickness,_=4*A;if(u-s.depth-(l.height-f)<_){f=_-(u-s.depth)+l.height;var T=.8*c.xHeight-(u-s.depth);T>0&&(u+=T,f-=T)}var $=[{type:"elem",elem:l,shift:f,marginRight:w,marginLeft:k},{type:"elem",elem:s,shift:-u,marginRight:w}];E=le.makeVList({positionType:"individualShift",children:$},t)}else if(l){f=Math.max(f,c.sub1,l.height-.8*c.xHeight);var R=[{type:"elem",elem:l,marginLeft:k,marginRight:w}];E=le.makeVList({positionType:"shift",positionData:f,children:R},t)}else if(s)u=Math.max(u,b,s.depth+.25*c.xHeight),E=le.makeVList({positionType:"shift",positionData:-u,children:[{type:"elem",elem:s,marginRight:w}]},t);else throw new Error("supsub must have either sup or sub.");var O=d7(o,"right")||"mord";return le.makeSpan([O],[o,le.makeSpan(["msupsub"],[E])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[Sn(e.base,t)];e.sub&&a.push(Sn(e.sub,t)),e.sup&&a.push(Sn(e.sup,t));var o;if(n)o=r?"mover":"munder";else if(e.sub)if(e.sup){var c=e.base;c&&c.type==="op"&&c.limits&&t.style===_t.DISPLAY||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(t.style===_t.DISPLAY||c.limits)?o="munderover":o="msubsup"}else{var l=e.base;l&&l.type==="op"&&l.limits&&(t.style===_t.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===_t.DISPLAY)?o="munder":o="msub"}else{var s=e.base;s&&s.type==="op"&&s.limits&&(t.style===_t.DISPLAY||s.alwaysHandleSupSub)||s&&s.type==="operatorname"&&s.alwaysHandleSupSub&&(s.limits||t.style===_t.DISPLAY)?o="mover":o="msup"}return new Fe.MathNode(o,a)}});yf({type:"atom",htmlBuilder(e,t){return le.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new Fe.MathNode("mo",[yo(e.text,e.mode)]);if(e.family==="bin"){var r=DD(e,t);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var MK={mi:"italic",mn:"normal",mtext:"normal"};yf({type:"mathord",htmlBuilder(e,t){return le.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new Fe.MathNode("mi",[yo(e.text,e.mode,t)]),r=DD(e,t)||"italic";return r!==MK[n.type]&&n.setAttribute("mathvariant",r),n}});yf({type:"textord",htmlBuilder(e,t){return le.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n=yo(e.text,e.mode,t),r=DD(e,t)||"normal",i;return e.mode==="text"?i=new Fe.MathNode("mtext",[n]):/[0-9]/.test(e.text)?i=new Fe.MathNode("mn",[n]):e.text==="\\prime"?i=new Fe.MathNode("mo",[n]):i=new Fe.MathNode("mi",[n]),r!==MK[i.type]&&i.setAttribute("mathvariant",r),i}});var c5={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},u5={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};yf({type:"spacing",htmlBuilder(e,t){if(u5.hasOwnProperty(e.text)){var n=u5[e.text].className||"";if(e.mode==="text"){var r=le.makeOrd(e,t,"textord");return r.classes.push(n),r}else return le.makeSpan(["mspace",n],[le.mathsym(e.text,e.mode,t)],t)}else{if(c5.hasOwnProperty(e.text))return le.makeSpan(["mspace",c5[e.text]],[],t);throw new Oe('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(u5.hasOwnProperty(e.text))n=new Fe.MathNode("mtext",[new Fe.TextNode(" ")]);else{if(c5.hasOwnProperty(e.text))return new Fe.MathNode("mspace");throw new Oe('Unknown type of space "'+e.text+'"')}return n}});var xL=()=>{var e=new Fe.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};yf({type:"tag",mathmlBuilder(e,t){var n=new Fe.MathNode("mtable",[new Fe.MathNode("mtr",[xL(),new Fe.MathNode("mtd",[gu(e.body,t)]),xL(),new Fe.MathNode("mtd",[gu(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var CL={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},SL={"\\textbf":"textbf","\\textmd":"textmd"},m5t={"\\textit":"textit","\\textup":"textup"},DL=(e,t)=>{var n=e.font;return n?CL[n]?t.withTextFontFamily(CL[n]):SL[n]?t.withTextFontWeight(SL[n]):t.withTextFontShape(m5t[n]):t};Ke({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"text",mode:n.mode,body:lr(i),font:r}},htmlBuilder(e,t){var n=DL(e,t),r=Dr(e.body,n,!0);return le.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=DL(e,t);return gu(e.body,n)}});Ke({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=sn(e.body,t),r=le.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=le.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]},t);return le.makeSpan(["mord","underline"],[a],t)},mathmlBuilder(e,t){var n=new Fe.MathNode("mo",[new Fe.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new Fe.MathNode("munder",[Sn(e.body,t),n]);return r.setAttribute("accentunder","true"),r}});Ke({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=sn(e.body,t),r=t.fontMetrics().axisHeight,i=.5*(n.height-r-(n.depth+r));return le.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new Fe.MathNode("mpadded",[Sn(e.body,t)],["vcenter"])}});Ke({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new Oe("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=EL(e),r=[],i=t.havingStyle(t.style.text()),a=0;a<n.length;a++){var o=n[a];o==="~"&&(o="\\textasciitilde"),r.push(le.makeSymbol(o,"Typewriter-Regular",e.mode,i,["mord","texttt"]))}return le.makeSpan(["mord","text"].concat(i.sizingClasses(t)),le.tryCombineChars(r),i)},mathmlBuilder(e,t){var n=new Fe.TextNode(EL(e)),r=new Fe.MathNode("mtext",[n]);return r.setAttribute("mathvariant","monospace"),r}});var EL=e=>e.body.replace(/ /g,e.star?"␣":" "),Hc=nK,OK=`[ \r - ]`,g5t="\\\\[a-zA-Z@]+",y5t="\\\\[^\uD800-\uDFFF]",_5t="("+g5t+")"+OK+"*",b5t=`\\\\( +-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class x1{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return Ct.contains(this.classes,t)}toNode(){for(var t=document.createDocumentFragment(),n=0;n<this.children.length;n++)t.appendChild(this.children[n].toNode());return t}toMarkup(){for(var t="",n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t}toText(){var t=n=>n.toText();return this.children.map(t).join("")}}var Cs={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},u_={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},eL={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function o6t(e,t){Cs[e]=t}function vD(e,t,n){if(!Cs[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),i=Cs[t][r];if(!i&&e[0]in eL&&(r=eL[e[0]].charCodeAt(0),i=Cs[t][r]),!i&&n==="text"&&GG(r)&&(i=Cs[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var J6={};function s6t(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!J6[t]){var n=J6[t]={cssEmPerMu:u_.quad[t]/18};for(var r in u_)u_.hasOwnProperty(r)&&(n[r]=u_[r][t])}return J6[t]}var l6t=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],tL=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],nL=function(t,n){return n.size<2?t:l6t[t-1][n.size-1]};class wl{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||wl.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=tL[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new wl(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:nL(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:tL[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=nL(wl.BASESIZE,t);return this.size===n&&this.textSize===wl.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==wl.BASESIZE?["sizing","reset-size"+this.size,"size"+wl.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=s6t(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}wl.BASESIZE=6;var l7={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},c6t={ex:!0,em:!0,mu:!0},KG=function(t){return typeof t!="string"&&(t=t.unit),t in l7||t in c6t||t==="ex"},Kn=function(t,n){var r;if(t.unit in l7)r=l7[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var i;if(n.style.isTight()?i=n.havingStyle(n.style.text()):i=n,t.unit==="ex")r=i.fontMetrics().xHeight;else if(t.unit==="em")r=i.fontMetrics().quad;else throw new Oe("Invalid unit: '"+t.unit+"'");i!==n&&(r*=i.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},Le=function(t){return+t.toFixed(4)+"em"},pu=function(t){return t.filter(n=>n).join(" ")},YG=function(t,n,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var i=n.getColor();i&&(this.style.color=i)}},ZG=function(t){var n=document.createElement(t);n.className=pu(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&n.setAttribute(i,this.attributes[i]);for(var a=0;a<this.children.length;a++)n.appendChild(this.children[a].toNode());return n},XG=function(t){var n="<"+t;this.classes.length&&(n+=' class="'+Ct.escape(pu(this.classes))+'"');var r="";for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=Ct.hyphenate(i)+":"+this.style[i]+";");r&&(n+=' style="'+Ct.escape(r)+'"');for(var a in this.attributes)this.attributes.hasOwnProperty(a)&&(n+=" "+a+'="'+Ct.escape(this.attributes[a])+'"');n+=">";for(var o=0;o<this.children.length;o++)n+=this.children[o].toMarkup();return n+="</"+t+">",n};class C1{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,YG.call(this,t,r,i),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return Ct.contains(this.classes,t)}toNode(){return ZG.call(this,"span")}toMarkup(){return XG.call(this,"span")}}class xD{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,YG.call(this,n,i),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return Ct.contains(this.classes,t)}toNode(){return ZG.call(this,"a")}toMarkup(){return XG.call(this,"a")}}class u6t{constructor(t,n,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=t,this.classes=["mord"],this.style=r}hasClass(t){return Ct.contains(this.classes,t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);return t}toMarkup(){var t="<img src='"+this.src+" 'alt='"+this.alt+"' ",n="";for(var r in this.style)this.style.hasOwnProperty(r)&&(n+=Ct.hyphenate(r)+":"+this.style[r]+";");return n&&(t+=' style="'+Ct.escape(n)+'"'),t+="'/>",t}}var d6t={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class go{constructor(t,n,r,i,a,o,s,l){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=t,this.height=n||0,this.depth=r||0,this.italic=i||0,this.skew=a||0,this.width=o||0,this.classes=s||[],this.style=l||{},this.maxFontSize=0;var c=Y4t(this.text.charCodeAt(0));c&&this.classes.push(c+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=d6t[this.text])}hasClass(t){return Ct.contains(this.classes,t)}toNode(){var t=document.createTextNode(this.text),n=null;this.italic>0&&(n=document.createElement("span"),n.style.marginRight=Le(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=pu(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(n=n||document.createElement("span"),n.style[r]=this.style[r]);return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="<span";this.classes.length&&(t=!0,n+=' class="',n+=Ct.escape(pu(this.classes)),n+='"');var r="";this.italic>0&&(r+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=Ct.hyphenate(i)+":"+this.style[i]+";");r&&(t=!0,n+=' style="'+Ct.escape(r)+'"');var a=Ct.escape(this.text);return t?(n+=">",n+=a,n+="</span>",n):a}}class ql{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);for(var i=0;i<this.children.length;i++)n.appendChild(this.children[i].toNode());return n}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+"='"+this.attributes[n]+"'");t+=">";for(var r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t+="</svg>",t}}class mu{constructor(t,n){this.pathName=void 0,this.alternate=void 0,this.pathName=t,this.alternate=n}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"path");return this.alternate?n.setAttribute("d",this.alternate):n.setAttribute("d",QN[this.pathName]),n}toMarkup(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+QN[this.pathName]+"'/>"}}class c7{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t="<line";for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+"='"+this.attributes[n]+"'");return t+="/>",t}}function rL(e){if(e instanceof go)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function f6t(e){if(e instanceof C1)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var h6t={bin:1,close:1,inner:1,open:1,punct:1,rel:1},p6t={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},zn={math:{},text:{}};function v(e,t,n,r,i,a){zn[e][i]={font:t,group:n,replace:r},a&&r&&(zn[e][r]=zn[e][i])}var D="math",Te="text",M="main",q="ams",Vn="accent-token",Je="bin",Ei="close",Gp="inner",kt="mathord",_r="op-token",Oa="open",g2="punct",U="rel",Jl="spacing",te="textord";v(D,M,U,"≡","\\equiv",!0);v(D,M,U,"≺","\\prec",!0);v(D,M,U,"≻","\\succ",!0);v(D,M,U,"∼","\\sim",!0);v(D,M,U,"⊥","\\perp");v(D,M,U,"⪯","\\preceq",!0);v(D,M,U,"⪰","\\succeq",!0);v(D,M,U,"≃","\\simeq",!0);v(D,M,U,"∣","\\mid",!0);v(D,M,U,"≪","\\ll",!0);v(D,M,U,"≫","\\gg",!0);v(D,M,U,"≍","\\asymp",!0);v(D,M,U,"∥","\\parallel");v(D,M,U,"⋈","\\bowtie",!0);v(D,M,U,"⌣","\\smile",!0);v(D,M,U,"⊑","\\sqsubseteq",!0);v(D,M,U,"⊒","\\sqsupseteq",!0);v(D,M,U,"≐","\\doteq",!0);v(D,M,U,"⌢","\\frown",!0);v(D,M,U,"∋","\\ni",!0);v(D,M,U,"∝","\\propto",!0);v(D,M,U,"⊢","\\vdash",!0);v(D,M,U,"⊣","\\dashv",!0);v(D,M,U,"∋","\\owns");v(D,M,g2,".","\\ldotp");v(D,M,g2,"⋅","\\cdotp");v(D,M,te,"#","\\#");v(Te,M,te,"#","\\#");v(D,M,te,"&","\\&");v(Te,M,te,"&","\\&");v(D,M,te,"ℵ","\\aleph",!0);v(D,M,te,"∀","\\forall",!0);v(D,M,te,"ℏ","\\hbar",!0);v(D,M,te,"∃","\\exists",!0);v(D,M,te,"∇","\\nabla",!0);v(D,M,te,"♭","\\flat",!0);v(D,M,te,"ℓ","\\ell",!0);v(D,M,te,"♮","\\natural",!0);v(D,M,te,"♣","\\clubsuit",!0);v(D,M,te,"℘","\\wp",!0);v(D,M,te,"♯","\\sharp",!0);v(D,M,te,"♢","\\diamondsuit",!0);v(D,M,te,"ℜ","\\Re",!0);v(D,M,te,"♡","\\heartsuit",!0);v(D,M,te,"ℑ","\\Im",!0);v(D,M,te,"♠","\\spadesuit",!0);v(D,M,te,"§","\\S",!0);v(Te,M,te,"§","\\S");v(D,M,te,"¶","\\P",!0);v(Te,M,te,"¶","\\P");v(D,M,te,"†","\\dag");v(Te,M,te,"†","\\dag");v(Te,M,te,"†","\\textdagger");v(D,M,te,"‡","\\ddag");v(Te,M,te,"‡","\\ddag");v(Te,M,te,"‡","\\textdaggerdbl");v(D,M,Ei,"⎱","\\rmoustache",!0);v(D,M,Oa,"⎰","\\lmoustache",!0);v(D,M,Ei,"⟯","\\rgroup",!0);v(D,M,Oa,"⟮","\\lgroup",!0);v(D,M,Je,"∓","\\mp",!0);v(D,M,Je,"⊖","\\ominus",!0);v(D,M,Je,"⊎","\\uplus",!0);v(D,M,Je,"⊓","\\sqcap",!0);v(D,M,Je,"∗","\\ast");v(D,M,Je,"⊔","\\sqcup",!0);v(D,M,Je,"◯","\\bigcirc",!0);v(D,M,Je,"∙","\\bullet",!0);v(D,M,Je,"‡","\\ddagger");v(D,M,Je,"≀","\\wr",!0);v(D,M,Je,"⨿","\\amalg");v(D,M,Je,"&","\\And");v(D,M,U,"⟵","\\longleftarrow",!0);v(D,M,U,"⇐","\\Leftarrow",!0);v(D,M,U,"⟸","\\Longleftarrow",!0);v(D,M,U,"⟶","\\longrightarrow",!0);v(D,M,U,"⇒","\\Rightarrow",!0);v(D,M,U,"⟹","\\Longrightarrow",!0);v(D,M,U,"↔","\\leftrightarrow",!0);v(D,M,U,"⟷","\\longleftrightarrow",!0);v(D,M,U,"⇔","\\Leftrightarrow",!0);v(D,M,U,"⟺","\\Longleftrightarrow",!0);v(D,M,U,"↦","\\mapsto",!0);v(D,M,U,"⟼","\\longmapsto",!0);v(D,M,U,"↗","\\nearrow",!0);v(D,M,U,"↩","\\hookleftarrow",!0);v(D,M,U,"↪","\\hookrightarrow",!0);v(D,M,U,"↘","\\searrow",!0);v(D,M,U,"↼","\\leftharpoonup",!0);v(D,M,U,"⇀","\\rightharpoonup",!0);v(D,M,U,"↙","\\swarrow",!0);v(D,M,U,"↽","\\leftharpoondown",!0);v(D,M,U,"⇁","\\rightharpoondown",!0);v(D,M,U,"↖","\\nwarrow",!0);v(D,M,U,"⇌","\\rightleftharpoons",!0);v(D,q,U,"≮","\\nless",!0);v(D,q,U,"","\\@nleqslant");v(D,q,U,"","\\@nleqq");v(D,q,U,"⪇","\\lneq",!0);v(D,q,U,"≨","\\lneqq",!0);v(D,q,U,"","\\@lvertneqq");v(D,q,U,"⋦","\\lnsim",!0);v(D,q,U,"⪉","\\lnapprox",!0);v(D,q,U,"⊀","\\nprec",!0);v(D,q,U,"⋠","\\npreceq",!0);v(D,q,U,"⋨","\\precnsim",!0);v(D,q,U,"⪹","\\precnapprox",!0);v(D,q,U,"≁","\\nsim",!0);v(D,q,U,"","\\@nshortmid");v(D,q,U,"∤","\\nmid",!0);v(D,q,U,"⊬","\\nvdash",!0);v(D,q,U,"⊭","\\nvDash",!0);v(D,q,U,"⋪","\\ntriangleleft");v(D,q,U,"⋬","\\ntrianglelefteq",!0);v(D,q,U,"⊊","\\subsetneq",!0);v(D,q,U,"","\\@varsubsetneq");v(D,q,U,"⫋","\\subsetneqq",!0);v(D,q,U,"","\\@varsubsetneqq");v(D,q,U,"≯","\\ngtr",!0);v(D,q,U,"","\\@ngeqslant");v(D,q,U,"","\\@ngeqq");v(D,q,U,"⪈","\\gneq",!0);v(D,q,U,"≩","\\gneqq",!0);v(D,q,U,"","\\@gvertneqq");v(D,q,U,"⋧","\\gnsim",!0);v(D,q,U,"⪊","\\gnapprox",!0);v(D,q,U,"⊁","\\nsucc",!0);v(D,q,U,"⋡","\\nsucceq",!0);v(D,q,U,"⋩","\\succnsim",!0);v(D,q,U,"⪺","\\succnapprox",!0);v(D,q,U,"≆","\\ncong",!0);v(D,q,U,"","\\@nshortparallel");v(D,q,U,"∦","\\nparallel",!0);v(D,q,U,"⊯","\\nVDash",!0);v(D,q,U,"⋫","\\ntriangleright");v(D,q,U,"⋭","\\ntrianglerighteq",!0);v(D,q,U,"","\\@nsupseteqq");v(D,q,U,"⊋","\\supsetneq",!0);v(D,q,U,"","\\@varsupsetneq");v(D,q,U,"⫌","\\supsetneqq",!0);v(D,q,U,"","\\@varsupsetneqq");v(D,q,U,"⊮","\\nVdash",!0);v(D,q,U,"⪵","\\precneqq",!0);v(D,q,U,"⪶","\\succneqq",!0);v(D,q,U,"","\\@nsubseteqq");v(D,q,Je,"⊴","\\unlhd");v(D,q,Je,"⊵","\\unrhd");v(D,q,U,"↚","\\nleftarrow",!0);v(D,q,U,"↛","\\nrightarrow",!0);v(D,q,U,"⇍","\\nLeftarrow",!0);v(D,q,U,"⇏","\\nRightarrow",!0);v(D,q,U,"↮","\\nleftrightarrow",!0);v(D,q,U,"⇎","\\nLeftrightarrow",!0);v(D,q,U,"△","\\vartriangle");v(D,q,te,"ℏ","\\hslash");v(D,q,te,"▽","\\triangledown");v(D,q,te,"◊","\\lozenge");v(D,q,te,"Ⓢ","\\circledS");v(D,q,te,"®","\\circledR");v(Te,q,te,"®","\\circledR");v(D,q,te,"∡","\\measuredangle",!0);v(D,q,te,"∄","\\nexists");v(D,q,te,"℧","\\mho");v(D,q,te,"Ⅎ","\\Finv",!0);v(D,q,te,"⅁","\\Game",!0);v(D,q,te,"‵","\\backprime");v(D,q,te,"▲","\\blacktriangle");v(D,q,te,"▼","\\blacktriangledown");v(D,q,te,"■","\\blacksquare");v(D,q,te,"⧫","\\blacklozenge");v(D,q,te,"★","\\bigstar");v(D,q,te,"∢","\\sphericalangle",!0);v(D,q,te,"∁","\\complement",!0);v(D,q,te,"ð","\\eth",!0);v(Te,M,te,"ð","ð");v(D,q,te,"╱","\\diagup");v(D,q,te,"╲","\\diagdown");v(D,q,te,"□","\\square");v(D,q,te,"□","\\Box");v(D,q,te,"◊","\\Diamond");v(D,q,te,"¥","\\yen",!0);v(Te,q,te,"¥","\\yen",!0);v(D,q,te,"✓","\\checkmark",!0);v(Te,q,te,"✓","\\checkmark");v(D,q,te,"ℶ","\\beth",!0);v(D,q,te,"ℸ","\\daleth",!0);v(D,q,te,"ℷ","\\gimel",!0);v(D,q,te,"ϝ","\\digamma",!0);v(D,q,te,"ϰ","\\varkappa");v(D,q,Oa,"┌","\\@ulcorner",!0);v(D,q,Ei,"┐","\\@urcorner",!0);v(D,q,Oa,"└","\\@llcorner",!0);v(D,q,Ei,"┘","\\@lrcorner",!0);v(D,q,U,"≦","\\leqq",!0);v(D,q,U,"⩽","\\leqslant",!0);v(D,q,U,"⪕","\\eqslantless",!0);v(D,q,U,"≲","\\lesssim",!0);v(D,q,U,"⪅","\\lessapprox",!0);v(D,q,U,"≊","\\approxeq",!0);v(D,q,Je,"⋖","\\lessdot");v(D,q,U,"⋘","\\lll",!0);v(D,q,U,"≶","\\lessgtr",!0);v(D,q,U,"⋚","\\lesseqgtr",!0);v(D,q,U,"⪋","\\lesseqqgtr",!0);v(D,q,U,"≑","\\doteqdot");v(D,q,U,"≓","\\risingdotseq",!0);v(D,q,U,"≒","\\fallingdotseq",!0);v(D,q,U,"∽","\\backsim",!0);v(D,q,U,"⋍","\\backsimeq",!0);v(D,q,U,"⫅","\\subseteqq",!0);v(D,q,U,"⋐","\\Subset",!0);v(D,q,U,"⊏","\\sqsubset",!0);v(D,q,U,"≼","\\preccurlyeq",!0);v(D,q,U,"⋞","\\curlyeqprec",!0);v(D,q,U,"≾","\\precsim",!0);v(D,q,U,"⪷","\\precapprox",!0);v(D,q,U,"⊲","\\vartriangleleft");v(D,q,U,"⊴","\\trianglelefteq");v(D,q,U,"⊨","\\vDash",!0);v(D,q,U,"⊪","\\Vvdash",!0);v(D,q,U,"⌣","\\smallsmile");v(D,q,U,"⌢","\\smallfrown");v(D,q,U,"≏","\\bumpeq",!0);v(D,q,U,"≎","\\Bumpeq",!0);v(D,q,U,"≧","\\geqq",!0);v(D,q,U,"⩾","\\geqslant",!0);v(D,q,U,"⪖","\\eqslantgtr",!0);v(D,q,U,"≳","\\gtrsim",!0);v(D,q,U,"⪆","\\gtrapprox",!0);v(D,q,Je,"⋗","\\gtrdot");v(D,q,U,"⋙","\\ggg",!0);v(D,q,U,"≷","\\gtrless",!0);v(D,q,U,"⋛","\\gtreqless",!0);v(D,q,U,"⪌","\\gtreqqless",!0);v(D,q,U,"≖","\\eqcirc",!0);v(D,q,U,"≗","\\circeq",!0);v(D,q,U,"≜","\\triangleq",!0);v(D,q,U,"∼","\\thicksim");v(D,q,U,"≈","\\thickapprox");v(D,q,U,"⫆","\\supseteqq",!0);v(D,q,U,"⋑","\\Supset",!0);v(D,q,U,"⊐","\\sqsupset",!0);v(D,q,U,"≽","\\succcurlyeq",!0);v(D,q,U,"⋟","\\curlyeqsucc",!0);v(D,q,U,"≿","\\succsim",!0);v(D,q,U,"⪸","\\succapprox",!0);v(D,q,U,"⊳","\\vartriangleright");v(D,q,U,"⊵","\\trianglerighteq");v(D,q,U,"⊩","\\Vdash",!0);v(D,q,U,"∣","\\shortmid");v(D,q,U,"∥","\\shortparallel");v(D,q,U,"≬","\\between",!0);v(D,q,U,"⋔","\\pitchfork",!0);v(D,q,U,"∝","\\varpropto");v(D,q,U,"◀","\\blacktriangleleft");v(D,q,U,"∴","\\therefore",!0);v(D,q,U,"∍","\\backepsilon");v(D,q,U,"▶","\\blacktriangleright");v(D,q,U,"∵","\\because",!0);v(D,q,U,"⋘","\\llless");v(D,q,U,"⋙","\\gggtr");v(D,q,Je,"⊲","\\lhd");v(D,q,Je,"⊳","\\rhd");v(D,q,U,"≂","\\eqsim",!0);v(D,M,U,"⋈","\\Join");v(D,q,U,"≑","\\Doteq",!0);v(D,q,Je,"∔","\\dotplus",!0);v(D,q,Je,"∖","\\smallsetminus");v(D,q,Je,"⋒","\\Cap",!0);v(D,q,Je,"⋓","\\Cup",!0);v(D,q,Je,"⩞","\\doublebarwedge",!0);v(D,q,Je,"⊟","\\boxminus",!0);v(D,q,Je,"⊞","\\boxplus",!0);v(D,q,Je,"⋇","\\divideontimes",!0);v(D,q,Je,"⋉","\\ltimes",!0);v(D,q,Je,"⋊","\\rtimes",!0);v(D,q,Je,"⋋","\\leftthreetimes",!0);v(D,q,Je,"⋌","\\rightthreetimes",!0);v(D,q,Je,"⋏","\\curlywedge",!0);v(D,q,Je,"⋎","\\curlyvee",!0);v(D,q,Je,"⊝","\\circleddash",!0);v(D,q,Je,"⊛","\\circledast",!0);v(D,q,Je,"⋅","\\centerdot");v(D,q,Je,"⊺","\\intercal",!0);v(D,q,Je,"⋒","\\doublecap");v(D,q,Je,"⋓","\\doublecup");v(D,q,Je,"⊠","\\boxtimes",!0);v(D,q,U,"⇢","\\dashrightarrow",!0);v(D,q,U,"⇠","\\dashleftarrow",!0);v(D,q,U,"⇇","\\leftleftarrows",!0);v(D,q,U,"⇆","\\leftrightarrows",!0);v(D,q,U,"⇚","\\Lleftarrow",!0);v(D,q,U,"↞","\\twoheadleftarrow",!0);v(D,q,U,"↢","\\leftarrowtail",!0);v(D,q,U,"↫","\\looparrowleft",!0);v(D,q,U,"⇋","\\leftrightharpoons",!0);v(D,q,U,"↶","\\curvearrowleft",!0);v(D,q,U,"↺","\\circlearrowleft",!0);v(D,q,U,"↰","\\Lsh",!0);v(D,q,U,"⇈","\\upuparrows",!0);v(D,q,U,"↿","\\upharpoonleft",!0);v(D,q,U,"⇃","\\downharpoonleft",!0);v(D,M,U,"⊶","\\origof",!0);v(D,M,U,"⊷","\\imageof",!0);v(D,q,U,"⊸","\\multimap",!0);v(D,q,U,"↭","\\leftrightsquigarrow",!0);v(D,q,U,"⇉","\\rightrightarrows",!0);v(D,q,U,"⇄","\\rightleftarrows",!0);v(D,q,U,"↠","\\twoheadrightarrow",!0);v(D,q,U,"↣","\\rightarrowtail",!0);v(D,q,U,"↬","\\looparrowright",!0);v(D,q,U,"↷","\\curvearrowright",!0);v(D,q,U,"↻","\\circlearrowright",!0);v(D,q,U,"↱","\\Rsh",!0);v(D,q,U,"⇊","\\downdownarrows",!0);v(D,q,U,"↾","\\upharpoonright",!0);v(D,q,U,"⇂","\\downharpoonright",!0);v(D,q,U,"⇝","\\rightsquigarrow",!0);v(D,q,U,"⇝","\\leadsto");v(D,q,U,"⇛","\\Rrightarrow",!0);v(D,q,U,"↾","\\restriction");v(D,M,te,"‘","`");v(D,M,te,"$","\\$");v(Te,M,te,"$","\\$");v(Te,M,te,"$","\\textdollar");v(D,M,te,"%","\\%");v(Te,M,te,"%","\\%");v(D,M,te,"_","\\_");v(Te,M,te,"_","\\_");v(Te,M,te,"_","\\textunderscore");v(D,M,te,"∠","\\angle",!0);v(D,M,te,"∞","\\infty",!0);v(D,M,te,"′","\\prime");v(D,M,te,"△","\\triangle");v(D,M,te,"Γ","\\Gamma",!0);v(D,M,te,"Δ","\\Delta",!0);v(D,M,te,"Θ","\\Theta",!0);v(D,M,te,"Λ","\\Lambda",!0);v(D,M,te,"Ξ","\\Xi",!0);v(D,M,te,"Π","\\Pi",!0);v(D,M,te,"Σ","\\Sigma",!0);v(D,M,te,"Υ","\\Upsilon",!0);v(D,M,te,"Φ","\\Phi",!0);v(D,M,te,"Ψ","\\Psi",!0);v(D,M,te,"Ω","\\Omega",!0);v(D,M,te,"A","Α");v(D,M,te,"B","Β");v(D,M,te,"E","Ε");v(D,M,te,"Z","Ζ");v(D,M,te,"H","Η");v(D,M,te,"I","Ι");v(D,M,te,"K","Κ");v(D,M,te,"M","Μ");v(D,M,te,"N","Ν");v(D,M,te,"O","Ο");v(D,M,te,"P","Ρ");v(D,M,te,"T","Τ");v(D,M,te,"X","Χ");v(D,M,te,"¬","\\neg",!0);v(D,M,te,"¬","\\lnot");v(D,M,te,"⊤","\\top");v(D,M,te,"⊥","\\bot");v(D,M,te,"∅","\\emptyset");v(D,q,te,"∅","\\varnothing");v(D,M,kt,"α","\\alpha",!0);v(D,M,kt,"β","\\beta",!0);v(D,M,kt,"γ","\\gamma",!0);v(D,M,kt,"δ","\\delta",!0);v(D,M,kt,"ϵ","\\epsilon",!0);v(D,M,kt,"ζ","\\zeta",!0);v(D,M,kt,"η","\\eta",!0);v(D,M,kt,"θ","\\theta",!0);v(D,M,kt,"ι","\\iota",!0);v(D,M,kt,"κ","\\kappa",!0);v(D,M,kt,"λ","\\lambda",!0);v(D,M,kt,"μ","\\mu",!0);v(D,M,kt,"ν","\\nu",!0);v(D,M,kt,"ξ","\\xi",!0);v(D,M,kt,"ο","\\omicron",!0);v(D,M,kt,"π","\\pi",!0);v(D,M,kt,"ρ","\\rho",!0);v(D,M,kt,"σ","\\sigma",!0);v(D,M,kt,"τ","\\tau",!0);v(D,M,kt,"υ","\\upsilon",!0);v(D,M,kt,"ϕ","\\phi",!0);v(D,M,kt,"χ","\\chi",!0);v(D,M,kt,"ψ","\\psi",!0);v(D,M,kt,"ω","\\omega",!0);v(D,M,kt,"ε","\\varepsilon",!0);v(D,M,kt,"ϑ","\\vartheta",!0);v(D,M,kt,"ϖ","\\varpi",!0);v(D,M,kt,"ϱ","\\varrho",!0);v(D,M,kt,"ς","\\varsigma",!0);v(D,M,kt,"φ","\\varphi",!0);v(D,M,Je,"∗","*",!0);v(D,M,Je,"+","+");v(D,M,Je,"−","-",!0);v(D,M,Je,"⋅","\\cdot",!0);v(D,M,Je,"∘","\\circ",!0);v(D,M,Je,"÷","\\div",!0);v(D,M,Je,"±","\\pm",!0);v(D,M,Je,"×","\\times",!0);v(D,M,Je,"∩","\\cap",!0);v(D,M,Je,"∪","\\cup",!0);v(D,M,Je,"∖","\\setminus",!0);v(D,M,Je,"∧","\\land");v(D,M,Je,"∨","\\lor");v(D,M,Je,"∧","\\wedge",!0);v(D,M,Je,"∨","\\vee",!0);v(D,M,te,"√","\\surd");v(D,M,Oa,"⟨","\\langle",!0);v(D,M,Oa,"∣","\\lvert");v(D,M,Oa,"∥","\\lVert");v(D,M,Ei,"?","?");v(D,M,Ei,"!","!");v(D,M,Ei,"⟩","\\rangle",!0);v(D,M,Ei,"∣","\\rvert");v(D,M,Ei,"∥","\\rVert");v(D,M,U,"=","=");v(D,M,U,":",":");v(D,M,U,"≈","\\approx",!0);v(D,M,U,"≅","\\cong",!0);v(D,M,U,"≥","\\ge");v(D,M,U,"≥","\\geq",!0);v(D,M,U,"←","\\gets");v(D,M,U,">","\\gt",!0);v(D,M,U,"∈","\\in",!0);v(D,M,U,"","\\@not");v(D,M,U,"⊂","\\subset",!0);v(D,M,U,"⊃","\\supset",!0);v(D,M,U,"⊆","\\subseteq",!0);v(D,M,U,"⊇","\\supseteq",!0);v(D,q,U,"⊈","\\nsubseteq",!0);v(D,q,U,"⊉","\\nsupseteq",!0);v(D,M,U,"⊨","\\models");v(D,M,U,"←","\\leftarrow",!0);v(D,M,U,"≤","\\le");v(D,M,U,"≤","\\leq",!0);v(D,M,U,"<","\\lt",!0);v(D,M,U,"→","\\rightarrow",!0);v(D,M,U,"→","\\to");v(D,q,U,"≱","\\ngeq",!0);v(D,q,U,"≰","\\nleq",!0);v(D,M,Jl," ","\\ ");v(D,M,Jl," ","\\space");v(D,M,Jl," ","\\nobreakspace");v(Te,M,Jl," ","\\ ");v(Te,M,Jl," "," ");v(Te,M,Jl," ","\\space");v(Te,M,Jl," ","\\nobreakspace");v(D,M,Jl,null,"\\nobreak");v(D,M,Jl,null,"\\allowbreak");v(D,M,g2,",",",");v(D,M,g2,";",";");v(D,q,Je,"⊼","\\barwedge",!0);v(D,q,Je,"⊻","\\veebar",!0);v(D,M,Je,"⊙","\\odot",!0);v(D,M,Je,"⊕","\\oplus",!0);v(D,M,Je,"⊗","\\otimes",!0);v(D,M,te,"∂","\\partial",!0);v(D,M,Je,"⊘","\\oslash",!0);v(D,q,Je,"⊚","\\circledcirc",!0);v(D,q,Je,"⊡","\\boxdot",!0);v(D,M,Je,"△","\\bigtriangleup");v(D,M,Je,"▽","\\bigtriangledown");v(D,M,Je,"†","\\dagger");v(D,M,Je,"⋄","\\diamond");v(D,M,Je,"⋆","\\star");v(D,M,Je,"◃","\\triangleleft");v(D,M,Je,"▹","\\triangleright");v(D,M,Oa,"{","\\{");v(Te,M,te,"{","\\{");v(Te,M,te,"{","\\textbraceleft");v(D,M,Ei,"}","\\}");v(Te,M,te,"}","\\}");v(Te,M,te,"}","\\textbraceright");v(D,M,Oa,"{","\\lbrace");v(D,M,Ei,"}","\\rbrace");v(D,M,Oa,"[","\\lbrack",!0);v(Te,M,te,"[","\\lbrack",!0);v(D,M,Ei,"]","\\rbrack",!0);v(Te,M,te,"]","\\rbrack",!0);v(D,M,Oa,"(","\\lparen",!0);v(D,M,Ei,")","\\rparen",!0);v(Te,M,te,"<","\\textless",!0);v(Te,M,te,">","\\textgreater",!0);v(D,M,Oa,"⌊","\\lfloor",!0);v(D,M,Ei,"⌋","\\rfloor",!0);v(D,M,Oa,"⌈","\\lceil",!0);v(D,M,Ei,"⌉","\\rceil",!0);v(D,M,te,"\\","\\backslash");v(D,M,te,"∣","|");v(D,M,te,"∣","\\vert");v(Te,M,te,"|","\\textbar",!0);v(D,M,te,"∥","\\|");v(D,M,te,"∥","\\Vert");v(Te,M,te,"∥","\\textbardbl");v(Te,M,te,"~","\\textasciitilde");v(Te,M,te,"\\","\\textbackslash");v(Te,M,te,"^","\\textasciicircum");v(D,M,U,"↑","\\uparrow",!0);v(D,M,U,"⇑","\\Uparrow",!0);v(D,M,U,"↓","\\downarrow",!0);v(D,M,U,"⇓","\\Downarrow",!0);v(D,M,U,"↕","\\updownarrow",!0);v(D,M,U,"⇕","\\Updownarrow",!0);v(D,M,_r,"∐","\\coprod");v(D,M,_r,"⋁","\\bigvee");v(D,M,_r,"⋀","\\bigwedge");v(D,M,_r,"⨄","\\biguplus");v(D,M,_r,"⋂","\\bigcap");v(D,M,_r,"⋃","\\bigcup");v(D,M,_r,"∫","\\int");v(D,M,_r,"∫","\\intop");v(D,M,_r,"∬","\\iint");v(D,M,_r,"∭","\\iiint");v(D,M,_r,"∏","\\prod");v(D,M,_r,"∑","\\sum");v(D,M,_r,"⨂","\\bigotimes");v(D,M,_r,"⨁","\\bigoplus");v(D,M,_r,"⨀","\\bigodot");v(D,M,_r,"∮","\\oint");v(D,M,_r,"∯","\\oiint");v(D,M,_r,"∰","\\oiiint");v(D,M,_r,"⨆","\\bigsqcup");v(D,M,_r,"∫","\\smallint");v(Te,M,Gp,"…","\\textellipsis");v(D,M,Gp,"…","\\mathellipsis");v(Te,M,Gp,"…","\\ldots",!0);v(D,M,Gp,"…","\\ldots",!0);v(D,M,Gp,"⋯","\\@cdots",!0);v(D,M,Gp,"⋱","\\ddots",!0);v(D,M,te,"⋮","\\varvdots");v(D,M,Vn,"ˊ","\\acute");v(D,M,Vn,"ˋ","\\grave");v(D,M,Vn,"¨","\\ddot");v(D,M,Vn,"~","\\tilde");v(D,M,Vn,"ˉ","\\bar");v(D,M,Vn,"˘","\\breve");v(D,M,Vn,"ˇ","\\check");v(D,M,Vn,"^","\\hat");v(D,M,Vn,"⃗","\\vec");v(D,M,Vn,"˙","\\dot");v(D,M,Vn,"˚","\\mathring");v(D,M,kt,"","\\@imath");v(D,M,kt,"","\\@jmath");v(D,M,te,"ı","ı");v(D,M,te,"ȷ","ȷ");v(Te,M,te,"ı","\\i",!0);v(Te,M,te,"ȷ","\\j",!0);v(Te,M,te,"ß","\\ss",!0);v(Te,M,te,"æ","\\ae",!0);v(Te,M,te,"œ","\\oe",!0);v(Te,M,te,"ø","\\o",!0);v(Te,M,te,"Æ","\\AE",!0);v(Te,M,te,"Œ","\\OE",!0);v(Te,M,te,"Ø","\\O",!0);v(Te,M,Vn,"ˊ","\\'");v(Te,M,Vn,"ˋ","\\`");v(Te,M,Vn,"ˆ","\\^");v(Te,M,Vn,"˜","\\~");v(Te,M,Vn,"ˉ","\\=");v(Te,M,Vn,"˘","\\u");v(Te,M,Vn,"˙","\\.");v(Te,M,Vn,"¸","\\c");v(Te,M,Vn,"˚","\\r");v(Te,M,Vn,"ˇ","\\v");v(Te,M,Vn,"¨",'\\"');v(Te,M,Vn,"˝","\\H");v(Te,M,Vn,"◯","\\textcircled");var JG={"--":!0,"---":!0,"``":!0,"''":!0};v(Te,M,te,"–","--",!0);v(Te,M,te,"–","\\textendash");v(Te,M,te,"—","---",!0);v(Te,M,te,"—","\\textemdash");v(Te,M,te,"‘","`",!0);v(Te,M,te,"‘","\\textquoteleft");v(Te,M,te,"’","'",!0);v(Te,M,te,"’","\\textquoteright");v(Te,M,te,"“","``",!0);v(Te,M,te,"“","\\textquotedblleft");v(Te,M,te,"”","''",!0);v(Te,M,te,"”","\\textquotedblright");v(D,M,te,"°","\\degree",!0);v(Te,M,te,"°","\\degree");v(Te,M,te,"°","\\textdegree",!0);v(D,M,te,"£","\\pounds");v(D,M,te,"£","\\mathsterling",!0);v(Te,M,te,"£","\\pounds");v(Te,M,te,"£","\\textsterling",!0);v(D,q,te,"✠","\\maltese");v(Te,q,te,"✠","\\maltese");var iL='0123456789/@."';for(var Q6=0;Q6<iL.length;Q6++){var aL=iL.charAt(Q6);v(D,M,te,aL,aL)}var oL='0123456789!@*()-=+";:?/.,';for(var e5=0;e5<oL.length;e5++){var sL=oL.charAt(e5);v(Te,M,te,sL,sL)}var hw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var t5=0;t5<hw.length;t5++){var d_=hw.charAt(t5);v(D,M,kt,d_,d_),v(Te,M,te,d_,d_)}v(D,q,te,"C","ℂ");v(Te,q,te,"C","ℂ");v(D,q,te,"H","ℍ");v(Te,q,te,"H","ℍ");v(D,q,te,"N","ℕ");v(Te,q,te,"N","ℕ");v(D,q,te,"P","ℙ");v(Te,q,te,"P","ℙ");v(D,q,te,"Q","ℚ");v(Te,q,te,"Q","ℚ");v(D,q,te,"R","ℝ");v(Te,q,te,"R","ℝ");v(D,q,te,"Z","ℤ");v(Te,q,te,"Z","ℤ");v(D,M,kt,"h","ℎ");v(Te,M,kt,"h","ℎ");var At="";for(var Mi=0;Mi<hw.length;Mi++){var dr=hw.charAt(Mi);At=String.fromCharCode(55349,56320+Mi),v(D,M,kt,dr,At),v(Te,M,te,dr,At),At=String.fromCharCode(55349,56372+Mi),v(D,M,kt,dr,At),v(Te,M,te,dr,At),At=String.fromCharCode(55349,56424+Mi),v(D,M,kt,dr,At),v(Te,M,te,dr,At),At=String.fromCharCode(55349,56580+Mi),v(D,M,kt,dr,At),v(Te,M,te,dr,At),At=String.fromCharCode(55349,56736+Mi),v(D,M,kt,dr,At),v(Te,M,te,dr,At),At=String.fromCharCode(55349,56788+Mi),v(D,M,kt,dr,At),v(Te,M,te,dr,At),At=String.fromCharCode(55349,56840+Mi),v(D,M,kt,dr,At),v(Te,M,te,dr,At),At=String.fromCharCode(55349,56944+Mi),v(D,M,kt,dr,At),v(Te,M,te,dr,At),Mi<26&&(At=String.fromCharCode(55349,56632+Mi),v(D,M,kt,dr,At),v(Te,M,te,dr,At),At=String.fromCharCode(55349,56476+Mi),v(D,M,kt,dr,At),v(Te,M,te,dr,At))}At=String.fromCharCode(55349,56668);v(D,M,kt,"k",At);v(Te,M,te,"k",At);for(var Yu=0;Yu<10;Yu++){var _c=Yu.toString();At=String.fromCharCode(55349,57294+Yu),v(D,M,kt,_c,At),v(Te,M,te,_c,At),At=String.fromCharCode(55349,57314+Yu),v(D,M,kt,_c,At),v(Te,M,te,_c,At),At=String.fromCharCode(55349,57324+Yu),v(D,M,kt,_c,At),v(Te,M,te,_c,At),At=String.fromCharCode(55349,57334+Yu),v(D,M,kt,_c,At),v(Te,M,te,_c,At)}var u7="ÐÞþ";for(var n5=0;n5<u7.length;n5++){var f_=u7.charAt(n5);v(D,M,kt,f_,f_),v(Te,M,te,f_,f_)}var h_=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["","",""],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],lL=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],m6t=function(t,n){var r=t.charCodeAt(0),i=t.charCodeAt(1),a=(r-55296)*1024+(i-56320)+65536,o=n==="math"?0:1;if(119808<=a&&a<120484){var s=Math.floor((a-119808)/26);return[h_[s][2],h_[s][o]]}else if(120782<=a&&a<=120831){var l=Math.floor((a-120782)/10);return[lL[l][2],lL[l][o]]}else{if(a===120485||a===120486)return[h_[0][2],h_[0][o]];if(120486<a&&a<120782)return["",""];throw new Oe("Unsupported character: "+t)}},y2=function(t,n,r){return zn[r][t]&&zn[r][t].replace&&(t=zn[r][t].replace),{value:t,metrics:vD(t,n,r)}},Io=function(t,n,r,i,a){var o=y2(t,n,r),s=o.metrics;t=o.value;var l;if(s){var c=s.italic;(r==="text"||i&&i.font==="mathit")&&(c=0),l=new go(t,s.height,s.depth,c,s.skew,s.width,a)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+n+"' and mode '"+r+"'")),l=new go(t,0,0,0,0,0,a);if(i){l.maxFontSize=i.sizeMultiplier,i.style.isTight()&&l.classes.push("mtight");var u=i.getColor();u&&(l.style.color=u)}return l},g6t=function(t,n,r,i){return i===void 0&&(i=[]),r.font==="boldsymbol"&&y2(t,"Main-Bold",n).metrics?Io(t,"Main-Bold",n,r,i.concat(["mathbf"])):t==="\\"||zn[n][t].font==="main"?Io(t,"Main-Regular",n,r,i):Io(t,"AMS-Regular",n,r,i.concat(["amsrm"]))},y6t=function(t,n,r,i,a){return a!=="textord"&&y2(t,"Math-BoldItalic",n).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},_6t=function(t,n,r){var i=t.mode,a=t.text,o=["mord"],s=i==="math"||i==="text"&&n.font,l=s?n.font:n.fontFamily;if(a.charCodeAt(0)===55349){var[c,u]=m6t(a,i);return Io(a,c,i,n,o.concat(u))}else if(l){var f,h;if(l==="boldsymbol"){var m=y6t(a,i,n,o,r);f=m.fontName,h=[m.fontClass]}else s?(f=tK[l].fontName,h=[l]):(f=p_(l,n.fontWeight,n.fontShape),h=[l,n.fontWeight,n.fontShape]);if(y2(a,f,i).metrics)return Io(a,f,i,n,o.concat(h));if(JG.hasOwnProperty(a)&&f.slice(0,10)==="Typewriter"){for(var g=[],b=0;b<a.length;b++)g.push(Io(a[b],f,i,n,o.concat(h)));return eK(g)}}if(r==="mathord")return Io(a,"Math-Italic",i,n,o.concat(["mathnormal"]));if(r==="textord"){var C=zn[i][a]&&zn[i][a].font;if(C==="ams"){var w=p_("amsrm",n.fontWeight,n.fontShape);return Io(a,w,i,n,o.concat("amsrm",n.fontWeight,n.fontShape))}else if(C==="main"||!C){var k=p_("textrm",n.fontWeight,n.fontShape);return Io(a,k,i,n,o.concat(n.fontWeight,n.fontShape))}else{var S=p_(C,n.fontWeight,n.fontShape);return Io(a,S,i,n,o.concat(S,n.fontWeight,n.fontShape))}}else throw new Error("unexpected type: "+r+" in makeOrd")},b6t=(e,t)=>{if(pu(e.classes)!==pu(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},k6t=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof go&&r instanceof go&&b6t(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e},CD=function(t){for(var n=0,r=0,i=0,a=0;a<t.children.length;a++){var o=t.children[a];o.height>n&&(n=o.height),o.depth>r&&(r=o.depth),o.maxFontSize>i&&(i=o.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=i},Ni=function(t,n,r,i){var a=new C1(t,n,r,i);return CD(a),a},QG=(e,t,n,r)=>new C1(e,t,n,r),w6t=function(t,n,r){var i=Ni([t],[],n);return i.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),i.style.borderBottomWidth=Le(i.height),i.maxFontSize=1,i},v6t=function(t,n,r,i){var a=new xD(t,n,r,i);return CD(a),a},eK=function(t){var n=new x1(t);return CD(n),n},x6t=function(t,n){return t instanceof x1?Ni([],[t],n):t},C6t=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],i=-n[0].shift-n[0].elem.depth,a=i,o=1;o<n.length;o++){var s=-n[o].shift-a-n[o].elem.depth,l=s-(n[o-1].elem.height+n[o-1].elem.depth);a=a+s,r.push({type:"kern",size:l}),r.push(n[o])}return{children:r,depth:i}}var c;if(t.positionType==="top"){for(var u=t.positionData,f=0;f<t.children.length;f++){var h=t.children[f];u-=h.type==="kern"?h.size:h.elem.height+h.elem.depth}c=u}else if(t.positionType==="bottom")c=-t.positionData;else{var m=t.children[0];if(m.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")c=-m.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")c=-m.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:c}},S6t=function(t,n){for(var{children:r,depth:i}=C6t(t),a=0,o=0;o<r.length;o++){var s=r[o];if(s.type==="elem"){var l=s.elem;a=Math.max(a,l.maxFontSize,l.height)}}a+=2;var c=Ni(["pstrut"],[]);c.style.height=Le(a);for(var u=[],f=i,h=i,m=i,g=0;g<r.length;g++){var b=r[g];if(b.type==="kern")m+=b.size;else{var C=b.elem,w=b.wrapperClasses||[],k=b.wrapperStyle||{},S=Ni(w,[c,C],void 0,k);S.style.top=Le(-a-m-C.depth),b.marginLeft&&(S.style.marginLeft=b.marginLeft),b.marginRight&&(S.style.marginRight=b.marginRight),u.push(S),m+=C.height+C.depth}f=Math.min(f,m),h=Math.max(h,m)}var E=Ni(["vlist"],u);E.style.height=Le(h);var A;if(f<0){var _=Ni([],[]),T=Ni(["vlist"],[_]);T.style.height=Le(-f);var $=Ni(["vlist-s"],[new go("​")]);A=[Ni(["vlist-r"],[E,$]),Ni(["vlist-r"],[T])]}else A=[Ni(["vlist-r"],[E])];var R=Ni(["vlist-t"],A);return A.length===2&&R.classes.push("vlist-t2"),R.height=h,R.depth=-f,R},D6t=(e,t)=>{var n=Ni(["mspace"],[],t),r=Kn(e,t);return n.style.marginRight=Le(r),n},p_=function(t,n,r){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var a;return n==="textbf"&&r==="textit"?a="BoldItalic":n==="textbf"?a="Bold":n==="textit"?a="Italic":a="Regular",i+"-"+a},tK={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},nK={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},E6t=function(t,n){var[r,i,a]=nK[t],o=new mu(r),s=new ql([o],{width:Le(i),height:Le(a),style:"width:"+Le(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),l=QG(["overlay"],[s],n);return l.height=a,l.style.height=Le(a),l.style.width=Le(i),l},le={fontMap:tK,makeSymbol:Io,mathsym:g6t,makeSpan:Ni,makeSvgSpan:QG,makeLineSpan:w6t,makeAnchor:v6t,makeFragment:eK,wrapFragment:x6t,makeVList:S6t,makeOrd:_6t,makeGlue:D6t,staticSvg:E6t,svgData:nK,tryCombineChars:k6t},Un={number:3,unit:"mu"},Zu={number:4,unit:"mu"},cl={number:5,unit:"mu"},T6t={mord:{mop:Un,mbin:Zu,mrel:cl,minner:Un},mop:{mord:Un,mop:Un,mrel:cl,minner:Un},mbin:{mord:Zu,mop:Zu,mopen:Zu,minner:Zu},mrel:{mord:cl,mop:cl,mopen:cl,minner:cl},mopen:{},mclose:{mop:Un,mbin:Zu,mrel:cl,minner:Un},mpunct:{mord:Un,mop:Un,mrel:cl,mopen:Un,mclose:Un,mpunct:Un,minner:Un},minner:{mord:Un,mop:Un,mbin:Zu,mrel:cl,mopen:Un,mpunct:Un,minner:Un}},A6t={mord:{mop:Un},mop:{mord:Un,mop:Un},mbin:{},mrel:{},mopen:{},mclose:{mop:Un},mpunct:{},minner:{mop:Un}},rK={},pw={},mw={};function Ke(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},l=0;l<n.length;++l)rK[n[l]]=s;t&&(a&&(pw[t]=a),o&&(mw[t]=o))}function yf(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;Ke({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:r})}var gw=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},lr=function(t){return t.type==="ordgroup"?t.body:[t]},Hl=le.makeSpan,z6t=["leftmost","mbin","mopen","mrel","mop","mpunct"],F6t=["rightmost","mrel","mclose","mpunct"],$6t={display:_t.DISPLAY,text:_t.TEXT,script:_t.SCRIPT,scriptscript:_t.SCRIPTSCRIPT},M6t={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Dr=function(t,n,r,i){i===void 0&&(i=[null,null]);for(var a=[],o=0;o<t.length;o++){var s=sn(t[o],n);if(s instanceof x1){var l=s.children;a.push(...l)}else a.push(s)}if(le.tryCombineChars(a),!r)return a;var c=n;if(t.length===1){var u=t[0];u.type==="sizing"?c=n.havingSize(u.size):u.type==="styling"&&(c=n.havingStyle($6t[u.style]))}var f=Hl([i[0]||"leftmost"],[],n),h=Hl([i[1]||"rightmost"],[],n),m=r==="root";return cL(a,(g,b)=>{var C=b.classes[0],w=g.classes[0];C==="mbin"&&Ct.contains(F6t,w)?b.classes[0]="mord":w==="mbin"&&Ct.contains(z6t,C)&&(g.classes[0]="mord")},{node:f},h,m),cL(a,(g,b)=>{var C=d7(b),w=d7(g),k=C&&w?g.hasClass("mtight")?A6t[C][w]:T6t[C][w]:null;if(k)return le.makeGlue(k,c)},{node:f},h,m),a},cL=function e(t,n,r,i,a){i&&t.push(i);for(var o=0;o<t.length;o++){var s=t[o],l=iK(s);if(l){e(l.children,n,r,null,a);continue}var c=!s.hasClass("mspace");if(c){var u=n(s,r.node);u&&(r.insertAfter?r.insertAfter(u):(t.unshift(u),o++))}c?r.node=s:a&&s.hasClass("newline")&&(r.node=Hl(["leftmost"])),r.insertAfter=(f=>h=>{t.splice(f+1,0,h),o++})(o)}i&&t.pop()},iK=function(t){return t instanceof x1||t instanceof xD||t instanceof C1&&t.hasClass("enclosing")?t:null},O6t=function e(t,n){var r=iK(t);if(r){var i=r.children;if(i.length){if(n==="right")return e(i[i.length-1],"right");if(n==="left")return e(i[0],"left")}}return t},d7=function(t,n){return t?(n&&(t=O6t(t,n)),M6t[t.classes[0]]||null):null},Tg=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return Hl(n.concat(r))},sn=function(t,n,r){if(!t)return Hl();if(pw[t.type]){var i=pw[t.type](t,n);if(r&&n.size!==r.size){i=Hl(n.sizingClasses(r),[i],n);var a=n.sizeMultiplier/r.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new Oe("Got group of unknown type: '"+t.type+"'")};function m_(e,t){var n=Hl(["base"],e,t),r=Hl(["strut"]);return r.style.height=Le(n.height+n.depth),n.depth&&(r.style.verticalAlign=Le(-n.depth)),n.children.unshift(r),n}function f7(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=Dr(e,t,"root"),i;r.length===2&&r[1].hasClass("tag")&&(i=r.pop());for(var a=[],o=[],s=0;s<r.length;s++)if(o.push(r[s]),r[s].hasClass("mbin")||r[s].hasClass("mrel")||r[s].hasClass("allowbreak")){for(var l=!1;s<r.length-1&&r[s+1].hasClass("mspace")&&!r[s+1].hasClass("newline");)s++,o.push(r[s]),r[s].hasClass("nobreak")&&(l=!0);l||(a.push(m_(o,t)),o=[])}else r[s].hasClass("newline")&&(o.pop(),o.length>0&&(a.push(m_(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(m_(o,t));var c;n?(c=m_(Dr(n,t,!0)),c.classes=["tag"],a.push(c)):i&&a.push(i);var u=Hl(["katex-html"],a);if(u.setAttribute("aria-hidden","true"),c){var f=c.children[0];f.style.height=Le(u.height+u.depth),u.depth&&(f.style.verticalAlign=Le(-u.depth))}return u}function aK(e){return new x1(e)}let ro=class{constructor(t,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=pu(this.classes));for(var r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t}toMarkup(){var t="<"+this.type;for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="',t+=Ct.escape(this.attributes[n]),t+='"');this.classes.length>0&&(t+=' class ="'+Ct.escape(pu(this.classes))+'"'),t+=">";for(var r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}};class Pm{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return Ct.escape(this.toText())}toText(){return this.text}}class N6t{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",Le(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Le(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var Fe={MathNode:ro,TextNode:Pm,SpaceNode:N6t,newDocumentFragment:aK},yo=function(t,n,r){return zn[n][t]&&zn[n][t].replace&&t.charCodeAt(0)!==55349&&!(JG.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=zn[n][t].replace),new Fe.TextNode(t)},SD=function(t){return t.length===1?t[0]:new Fe.MathNode("mrow",t)},DD=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var i=t.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var a=t.text;if(Ct.contains(["\\imath","\\jmath"],a))return null;zn[i][a]&&zn[i][a].replace&&(a=zn[i][a].replace);var o=le.fontMap[r].fontName;return vD(a,o,i)?le.fontMap[r].variant:null},na=function(t,n,r){if(t.length===1){var i=Sn(t[0],n);return r&&i instanceof ro&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],o,s=0;s<t.length;s++){var l=Sn(t[s],n);if(l instanceof ro&&o instanceof ro){if(l.type==="mtext"&&o.type==="mtext"&&l.getAttribute("mathvariant")===o.getAttribute("mathvariant")){o.children.push(...l.children);continue}else if(l.type==="mn"&&o.type==="mn"){o.children.push(...l.children);continue}else if(l.type==="mi"&&l.children.length===1&&o.type==="mn"){var c=l.children[0];if(c instanceof Pm&&c.text==="."){o.children.push(...l.children);continue}}else if(o.type==="mi"&&o.children.length===1){var u=o.children[0];if(u instanceof Pm&&u.text==="̸"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var f=l.children[0];f instanceof Pm&&f.text.length>0&&(f.text=f.text.slice(0,1)+"̸"+f.text.slice(1),a.pop())}}}a.push(l),o=l}return a},gu=function(t,n,r){return SD(na(t,n,r))},Sn=function(t,n){if(!t)return new Fe.MathNode("mrow");if(mw[t.type]){var r=mw[t.type](t,n);return r}else throw new Oe("Got group of unknown type: '"+t.type+"'")};function uL(e,t,n,r,i){var a=na(e,n),o;a.length===1&&a[0]instanceof ro&&Ct.contains(["mrow","mtable"],a[0].type)?o=a[0]:o=new Fe.MathNode("mrow",a);var s=new Fe.MathNode("annotation",[new Fe.TextNode(t)]);s.setAttribute("encoding","application/x-tex");var l=new Fe.MathNode("semantics",[o,s]),c=new Fe.MathNode("math",[l]);c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&c.setAttribute("display","block");var u=i?"katex":"katex-mathml";return le.makeSpan([u],[c])}var oK=function(t){return new wl({style:t.displayMode?_t.DISPLAY:_t.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},sK=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=le.makeSpan(r,[t])}return t},L6t=function(t,n,r){var i=oK(r),a;if(r.output==="mathml")return uL(t,n,i,r.displayMode,!0);if(r.output==="html"){var o=f7(t,i);a=le.makeSpan(["katex"],[o])}else{var s=uL(t,n,i,r.displayMode,!1),l=f7(t,i);a=le.makeSpan(["katex"],[s,l])}return sK(a,r)},I6t=function(t,n,r){var i=oK(r),a=f7(t,i),o=le.makeSpan(["katex"],[a]);return sK(o,r)},B6t={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},R6t=function(t){var n=new Fe.MathNode("mo",[new Fe.TextNode(B6t[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},P6t={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},j6t=function(t){return t.type==="ordgroup"?t.body.length:1},V6t=function(t,n){function r(){var s=4e5,l=t.label.slice(1);if(Ct.contains(["widehat","widecheck","widetilde","utilde"],l)){var c=t,u=j6t(c.base),f,h,m;if(u>5)l==="widehat"||l==="widecheck"?(f=420,s=2364,m=.42,h=l+"4"):(f=312,s=2340,m=.34,h="tilde4");else{var g=[1,1,2,2,3,3][u];l==="widehat"||l==="widecheck"?(s=[0,1062,2364,2364,2364][g],f=[0,239,300,360,420][g],m=[0,.24,.3,.3,.36,.42][g],h=l+g):(s=[0,600,1033,2339,2340][g],f=[0,260,286,306,312][g],m=[0,.26,.286,.3,.306,.34][g],h="tilde"+g)}var b=new mu(h),C=new ql([b],{width:"100%",height:Le(m),viewBox:"0 0 "+s+" "+f,preserveAspectRatio:"none"});return{span:le.makeSvgSpan([],[C],n),minWidth:0,height:m}}else{var w=[],k=P6t[l],[S,E,A]=k,_=A/1e3,T=S.length,$,R;if(T===1){var O=k[3];$=["hide-tail"],R=[O]}else if(T===2)$=["halfarrow-left","halfarrow-right"],R=["xMinYMin","xMaxYMin"];else if(T===3)$=["brace-left","brace-center","brace-right"],R=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support + `+T+" children.");for(var G=0;G<T;G++){var V=new mu(S[G]),Z=new ql([V],{width:"400em",height:Le(_),viewBox:"0 0 "+s+" "+A,preserveAspectRatio:R[G]+" slice"}),W=le.makeSvgSpan([$[G]],[Z],n);if(T===1)return{span:W,minWidth:E,height:_};W.style.height=Le(_),w.push(W)}return{span:le.makeSpan(["stretchy"],w,n),minWidth:E,height:_}}}var{span:i,minWidth:a,height:o}=r();return i.height=o,i.style.height=Le(o),a>0&&(i.style.minWidth=Le(a)),i},q6t=function(t,n,r,i,a){var o,s=t.height+t.depth+r+i;if(/fbox|color|angl/.test(n)){if(o=le.makeSpan(["stretchy",n],[],a),n==="fbox"){var l=a.color&&a.getColor();l&&(o.style.borderColor=l)}}else{var c=[];/^[bx]cancel$/.test(n)&&c.push(new c7({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&c.push(new c7({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var u=new ql(c,{width:"100%",height:Le(s)});o=le.makeSvgSpan([],[u],a)}return o.height=s,o.style.height=Le(s),o},Ul={encloseSpan:q6t,mathMLnode:R6t,svgSpan:V6t};function qt(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function ED(e){var t=_2(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function _2(e){return e&&(e.type==="atom"||p6t.hasOwnProperty(e.type))?e:null}var TD=(e,t)=>{var n,r,i;e&&e.type==="supsub"?(r=qt(e.base,"accent"),n=r.base,e.base=n,i=f6t(sn(e,t)),e.base=r):(r=qt(e,"accent"),n=r.base);var a=sn(n,t.havingCrampedStyle()),o=r.isShifty&&Ct.isCharacterBox(n),s=0;if(o){var l=Ct.getBaseElem(n),c=sn(l,t.havingCrampedStyle());s=rL(c).skew}var u=r.label==="\\c",f=u?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),h;if(r.isStretchy)h=Ul.svgSpan(r,t),h=le.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:h,wrapperClasses:["svg-align"],wrapperStyle:s>0?{width:"calc(100% - "+Le(2*s)+")",marginLeft:Le(2*s)}:void 0}]},t);else{var m,g;r.label==="\\vec"?(m=le.staticSvg("vec",t),g=le.svgData.vec[1]):(m=le.makeOrd({mode:r.mode,text:r.label},t,"textord"),m=rL(m),m.italic=0,g=m.width,u&&(f+=m.depth)),h=le.makeSpan(["accent-body"],[m]);var b=r.label==="\\textcircled";b&&(h.classes.push("accent-full"),f=a.height);var C=s;b||(C-=g/2),h.style.left=Le(C),r.label==="\\textcircled"&&(h.style.top=".2em"),h=le.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-f},{type:"elem",elem:h}]},t)}var w=le.makeSpan(["mord","accent"],[h],t);return i?(i.children[0]=w,i.height=Math.max(w.height,i.height),i.classes[0]="mord",i):w},lK=(e,t)=>{var n=e.isStretchy?Ul.mathMLnode(e.label):new Fe.MathNode("mo",[yo(e.label,e.mode)]),r=new Fe.MathNode("mover",[Sn(e.base,t),n]);return r.setAttribute("accent","true"),r},H6t=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));Ke({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=gw(t[0]),r=!H6t.test(e.funcName),i=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:TD,mathmlBuilder:lK});Ke({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:TD,mathmlBuilder:lK});Ke({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=sn(e.base,t),r=Ul.svgSpan(e,t),i=e.label==="\\utilde"?.12:0,a=le.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]},t);return le.makeSpan(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var n=Ul.mathMLnode(e.label),r=new Fe.MathNode("munder",[Sn(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var g_=e=>{var t=new Fe.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};Ke({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:"xArrow",mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=le.wrapFragment(sn(e.body,r,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var o;e.below&&(r=t.havingStyle(n.sub()),o=le.wrapFragment(sn(e.below,r,t),t),o.classes.push(a+"-arrow-pad"));var s=Ul.svgSpan(e,t),l=-t.fontMetrics().axisHeight+.5*s.height,c=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(c-=i.depth);var u;if(o){var f=-t.fontMetrics().axisHeight+o.height+.5*s.height+.111;u=le.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:c},{type:"elem",elem:s,shift:l},{type:"elem",elem:o,shift:f}]},t)}else u=le.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:c},{type:"elem",elem:s,shift:l}]},t);return u.children[0].children[0].children[1].classes.push("svg-align"),le.makeSpan(["mrel","x-arrow"],[u],t)},mathmlBuilder(e,t){var n=Ul.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var i=g_(Sn(e.body,t));if(e.below){var a=g_(Sn(e.below,t));r=new Fe.MathNode("munderover",[n,a,i])}else r=new Fe.MathNode("mover",[n,i])}else if(e.below){var o=g_(Sn(e.below,t));r=new Fe.MathNode("munder",[n,o])}else r=g_(),r=new Fe.MathNode("mover",[n,r]);return r}});var U6t=le.makeSpan;function cK(e,t){var n=Dr(e.body,t,!0);return U6t([e.mclass],n,t)}function uK(e,t){var n,r=na(e.body,t);return e.mclass==="minner"?n=new Fe.MathNode("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new Fe.MathNode("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new Fe.MathNode("mo",r),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}Ke({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:lr(i),isCharacterBox:Ct.isCharacterBox(i)}},htmlBuilder:cK,mathmlBuilder:uK});var b2=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};Ke({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:b2(t[0]),body:lr(t[1]),isCharacterBox:Ct.isCharacterBox(t[1])}}});Ke({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],o;r!=="\\stackrel"?o=b2(i):o="mrel";var s={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:lr(i)},l={type:"supsub",mode:a.mode,base:s,sup:r==="\\underset"?null:a,sub:r==="\\underset"?a:null};return{type:"mclass",mode:n.mode,mclass:o,body:[l],isCharacterBox:Ct.isCharacterBox(l)}},htmlBuilder:cK,mathmlBuilder:uK});Ke({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:b2(t[0]),body:lr(t[0])}},htmlBuilder(e,t){var n=Dr(e.body,t,!0),r=le.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=na(e.body,t),r=new Fe.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var W6t={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},dL=()=>({type:"styling",body:[],mode:"math",style:"display"}),fL=e=>e.type==="textord"&&e.text==="@",G6t=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function K6t(e,t,n){var r=W6t[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=n.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:r,mode:"math",family:"rel"},o=n.callFunction("\\Big",[a],[]),s=n.callFunction("\\\\cdright",[t[1]],[]),l={type:"ordgroup",mode:"math",body:[i,o,s]};return n.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var c={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[c],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Y6t(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new Oe("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],i=[r],a=0;a<t.length;a++){for(var o=t[a],s=dL(),l=0;l<o.length;l++)if(!fL(o[l]))s.body.push(o[l]);else{r.push(s),l+=1;var c=ED(o[l]).text,u=new Array(2);if(u[0]={type:"ordgroup",mode:"math",body:[]},u[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(c)>-1))if("<>AV".indexOf(c)>-1)for(var f=0;f<2;f++){for(var h=!0,m=l+1;m<o.length;m++){if(G6t(o[m],c)){h=!1,l=m;break}if(fL(o[m]))throw new Oe("Missing a "+c+" character to complete a CD arrow.",o[m]);u[f].body.push(o[m])}if(h)throw new Oe("Missing a "+c+" character to complete a CD arrow.",o[l])}else throw new Oe('Expected one of "<>AV=|." after @',o[l]);var g=K6t(c,u,e),b={type:"styling",body:[g],mode:"math",style:"display"};r.push(b),s=dL()}a%2===0?r.push(s):r.shift(),r=[],i.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var C=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:C,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}Ke({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=le.wrapFragment(sn(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=Le(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new Fe.MathNode("mrow",[Sn(e.label,t)]);return n=new Fe.MathNode("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new Fe.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});Ke({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=le.wrapFragment(sn(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new Fe.MathNode("mrow",[Sn(e.fragment,t)])}});Ke({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=qt(t[0],"ordgroup"),i=r.body,a="",o=0;o<i.length;o++){var s=qt(i[o],"textord");a+=s.text}var l=parseInt(a),c;if(isNaN(l))throw new Oe("\\@char has non-numeric argument "+a);if(l<0||l>=1114111)throw new Oe("\\@char with invalid code point "+a);return l<=65535?c=String.fromCharCode(l):(l-=65536,c=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:n.mode,text:c}}});var dK=(e,t)=>{var n=Dr(e.body,t.withColor(e.color),!1);return le.makeFragment(n)},fK=(e,t)=>{var n=na(e.body,t.withColor(e.color)),r=new Fe.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};Ke({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=qt(t[0],"color-token").color,i=t[1];return{type:"color",mode:n.mode,color:r,body:lr(i)}},htmlBuilder:dK,mathmlBuilder:fK});Ke({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=qt(t[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var a=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:a}},htmlBuilder:dK,mathmlBuilder:fK});Ke({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:a,size:i&&qt(i,"size").value}},htmlBuilder(e,t){var n=le.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=Le(Kn(e.size,t)))),n},mathmlBuilder(e,t){var n=new Fe.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",Le(Kn(e.size,t)))),n}});var h7={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},hK=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Oe("Expected a control sequence",e);return t},Z6t=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},pK=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i==null&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};Ke({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(h7[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=h7[r.text]),qt(t.parseFunction(),"internal");throw new Oe("Invalid token after macro prefix",r)}});Ke({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new Oe("Expected a control sequence",r);for(var a=0,o,s=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){o=t.gullet.future(),s[a].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new Oe('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==a+1)throw new Oe('Argument number "'+r.text+'" out of order');a++,s.push([])}else{if(r.text==="EOF")throw new Oe("Expected a macro definition");s[a].push(r.text)}var{tokens:l}=t.gullet.consumeArg();return o&&l.unshift(o),(n==="\\edef"||n==="\\xdef")&&(l=t.gullet.expandTokens(l),l.reverse()),t.gullet.macros.set(i,{tokens:l,numArgs:a,delimiters:s},n===h7[n]),{type:"internal",mode:t.mode}}});Ke({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=hK(t.gullet.popToken());t.gullet.consumeSpaces();var i=Z6t(t);return pK(t,r,i,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});Ke({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=hK(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return pK(t,r,a,n==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var lm=function(t,n,r){var i=zn.math[t]&&zn.math[t].replace,a=vD(i||t,n,r);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return a},AD=function(t,n,r,i){var a=r.havingBaseStyle(n),o=le.makeSpan(i.concat(a.sizingClasses(r)),[t],r),s=a.sizeMultiplier/r.sizeMultiplier;return o.height*=s,o.depth*=s,o.maxFontSize=a.sizeMultiplier,o},mK=function(t,n,r){var i=n.havingBaseStyle(r),a=(1-n.sizeMultiplier/i.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Le(a),t.height-=a,t.depth+=a},X6t=function(t,n,r,i,a,o){var s=le.makeSymbol(t,"Main-Regular",a,i),l=AD(s,n,i,o);return r&&mK(l,i,n),l},J6t=function(t,n,r,i){return le.makeSymbol(t,"Size"+n+"-Regular",r,i)},gK=function(t,n,r,i,a,o){var s=J6t(t,n,a,i),l=AD(le.makeSpan(["delimsizing","size"+n],[s],i),_t.TEXT,i,o);return r&&mK(l,i,_t.TEXT),l},r5=function(t,n,r){var i;n==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=le.makeSpan(["delimsizinginner",i],[le.makeSpan([],[le.makeSymbol(t,n,r)])]);return{type:"elem",elem:a}},i5=function(t,n,r){var i=Cs["Size4-Regular"][t.charCodeAt(0)]?Cs["Size4-Regular"][t.charCodeAt(0)][4]:Cs["Size1-Regular"][t.charCodeAt(0)][4],a=new mu("inner",i6t(t,Math.round(1e3*n))),o=new ql([a],{width:Le(i),height:Le(n),style:"width:"+Le(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),s=le.makeSvgSpan([],[o],r);return s.height=n,s.style.height=Le(n),s.style.width=Le(i),{type:"elem",elem:s}},p7=.008,y_={type:"kern",size:-1*p7},Q6t=["|","\\lvert","\\rvert","\\vert"],e5t=["\\|","\\lVert","\\rVert","\\Vert"],yK=function(t,n,r,i,a,o){var s,l,c,u,f="",h=0;s=c=u=t,l=null;var m="Size1-Regular";t==="\\uparrow"?c=u="⏐":t==="\\Uparrow"?c=u="‖":t==="\\downarrow"?s=c="⏐":t==="\\Downarrow"?s=c="‖":t==="\\updownarrow"?(s="\\uparrow",c="⏐",u="\\downarrow"):t==="\\Updownarrow"?(s="\\Uparrow",c="‖",u="\\Downarrow"):Ct.contains(Q6t,t)?(c="∣",f="vert",h=333):Ct.contains(e5t,t)?(c="∥",f="doublevert",h=556):t==="["||t==="\\lbrack"?(s="⎡",c="⎢",u="⎣",m="Size4-Regular",f="lbrack",h=667):t==="]"||t==="\\rbrack"?(s="⎤",c="⎥",u="⎦",m="Size4-Regular",f="rbrack",h=667):t==="\\lfloor"||t==="⌊"?(c=s="⎢",u="⎣",m="Size4-Regular",f="lfloor",h=667):t==="\\lceil"||t==="⌈"?(s="⎡",c=u="⎢",m="Size4-Regular",f="lceil",h=667):t==="\\rfloor"||t==="⌋"?(c=s="⎥",u="⎦",m="Size4-Regular",f="rfloor",h=667):t==="\\rceil"||t==="⌉"?(s="⎤",c=u="⎥",m="Size4-Regular",f="rceil",h=667):t==="("||t==="\\lparen"?(s="⎛",c="⎜",u="⎝",m="Size4-Regular",f="lparen",h=875):t===")"||t==="\\rparen"?(s="⎞",c="⎟",u="⎠",m="Size4-Regular",f="rparen",h=875):t==="\\{"||t==="\\lbrace"?(s="⎧",l="⎨",u="⎩",c="⎪",m="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(s="⎫",l="⎬",u="⎭",c="⎪",m="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(s="⎧",u="⎩",c="⎪",m="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(s="⎫",u="⎭",c="⎪",m="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(s="⎧",u="⎭",c="⎪",m="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(s="⎫",u="⎩",c="⎪",m="Size4-Regular");var g=lm(s,m,a),b=g.height+g.depth,C=lm(c,m,a),w=C.height+C.depth,k=lm(u,m,a),S=k.height+k.depth,E=0,A=1;if(l!==null){var _=lm(l,m,a);E=_.height+_.depth,A=2}var T=b+S+E,$=Math.max(0,Math.ceil((n-T)/(A*w))),R=T+$*A*w,O=i.fontMetrics().axisHeight;r&&(O*=i.sizeMultiplier);var G=R/2-O,V=[];if(f.length>0){var Z=R-b-S,W=Math.round(R*1e3),Y=a6t(f,Math.round(Z*1e3)),fe=new mu(f,Y),ae=(h/1e3).toFixed(3)+"em",Q=(W/1e3).toFixed(3)+"em",ce=new ql([fe],{width:ae,height:Q,viewBox:"0 0 "+h+" "+W}),L=le.makeSvgSpan([],[ce],i);L.height=W/1e3,L.style.width=ae,L.style.height=Q,V.push({type:"elem",elem:L})}else{if(V.push(r5(u,m,a)),V.push(y_),l===null){var de=R-b-S+2*p7;V.push(i5(c,de,i))}else{var ue=(R-b-S-E)/2+2*p7;V.push(i5(c,ue,i)),V.push(y_),V.push(r5(l,m,a)),V.push(y_),V.push(i5(c,ue,i))}V.push(y_),V.push(r5(s,m,a))}var I=i.havingBaseStyle(_t.TEXT),be=le.makeVList({positionType:"bottom",positionData:G,children:V},I);return AD(le.makeSpan(["delimsizing","mult"],[be],I),_t.TEXT,i,o)},a5=80,o5=.08,s5=function(t,n,r,i,a){var o=r6t(t,i,r),s=new mu(t,o),l=new ql([s],{width:"400em",height:Le(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return le.makeSvgSpan(["hide-tail"],[l],a)},t5t=function(t,n){var r=n.havingBaseSizing(),i=wK("\\surd",t*r.sizeMultiplier,kK,r),a=r.sizeMultiplier,o=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),s,l=0,c=0,u=0,f;return i.type==="small"?(u=1e3+1e3*o+a5,t<1?a=1:t<1.4&&(a=.7),l=(1+o+o5)/a,c=(1+o)/a,s=s5("sqrtMain",l,u,o,n),s.style.minWidth="0.853em",f=.833/a):i.type==="large"?(u=(1e3+a5)*jm[i.size],c=(jm[i.size]+o)/a,l=(jm[i.size]+o+o5)/a,s=s5("sqrtSize"+i.size,l,u,o,n),s.style.minWidth="1.02em",f=1/a):(l=t+o+o5,c=t+o,u=Math.floor(1e3*t+o)+a5,s=s5("sqrtTall",l,u,o,n),s.style.minWidth="0.742em",f=1.056),s.height=c,s.style.height=Le(l),{span:s,advanceWidth:f,ruleWidth:(n.fontMetrics().sqrtRuleThickness+o)*a}},_K=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],n5t=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],bK=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],jm=[0,1.2,1.8,2.4,3],r5t=function(t,n,r,i,a){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),Ct.contains(_K,t)||Ct.contains(bK,t))return gK(t,n,!1,r,i,a);if(Ct.contains(n5t,t))return yK(t,jm[n],!1,r,i,a);throw new Oe("Illegal delimiter: '"+t+"'")},i5t=[{type:"small",style:_t.SCRIPTSCRIPT},{type:"small",style:_t.SCRIPT},{type:"small",style:_t.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],a5t=[{type:"small",style:_t.SCRIPTSCRIPT},{type:"small",style:_t.SCRIPT},{type:"small",style:_t.TEXT},{type:"stack"}],kK=[{type:"small",style:_t.SCRIPTSCRIPT},{type:"small",style:_t.SCRIPT},{type:"small",style:_t.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],o5t=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},wK=function(t,n,r,i){for(var a=Math.min(2,3-i.style.size),o=a;o<r.length&&r[o].type!=="stack";o++){var s=lm(t,o5t(r[o]),"math"),l=s.height+s.depth;if(r[o].type==="small"){var c=i.havingBaseStyle(r[o].style);l*=c.sizeMultiplier}if(l>n)return r[o]}return r[r.length-1]},vK=function(t,n,r,i,a,o){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var s;Ct.contains(bK,t)?s=i5t:Ct.contains(_K,t)?s=kK:s=a5t;var l=wK(t,n,s,i);return l.type==="small"?X6t(t,l.style,r,i,a,o):l.type==="large"?gK(t,l.size,r,i,a,o):yK(t,n,r,i,a,o)},s5t=function(t,n,r,i,a,o){var s=i.fontMetrics().axisHeight*i.sizeMultiplier,l=901,c=5/i.fontMetrics().ptPerEm,u=Math.max(n-s,r+s),f=Math.max(u/500*l,2*u-c);return vK(t,f,!0,i,a,o)},Ml={sqrtImage:t5t,sizedDelim:r5t,sizeToMaxHeight:jm,customSizedDelim:vK,leftRightDelim:s5t},hL={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},l5t=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function k2(e,t){var n=_2(e);if(n&&Ct.contains(l5t,n.text))return n;throw n?new Oe("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new Oe("Invalid delimiter type '"+e.type+"'",e)}Ke({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=k2(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:hL[e.funcName].size,mclass:hL[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?le.makeSpan([e.mclass]):Ml.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(yo(e.delim,e.mode));var n=new Fe.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=Le(Ml.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function pL(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Ke({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new Oe("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:k2(t[0],e).text,color:n}}});Ke({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=k2(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var a=qt(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{pL(e);for(var n=Dr(e.body,t,!0,["mopen","mclose"]),r=0,i=0,a=!1,o=0;o<n.length;o++)n[o].isMiddle?a=!0:(r=Math.max(n[o].height,r),i=Math.max(n[o].depth,i));r*=t.sizeMultiplier,i*=t.sizeMultiplier;var s;if(e.left==="."?s=Tg(t,["mopen"]):s=Ml.leftRightDelim(e.left,r,i,t,e.mode,["mopen"]),n.unshift(s),a)for(var l=1;l<n.length;l++){var c=n[l],u=c.isMiddle;u&&(n[l]=Ml.leftRightDelim(u.delim,r,i,u.options,e.mode,[]))}var f;if(e.right===".")f=Tg(t,["mclose"]);else{var h=e.rightColor?t.withColor(e.rightColor):t;f=Ml.leftRightDelim(e.right,r,i,h,e.mode,["mclose"])}return n.push(f),le.makeSpan(["minner"],n,t)},mathmlBuilder:(e,t)=>{pL(e);var n=na(e.body,t);if(e.left!=="."){var r=new Fe.MathNode("mo",[yo(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var i=new Fe.MathNode("mo",[yo(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),n.push(i)}return SD(n)}});Ke({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=k2(t[0],e);if(!e.parser.leftrightDepth)throw new Oe("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=Tg(t,[]);else{n=Ml.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?yo("|","text"):yo(e.delim,e.mode),r=new Fe.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var zD=(e,t)=>{var n=le.wrapFragment(sn(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o=0,s=Ct.isCharacterBox(e.body);if(r==="sout")a=le.makeSpan(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var l=Kn({number:.6,unit:"pt"},t),c=Kn({number:.35,unit:"ex"},t),u=t.havingBaseSizing();i=i/u.sizeMultiplier;var f=n.height+n.depth+l+c;n.style.paddingLeft=Le(f/2+l);var h=Math.floor(1e3*f*i),m=t6t(h),g=new ql([new mu("phase",m)],{width:"400em",height:Le(h/1e3),viewBox:"0 0 400000 "+h,preserveAspectRatio:"xMinYMin slice"});a=le.makeSvgSpan(["hide-tail"],[g],t),a.style.height=Le(f),o=n.depth+l+c}else{/cancel/.test(r)?s||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var b=0,C=0,w=0;/box/.test(r)?(w=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),b=t.fontMetrics().fboxsep+(r==="colorbox"?0:w),C=b):r==="angl"?(w=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),b=4*w,C=Math.max(0,.25-n.depth)):(b=s?.2:0,C=b),a=Ul.encloseSpan(n,r,b,C,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle="solid",a.style.borderWidth=Le(w)):r==="angl"&&w!==.049&&(a.style.borderTopWidth=Le(w),a.style.borderRightWidth=Le(w)),o=n.depth+C,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var k;if(e.backgroundColor)k=le.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:o},{type:"elem",elem:n,shift:0}]},t);else{var S=/cancel|phase/.test(r)?["svg-align"]:[];k=le.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:a,shift:o,wrapperClasses:S}]},t)}return/cancel/.test(r)&&(k.height=n.height,k.depth=n.depth),/cancel/.test(r)&&!s?le.makeSpan(["mord","cancel-lap"],[k],t):le.makeSpan(["mord"],[k],t)},FD=(e,t)=>{var n=0,r=new Fe.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Sn(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};Ke({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=qt(t[0],"color-token").color,o=t[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:zD,mathmlBuilder:FD});Ke({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=qt(t[0],"color-token").color,o=qt(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}},htmlBuilder:zD,mathmlBuilder:FD});Ke({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});Ke({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:zD,mathmlBuilder:FD});Ke({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var xK={};function Vs(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l<n.length;++l)xK[n[l]]=s;a&&(pw[t]=a),o&&(mw[t]=o)}var CK={};function B(e,t){CK[e]=t}function mL(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n==="\\relax"&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n==="\\hline"||n==="\\hdashline";)e.consume(),t.push(n==="\\hdashline"),e.consumeSpaces(),n=e.fetch().text;return t}var w2=e=>{var t=e.parser.settings;if(!t.displayMode)throw new Oe("{"+e.envName+"} can be used only in display mode.")};function $D(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function Mu(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:o,colSeparationType:s,autoTag:l,singleRow:c,emptySingleRow:u,maxNumCols:f,leqno:h}=t;if(e.gullet.beginGroup(),c||e.gullet.macros.set("\\cr","\\\\\\relax"),!o){var m=e.gullet.expandMacroAsText("\\arraystretch");if(m==null)o=1;else if(o=parseFloat(m),!o||o<0)throw new Oe("Invalid \\arraystretch: "+m)}e.gullet.beginGroup();var g=[],b=[g],C=[],w=[],k=l!=null?[]:void 0;function S(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function E(){k&&(e.gullet.macros.get("\\df@tag")?(k.push(e.subparse([new au("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):k.push(!!l&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(S(),w.push(mL(e));;){var A=e.parseExpression(!1,c?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),A={type:"ordgroup",mode:e.mode,body:A},n&&(A={type:"styling",mode:e.mode,style:n,body:[A]}),g.push(A);var _=e.fetch().text;if(_==="&"){if(f&&g.length===f){if(c||s)throw new Oe("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(_==="\\end"){E(),g.length===1&&A.type==="styling"&&A.body[0].body.length===0&&(b.length>1||!u)&&b.pop(),w.length<b.length+1&&w.push([]);break}else if(_==="\\\\"){e.consume();var T=void 0;e.gullet.future().text!==" "&&(T=e.parseSizeGroup(!0)),C.push(T?T.value:null),E(),w.push(mL(e)),g=[],b.push(g),S()}else throw new Oe("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:i,arraystretch:o,body:b,cols:a,rowGaps:C,hskipBeforeAndAfter:r,hLinesBeforeRow:w,colSeparationType:s,tags:k,leqno:h}}function MD(e){return e.slice(0,1)==="d"?"display":"text"}var qs=function(t,n){var r,i,a=t.body.length,o=t.hLinesBeforeRow,s=0,l=new Array(a),c=[],u=Math.max(n.fontMetrics().arrayRuleWidth,n.minRuleThickness),f=1/n.fontMetrics().ptPerEm,h=5*f;if(t.colSeparationType&&t.colSeparationType==="small"){var m=n.havingStyle(_t.SCRIPT).sizeMultiplier;h=.2778*(m/n.sizeMultiplier)}var g=t.colSeparationType==="CD"?Kn({number:3,unit:"ex"},n):12*f,b=3*f,C=t.arraystretch*g,w=.7*C,k=.3*C,S=0;function E(he){for(var Ie=0;Ie<he.length;++Ie)Ie>0&&(S+=.25),c.push({pos:S,isDashed:he[Ie]})}for(E(o[0]),r=0;r<t.body.length;++r){var A=t.body[r],_=w,T=k;s<A.length&&(s=A.length);var $=new Array(A.length);for(i=0;i<A.length;++i){var R=sn(A[i],n);T<R.depth&&(T=R.depth),_<R.height&&(_=R.height),$[i]=R}var O=t.rowGaps[r],G=0;O&&(G=Kn(O,n),G>0&&(G+=k,T<G&&(T=G),G=0)),t.addJot&&(T+=b),$.height=_,$.depth=T,S+=_,$.pos=S,S+=T+G,l[r]=$,E(o[r+1])}var V=S/2+n.fontMetrics().axisHeight,Z=t.cols||[],W=[],Y,fe,ae=[];if(t.tags&&t.tags.some(he=>he))for(r=0;r<a;++r){var Q=l[r],ce=Q.pos-V,L=t.tags[r],de=void 0;L===!0?de=le.makeSpan(["eqn-num"],[],n):L===!1?de=le.makeSpan([],[],n):de=le.makeSpan([],Dr(L,n,!0),n),de.depth=Q.depth,de.height=Q.height,ae.push({type:"elem",elem:de,shift:ce})}for(i=0,fe=0;i<s||fe<Z.length;++i,++fe){for(var ue=Z[fe]||{},I=!0;ue.type==="separator";){if(I||(Y=le.makeSpan(["arraycolsep"],[]),Y.style.width=Le(n.fontMetrics().doubleRuleSep),W.push(Y)),ue.separator==="|"||ue.separator===":"){var be=ue.separator==="|"?"solid":"dashed",ze=le.makeSpan(["vertical-separator"],[],n);ze.style.height=Le(S),ze.style.borderRightWidth=Le(u),ze.style.borderRightStyle=be,ze.style.margin="0 "+Le(-u/2);var J=S-V;J&&(ze.style.verticalAlign=Le(-J)),W.push(ze)}else throw new Oe("Invalid separator type: "+ue.separator);fe++,ue=Z[fe]||{},I=!1}if(!(i>=s)){var Ve=void 0;(i>0||t.hskipBeforeAndAfter)&&(Ve=Ct.deflt(ue.pregap,h),Ve!==0&&(Y=le.makeSpan(["arraycolsep"],[]),Y.style.width=Le(Ve),W.push(Y)));var ye=[];for(r=0;r<a;++r){var We=l[r],Pe=We[i];if(Pe){var Ge=We.pos-V;Pe.depth=We.depth,Pe.height=We.height,ye.push({type:"elem",elem:Pe,shift:Ge})}}ye=le.makeVList({positionType:"individualShift",children:ye},n),ye=le.makeSpan(["col-align-"+(ue.align||"c")],[ye]),W.push(ye),(i<s-1||t.hskipBeforeAndAfter)&&(Ve=Ct.deflt(ue.postgap,h),Ve!==0&&(Y=le.makeSpan(["arraycolsep"],[]),Y.style.width=Le(Ve),W.push(Y)))}}if(l=le.makeSpan(["mtable"],W),c.length>0){for(var Xe=le.makeLineSpan("hline",n,u),Kt=le.makeLineSpan("hdashline",n,u),Et=[{type:"elem",elem:l,shift:0}];c.length>0;){var mt=c.pop(),K=mt.pos-V;mt.isDashed?Et.push({type:"elem",elem:Kt,shift:K}):Et.push({type:"elem",elem:Xe,shift:K})}l=le.makeVList({positionType:"individualShift",children:Et},n)}if(ae.length===0)return le.makeSpan(["mord"],[l],n);var ie=le.makeVList({positionType:"individualShift",children:ae},n);return ie=le.makeSpan(["tag"],[ie],n),le.makeFragment([l,ie])},c5t={c:"center ",l:"left ",r:"right "},Hs=function(t,n){for(var r=[],i=new Fe.MathNode("mtd",[],["mtr-glue"]),a=new Fe.MathNode("mtd",[],["mml-eqn-num"]),o=0;o<t.body.length;o++){for(var s=t.body[o],l=[],c=0;c<s.length;c++)l.push(new Fe.MathNode("mtd",[Sn(s[c],n)]));t.tags&&t.tags[o]&&(l.unshift(i),l.push(i),t.leqno?l.unshift(a):l.push(a)),r.push(new Fe.MathNode("mtr",l))}var u=new Fe.MathNode("mtable",r),f=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);u.setAttribute("rowspacing",Le(f));var h="",m="";if(t.cols&&t.cols.length>0){var g=t.cols,b="",C=!1,w=0,k=g.length;g[0].type==="separator"&&(h+="top ",w=1),g[g.length-1].type==="separator"&&(h+="bottom ",k-=1);for(var S=w;S<k;S++)g[S].type==="align"?(m+=c5t[g[S].align],C&&(b+="none "),C=!0):g[S].type==="separator"&&C&&(b+=g[S].separator==="|"?"solid ":"dashed ",C=!1);u.setAttribute("columnalign",m.trim()),/[sd]/.test(b)&&u.setAttribute("columnlines",b.trim())}if(t.colSeparationType==="align"){for(var E=t.cols||[],A="",_=1;_<E.length;_++)A+=_%2?"0em ":"1em ";u.setAttribute("columnspacing",A.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?u.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?u.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?u.setAttribute("columnspacing","0.5em"):u.setAttribute("columnspacing","1em");var T="",$=t.hLinesBeforeRow;h+=$[0].length>0?"left ":"",h+=$[$.length-1].length>0?"right ":"";for(var R=1;R<$.length-1;R++)T+=$[R].length===0?"none ":$[R][0]?"dashed ":"solid ";return/[sd]/.test(T)&&u.setAttribute("rowlines",T.trim()),h!==""&&(u=new Fe.MathNode("menclose",[u]),u.setAttribute("notation",h.trim())),t.arraystretch&&t.arraystretch<1&&(u=new Fe.MathNode("mstyle",[u]),u.setAttribute("scriptlevel","1")),u},SK=function(t,n){t.envName.indexOf("ed")===-1&&w2(t);var r=[],i=t.envName.indexOf("at")>-1?"alignat":"align",a=t.envName==="split",o=Mu(t.parser,{cols:r,addJot:!0,autoTag:a?void 0:$D(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),s,l=0,c={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var u="",f=0;f<n[0].body.length;f++){var h=qt(n[0].body[f],"textord");u+=h.text}s=Number(u),l=s*2}var m=!l;o.body.forEach(function(w){for(var k=1;k<w.length;k+=2){var S=qt(w[k],"styling"),E=qt(S.body[0],"ordgroup");E.body.unshift(c)}if(m)l<w.length&&(l=w.length);else{var A=w.length/2;if(s<A)throw new Oe("Too many math in a row: "+("expected "+s+", but got "+A),w[0])}});for(var g=0;g<l;++g){var b="r",C=0;g%2===1?b="l":g>0&&m&&(C=1),r[g]={type:"align",align:b,pregap:C,postgap:0}}return o.colSeparationType=m?"align":"alignat",o};Vs({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=_2(t[0]),r=n?[t[0]]:qt(t[0],"ordgroup").body,i=r.map(function(o){var s=ED(o),l=s.text;if("lcr".indexOf(l)!==-1)return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new Oe("Unknown column alignment: "+l,o)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return Mu(e.parser,a,MD(e.envName))},htmlBuilder:qs,mathmlBuilder:Hs});Vs({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,"lcr".indexOf(n)===-1)throw new Oe("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:n}]}}var a=Mu(e.parser,r,MD(e.envName)),o=Math.max(0,...a.body.map(s=>s.length));return a.cols=new Array(o).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:qs,mathmlBuilder:Hs});Vs({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=Mu(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:qs,mathmlBuilder:Hs});Vs({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=_2(t[0]),r=n?[t[0]]:qt(t[0],"ordgroup").body,i=r.map(function(o){var s=ED(o),l=s.text;if("lc".indexOf(l)!==-1)return{type:"align",align:l};throw new Oe("Unknown column alignment: "+l,o)});if(i.length>1)throw new Oe("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=Mu(e.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new Oe("{subarray} can contain only one column");return a},htmlBuilder:qs,mathmlBuilder:Hs});Vs({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=Mu(e.parser,t,MD(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:qs,mathmlBuilder:Hs});Vs({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:SK,htmlBuilder:qs,mathmlBuilder:Hs});Vs({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){Ct.contains(["gather","gather*"],e.envName)&&w2(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:$D(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Mu(e.parser,t,"display")},htmlBuilder:qs,mathmlBuilder:Hs});Vs({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:SK,htmlBuilder:qs,mathmlBuilder:Hs});Vs({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){w2(e);var t={autoTag:$D(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Mu(e.parser,t,"display")},htmlBuilder:qs,mathmlBuilder:Hs});Vs({type:"array",names:["CD"],props:{numArgs:0},handler(e){return w2(e),Y6t(e.parser)},htmlBuilder:qs,mathmlBuilder:Hs});B("\\nonumber","\\gdef\\@eqnsw{0}");B("\\notag","\\nonumber");Ke({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Oe(e.funcName+" valid only within array environment")}});var gL=xK;Ke({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!=="ordgroup")throw new Oe("Invalid environment name",i);for(var a="",o=0;o<i.body.length;++o)a+=qt(i.body[o],"textord").text;if(r==="\\begin"){if(!gL.hasOwnProperty(a))throw new Oe("No such environment: "+a,i);var s=gL[a],{args:l,optArgs:c}=n.parseArguments("\\begin{"+a+"}",s),u={mode:n.mode,envName:a,parser:n},f=s.handler(u,l,c);n.expect("\\end",!1);var h=n.nextToken,m=qt(n.parseFunction(),"environment");if(m.name!==a)throw new Oe("Mismatch: \\begin{"+a+"} matched by \\end{"+m.name+"}",h);return f}return{type:"environment",mode:n.mode,name:a,nameGroup:i}}});var DK=(e,t)=>{var n=e.font,r=t.withFont(n);return sn(e.body,r)},EK=(e,t)=>{var n=e.font,r=t.withFont(n);return Sn(e.body,r)},yL={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Ke({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=gw(t[0]),a=r;return a in yL&&(a=yL[a]),{type:"font",mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:DK,mathmlBuilder:EK});Ke({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],i=Ct.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:b2(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:i}}});Ke({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,o=n.parseExpression(!0,i),s="math"+r.slice(1);return{type:"font",mode:a,font:s,body:{type:"ordgroup",mode:n.mode,body:o}}},htmlBuilder:DK,mathmlBuilder:EK});var TK=(e,t)=>{var n=t;return e==="display"?n=n.id>=_t.SCRIPT.id?n.text():_t.DISPLAY:e==="text"&&n.size===_t.DISPLAY.size?n=_t.TEXT:e==="script"?n=_t.SCRIPT:e==="scriptscript"&&(n=_t.SCRIPTSCRIPT),n},OD=(e,t)=>{var n=TK(e.size,t.style),r=n.fracNum(),i=n.fracDen(),a;a=t.havingStyle(r);var o=sn(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;o.height=o.height<s?s:o.height,o.depth=o.depth<l?l:o.depth}a=t.havingStyle(i);var c=sn(e.denom,a,t),u,f,h;e.hasBarLine?(e.barSize?(f=Kn(e.barSize,t),u=le.makeLineSpan("frac-line",t,f)):u=le.makeLineSpan("frac-line",t),f=u.height,h=u.height):(u=null,f=0,h=t.fontMetrics().defaultRuleThickness);var m,g,b;n.size===_t.DISPLAY.size||e.size==="display"?(m=t.fontMetrics().num1,f>0?g=3*h:g=7*h,b=t.fontMetrics().denom1):(f>0?(m=t.fontMetrics().num2,g=h):(m=t.fontMetrics().num3,g=3*h),b=t.fontMetrics().denom2);var C;if(u){var k=t.fontMetrics().axisHeight;m-o.depth-(k+.5*f)<g&&(m+=g-(m-o.depth-(k+.5*f))),k-.5*f-(c.height-b)<g&&(b+=g-(k-.5*f-(c.height-b)));var S=-(k-.5*f);C=le.makeVList({positionType:"individualShift",children:[{type:"elem",elem:c,shift:b},{type:"elem",elem:u,shift:S},{type:"elem",elem:o,shift:-m}]},t)}else{var w=m-o.depth-(c.height-b);w<g&&(m+=.5*(g-w),b+=.5*(g-w)),C=le.makeVList({positionType:"individualShift",children:[{type:"elem",elem:c,shift:b},{type:"elem",elem:o,shift:-m}]},t)}a=t.havingStyle(n),C.height*=a.sizeMultiplier/t.sizeMultiplier,C.depth*=a.sizeMultiplier/t.sizeMultiplier;var E;n.size===_t.DISPLAY.size?E=t.fontMetrics().delim1:n.size===_t.SCRIPTSCRIPT.size?E=t.havingStyle(_t.SCRIPT).fontMetrics().delim2:E=t.fontMetrics().delim2;var A,_;return e.leftDelim==null?A=Tg(t,["mopen"]):A=Ml.customSizedDelim(e.leftDelim,E,!0,t.havingStyle(n),e.mode,["mopen"]),e.continued?_=le.makeSpan([]):e.rightDelim==null?_=Tg(t,["mclose"]):_=Ml.customSizedDelim(e.rightDelim,E,!0,t.havingStyle(n),e.mode,["mclose"]),le.makeSpan(["mord"].concat(a.sizingClasses(t)),[A,le.makeSpan(["mfrac"],[C]),_],t)},ND=(e,t)=>{var n=new Fe.MathNode("mfrac",[Sn(e.numer,t),Sn(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=Kn(e.barSize,t);n.setAttribute("linethickness",Le(r))}var i=TK(e.size,t.style);if(i.size!==t.style.size){n=new Fe.MathNode("mstyle",[n]);var a=i.size===_t.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",a),n.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var o=[];if(e.leftDelim!=null){var s=new Fe.MathNode("mo",[new Fe.TextNode(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),o.push(s)}if(o.push(n),e.rightDelim!=null){var l=new Fe.MathNode("mo",[new Fe.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),o.push(l)}return SD(o)}return n};Ke({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],o,s=null,l=null,c="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":o=!0;break;case"\\\\atopfrac":o=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":o=!1,s="(",l=")";break;case"\\\\bracefrac":o=!1,s="\\{",l="\\}";break;case"\\\\brackfrac":o=!1,s="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":c="display";break;case"\\tfrac":case"\\tbinom":c="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:i,denom:a,hasBarLine:o,leftDelim:s,rightDelim:l,size:c,barSize:null}},htmlBuilder:OD,mathmlBuilder:ND});Ke({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});Ke({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:r}}});var _L=["display","text","script","scriptscript"],bL=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};Ke({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=gw(t[0]),o=a.type==="atom"&&a.family==="open"?bL(a.text):null,s=gw(t[1]),l=s.type==="atom"&&s.family==="close"?bL(s.text):null,c=qt(t[2],"size"),u,f=null;c.isBlank?u=!0:(f=c.value,u=f.number>0);var h="auto",m=t[3];if(m.type==="ordgroup"){if(m.body.length>0){var g=qt(m.body[0],"textord");h=_L[Number(g.text)]}}else m=qt(m,"textord"),h=_L[Number(m.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:u,barSize:f,leftDelim:o,rightDelim:l,size:h}},htmlBuilder:OD,mathmlBuilder:ND});Ke({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:qt(t[0],"size").value,token:i}}});Ke({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=P4t(qt(t[1],"infix").size),o=t[2],s=a.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:o,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:OD,mathmlBuilder:ND});var AK=(e,t)=>{var n=t.style,r,i;e.type==="supsub"?(r=e.sup?sn(e.sup,t.havingStyle(n.sup()),t):sn(e.sub,t.havingStyle(n.sub()),t),i=qt(e.base,"horizBrace")):i=qt(e,"horizBrace");var a=sn(i.base,t.havingBaseStyle(_t.DISPLAY)),o=Ul.svgSpan(i,t),s;if(i.isOver?(s=le.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:o}]},t),s.children[0].children[0].children[1].classes.push("svg-align")):(s=le.makeVList({positionType:"bottom",positionData:a.depth+.1+o.height,children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:a}]},t),s.children[0].children[0].children[0].classes.push("svg-align")),r){var l=le.makeSpan(["mord",i.isOver?"mover":"munder"],[s],t);i.isOver?s=le.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},t):s=le.makeVList({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return le.makeSpan(["mord",i.isOver?"mover":"munder"],[s],t)},u5t=(e,t)=>{var n=Ul.mathMLnode(e.label);return new Fe.MathNode(e.isOver?"mover":"munder",[Sn(e.base,t),n])};Ke({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:AK,mathmlBuilder:u5t});Ke({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=qt(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:lr(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=Dr(e.body,t,!1);return le.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=gu(e.body,t);return n instanceof ro||(n=new ro("mrow",[n])),n.setAttribute("href",e.href),n}});Ke({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=qt(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],a=0;a<r.length;a++){var o=r[a];o==="~"&&(o="\\textasciitilde"),i.push({type:"textord",mode:"text",text:o})}var s={type:"text",mode:n.mode,font:"\\texttt",body:i};return{type:"href",mode:n.mode,href:r,body:lr(s)}}});Ke({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:"hbox",mode:n.mode,body:lr(t[0])}},htmlBuilder(e,t){var n=Dr(e.body,t,!1);return le.makeFragment(n)},mathmlBuilder(e,t){return new Fe.MathNode("mrow",na(e.body,t))}});Ke({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,token:i}=e,a=qt(t[0],"raw").string,o=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var s,l={};switch(r){case"\\htmlClass":l.class=a,s={command:"\\htmlClass",class:a};break;case"\\htmlId":l.id=a,s={command:"\\htmlId",id:a};break;case"\\htmlStyle":l.style=a,s={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var c=a.split(","),u=0;u<c.length;u++){var f=c[u].split("=");if(f.length!==2)throw new Oe("Error parsing key-value for \\htmlData");l["data-"+f[0].trim()]=f[1].trim()}s={command:"\\htmlData",attributes:l};break}default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(s)?{type:"html",mode:n.mode,attributes:l,body:lr(o)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=Dr(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=le.makeSpan(r,n,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>gu(e.body,t)});Ke({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:lr(t[0]),mathml:lr(t[1])}},htmlBuilder:(e,t)=>{var n=Dr(e.html,t,!1);return le.makeFragment(n)},mathmlBuilder:(e,t)=>gu(e.mathml,t)});var l5=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new Oe("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!KG(r))throw new Oe("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};Ke({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},o={number:0,unit:"em"},s="";if(n[0])for(var l=qt(n[0],"raw").string,c=l.split(","),u=0;u<c.length;u++){var f=c[u].split("=");if(f.length===2){var h=f[1].trim();switch(f[0].trim()){case"alt":s=h;break;case"width":i=l5(h);break;case"height":a=l5(h);break;case"totalheight":o=l5(h);break;default:throw new Oe("Invalid key: '"+f[0]+"' in \\includegraphics.")}}}var m=qt(t[0],"url").url;return s===""&&(s=m,s=s.replace(/^.*[\\/]/,""),s=s.substring(0,s.lastIndexOf("."))),r.settings.isTrusted({command:"\\includegraphics",url:m})?{type:"includegraphics",mode:r.mode,alt:s,width:i,height:a,totalheight:o,src:m}:r.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var n=Kn(e.height,t),r=0;e.totalheight.number>0&&(r=Kn(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=Kn(e.width,t));var a={height:Le(n+r)};i>0&&(a.width=Le(i)),r>0&&(a.verticalAlign=Le(-r));var o=new u6t(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new Fe.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=Kn(e.height,t),i=0;if(e.totalheight.number>0&&(i=Kn(e.totalheight,t)-r,n.setAttribute("valign",Le(-i))),n.setAttribute("height",Le(r+i)),e.width.number>0){var a=Kn(e.width,t);n.setAttribute("width",Le(a))}return n.setAttribute("src",e.src),n}});Ke({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=qt(t[0],"size");if(n.settings.strict){var a=r[1]==="m",o=i.value.unit==="mu";a?(o||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+i.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):o&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return le.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=Kn(e.dimension,t);return new Fe.SpaceNode(n)}});Ke({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=le.makeSpan([],[sn(e.body,t)]),n=le.makeSpan(["inner"],[n],t)):n=le.makeSpan(["inner"],[sn(e.body,t)]);var r=le.makeSpan(["fix"],[]),i=le.makeSpan([e.alignment],[n,r],t),a=le.makeSpan(["strut"]);return a.style.height=Le(i.height+i.depth),i.depth&&(a.style.verticalAlign=Le(-i.depth)),i.children.unshift(a),i=le.makeSpan(["thinbox"],[i],t),le.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var n=new Fe.MathNode("mpadded",[Sn(e.body,t)]);if(e.alignment!=="rlap"){var r=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}});Ke({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode("math");var a=n==="\\("?"\\)":"$",o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:o}}});Ke({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Oe("Mismatched "+e.funcName)}});var kL=(e,t)=>{switch(t.style.size){case _t.DISPLAY.size:return e.display;case _t.TEXT.size:return e.text;case _t.SCRIPT.size:return e.script;case _t.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Ke({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:lr(t[0]),text:lr(t[1]),script:lr(t[2]),scriptscript:lr(t[3])}},htmlBuilder:(e,t)=>{var n=kL(e,t),r=Dr(n,t,!1);return le.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=kL(e,t);return gu(n,t)}});var zK=(e,t,n,r,i,a,o)=>{e=le.makeSpan([],[e]);var s=n&&Ct.isCharacterBox(n),l,c;if(t){var u=sn(t,r.havingStyle(i.sup()),r);c={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var f=sn(n,r.havingStyle(i.sub()),r);l={elem:f,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-f.height)}}var h;if(c&&l){var m=r.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+o;h=le.makeVList({positionType:"bottom",positionData:m,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Le(-a)},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:Le(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(l){var g=e.height-o;h=le.makeVList({positionType:"top",positionData:g,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Le(-a)},{type:"kern",size:l.kern},{type:"elem",elem:e}]},r)}else if(c){var b=e.depth+o;h=le.makeVList({positionType:"bottom",positionData:b,children:[{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:Le(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return e;var C=[h];if(l&&a!==0&&!s){var w=le.makeSpan(["mspace"],[],r);w.style.marginRight=Le(a),C.unshift(w)}return le.makeSpan(["mop","op-limits"],C,r)},FK=["\\smallint"],Kp=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=qt(e.base,"op"),i=!0):a=qt(e,"op");var o=t.style,s=!1;o.size===_t.DISPLAY.size&&a.symbol&&!Ct.contains(FK,a.name)&&(s=!0);var l;if(a.symbol){var c=s?"Size2-Regular":"Size1-Regular",u="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(u=a.name.slice(1),a.name=u==="oiint"?"\\iint":"\\iiint"),l=le.makeSymbol(a.name,c,"math",t,["mop","op-symbol",s?"large-op":"small-op"]),u.length>0){var f=l.italic,h=le.staticSvg(u+"Size"+(s?"2":"1"),t);l=le.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:h,shift:s?.08:0}]},t),a.name="\\"+u,l.classes.unshift("mop"),l.italic=f}}else if(a.body){var m=Dr(a.body,t,!0);m.length===1&&m[0]instanceof go?(l=m[0],l.classes[0]="mop"):l=le.makeSpan(["mop"],m,t)}else{for(var g=[],b=1;b<a.name.length;b++)g.push(le.mathsym(a.name[b],a.mode,t));l=le.makeSpan(["mop"],g,t)}var C=0,w=0;return(l instanceof go||a.name==="\\oiint"||a.name==="\\oiiint")&&!a.suppressBaseShift&&(C=(l.height-l.depth)/2-t.fontMetrics().axisHeight,w=l.italic),i?zK(l,n,r,t,o,w,C):(C&&(l.style.position="relative",l.style.top=Le(C)),l)},S1=(e,t)=>{var n;if(e.symbol)n=new ro("mo",[yo(e.name,e.mode)]),Ct.contains(FK,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new ro("mo",na(e.body,t));else{n=new ro("mi",[new Pm(e.name.slice(1))]);var r=new ro("mo",[yo("⁡","text")]);e.parentIsSupSub?n=new ro("mrow",[n,r]):n=aK([n,r])}return n},d5t={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};Ke({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=d5t[i]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Kp,mathmlBuilder:S1});Ke({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:lr(r)}},htmlBuilder:Kp,mathmlBuilder:S1});var f5t={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};Ke({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Kp,mathmlBuilder:S1});Ke({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Kp,mathmlBuilder:S1});Ke({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=f5t[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:Kp,mathmlBuilder:S1});var $K=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=qt(e.base,"operatorname"),i=!0):a=qt(e,"operatorname");var o;if(a.body.length>0){for(var s=a.body.map(f=>{var h=f.text;return typeof h=="string"?{type:"textord",mode:f.mode,text:h}:f}),l=Dr(s,t.withFont("mathrm"),!0),c=0;c<l.length;c++){var u=l[c];u instanceof go&&(u.text=u.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}o=le.makeSpan(["mop"],l,t)}else o=le.makeSpan(["mop"],[],t);return i?zK(o,n,r,t,t.style,0,0):o},h5t=(e,t)=>{for(var n=na(e.body,t.withFont("mathrm")),r=!0,i=0;i<n.length;i++){var a=n[i];if(!(a instanceof Fe.SpaceNode))if(a instanceof Fe.MathNode)switch(a.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var o=a.children[0];a.children.length===1&&o instanceof Fe.TextNode?o.text=o.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):r=!1;break}default:r=!1}else r=!1}if(r){var s=n.map(u=>u.toText()).join("");n=[new Fe.TextNode(s)]}var l=new Fe.MathNode("mi",n);l.setAttribute("mathvariant","normal");var c=new Fe.MathNode("mo",[yo("⁡","text")]);return e.parentIsSupSub?new Fe.MathNode("mrow",[l,c]):Fe.newDocumentFragment([l,c])};Ke({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"operatorname",mode:n.mode,body:lr(i),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:$K,mathmlBuilder:h5t});B("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");yf({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?le.makeFragment(Dr(e.body,t,!1)):le.makeSpan(["mord"],Dr(e.body,t,!0),t)},mathmlBuilder(e,t){return gu(e.body,t,!0)}});Ke({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=sn(e.body,t.havingCrampedStyle()),r=le.makeLineSpan("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=le.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]},t);return le.makeSpan(["mord","overline"],[a],t)},mathmlBuilder(e,t){var n=new Fe.MathNode("mo",[new Fe.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new Fe.MathNode("mover",[Sn(e.body,t),n]);return r.setAttribute("accent","true"),r}});Ke({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:lr(r)}},htmlBuilder:(e,t)=>{var n=Dr(e.body,t.withPhantom(),!1);return le.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=na(e.body,t);return new Fe.MathNode("mphantom",n)}});Ke({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=le.makeSpan([],[sn(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r<n.children.length;r++)n.children[r].height=0,n.children[r].depth=0;return n=le.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t),le.makeSpan(["mord"],[n],t)},mathmlBuilder:(e,t)=>{var n=na(lr(e.body),t),r=new Fe.MathNode("mphantom",n),i=new Fe.MathNode("mpadded",[r]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}});Ke({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=le.makeSpan(["inner"],[sn(e.body,t.withPhantom())]),r=le.makeSpan(["fix"],[]);return le.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=na(lr(e.body),t),r=new Fe.MathNode("mphantom",n),i=new Fe.MathNode("mpadded",[r]);return i.setAttribute("width","0px"),i}});Ke({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=qt(t[0],"size").value,i=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=sn(e.body,t),r=Kn(e.dy,t);return le.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new Fe.MathNode("mpadded",[Sn(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}});Ke({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});Ke({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,i=n[0],a=qt(t[0],"size"),o=qt(t[1],"size");return{type:"rule",mode:r.mode,shift:i&&qt(i,"size").value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=le.makeSpan(["mord","rule"],[],t),r=Kn(e.width,t),i=Kn(e.height,t),a=e.shift?Kn(e.shift,t):0;return n.style.borderRightWidth=Le(r),n.style.borderTopWidth=Le(i),n.style.bottom=Le(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=Kn(e.width,t),r=Kn(e.height,t),i=e.shift?Kn(e.shift,t):0,a=t.color&&t.getColor()||"black",o=new Fe.MathNode("mspace");o.setAttribute("mathbackground",a),o.setAttribute("width",Le(n)),o.setAttribute("height",Le(r));var s=new Fe.MathNode("mpadded",[o]);return i>=0?s.setAttribute("height",Le(i)):(s.setAttribute("height",Le(i)),s.setAttribute("depth",Le(-i))),s.setAttribute("voffset",Le(i)),s}});function MK(e,t,n){for(var r=Dr(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a<r.length;a++){var o=r[a].classes.indexOf("sizing");o<0?Array.prototype.push.apply(r[a].classes,t.sizingClasses(n)):r[a].classes[o+1]==="reset-size"+t.size&&(r[a].classes[o+1]="reset-size"+n.size),r[a].height*=i,r[a].depth*=i}return le.makeFragment(r)}var wL=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],p5t=(e,t)=>{var n=t.havingSize(e.size);return MK(e.body,n,t)};Ke({type:"sizing",names:wL,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:wL.indexOf(r)+1,body:a}},htmlBuilder:p5t,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=na(e.body,n),i=new Fe.MathNode("mstyle",r);return i.setAttribute("mathsize",Le(n.sizeMultiplier)),i}});Ke({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,o=n[0]&&qt(n[0],"ordgroup");if(o)for(var s="",l=0;l<o.body.length;++l){var c=o.body[l];if(s=c.text,s==="t")i=!0;else if(s==="b")a=!0;else{i=!1,a=!1;break}}else i=!0,a=!0;var u=t[0];return{type:"smash",mode:r.mode,body:u,smashHeight:i,smashDepth:a}},htmlBuilder:(e,t)=>{var n=le.makeSpan([],[sn(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r<n.children.length;r++)n.children[r].height=0;if(e.smashDepth&&(n.depth=0,n.children))for(var i=0;i<n.children.length;i++)n.children[i].depth=0;var a=le.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t);return le.makeSpan(["mord"],[a],t)},mathmlBuilder:(e,t)=>{var n=new Fe.MathNode("mpadded",[Sn(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});Ke({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:"sqrt",mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=sn(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=le.wrapFragment(n,t);var r=t.fontMetrics(),i=r.defaultRuleThickness,a=i;t.style.id<_t.TEXT.id&&(a=t.fontMetrics().xHeight);var o=i+a/4,s=n.height+n.depth+o+i,{span:l,ruleWidth:c,advanceWidth:u}=Ml.sqrtImage(s,t),f=l.height-c;f>n.height+n.depth+o&&(o=(o+f-n.height-n.depth)/2);var h=l.height-n.height-o-c;n.style.paddingLeft=Le(u);var m=le.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+h)},{type:"elem",elem:l},{type:"kern",size:c}]},t);if(e.index){var g=t.havingStyle(_t.SCRIPTSCRIPT),b=sn(e.index,g,t),C=.6*(m.height-m.depth),w=le.makeVList({positionType:"shift",positionData:-C,children:[{type:"elem",elem:b}]},t),k=le.makeSpan(["root"],[w]);return le.makeSpan(["mord","sqrt"],[k,m],t)}else return le.makeSpan(["mord","sqrt"],[m],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new Fe.MathNode("mroot",[Sn(n,t),Sn(r,t)]):new Fe.MathNode("msqrt",[Sn(n,t)])}});var vL={display:_t.DISPLAY,text:_t.TEXT,script:_t.SCRIPT,scriptscript:_t.SCRIPTSCRIPT};Ke({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=vL[e.style],r=t.havingStyle(n).withFont("");return MK(e.body,r,t)},mathmlBuilder(e,t){var n=vL[e.style],r=t.havingStyle(n),i=na(e.body,r),a=new Fe.MathNode("mstyle",i),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},s=o[e.style];return a.setAttribute("scriptlevel",s[0]),a.setAttribute("displaystyle",s[1]),a}});var m5t=function(t,n){var r=t.base;if(r)if(r.type==="op"){var i=r.limits&&(n.style.size===_t.DISPLAY.size||r.alwaysHandleSupSub);return i?Kp:null}else if(r.type==="operatorname"){var a=r.alwaysHandleSupSub&&(n.style.size===_t.DISPLAY.size||r.limits);return a?$K:null}else{if(r.type==="accent")return Ct.isCharacterBox(r.base)?TD:null;if(r.type==="horizBrace"){var o=!t.sub;return o===r.isOver?AK:null}else return null}else return null};yf({type:"supsub",htmlBuilder(e,t){var n=m5t(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,o=sn(r,t),s,l,c=t.fontMetrics(),u=0,f=0,h=r&&Ct.isCharacterBox(r);if(i){var m=t.havingStyle(t.style.sup());s=sn(i,m,t),h||(u=o.height-m.fontMetrics().supDrop*m.sizeMultiplier/t.sizeMultiplier)}if(a){var g=t.havingStyle(t.style.sub());l=sn(a,g,t),h||(f=o.depth+g.fontMetrics().subDrop*g.sizeMultiplier/t.sizeMultiplier)}var b;t.style===_t.DISPLAY?b=c.sup1:t.style.cramped?b=c.sup3:b=c.sup2;var C=t.sizeMultiplier,w=Le(.5/c.ptPerEm/C),k=null;if(l){var S=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(o instanceof go||S)&&(k=Le(-o.italic))}var E;if(s&&l){u=Math.max(u,b,s.depth+.25*c.xHeight),f=Math.max(f,c.sub2);var A=c.defaultRuleThickness,_=4*A;if(u-s.depth-(l.height-f)<_){f=_-(u-s.depth)+l.height;var T=.8*c.xHeight-(u-s.depth);T>0&&(u+=T,f-=T)}var $=[{type:"elem",elem:l,shift:f,marginRight:w,marginLeft:k},{type:"elem",elem:s,shift:-u,marginRight:w}];E=le.makeVList({positionType:"individualShift",children:$},t)}else if(l){f=Math.max(f,c.sub1,l.height-.8*c.xHeight);var R=[{type:"elem",elem:l,marginLeft:k,marginRight:w}];E=le.makeVList({positionType:"shift",positionData:f,children:R},t)}else if(s)u=Math.max(u,b,s.depth+.25*c.xHeight),E=le.makeVList({positionType:"shift",positionData:-u,children:[{type:"elem",elem:s,marginRight:w}]},t);else throw new Error("supsub must have either sup or sub.");var O=d7(o,"right")||"mord";return le.makeSpan([O],[o,le.makeSpan(["msupsub"],[E])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[Sn(e.base,t)];e.sub&&a.push(Sn(e.sub,t)),e.sup&&a.push(Sn(e.sup,t));var o;if(n)o=r?"mover":"munder";else if(e.sub)if(e.sup){var c=e.base;c&&c.type==="op"&&c.limits&&t.style===_t.DISPLAY||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(t.style===_t.DISPLAY||c.limits)?o="munderover":o="msubsup"}else{var l=e.base;l&&l.type==="op"&&l.limits&&(t.style===_t.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===_t.DISPLAY)?o="munder":o="msub"}else{var s=e.base;s&&s.type==="op"&&s.limits&&(t.style===_t.DISPLAY||s.alwaysHandleSupSub)||s&&s.type==="operatorname"&&s.alwaysHandleSupSub&&(s.limits||t.style===_t.DISPLAY)?o="mover":o="msup"}return new Fe.MathNode(o,a)}});yf({type:"atom",htmlBuilder(e,t){return le.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new Fe.MathNode("mo",[yo(e.text,e.mode)]);if(e.family==="bin"){var r=DD(e,t);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var OK={mi:"italic",mn:"normal",mtext:"normal"};yf({type:"mathord",htmlBuilder(e,t){return le.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new Fe.MathNode("mi",[yo(e.text,e.mode,t)]),r=DD(e,t)||"italic";return r!==OK[n.type]&&n.setAttribute("mathvariant",r),n}});yf({type:"textord",htmlBuilder(e,t){return le.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n=yo(e.text,e.mode,t),r=DD(e,t)||"normal",i;return e.mode==="text"?i=new Fe.MathNode("mtext",[n]):/[0-9]/.test(e.text)?i=new Fe.MathNode("mn",[n]):e.text==="\\prime"?i=new Fe.MathNode("mo",[n]):i=new Fe.MathNode("mi",[n]),r!==OK[i.type]&&i.setAttribute("mathvariant",r),i}});var c5={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},u5={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};yf({type:"spacing",htmlBuilder(e,t){if(u5.hasOwnProperty(e.text)){var n=u5[e.text].className||"";if(e.mode==="text"){var r=le.makeOrd(e,t,"textord");return r.classes.push(n),r}else return le.makeSpan(["mspace",n],[le.mathsym(e.text,e.mode,t)],t)}else{if(c5.hasOwnProperty(e.text))return le.makeSpan(["mspace",c5[e.text]],[],t);throw new Oe('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(u5.hasOwnProperty(e.text))n=new Fe.MathNode("mtext",[new Fe.TextNode(" ")]);else{if(c5.hasOwnProperty(e.text))return new Fe.MathNode("mspace");throw new Oe('Unknown type of space "'+e.text+'"')}return n}});var xL=()=>{var e=new Fe.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};yf({type:"tag",mathmlBuilder(e,t){var n=new Fe.MathNode("mtable",[new Fe.MathNode("mtr",[xL(),new Fe.MathNode("mtd",[gu(e.body,t)]),xL(),new Fe.MathNode("mtd",[gu(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var CL={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},SL={"\\textbf":"textbf","\\textmd":"textmd"},g5t={"\\textit":"textit","\\textup":"textup"},DL=(e,t)=>{var n=e.font;return n?CL[n]?t.withTextFontFamily(CL[n]):SL[n]?t.withTextFontWeight(SL[n]):t.withTextFontShape(g5t[n]):t};Ke({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"text",mode:n.mode,body:lr(i),font:r}},htmlBuilder(e,t){var n=DL(e,t),r=Dr(e.body,n,!0);return le.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=DL(e,t);return gu(e.body,n)}});Ke({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=sn(e.body,t),r=le.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=le.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]},t);return le.makeSpan(["mord","underline"],[a],t)},mathmlBuilder(e,t){var n=new Fe.MathNode("mo",[new Fe.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new Fe.MathNode("munder",[Sn(e.body,t),n]);return r.setAttribute("accentunder","true"),r}});Ke({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=sn(e.body,t),r=t.fontMetrics().axisHeight,i=.5*(n.height-r-(n.depth+r));return le.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new Fe.MathNode("mpadded",[Sn(e.body,t)],["vcenter"])}});Ke({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new Oe("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=EL(e),r=[],i=t.havingStyle(t.style.text()),a=0;a<n.length;a++){var o=n[a];o==="~"&&(o="\\textasciitilde"),r.push(le.makeSymbol(o,"Typewriter-Regular",e.mode,i,["mord","texttt"]))}return le.makeSpan(["mord","text"].concat(i.sizingClasses(t)),le.tryCombineChars(r),i)},mathmlBuilder(e,t){var n=new Fe.TextNode(EL(e)),r=new Fe.MathNode("mtext",[n]);return r.setAttribute("mathvariant","monospace"),r}});var EL=e=>e.body.replace(/ /g,e.star?"␣":" "),Hc=rK,NK=`[ \r + ]`,y5t="\\\\[a-zA-Z@]+",_5t="\\\\[^\uD800-\uDFFF]",b5t="("+y5t+")"+NK+"*",k5t=`\\\\( |[ \r ]+ -?)[ \r ]*`,m7="[̀-ͯ]",k5t=new RegExp(m7+"+$"),w5t="("+OK+"+)|"+(b5t+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(m7+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(m7+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+_5t)+("|"+y5t+")");class TL{constructor(t,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=n,this.tokenRegex=new RegExp(w5t,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,n){this.catcodes[t]=n}lex(){var t=this.input,n=this.tokenRegex.lastIndex;if(n===t.length)return new au("EOF",new ga(this,n,n));var r=this.tokenRegex.exec(t);if(r===null||r.index!==n)throw new Oe("Unexpected character: '"+t[n]+"'",new au(t[n],new ga(this,n,n+1)));var i=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=t.indexOf(` -`,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new au(i,new ga(this,n,this.tokenRegex.lastIndex))}}class v5t{constructor(t,n){t===void 0&&(t={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Oe("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var n in t)t.hasOwnProperty(n)&&(t[n]==null?delete this.current[n]:this.current[n]=t[n])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,n,r){if(r===void 0&&(r=!1),r){for(var i=0;i<this.undefStack.length;i++)delete this.undefStack[i][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=n)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(t)&&(a[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var x5t=xK;B("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});B("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});B("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});B("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});B("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});B("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");B("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var AL={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};B("\\char",function(e){var t=e.popToken(),n,r="";if(t.text==="'")n=8,t=e.popToken();else if(t.text==='"')n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")r=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new Oe("\\char` missing argument");r=t.text.charCodeAt(0)}else n=10;if(n){if(r=AL[t.text],r==null||r>=n)throw new Oe("Invalid base-"+n+" digit "+t.text);for(var i;(i=AL[e.future().text])!=null&&i<n;)r*=n,r+=i,e.popToken()}return"\\@char{"+r+"}"});var LD=(e,t,n)=>{var r=e.consumeArg().tokens;if(r.length!==1)throw new Oe("\\newcommand's first argument must be a macro name");var i=r[0].text,a=e.isDefined(i);if(a&&!t)throw new Oe("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!a&&!n)throw new Oe("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var o=0;if(r=e.consumeArg().tokens,r.length===1&&r[0].text==="["){for(var s="",l=e.expandNextToken();l.text!=="]"&&l.text!=="EOF";)s+=l.text,l=e.expandNextToken();if(!s.match(/^\s*[0-9]+\s*$/))throw new Oe("Invalid number of arguments: "+s);o=parseInt(s),r=e.consumeArg().tokens}return e.macros.set(i,{tokens:r,numArgs:o}),""};B("\\newcommand",e=>LD(e,!1,!0));B("\\renewcommand",e=>LD(e,!0,!1));B("\\providecommand",e=>LD(e,!0,!0));B("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});B("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});B("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),Hc[n],zn.math[n],zn.text[n]),""});B("\\bgroup","{");B("\\egroup","}");B("~","\\nobreakspace");B("\\lq","`");B("\\rq","'");B("\\aa","\\r a");B("\\AA","\\r A");B("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");B("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");B("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");B("ℬ","\\mathscr{B}");B("ℰ","\\mathscr{E}");B("ℱ","\\mathscr{F}");B("ℋ","\\mathscr{H}");B("ℐ","\\mathscr{I}");B("ℒ","\\mathscr{L}");B("ℳ","\\mathscr{M}");B("ℛ","\\mathscr{R}");B("ℭ","\\mathfrak{C}");B("ℌ","\\mathfrak{H}");B("ℨ","\\mathfrak{Z}");B("\\Bbbk","\\Bbb{k}");B("·","\\cdotp");B("\\llap","\\mathllap{\\textrm{#1}}");B("\\rlap","\\mathrlap{\\textrm{#1}}");B("\\clap","\\mathclap{\\textrm{#1}}");B("\\mathstrut","\\vphantom{(}");B("\\underbar","\\underline{\\text{#1}}");B("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');B("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");B("\\ne","\\neq");B("≠","\\neq");B("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");B("∉","\\notin");B("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");B("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");B("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");B("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");B("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");B("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");B("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");B("⟂","\\perp");B("‼","\\mathclose{!\\mkern-0.8mu!}");B("∌","\\notni");B("⌜","\\ulcorner");B("⌝","\\urcorner");B("⌞","\\llcorner");B("⌟","\\lrcorner");B("©","\\copyright");B("®","\\textregistered");B("️","\\textregistered");B("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');B("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');B("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');B("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');B("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}");B("⋮","\\vdots");B("\\varGamma","\\mathit{\\Gamma}");B("\\varDelta","\\mathit{\\Delta}");B("\\varTheta","\\mathit{\\Theta}");B("\\varLambda","\\mathit{\\Lambda}");B("\\varXi","\\mathit{\\Xi}");B("\\varPi","\\mathit{\\Pi}");B("\\varSigma","\\mathit{\\Sigma}");B("\\varUpsilon","\\mathit{\\Upsilon}");B("\\varPhi","\\mathit{\\Phi}");B("\\varPsi","\\mathit{\\Psi}");B("\\varOmega","\\mathit{\\Omega}");B("\\substack","\\begin{subarray}{c}#1\\end{subarray}");B("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");B("\\boxed","\\fbox{$\\displaystyle{#1}$}");B("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");B("\\implies","\\DOTSB\\;\\Longrightarrow\\;");B("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var zL={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};B("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in zL?t=zL[n]:(n.slice(0,4)==="\\not"||n in zn.math&&Ct.contains(["bin","rel"],zn.math[n].group))&&(t="\\dotsb"),t});var ID={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};B("\\dotso",function(e){var t=e.future().text;return t in ID?"\\ldots\\,":"\\ldots"});B("\\dotsc",function(e){var t=e.future().text;return t in ID&&t!==","?"\\ldots\\,":"\\ldots"});B("\\cdots",function(e){var t=e.future().text;return t in ID?"\\@cdots\\,":"\\@cdots"});B("\\dotsb","\\cdots");B("\\dotsm","\\cdots");B("\\dotsi","\\!\\cdots");B("\\dotsx","\\ldots\\,");B("\\DOTSI","\\relax");B("\\DOTSB","\\relax");B("\\DOTSX","\\relax");B("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");B("\\,","\\tmspace+{3mu}{.1667em}");B("\\thinspace","\\,");B("\\>","\\mskip{4mu}");B("\\:","\\tmspace+{4mu}{.2222em}");B("\\medspace","\\:");B("\\;","\\tmspace+{5mu}{.2777em}");B("\\thickspace","\\;");B("\\!","\\tmspace-{3mu}{.1667em}");B("\\negthinspace","\\!");B("\\negmedspace","\\tmspace-{4mu}{.2222em}");B("\\negthickspace","\\tmspace-{5mu}{.277em}");B("\\enspace","\\kern.5em ");B("\\enskip","\\hskip.5em\\relax");B("\\quad","\\hskip1em\\relax");B("\\qquad","\\hskip2em\\relax");B("\\tag","\\@ifstar\\tag@literal\\tag@paren");B("\\tag@paren","\\tag@literal{({#1})}");B("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Oe("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});B("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");B("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");B("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");B("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");B("\\newline","\\\\\\relax");B("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var NK=Le(Cs["Main-Regular"]["T".charCodeAt(0)][1]-.7*Cs["Main-Regular"]["A".charCodeAt(0)][1]);B("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+NK+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");B("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+NK+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");B("\\hspace","\\@ifstar\\@hspacer\\@hspace");B("\\@hspace","\\hskip #1\\relax");B("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");B("\\ordinarycolon",":");B("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");B("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');B("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');B("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');B("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');B("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');B("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');B("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');B("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');B("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');B("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');B("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');B("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');B("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');B("∷","\\dblcolon");B("∹","\\eqcolon");B("≔","\\coloneqq");B("≕","\\eqqcolon");B("⩴","\\Coloneqq");B("\\ratio","\\vcentcolon");B("\\coloncolon","\\dblcolon");B("\\colonequals","\\coloneqq");B("\\coloncolonequals","\\Coloneqq");B("\\equalscolon","\\eqqcolon");B("\\equalscoloncolon","\\Eqqcolon");B("\\colonminus","\\coloneq");B("\\coloncolonminus","\\Coloneq");B("\\minuscolon","\\eqcolon");B("\\minuscoloncolon","\\Eqcolon");B("\\coloncolonapprox","\\Colonapprox");B("\\coloncolonsim","\\Colonsim");B("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");B("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");B("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");B("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");B("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");B("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");B("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");B("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");B("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");B("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");B("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");B("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");B("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");B("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");B("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");B("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");B("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");B("\\nleqq","\\html@mathml{\\@nleqq}{≰}");B("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");B("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");B("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");B("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");B("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");B("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");B("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");B("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");B("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");B("\\imath","\\html@mathml{\\@imath}{ı}");B("\\jmath","\\html@mathml{\\@jmath}{ȷ}");B("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");B("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");B("⟦","\\llbracket");B("⟧","\\rrbracket");B("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");B("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");B("⦃","\\lBrace");B("⦄","\\rBrace");B("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");B("⦵","\\minuso");B("\\darr","\\downarrow");B("\\dArr","\\Downarrow");B("\\Darr","\\Downarrow");B("\\lang","\\langle");B("\\rang","\\rangle");B("\\uarr","\\uparrow");B("\\uArr","\\Uparrow");B("\\Uarr","\\Uparrow");B("\\N","\\mathbb{N}");B("\\R","\\mathbb{R}");B("\\Z","\\mathbb{Z}");B("\\alef","\\aleph");B("\\alefsym","\\aleph");B("\\Alpha","\\mathrm{A}");B("\\Beta","\\mathrm{B}");B("\\bull","\\bullet");B("\\Chi","\\mathrm{X}");B("\\clubs","\\clubsuit");B("\\cnums","\\mathbb{C}");B("\\Complex","\\mathbb{C}");B("\\Dagger","\\ddagger");B("\\diamonds","\\diamondsuit");B("\\empty","\\emptyset");B("\\Epsilon","\\mathrm{E}");B("\\Eta","\\mathrm{H}");B("\\exist","\\exists");B("\\harr","\\leftrightarrow");B("\\hArr","\\Leftrightarrow");B("\\Harr","\\Leftrightarrow");B("\\hearts","\\heartsuit");B("\\image","\\Im");B("\\infin","\\infty");B("\\Iota","\\mathrm{I}");B("\\isin","\\in");B("\\Kappa","\\mathrm{K}");B("\\larr","\\leftarrow");B("\\lArr","\\Leftarrow");B("\\Larr","\\Leftarrow");B("\\lrarr","\\leftrightarrow");B("\\lrArr","\\Leftrightarrow");B("\\Lrarr","\\Leftrightarrow");B("\\Mu","\\mathrm{M}");B("\\natnums","\\mathbb{N}");B("\\Nu","\\mathrm{N}");B("\\Omicron","\\mathrm{O}");B("\\plusmn","\\pm");B("\\rarr","\\rightarrow");B("\\rArr","\\Rightarrow");B("\\Rarr","\\Rightarrow");B("\\real","\\Re");B("\\reals","\\mathbb{R}");B("\\Reals","\\mathbb{R}");B("\\Rho","\\mathrm{P}");B("\\sdot","\\cdot");B("\\sect","\\S");B("\\spades","\\spadesuit");B("\\sub","\\subset");B("\\sube","\\subseteq");B("\\supe","\\supseteq");B("\\Tau","\\mathrm{T}");B("\\thetasym","\\vartheta");B("\\weierp","\\wp");B("\\Zeta","\\mathrm{Z}");B("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");B("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");B("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");B("\\bra","\\mathinner{\\langle{#1}|}");B("\\ket","\\mathinner{|{#1}\\rangle}");B("\\braket","\\mathinner{\\langle{#1}\\rangle}");B("\\Bra","\\left\\langle#1\\right|");B("\\Ket","\\left|#1\\right\\rangle");var LK=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get("|"),s=t.macros.get("\\|");t.macros.beginGroup();var l=f=>h=>{e&&(h.macros.set("|",o),i.length&&h.macros.set("\\|",s));var m=f;if(!f&&i.length){var g=h.future();g.text==="|"&&(h.popToken(),m=!0)}return{tokens:m?i:r,numArgs:0}};t.macros.set("|",l(!1)),i.length&&t.macros.set("\\|",l(!0));var c=t.consumeArg().tokens,u=t.expandTokens([...a,...c,...n]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};B("\\bra@ket",LK(!1));B("\\bra@set",LK(!0));B("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");B("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");B("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");B("\\angln","{\\angl n}");B("\\blue","\\textcolor{##6495ed}{#1}");B("\\orange","\\textcolor{##ffa500}{#1}");B("\\pink","\\textcolor{##ff00af}{#1}");B("\\red","\\textcolor{##df0030}{#1}");B("\\green","\\textcolor{##28ae7b}{#1}");B("\\gray","\\textcolor{gray}{#1}");B("\\purple","\\textcolor{##9d38bd}{#1}");B("\\blueA","\\textcolor{##ccfaff}{#1}");B("\\blueB","\\textcolor{##80f6ff}{#1}");B("\\blueC","\\textcolor{##63d9ea}{#1}");B("\\blueD","\\textcolor{##11accd}{#1}");B("\\blueE","\\textcolor{##0c7f99}{#1}");B("\\tealA","\\textcolor{##94fff5}{#1}");B("\\tealB","\\textcolor{##26edd5}{#1}");B("\\tealC","\\textcolor{##01d1c1}{#1}");B("\\tealD","\\textcolor{##01a995}{#1}");B("\\tealE","\\textcolor{##208170}{#1}");B("\\greenA","\\textcolor{##b6ffb0}{#1}");B("\\greenB","\\textcolor{##8af281}{#1}");B("\\greenC","\\textcolor{##74cf70}{#1}");B("\\greenD","\\textcolor{##1fab54}{#1}");B("\\greenE","\\textcolor{##0d923f}{#1}");B("\\goldA","\\textcolor{##ffd0a9}{#1}");B("\\goldB","\\textcolor{##ffbb71}{#1}");B("\\goldC","\\textcolor{##ff9c39}{#1}");B("\\goldD","\\textcolor{##e07d10}{#1}");B("\\goldE","\\textcolor{##a75a05}{#1}");B("\\redA","\\textcolor{##fca9a9}{#1}");B("\\redB","\\textcolor{##ff8482}{#1}");B("\\redC","\\textcolor{##f9685d}{#1}");B("\\redD","\\textcolor{##e84d39}{#1}");B("\\redE","\\textcolor{##bc2612}{#1}");B("\\maroonA","\\textcolor{##ffbde0}{#1}");B("\\maroonB","\\textcolor{##ff92c6}{#1}");B("\\maroonC","\\textcolor{##ed5fa6}{#1}");B("\\maroonD","\\textcolor{##ca337c}{#1}");B("\\maroonE","\\textcolor{##9e034e}{#1}");B("\\purpleA","\\textcolor{##ddd7ff}{#1}");B("\\purpleB","\\textcolor{##c6b9fc}{#1}");B("\\purpleC","\\textcolor{##aa87ff}{#1}");B("\\purpleD","\\textcolor{##7854ab}{#1}");B("\\purpleE","\\textcolor{##543b78}{#1}");B("\\mintA","\\textcolor{##f5f9e8}{#1}");B("\\mintB","\\textcolor{##edf2df}{#1}");B("\\mintC","\\textcolor{##e0e5cc}{#1}");B("\\grayA","\\textcolor{##f6f7f7}{#1}");B("\\grayB","\\textcolor{##f0f1f2}{#1}");B("\\grayC","\\textcolor{##e3e5e6}{#1}");B("\\grayD","\\textcolor{##d6d8da}{#1}");B("\\grayE","\\textcolor{##babec2}{#1}");B("\\grayF","\\textcolor{##888d93}{#1}");B("\\grayG","\\textcolor{##626569}{#1}");B("\\grayH","\\textcolor{##3b3e40}{#1}");B("\\grayI","\\textcolor{##21242c}{#1}");B("\\kaBlue","\\textcolor{##314453}{#1}");B("\\kaGreen","\\textcolor{##71B307}{#1}");var IK={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class C5t{constructor(t,n,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=n,this.expansionCount=0,this.feed(t),this.macros=new v5t(x5t,n.macros),this.mode=r,this.stack=[]}feed(t){this.lexer=new TL(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var n,r,i;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:i,end:r}=this.consumeArg(["]"])}else({tokens:i,start:n,end:r}=this.consumeArg());return this.pushToken(new au("EOF",r.loc)),this.pushTokens(i),n.range(r,"")}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],r=t&&t.length>0;r||this.consumeSpaces();var i=this.future(),a,o=0,s=0;do{if(a=this.popToken(),n.push(a),a.text==="{")++o;else if(a.text==="}"){if(--o,o===-1)throw new Oe("Extra }",a)}else if(a.text==="EOF")throw new Oe("Unexpected end of input in a macro argument, expected '"+(t&&r?t[s]:"}")+"'",a);if(t&&r)if((o===0||o===1&&t[s]==="{")&&a.text===t[s]){if(++s,s===t.length){n.splice(-s,s);break}}else s=0}while(o!==0||r);return i.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:i,end:a}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new Oe("The length of delimiters doesn't match the number of args!");for(var r=n[0],i=0;i<r.length;i++){var a=this.popToken();if(r[i]!==a.text)throw new Oe("Use of the macro doesn't match its definition",a)}}for(var o=[],s=0;s<t;s++)o.push(this.consumeArg(n&&n[s+1]).tokens);return o}expandOnce(t){var n=this.popToken(),r=n.text,i=n.noexpand?null:this._getExpansion(r);if(i==null||t&&i.unexpandable){if(t&&i==null&&r[0]==="\\"&&!this.isDefined(r))throw new Oe("Undefined control sequence: "+r);return this.pushToken(n),!1}if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new Oe("Too many expansions: infinite loop or need to increase maxExpand setting");var a=i.tokens,o=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var s=a.length-1;s>=0;--s){var l=a[s];if(l.text==="#"){if(s===0)throw new Oe("Incomplete placeholder at end of macro body",l);if(l=a[--s],l.text==="#")a.splice(s+1,1);else if(/^[1-9]$/.test(l.text))a.splice(s,2,...o[+l.text-1]);else throw new Oe("Not a valid argument number",l)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new au(t)]):void 0}expandTokens(t){var n=[],r=this.stack.length;for(this.pushTokens(t);this.stack.length>r;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),n.push(i)}return n}expandMacroAsText(t){var n=this.expandMacro(t);return n&&n.map(r=>r.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var r=this.lexer.catcodes[t];if(r!=null&&r!==13)return}var i=typeof n=="function"?n(this):n;if(typeof i=="string"){var a=0;if(i.indexOf("#")!==-1)for(var o=i.replace(/##/g,"");o.indexOf("#"+(a+1))!==-1;)++a;for(var s=new TL(i,this.settings),l=[],c=s.lex();c.text!=="EOF";)l.push(c),c=s.lex();l.reverse();var u={tokens:l,numArgs:a};return u}return i}isDefined(t){return this.macros.has(t)||Hc.hasOwnProperty(t)||zn.math.hasOwnProperty(t)||zn.text.hasOwnProperty(t)||IK.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:Hc.hasOwnProperty(t)&&!Hc[t].primitive}}var FL=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,__=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),d5={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},$L={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Ag{constructor(t,n){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new C5t(t,n,this.mode),this.settings=n,this.leftrightDepth=0}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new Oe("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());n&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var n=this.nextToken;this.consume(),this.gullet.pushToken(new au("}")),this.gullet.pushTokens(t);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,r}parseExpression(t,n){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(Ag.endOfExpression.indexOf(i.text)!==-1||n&&i.text===n||t&&Hc[i.text]&&Hc[i.text].infix)break;var a=this.parseAtom(n);if(a){if(a.type==="internal")continue}else break;r.push(a)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(t){for(var n=-1,r,i=0;i<t.length;i++)if(t[i].type==="infix"){if(n!==-1)throw new Oe("only one infix operator per group",t[i].token);n=i,r=t[i].replaceWith}if(n!==-1&&r){var a,o,s=t.slice(0,n),l=t.slice(n+1);s.length===1&&s[0].type==="ordgroup"?a=s[0]:a={type:"ordgroup",mode:this.mode,body:s},l.length===1&&l[0].type==="ordgroup"?o=l[0]:o={type:"ordgroup",mode:this.mode,body:l};var c;return r==="\\\\abovefrac"?c=this.callFunction(r,[a,t[n],o],[]):c=this.callFunction(r,[a,o],[]),[c]}else return t}handleSupSubscript(t){var n=this.fetch(),r=n.text;this.consume(),this.consumeSpaces();var i=this.parseGroup(t);if(!i)throw new Oe("Expected group after '"+r+"'",n);return i}formatUnsupportedCmd(t){for(var n=[],r=0;r<t.length;r++)n.push({type:"textord",mode:"text",text:t[r]});var i={type:"text",mode:this.mode,body:n},a={type:"color",mode:this.mode,color:this.settings.errorColor,body:[i]};return a}parseAtom(t){var n=this.parseGroup("atom",t);if(this.mode==="text")return n;for(var r,i;;){this.consumeSpaces();var a=this.fetch();if(a.text==="\\limits"||a.text==="\\nolimits"){if(n&&n.type==="op"){var o=a.text==="\\limits";n.limits=o,n.alwaysHandleSupSub=!0}else if(n&&n.type==="operatorname")n.alwaysHandleSupSub&&(n.limits=a.text==="\\limits");else throw new Oe("Limit controls must follow a math operator",a);this.consume()}else if(a.text==="^"){if(r)throw new Oe("Double superscript",a);r=this.handleSupSubscript("superscript")}else if(a.text==="_"){if(i)throw new Oe("Double subscript",a);i=this.handleSupSubscript("subscript")}else if(a.text==="'"){if(r)throw new Oe("Double superscript",a);var s={type:"textord",mode:this.mode,text:"\\prime"},l=[s];for(this.consume();this.fetch().text==="'";)l.push(s),this.consume();this.fetch().text==="^"&&l.push(this.handleSupSubscript("superscript")),r={type:"ordgroup",mode:this.mode,body:l}}else if(__[a.text]){var c=__[a.text],u=FL.test(a.text);for(this.consume();;){var f=this.fetch().text;if(!__[f]||FL.test(f)!==u)break;this.consume(),c+=__[f]}var h=new Ag(c,this.settings).parse();u?i={type:"ordgroup",mode:"math",body:h}:r={type:"ordgroup",mode:"math",body:h}}else break}return r||i?{type:"supsub",mode:this.mode,base:n,sup:r,sub:i}:n}parseFunction(t,n){var r=this.fetch(),i=r.text,a=Hc[i];if(!a)return null;if(this.consume(),n&&n!=="atom"&&!a.allowedInArgument)throw new Oe("Got function '"+i+"' with no arguments"+(n?" as "+n:""),r);if(this.mode==="text"&&!a.allowedInText)throw new Oe("Can't use function '"+i+"' in text mode",r);if(this.mode==="math"&&a.allowedInMath===!1)throw new Oe("Can't use function '"+i+"' in math mode",r);var{args:o,optArgs:s}=this.parseArguments(i,a);return this.callFunction(i,o,s,r,t)}callFunction(t,n,r,i,a){var o={funcName:t,parser:this,token:i,breakOnTokenText:a},s=Hc[t];if(s&&s.handler)return s.handler(o,n,r);throw new Oe("No function handler for "+t)}parseArguments(t,n){var r=n.numArgs+n.numOptionalArgs;if(r===0)return{args:[],optArgs:[]};for(var i=[],a=[],o=0;o<r;o++){var s=n.argTypes&&n.argTypes[o],l=o<n.numOptionalArgs;(n.primitive&&s==null||n.type==="sqrt"&&o===1&&a[0]==null)&&(s="primitive");var c=this.parseGroupOfType("argument to '"+t+"'",s,l);if(l)a.push(c);else if(c!=null)i.push(c);else throw new Oe("Null argument, please report this as a bug")}return{args:i,optArgs:a}}parseGroupOfType(t,n,r){switch(n){case"color":return this.parseColorGroup(r);case"size":return this.parseSizeGroup(r);case"url":return this.parseUrlGroup(r);case"math":case"text":return this.parseArgumentGroup(r,n);case"hbox":{var i=this.parseArgumentGroup(r,"text");return i!=null?{type:"styling",mode:i.mode,body:[i],style:"text"}:null}case"raw":{var a=this.parseStringGroup("raw",r);return a!=null?{type:"raw",mode:"text",string:a.text}:null}case"primitive":{if(r)throw new Oe("A primitive argument cannot be optional");var o=this.parseGroup(t);if(o==null)throw new Oe("Expected group as "+t,this.fetch());return o}case"original":case null:case void 0:return this.parseArgumentGroup(r);default:throw new Oe("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,n){var r=this.gullet.scanArgument(n);if(r==null)return null;for(var i="",a;(a=this.fetch()).text!=="EOF";)i+=a.text,this.consume();return this.consume(),r.text=i,r}parseRegexGroup(t,n){for(var r=this.fetch(),i=r,a="",o;(o=this.fetch()).text!=="EOF"&&t.test(a+o.text);)i=o,a+=i.text,this.consume();if(a==="")throw new Oe("Invalid "+n+": '"+r.text+"'",r);return r.range(i,a)}parseColorGroup(t){var n=this.parseStringGroup("color",t);if(n==null)return null;var r=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(n.text);if(!r)throw new Oe("Invalid color: '"+n.text+"'",n);var i=r[0];return/^[0-9a-f]{6}$/i.test(i)&&(i="#"+i),{type:"color-token",mode:this.mode,color:i}}parseSizeGroup(t){var n,r=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?n=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):n=this.parseStringGroup("size",t),!n)return null;!t&&n.text.length===0&&(n.text="0pt",r=!0);var i=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(n.text);if(!i)throw new Oe("Invalid size: '"+n.text+"'",n);var a={number:+(i[1]+i[2]),unit:i[3]};if(!GG(a))throw new Oe("Invalid unit: '"+a.unit+"'",n);return{type:"size",mode:this.mode,value:a,isBlank:r}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var n=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),n==null)return null;var r=n.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:r}}parseArgumentGroup(t,n){var r=this.gullet.scanArgument(t);if(r==null)return null;var i=this.mode;n&&this.switchMode(n),this.gullet.beginGroup();var a=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var o={type:"ordgroup",mode:this.mode,loc:r.loc,body:a};return n&&this.switchMode(i),o}parseGroup(t,n){var r=this.fetch(),i=r.text,a;if(i==="{"||i==="\\begingroup"){this.consume();var o=i==="{"?"}":"\\endgroup";this.gullet.beginGroup();var s=this.parseExpression(!1,o),l=this.fetch();this.expect(o),this.gullet.endGroup(),a={type:"ordgroup",mode:this.mode,loc:ga.range(r,l),body:s,semisimple:i==="\\begingroup"||void 0}}else if(a=this.parseFunction(n,t)||this.parseSymbol(),a==null&&i[0]==="\\"&&!IK.hasOwnProperty(i)){if(this.settings.throwOnError)throw new Oe("Undefined control sequence: "+i,r);a=this.formatUnsupportedCmd(i),this.consume()}return a}formLigatures(t){for(var n=t.length-1,r=0;r<n;++r){var i=t[r],a=i.text;a==="-"&&t[r+1].text==="-"&&(r+1<n&&t[r+2].text==="-"?(t.splice(r,3,{type:"textord",mode:"text",loc:ga.range(i,t[r+2]),text:"---"}),n-=2):(t.splice(r,2,{type:"textord",mode:"text",loc:ga.range(i,t[r+1]),text:"--"}),n-=1)),(a==="'"||a==="`")&&t[r+1].text===a&&(t.splice(r,2,{type:"textord",mode:"text",loc:ga.range(i,t[r+1]),text:a+a}),n-=1)}}parseSymbol(){var t=this.fetch(),n=t.text;if(/^\\verb[^a-zA-Z]/.test(n)){this.consume();var r=n.slice(5),i=r.charAt(0)==="*";if(i&&(r=r.slice(1)),r.length<2||r.charAt(0)!==r.slice(-1))throw new Oe(`\\verb assertion failed -- - please report what input caused this bug`);return r=r.slice(1,-1),{type:"verb",mode:"text",body:r,star:i}}$L.hasOwnProperty(n[0])&&!zn[this.mode][n[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+n[0]+'" used in math mode',t),n=$L[n[0]]+n.slice(1));var a=k5t.exec(n);a&&(n=n.substring(0,a.index),n==="i"?n="ı":n==="j"&&(n="ȷ"));var o;if(zn[this.mode][n]){this.settings.strict&&this.mode==="math"&&u7.indexOf(n)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var s=zn[this.mode][n].group,l=ga.range(t),c;if(f6t.hasOwnProperty(s)){var u=s;c={type:"atom",mode:this.mode,family:u,loc:l,text:n}}else c={type:s,mode:this.mode,loc:l,text:n};o=c}else if(n.charCodeAt(0)>=128)this.settings.strict&&(WG(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),t)),o={type:"textord",mode:"text",loc:ga.range(t),text:n};else return null;if(this.consume(),a)for(var f=0;f<a[0].length;f++){var h=a[0][f];if(!d5[h])throw new Oe("Unknown accent ' "+h+"'",t);var m=d5[h][this.mode]||d5[h].text;if(!m)throw new Oe("Accent "+h+" unsupported in "+this.mode+" mode",t);o={type:"accent",mode:this.mode,loc:ga.range(t),label:m,isStretchy:!1,isShifty:!0,base:o}}return o}}Ag.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var BD=function(t,n){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var r=new Ag(t,n);delete r.gullet.macros.current["\\df@tag"];var i=r.parse();if(delete r.gullet.macros.current["\\current@color"],delete r.gullet.macros.current["\\color"],r.gullet.macros.get("\\df@tag")){if(!n.displayMode)throw new Oe("\\tag works only in display equations");i=[{type:"tag",mode:"text",body:i,tag:r.subparse([new au("\\df@tag")])}]}return i},BK=function(t,n,r){n.textContent="";var i=RD(t,r).toNode();n.appendChild(i)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),BK=function(){throw new Oe("KaTeX doesn't work in quirks mode.")});var S5t=function(t,n){var r=RD(t,n).toMarkup();return r},D5t=function(t,n){var r=new kD(n);return BD(t,r)},RK=function(t,n,r){if(r.throwOnError||!(t instanceof Oe))throw t;var i=le.makeSpan(["katex-error"],[new go(n)]);return i.setAttribute("title",t.toString()),i.setAttribute("style","color:"+r.errorColor),i},RD=function(t,n){var r=new kD(n);try{var i=BD(t,r);return N6t(i,t,r)}catch(a){return RK(a,t,r)}},E5t=function(t,n){var r=new kD(n);try{var i=BD(t,r);return L6t(i,t,r)}catch(a){return RK(a,t,r)}},PD={version:"0.16.8",render:BK,renderToString:S5t,ParseError:Oe,SETTINGS_SCHEMA:Mb,__parse:D5t,__renderToDomTree:RD,__renderToHTMLTree:E5t,__setFontMetrics:a6t,__defineSymbol:v,__defineFunction:Ke,__defineMacro:B,__domTree:{Span:C1,Anchor:xD,SymbolNode:go,SvgNode:ql,PathNode:mu,LineNode:c7}};const T5t={tokenize:A5t,concrete:!0},ML={tokenize:z5t,partial:!0};function A5t(e,t,n){const r=this,i=r.events[r.events.length-1],a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0;let o=0;return s;function s(k){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),l(k)}function l(k){return k===36?(e.consume(k),o++,l):o<2?n(k):(e.exit("mathFlowFenceSequence"),Yt(e,c,"whitespace")(k))}function c(k){return k===null||st(k)?f(k):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),u(k))}function u(k){return k===null||st(k)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),f(k)):k===36?n(k):(e.consume(k),u)}function f(k){return e.exit("mathFlowFence"),r.interrupt?t(k):e.attempt(ML,h,C)(k)}function h(k){return e.attempt({tokenize:w,partial:!0},C,m)(k)}function m(k){return(a?Yt(e,g,"linePrefix",a+1):g)(k)}function g(k){return k===null?C(k):st(k)?e.attempt(ML,h,C)(k):(e.enter("mathFlowValue"),b(k))}function b(k){return k===null||st(k)?(e.exit("mathFlowValue"),g(k)):(e.consume(k),b)}function C(k){return e.exit("mathFlow"),t(k)}function w(k,S,E){let A=0;return Yt(k,_,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function _(R){return k.enter("mathFlowFence"),k.enter("mathFlowFenceSequence"),T(R)}function T(R){return R===36?(A++,k.consume(R),T):A<o?E(R):(k.exit("mathFlowFenceSequence"),Yt(k,$,"whitespace")(R))}function $(R){return R===null||st(R)?(k.exit("mathFlowFence"),S(R)):E(R)}}}function z5t(e,t,n){const r=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function F5t(e){let n=(e||{}).singleDollarTextMath;return n==null&&(n=!0),{tokenize:r,resolve:$5t,previous:M5t};function r(i,a,o){let s=0,l,c;return u;function u(b){return i.enter("mathText"),i.enter("mathTextSequence"),f(b)}function f(b){return b===36?(i.consume(b),s++,f):s<2&&!n?o(b):(i.exit("mathTextSequence"),h(b))}function h(b){return b===null?o(b):b===36?(c=i.enter("mathTextSequence"),l=0,g(b)):b===32?(i.enter("space"),i.consume(b),i.exit("space"),h):st(b)?(i.enter("lineEnding"),i.consume(b),i.exit("lineEnding"),h):(i.enter("mathTextData"),m(b))}function m(b){return b===null||b===32||b===36||st(b)?(i.exit("mathTextData"),h(b)):(i.consume(b),m)}function g(b){return b===36?(i.consume(b),l++,g):l===s?(i.exit("mathTextSequence"),i.exit("mathText"),a(b)):(c.type="mathTextData",m(b))}}}function $5t(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[n][1].type="mathTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="mathTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function M5t(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function O5t(e){return{flow:{[36]:T5t},text:{[36]:F5t(e)}}}function N5t(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:s,mathText:o,mathTextData:s}};function e(l){this.enter({type:"math",meta:null,value:"",data:{hName:"div",hProperties:{className:["math","math-display"]},hChildren:[{type:"text",value:""}]}},l)}function t(){this.buffer()}function n(){const l=this.resume(),c=this.stack[this.stack.length-1];c.meta=l}function r(){this.getData("mathFlowInside")||(this.buffer(),this.setData("mathFlowInside",!0))}function i(l){const c=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),u=this.exit(l);u.value=c,u.data.hChildren[0].value=c,this.setData("mathFlowInside")}function a(l){this.enter({type:"inlineMath",value:"",data:{hName:"span",hProperties:{className:["math","math-inline"]},hChildren:[{type:"text",value:""}]}},l),this.buffer()}function o(l){const c=this.resume(),u=this.exit(l);u.value=c,u.data.hChildren[0].value=c}function s(l){this.config.enter.data.call(this,l),this.config.exit.data.call(this,l)}}function L5t(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),r.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:` -`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:r}};function n(a,o,s,l){const c=a.value||"",u=Lp(l),f="$".repeat(Math.max(EV(c,"$")+1,2)),h=s.enter("mathFlow");let m=u.move(f);if(a.meta){const g=s.enter("mathFlowMeta");m+=u.move(Bv(s,a.meta,{before:m,after:` +?)[ \r ]*`,m7="[̀-ͯ]",w5t=new RegExp(m7+"+$"),v5t="("+NK+"+)|"+(k5t+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(m7+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(m7+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+b5t)+("|"+_5t+")");class TL{constructor(t,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=n,this.tokenRegex=new RegExp(v5t,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,n){this.catcodes[t]=n}lex(){var t=this.input,n=this.tokenRegex.lastIndex;if(n===t.length)return new au("EOF",new ga(this,n,n));var r=this.tokenRegex.exec(t);if(r===null||r.index!==n)throw new Oe("Unexpected character: '"+t[n]+"'",new au(t[n],new ga(this,n,n+1)));var i=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=t.indexOf(` +`,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new au(i,new ga(this,n,this.tokenRegex.lastIndex))}}class x5t{constructor(t,n){t===void 0&&(t={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Oe("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var n in t)t.hasOwnProperty(n)&&(t[n]==null?delete this.current[n]:this.current[n]=t[n])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,n,r){if(r===void 0&&(r=!1),r){for(var i=0;i<this.undefStack.length;i++)delete this.undefStack[i][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=n)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(t)&&(a[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var C5t=CK;B("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});B("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});B("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});B("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});B("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});B("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");B("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var AL={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};B("\\char",function(e){var t=e.popToken(),n,r="";if(t.text==="'")n=8,t=e.popToken();else if(t.text==='"')n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")r=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new Oe("\\char` missing argument");r=t.text.charCodeAt(0)}else n=10;if(n){if(r=AL[t.text],r==null||r>=n)throw new Oe("Invalid base-"+n+" digit "+t.text);for(var i;(i=AL[e.future().text])!=null&&i<n;)r*=n,r+=i,e.popToken()}return"\\@char{"+r+"}"});var LD=(e,t,n)=>{var r=e.consumeArg().tokens;if(r.length!==1)throw new Oe("\\newcommand's first argument must be a macro name");var i=r[0].text,a=e.isDefined(i);if(a&&!t)throw new Oe("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!a&&!n)throw new Oe("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var o=0;if(r=e.consumeArg().tokens,r.length===1&&r[0].text==="["){for(var s="",l=e.expandNextToken();l.text!=="]"&&l.text!=="EOF";)s+=l.text,l=e.expandNextToken();if(!s.match(/^\s*[0-9]+\s*$/))throw new Oe("Invalid number of arguments: "+s);o=parseInt(s),r=e.consumeArg().tokens}return e.macros.set(i,{tokens:r,numArgs:o}),""};B("\\newcommand",e=>LD(e,!1,!0));B("\\renewcommand",e=>LD(e,!0,!1));B("\\providecommand",e=>LD(e,!0,!0));B("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});B("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});B("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),Hc[n],zn.math[n],zn.text[n]),""});B("\\bgroup","{");B("\\egroup","}");B("~","\\nobreakspace");B("\\lq","`");B("\\rq","'");B("\\aa","\\r a");B("\\AA","\\r A");B("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");B("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");B("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");B("ℬ","\\mathscr{B}");B("ℰ","\\mathscr{E}");B("ℱ","\\mathscr{F}");B("ℋ","\\mathscr{H}");B("ℐ","\\mathscr{I}");B("ℒ","\\mathscr{L}");B("ℳ","\\mathscr{M}");B("ℛ","\\mathscr{R}");B("ℭ","\\mathfrak{C}");B("ℌ","\\mathfrak{H}");B("ℨ","\\mathfrak{Z}");B("\\Bbbk","\\Bbb{k}");B("·","\\cdotp");B("\\llap","\\mathllap{\\textrm{#1}}");B("\\rlap","\\mathrlap{\\textrm{#1}}");B("\\clap","\\mathclap{\\textrm{#1}}");B("\\mathstrut","\\vphantom{(}");B("\\underbar","\\underline{\\text{#1}}");B("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');B("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");B("\\ne","\\neq");B("≠","\\neq");B("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");B("∉","\\notin");B("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");B("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");B("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");B("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");B("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");B("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");B("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");B("⟂","\\perp");B("‼","\\mathclose{!\\mkern-0.8mu!}");B("∌","\\notni");B("⌜","\\ulcorner");B("⌝","\\urcorner");B("⌞","\\llcorner");B("⌟","\\lrcorner");B("©","\\copyright");B("®","\\textregistered");B("️","\\textregistered");B("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');B("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');B("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');B("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');B("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}");B("⋮","\\vdots");B("\\varGamma","\\mathit{\\Gamma}");B("\\varDelta","\\mathit{\\Delta}");B("\\varTheta","\\mathit{\\Theta}");B("\\varLambda","\\mathit{\\Lambda}");B("\\varXi","\\mathit{\\Xi}");B("\\varPi","\\mathit{\\Pi}");B("\\varSigma","\\mathit{\\Sigma}");B("\\varUpsilon","\\mathit{\\Upsilon}");B("\\varPhi","\\mathit{\\Phi}");B("\\varPsi","\\mathit{\\Psi}");B("\\varOmega","\\mathit{\\Omega}");B("\\substack","\\begin{subarray}{c}#1\\end{subarray}");B("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");B("\\boxed","\\fbox{$\\displaystyle{#1}$}");B("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");B("\\implies","\\DOTSB\\;\\Longrightarrow\\;");B("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var zL={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};B("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in zL?t=zL[n]:(n.slice(0,4)==="\\not"||n in zn.math&&Ct.contains(["bin","rel"],zn.math[n].group))&&(t="\\dotsb"),t});var ID={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};B("\\dotso",function(e){var t=e.future().text;return t in ID?"\\ldots\\,":"\\ldots"});B("\\dotsc",function(e){var t=e.future().text;return t in ID&&t!==","?"\\ldots\\,":"\\ldots"});B("\\cdots",function(e){var t=e.future().text;return t in ID?"\\@cdots\\,":"\\@cdots"});B("\\dotsb","\\cdots");B("\\dotsm","\\cdots");B("\\dotsi","\\!\\cdots");B("\\dotsx","\\ldots\\,");B("\\DOTSI","\\relax");B("\\DOTSB","\\relax");B("\\DOTSX","\\relax");B("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");B("\\,","\\tmspace+{3mu}{.1667em}");B("\\thinspace","\\,");B("\\>","\\mskip{4mu}");B("\\:","\\tmspace+{4mu}{.2222em}");B("\\medspace","\\:");B("\\;","\\tmspace+{5mu}{.2777em}");B("\\thickspace","\\;");B("\\!","\\tmspace-{3mu}{.1667em}");B("\\negthinspace","\\!");B("\\negmedspace","\\tmspace-{4mu}{.2222em}");B("\\negthickspace","\\tmspace-{5mu}{.277em}");B("\\enspace","\\kern.5em ");B("\\enskip","\\hskip.5em\\relax");B("\\quad","\\hskip1em\\relax");B("\\qquad","\\hskip2em\\relax");B("\\tag","\\@ifstar\\tag@literal\\tag@paren");B("\\tag@paren","\\tag@literal{({#1})}");B("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Oe("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});B("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");B("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");B("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");B("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");B("\\newline","\\\\\\relax");B("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var LK=Le(Cs["Main-Regular"]["T".charCodeAt(0)][1]-.7*Cs["Main-Regular"]["A".charCodeAt(0)][1]);B("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+LK+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");B("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+LK+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");B("\\hspace","\\@ifstar\\@hspacer\\@hspace");B("\\@hspace","\\hskip #1\\relax");B("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");B("\\ordinarycolon",":");B("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");B("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');B("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');B("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');B("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');B("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');B("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');B("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');B("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');B("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');B("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');B("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');B("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');B("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');B("∷","\\dblcolon");B("∹","\\eqcolon");B("≔","\\coloneqq");B("≕","\\eqqcolon");B("⩴","\\Coloneqq");B("\\ratio","\\vcentcolon");B("\\coloncolon","\\dblcolon");B("\\colonequals","\\coloneqq");B("\\coloncolonequals","\\Coloneqq");B("\\equalscolon","\\eqqcolon");B("\\equalscoloncolon","\\Eqqcolon");B("\\colonminus","\\coloneq");B("\\coloncolonminus","\\Coloneq");B("\\minuscolon","\\eqcolon");B("\\minuscoloncolon","\\Eqcolon");B("\\coloncolonapprox","\\Colonapprox");B("\\coloncolonsim","\\Colonsim");B("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");B("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");B("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");B("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");B("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");B("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");B("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");B("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");B("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");B("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");B("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");B("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");B("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");B("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");B("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");B("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");B("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");B("\\nleqq","\\html@mathml{\\@nleqq}{≰}");B("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");B("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");B("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");B("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");B("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");B("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");B("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");B("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");B("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");B("\\imath","\\html@mathml{\\@imath}{ı}");B("\\jmath","\\html@mathml{\\@jmath}{ȷ}");B("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");B("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");B("⟦","\\llbracket");B("⟧","\\rrbracket");B("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");B("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");B("⦃","\\lBrace");B("⦄","\\rBrace");B("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");B("⦵","\\minuso");B("\\darr","\\downarrow");B("\\dArr","\\Downarrow");B("\\Darr","\\Downarrow");B("\\lang","\\langle");B("\\rang","\\rangle");B("\\uarr","\\uparrow");B("\\uArr","\\Uparrow");B("\\Uarr","\\Uparrow");B("\\N","\\mathbb{N}");B("\\R","\\mathbb{R}");B("\\Z","\\mathbb{Z}");B("\\alef","\\aleph");B("\\alefsym","\\aleph");B("\\Alpha","\\mathrm{A}");B("\\Beta","\\mathrm{B}");B("\\bull","\\bullet");B("\\Chi","\\mathrm{X}");B("\\clubs","\\clubsuit");B("\\cnums","\\mathbb{C}");B("\\Complex","\\mathbb{C}");B("\\Dagger","\\ddagger");B("\\diamonds","\\diamondsuit");B("\\empty","\\emptyset");B("\\Epsilon","\\mathrm{E}");B("\\Eta","\\mathrm{H}");B("\\exist","\\exists");B("\\harr","\\leftrightarrow");B("\\hArr","\\Leftrightarrow");B("\\Harr","\\Leftrightarrow");B("\\hearts","\\heartsuit");B("\\image","\\Im");B("\\infin","\\infty");B("\\Iota","\\mathrm{I}");B("\\isin","\\in");B("\\Kappa","\\mathrm{K}");B("\\larr","\\leftarrow");B("\\lArr","\\Leftarrow");B("\\Larr","\\Leftarrow");B("\\lrarr","\\leftrightarrow");B("\\lrArr","\\Leftrightarrow");B("\\Lrarr","\\Leftrightarrow");B("\\Mu","\\mathrm{M}");B("\\natnums","\\mathbb{N}");B("\\Nu","\\mathrm{N}");B("\\Omicron","\\mathrm{O}");B("\\plusmn","\\pm");B("\\rarr","\\rightarrow");B("\\rArr","\\Rightarrow");B("\\Rarr","\\Rightarrow");B("\\real","\\Re");B("\\reals","\\mathbb{R}");B("\\Reals","\\mathbb{R}");B("\\Rho","\\mathrm{P}");B("\\sdot","\\cdot");B("\\sect","\\S");B("\\spades","\\spadesuit");B("\\sub","\\subset");B("\\sube","\\subseteq");B("\\supe","\\supseteq");B("\\Tau","\\mathrm{T}");B("\\thetasym","\\vartheta");B("\\weierp","\\wp");B("\\Zeta","\\mathrm{Z}");B("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");B("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");B("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");B("\\bra","\\mathinner{\\langle{#1}|}");B("\\ket","\\mathinner{|{#1}\\rangle}");B("\\braket","\\mathinner{\\langle{#1}\\rangle}");B("\\Bra","\\left\\langle#1\\right|");B("\\Ket","\\left|#1\\right\\rangle");var IK=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get("|"),s=t.macros.get("\\|");t.macros.beginGroup();var l=f=>h=>{e&&(h.macros.set("|",o),i.length&&h.macros.set("\\|",s));var m=f;if(!f&&i.length){var g=h.future();g.text==="|"&&(h.popToken(),m=!0)}return{tokens:m?i:r,numArgs:0}};t.macros.set("|",l(!1)),i.length&&t.macros.set("\\|",l(!0));var c=t.consumeArg().tokens,u=t.expandTokens([...a,...c,...n]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};B("\\bra@ket",IK(!1));B("\\bra@set",IK(!0));B("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");B("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");B("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");B("\\angln","{\\angl n}");B("\\blue","\\textcolor{##6495ed}{#1}");B("\\orange","\\textcolor{##ffa500}{#1}");B("\\pink","\\textcolor{##ff00af}{#1}");B("\\red","\\textcolor{##df0030}{#1}");B("\\green","\\textcolor{##28ae7b}{#1}");B("\\gray","\\textcolor{gray}{#1}");B("\\purple","\\textcolor{##9d38bd}{#1}");B("\\blueA","\\textcolor{##ccfaff}{#1}");B("\\blueB","\\textcolor{##80f6ff}{#1}");B("\\blueC","\\textcolor{##63d9ea}{#1}");B("\\blueD","\\textcolor{##11accd}{#1}");B("\\blueE","\\textcolor{##0c7f99}{#1}");B("\\tealA","\\textcolor{##94fff5}{#1}");B("\\tealB","\\textcolor{##26edd5}{#1}");B("\\tealC","\\textcolor{##01d1c1}{#1}");B("\\tealD","\\textcolor{##01a995}{#1}");B("\\tealE","\\textcolor{##208170}{#1}");B("\\greenA","\\textcolor{##b6ffb0}{#1}");B("\\greenB","\\textcolor{##8af281}{#1}");B("\\greenC","\\textcolor{##74cf70}{#1}");B("\\greenD","\\textcolor{##1fab54}{#1}");B("\\greenE","\\textcolor{##0d923f}{#1}");B("\\goldA","\\textcolor{##ffd0a9}{#1}");B("\\goldB","\\textcolor{##ffbb71}{#1}");B("\\goldC","\\textcolor{##ff9c39}{#1}");B("\\goldD","\\textcolor{##e07d10}{#1}");B("\\goldE","\\textcolor{##a75a05}{#1}");B("\\redA","\\textcolor{##fca9a9}{#1}");B("\\redB","\\textcolor{##ff8482}{#1}");B("\\redC","\\textcolor{##f9685d}{#1}");B("\\redD","\\textcolor{##e84d39}{#1}");B("\\redE","\\textcolor{##bc2612}{#1}");B("\\maroonA","\\textcolor{##ffbde0}{#1}");B("\\maroonB","\\textcolor{##ff92c6}{#1}");B("\\maroonC","\\textcolor{##ed5fa6}{#1}");B("\\maroonD","\\textcolor{##ca337c}{#1}");B("\\maroonE","\\textcolor{##9e034e}{#1}");B("\\purpleA","\\textcolor{##ddd7ff}{#1}");B("\\purpleB","\\textcolor{##c6b9fc}{#1}");B("\\purpleC","\\textcolor{##aa87ff}{#1}");B("\\purpleD","\\textcolor{##7854ab}{#1}");B("\\purpleE","\\textcolor{##543b78}{#1}");B("\\mintA","\\textcolor{##f5f9e8}{#1}");B("\\mintB","\\textcolor{##edf2df}{#1}");B("\\mintC","\\textcolor{##e0e5cc}{#1}");B("\\grayA","\\textcolor{##f6f7f7}{#1}");B("\\grayB","\\textcolor{##f0f1f2}{#1}");B("\\grayC","\\textcolor{##e3e5e6}{#1}");B("\\grayD","\\textcolor{##d6d8da}{#1}");B("\\grayE","\\textcolor{##babec2}{#1}");B("\\grayF","\\textcolor{##888d93}{#1}");B("\\grayG","\\textcolor{##626569}{#1}");B("\\grayH","\\textcolor{##3b3e40}{#1}");B("\\grayI","\\textcolor{##21242c}{#1}");B("\\kaBlue","\\textcolor{##314453}{#1}");B("\\kaGreen","\\textcolor{##71B307}{#1}");var BK={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class S5t{constructor(t,n,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=n,this.expansionCount=0,this.feed(t),this.macros=new x5t(C5t,n.macros),this.mode=r,this.stack=[]}feed(t){this.lexer=new TL(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var n,r,i;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:i,end:r}=this.consumeArg(["]"])}else({tokens:i,start:n,end:r}=this.consumeArg());return this.pushToken(new au("EOF",r.loc)),this.pushTokens(i),n.range(r,"")}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],r=t&&t.length>0;r||this.consumeSpaces();var i=this.future(),a,o=0,s=0;do{if(a=this.popToken(),n.push(a),a.text==="{")++o;else if(a.text==="}"){if(--o,o===-1)throw new Oe("Extra }",a)}else if(a.text==="EOF")throw new Oe("Unexpected end of input in a macro argument, expected '"+(t&&r?t[s]:"}")+"'",a);if(t&&r)if((o===0||o===1&&t[s]==="{")&&a.text===t[s]){if(++s,s===t.length){n.splice(-s,s);break}}else s=0}while(o!==0||r);return i.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:i,end:a}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new Oe("The length of delimiters doesn't match the number of args!");for(var r=n[0],i=0;i<r.length;i++){var a=this.popToken();if(r[i]!==a.text)throw new Oe("Use of the macro doesn't match its definition",a)}}for(var o=[],s=0;s<t;s++)o.push(this.consumeArg(n&&n[s+1]).tokens);return o}expandOnce(t){var n=this.popToken(),r=n.text,i=n.noexpand?null:this._getExpansion(r);if(i==null||t&&i.unexpandable){if(t&&i==null&&r[0]==="\\"&&!this.isDefined(r))throw new Oe("Undefined control sequence: "+r);return this.pushToken(n),!1}if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new Oe("Too many expansions: infinite loop or need to increase maxExpand setting");var a=i.tokens,o=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var s=a.length-1;s>=0;--s){var l=a[s];if(l.text==="#"){if(s===0)throw new Oe("Incomplete placeholder at end of macro body",l);if(l=a[--s],l.text==="#")a.splice(s+1,1);else if(/^[1-9]$/.test(l.text))a.splice(s,2,...o[+l.text-1]);else throw new Oe("Not a valid argument number",l)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new au(t)]):void 0}expandTokens(t){var n=[],r=this.stack.length;for(this.pushTokens(t);this.stack.length>r;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),n.push(i)}return n}expandMacroAsText(t){var n=this.expandMacro(t);return n&&n.map(r=>r.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var r=this.lexer.catcodes[t];if(r!=null&&r!==13)return}var i=typeof n=="function"?n(this):n;if(typeof i=="string"){var a=0;if(i.indexOf("#")!==-1)for(var o=i.replace(/##/g,"");o.indexOf("#"+(a+1))!==-1;)++a;for(var s=new TL(i,this.settings),l=[],c=s.lex();c.text!=="EOF";)l.push(c),c=s.lex();l.reverse();var u={tokens:l,numArgs:a};return u}return i}isDefined(t){return this.macros.has(t)||Hc.hasOwnProperty(t)||zn.math.hasOwnProperty(t)||zn.text.hasOwnProperty(t)||BK.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:Hc.hasOwnProperty(t)&&!Hc[t].primitive}}var FL=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,__=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),d5={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},$L={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Ag{constructor(t,n){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new S5t(t,n,this.mode),this.settings=n,this.leftrightDepth=0}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new Oe("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());n&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var n=this.nextToken;this.consume(),this.gullet.pushToken(new au("}")),this.gullet.pushTokens(t);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,r}parseExpression(t,n){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(Ag.endOfExpression.indexOf(i.text)!==-1||n&&i.text===n||t&&Hc[i.text]&&Hc[i.text].infix)break;var a=this.parseAtom(n);if(a){if(a.type==="internal")continue}else break;r.push(a)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(t){for(var n=-1,r,i=0;i<t.length;i++)if(t[i].type==="infix"){if(n!==-1)throw new Oe("only one infix operator per group",t[i].token);n=i,r=t[i].replaceWith}if(n!==-1&&r){var a,o,s=t.slice(0,n),l=t.slice(n+1);s.length===1&&s[0].type==="ordgroup"?a=s[0]:a={type:"ordgroup",mode:this.mode,body:s},l.length===1&&l[0].type==="ordgroup"?o=l[0]:o={type:"ordgroup",mode:this.mode,body:l};var c;return r==="\\\\abovefrac"?c=this.callFunction(r,[a,t[n],o],[]):c=this.callFunction(r,[a,o],[]),[c]}else return t}handleSupSubscript(t){var n=this.fetch(),r=n.text;this.consume(),this.consumeSpaces();var i=this.parseGroup(t);if(!i)throw new Oe("Expected group after '"+r+"'",n);return i}formatUnsupportedCmd(t){for(var n=[],r=0;r<t.length;r++)n.push({type:"textord",mode:"text",text:t[r]});var i={type:"text",mode:this.mode,body:n},a={type:"color",mode:this.mode,color:this.settings.errorColor,body:[i]};return a}parseAtom(t){var n=this.parseGroup("atom",t);if(this.mode==="text")return n;for(var r,i;;){this.consumeSpaces();var a=this.fetch();if(a.text==="\\limits"||a.text==="\\nolimits"){if(n&&n.type==="op"){var o=a.text==="\\limits";n.limits=o,n.alwaysHandleSupSub=!0}else if(n&&n.type==="operatorname")n.alwaysHandleSupSub&&(n.limits=a.text==="\\limits");else throw new Oe("Limit controls must follow a math operator",a);this.consume()}else if(a.text==="^"){if(r)throw new Oe("Double superscript",a);r=this.handleSupSubscript("superscript")}else if(a.text==="_"){if(i)throw new Oe("Double subscript",a);i=this.handleSupSubscript("subscript")}else if(a.text==="'"){if(r)throw new Oe("Double superscript",a);var s={type:"textord",mode:this.mode,text:"\\prime"},l=[s];for(this.consume();this.fetch().text==="'";)l.push(s),this.consume();this.fetch().text==="^"&&l.push(this.handleSupSubscript("superscript")),r={type:"ordgroup",mode:this.mode,body:l}}else if(__[a.text]){var c=__[a.text],u=FL.test(a.text);for(this.consume();;){var f=this.fetch().text;if(!__[f]||FL.test(f)!==u)break;this.consume(),c+=__[f]}var h=new Ag(c,this.settings).parse();u?i={type:"ordgroup",mode:"math",body:h}:r={type:"ordgroup",mode:"math",body:h}}else break}return r||i?{type:"supsub",mode:this.mode,base:n,sup:r,sub:i}:n}parseFunction(t,n){var r=this.fetch(),i=r.text,a=Hc[i];if(!a)return null;if(this.consume(),n&&n!=="atom"&&!a.allowedInArgument)throw new Oe("Got function '"+i+"' with no arguments"+(n?" as "+n:""),r);if(this.mode==="text"&&!a.allowedInText)throw new Oe("Can't use function '"+i+"' in text mode",r);if(this.mode==="math"&&a.allowedInMath===!1)throw new Oe("Can't use function '"+i+"' in math mode",r);var{args:o,optArgs:s}=this.parseArguments(i,a);return this.callFunction(i,o,s,r,t)}callFunction(t,n,r,i,a){var o={funcName:t,parser:this,token:i,breakOnTokenText:a},s=Hc[t];if(s&&s.handler)return s.handler(o,n,r);throw new Oe("No function handler for "+t)}parseArguments(t,n){var r=n.numArgs+n.numOptionalArgs;if(r===0)return{args:[],optArgs:[]};for(var i=[],a=[],o=0;o<r;o++){var s=n.argTypes&&n.argTypes[o],l=o<n.numOptionalArgs;(n.primitive&&s==null||n.type==="sqrt"&&o===1&&a[0]==null)&&(s="primitive");var c=this.parseGroupOfType("argument to '"+t+"'",s,l);if(l)a.push(c);else if(c!=null)i.push(c);else throw new Oe("Null argument, please report this as a bug")}return{args:i,optArgs:a}}parseGroupOfType(t,n,r){switch(n){case"color":return this.parseColorGroup(r);case"size":return this.parseSizeGroup(r);case"url":return this.parseUrlGroup(r);case"math":case"text":return this.parseArgumentGroup(r,n);case"hbox":{var i=this.parseArgumentGroup(r,"text");return i!=null?{type:"styling",mode:i.mode,body:[i],style:"text"}:null}case"raw":{var a=this.parseStringGroup("raw",r);return a!=null?{type:"raw",mode:"text",string:a.text}:null}case"primitive":{if(r)throw new Oe("A primitive argument cannot be optional");var o=this.parseGroup(t);if(o==null)throw new Oe("Expected group as "+t,this.fetch());return o}case"original":case null:case void 0:return this.parseArgumentGroup(r);default:throw new Oe("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,n){var r=this.gullet.scanArgument(n);if(r==null)return null;for(var i="",a;(a=this.fetch()).text!=="EOF";)i+=a.text,this.consume();return this.consume(),r.text=i,r}parseRegexGroup(t,n){for(var r=this.fetch(),i=r,a="",o;(o=this.fetch()).text!=="EOF"&&t.test(a+o.text);)i=o,a+=i.text,this.consume();if(a==="")throw new Oe("Invalid "+n+": '"+r.text+"'",r);return r.range(i,a)}parseColorGroup(t){var n=this.parseStringGroup("color",t);if(n==null)return null;var r=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(n.text);if(!r)throw new Oe("Invalid color: '"+n.text+"'",n);var i=r[0];return/^[0-9a-f]{6}$/i.test(i)&&(i="#"+i),{type:"color-token",mode:this.mode,color:i}}parseSizeGroup(t){var n,r=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?n=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):n=this.parseStringGroup("size",t),!n)return null;!t&&n.text.length===0&&(n.text="0pt",r=!0);var i=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(n.text);if(!i)throw new Oe("Invalid size: '"+n.text+"'",n);var a={number:+(i[1]+i[2]),unit:i[3]};if(!KG(a))throw new Oe("Invalid unit: '"+a.unit+"'",n);return{type:"size",mode:this.mode,value:a,isBlank:r}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var n=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),n==null)return null;var r=n.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:r}}parseArgumentGroup(t,n){var r=this.gullet.scanArgument(t);if(r==null)return null;var i=this.mode;n&&this.switchMode(n),this.gullet.beginGroup();var a=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var o={type:"ordgroup",mode:this.mode,loc:r.loc,body:a};return n&&this.switchMode(i),o}parseGroup(t,n){var r=this.fetch(),i=r.text,a;if(i==="{"||i==="\\begingroup"){this.consume();var o=i==="{"?"}":"\\endgroup";this.gullet.beginGroup();var s=this.parseExpression(!1,o),l=this.fetch();this.expect(o),this.gullet.endGroup(),a={type:"ordgroup",mode:this.mode,loc:ga.range(r,l),body:s,semisimple:i==="\\begingroup"||void 0}}else if(a=this.parseFunction(n,t)||this.parseSymbol(),a==null&&i[0]==="\\"&&!BK.hasOwnProperty(i)){if(this.settings.throwOnError)throw new Oe("Undefined control sequence: "+i,r);a=this.formatUnsupportedCmd(i),this.consume()}return a}formLigatures(t){for(var n=t.length-1,r=0;r<n;++r){var i=t[r],a=i.text;a==="-"&&t[r+1].text==="-"&&(r+1<n&&t[r+2].text==="-"?(t.splice(r,3,{type:"textord",mode:"text",loc:ga.range(i,t[r+2]),text:"---"}),n-=2):(t.splice(r,2,{type:"textord",mode:"text",loc:ga.range(i,t[r+1]),text:"--"}),n-=1)),(a==="'"||a==="`")&&t[r+1].text===a&&(t.splice(r,2,{type:"textord",mode:"text",loc:ga.range(i,t[r+1]),text:a+a}),n-=1)}}parseSymbol(){var t=this.fetch(),n=t.text;if(/^\\verb[^a-zA-Z]/.test(n)){this.consume();var r=n.slice(5),i=r.charAt(0)==="*";if(i&&(r=r.slice(1)),r.length<2||r.charAt(0)!==r.slice(-1))throw new Oe(`\\verb assertion failed -- + please report what input caused this bug`);return r=r.slice(1,-1),{type:"verb",mode:"text",body:r,star:i}}$L.hasOwnProperty(n[0])&&!zn[this.mode][n[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+n[0]+'" used in math mode',t),n=$L[n[0]]+n.slice(1));var a=w5t.exec(n);a&&(n=n.substring(0,a.index),n==="i"?n="ı":n==="j"&&(n="ȷ"));var o;if(zn[this.mode][n]){this.settings.strict&&this.mode==="math"&&u7.indexOf(n)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var s=zn[this.mode][n].group,l=ga.range(t),c;if(h6t.hasOwnProperty(s)){var u=s;c={type:"atom",mode:this.mode,family:u,loc:l,text:n}}else c={type:s,mode:this.mode,loc:l,text:n};o=c}else if(n.charCodeAt(0)>=128)this.settings.strict&&(GG(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),t)),o={type:"textord",mode:"text",loc:ga.range(t),text:n};else return null;if(this.consume(),a)for(var f=0;f<a[0].length;f++){var h=a[0][f];if(!d5[h])throw new Oe("Unknown accent ' "+h+"'",t);var m=d5[h][this.mode]||d5[h].text;if(!m)throw new Oe("Accent "+h+" unsupported in "+this.mode+" mode",t);o={type:"accent",mode:this.mode,loc:ga.range(t),label:m,isStretchy:!1,isShifty:!0,base:o}}return o}}Ag.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var BD=function(t,n){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var r=new Ag(t,n);delete r.gullet.macros.current["\\df@tag"];var i=r.parse();if(delete r.gullet.macros.current["\\current@color"],delete r.gullet.macros.current["\\color"],r.gullet.macros.get("\\df@tag")){if(!n.displayMode)throw new Oe("\\tag works only in display equations");i=[{type:"tag",mode:"text",body:i,tag:r.subparse([new au("\\df@tag")])}]}return i},RK=function(t,n,r){n.textContent="";var i=RD(t,r).toNode();n.appendChild(i)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),RK=function(){throw new Oe("KaTeX doesn't work in quirks mode.")});var D5t=function(t,n){var r=RD(t,n).toMarkup();return r},E5t=function(t,n){var r=new kD(n);return BD(t,r)},PK=function(t,n,r){if(r.throwOnError||!(t instanceof Oe))throw t;var i=le.makeSpan(["katex-error"],[new go(n)]);return i.setAttribute("title",t.toString()),i.setAttribute("style","color:"+r.errorColor),i},RD=function(t,n){var r=new kD(n);try{var i=BD(t,r);return L6t(i,t,r)}catch(a){return PK(a,t,r)}},T5t=function(t,n){var r=new kD(n);try{var i=BD(t,r);return I6t(i,t,r)}catch(a){return PK(a,t,r)}},PD={version:"0.16.8",render:RK,renderToString:D5t,ParseError:Oe,SETTINGS_SCHEMA:Mb,__parse:E5t,__renderToDomTree:RD,__renderToHTMLTree:T5t,__setFontMetrics:o6t,__defineSymbol:v,__defineFunction:Ke,__defineMacro:B,__domTree:{Span:C1,Anchor:xD,SymbolNode:go,SvgNode:ql,PathNode:mu,LineNode:c7}};const A5t={tokenize:z5t,concrete:!0},ML={tokenize:F5t,partial:!0};function z5t(e,t,n){const r=this,i=r.events[r.events.length-1],a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0;let o=0;return s;function s(k){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),l(k)}function l(k){return k===36?(e.consume(k),o++,l):o<2?n(k):(e.exit("mathFlowFenceSequence"),Yt(e,c,"whitespace")(k))}function c(k){return k===null||st(k)?f(k):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),u(k))}function u(k){return k===null||st(k)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),f(k)):k===36?n(k):(e.consume(k),u)}function f(k){return e.exit("mathFlowFence"),r.interrupt?t(k):e.attempt(ML,h,C)(k)}function h(k){return e.attempt({tokenize:w,partial:!0},C,m)(k)}function m(k){return(a?Yt(e,g,"linePrefix",a+1):g)(k)}function g(k){return k===null?C(k):st(k)?e.attempt(ML,h,C)(k):(e.enter("mathFlowValue"),b(k))}function b(k){return k===null||st(k)?(e.exit("mathFlowValue"),g(k)):(e.consume(k),b)}function C(k){return e.exit("mathFlow"),t(k)}function w(k,S,E){let A=0;return Yt(k,_,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function _(R){return k.enter("mathFlowFence"),k.enter("mathFlowFenceSequence"),T(R)}function T(R){return R===36?(A++,k.consume(R),T):A<o?E(R):(k.exit("mathFlowFenceSequence"),Yt(k,$,"whitespace")(R))}function $(R){return R===null||st(R)?(k.exit("mathFlowFence"),S(R)):E(R)}}}function F5t(e,t,n){const r=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function $5t(e){let n=(e||{}).singleDollarTextMath;return n==null&&(n=!0),{tokenize:r,resolve:M5t,previous:O5t};function r(i,a,o){let s=0,l,c;return u;function u(b){return i.enter("mathText"),i.enter("mathTextSequence"),f(b)}function f(b){return b===36?(i.consume(b),s++,f):s<2&&!n?o(b):(i.exit("mathTextSequence"),h(b))}function h(b){return b===null?o(b):b===36?(c=i.enter("mathTextSequence"),l=0,g(b)):b===32?(i.enter("space"),i.consume(b),i.exit("space"),h):st(b)?(i.enter("lineEnding"),i.consume(b),i.exit("lineEnding"),h):(i.enter("mathTextData"),m(b))}function m(b){return b===null||b===32||b===36||st(b)?(i.exit("mathTextData"),h(b)):(i.consume(b),m)}function g(b){return b===36?(i.consume(b),l++,g):l===s?(i.exit("mathTextSequence"),i.exit("mathText"),a(b)):(c.type="mathTextData",m(b))}}}function M5t(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[n][1].type="mathTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="mathTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function O5t(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function N5t(e){return{flow:{[36]:A5t},text:{[36]:$5t(e)}}}function L5t(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:s,mathText:o,mathTextData:s}};function e(l){this.enter({type:"math",meta:null,value:"",data:{hName:"div",hProperties:{className:["math","math-display"]},hChildren:[{type:"text",value:""}]}},l)}function t(){this.buffer()}function n(){const l=this.resume(),c=this.stack[this.stack.length-1];c.meta=l}function r(){this.getData("mathFlowInside")||(this.buffer(),this.setData("mathFlowInside",!0))}function i(l){const c=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),u=this.exit(l);u.value=c,u.data.hChildren[0].value=c,this.setData("mathFlowInside")}function a(l){this.enter({type:"inlineMath",value:"",data:{hName:"span",hProperties:{className:["math","math-inline"]},hChildren:[{type:"text",value:""}]}},l),this.buffer()}function o(l){const c=this.resume(),u=this.exit(l);u.value=c,u.data.hChildren[0].value=c}function s(l){this.config.enter.data.call(this,l),this.config.exit.data.call(this,l)}}function I5t(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),r.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:` +`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:r}};function n(a,o,s,l){const c=a.value||"",u=Lp(l),f="$".repeat(Math.max(TV(c,"$")+1,2)),h=s.enter("mathFlow");let m=u.move(f);if(a.meta){const g=s.enter("mathFlowMeta");m+=u.move(Bv(s,a.meta,{before:m,after:` `,encode:["$"],...u.current()})),g()}return m+=u.move(` `),c&&(m+=u.move(c+` -`)),m+=u.move(f),h(),m}function r(a,o,s){let l=a.value||"",c=1;for(t||c++;new RegExp("(^|[^$])"+"\\$".repeat(c)+"([^$]|$)").test(l);)c++;const u="$".repeat(c);/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^\$|\$$/.test(l))&&(l=" "+l+" ");let f=-1;for(;++f<s.unsafe.length;){const h=s.unsafe[f],m=dS(h);let g;if(h.atBreak)for(;g=m.exec(l);){let b=g.index;l.codePointAt(b)===10&&l.codePointAt(b-1)===13&&b--,l=l.slice(0,b)+" "+l.slice(g.index+1)}}return u+l+u}function i(){return"$"}}function I5t(e={}){const t=this.data();n("micromarkExtensions",O5t(e)),n("fromMarkdownExtensions",N5t()),n("toMarkdownExtensions",L5t(e));function n(r,i){(t[r]?t[r]:t[r]=[]).push(i)}}const _f=(e,t)=>(Object.assign(e,{meta:{package:"@milkdown/plugin-math",...t}}),e),PK=Ps(()=>I5t);_f(PK,{displayName:"Remark<remarkMath>"});const f5="math_inline",D1=Lr({},"katexOptions");_f(D1,{displayName:"Ctx<katexOptions>"});const jD=cr("math_inline",e=>({group:"inline",content:"text*",inline:!0,atom:!0,parseDOM:[{tag:`span[data-type="${f5}"]`,getContent:(t,n)=>{if(!(t instanceof HTMLElement))throw Ma(t);return Ee.from(n.text(t.dataset.value??""))}}],toDOM:t=>{const n=t.textContent,r=document.createElement("span");return r.dataset.type=f5,r.dataset.value=n,PD.render(n,r,e.get(D1.key)),r},parseMarkdown:{match:t=>t.type==="inlineMath",runner:(t,n,r)=>{t.openNode(r).addText(n.value).closeNode()}},toMarkdown:{match:t=>t.type.name===f5,runner:(t,n)=>{t.addNode("inlineMath",void 0,n.textContent)}}}));_f(jD.ctx,{displayName:"NodeSchemaCtx<mathInline>"});_f(jD.node,{displayName:"NodeSchema<mathInline>"});const h5="math_block",ef=cr("math_block",e=>({content:"text*",group:"block",marks:"",defining:!0,atom:!0,isolating:!0,attrs:{value:{default:""}},parseDOM:[{tag:`div[data-type="${h5}"]`,preserveWhitespace:"full",getAttrs:t=>({value:t.dataset.value??""})}],toDOM:t=>{const n=t.attrs.value,r=document.createElement("div");return r.dataset.type=h5,r.dataset.value=n,PD.render(n,r,e.get(D1.key)),r},parseMarkdown:{match:({type:t})=>t==="math",runner:(t,n,r)=>{const i=n.value;t.addNode(r,{value:i})}},toMarkdown:{match:t=>t.type.name===h5,runner:(t,n)=>{t.addNode("math",void 0,n.attrs.value)}}}));_f(ef.ctx,{displayName:"NodeSchemaCtx<mathBlock>"});_f(ef.node,{displayName:"NodeSchema<mathBlock>"});const jK=vo(e=>new Yl(/^\$\$\s$/,(t,n,r,i)=>{const a=t.doc.resolve(r);return a.node(-1).canReplaceWith(a.index(-1),a.indexAfter(-1),ef.type(e))?t.tr.delete(r,i).setBlockType(r,r,ef.type(e)):null}));_f(jK,{displayName:"InputRule<mathBlock>"});const B5t=[PK,D1,jD,ef,jK].flat(),R5t=({codePanelRef:e})=>{const{node:t}=es(),{editor:n,loading:r}=li(),i=F.useMemo(()=>t.attrs.value,[t.attrs.value]);F.useEffect(()=>{requestAnimationFrame(()=>{if(n&&!r&&n.status===pn.Created){if(!e.current)return;try{PD.render(i,e.current,n.ctx.get(D1.key))}catch{}}})},[i,r,n,e])},OL=()=>{const e=F.useRef(null);return R5t({codePanelRef:e}),j(P5t,{ref:e})},P5t=Ae.div.withConfig({displayName:"PreviewContainerStyled"})(["text-align:center;"]);function g7(){return g7=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g7.apply(this,arguments)}function j5t(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var V5t=F.useLayoutEffect,q5t=function(t){var n=F.useRef(t);return V5t(function(){n.current=t}),n},NL=function(t,n){if(typeof t=="function"){t(n);return}t.current=n},H5t=function(t,n){var r=F.useRef();return F.useCallback(function(i){t.current=i,r.current&&NL(r.current,null),r.current=n,n&&NL(n,i)},[n])},LL={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},U5t=function(t){Object.keys(LL).forEach(function(n){t.style.setProperty(n,LL[n],"important")})},IL=U5t,fi=null,BL=function(t,n){var r=t.scrollHeight;return n.sizingStyle.boxSizing==="border-box"?r+n.borderSize:r-n.paddingSize};function W5t(e,t,n,r){n===void 0&&(n=1),r===void 0&&(r=1/0),fi||(fi=document.createElement("textarea"),fi.setAttribute("tabindex","-1"),fi.setAttribute("aria-hidden","true"),IL(fi)),fi.parentNode===null&&document.body.appendChild(fi);var i=e.paddingSize,a=e.borderSize,o=e.sizingStyle,s=o.boxSizing;Object.keys(o).forEach(function(h){var m=h;fi.style[m]=o[m]}),IL(fi),fi.value=t;var l=BL(fi,e);fi.value=t,l=BL(fi,e),fi.value="x";var c=fi.scrollHeight-i,u=c*n;s==="border-box"&&(u=u+i+a),l=Math.max(u,l);var f=c*r;return s==="border-box"&&(f=f+i+a),l=Math.min(f,l),[l,c]}var RL=function(){},G5t=function(t,n){return t.reduce(function(r,i){return r[i]=n[i],r},{})},K5t=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],Y5t=!!document.documentElement.currentStyle,Z5t=function(t){var n=window.getComputedStyle(t);if(n===null)return null;var r=G5t(K5t,n),i=r.boxSizing;if(i==="")return null;Y5t&&i==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var a=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),o=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:a,borderSize:o}},X5t=Z5t;function VK(e,t,n){var r=q5t(n);F.useLayoutEffect(function(){var i=function(o){return r.current(o)};if(e)return e.addEventListener(t,i),function(){return e.removeEventListener(t,i)}},[])}var J5t=function(t){VK(window,"resize",t)},Q5t=function(t){VK(document.fonts,"loadingdone",t)},ext=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],txt=function(t,n){var r=t.cacheMeasurements,i=t.maxRows,a=t.minRows,o=t.onChange,s=o===void 0?RL:o,l=t.onHeightChange,c=l===void 0?RL:l,u=j5t(t,ext),f=u.value!==void 0,h=F.useRef(null),m=H5t(h,n),g=F.useRef(0),b=F.useRef(),C=function(){var S=h.current,E=r&&b.current?b.current:X5t(S);if(E){b.current=E;var A=W5t(E,S.value||S.placeholder||"x",a,i),_=A[0],T=A[1];g.current!==_&&(g.current=_,S.style.setProperty("height",_+"px","important"),c(_,{rowHeight:T}))}},w=function(S){f||C(),s(S)};return F.useLayoutEffect(C),J5t(C),Q5t(C),F.createElement("textarea",g7({},u,{onChange:w,ref:m}))},qK=F.forwardRef(txt);const HK=F.createContext({selected:"",onTabChange:()=>{}}),nxt=({children:e,initialTab:t,onTabChange:n})=>{const[r,i]=F.useState(t),a=F.useCallback(s=>{i(s),n(s)},[n]),o=F.useMemo(()=>({selected:r,onTabChange:a}),[r,a]);return j(HK.Provider,{value:o,children:e})},v2=()=>F.useContext(HK),rxt=({onSourceUpdate:e})=>{const t=F.useRef(null),{node:n}=es(),{onTabChange:r}=v2(),i=()=>{var s;const o=((s=t.current)==null?void 0:s.value)||"";e(o),r(GK.Preview)},a=F.useMemo(()=>n.attrs.value,[n.attrs.value]);return He(Gr,{children:[j(ixt,{ref:t,defaultValue:a}),j(axt,{oval:!0,variant:"contained",color:"primary",onClick:i,children:"Update"})]})},ixt=Ae(qK).withConfig({displayName:"TextareaStyled"})(["outline:0;background-color:transparent;border:0;min-height:",";font-family:",";font-size:",";line-height:",";width:100%;resize:vertical;"],ee(60),e=>e.theme.fonts.secondary,ee(16),ee(22)),axt=Ae(Xt).withConfig({displayName:"UpdateButtonStyled"})(["position:absolute;top:",";right:",";"],ee(16),ee(16)),yw=({label:e,children:t})=>{const{selected:n,onTabChange:r}=v2();return j(oxt,{$isSelected:n===e,children:j(Xt,{color:"secondary",onClick:()=>r(e),children:t})})},oxt=Ae.li.withConfig({displayName:"TabStyled"})(["list-style-type:none;border-bottom:2px solid ",";transition:border-color 0.1s ease-in;"],e=>e.$isSelected?e.theme.colors.lightGreen:"transparent"),UK=({children:e})=>j(sxt,{children:e}),sxt=Ae.ul.withConfig({displayName:"TabListStyled"})(["display:flex;align-items:center;margin-bottom:",";&&&{padding:0;}"],ee(10)),x2=({label:e,children:t,className:n})=>{const{selected:r}=v2();return e!==r?null:j(lxt,{className:n,children:t})},lxt=Ae.div.withConfig({displayName:"TabPanelContainerStyled"})(["position:relative;padding:",";background-color:",";border:1px solid ",";border-radius:",";font-size:",";"],ee(16),e=>e.theme.colors.lightAzure,e=>e.theme.colors.azure,ee(8),e=>e.theme.fonts.secondary),WK=({children:e,initialTab:t,onTabChange:n=()=>{}})=>j(nxt,{initialTab:t,onTabChange:n,children:j("div",{children:e})});var GK=(e=>(e.Preview="preview",e.Source="soure",e))(GK||{});const cxt=()=>{const{mode:e}=ta(),{setAttrs:t}=es(),n=r=>{t({value:r})};return e==="preview"?j(PL,{children:j(OL,{})}):j(PL,{contentEditable:!1,children:He(WK,{initialTab:"preview",children:[He(UK,{children:[j(yw,{label:"preview",children:"Preview"}),j(yw,{label:"soure",children:"Source"})]}),j(x2,{label:"preview",children:j(OL,{})}),j(uxt,{label:"soure",children:j(rxt,{onSourceUpdate:n})})]})})},uxt=Ae(x2).withConfig({displayName:"SourceTabPanelStyled"})(["padding-right:0;"]),PL=Ae.div.withConfig({displayName:"MathNodeContainerStyled"})(["margin:"," 0;"],ee(16)),VD=Lt("InsertMathCommand",e=>t=>Zd(ef.type(e),{value:t})),dxt=()=>{const e=aS();return F.useMemo(()=>[B5t,VD,jk(ef.node,()=>e({component:cxt,stopEvent:()=>!0}))].flat(),[e])};function fxt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Array.from(typeof e=="string"?[e]:e);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var i=r.reduce(function(s,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?s.concat(c.map(function(u){var f,h;return(h=(f=u.match(/[\t ]/g))===null||f===void 0?void 0:f.length)!==null&&h!==void 0?h:0})):s},[]);if(i.length){var a=new RegExp(` +`)),m+=u.move(f),h(),m}function r(a,o,s){let l=a.value||"",c=1;for(t||c++;new RegExp("(^|[^$])"+"\\$".repeat(c)+"([^$]|$)").test(l);)c++;const u="$".repeat(c);/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^\$|\$$/.test(l))&&(l=" "+l+" ");let f=-1;for(;++f<s.unsafe.length;){const h=s.unsafe[f],m=dS(h);let g;if(h.atBreak)for(;g=m.exec(l);){let b=g.index;l.codePointAt(b)===10&&l.codePointAt(b-1)===13&&b--,l=l.slice(0,b)+" "+l.slice(g.index+1)}}return u+l+u}function i(){return"$"}}function B5t(e={}){const t=this.data();n("micromarkExtensions",N5t(e)),n("fromMarkdownExtensions",L5t()),n("toMarkdownExtensions",I5t(e));function n(r,i){(t[r]?t[r]:t[r]=[]).push(i)}}const _f=(e,t)=>(Object.assign(e,{meta:{package:"@milkdown/plugin-math",...t}}),e),jK=Ps(()=>B5t);_f(jK,{displayName:"Remark<remarkMath>"});const f5="math_inline",D1=Lr({},"katexOptions");_f(D1,{displayName:"Ctx<katexOptions>"});const jD=cr("math_inline",e=>({group:"inline",content:"text*",inline:!0,atom:!0,parseDOM:[{tag:`span[data-type="${f5}"]`,getContent:(t,n)=>{if(!(t instanceof HTMLElement))throw Ma(t);return Ee.from(n.text(t.dataset.value??""))}}],toDOM:t=>{const n=t.textContent,r=document.createElement("span");return r.dataset.type=f5,r.dataset.value=n,PD.render(n,r,e.get(D1.key)),r},parseMarkdown:{match:t=>t.type==="inlineMath",runner:(t,n,r)=>{t.openNode(r).addText(n.value).closeNode()}},toMarkdown:{match:t=>t.type.name===f5,runner:(t,n)=>{t.addNode("inlineMath",void 0,n.textContent)}}}));_f(jD.ctx,{displayName:"NodeSchemaCtx<mathInline>"});_f(jD.node,{displayName:"NodeSchema<mathInline>"});const h5="math_block",ef=cr("math_block",e=>({content:"text*",group:"block",marks:"",defining:!0,atom:!0,isolating:!0,attrs:{value:{default:""}},parseDOM:[{tag:`div[data-type="${h5}"]`,preserveWhitespace:"full",getAttrs:t=>({value:t.dataset.value??""})}],toDOM:t=>{const n=t.attrs.value,r=document.createElement("div");return r.dataset.type=h5,r.dataset.value=n,PD.render(n,r,e.get(D1.key)),r},parseMarkdown:{match:({type:t})=>t==="math",runner:(t,n,r)=>{const i=n.value;t.addNode(r,{value:i})}},toMarkdown:{match:t=>t.type.name===h5,runner:(t,n)=>{t.addNode("math",void 0,n.attrs.value)}}}));_f(ef.ctx,{displayName:"NodeSchemaCtx<mathBlock>"});_f(ef.node,{displayName:"NodeSchema<mathBlock>"});const VK=vo(e=>new Yl(/^\$\$\s$/,(t,n,r,i)=>{const a=t.doc.resolve(r);return a.node(-1).canReplaceWith(a.index(-1),a.indexAfter(-1),ef.type(e))?t.tr.delete(r,i).setBlockType(r,r,ef.type(e)):null}));_f(VK,{displayName:"InputRule<mathBlock>"});const R5t=[jK,D1,jD,ef,VK].flat(),P5t=({codePanelRef:e})=>{const{node:t}=es(),{editor:n,loading:r}=li(),i=F.useMemo(()=>t.attrs.value,[t.attrs.value]);F.useEffect(()=>{requestAnimationFrame(()=>{if(n&&!r&&n.status===fn.Created){if(!e.current)return;try{PD.render(i,e.current,n.ctx.get(D1.key))}catch{}}})},[i,r,n,e])},OL=()=>{const e=F.useRef(null);return P5t({codePanelRef:e}),j(j5t,{ref:e})},j5t=Ae.div.withConfig({displayName:"PreviewContainerStyled"})(["text-align:center;"]);function g7(){return g7=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g7.apply(this,arguments)}function V5t(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var q5t=F.useLayoutEffect,H5t=function(t){var n=F.useRef(t);return q5t(function(){n.current=t}),n},NL=function(t,n){if(typeof t=="function"){t(n);return}t.current=n},U5t=function(t,n){var r=F.useRef();return F.useCallback(function(i){t.current=i,r.current&&NL(r.current,null),r.current=n,n&&NL(n,i)},[n])},LL={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},W5t=function(t){Object.keys(LL).forEach(function(n){t.style.setProperty(n,LL[n],"important")})},IL=W5t,fi=null,BL=function(t,n){var r=t.scrollHeight;return n.sizingStyle.boxSizing==="border-box"?r+n.borderSize:r-n.paddingSize};function G5t(e,t,n,r){n===void 0&&(n=1),r===void 0&&(r=1/0),fi||(fi=document.createElement("textarea"),fi.setAttribute("tabindex","-1"),fi.setAttribute("aria-hidden","true"),IL(fi)),fi.parentNode===null&&document.body.appendChild(fi);var i=e.paddingSize,a=e.borderSize,o=e.sizingStyle,s=o.boxSizing;Object.keys(o).forEach(function(h){var m=h;fi.style[m]=o[m]}),IL(fi),fi.value=t;var l=BL(fi,e);fi.value=t,l=BL(fi,e),fi.value="x";var c=fi.scrollHeight-i,u=c*n;s==="border-box"&&(u=u+i+a),l=Math.max(u,l);var f=c*r;return s==="border-box"&&(f=f+i+a),l=Math.min(f,l),[l,c]}var RL=function(){},K5t=function(t,n){return t.reduce(function(r,i){return r[i]=n[i],r},{})},Y5t=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],Z5t=!!document.documentElement.currentStyle,X5t=function(t){var n=window.getComputedStyle(t);if(n===null)return null;var r=K5t(Y5t,n),i=r.boxSizing;if(i==="")return null;Z5t&&i==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var a=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),o=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:a,borderSize:o}},J5t=X5t;function qK(e,t,n){var r=H5t(n);F.useLayoutEffect(function(){var i=function(o){return r.current(o)};if(e)return e.addEventListener(t,i),function(){return e.removeEventListener(t,i)}},[])}var Q5t=function(t){qK(window,"resize",t)},ext=function(t){qK(document.fonts,"loadingdone",t)},txt=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],nxt=function(t,n){var r=t.cacheMeasurements,i=t.maxRows,a=t.minRows,o=t.onChange,s=o===void 0?RL:o,l=t.onHeightChange,c=l===void 0?RL:l,u=V5t(t,txt),f=u.value!==void 0,h=F.useRef(null),m=U5t(h,n),g=F.useRef(0),b=F.useRef(),C=function(){var S=h.current,E=r&&b.current?b.current:J5t(S);if(E){b.current=E;var A=G5t(E,S.value||S.placeholder||"x",a,i),_=A[0],T=A[1];g.current!==_&&(g.current=_,S.style.setProperty("height",_+"px","important"),c(_,{rowHeight:T}))}},w=function(S){f||C(),s(S)};return F.useLayoutEffect(C),Q5t(C),ext(C),F.createElement("textarea",g7({},u,{onChange:w,ref:m}))},HK=F.forwardRef(nxt);const UK=F.createContext({selected:"",onTabChange:()=>{}}),rxt=({children:e,initialTab:t,onTabChange:n})=>{const[r,i]=F.useState(t),a=F.useCallback(s=>{i(s),n(s)},[n]),o=F.useMemo(()=>({selected:r,onTabChange:a}),[r,a]);return j(UK.Provider,{value:o,children:e})},v2=()=>F.useContext(UK),ixt=({onSourceUpdate:e})=>{const t=F.useRef(null),{node:n}=es(),{onTabChange:r}=v2(),i=()=>{var s;const o=((s=t.current)==null?void 0:s.value)||"";e(o),r(KK.Preview)},a=F.useMemo(()=>n.attrs.value,[n.attrs.value]);return He(Gr,{children:[j(axt,{ref:t,defaultValue:a}),j(oxt,{oval:!0,variant:"contained",color:"primary",onClick:i,children:"Update"})]})},axt=Ae(HK).withConfig({displayName:"TextareaStyled"})(["outline:0;background-color:transparent;border:0;min-height:",";font-family:",";font-size:",";line-height:",";width:100%;resize:vertical;"],ee(60),e=>e.theme.fonts.secondary,ee(16),ee(22)),oxt=Ae(Xt).withConfig({displayName:"UpdateButtonStyled"})(["position:absolute;top:",";right:",";"],ee(16),ee(16)),yw=({label:e,children:t})=>{const{selected:n,onTabChange:r}=v2();return j(sxt,{$isSelected:n===e,children:j(Xt,{color:"secondary",onClick:()=>r(e),children:t})})},sxt=Ae.li.withConfig({displayName:"TabStyled"})(["list-style-type:none;border-bottom:2px solid ",";transition:border-color 0.1s ease-in;"],e=>e.$isSelected?e.theme.colors.lightGreen:"transparent"),WK=({children:e})=>j(lxt,{children:e}),lxt=Ae.ul.withConfig({displayName:"TabListStyled"})(["display:flex;align-items:center;margin-bottom:",";&&&{padding:0;}"],ee(10)),x2=({label:e,children:t,className:n})=>{const{selected:r}=v2();return e!==r?null:j(cxt,{className:n,children:t})},cxt=Ae.div.withConfig({displayName:"TabPanelContainerStyled"})(["position:relative;padding:",";background-color:",";border:1px solid ",";border-radius:",";font-size:",";"],ee(16),e=>e.theme.colors.lightAzure,e=>e.theme.colors.azure,ee(8),e=>e.theme.fonts.secondary),GK=({children:e,initialTab:t,onTabChange:n=()=>{}})=>j(rxt,{initialTab:t,onTabChange:n,children:j("div",{children:e})});var KK=(e=>(e.Preview="preview",e.Source="soure",e))(KK||{});const uxt=()=>{const{mode:e}=ta(),{setAttrs:t}=es(),n=r=>{t({value:r})};return e==="preview"?j(PL,{children:j(OL,{})}):j(PL,{contentEditable:!1,children:He(GK,{initialTab:"preview",children:[He(WK,{children:[j(yw,{label:"preview",children:"Preview"}),j(yw,{label:"soure",children:"Source"})]}),j(x2,{label:"preview",children:j(OL,{})}),j(dxt,{label:"soure",children:j(ixt,{onSourceUpdate:n})})]})})},dxt=Ae(x2).withConfig({displayName:"SourceTabPanelStyled"})(["padding-right:0;"]),PL=Ae.div.withConfig({displayName:"MathNodeContainerStyled"})(["margin:"," 0;"],ee(16)),VD=Lt("InsertMathCommand",e=>t=>Zd(ef.type(e),{value:t})),fxt=()=>{const e=aS();return F.useMemo(()=>[R5t,VD,jk(ef.node,()=>e({component:uxt,stopEvent:()=>!0}))].flat(),[e])};function hxt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Array.from(typeof e=="string"?[e]:e);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var i=r.reduce(function(s,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?s.concat(c.map(function(u){var f,h;return(h=(f=u.match(/[\t ]/g))===null||f===void 0?void 0:f.length)!==null&&h!==void 0?h:0})):s},[]);if(i.length){var a=new RegExp(` [ ]{`+Math.min.apply(Math,i)+"}","g");r=r.map(function(s){return s.replace(a,` `)})}r[0]=r[0].replace(/^\r?\n/,"");var o=r[0];return t.forEach(function(s,l){var c=o.match(/(?:^|\n)( *)$/),u=c?c[1]:"",f=s;typeof s=="string"&&s.includes(` `)&&(f=String(s).split(` `).map(function(h,m){return m===0?h:""+u+h}).join(` -`)),o+=f+r[l+1]}),o}const hxt="modulepreload",pxt=function(e){return"/notion-style-editor/"+e},jL={},Er=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(a=>{if(a=pxt(a),a in jL)return;jL[a]=!0;const o=a.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(!!r)for(let u=i.length-1;u>=0;u--){const f=i[u];if(f.href===a&&(!o||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${s}`))return;const c=document.createElement("link");if(c.rel=o?"stylesheet":hxt,o||(c.as="script",c.crossOrigin=""),c.href=a,document.head.appendChild(c),o)return new Promise((u,f)=>{c.addEventListener("load",u),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>t())};var KK={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Bi,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",o="second",s="minute",l="hour",c="day",u="week",f="month",h="quarter",m="year",g="date",b="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,k={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Z){var W=["th","st","nd","rd"],Y=Z%100;return"["+Z+(W[(Y-20)%10]||W[Y]||W[0])+"]"}},S=function(Z,W,Y){var fe=String(Z);return!fe||fe.length>=W?Z:""+Array(W+1-fe.length).join(Y)+Z},E={s:S,z:function(Z){var W=-Z.utcOffset(),Y=Math.abs(W),fe=Math.floor(Y/60),ae=Y%60;return(W<=0?"+":"-")+S(fe,2,"0")+":"+S(ae,2,"0")},m:function Z(W,Y){if(W.date()<Y.date())return-Z(Y,W);var fe=12*(Y.year()-W.year())+(Y.month()-W.month()),ae=W.clone().add(fe,f),Q=Y-ae<0,ce=W.clone().add(fe+(Q?-1:1),f);return+(-(fe+(Y-ae)/(Q?ae-ce:ce-ae))||0)},a:function(Z){return Z<0?Math.ceil(Z)||0:Math.floor(Z)},p:function(Z){return{M:f,y:m,w:u,d:c,D:g,h:l,m:s,s:o,ms:a,Q:h}[Z]||String(Z||"").toLowerCase().replace(/s$/,"")},u:function(Z){return Z===void 0}},A="en",_={};_[A]=k;var T=function(Z){return Z instanceof G},$=function Z(W,Y,fe){var ae;if(!W)return A;if(typeof W=="string"){var Q=W.toLowerCase();_[Q]&&(ae=Q),Y&&(_[Q]=Y,ae=Q);var ce=W.split("-");if(!ae&&ce.length>1)return Z(ce[0])}else{var L=W.name;_[L]=W,ae=L}return!fe&&ae&&(A=ae),ae||!fe&&A},R=function(Z,W){if(T(Z))return Z.clone();var Y=typeof W=="object"?W:{};return Y.date=Z,Y.args=arguments,new G(Y)},O=E;O.l=$,O.i=T,O.w=function(Z,W){return R(Z,{locale:W.$L,utc:W.$u,x:W.$x,$offset:W.$offset})};var G=function(){function Z(Y){this.$L=$(Y.locale,null,!0),this.parse(Y)}var W=Z.prototype;return W.parse=function(Y){this.$d=function(fe){var ae=fe.date,Q=fe.utc;if(ae===null)return new Date(NaN);if(O.u(ae))return new Date;if(ae instanceof Date)return new Date(ae);if(typeof ae=="string"&&!/Z$/i.test(ae)){var ce=ae.match(C);if(ce){var L=ce[2]-1||0,de=(ce[7]||"0").substring(0,3);return Q?new Date(Date.UTC(ce[1],L,ce[3]||1,ce[4]||0,ce[5]||0,ce[6]||0,de)):new Date(ce[1],L,ce[3]||1,ce[4]||0,ce[5]||0,ce[6]||0,de)}}return new Date(ae)}(Y),this.$x=Y.x||{},this.init()},W.init=function(){var Y=this.$d;this.$y=Y.getFullYear(),this.$M=Y.getMonth(),this.$D=Y.getDate(),this.$W=Y.getDay(),this.$H=Y.getHours(),this.$m=Y.getMinutes(),this.$s=Y.getSeconds(),this.$ms=Y.getMilliseconds()},W.$utils=function(){return O},W.isValid=function(){return this.$d.toString()!==b},W.isSame=function(Y,fe){var ae=R(Y);return this.startOf(fe)<=ae&&ae<=this.endOf(fe)},W.isAfter=function(Y,fe){return R(Y)<this.startOf(fe)},W.isBefore=function(Y,fe){return this.endOf(fe)<R(Y)},W.$g=function(Y,fe,ae){return O.u(Y)?this[fe]:this.set(ae,Y)},W.unix=function(){return Math.floor(this.valueOf()/1e3)},W.valueOf=function(){return this.$d.getTime()},W.startOf=function(Y,fe){var ae=this,Q=!!O.u(fe)||fe,ce=O.p(Y),L=function(ye,We){var Pe=O.w(ae.$u?Date.UTC(ae.$y,We,ye):new Date(ae.$y,We,ye),ae);return Q?Pe:Pe.endOf(c)},de=function(ye,We){return O.w(ae.toDate()[ye].apply(ae.toDate("s"),(Q?[0,0,0,0]:[23,59,59,999]).slice(We)),ae)},ue=this.$W,I=this.$M,be=this.$D,ze="set"+(this.$u?"UTC":"");switch(ce){case m:return Q?L(1,0):L(31,11);case f:return Q?L(1,I):L(0,I+1);case u:var J=this.$locale().weekStart||0,Ve=(ue<J?ue+7:ue)-J;return L(Q?be-Ve:be+(6-Ve),I);case c:case g:return de(ze+"Hours",0);case l:return de(ze+"Minutes",1);case s:return de(ze+"Seconds",2);case o:return de(ze+"Milliseconds",3);default:return this.clone()}},W.endOf=function(Y){return this.startOf(Y,!1)},W.$set=function(Y,fe){var ae,Q=O.p(Y),ce="set"+(this.$u?"UTC":""),L=(ae={},ae[c]=ce+"Date",ae[g]=ce+"Date",ae[f]=ce+"Month",ae[m]=ce+"FullYear",ae[l]=ce+"Hours",ae[s]=ce+"Minutes",ae[o]=ce+"Seconds",ae[a]=ce+"Milliseconds",ae)[Q],de=Q===c?this.$D+(fe-this.$W):fe;if(Q===f||Q===m){var ue=this.clone().set(g,1);ue.$d[L](de),ue.init(),this.$d=ue.set(g,Math.min(this.$D,ue.daysInMonth())).$d}else L&&this.$d[L](de);return this.init(),this},W.set=function(Y,fe){return this.clone().$set(Y,fe)},W.get=function(Y){return this[O.p(Y)]()},W.add=function(Y,fe){var ae,Q=this;Y=Number(Y);var ce=O.p(fe),L=function(I){var be=R(Q);return O.w(be.date(be.date()+Math.round(I*Y)),Q)};if(ce===f)return this.set(f,this.$M+Y);if(ce===m)return this.set(m,this.$y+Y);if(ce===c)return L(1);if(ce===u)return L(7);var de=(ae={},ae[s]=r,ae[l]=i,ae[o]=n,ae)[ce]||1,ue=this.$d.getTime()+Y*de;return O.w(ue,this)},W.subtract=function(Y,fe){return this.add(-1*Y,fe)},W.format=function(Y){var fe=this,ae=this.$locale();if(!this.isValid())return ae.invalidDate||b;var Q=Y||"YYYY-MM-DDTHH:mm:ssZ",ce=O.z(this),L=this.$H,de=this.$m,ue=this.$M,I=ae.weekdays,be=ae.months,ze=ae.meridiem,J=function(We,Pe,Ge,Xe){return We&&(We[Pe]||We(fe,Q))||Ge[Pe].slice(0,Xe)},Ve=function(We){return O.s(L%12||12,We,"0")},ye=ze||function(We,Pe,Ge){var Xe=We<12?"AM":"PM";return Ge?Xe.toLowerCase():Xe};return Q.replace(w,function(We,Pe){return Pe||function(Ge){switch(Ge){case"YY":return String(fe.$y).slice(-2);case"YYYY":return O.s(fe.$y,4,"0");case"M":return ue+1;case"MM":return O.s(ue+1,2,"0");case"MMM":return J(ae.monthsShort,ue,be,3);case"MMMM":return J(be,ue);case"D":return fe.$D;case"DD":return O.s(fe.$D,2,"0");case"d":return String(fe.$W);case"dd":return J(ae.weekdaysMin,fe.$W,I,2);case"ddd":return J(ae.weekdaysShort,fe.$W,I,3);case"dddd":return I[fe.$W];case"H":return String(L);case"HH":return O.s(L,2,"0");case"h":return Ve(1);case"hh":return Ve(2);case"a":return ye(L,de,!0);case"A":return ye(L,de,!1);case"m":return String(de);case"mm":return O.s(de,2,"0");case"s":return String(fe.$s);case"ss":return O.s(fe.$s,2,"0");case"SSS":return O.s(fe.$ms,3,"0");case"Z":return ce}return null}(We)||ce.replace(":","")})},W.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},W.diff=function(Y,fe,ae){var Q,ce=this,L=O.p(fe),de=R(Y),ue=(de.utcOffset()-this.utcOffset())*r,I=this-de,be=function(){return O.m(ce,de)};switch(L){case m:Q=be()/12;break;case f:Q=be();break;case h:Q=be()/3;break;case u:Q=(I-ue)/6048e5;break;case c:Q=(I-ue)/864e5;break;case l:Q=I/i;break;case s:Q=I/r;break;case o:Q=I/n;break;default:Q=I}return ae?Q:O.a(Q)},W.daysInMonth=function(){return this.endOf(f).$D},W.$locale=function(){return _[this.$L]},W.locale=function(Y,fe){if(!Y)return this.$L;var ae=this.clone(),Q=$(Y,fe,!0);return Q&&(ae.$L=Q),ae},W.clone=function(){return O.w(this.$d,this)},W.toDate=function(){return new Date(this.valueOf())},W.toJSON=function(){return this.isValid()?this.toISOString():null},W.toISOString=function(){return this.$d.toISOString()},W.toString=function(){return this.$d.toUTCString()},Z}(),V=G.prototype;return R.prototype=V,[["$ms",a],["$s",o],["$m",s],["$H",l],["$W",c],["$M",f],["$y",m],["$D",g]].forEach(function(Z){V[Z[1]]=function(W){return this.$g(W,Z[0],Z[1])}}),R.extend=function(Z,W){return Z.$i||(Z(W,G,R),Z.$i=!0),R},R.locale=$,R.isDayjs=T,R.unix=function(Z){return R(1e3*Z)},R.en=_[A],R.Ls=_,R.p={},R})})(KK);var mxt=KK.exports;const gxt=Qo(mxt);var qD={};Object.defineProperty(qD,"__esModule",{value:!0});var YK=qD.sanitizeUrl=void 0,yxt=/^([^\w]*)(javascript|data|vbscript)/im,_xt=/&#(\w+)(^\w|;)?/g,bxt=/&(newline|tab);/gi,kxt=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,wxt=/^.+(:|:)/gim,vxt=[".","/"];function xxt(e){return vxt.indexOf(e[0])>-1}function Cxt(e){return e.replace(_xt,function(t,n){return String.fromCharCode(n)})}function Sxt(e){var t=Cxt(e||"").replace(bxt,"").replace(kxt,"").trim();if(!t)return"about:blank";if(xxt(t))return t;var n=t.match(wxt);if(!n)return t;var r=n[0];return yxt.test(r)?"about:blank":t}YK=qD.sanitizeUrl=Sxt;var Dxt={value:()=>{}};function ZK(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Nb(n)}function Nb(e){this._=e}function Ext(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Nb.prototype=ZK.prototype={constructor:Nb,on:function(e,t){var n=this._,r=Ext(e+"",n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=Txt(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=VL(n[i],e.name,t);else if(t==null)for(i in n)n[i]=VL(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Nb(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function Txt(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function VL(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=Dxt,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var y7="http://www.w3.org/1999/xhtml";const qL={svg:"http://www.w3.org/2000/svg",xhtml:y7,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function C2(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),qL.hasOwnProperty(t)?{space:qL[t],local:e}:e}function Axt(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===y7&&t.documentElement.namespaceURI===y7?t.createElement(e):t.createElementNS(n,e)}}function zxt(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function XK(e){var t=C2(e);return(t.local?zxt:Axt)(t)}function Fxt(){}function HD(e){return e==null?Fxt:function(){return this.querySelector(e)}}function $xt(e){typeof e!="function"&&(e=HD(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=new Array(o),l,c,u=0;u<o;++u)(l=a[u])&&(c=e.call(l,l.__data__,u,a))&&("__data__"in l&&(c.__data__=l.__data__),s[u]=c);return new Ea(r,this._parents)}function Mxt(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Oxt(){return[]}function JK(e){return e==null?Oxt:function(){return this.querySelectorAll(e)}}function Nxt(e){return function(){return Mxt(e.apply(this,arguments))}}function Lxt(e){typeof e=="function"?e=Nxt(e):e=JK(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,l,c=0;c<s;++c)(l=o[c])&&(r.push(e.call(l,l.__data__,c,o)),i.push(l));return new Ea(r,i)}function QK(e){return function(){return this.matches(e)}}function eY(e){return function(t){return t.matches(e)}}var Ixt=Array.prototype.find;function Bxt(e){return function(){return Ixt.call(this.children,e)}}function Rxt(){return this.firstElementChild}function Pxt(e){return this.select(e==null?Rxt:Bxt(typeof e=="function"?e:eY(e)))}var jxt=Array.prototype.filter;function Vxt(){return Array.from(this.children)}function qxt(e){return function(){return jxt.call(this.children,e)}}function Hxt(e){return this.selectAll(e==null?Vxt:qxt(typeof e=="function"?e:eY(e)))}function Uxt(e){typeof e!="function"&&(e=QK(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],l,c=0;c<o;++c)(l=a[c])&&e.call(l,l.__data__,c,a)&&s.push(l);return new Ea(r,this._parents)}function tY(e){return new Array(e.length)}function Wxt(){return new Ea(this._enter||this._groups.map(tY),this._parents)}function _w(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}_w.prototype={constructor:_w,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Gxt(e){return function(){return e}}function Kxt(e,t,n,r,i,a){for(var o=0,s,l=t.length,c=a.length;o<c;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new _w(e,a[o]);for(;o<l;++o)(s=t[o])&&(i[o]=s)}function Yxt(e,t,n,r,i,a,o){var s,l,c=new Map,u=t.length,f=a.length,h=new Array(u),m;for(s=0;s<u;++s)(l=t[s])&&(h[s]=m=o.call(l,l.__data__,s,t)+"",c.has(m)?i[s]=l:c.set(m,l));for(s=0;s<f;++s)m=o.call(e,a[s],s,a)+"",(l=c.get(m))?(r[s]=l,l.__data__=a[s],c.delete(m)):n[s]=new _w(e,a[s]);for(s=0;s<u;++s)(l=t[s])&&c.get(h[s])===l&&(i[s]=l)}function Zxt(e){return e.__data__}function Xxt(e,t){if(!arguments.length)return Array.from(this,Zxt);var n=t?Yxt:Kxt,r=this._parents,i=this._groups;typeof e!="function"&&(e=Gxt(e));for(var a=i.length,o=new Array(a),s=new Array(a),l=new Array(a),c=0;c<a;++c){var u=r[c],f=i[c],h=f.length,m=Jxt(e.call(u,u&&u.__data__,c,r)),g=m.length,b=s[c]=new Array(g),C=o[c]=new Array(g),w=l[c]=new Array(h);n(u,f,b,C,w,m,t);for(var k=0,S=0,E,A;k<g;++k)if(E=b[k]){for(k>=S&&(S=k+1);!(A=C[S])&&++S<g;);E._next=A||null}}return o=new Ea(o,r),o._enter=s,o._exit=l,o}function Jxt(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Qxt(){return new Ea(this._exit||this._groups.map(tY),this._parents)}function e8t(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function t8t(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=new Array(i),l=0;l<o;++l)for(var c=n[l],u=r[l],f=c.length,h=s[l]=new Array(f),m,g=0;g<f;++g)(m=c[g]||u[g])&&(h[g]=m);for(;l<i;++l)s[l]=n[l];return new Ea(s,this._parents)}function n8t(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function r8t(e){e||(e=i8t);function t(f,h){return f&&h?e(f.__data__,h.__data__):!f-!h}for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,l=i[a]=new Array(s),c,u=0;u<s;++u)(c=o[u])&&(l[u]=c);l.sort(t)}return new Ea(i,this._parents).order()}function i8t(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function a8t(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function o8t(){return Array.from(this)}function s8t(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function l8t(){let e=0;for(const t of this)++e;return e}function c8t(){return!this.node()}function u8t(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function d8t(e){return function(){this.removeAttribute(e)}}function f8t(e){return function(){this.removeAttributeNS(e.space,e.local)}}function h8t(e,t){return function(){this.setAttribute(e,t)}}function p8t(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function m8t(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function g8t(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function y8t(e,t){var n=C2(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?f8t:d8t:typeof t=="function"?n.local?g8t:m8t:n.local?p8t:h8t)(n,t))}function nY(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function _8t(e){return function(){this.style.removeProperty(e)}}function b8t(e,t,n){return function(){this.style.setProperty(e,t,n)}}function k8t(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function w8t(e,t,n){return arguments.length>1?this.each((t==null?_8t:typeof t=="function"?k8t:b8t)(e,t,n??"")):Cp(this.node(),e)}function Cp(e,t){return e.style.getPropertyValue(t)||nY(e).getComputedStyle(e,null).getPropertyValue(t)}function v8t(e){return function(){delete this[e]}}function x8t(e,t){return function(){this[e]=t}}function C8t(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function S8t(e,t){return arguments.length>1?this.each((t==null?v8t:typeof t=="function"?C8t:x8t)(e,t)):this.node()[e]}function rY(e){return e.trim().split(/^|\s+/)}function UD(e){return e.classList||new iY(e)}function iY(e){this._node=e,this._names=rY(e.getAttribute("class")||"")}iY.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function aY(e,t){for(var n=UD(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function oY(e,t){for(var n=UD(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function D8t(e){return function(){aY(this,e)}}function E8t(e){return function(){oY(this,e)}}function T8t(e,t){return function(){(t.apply(this,arguments)?aY:oY)(this,e)}}function A8t(e,t){var n=rY(e+"");if(arguments.length<2){for(var r=UD(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?T8t:t?D8t:E8t)(n,t))}function z8t(){this.textContent=""}function F8t(e){return function(){this.textContent=e}}function $8t(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function M8t(e){return arguments.length?this.each(e==null?z8t:(typeof e=="function"?$8t:F8t)(e)):this.node().textContent}function O8t(){this.innerHTML=""}function N8t(e){return function(){this.innerHTML=e}}function L8t(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function I8t(e){return arguments.length?this.each(e==null?O8t:(typeof e=="function"?L8t:N8t)(e)):this.node().innerHTML}function B8t(){this.nextSibling&&this.parentNode.appendChild(this)}function R8t(){return this.each(B8t)}function P8t(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function j8t(){return this.each(P8t)}function V8t(e){var t=typeof e=="function"?e:XK(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function q8t(){return null}function H8t(e,t){var n=typeof e=="function"?e:XK(e),r=t==null?q8t:typeof t=="function"?t:HD(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function U8t(){var e=this.parentNode;e&&e.removeChild(this)}function W8t(){return this.each(U8t)}function G8t(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function K8t(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Y8t(e){return this.select(e?K8t:G8t)}function Z8t(e){return arguments.length?this.property("__data__",e):this.node().__data__}function X8t(e){return function(t){e.call(this,t,this.__data__)}}function J8t(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function Q8t(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function e7t(e,t,n){return function(){var r=this.__on,i,a=X8t(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function t7t(e,t,n){var r=J8t(e+""),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var l=0,c=s.length,u;l<c;++l)for(i=0,u=s[l];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?e7t:Q8t,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function sY(e,t,n){var r=nY(e),i=r.CustomEvent;typeof i=="function"?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function n7t(e,t){return function(){return sY(this,e,t)}}function r7t(e,t){return function(){return sY(this,e,t.apply(this,arguments))}}function i7t(e,t){return this.each((typeof t=="function"?r7t:n7t)(e,t))}function*a7t(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var lY=[null];function Ea(e,t){this._groups=e,this._parents=t}function E1(){return new Ea([[document.documentElement]],lY)}function o7t(){return this}Ea.prototype=E1.prototype={constructor:Ea,select:$xt,selectAll:Lxt,selectChild:Pxt,selectChildren:Hxt,filter:Uxt,data:Xxt,enter:Wxt,exit:Qxt,join:e8t,merge:t8t,selection:o7t,order:n8t,sort:r8t,call:a8t,nodes:o8t,node:s8t,size:l8t,empty:c8t,each:u8t,attr:y8t,style:w8t,property:S8t,classed:A8t,text:M8t,html:I8t,raise:R8t,lower:j8t,append:V8t,insert:H8t,remove:W8t,clone:Y8t,datum:Z8t,on:t7t,dispatch:i7t,[Symbol.iterator]:a7t};function ms(e){return typeof e=="string"?new Ea([[document.querySelector(e)]],[document.documentElement]):new Ea([[e]],lY)}function WD(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function cY(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function T1(){}var zg=.7,bw=1/zg,Gh="\\s*([+-]?\\d+)\\s*",Fg="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Fs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",s7t=/^#([0-9a-f]{3,8})$/,l7t=new RegExp(`^rgb\\(${Gh},${Gh},${Gh}\\)$`),c7t=new RegExp(`^rgb\\(${Fs},${Fs},${Fs}\\)$`),u7t=new RegExp(`^rgba\\(${Gh},${Gh},${Gh},${Fg}\\)$`),d7t=new RegExp(`^rgba\\(${Fs},${Fs},${Fs},${Fg}\\)$`),f7t=new RegExp(`^hsl\\(${Fg},${Fs},${Fs}\\)$`),h7t=new RegExp(`^hsla\\(${Fg},${Fs},${Fs},${Fg}\\)$`),HL={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};WD(T1,$g,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:UL,formatHex:UL,formatHex8:p7t,formatHsl:m7t,formatRgb:WL,toString:WL});function UL(){return this.rgb().formatHex()}function p7t(){return this.rgb().formatHex8()}function m7t(){return uY(this).formatHsl()}function WL(){return this.rgb().formatRgb()}function $g(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=s7t.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?GL(t):n===3?new Vi(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?b_(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?b_(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=l7t.exec(e))?new Vi(t[1],t[2],t[3],1):(t=c7t.exec(e))?new Vi(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=u7t.exec(e))?b_(t[1],t[2],t[3],t[4]):(t=d7t.exec(e))?b_(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=f7t.exec(e))?ZL(t[1],t[2]/100,t[3]/100,1):(t=h7t.exec(e))?ZL(t[1],t[2]/100,t[3]/100,t[4]):HL.hasOwnProperty(e)?GL(HL[e]):e==="transparent"?new Vi(NaN,NaN,NaN,0):null}function GL(e){return new Vi(e>>16&255,e>>8&255,e&255,1)}function b_(e,t,n,r){return r<=0&&(e=t=n=NaN),new Vi(e,t,n,r)}function g7t(e){return e instanceof T1||(e=$g(e)),e?(e=e.rgb(),new Vi(e.r,e.g,e.b,e.opacity)):new Vi}function _7(e,t,n,r){return arguments.length===1?g7t(e):new Vi(e,t,n,r??1)}function Vi(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}WD(Vi,_7,cY(T1,{brighter(e){return e=e==null?bw:Math.pow(bw,e),new Vi(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?zg:Math.pow(zg,e),new Vi(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Vi(Ld(this.r),Ld(this.g),Ld(this.b),kw(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:KL,formatHex:KL,formatHex8:y7t,formatRgb:YL,toString:YL}));function KL(){return`#${xd(this.r)}${xd(this.g)}${xd(this.b)}`}function y7t(){return`#${xd(this.r)}${xd(this.g)}${xd(this.b)}${xd((isNaN(this.opacity)?1:this.opacity)*255)}`}function YL(){const e=kw(this.opacity);return`${e===1?"rgb(":"rgba("}${Ld(this.r)}, ${Ld(this.g)}, ${Ld(this.b)}${e===1?")":`, ${e})`}`}function kw(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ld(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function xd(e){return e=Ld(e),(e<16?"0":"")+e.toString(16)}function ZL(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Vo(e,t,n,r)}function uY(e){if(e instanceof Vo)return new Vo(e.h,e.s,e.l,e.opacity);if(e instanceof T1||(e=$g(e)),!e)return new Vo;if(e instanceof Vo)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(n-r)/s+(n<r)*6:n===a?o=(r-t)/s+2:o=(t-n)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new Vo(o,s,l,e.opacity)}function _7t(e,t,n,r){return arguments.length===1?uY(e):new Vo(e,t,n,r??1)}function Vo(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}WD(Vo,_7t,cY(T1,{brighter(e){return e=e==null?bw:Math.pow(bw,e),new Vo(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?zg:Math.pow(zg,e),new Vo(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Vi(p5(e>=240?e-240:e+120,i,r),p5(e,i,r),p5(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Vo(XL(this.h),k_(this.s),k_(this.l),kw(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=kw(this.opacity);return`${e===1?"hsl(":"hsla("}${XL(this.h)}, ${k_(this.s)*100}%, ${k_(this.l)*100}%${e===1?")":`, ${e})`}`}}));function XL(e){return e=(e||0)%360,e<0?e+360:e}function k_(e){return Math.max(0,Math.min(1,e||0))}function p5(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const GD=e=>()=>e;function dY(e,t){return function(n){return e+n*t}}function b7t(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function VNt(e,t){var n=t-e;return n?dY(e,n>180||n<-180?n-360*Math.round(n/360):n):GD(isNaN(e)?t:e)}function k7t(e){return(e=+e)==1?fY:function(t,n){return n-t?b7t(t,n,e):GD(isNaN(t)?n:t)}}function fY(e,t){var n=t-e;return n?dY(e,n):GD(isNaN(e)?t:e)}const JL=function e(t){var n=k7t(t);function r(i,a){var o=n((i=_7(i)).r,(a=_7(a)).r),s=n(i.g,a.g),l=n(i.b,a.b),c=fY(i.opacity,a.opacity);return function(u){return i.r=o(u),i.g=s(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=e,r}(1);function Mc(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var b7=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,m5=new RegExp(b7.source,"g");function w7t(e){return function(){return e}}function v7t(e){return function(t){return e(t)+""}}function x7t(e,t){var n=b7.lastIndex=m5.lastIndex=0,r,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(r=b7.exec(e))&&(i=m5.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:Mc(r,i)})),n=m5.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?v7t(l[0].x):w7t(t):(t=l.length,function(c){for(var u=0,f;u<t;++u)s[(f=l[u]).i]=f.x(c);return s.join("")})}var QL=180/Math.PI,k7={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function hY(e,t,n,r,i,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r<t*n&&(e=-e,t=-t,l=-l,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*QL,skewX:Math.atan(l)*QL,scaleX:o,scaleY:s}}var w_;function C7t(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?k7:hY(t.a,t.b,t.c,t.d,t.e,t.f)}function S7t(e){return e==null||(w_||(w_=document.createElementNS("http://www.w3.org/2000/svg","g")),w_.setAttribute("transform",e),!(e=w_.transform.baseVal.consolidate()))?k7:(e=e.matrix,hY(e.a,e.b,e.c,e.d,e.e,e.f))}function pY(e,t,n,r){function i(c){return c.length?c.pop()+" ":""}function a(c,u,f,h,m,g){if(c!==f||u!==h){var b=m.push("translate(",null,t,null,n);g.push({i:b-4,x:Mc(c,f)},{i:b-2,x:Mc(u,h)})}else(f||h)&&m.push("translate("+f+t+h+n)}function o(c,u,f,h){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),h.push({i:f.push(i(f)+"rotate(",null,r)-2,x:Mc(c,u)})):u&&f.push(i(f)+"rotate("+u+r)}function s(c,u,f,h){c!==u?h.push({i:f.push(i(f)+"skewX(",null,r)-2,x:Mc(c,u)}):u&&f.push(i(f)+"skewX("+u+r)}function l(c,u,f,h,m,g){if(c!==f||u!==h){var b=m.push(i(m)+"scale(",null,",",null,")");g.push({i:b-4,x:Mc(c,f)},{i:b-2,x:Mc(u,h)})}else(f!==1||h!==1)&&m.push(i(m)+"scale("+f+","+h+")")}return function(c,u){var f=[],h=[];return c=e(c),u=e(u),a(c.translateX,c.translateY,u.translateX,u.translateY,f,h),o(c.rotate,u.rotate,f,h),s(c.skewX,u.skewX,f,h),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,f,h),c=u=null,function(m){for(var g=-1,b=h.length,C;++g<b;)f[(C=h[g]).i]=C.x(m);return f.join("")}}}var D7t=pY(C7t,"px, ","px)","deg)"),E7t=pY(S7t,", ",")",")"),Sp=0,cm=0,N0=0,mY=1e3,ww,um,vw=0,tf=0,S2=0,Mg=typeof performance=="object"&&performance.now?performance:Date,gY=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function KD(){return tf||(gY(T7t),tf=Mg.now()+S2)}function T7t(){tf=0}function xw(){this._call=this._time=this._next=null}xw.prototype=yY.prototype={constructor:xw,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?KD():+n)+(t==null?0:+t),!this._next&&um!==this&&(um?um._next=this:ww=this,um=this),this._call=e,this._time=n,w7()},stop:function(){this._call&&(this._call=null,this._time=1/0,w7())}};function yY(e,t,n){var r=new xw;return r.restart(e,t,n),r}function A7t(){KD(),++Sp;for(var e=ww,t;e;)(t=tf-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Sp}function eI(){tf=(vw=Mg.now())+S2,Sp=cm=0;try{A7t()}finally{Sp=0,F7t(),tf=0}}function z7t(){var e=Mg.now(),t=e-vw;t>mY&&(S2-=t,vw=e)}function F7t(){for(var e,t=ww,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:ww=n);um=e,w7(r)}function w7(e){if(!Sp){cm&&(cm=clearTimeout(cm));var t=e-tf;t>24?(e<1/0&&(cm=setTimeout(eI,e-Mg.now()-S2)),N0&&(N0=clearInterval(N0))):(N0||(vw=Mg.now(),N0=setInterval(z7t,mY)),Sp=1,gY(eI))}}function tI(e,t,n){var r=new xw;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var $7t=ZK("start","end","cancel","interrupt"),M7t=[],_Y=0,nI=1,v7=2,Lb=3,rI=4,x7=5,Ib=6;function D2(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;O7t(e,n,{name:t,index:r,group:i,on:$7t,tween:M7t,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:_Y})}function YD(e,t){var n=ts(e,t);if(n.state>_Y)throw new Error("too late; already scheduled");return n}function Us(e,t){var n=ts(e,t);if(n.state>Lb)throw new Error("too late; already running");return n}function ts(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function O7t(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=yY(a,0,n.time);function a(c){n.state=nI,n.timer.restart(o,n.delay,n.time),n.delay<=c&&o(c-n.delay)}function o(c){var u,f,h,m;if(n.state!==nI)return l();for(u in r)if(m=r[u],m.name===n.name){if(m.state===Lb)return tI(o);m.state===rI?(m.state=Ib,m.timer.stop(),m.on.call("interrupt",e,e.__data__,m.index,m.group),delete r[u]):+u<t&&(m.state=Ib,m.timer.stop(),m.on.call("cancel",e,e.__data__,m.index,m.group),delete r[u])}if(tI(function(){n.state===Lb&&(n.state=rI,n.timer.restart(s,n.delay,n.time),s(c))}),n.state=v7,n.on.call("start",e,e.__data__,n.index,n.group),n.state===v7){for(n.state=Lb,i=new Array(h=n.tween.length),u=0,f=-1;u<h;++u)(m=n.tween[u].value.call(e,e.__data__,n.index,n.group))&&(i[++f]=m);i.length=f+1}}function s(c){for(var u=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(l),n.state=x7,1),f=-1,h=i.length;++f<h;)i[f].call(e,u);n.state===x7&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){n.state=Ib,n.timer.stop(),delete r[t];for(var c in r)return;delete e.__transition}}function N7t(e,t){var n=e.__transition,r,i,a=!0,o;if(n){t=t==null?null:t+"";for(o in n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>v7&&r.state<x7,r.state=Ib,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function L7t(e){return this.each(function(){N7t(this,e)})}function I7t(e,t){var n,r;return function(){var i=Us(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function B7t(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var a=Us(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===t){i[l]=s;break}l===c&&i.push(s)}a.tween=i}}function R7t(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=ts(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?I7t:B7t)(n,e,t))}function ZD(e,t,n){var r=e._id;return e.each(function(){var i=Us(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return ts(i,r).value[t]}}function bY(e,t){var n;return(typeof t=="number"?Mc:t instanceof $g?JL:(n=$g(t))?(t=n,JL):x7t)(e,t)}function P7t(e){return function(){this.removeAttribute(e)}}function j7t(e){return function(){this.removeAttributeNS(e.space,e.local)}}function V7t(e,t,n){var r,i=n+"",a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function q7t(e,t,n){var r,i=n+"",a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function H7t(e,t,n){var r,i,a;return function(){var o,s=n(this),l;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),l=s+"",o===l?null:o===r&&l===i?a:(i=l,a=t(r=o,s)))}}function U7t(e,t,n){var r,i,a;return function(){var o,s=n(this),l;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),l=s+"",o===l?null:o===r&&l===i?a:(i=l,a=t(r=o,s)))}}function W7t(e,t){var n=C2(e),r=n==="transform"?E7t:bY;return this.attrTween(e,typeof t=="function"?(n.local?U7t:H7t)(n,r,ZD(this,"attr."+e,t)):t==null?(n.local?j7t:P7t)(n):(n.local?q7t:V7t)(n,r,t))}function G7t(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function K7t(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Y7t(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&K7t(e,a)),n}return i._value=t,i}function Z7t(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&G7t(e,a)),n}return i._value=t,i}function X7t(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=C2(e);return this.tween(n,(r.local?Y7t:Z7t)(r,t))}function J7t(e,t){return function(){YD(this,e).delay=+t.apply(this,arguments)}}function Q7t(e,t){return t=+t,function(){YD(this,e).delay=t}}function eCt(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?J7t:Q7t)(t,e)):ts(this.node(),t).delay}function tCt(e,t){return function(){Us(this,e).duration=+t.apply(this,arguments)}}function nCt(e,t){return t=+t,function(){Us(this,e).duration=t}}function rCt(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?tCt:nCt)(t,e)):ts(this.node(),t).duration}function iCt(e,t){if(typeof t!="function")throw new Error;return function(){Us(this,e).ease=t}}function aCt(e){var t=this._id;return arguments.length?this.each(iCt(t,e)):ts(this.node(),t).ease}function oCt(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Us(this,e).ease=n}}function sCt(e){if(typeof e!="function")throw new Error;return this.each(oCt(this._id,e))}function lCt(e){typeof e!="function"&&(e=QK(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],l,c=0;c<o;++c)(l=a[c])&&e.call(l,l.__data__,c,a)&&s.push(l);return new Wl(r,this._parents,this._name,this._id)}function cCt(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=new Array(r),s=0;s<a;++s)for(var l=t[s],c=n[s],u=l.length,f=o[s]=new Array(u),h,m=0;m<u;++m)(h=l[m]||c[m])&&(f[m]=h);for(;s<r;++s)o[s]=t[s];return new Wl(o,this._parents,this._name,this._id)}function uCt(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function dCt(e,t,n){var r,i,a=uCt(t)?YD:Us;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function fCt(e,t){var n=this._id;return arguments.length<2?ts(this.node(),n).on.on(e):this.each(dCt(n,e,t))}function hCt(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function pCt(){return this.on("end.remove",hCt(this._id))}function mCt(e){var t=this._name,n=this._id;typeof e!="function"&&(e=HD(e));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o<i;++o)for(var s=r[o],l=s.length,c=a[o]=new Array(l),u,f,h=0;h<l;++h)(u=s[h])&&(f=e.call(u,u.__data__,h,s))&&("__data__"in u&&(f.__data__=u.__data__),c[h]=f,D2(c[h],t,n,h,c,ts(u,n)));return new Wl(a,this._parents,t,n)}function gCt(e){var t=this._name,n=this._id;typeof e!="function"&&(e=JK(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var l=r[s],c=l.length,u,f=0;f<c;++f)if(u=l[f]){for(var h=e.call(u,u.__data__,f,l),m,g=ts(u,n),b=0,C=h.length;b<C;++b)(m=h[b])&&D2(m,t,n,b,h,g);a.push(h),o.push(u)}return new Wl(a,o,t,n)}var yCt=E1.prototype.constructor;function _Ct(){return new yCt(this._groups,this._parents)}function bCt(e,t){var n,r,i;return function(){var a=Cp(this,e),o=(this.style.removeProperty(e),Cp(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function kY(e){return function(){this.style.removeProperty(e)}}function kCt(e,t,n){var r,i=n+"",a;return function(){var o=Cp(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function wCt(e,t,n){var r,i,a;return function(){var o=Cp(this,e),s=n(this),l=s+"";return s==null&&(l=s=(this.style.removeProperty(e),Cp(this,e))),o===l?null:o===r&&l===i?a:(i=l,a=t(r=o,s))}}function vCt(e,t){var n,r,i,a="style."+t,o="end."+a,s;return function(){var l=Us(this,e),c=l.on,u=l.value[a]==null?s||(s=kY(t)):void 0;(c!==n||i!==u)&&(r=(n=c).copy()).on(o,i=u),l.on=r}}function xCt(e,t,n){var r=(e+="")=="transform"?D7t:bY;return t==null?this.styleTween(e,bCt(e,r)).on("end.style."+e,kY(e)):typeof t=="function"?this.styleTween(e,wCt(e,r,ZD(this,"style."+e,t))).each(vCt(this._id,e)):this.styleTween(e,kCt(e,r,t),n).on("end.style."+e,null)}function CCt(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function SCt(e,t,n){var r,i;function a(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&CCt(e,o,n)),r}return a._value=t,a}function DCt(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,SCt(e,t,n??""))}function ECt(e){return function(){this.textContent=e}}function TCt(e){return function(){var t=e(this);this.textContent=t??""}}function ACt(e){return this.tween("text",typeof e=="function"?TCt(ZD(this,"text",e)):ECt(e==null?"":e+""))}function zCt(e){return function(t){this.textContent=e.call(this,t)}}function FCt(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&zCt(i)),t}return r._value=e,r}function $Ct(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,FCt(e))}function MCt(){for(var e=this._name,t=this._id,n=wY(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,l,c=0;c<s;++c)if(l=o[c]){var u=ts(l,t);D2(l,e,n,c,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Wl(r,this._parents,e,n)}function OCt(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},l={value:function(){--i===0&&a()}};n.each(function(){var c=Us(this,r),u=c.on;u!==e&&(t=(e=u).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),c.on=t}),i===0&&a()})}var NCt=0;function Wl(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function wY(){return++NCt}var ul=E1.prototype;Wl.prototype={constructor:Wl,select:mCt,selectAll:gCt,selectChild:ul.selectChild,selectChildren:ul.selectChildren,filter:lCt,merge:cCt,selection:_Ct,transition:MCt,call:ul.call,nodes:ul.nodes,node:ul.node,size:ul.size,empty:ul.empty,each:ul.each,on:fCt,attr:W7t,attrTween:X7t,style:xCt,styleTween:DCt,text:ACt,textTween:$Ct,remove:pCt,tween:R7t,delay:eCt,duration:rCt,ease:aCt,easeVarying:sCt,end:OCt,[Symbol.iterator]:ul[Symbol.iterator]};function LCt(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var ICt={time:null,delay:0,duration:250,ease:LCt};function BCt(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function RCt(e){var t,n;e instanceof Wl?(t=e._id,e=e._name):(t=wY(),(n=ICt).time=KD(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,l,c=0;c<s;++c)(l=o[c])&&D2(l,e,t,c,o,n||BCt(l,t));return new Wl(r,this._parents,e,t)}E1.prototype.interrupt=L7t;E1.prototype.transition=RCt;const qNt=Math.abs,HNt=Math.atan2,UNt=Math.cos,WNt=Math.max,GNt=Math.min,KNt=Math.sin,YNt=Math.sqrt,iI=1e-12,XD=Math.PI,aI=XD/2,ZNt=2*XD;function XNt(e){return e>1?0:e<-1?XD:Math.acos(e)}function JNt(e){return e>=1?aI:e<=-1?-aI:Math.asin(e)}function vY(e){this._context=e}vY.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function PCt(e){return new vY(e)}class xY{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function jCt(e){return new xY(e,!0)}function VCt(e){return new xY(e,!1)}function yu(){}function Cw(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function E2(e){this._context=e}E2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Cw(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Cw(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function qCt(e){return new E2(e)}function CY(e){this._context=e}CY.prototype={areaStart:yu,areaEnd:yu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Cw(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function HCt(e){return new CY(e)}function SY(e){this._context=e}SY.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Cw(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function UCt(e){return new SY(e)}function DY(e,t){this._basis=new E2(e),this._beta=t}DY.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,l;++s<=n;)l=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+l*a),this._beta*t[s]+(1-this._beta)*(i+l*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const WCt=function e(t){function n(r){return t===1?new E2(r):new DY(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Sw(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function JD(e,t){this._context=e,this._k=(1-t)/6}JD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Sw(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Sw(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const GCt=function e(t){function n(r){return new JD(r,t)}return n.tension=function(r){return e(+r)},n}(0);function QD(e,t){this._context=e,this._k=(1-t)/6}QD.prototype={areaStart:yu,areaEnd:yu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Sw(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const KCt=function e(t){function n(r){return new QD(r,t)}return n.tension=function(r){return e(+r)},n}(0);function eE(e,t){this._context=e,this._k=(1-t)/6}eE.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Sw(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const YCt=function e(t){function n(r){return new eE(r,t)}return n.tension=function(r){return e(+r)},n}(0);function tE(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>iI){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>iI){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*c+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function EY(e,t){this._context=e,this._alpha=t}EY.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:tE(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const ZCt=function e(t){function n(r){return t?new EY(r,t):new JD(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function TY(e,t){this._context=e,this._alpha=t}TY.prototype={areaStart:yu,areaEnd:yu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:tE(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const XCt=function e(t){function n(r){return t?new TY(r,t):new QD(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function AY(e,t){this._context=e,this._alpha=t}AY.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:tE(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const JCt=function e(t){function n(r){return t?new AY(r,t):new eE(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function zY(e){this._context=e}zY.prototype={areaStart:yu,areaEnd:yu,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function QCt(e){return new zY(e)}function oI(e){return e<0?-1:1}function sI(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(oI(a)+oI(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function lI(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function g5(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function Dw(e){this._context=e}Dw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:g5(this,this._t0,lI(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,g5(this,lI(this,n=sI(this,e,t)),n);break;default:g5(this,this._t0,n=sI(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function FY(e){this._context=new $Y(e)}(FY.prototype=Object.create(Dw.prototype)).point=function(e,t){Dw.prototype.point.call(this,t,e)};function $Y(e){this._context=e}$Y.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function eSt(e){return new Dw(e)}function tSt(e){return new FY(e)}function MY(e){this._context=e}MY.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=cI(e),i=cI(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function cI(e){var t,n=e.length-1,r,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function nSt(e){return new MY(e)}function T2(e,t){this._context=e,this._t=t}T2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function rSt(e){return new T2(e,.5)}function iSt(e){return new T2(e,0)}function aSt(e){return new T2(e,1)}function dm(e,t,n){this.k=e,this.x=t,this.y=n}dm.prototype={constructor:dm,scale:function(e){return e===1?this:new dm(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new dm(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};dm.prototype;/*! @license DOMPurify 3.0.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.3/LICENSE */const{entries:OY,setPrototypeOf:uI,isFrozen:oSt,getPrototypeOf:sSt,getOwnPropertyDescriptor:lSt}=Object;let{freeze:Ci,seal:Jo,create:cSt}=Object,{apply:C7,construct:S7}=typeof Reflect<"u"&&Reflect;C7||(C7=function(t,n,r){return t.apply(n,r)});Ci||(Ci=function(t){return t});Jo||(Jo=function(t){return t});S7||(S7=function(t,n){return new t(...n)});const uSt=_o(Array.prototype.forEach),dI=_o(Array.prototype.pop),L0=_o(Array.prototype.push),Bb=_o(String.prototype.toLowerCase),y5=_o(String.prototype.toString),dSt=_o(String.prototype.match),$o=_o(String.prototype.replace),fSt=_o(String.prototype.indexOf),hSt=_o(String.prototype.trim),da=_o(RegExp.prototype.test),I0=pSt(TypeError);function _o(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return C7(e,t,r)}}function pSt(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return S7(e,n)}}function Ut(e,t,n){var r;n=(r=n)!==null&&r!==void 0?r:Bb,uI&&uI(e,null);let i=t.length;for(;i--;){let a=t[i];if(typeof a=="string"){const o=n(a);o!==a&&(oSt(t)||(t[i]=o),a=o)}e[a]=!0}return e}function Uf(e){const t=cSt(null);for(const[n,r]of OY(e))t[n]=r;return t}function v_(e,t){for(;e!==null;){const r=lSt(e,t);if(r){if(r.get)return _o(r.get);if(typeof r.value=="function")return _o(r.value)}e=sSt(e)}function n(r){return console.warn("fallback value for",r),null}return n}const fI=Ci(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),_5=Ci(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),b5=Ci(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),mSt=Ci(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),k5=Ci(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),gSt=Ci(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),hI=Ci(["#text"]),pI=Ci(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),w5=Ci(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),mI=Ci(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),x_=Ci(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ySt=Jo(/\{\{[\w\W]*|[\w\W]*\}\}/gm),_St=Jo(/<%[\w\W]*|[\w\W]*%>/gm),bSt=Jo(/\${[\w\W]*}/gm),kSt=Jo(/^data-[\-\w.\u00B7-\uFFFF]/),wSt=Jo(/^aria-[\-\w]+$/),NY=Jo(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),vSt=Jo(/^(?:\w+script|data):/i),xSt=Jo(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),LY=Jo(/^html$/i);var gI=Object.freeze({__proto__:null,MUSTACHE_EXPR:ySt,ERB_EXPR:_St,TMPLIT_EXPR:bSt,DATA_ATTR:kSt,ARIA_ATTR:wSt,IS_ALLOWED_URI:NY,IS_SCRIPT_OR_DATA:vSt,ATTR_WHITESPACE:xSt,DOCTYPE_NAME:LY});const CSt=()=>typeof window>"u"?null:window,SSt=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function IY(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:CSt();const t=ot=>IY(ot);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;const n=e.document,r=n.currentScript;let{document:i}=e;const{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:l,NodeFilter:c,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:h,trustedTypes:m}=e,g=l.prototype,b=v_(g,"cloneNode"),C=v_(g,"nextSibling"),w=v_(g,"childNodes"),k=v_(g,"parentNode");if(typeof o=="function"){const ot=i.createElement("template");ot.content&&ot.content.ownerDocument&&(i=ot.content.ownerDocument)}let S,E="";const{implementation:A,createNodeIterator:_,createDocumentFragment:T,getElementsByTagName:$}=i,{importNode:R}=n;let O={};t.isSupported=typeof OY=="function"&&typeof k=="function"&&A&&A.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:G,ERB_EXPR:V,TMPLIT_EXPR:Z,DATA_ATTR:W,ARIA_ATTR:Y,IS_SCRIPT_OR_DATA:fe,ATTR_WHITESPACE:ae}=gI;let{IS_ALLOWED_URI:Q}=gI,ce=null;const L=Ut({},[...fI,..._5,...b5,...k5,...hI]);let de=null;const ue=Ut({},[...pI,...w5,...mI,...x_]);let I=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),be=null,ze=null,J=!0,Ve=!0,ye=!1,We=!0,Pe=!1,Ge=!1,Xe=!1,Kt=!1,Et=!1,mt=!1,K=!1,ie=!0,he=!1;const Ie="user-content-";let xe=!0,ke=!1,Be={},dt=null;const Re=Ut({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let zt=null;const Ir=Ut({},["audio","video","img","source","image","track"]);let pe=null;const Ce=Ut({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),it="http://www.w3.org/1998/Math/MathML",It="http://www.w3.org/2000/svg",Tt="http://www.w3.org/1999/xhtml";let vn=Tt,Tr=!1,ge=null;const Ye=Ut({},[it,It,Tt],y5);let nt;const ct=["application/xhtml+xml","text/html"],Pt="text/html";let Dt,rr=null;const So=i.createElement("form"),tc=function(ne){return ne instanceof RegExp||ne instanceof Function},ra=function(ne){if(!(rr&&rr===ne)){if((!ne||typeof ne!="object")&&(ne={}),ne=Uf(ne),nt=ct.indexOf(ne.PARSER_MEDIA_TYPE)===-1?nt=Pt:nt=ne.PARSER_MEDIA_TYPE,Dt=nt==="application/xhtml+xml"?y5:Bb,ce="ALLOWED_TAGS"in ne?Ut({},ne.ALLOWED_TAGS,Dt):L,de="ALLOWED_ATTR"in ne?Ut({},ne.ALLOWED_ATTR,Dt):ue,ge="ALLOWED_NAMESPACES"in ne?Ut({},ne.ALLOWED_NAMESPACES,y5):Ye,pe="ADD_URI_SAFE_ATTR"in ne?Ut(Uf(Ce),ne.ADD_URI_SAFE_ATTR,Dt):Ce,zt="ADD_DATA_URI_TAGS"in ne?Ut(Uf(Ir),ne.ADD_DATA_URI_TAGS,Dt):Ir,dt="FORBID_CONTENTS"in ne?Ut({},ne.FORBID_CONTENTS,Dt):Re,be="FORBID_TAGS"in ne?Ut({},ne.FORBID_TAGS,Dt):{},ze="FORBID_ATTR"in ne?Ut({},ne.FORBID_ATTR,Dt):{},Be="USE_PROFILES"in ne?ne.USE_PROFILES:!1,J=ne.ALLOW_ARIA_ATTR!==!1,Ve=ne.ALLOW_DATA_ATTR!==!1,ye=ne.ALLOW_UNKNOWN_PROTOCOLS||!1,We=ne.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Pe=ne.SAFE_FOR_TEMPLATES||!1,Ge=ne.WHOLE_DOCUMENT||!1,Et=ne.RETURN_DOM||!1,mt=ne.RETURN_DOM_FRAGMENT||!1,K=ne.RETURN_TRUSTED_TYPE||!1,Kt=ne.FORCE_BODY||!1,ie=ne.SANITIZE_DOM!==!1,he=ne.SANITIZE_NAMED_PROPS||!1,xe=ne.KEEP_CONTENT!==!1,ke=ne.IN_PLACE||!1,Q=ne.ALLOWED_URI_REGEXP||NY,vn=ne.NAMESPACE||Tt,I=ne.CUSTOM_ELEMENT_HANDLING||{},ne.CUSTOM_ELEMENT_HANDLING&&tc(ne.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(I.tagNameCheck=ne.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ne.CUSTOM_ELEMENT_HANDLING&&tc(ne.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(I.attributeNameCheck=ne.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ne.CUSTOM_ELEMENT_HANDLING&&typeof ne.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(I.allowCustomizedBuiltInElements=ne.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Pe&&(Ve=!1),mt&&(Et=!0),Be&&(ce=Ut({},[...hI]),de=[],Be.html===!0&&(Ut(ce,fI),Ut(de,pI)),Be.svg===!0&&(Ut(ce,_5),Ut(de,w5),Ut(de,x_)),Be.svgFilters===!0&&(Ut(ce,b5),Ut(de,w5),Ut(de,x_)),Be.mathMl===!0&&(Ut(ce,k5),Ut(de,mI),Ut(de,x_))),ne.ADD_TAGS&&(ce===L&&(ce=Uf(ce)),Ut(ce,ne.ADD_TAGS,Dt)),ne.ADD_ATTR&&(de===ue&&(de=Uf(de)),Ut(de,ne.ADD_ATTR,Dt)),ne.ADD_URI_SAFE_ATTR&&Ut(pe,ne.ADD_URI_SAFE_ATTR,Dt),ne.FORBID_CONTENTS&&(dt===Re&&(dt=Uf(dt)),Ut(dt,ne.FORBID_CONTENTS,Dt)),xe&&(ce["#text"]=!0),Ge&&Ut(ce,["html","head","body"]),ce.table&&(Ut(ce,["tbody"]),delete be.tbody),ne.TRUSTED_TYPES_POLICY){if(typeof ne.TRUSTED_TYPES_POLICY.createHTML!="function")throw I0('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ne.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw I0('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=ne.TRUSTED_TYPES_POLICY,E=S.createHTML("")}else S===void 0&&(S=SSt(m,r)),S!==null&&typeof E=="string"&&(E=S.createHTML(""));Ci&&Ci(ne),rr=ne}},nc=Ut({},["mi","mo","mn","ms","mtext"]),Gs=Ut({},["foreignobject","desc","title","annotation-xml"]),ns=Ut({},["title","style","font","a","script"]),Ks=Ut({},_5);Ut(Ks,b5),Ut(Ks,mSt);const Ys=Ut({},k5);Ut(Ys,gSt);const rc=function(ne){let $e=k(ne);(!$e||!$e.tagName)&&($e={namespaceURI:vn,tagName:"template"});const Ze=Bb(ne.tagName),fn=Bb($e.tagName);return ge[ne.namespaceURI]?ne.namespaceURI===It?$e.namespaceURI===Tt?Ze==="svg":$e.namespaceURI===it?Ze==="svg"&&(fn==="annotation-xml"||nc[fn]):!!Ks[Ze]:ne.namespaceURI===it?$e.namespaceURI===Tt?Ze==="math":$e.namespaceURI===It?Ze==="math"&&Gs[fn]:!!Ys[Ze]:ne.namespaceURI===Tt?$e.namespaceURI===It&&!Gs[fn]||$e.namespaceURI===it&&!nc[fn]?!1:!Ys[Ze]&&(ns[Ze]||!Ks[Ze]):!!(nt==="application/xhtml+xml"&&ge[ne.namespaceURI]):!1},Zs=function(ne){L0(t.removed,{element:ne});try{ne.parentNode.removeChild(ne)}catch{ne.remove()}},Nu=function(ne,$e){try{L0(t.removed,{attribute:$e.getAttributeNode(ne),from:$e})}catch{L0(t.removed,{attribute:null,from:$e})}if($e.removeAttribute(ne),ne==="is"&&!de[ne])if(Et||mt)try{Zs($e)}catch{}else try{$e.setAttribute(ne,"")}catch{}},L1=function(ne){let $e,Ze;if(Kt)ne="<remove></remove>"+ne;else{const Ti=dSt(ne,/^[\r\n\t ]+/);Ze=Ti&&Ti[0]}nt==="application/xhtml+xml"&&vn===Tt&&(ne='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ne+"</body></html>");const fn=S?S.createHTML(ne):ne;if(vn===Tt)try{$e=new h().parseFromString(fn,nt)}catch{}if(!$e||!$e.documentElement){$e=A.createDocument(vn,"template",null);try{$e.documentElement.innerHTML=Tr?E:fn}catch{}}const ur=$e.body||$e.documentElement;return ne&&Ze&&ur.insertBefore(i.createTextNode(Ze),ur.childNodes[0]||null),vn===Tt?$.call($e,Ge?"html":"body")[0]:Ge?$e.documentElement:ur},vf=function(ne){return _.call(ne.ownerDocument||ne,ne,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},G2=function(ne){return ne instanceof f&&(typeof ne.nodeName!="string"||typeof ne.textContent!="string"||typeof ne.removeChild!="function"||!(ne.attributes instanceof u)||typeof ne.removeAttribute!="function"||typeof ne.setAttribute!="function"||typeof ne.namespaceURI!="string"||typeof ne.insertBefore!="function"||typeof ne.hasChildNodes!="function")},xf=function(ne){return typeof s=="object"?ne instanceof s:ne&&typeof ne=="object"&&typeof ne.nodeType=="number"&&typeof ne.nodeName=="string"},Do=function(ne,$e,Ze){O[ne]&&uSt(O[ne],fn=>{fn.call(t,$e,Ze,rr)})},I1=function(ne){let $e;if(Do("beforeSanitizeElements",ne,null),G2(ne))return Zs(ne),!0;const Ze=Dt(ne.nodeName);if(Do("uponSanitizeElement",ne,{tagName:Ze,allowedTags:ce}),ne.hasChildNodes()&&!xf(ne.firstElementChild)&&(!xf(ne.content)||!xf(ne.content.firstElementChild))&&da(/<[/\w]/g,ne.innerHTML)&&da(/<[/\w]/g,ne.textContent))return Zs(ne),!0;if(!ce[Ze]||be[Ze]){if(!be[Ze]&&R1(Ze)&&(I.tagNameCheck instanceof RegExp&&da(I.tagNameCheck,Ze)||I.tagNameCheck instanceof Function&&I.tagNameCheck(Ze)))return!1;if(xe&&!dt[Ze]){const fn=k(ne)||ne.parentNode,ur=w(ne)||ne.childNodes;if(ur&&fn){const Ti=ur.length;for(let wn=Ti-1;wn>=0;--wn)fn.insertBefore(b(ur[wn],!0),C(ne))}}return Zs(ne),!0}return ne instanceof l&&!rc(ne)||(Ze==="noscript"||Ze==="noembed")&&da(/<\/no(script|embed)/i,ne.innerHTML)?(Zs(ne),!0):(Pe&&ne.nodeType===3&&($e=ne.textContent,$e=$o($e,G," "),$e=$o($e,V," "),$e=$o($e,Z," "),ne.textContent!==$e&&(L0(t.removed,{element:ne.cloneNode()}),ne.textContent=$e)),Do("afterSanitizeElements",ne,null),!1)},B1=function(ne,$e,Ze){if(ie&&($e==="id"||$e==="name")&&(Ze in i||Ze in So))return!1;if(!(Ve&&!ze[$e]&&da(W,$e))){if(!(J&&da(Y,$e))){if(!de[$e]||ze[$e]){if(!(R1(ne)&&(I.tagNameCheck instanceof RegExp&&da(I.tagNameCheck,ne)||I.tagNameCheck instanceof Function&&I.tagNameCheck(ne))&&(I.attributeNameCheck instanceof RegExp&&da(I.attributeNameCheck,$e)||I.attributeNameCheck instanceof Function&&I.attributeNameCheck($e))||$e==="is"&&I.allowCustomizedBuiltInElements&&(I.tagNameCheck instanceof RegExp&&da(I.tagNameCheck,Ze)||I.tagNameCheck instanceof Function&&I.tagNameCheck(Ze))))return!1}else if(!pe[$e]){if(!da(Q,$o(Ze,ae,""))){if(!(($e==="src"||$e==="xlink:href"||$e==="href")&&ne!=="script"&&fSt(Ze,"data:")===0&&zt[ne])){if(!(ye&&!da(fe,$o(Ze,ae,"")))){if(Ze)return!1}}}}}}return!0},R1=function(ne){return ne.indexOf("-")>0},P1=function(ne){let $e,Ze,fn,ur;Do("beforeSanitizeAttributes",ne,null);const{attributes:Ti}=ne;if(!Ti)return;const wn={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:de};for(ur=Ti.length;ur--;){$e=Ti[ur];const{name:Na,namespaceURI:ic}=$e;if(Ze=Na==="value"?$e.value:hSt($e.value),fn=Dt(Na),wn.attrName=fn,wn.attrValue=Ze,wn.keepAttr=!0,wn.forceKeepAttr=void 0,Do("uponSanitizeAttribute",ne,wn),Ze=wn.attrValue,wn.forceKeepAttr||(Nu(Na,ne),!wn.keepAttr))continue;if(!We&&da(/\/>/i,Ze)){Nu(Na,ne);continue}Pe&&(Ze=$o(Ze,G," "),Ze=$o(Ze,V," "),Ze=$o(Ze,Z," "));const j1=Dt(ne.nodeName);if(B1(j1,fn,Ze)){if(he&&(fn==="id"||fn==="name")&&(Nu(Na,ne),Ze=Ie+Ze),S&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!ic)switch(m.getAttributeType(j1,fn)){case"TrustedHTML":{Ze=S.createHTML(Ze);break}case"TrustedScriptURL":{Ze=S.createScriptURL(Ze);break}}try{ic?ne.setAttributeNS(ic,Na,Ze):ne.setAttribute(Na,Ze),dI(t.removed)}catch{}}}Do("afterSanitizeAttributes",ne,null)},K2=function ot(ne){let $e;const Ze=vf(ne);for(Do("beforeSanitizeShadowDOM",ne,null);$e=Ze.nextNode();)Do("uponSanitizeShadowNode",$e,null),!I1($e)&&($e.content instanceof a&&ot($e.content),P1($e));Do("afterSanitizeShadowDOM",ne,null)};return t.sanitize=function(ot){let ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$e,Ze,fn,ur;if(Tr=!ot,Tr&&(ot="<!-->"),typeof ot!="string"&&!xf(ot))if(typeof ot.toString=="function"){if(ot=ot.toString(),typeof ot!="string")throw I0("dirty is not a string, aborting")}else throw I0("toString is not a function");if(!t.isSupported)return ot;if(Xe||ra(ne),t.removed=[],typeof ot=="string"&&(ke=!1),ke){if(ot.nodeName){const Na=Dt(ot.nodeName);if(!ce[Na]||be[Na])throw I0("root node is forbidden and cannot be sanitized in-place")}}else if(ot instanceof s)$e=L1("<!---->"),Ze=$e.ownerDocument.importNode(ot,!0),Ze.nodeType===1&&Ze.nodeName==="BODY"||Ze.nodeName==="HTML"?$e=Ze:$e.appendChild(Ze);else{if(!Et&&!Pe&&!Ge&&ot.indexOf("<")===-1)return S&&K?S.createHTML(ot):ot;if($e=L1(ot),!$e)return Et?null:K?E:""}$e&&Kt&&Zs($e.firstChild);const Ti=vf(ke?ot:$e);for(;fn=Ti.nextNode();)I1(fn)||(fn.content instanceof a&&K2(fn.content),P1(fn));if(ke)return ot;if(Et){if(mt)for(ur=T.call($e.ownerDocument);$e.firstChild;)ur.appendChild($e.firstChild);else ur=$e;return(de.shadowroot||de.shadowrootmod)&&(ur=R.call(n,ur,!0)),ur}let wn=Ge?$e.outerHTML:$e.innerHTML;return Ge&&ce["!doctype"]&&$e.ownerDocument&&$e.ownerDocument.doctype&&$e.ownerDocument.doctype.name&&da(LY,$e.ownerDocument.doctype.name)&&(wn="<!DOCTYPE "+$e.ownerDocument.doctype.name+`> -`+wn),Pe&&(wn=$o(wn,G," "),wn=$o(wn,V," "),wn=$o(wn,Z," ")),S&&K?S.createHTML(wn):wn},t.setConfig=function(ot){ra(ot),Xe=!0},t.clearConfig=function(){rr=null,Xe=!1},t.isValidAttribute=function(ot,ne,$e){rr||ra({});const Ze=Dt(ot),fn=Dt(ne);return B1(Ze,fn,$e)},t.addHook=function(ot,ne){typeof ne=="function"&&(O[ot]=O[ot]||[],L0(O[ot],ne))},t.removeHook=function(ot){if(O[ot])return dI(O[ot])},t.removeHooks=function(ot){O[ot]&&(O[ot]=[])},t.removeAllHooks=function(){O={}},t}var Ew=IY();const Rb={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e),hsl2rgb:({h:e,s:t,l:n},r)=>{if(!t)return n*2.55;e/=360,t/=100,n/=100;const i=n<.5?n*(1+t):n+t-n*t,a=2*n-i;switch(r){case"r":return Rb.hue2rgb(a,i,e+1/3)*255;case"g":return Rb.hue2rgb(a,i,e)*255;case"b":return Rb.hue2rgb(a,i,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:n},r)=>{e/=255,t/=255,n/=255;const i=Math.max(e,t,n),a=Math.min(e,t,n),o=(i+a)/2;if(r==="l")return o*100;if(i===a)return 0;const s=i-a,l=o>.5?s/(2-i-a):s/(i+a);if(r==="s")return l*100;switch(i){case e:return((t-n)/s+(t<n?6:0))*60;case t:return((n-e)/s+2)*60;case n:return((e-t)/s+4)*60;default:return-1}}},DSt=Rb,ESt={clamp:(e,t,n)=>t>n?Math.min(t,Math.max(n,e)):Math.min(n,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10},TSt=ESt,ASt={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},zSt=ASt,FSt={channel:DSt,lang:TSt,unit:zSt},St=FSt,Tc={};for(let e=0;e<=255;e++)Tc[e]=St.unit.dec2hex(e);const Qr={ALL:0,RGB:1,HSL:2};class $St{constructor(){this.type=Qr.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=Qr.ALL}is(t){return this.type===t}}const MSt=$St;class OSt{constructor(t,n){this.color=n,this.changed=!1,this.data=t,this.type=new MSt}set(t,n){return this.color=n,this.changed=!1,this.data=t,this.type.type=Qr.ALL,this}_ensureHSL(){const t=this.data,{h:n,s:r,l:i}=t;n===void 0&&(t.h=St.channel.rgb2hsl(t,"h")),r===void 0&&(t.s=St.channel.rgb2hsl(t,"s")),i===void 0&&(t.l=St.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r:n,g:r,b:i}=t;n===void 0&&(t.r=St.channel.hsl2rgb(t,"r")),r===void 0&&(t.g=St.channel.hsl2rgb(t,"g")),i===void 0&&(t.b=St.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,n=t.r;return!this.type.is(Qr.HSL)&&n!==void 0?n:(this._ensureHSL(),St.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,n=t.g;return!this.type.is(Qr.HSL)&&n!==void 0?n:(this._ensureHSL(),St.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,n=t.b;return!this.type.is(Qr.HSL)&&n!==void 0?n:(this._ensureHSL(),St.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,n=t.h;return!this.type.is(Qr.RGB)&&n!==void 0?n:(this._ensureRGB(),St.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,n=t.s;return!this.type.is(Qr.RGB)&&n!==void 0?n:(this._ensureRGB(),St.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,n=t.l;return!this.type.is(Qr.RGB)&&n!==void 0?n:(this._ensureRGB(),St.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(Qr.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(Qr.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(Qr.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(Qr.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(Qr.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(Qr.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const NSt=OSt,LSt=new NSt({r:0,g:0,b:0,a:0},"transparent"),A2=LSt,BY={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(BY.re);if(!t)return;const n=t[1],r=parseInt(n,16),i=n.length,a=i%4===0,o=i>4,s=o?1:17,l=o?8:4,c=a?0:-1,u=o?255:15;return A2.set({r:(r>>l*(c+3)&u)*s,g:(r>>l*(c+2)&u)*s,b:(r>>l*(c+1)&u)*s,a:a?(r&u)*s/255:1},e)},stringify:e=>{const{r:t,g:n,b:r,a:i}=e;return i<1?`#${Tc[Math.round(t)]}${Tc[Math.round(n)]}${Tc[Math.round(r)]}${Tc[Math.round(i*255)]}`:`#${Tc[Math.round(t)]}${Tc[Math.round(n)]}${Tc[Math.round(r)]}`}},Vm=BY,Pb={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const t=e.match(Pb.hueRe);if(t){const[,n,r]=t;switch(r){case"grad":return St.channel.clamp.h(parseFloat(n)*.9);case"rad":return St.channel.clamp.h(parseFloat(n)*180/Math.PI);case"turn":return St.channel.clamp.h(parseFloat(n)*360)}}return St.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const n=e.match(Pb.re);if(!n)return;const[,r,i,a,o,s]=n;return A2.set({h:Pb._hue2deg(r),s:St.channel.clamp.s(parseFloat(i)),l:St.channel.clamp.l(parseFloat(a)),a:o?St.channel.clamp.a(s?parseFloat(o)/100:parseFloat(o)):1},e)},stringify:e=>{const{h:t,s:n,l:r,a:i}=e;return i<1?`hsla(${St.lang.round(t)}, ${St.lang.round(n)}%, ${St.lang.round(r)}%, ${i})`:`hsl(${St.lang.round(t)}, ${St.lang.round(n)}%, ${St.lang.round(r)}%)`}},C_=Pb,jb={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const t=jb.colors[e];if(t)return Vm.parse(t)},stringify:e=>{const t=Vm.stringify(e);for(const n in jb.colors)if(jb.colors[n]===t)return n}},yI=jb,RY={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const t=e.charCodeAt(0);if(t!==114&&t!==82)return;const n=e.match(RY.re);if(!n)return;const[,r,i,a,o,s,l,c,u]=n;return A2.set({r:St.channel.clamp.r(i?parseFloat(r)*2.55:parseFloat(r)),g:St.channel.clamp.g(o?parseFloat(a)*2.55:parseFloat(a)),b:St.channel.clamp.b(l?parseFloat(s)*2.55:parseFloat(s)),a:c?St.channel.clamp.a(u?parseFloat(c)/100:parseFloat(c)):1},e)},stringify:e=>{const{r:t,g:n,b:r,a:i}=e;return i<1?`rgba(${St.lang.round(t)}, ${St.lang.round(n)}, ${St.lang.round(r)}, ${St.lang.round(i)})`:`rgb(${St.lang.round(t)}, ${St.lang.round(n)}, ${St.lang.round(r)})`}},S_=RY,ISt={format:{keyword:yI,hex:Vm,rgb:S_,rgba:S_,hsl:C_,hsla:C_},parse:e=>{if(typeof e!="string")return e;const t=Vm.parse(e)||S_.parse(e)||C_.parse(e)||yI.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(Qr.HSL)||e.data.r===void 0?C_.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?S_.stringify(e):Vm.stringify(e)},Rs=ISt,BSt=(e,t)=>{const n=Rs.parse(e);for(const r in t)n[r]=St.channel.clamp[r](t[r]);return Rs.stringify(n)},PY=BSt,RSt=(e,t,n=0,r=1)=>{if(typeof e!="number")return PY(e,{a:t});const i=A2.set({r:St.channel.clamp.r(e),g:St.channel.clamp.g(t),b:St.channel.clamp.b(n),a:St.channel.clamp.a(r)});return Rs.stringify(i)},qm=RSt,PSt=e=>{const{r:t,g:n,b:r}=Rs.parse(e),i=.2126*St.channel.toLinear(t)+.7152*St.channel.toLinear(n)+.0722*St.channel.toLinear(r);return St.lang.round(i)},jSt=PSt,VSt=e=>jSt(e)>=.5,qSt=VSt,HSt=e=>!qSt(e),A1=HSt,USt=(e,t,n)=>{const r=Rs.parse(e),i=r[t],a=St.channel.clamp[t](i+n);return i!==a&&(r[t]=a),Rs.stringify(r)},jY=USt,WSt=(e,t)=>jY(e,"l",t),ft=WSt,GSt=(e,t)=>jY(e,"l",-t),yt=GSt,KSt=(e,t)=>{const n=Rs.parse(e),r={};for(const i in t)t[i]&&(r[i]=n[i]+t[i]);return PY(e,r)},se=KSt,YSt=(e,t,n=50)=>{const{r,g:i,b:a,a:o}=Rs.parse(e),{r:s,g:l,b:c,a:u}=Rs.parse(t),f=n/100,h=f*2-1,m=o-u,b=((h*m===-1?h:(h+m)/(1+h*m))+1)/2,C=1-b,w=r*b+s*C,k=i*b+l*C,S=a*b+c*C,E=o*f+u*(1-f);return qm(w,k,S,E)},ZSt=YSt,XSt=(e,t=100)=>{const n=Rs.parse(e);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,ZSt(n,e,t)},je=XSt;var JSt=typeof global=="object"&&global&&global.Object===Object&&global;const VY=JSt;var QSt=typeof self=="object"&&self&&self.Object===Object&&self,e9t=VY||QSt||Function("return this")();const Ou=e9t;var t9t=Ou.Symbol;const Tw=t9t;var qY=Object.prototype,n9t=qY.hasOwnProperty,r9t=qY.toString,B0=Tw?Tw.toStringTag:void 0;function i9t(e){var t=n9t.call(e,B0),n=e[B0];try{e[B0]=void 0;var r=!0}catch{}var i=r9t.call(e);return r&&(t?e[B0]=n:delete e[B0]),i}var a9t=Object.prototype,o9t=a9t.toString;function s9t(e){return o9t.call(e)}var l9t="[object Null]",c9t="[object Undefined]",_I=Tw?Tw.toStringTag:void 0;function z1(e){return e==null?e===void 0?c9t:l9t:_I&&_I in Object(e)?i9t(e):s9t(e)}function HY(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var u9t="[object AsyncFunction]",d9t="[object Function]",f9t="[object GeneratorFunction]",h9t="[object Proxy]";function UY(e){if(!HY(e))return!1;var t=z1(e);return t==d9t||t==f9t||t==u9t||t==h9t}var p9t=Ou["__core-js_shared__"];const v5=p9t;var bI=function(){var e=/[^.]+$/.exec(v5&&v5.keys&&v5.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function m9t(e){return!!bI&&bI in e}var g9t=Function.prototype,y9t=g9t.toString;function bf(e){if(e!=null){try{return y9t.call(e)}catch{}try{return e+""}catch{}}return""}var _9t=/[\\^$.*+?()[\]{}|]/g,b9t=/^\[object .+?Constructor\]$/,k9t=Function.prototype,w9t=Object.prototype,v9t=k9t.toString,x9t=w9t.hasOwnProperty,C9t=RegExp("^"+v9t.call(x9t).replace(_9t,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function S9t(e){if(!HY(e)||m9t(e))return!1;var t=UY(e)?C9t:b9t;return t.test(bf(e))}function D9t(e,t){return e==null?void 0:e[t]}function Yp(e,t){var n=D9t(e,t);return S9t(n)?n:void 0}var E9t=Yp(Object,"create");const Og=E9t;function T9t(){this.__data__=Og?Og(null):{},this.size=0}function A9t(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var z9t="__lodash_hash_undefined__",F9t=Object.prototype,$9t=F9t.hasOwnProperty;function M9t(e){var t=this.__data__;if(Og){var n=t[e];return n===z9t?void 0:n}return $9t.call(t,e)?t[e]:void 0}var O9t=Object.prototype,N9t=O9t.hasOwnProperty;function L9t(e){var t=this.__data__;return Og?t[e]!==void 0:N9t.call(t,e)}var I9t="__lodash_hash_undefined__";function B9t(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Og&&t===void 0?I9t:t,this}function nf(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}nf.prototype.clear=T9t;nf.prototype.delete=A9t;nf.prototype.get=M9t;nf.prototype.has=L9t;nf.prototype.set=B9t;function R9t(){this.__data__=[],this.size=0}function P9t(e,t){return e===t||e!==e&&t!==t}function z2(e,t){for(var n=e.length;n--;)if(P9t(e[n][0],t))return n;return-1}var j9t=Array.prototype,V9t=j9t.splice;function q9t(e){var t=this.__data__,n=z2(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():V9t.call(t,n,1),--this.size,!0}function H9t(e){var t=this.__data__,n=z2(t,e);return n<0?void 0:t[n][1]}function U9t(e){return z2(this.__data__,e)>-1}function W9t(e,t){var n=this.__data__,r=z2(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Zp(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Zp.prototype.clear=R9t;Zp.prototype.delete=q9t;Zp.prototype.get=H9t;Zp.prototype.has=U9t;Zp.prototype.set=W9t;var G9t=Yp(Ou,"Map");const Aw=G9t;function K9t(){this.size=0,this.__data__={hash:new nf,map:new(Aw||Zp),string:new nf}}function Y9t(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function F2(e,t){var n=e.__data__;return Y9t(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Z9t(e){var t=F2(this,e).delete(e);return this.size-=t?1:0,t}function X9t(e){return F2(this,e).get(e)}function J9t(e){return F2(this,e).has(e)}function Q9t(e,t){var n=F2(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function kf(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}kf.prototype.clear=K9t;kf.prototype.delete=Z9t;kf.prototype.get=X9t;kf.prototype.has=J9t;kf.prototype.set=Q9t;var eDt="Expected a function";function F1(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(eDt);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(F1.Cache||kf),n}F1.Cache=kf;var WY="comm",GY="rule",KY="decl",tDt="@import",nDt="@keyframes",rDt="@layer",iDt=Math.abs,nE=String.fromCharCode;function YY(e){return e.trim()}function Vb(e,t,n){return e.replace(t,n)}function aDt(e,t){return e.indexOf(t)}function Ng(e,t){return e.charCodeAt(t)|0}function Lg(e,t,n){return e.slice(t,n)}function vl(e){return e.length}function oDt(e){return e.length}function D_(e,t){return t.push(e),e}var $2=1,Dp=1,ZY=0,bo=0,pr=0,Xp="";function rE(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:$2,column:Dp,length:o,return:"",siblings:s}}function sDt(){return pr}function lDt(){return pr=bo>0?Ng(Xp,--bo):0,Dp--,pr===10&&(Dp=1,$2--),pr}function Yo(){return pr=bo<ZY?Ng(Xp,bo++):0,Dp++,pr===10&&(Dp=1,$2++),pr}function Id(){return Ng(Xp,bo)}function qb(){return bo}function M2(e,t){return Lg(Xp,e,t)}function D7(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function cDt(e){return $2=Dp=1,ZY=vl(Xp=e),bo=0,[]}function uDt(e){return Xp="",e}function x5(e){return YY(M2(bo-1,E7(e===91?e+2:e===40?e+1:e)))}function dDt(e){for(;(pr=Id())&&pr<33;)Yo();return D7(e)>2||D7(pr)>3?"":" "}function fDt(e,t){for(;--t&&Yo()&&!(pr<48||pr>102||pr>57&&pr<65||pr>70&&pr<97););return M2(e,qb()+(t<6&&Id()==32&&Yo()==32))}function E7(e){for(;Yo();)switch(pr){case e:return bo;case 34:case 39:e!==34&&e!==39&&E7(pr);break;case 40:e===41&&E7(e);break;case 92:Yo();break}return bo}function hDt(e,t){for(;Yo()&&e+pr!==47+10;)if(e+pr===42+42&&Id()===47)break;return"/*"+M2(t,bo-1)+"*"+nE(e===47?e:Yo())}function pDt(e){for(;!D7(Id());)Yo();return M2(e,bo)}function mDt(e){return uDt(Hb("",null,null,null,[""],e=cDt(e),0,[0],e))}function Hb(e,t,n,r,i,a,o,s,l){for(var c=0,u=0,f=o,h=0,m=0,g=0,b=1,C=1,w=1,k=0,S="",E=i,A=a,_=r,T=S;C;)switch(g=k,k=Yo()){case 40:if(g!=108&&Ng(T,f-1)==58){aDt(T+=Vb(x5(k),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:T+=x5(k);break;case 9:case 10:case 13:case 32:T+=dDt(g);break;case 92:T+=fDt(qb()-1,7);continue;case 47:switch(Id()){case 42:case 47:D_(gDt(hDt(Yo(),qb()),t,n,l),l);break;default:T+="/"}break;case 123*b:s[c++]=vl(T)*w;case 125*b:case 59:case 0:switch(k){case 0:case 125:C=0;case 59+u:w==-1&&(T=Vb(T,/\f/g,"")),m>0&&vl(T)-f&&D_(m>32?wI(T+";",r,n,f-1,l):wI(Vb(T," ","")+";",r,n,f-2,l),l);break;case 59:T+=";";default:if(D_(_=kI(T,t,n,c,u,i,s,S,E=[],A=[],f,a),a),k===123)if(u===0)Hb(T,t,_,_,E,a,f,s,A);else switch(h===99&&Ng(T,3)===110?100:h){case 100:case 108:case 109:case 115:Hb(e,_,_,r&&D_(kI(e,_,_,0,0,i,s,S,i,E=[],f,A),A),i,A,f,s,r?E:A);break;default:Hb(T,_,_,_,[""],A,0,s,A)}}c=u=m=0,b=w=1,S=T="",f=o;break;case 58:f=1+vl(T),m=g;default:if(b<1){if(k==123)--b;else if(k==125&&b++==0&&lDt()==125)continue}switch(T+=nE(k),k*b){case 38:w=u>0?1:(T+="\f",-1);break;case 44:s[c++]=(vl(T)-1)*w,w=1;break;case 64:Id()===45&&(T+=x5(Yo())),h=Id(),u=f=vl(S=T+=pDt(qb())),k++;break;case 45:g===45&&vl(T)==2&&(b=0)}}return a}function kI(e,t,n,r,i,a,o,s,l,c,u,f){for(var h=i-1,m=i===0?a:[""],g=oDt(m),b=0,C=0,w=0;b<r;++b)for(var k=0,S=Lg(e,h+1,h=iDt(C=o[b])),E=e;k<g;++k)(E=YY(C>0?m[k]+" "+S:Vb(S,/&\f/g,m[k])))&&(l[w++]=E);return rE(e,t,n,i===0?GY:s,l,c,u,f)}function gDt(e,t,n,r){return rE(e,t,n,WY,nE(sDt()),Lg(e,2,-2),0,r)}function wI(e,t,n,r,i){return rE(e,t,n,KY,Lg(e,0,r),Lg(e,r+1,-1),r,i)}function T7(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function yDt(e,t,n,r){switch(e.type){case rDt:if(e.children.length)break;case tDt:case KY:return e.return=e.return||e.value;case WY:return"";case nDt:return e.return=e.value+"{"+T7(e.children,r)+"}";case GY:if(!vl(e.value=e.props.join(",")))return""}return vl(n=T7(e.children,r))?e.return=e.value+"{"+n+"}":""}var _Dt=Object.prototype;function XY(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||_Dt;return e===n}function bDt(e,t){return function(n){return e(t(n))}}var kDt=bDt(Object.keys,Object);const wDt=kDt;var vDt=Object.prototype,xDt=vDt.hasOwnProperty;function CDt(e){if(!XY(e))return wDt(e);var t=[];for(var n in Object(e))xDt.call(e,n)&&n!="constructor"&&t.push(n);return t}var SDt=Yp(Ou,"DataView");const A7=SDt;var DDt=Yp(Ou,"Promise");const z7=DDt;var EDt=Yp(Ou,"Set");const F7=EDt;var TDt=Yp(Ou,"WeakMap");const $7=TDt;var vI="[object Map]",ADt="[object Object]",xI="[object Promise]",CI="[object Set]",SI="[object WeakMap]",DI="[object DataView]",zDt=bf(A7),FDt=bf(Aw),$Dt=bf(z7),MDt=bf(F7),ODt=bf($7),cd=z1;(A7&&cd(new A7(new ArrayBuffer(1)))!=DI||Aw&&cd(new Aw)!=vI||z7&&cd(z7.resolve())!=xI||F7&&cd(new F7)!=CI||$7&&cd(new $7)!=SI)&&(cd=function(e){var t=z1(e),n=t==ADt?e.constructor:void 0,r=n?bf(n):"";if(r)switch(r){case zDt:return DI;case FDt:return vI;case $Dt:return xI;case MDt:return CI;case ODt:return SI}return t});const NDt=cd;function iE(e){return e!=null&&typeof e=="object"}var LDt="[object Arguments]";function EI(e){return iE(e)&&z1(e)==LDt}var JY=Object.prototype,IDt=JY.hasOwnProperty,BDt=JY.propertyIsEnumerable,RDt=EI(function(){return arguments}())?EI:function(e){return iE(e)&&IDt.call(e,"callee")&&!BDt.call(e,"callee")};const PDt=RDt;var jDt=Array.isArray;const VDt=jDt;var qDt=9007199254740991;function QY(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=qDt}function HDt(e){return e!=null&&QY(e.length)&&!UY(e)}function UDt(){return!1}var eZ=typeof exports=="object"&&exports&&!exports.nodeType&&exports,TI=eZ&&typeof module=="object"&&module&&!module.nodeType&&module,WDt=TI&&TI.exports===eZ,AI=WDt?Ou.Buffer:void 0,GDt=AI?AI.isBuffer:void 0,KDt=GDt||UDt;const YDt=KDt;var ZDt="[object Arguments]",XDt="[object Array]",JDt="[object Boolean]",QDt="[object Date]",eEt="[object Error]",tEt="[object Function]",nEt="[object Map]",rEt="[object Number]",iEt="[object Object]",aEt="[object RegExp]",oEt="[object Set]",sEt="[object String]",lEt="[object WeakMap]",cEt="[object ArrayBuffer]",uEt="[object DataView]",dEt="[object Float32Array]",fEt="[object Float64Array]",hEt="[object Int8Array]",pEt="[object Int16Array]",mEt="[object Int32Array]",gEt="[object Uint8Array]",yEt="[object Uint8ClampedArray]",_Et="[object Uint16Array]",bEt="[object Uint32Array]",Nn={};Nn[dEt]=Nn[fEt]=Nn[hEt]=Nn[pEt]=Nn[mEt]=Nn[gEt]=Nn[yEt]=Nn[_Et]=Nn[bEt]=!0;Nn[ZDt]=Nn[XDt]=Nn[cEt]=Nn[JDt]=Nn[uEt]=Nn[QDt]=Nn[eEt]=Nn[tEt]=Nn[nEt]=Nn[rEt]=Nn[iEt]=Nn[aEt]=Nn[oEt]=Nn[sEt]=Nn[lEt]=!1;function kEt(e){return iE(e)&&QY(e.length)&&!!Nn[z1(e)]}function wEt(e){return function(t){return e(t)}}var tZ=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Hm=tZ&&typeof module=="object"&&module&&!module.nodeType&&module,vEt=Hm&&Hm.exports===tZ,C5=vEt&&VY.process,xEt=function(){try{var e=Hm&&Hm.require&&Hm.require("util").types;return e||C5&&C5.binding&&C5.binding("util")}catch{}}();const zI=xEt;var FI=zI&&zI.isTypedArray,CEt=FI?wEt(FI):kEt;const SEt=CEt;var DEt="[object Map]",EEt="[object Set]",TEt=Object.prototype,AEt=TEt.hasOwnProperty;function Ub(e){if(e==null)return!0;if(HDt(e)&&(VDt(e)||typeof e=="string"||typeof e.splice=="function"||YDt(e)||SEt(e)||PDt(e)))return!e.length;var t=NDt(e);if(t==DEt||t==EEt)return!e.size;if(XY(e))return!CDt(e).length;for(var n in e)if(AEt.call(e,n))return!1;return!0}const dl={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},Qe={trace:(...e)=>{},debug:(...e)=>{},info:(...e)=>{},warn:(...e)=>{},error:(...e)=>{},fatal:(...e)=>{}},aE=function(e="fatal"){let t=dl.fatal;typeof e=="string"?(e=e.toLowerCase(),e in dl&&(t=dl[e])):typeof e=="number"&&(t=e),Qe.trace=()=>{},Qe.debug=()=>{},Qe.info=()=>{},Qe.warn=()=>{},Qe.error=()=>{},Qe.fatal=()=>{},t<=dl.fatal&&(Qe.fatal=console.error?console.error.bind(console,Ga("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Ga("FATAL"))),t<=dl.error&&(Qe.error=console.error?console.error.bind(console,Ga("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Ga("ERROR"))),t<=dl.warn&&(Qe.warn=console.warn?console.warn.bind(console,Ga("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Ga("WARN"))),t<=dl.info&&(Qe.info=console.info?console.info.bind(console,Ga("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Ga("INFO"))),t<=dl.debug&&(Qe.debug=console.debug?console.debug.bind(console,Ga("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Ga("DEBUG"))),t<=dl.trace&&(Qe.trace=console.debug?console.debug.bind(console,Ga("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Ga("TRACE")))},Ga=e=>`%c${gxt().format("ss.SSS")} : ${e} : `,O2=/<br\s*\/?>/gi,zEt=e=>e?rZ(e).replace(/\\n/g,"#br#").split("#br#"):[""],nZ=e=>Ew.sanitize(e),$I=(e,t)=>{var n;if(((n=t.flowchart)==null?void 0:n.htmlLabels)!==!1){const r=t.securityLevel;r==="antiscript"||r==="strict"?e=nZ(e):r!=="loose"&&(e=rZ(e),e=e.replace(/</g,"<").replace(/>/g,">"),e=e.replace(/=/g,"="),e=OEt(e))}return e},Ig=(e,t)=>e&&(t.dompurifyConfig?e=Ew.sanitize($I(e,t),t.dompurifyConfig).toString():e=Ew.sanitize($I(e,t),{FORBID_TAGS:["style"]}).toString(),e),FEt=(e,t)=>typeof e=="string"?Ig(e,t):e.flat().map(n=>Ig(n,t)),$Et=e=>O2.test(e),MEt=e=>e.split(O2),OEt=e=>e.replace(/#br#/g,"<br/>"),rZ=e=>e.replace(O2,"#br#"),NEt=e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=t.replaceAll(/\(/g,"\\("),t=t.replaceAll(/\)/g,"\\)")),t},iZ=e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),LEt=function(...e){const t=e.filter(n=>!isNaN(n));return Math.max(...t)},IEt=function(...e){const t=e.filter(n=>!isNaN(n));return Math.min(...t)},BEt=function(e){let t=e;if(e.split("~").length-1>=2){let n=t;do t=n,n=t.replace(/~([^\s,:;]+)~/,"<$1>");while(n!=t);return BEt(n)}else return t},oE={getRows:zEt,sanitizeText:Ig,sanitizeTextOrArray:FEt,hasBreaks:$Et,splitBreaks:MEt,lineBreakRegex:O2,removeScript:nZ,getUrl:NEt,evaluate:iZ,getMax:LEt,getMin:IEt},bi=(e,t)=>t?se(e,{s:-40,l:10}):se(e,{s:-40,l:-10}),N2="#ffffff",L2="#f2f2f2";let REt=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||se(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||se(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||bi(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||bi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||bi(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||bi(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||je(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||je(this.tertiaryColor),this.lineColor=this.lineColor||je(this.background),this.arrowheadColor=this.arrowheadColor||je(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?yt(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||yt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||je(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||ft(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||se(this.primaryColor,{h:30}),this.cScale4=this.cScale4||se(this.primaryColor,{h:60}),this.cScale5=this.cScale5||se(this.primaryColor,{h:90}),this.cScale6=this.cScale6||se(this.primaryColor,{h:120}),this.cScale7=this.cScale7||se(this.primaryColor,{h:150}),this.cScale8=this.cScale8||se(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||se(this.primaryColor,{h:270}),this.cScale10=this.cScale10||se(this.primaryColor,{h:300}),this.cScale11=this.cScale11||se(this.primaryColor,{h:330}),this.darkMode)for(let n=0;n<this.THEME_COLOR_LIMIT;n++)this["cScale"+n]=yt(this["cScale"+n],75);else for(let n=0;n<this.THEME_COLOR_LIMIT;n++)this["cScale"+n]=yt(this["cScale"+n],25);for(let n=0;n<this.THEME_COLOR_LIMIT;n++)this["cScaleInv"+n]=this["cScaleInv"+n]||je(this["cScale"+n]);for(let n=0;n<this.THEME_COLOR_LIMIT;n++)this.darkMode?this["cScalePeer"+n]=this["cScalePeer"+n]||ft(this["cScale"+n],10):this["cScalePeer"+n]=this["cScalePeer"+n]||yt(this["cScale"+n],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let n=0;n<this.THEME_COLOR_LIMIT;n++)this["cScaleLabel"+n]=this["cScaleLabel"+n]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let n=0;n<5;n++)this["surface"+n]=this["surface"+n]||se(this.mainBkg,{h:180,s:-15,l:t*(5+n*3)}),this["surfacePeer"+n]=this["surfacePeer"+n]||se(this.mainBkg,{h:180,s:-15,l:t*(8+n*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||se(this.primaryColor,{h:64}),this.fillType3=this.fillType3||se(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||se(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||se(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||se(this.primaryColor,{h:128}),this.fillType7=this.fillType7||se(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||se(this.primaryColor,{l:-10}),this.pie5=this.pie5||se(this.secondaryColor,{l:-10}),this.pie6=this.pie6||se(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||se(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||se(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||se(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||se(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||se(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||se(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||se(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||se(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||se(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||se(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||se(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||se(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||A1(this.quadrant1Fill)?ft(this.quadrant1Fill):yt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?yt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||se(this.primaryColor,{h:-30}),this.git4=this.git4||se(this.primaryColor,{h:-60}),this.git5=this.git5||se(this.primaryColor,{h:-90}),this.git6=this.git6||se(this.primaryColor,{h:60}),this.git7=this.git7||se(this.primaryColor,{h:120}),this.darkMode?(this.git0=ft(this.git0,25),this.git1=ft(this.git1,25),this.git2=ft(this.git2,25),this.git3=ft(this.git3,25),this.git4=ft(this.git4,25),this.git5=ft(this.git5,25),this.git6=ft(this.git6,25),this.git7=ft(this.git7,25)):(this.git0=yt(this.git0,25),this.git1=yt(this.git1,25),this.git2=yt(this.git2,25),this.git3=yt(this.git3,25),this.git4=yt(this.git4,25),this.git5=yt(this.git5,25),this.git6=yt(this.git6,25),this.git7=yt(this.git7,25)),this.gitInv0=this.gitInv0||je(this.git0),this.gitInv1=this.gitInv1||je(this.git1),this.gitInv2=this.gitInv2||je(this.git2),this.gitInv3=this.gitInv3||je(this.git3),this.gitInv4=this.gitInv4||je(this.git4),this.gitInv5=this.gitInv5||je(this.git5),this.gitInv6=this.gitInv6||je(this.git6),this.gitInv7=this.gitInv7||je(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||N2,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||L2}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(r=>{this[r]=t[r]}),this.updateColors(),n.forEach(r=>{this[r]=t[r]})}};const PEt=e=>{const t=new REt;return t.calculate(e),t};let jEt=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=ft(this.primaryColor,16),this.tertiaryColor=se(this.primaryColor,{h:-160}),this.primaryBorderColor=je(this.background),this.secondaryBorderColor=bi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=bi(this.tertiaryColor,this.darkMode),this.primaryTextColor=je(this.primaryColor),this.secondaryTextColor=je(this.secondaryColor),this.tertiaryTextColor=je(this.tertiaryColor),this.lineColor=je(this.background),this.textColor=je(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=ft(je("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=qm(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=yt("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=yt(this.sectionBkgColor,10),this.taskBorderColor=qm(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=qm(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=ft(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=ft(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=ft(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=se(this.primaryColor,{h:64}),this.fillType3=se(this.secondaryColor,{h:64}),this.fillType4=se(this.primaryColor,{h:-64}),this.fillType5=se(this.secondaryColor,{h:-64}),this.fillType6=se(this.primaryColor,{h:128}),this.fillType7=se(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||se(this.primaryColor,{h:30}),this.cScale4=this.cScale4||se(this.primaryColor,{h:60}),this.cScale5=this.cScale5||se(this.primaryColor,{h:90}),this.cScale6=this.cScale6||se(this.primaryColor,{h:120}),this.cScale7=this.cScale7||se(this.primaryColor,{h:150}),this.cScale8=this.cScale8||se(this.primaryColor,{h:210}),this.cScale9=this.cScale9||se(this.primaryColor,{h:270}),this.cScale10=this.cScale10||se(this.primaryColor,{h:300}),this.cScale11=this.cScale11||se(this.primaryColor,{h:330});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||je(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScalePeer"+t]=this["cScalePeer"+t]||ft(this["cScale"+t],10);for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||se(this.mainBkg,{h:30,s:-30,l:-(-10+t*4)}),this["surfacePeer"+t]=this["surfacePeer"+t]||se(this.mainBkg,{h:30,s:-30,l:-(-7+t*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||se(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||se(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||se(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||se(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||se(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||se(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||A1(this.quadrant1Fill)?ft(this.quadrant1Fill):yt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?yt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=ft(this.secondaryColor,20),this.git1=ft(this.pie2||this.secondaryColor,20),this.git2=ft(this.pie3||this.tertiaryColor,20),this.git3=ft(this.pie4||se(this.primaryColor,{h:-30}),20),this.git4=ft(this.pie5||se(this.primaryColor,{h:-60}),20),this.git5=ft(this.pie6||se(this.primaryColor,{h:-90}),10),this.git6=ft(this.pie7||se(this.primaryColor,{h:60}),10),this.git7=ft(this.pie8||se(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||je(this.git0),this.gitInv1=this.gitInv1||je(this.git1),this.gitInv2=this.gitInv2||je(this.git2),this.gitInv3=this.gitInv3||je(this.git3),this.gitInv4=this.gitInv4||je(this.git4),this.gitInv5=this.gitInv5||je(this.git5),this.gitInv6=this.gitInv6||je(this.git6),this.gitInv7=this.gitInv7||je(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||je(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||je(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ft(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ft(this.background,2)}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(r=>{this[r]=t[r]}),this.updateColors(),n.forEach(r=>{this[r]=t[r]})}};const VEt=e=>{const t=new jEt;return t.calculate(e),t};let qEt=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=se(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=se(this.primaryColor,{h:-160}),this.primaryBorderColor=bi(this.primaryColor,this.darkMode),this.secondaryBorderColor=bi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=bi(this.tertiaryColor,this.darkMode),this.primaryTextColor=je(this.primaryColor),this.secondaryTextColor=je(this.secondaryColor),this.tertiaryTextColor=je(this.tertiaryColor),this.lineColor=je(this.background),this.textColor=je(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=qm(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||se(this.primaryColor,{h:30}),this.cScale4=this.cScale4||se(this.primaryColor,{h:60}),this.cScale5=this.cScale5||se(this.primaryColor,{h:90}),this.cScale6=this.cScale6||se(this.primaryColor,{h:120}),this.cScale7=this.cScale7||se(this.primaryColor,{h:150}),this.cScale8=this.cScale8||se(this.primaryColor,{h:210}),this.cScale9=this.cScale9||se(this.primaryColor,{h:270}),this.cScale10=this.cScale10||se(this.primaryColor,{h:300}),this.cScale11=this.cScale11||se(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||yt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||yt(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=yt(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||yt(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||se(this["cScale"+t],{h:180});for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||se(this.mainBkg,{h:30,l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||se(this.mainBkg,{h:30,l:-(7+t*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||je(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||je(this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=ft(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=se(this.primaryColor,{h:64}),this.fillType3=se(this.secondaryColor,{h:64}),this.fillType4=se(this.primaryColor,{h:-64}),this.fillType5=se(this.secondaryColor,{h:-64}),this.fillType6=se(this.primaryColor,{h:128}),this.fillType7=se(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||se(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||se(this.primaryColor,{l:-10}),this.pie5=this.pie5||se(this.secondaryColor,{l:-30}),this.pie6=this.pie6||se(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||se(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||se(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||se(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||se(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||se(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||se(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||se(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||se(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||se(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||se(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||se(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||se(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||A1(this.quadrant1Fill)?ft(this.quadrant1Fill):yt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||se(this.primaryColor,{h:-30}),this.git4=this.git4||se(this.primaryColor,{h:-60}),this.git5=this.git5||se(this.primaryColor,{h:-90}),this.git6=this.git6||se(this.primaryColor,{h:60}),this.git7=this.git7||se(this.primaryColor,{h:120}),this.darkMode?(this.git0=ft(this.git0,25),this.git1=ft(this.git1,25),this.git2=ft(this.git2,25),this.git3=ft(this.git3,25),this.git4=ft(this.git4,25),this.git5=ft(this.git5,25),this.git6=ft(this.git6,25),this.git7=ft(this.git7,25)):(this.git0=yt(this.git0,25),this.git1=yt(this.git1,25),this.git2=yt(this.git2,25),this.git3=yt(this.git3,25),this.git4=yt(this.git4,25),this.git5=yt(this.git5,25),this.git6=yt(this.git6,25),this.git7=yt(this.git7,25)),this.gitInv0=this.gitInv0||yt(je(this.git0),25),this.gitInv1=this.gitInv1||je(this.git1),this.gitInv2=this.gitInv2||je(this.git2),this.gitInv3=this.gitInv3||je(this.git3),this.gitInv4=this.gitInv4||je(this.git4),this.gitInv5=this.gitInv5||je(this.git5),this.gitInv6=this.gitInv6||je(this.git6),this.gitInv7=this.gitInv7||je(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||je(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||je(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||N2,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||L2}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(r=>{this[r]=t[r]}),this.updateColors(),n.forEach(r=>{this[r]=t[r]})}};const HEt=e=>{const t=new qEt;return t.calculate(e),t};let UEt=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=ft("#cde498",10),this.primaryBorderColor=bi(this.primaryColor,this.darkMode),this.secondaryBorderColor=bi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=bi(this.tertiaryColor,this.darkMode),this.primaryTextColor=je(this.primaryColor),this.secondaryTextColor=je(this.secondaryColor),this.tertiaryTextColor=je(this.primaryColor),this.lineColor=je(this.background),this.textColor=je(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.actorBorder=yt(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||se(this.primaryColor,{h:30}),this.cScale4=this.cScale4||se(this.primaryColor,{h:60}),this.cScale5=this.cScale5||se(this.primaryColor,{h:90}),this.cScale6=this.cScale6||se(this.primaryColor,{h:120}),this.cScale7=this.cScale7||se(this.primaryColor,{h:150}),this.cScale8=this.cScale8||se(this.primaryColor,{h:210}),this.cScale9=this.cScale9||se(this.primaryColor,{h:270}),this.cScale10=this.cScale10||se(this.primaryColor,{h:300}),this.cScale11=this.cScale11||se(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||yt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||yt(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=yt(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||yt(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||se(this["cScale"+t],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||se(this.mainBkg,{h:30,s:-30,l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||se(this.mainBkg,{h:30,s:-30,l:-(8+t*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=se(this.primaryColor,{h:64}),this.fillType3=se(this.secondaryColor,{h:64}),this.fillType4=se(this.primaryColor,{h:-64}),this.fillType5=se(this.secondaryColor,{h:-64}),this.fillType6=se(this.primaryColor,{h:128}),this.fillType7=se(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||se(this.primaryColor,{l:-30}),this.pie5=this.pie5||se(this.secondaryColor,{l:-30}),this.pie6=this.pie6||se(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||se(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||se(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||se(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||se(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||se(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||se(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||se(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||se(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||se(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||se(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||se(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||se(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||A1(this.quadrant1Fill)?ft(this.quadrant1Fill):yt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||se(this.primaryColor,{h:-30}),this.git4=this.git4||se(this.primaryColor,{h:-60}),this.git5=this.git5||se(this.primaryColor,{h:-90}),this.git6=this.git6||se(this.primaryColor,{h:60}),this.git7=this.git7||se(this.primaryColor,{h:120}),this.darkMode?(this.git0=ft(this.git0,25),this.git1=ft(this.git1,25),this.git2=ft(this.git2,25),this.git3=ft(this.git3,25),this.git4=ft(this.git4,25),this.git5=ft(this.git5,25),this.git6=ft(this.git6,25),this.git7=ft(this.git7,25)):(this.git0=yt(this.git0,25),this.git1=yt(this.git1,25),this.git2=yt(this.git2,25),this.git3=yt(this.git3,25),this.git4=yt(this.git4,25),this.git5=yt(this.git5,25),this.git6=yt(this.git6,25),this.git7=yt(this.git7,25)),this.gitInv0=this.gitInv0||je(this.git0),this.gitInv1=this.gitInv1||je(this.git1),this.gitInv2=this.gitInv2||je(this.git2),this.gitInv3=this.gitInv3||je(this.git3),this.gitInv4=this.gitInv4||je(this.git4),this.gitInv5=this.gitInv5||je(this.git5),this.gitInv6=this.gitInv6||je(this.git6),this.gitInv7=this.gitInv7||je(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||je(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||je(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||N2,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||L2}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(r=>{this[r]=t[r]}),this.updateColors(),n.forEach(r=>{this[r]=t[r]})}};const WEt=e=>{const t=new UEt;return t.calculate(e),t};class GEt{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=ft(this.contrast,55),this.background="#ffffff",this.tertiaryColor=se(this.primaryColor,{h:-160}),this.primaryBorderColor=bi(this.primaryColor,this.darkMode),this.secondaryBorderColor=bi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=bi(this.tertiaryColor,this.darkMode),this.primaryTextColor=je(this.primaryColor),this.secondaryTextColor=je(this.secondaryColor),this.tertiaryTextColor=je(this.tertiaryColor),this.lineColor=je(this.background),this.textColor=je(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=ft(this.contrast,55),this.border2=this.contrast,this.actorBorder=ft(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||je(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||ft(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||yt(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||se(this.mainBkg,{l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||se(this.mainBkg,{l:-(8+t*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=ft(this.contrast,30),this.sectionBkgColor2=ft(this.contrast,30),this.taskBorderColor=yt(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=ft(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=yt(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=se(this.primaryColor,{h:64}),this.fillType3=se(this.secondaryColor,{h:64}),this.fillType4=se(this.primaryColor,{h:-64}),this.fillType5=se(this.secondaryColor,{h:-64}),this.fillType6=se(this.primaryColor,{h:128}),this.fillType7=se(this.secondaryColor,{h:128});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||se(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||se(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||se(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||se(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||se(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||se(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||A1(this.quadrant1Fill)?ft(this.quadrant1Fill):yt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=yt(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||se(this.primaryColor,{h:-30}),this.git4=this.pie5||se(this.primaryColor,{h:-60}),this.git5=this.pie6||se(this.primaryColor,{h:-90}),this.git6=this.pie7||se(this.primaryColor,{h:60}),this.git7=this.pie8||se(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||je(this.git0),this.gitInv1=this.gitInv1||je(this.git1),this.gitInv2=this.gitInv2||je(this.git2),this.gitInv3=this.gitInv3||je(this.git3),this.gitInv4=this.gitInv4||je(this.git4),this.gitInv5=this.gitInv5||je(this.git5),this.gitInv6=this.gitInv6||je(this.git6),this.gitInv7=this.gitInv7||je(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||N2,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||L2}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(r=>{this[r]=t[r]}),this.updateColors(),n.forEach(r=>{this[r]=t[r]})}}const KEt=e=>{const t=new GEt;return t.calculate(e),t},Ol={base:{getThemeVariables:PEt},dark:{getThemeVariables:VEt},default:{getThemeVariables:HEt},forest:{getThemeVariables:WEt},neutral:{getThemeVariables:KEt}},ou={theme:"default",themeVariables:Ol.default.getThemeVariables(),themeCSS:void 0,maxTextSize:5e4,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],deterministicIds:!1,deterministicIDSeed:void 0,flowchart:{titleTopMargin:25,diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,useMaxWidth:!0,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,displayMode:"",axisFormat:"%Y-%m-%d",tickInterval:void 0,useMaxWidth:!0,topAxis:!1,useWidth:void 0},journey:{diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},timeline:{diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},class:{titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},state:{titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},er:{titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12,useMaxWidth:!0},pie:{useWidth:void 0,useMaxWidth:!0,textPosition:.75},quadrantChart:{chartWidth:500,chartHeight:500,titlePadding:10,titleFontSize:20,quadrantPadding:5,quadrantTextTopPadding:5,quadrantLabelFontSize:16,quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2,xAxisLabelPadding:5,xAxisLabelFontSize:16,xAxisPosition:"top",yAxisLabelPadding:5,yAxisLabelFontSize:16,yAxisPosition:"left",pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,useMaxWidth:!0},requirement:{useWidth:void 0,useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},gitGraph:{titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0},c4:{useWidth:void 0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,useMaxWidth:!0,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},fontSize:16};ou.class&&(ou.class.arrowMarkerAbsolute=ou.arrowMarkerAbsolute);ou.gitGraph&&(ou.gitGraph.arrowMarkerAbsolute=ou.arrowMarkerAbsolute);const aZ=(e,t="")=>Object.keys(e).reduce((n,r)=>Array.isArray(e[r])?n:typeof e[r]=="object"&&e[r]!==null?[...n,t+r,...aZ(e[r],"")]:[...n,t+r],[]),YEt=aZ(ou,""),ZEt=ou;/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function oZ(e){return typeof e>"u"||e===null}function XEt(e){return typeof e=="object"&&e!==null}function JEt(e){return Array.isArray(e)?e:oZ(e)?[]:[e]}function QEt(e,t){var n,r,i,a;if(t)for(a=Object.keys(t),n=0,r=a.length;n<r;n+=1)i=a[n],e[i]=t[i];return e}function eTt(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}function tTt(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var nTt=oZ,rTt=XEt,iTt=JEt,aTt=eTt,oTt=tTt,sTt=QEt,yi={isNothing:nTt,isObject:rTt,toArray:iTt,repeat:aTt,isNegativeZero:oTt,extend:sTt};function sZ(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=` +`)),o+=f+r[l+1]}),o}const pxt="modulepreload",mxt=function(e){return"/notion-style-editor/"+e},jL={},Er=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(a=>{if(a=mxt(a),a in jL)return;jL[a]=!0;const o=a.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(!!r)for(let u=i.length-1;u>=0;u--){const f=i[u];if(f.href===a&&(!o||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${s}`))return;const c=document.createElement("link");if(c.rel=o?"stylesheet":pxt,o||(c.as="script",c.crossOrigin=""),c.href=a,document.head.appendChild(c),o)return new Promise((u,f)=>{c.addEventListener("load",u),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>t())};var YK={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Bi,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",o="second",s="minute",l="hour",c="day",u="week",f="month",h="quarter",m="year",g="date",b="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,k={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Z){var W=["th","st","nd","rd"],Y=Z%100;return"["+Z+(W[(Y-20)%10]||W[Y]||W[0])+"]"}},S=function(Z,W,Y){var fe=String(Z);return!fe||fe.length>=W?Z:""+Array(W+1-fe.length).join(Y)+Z},E={s:S,z:function(Z){var W=-Z.utcOffset(),Y=Math.abs(W),fe=Math.floor(Y/60),ae=Y%60;return(W<=0?"+":"-")+S(fe,2,"0")+":"+S(ae,2,"0")},m:function Z(W,Y){if(W.date()<Y.date())return-Z(Y,W);var fe=12*(Y.year()-W.year())+(Y.month()-W.month()),ae=W.clone().add(fe,f),Q=Y-ae<0,ce=W.clone().add(fe+(Q?-1:1),f);return+(-(fe+(Y-ae)/(Q?ae-ce:ce-ae))||0)},a:function(Z){return Z<0?Math.ceil(Z)||0:Math.floor(Z)},p:function(Z){return{M:f,y:m,w:u,d:c,D:g,h:l,m:s,s:o,ms:a,Q:h}[Z]||String(Z||"").toLowerCase().replace(/s$/,"")},u:function(Z){return Z===void 0}},A="en",_={};_[A]=k;var T=function(Z){return Z instanceof G},$=function Z(W,Y,fe){var ae;if(!W)return A;if(typeof W=="string"){var Q=W.toLowerCase();_[Q]&&(ae=Q),Y&&(_[Q]=Y,ae=Q);var ce=W.split("-");if(!ae&&ce.length>1)return Z(ce[0])}else{var L=W.name;_[L]=W,ae=L}return!fe&&ae&&(A=ae),ae||!fe&&A},R=function(Z,W){if(T(Z))return Z.clone();var Y=typeof W=="object"?W:{};return Y.date=Z,Y.args=arguments,new G(Y)},O=E;O.l=$,O.i=T,O.w=function(Z,W){return R(Z,{locale:W.$L,utc:W.$u,x:W.$x,$offset:W.$offset})};var G=function(){function Z(Y){this.$L=$(Y.locale,null,!0),this.parse(Y)}var W=Z.prototype;return W.parse=function(Y){this.$d=function(fe){var ae=fe.date,Q=fe.utc;if(ae===null)return new Date(NaN);if(O.u(ae))return new Date;if(ae instanceof Date)return new Date(ae);if(typeof ae=="string"&&!/Z$/i.test(ae)){var ce=ae.match(C);if(ce){var L=ce[2]-1||0,de=(ce[7]||"0").substring(0,3);return Q?new Date(Date.UTC(ce[1],L,ce[3]||1,ce[4]||0,ce[5]||0,ce[6]||0,de)):new Date(ce[1],L,ce[3]||1,ce[4]||0,ce[5]||0,ce[6]||0,de)}}return new Date(ae)}(Y),this.$x=Y.x||{},this.init()},W.init=function(){var Y=this.$d;this.$y=Y.getFullYear(),this.$M=Y.getMonth(),this.$D=Y.getDate(),this.$W=Y.getDay(),this.$H=Y.getHours(),this.$m=Y.getMinutes(),this.$s=Y.getSeconds(),this.$ms=Y.getMilliseconds()},W.$utils=function(){return O},W.isValid=function(){return this.$d.toString()!==b},W.isSame=function(Y,fe){var ae=R(Y);return this.startOf(fe)<=ae&&ae<=this.endOf(fe)},W.isAfter=function(Y,fe){return R(Y)<this.startOf(fe)},W.isBefore=function(Y,fe){return this.endOf(fe)<R(Y)},W.$g=function(Y,fe,ae){return O.u(Y)?this[fe]:this.set(ae,Y)},W.unix=function(){return Math.floor(this.valueOf()/1e3)},W.valueOf=function(){return this.$d.getTime()},W.startOf=function(Y,fe){var ae=this,Q=!!O.u(fe)||fe,ce=O.p(Y),L=function(ye,We){var Pe=O.w(ae.$u?Date.UTC(ae.$y,We,ye):new Date(ae.$y,We,ye),ae);return Q?Pe:Pe.endOf(c)},de=function(ye,We){return O.w(ae.toDate()[ye].apply(ae.toDate("s"),(Q?[0,0,0,0]:[23,59,59,999]).slice(We)),ae)},ue=this.$W,I=this.$M,be=this.$D,ze="set"+(this.$u?"UTC":"");switch(ce){case m:return Q?L(1,0):L(31,11);case f:return Q?L(1,I):L(0,I+1);case u:var J=this.$locale().weekStart||0,Ve=(ue<J?ue+7:ue)-J;return L(Q?be-Ve:be+(6-Ve),I);case c:case g:return de(ze+"Hours",0);case l:return de(ze+"Minutes",1);case s:return de(ze+"Seconds",2);case o:return de(ze+"Milliseconds",3);default:return this.clone()}},W.endOf=function(Y){return this.startOf(Y,!1)},W.$set=function(Y,fe){var ae,Q=O.p(Y),ce="set"+(this.$u?"UTC":""),L=(ae={},ae[c]=ce+"Date",ae[g]=ce+"Date",ae[f]=ce+"Month",ae[m]=ce+"FullYear",ae[l]=ce+"Hours",ae[s]=ce+"Minutes",ae[o]=ce+"Seconds",ae[a]=ce+"Milliseconds",ae)[Q],de=Q===c?this.$D+(fe-this.$W):fe;if(Q===f||Q===m){var ue=this.clone().set(g,1);ue.$d[L](de),ue.init(),this.$d=ue.set(g,Math.min(this.$D,ue.daysInMonth())).$d}else L&&this.$d[L](de);return this.init(),this},W.set=function(Y,fe){return this.clone().$set(Y,fe)},W.get=function(Y){return this[O.p(Y)]()},W.add=function(Y,fe){var ae,Q=this;Y=Number(Y);var ce=O.p(fe),L=function(I){var be=R(Q);return O.w(be.date(be.date()+Math.round(I*Y)),Q)};if(ce===f)return this.set(f,this.$M+Y);if(ce===m)return this.set(m,this.$y+Y);if(ce===c)return L(1);if(ce===u)return L(7);var de=(ae={},ae[s]=r,ae[l]=i,ae[o]=n,ae)[ce]||1,ue=this.$d.getTime()+Y*de;return O.w(ue,this)},W.subtract=function(Y,fe){return this.add(-1*Y,fe)},W.format=function(Y){var fe=this,ae=this.$locale();if(!this.isValid())return ae.invalidDate||b;var Q=Y||"YYYY-MM-DDTHH:mm:ssZ",ce=O.z(this),L=this.$H,de=this.$m,ue=this.$M,I=ae.weekdays,be=ae.months,ze=ae.meridiem,J=function(We,Pe,Ge,Xe){return We&&(We[Pe]||We(fe,Q))||Ge[Pe].slice(0,Xe)},Ve=function(We){return O.s(L%12||12,We,"0")},ye=ze||function(We,Pe,Ge){var Xe=We<12?"AM":"PM";return Ge?Xe.toLowerCase():Xe};return Q.replace(w,function(We,Pe){return Pe||function(Ge){switch(Ge){case"YY":return String(fe.$y).slice(-2);case"YYYY":return O.s(fe.$y,4,"0");case"M":return ue+1;case"MM":return O.s(ue+1,2,"0");case"MMM":return J(ae.monthsShort,ue,be,3);case"MMMM":return J(be,ue);case"D":return fe.$D;case"DD":return O.s(fe.$D,2,"0");case"d":return String(fe.$W);case"dd":return J(ae.weekdaysMin,fe.$W,I,2);case"ddd":return J(ae.weekdaysShort,fe.$W,I,3);case"dddd":return I[fe.$W];case"H":return String(L);case"HH":return O.s(L,2,"0");case"h":return Ve(1);case"hh":return Ve(2);case"a":return ye(L,de,!0);case"A":return ye(L,de,!1);case"m":return String(de);case"mm":return O.s(de,2,"0");case"s":return String(fe.$s);case"ss":return O.s(fe.$s,2,"0");case"SSS":return O.s(fe.$ms,3,"0");case"Z":return ce}return null}(We)||ce.replace(":","")})},W.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},W.diff=function(Y,fe,ae){var Q,ce=this,L=O.p(fe),de=R(Y),ue=(de.utcOffset()-this.utcOffset())*r,I=this-de,be=function(){return O.m(ce,de)};switch(L){case m:Q=be()/12;break;case f:Q=be();break;case h:Q=be()/3;break;case u:Q=(I-ue)/6048e5;break;case c:Q=(I-ue)/864e5;break;case l:Q=I/i;break;case s:Q=I/r;break;case o:Q=I/n;break;default:Q=I}return ae?Q:O.a(Q)},W.daysInMonth=function(){return this.endOf(f).$D},W.$locale=function(){return _[this.$L]},W.locale=function(Y,fe){if(!Y)return this.$L;var ae=this.clone(),Q=$(Y,fe,!0);return Q&&(ae.$L=Q),ae},W.clone=function(){return O.w(this.$d,this)},W.toDate=function(){return new Date(this.valueOf())},W.toJSON=function(){return this.isValid()?this.toISOString():null},W.toISOString=function(){return this.$d.toISOString()},W.toString=function(){return this.$d.toUTCString()},Z}(),V=G.prototype;return R.prototype=V,[["$ms",a],["$s",o],["$m",s],["$H",l],["$W",c],["$M",f],["$y",m],["$D",g]].forEach(function(Z){V[Z[1]]=function(W){return this.$g(W,Z[0],Z[1])}}),R.extend=function(Z,W){return Z.$i||(Z(W,G,R),Z.$i=!0),R},R.locale=$,R.isDayjs=T,R.unix=function(Z){return R(1e3*Z)},R.en=_[A],R.Ls=_,R.p={},R})})(YK);var gxt=YK.exports;const yxt=Qo(gxt);var qD={};Object.defineProperty(qD,"__esModule",{value:!0});var ZK=qD.sanitizeUrl=void 0,_xt=/^([^\w]*)(javascript|data|vbscript)/im,bxt=/&#(\w+)(^\w|;)?/g,kxt=/&(newline|tab);/gi,wxt=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,vxt=/^.+(:|:)/gim,xxt=[".","/"];function Cxt(e){return xxt.indexOf(e[0])>-1}function Sxt(e){return e.replace(bxt,function(t,n){return String.fromCharCode(n)})}function Dxt(e){var t=Sxt(e||"").replace(kxt,"").replace(wxt,"").trim();if(!t)return"about:blank";if(Cxt(t))return t;var n=t.match(vxt);if(!n)return t;var r=n[0];return _xt.test(r)?"about:blank":t}ZK=qD.sanitizeUrl=Dxt;var Ext={value:()=>{}};function XK(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Nb(n)}function Nb(e){this._=e}function Txt(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Nb.prototype=XK.prototype={constructor:Nb,on:function(e,t){var n=this._,r=Txt(e+"",n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=Axt(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=VL(n[i],e.name,t);else if(t==null)for(i in n)n[i]=VL(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Nb(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function Axt(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function VL(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=Ext,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var y7="http://www.w3.org/1999/xhtml";const qL={svg:"http://www.w3.org/2000/svg",xhtml:y7,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function C2(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),qL.hasOwnProperty(t)?{space:qL[t],local:e}:e}function zxt(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===y7&&t.documentElement.namespaceURI===y7?t.createElement(e):t.createElementNS(n,e)}}function Fxt(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function JK(e){var t=C2(e);return(t.local?Fxt:zxt)(t)}function $xt(){}function HD(e){return e==null?$xt:function(){return this.querySelector(e)}}function Mxt(e){typeof e!="function"&&(e=HD(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=new Array(o),l,c,u=0;u<o;++u)(l=a[u])&&(c=e.call(l,l.__data__,u,a))&&("__data__"in l&&(c.__data__=l.__data__),s[u]=c);return new Ea(r,this._parents)}function Oxt(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Nxt(){return[]}function QK(e){return e==null?Nxt:function(){return this.querySelectorAll(e)}}function Lxt(e){return function(){return Oxt(e.apply(this,arguments))}}function Ixt(e){typeof e=="function"?e=Lxt(e):e=QK(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,l,c=0;c<s;++c)(l=o[c])&&(r.push(e.call(l,l.__data__,c,o)),i.push(l));return new Ea(r,i)}function eY(e){return function(){return this.matches(e)}}function tY(e){return function(t){return t.matches(e)}}var Bxt=Array.prototype.find;function Rxt(e){return function(){return Bxt.call(this.children,e)}}function Pxt(){return this.firstElementChild}function jxt(e){return this.select(e==null?Pxt:Rxt(typeof e=="function"?e:tY(e)))}var Vxt=Array.prototype.filter;function qxt(){return Array.from(this.children)}function Hxt(e){return function(){return Vxt.call(this.children,e)}}function Uxt(e){return this.selectAll(e==null?qxt:Hxt(typeof e=="function"?e:tY(e)))}function Wxt(e){typeof e!="function"&&(e=eY(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],l,c=0;c<o;++c)(l=a[c])&&e.call(l,l.__data__,c,a)&&s.push(l);return new Ea(r,this._parents)}function nY(e){return new Array(e.length)}function Gxt(){return new Ea(this._enter||this._groups.map(nY),this._parents)}function _w(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}_w.prototype={constructor:_w,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Kxt(e){return function(){return e}}function Yxt(e,t,n,r,i,a){for(var o=0,s,l=t.length,c=a.length;o<c;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new _w(e,a[o]);for(;o<l;++o)(s=t[o])&&(i[o]=s)}function Zxt(e,t,n,r,i,a,o){var s,l,c=new Map,u=t.length,f=a.length,h=new Array(u),m;for(s=0;s<u;++s)(l=t[s])&&(h[s]=m=o.call(l,l.__data__,s,t)+"",c.has(m)?i[s]=l:c.set(m,l));for(s=0;s<f;++s)m=o.call(e,a[s],s,a)+"",(l=c.get(m))?(r[s]=l,l.__data__=a[s],c.delete(m)):n[s]=new _w(e,a[s]);for(s=0;s<u;++s)(l=t[s])&&c.get(h[s])===l&&(i[s]=l)}function Xxt(e){return e.__data__}function Jxt(e,t){if(!arguments.length)return Array.from(this,Xxt);var n=t?Zxt:Yxt,r=this._parents,i=this._groups;typeof e!="function"&&(e=Kxt(e));for(var a=i.length,o=new Array(a),s=new Array(a),l=new Array(a),c=0;c<a;++c){var u=r[c],f=i[c],h=f.length,m=Qxt(e.call(u,u&&u.__data__,c,r)),g=m.length,b=s[c]=new Array(g),C=o[c]=new Array(g),w=l[c]=new Array(h);n(u,f,b,C,w,m,t);for(var k=0,S=0,E,A;k<g;++k)if(E=b[k]){for(k>=S&&(S=k+1);!(A=C[S])&&++S<g;);E._next=A||null}}return o=new Ea(o,r),o._enter=s,o._exit=l,o}function Qxt(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function e8t(){return new Ea(this._exit||this._groups.map(nY),this._parents)}function t8t(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function n8t(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=new Array(i),l=0;l<o;++l)for(var c=n[l],u=r[l],f=c.length,h=s[l]=new Array(f),m,g=0;g<f;++g)(m=c[g]||u[g])&&(h[g]=m);for(;l<i;++l)s[l]=n[l];return new Ea(s,this._parents)}function r8t(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function i8t(e){e||(e=a8t);function t(f,h){return f&&h?e(f.__data__,h.__data__):!f-!h}for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,l=i[a]=new Array(s),c,u=0;u<s;++u)(c=o[u])&&(l[u]=c);l.sort(t)}return new Ea(i,this._parents).order()}function a8t(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function o8t(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function s8t(){return Array.from(this)}function l8t(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function c8t(){let e=0;for(const t of this)++e;return e}function u8t(){return!this.node()}function d8t(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function f8t(e){return function(){this.removeAttribute(e)}}function h8t(e){return function(){this.removeAttributeNS(e.space,e.local)}}function p8t(e,t){return function(){this.setAttribute(e,t)}}function m8t(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function g8t(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function y8t(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function _8t(e,t){var n=C2(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?h8t:f8t:typeof t=="function"?n.local?y8t:g8t:n.local?m8t:p8t)(n,t))}function rY(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function b8t(e){return function(){this.style.removeProperty(e)}}function k8t(e,t,n){return function(){this.style.setProperty(e,t,n)}}function w8t(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function v8t(e,t,n){return arguments.length>1?this.each((t==null?b8t:typeof t=="function"?w8t:k8t)(e,t,n??"")):Cp(this.node(),e)}function Cp(e,t){return e.style.getPropertyValue(t)||rY(e).getComputedStyle(e,null).getPropertyValue(t)}function x8t(e){return function(){delete this[e]}}function C8t(e,t){return function(){this[e]=t}}function S8t(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function D8t(e,t){return arguments.length>1?this.each((t==null?x8t:typeof t=="function"?S8t:C8t)(e,t)):this.node()[e]}function iY(e){return e.trim().split(/^|\s+/)}function UD(e){return e.classList||new aY(e)}function aY(e){this._node=e,this._names=iY(e.getAttribute("class")||"")}aY.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function oY(e,t){for(var n=UD(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function sY(e,t){for(var n=UD(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function E8t(e){return function(){oY(this,e)}}function T8t(e){return function(){sY(this,e)}}function A8t(e,t){return function(){(t.apply(this,arguments)?oY:sY)(this,e)}}function z8t(e,t){var n=iY(e+"");if(arguments.length<2){for(var r=UD(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?A8t:t?E8t:T8t)(n,t))}function F8t(){this.textContent=""}function $8t(e){return function(){this.textContent=e}}function M8t(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function O8t(e){return arguments.length?this.each(e==null?F8t:(typeof e=="function"?M8t:$8t)(e)):this.node().textContent}function N8t(){this.innerHTML=""}function L8t(e){return function(){this.innerHTML=e}}function I8t(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function B8t(e){return arguments.length?this.each(e==null?N8t:(typeof e=="function"?I8t:L8t)(e)):this.node().innerHTML}function R8t(){this.nextSibling&&this.parentNode.appendChild(this)}function P8t(){return this.each(R8t)}function j8t(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function V8t(){return this.each(j8t)}function q8t(e){var t=typeof e=="function"?e:JK(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function H8t(){return null}function U8t(e,t){var n=typeof e=="function"?e:JK(e),r=t==null?H8t:typeof t=="function"?t:HD(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function W8t(){var e=this.parentNode;e&&e.removeChild(this)}function G8t(){return this.each(W8t)}function K8t(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Y8t(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Z8t(e){return this.select(e?Y8t:K8t)}function X8t(e){return arguments.length?this.property("__data__",e):this.node().__data__}function J8t(e){return function(t){e.call(this,t,this.__data__)}}function Q8t(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function e7t(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function t7t(e,t,n){return function(){var r=this.__on,i,a=J8t(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function n7t(e,t,n){var r=Q8t(e+""),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var l=0,c=s.length,u;l<c;++l)for(i=0,u=s[l];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?t7t:e7t,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function lY(e,t,n){var r=rY(e),i=r.CustomEvent;typeof i=="function"?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function r7t(e,t){return function(){return lY(this,e,t)}}function i7t(e,t){return function(){return lY(this,e,t.apply(this,arguments))}}function a7t(e,t){return this.each((typeof t=="function"?i7t:r7t)(e,t))}function*o7t(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var cY=[null];function Ea(e,t){this._groups=e,this._parents=t}function E1(){return new Ea([[document.documentElement]],cY)}function s7t(){return this}Ea.prototype=E1.prototype={constructor:Ea,select:Mxt,selectAll:Ixt,selectChild:jxt,selectChildren:Uxt,filter:Wxt,data:Jxt,enter:Gxt,exit:e8t,join:t8t,merge:n8t,selection:s7t,order:r8t,sort:i8t,call:o8t,nodes:s8t,node:l8t,size:c8t,empty:u8t,each:d8t,attr:_8t,style:v8t,property:D8t,classed:z8t,text:O8t,html:B8t,raise:P8t,lower:V8t,append:q8t,insert:U8t,remove:G8t,clone:Z8t,datum:X8t,on:n7t,dispatch:a7t,[Symbol.iterator]:o7t};function ms(e){return typeof e=="string"?new Ea([[document.querySelector(e)]],[document.documentElement]):new Ea([[e]],cY)}function WD(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function uY(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function T1(){}var zg=.7,bw=1/zg,Gh="\\s*([+-]?\\d+)\\s*",Fg="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Fs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l7t=/^#([0-9a-f]{3,8})$/,c7t=new RegExp(`^rgb\\(${Gh},${Gh},${Gh}\\)$`),u7t=new RegExp(`^rgb\\(${Fs},${Fs},${Fs}\\)$`),d7t=new RegExp(`^rgba\\(${Gh},${Gh},${Gh},${Fg}\\)$`),f7t=new RegExp(`^rgba\\(${Fs},${Fs},${Fs},${Fg}\\)$`),h7t=new RegExp(`^hsl\\(${Fg},${Fs},${Fs}\\)$`),p7t=new RegExp(`^hsla\\(${Fg},${Fs},${Fs},${Fg}\\)$`),HL={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};WD(T1,$g,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:UL,formatHex:UL,formatHex8:m7t,formatHsl:g7t,formatRgb:WL,toString:WL});function UL(){return this.rgb().formatHex()}function m7t(){return this.rgb().formatHex8()}function g7t(){return dY(this).formatHsl()}function WL(){return this.rgb().formatRgb()}function $g(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=l7t.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?GL(t):n===3?new Vi(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?b_(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?b_(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=c7t.exec(e))?new Vi(t[1],t[2],t[3],1):(t=u7t.exec(e))?new Vi(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=d7t.exec(e))?b_(t[1],t[2],t[3],t[4]):(t=f7t.exec(e))?b_(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=h7t.exec(e))?ZL(t[1],t[2]/100,t[3]/100,1):(t=p7t.exec(e))?ZL(t[1],t[2]/100,t[3]/100,t[4]):HL.hasOwnProperty(e)?GL(HL[e]):e==="transparent"?new Vi(NaN,NaN,NaN,0):null}function GL(e){return new Vi(e>>16&255,e>>8&255,e&255,1)}function b_(e,t,n,r){return r<=0&&(e=t=n=NaN),new Vi(e,t,n,r)}function y7t(e){return e instanceof T1||(e=$g(e)),e?(e=e.rgb(),new Vi(e.r,e.g,e.b,e.opacity)):new Vi}function _7(e,t,n,r){return arguments.length===1?y7t(e):new Vi(e,t,n,r??1)}function Vi(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}WD(Vi,_7,uY(T1,{brighter(e){return e=e==null?bw:Math.pow(bw,e),new Vi(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?zg:Math.pow(zg,e),new Vi(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Vi(Ld(this.r),Ld(this.g),Ld(this.b),kw(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:KL,formatHex:KL,formatHex8:_7t,formatRgb:YL,toString:YL}));function KL(){return`#${xd(this.r)}${xd(this.g)}${xd(this.b)}`}function _7t(){return`#${xd(this.r)}${xd(this.g)}${xd(this.b)}${xd((isNaN(this.opacity)?1:this.opacity)*255)}`}function YL(){const e=kw(this.opacity);return`${e===1?"rgb(":"rgba("}${Ld(this.r)}, ${Ld(this.g)}, ${Ld(this.b)}${e===1?")":`, ${e})`}`}function kw(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ld(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function xd(e){return e=Ld(e),(e<16?"0":"")+e.toString(16)}function ZL(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Vo(e,t,n,r)}function dY(e){if(e instanceof Vo)return new Vo(e.h,e.s,e.l,e.opacity);if(e instanceof T1||(e=$g(e)),!e)return new Vo;if(e instanceof Vo)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(n-r)/s+(n<r)*6:n===a?o=(r-t)/s+2:o=(t-n)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new Vo(o,s,l,e.opacity)}function b7t(e,t,n,r){return arguments.length===1?dY(e):new Vo(e,t,n,r??1)}function Vo(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}WD(Vo,b7t,uY(T1,{brighter(e){return e=e==null?bw:Math.pow(bw,e),new Vo(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?zg:Math.pow(zg,e),new Vo(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Vi(p5(e>=240?e-240:e+120,i,r),p5(e,i,r),p5(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Vo(XL(this.h),k_(this.s),k_(this.l),kw(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=kw(this.opacity);return`${e===1?"hsl(":"hsla("}${XL(this.h)}, ${k_(this.s)*100}%, ${k_(this.l)*100}%${e===1?")":`, ${e})`}`}}));function XL(e){return e=(e||0)%360,e<0?e+360:e}function k_(e){return Math.max(0,Math.min(1,e||0))}function p5(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const GD=e=>()=>e;function fY(e,t){return function(n){return e+n*t}}function k7t(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function qNt(e,t){var n=t-e;return n?fY(e,n>180||n<-180?n-360*Math.round(n/360):n):GD(isNaN(e)?t:e)}function w7t(e){return(e=+e)==1?hY:function(t,n){return n-t?k7t(t,n,e):GD(isNaN(t)?n:t)}}function hY(e,t){var n=t-e;return n?fY(e,n):GD(isNaN(e)?t:e)}const JL=function e(t){var n=w7t(t);function r(i,a){var o=n((i=_7(i)).r,(a=_7(a)).r),s=n(i.g,a.g),l=n(i.b,a.b),c=hY(i.opacity,a.opacity);return function(u){return i.r=o(u),i.g=s(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=e,r}(1);function Mc(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var b7=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,m5=new RegExp(b7.source,"g");function v7t(e){return function(){return e}}function x7t(e){return function(t){return e(t)+""}}function C7t(e,t){var n=b7.lastIndex=m5.lastIndex=0,r,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(r=b7.exec(e))&&(i=m5.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:Mc(r,i)})),n=m5.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?x7t(l[0].x):v7t(t):(t=l.length,function(c){for(var u=0,f;u<t;++u)s[(f=l[u]).i]=f.x(c);return s.join("")})}var QL=180/Math.PI,k7={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function pY(e,t,n,r,i,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r<t*n&&(e=-e,t=-t,l=-l,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*QL,skewX:Math.atan(l)*QL,scaleX:o,scaleY:s}}var w_;function S7t(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?k7:pY(t.a,t.b,t.c,t.d,t.e,t.f)}function D7t(e){return e==null||(w_||(w_=document.createElementNS("http://www.w3.org/2000/svg","g")),w_.setAttribute("transform",e),!(e=w_.transform.baseVal.consolidate()))?k7:(e=e.matrix,pY(e.a,e.b,e.c,e.d,e.e,e.f))}function mY(e,t,n,r){function i(c){return c.length?c.pop()+" ":""}function a(c,u,f,h,m,g){if(c!==f||u!==h){var b=m.push("translate(",null,t,null,n);g.push({i:b-4,x:Mc(c,f)},{i:b-2,x:Mc(u,h)})}else(f||h)&&m.push("translate("+f+t+h+n)}function o(c,u,f,h){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),h.push({i:f.push(i(f)+"rotate(",null,r)-2,x:Mc(c,u)})):u&&f.push(i(f)+"rotate("+u+r)}function s(c,u,f,h){c!==u?h.push({i:f.push(i(f)+"skewX(",null,r)-2,x:Mc(c,u)}):u&&f.push(i(f)+"skewX("+u+r)}function l(c,u,f,h,m,g){if(c!==f||u!==h){var b=m.push(i(m)+"scale(",null,",",null,")");g.push({i:b-4,x:Mc(c,f)},{i:b-2,x:Mc(u,h)})}else(f!==1||h!==1)&&m.push(i(m)+"scale("+f+","+h+")")}return function(c,u){var f=[],h=[];return c=e(c),u=e(u),a(c.translateX,c.translateY,u.translateX,u.translateY,f,h),o(c.rotate,u.rotate,f,h),s(c.skewX,u.skewX,f,h),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,f,h),c=u=null,function(m){for(var g=-1,b=h.length,C;++g<b;)f[(C=h[g]).i]=C.x(m);return f.join("")}}}var E7t=mY(S7t,"px, ","px)","deg)"),T7t=mY(D7t,", ",")",")"),Sp=0,cm=0,N0=0,gY=1e3,ww,um,vw=0,tf=0,S2=0,Mg=typeof performance=="object"&&performance.now?performance:Date,yY=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function KD(){return tf||(yY(A7t),tf=Mg.now()+S2)}function A7t(){tf=0}function xw(){this._call=this._time=this._next=null}xw.prototype=_Y.prototype={constructor:xw,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?KD():+n)+(t==null?0:+t),!this._next&&um!==this&&(um?um._next=this:ww=this,um=this),this._call=e,this._time=n,w7()},stop:function(){this._call&&(this._call=null,this._time=1/0,w7())}};function _Y(e,t,n){var r=new xw;return r.restart(e,t,n),r}function z7t(){KD(),++Sp;for(var e=ww,t;e;)(t=tf-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Sp}function eI(){tf=(vw=Mg.now())+S2,Sp=cm=0;try{z7t()}finally{Sp=0,$7t(),tf=0}}function F7t(){var e=Mg.now(),t=e-vw;t>gY&&(S2-=t,vw=e)}function $7t(){for(var e,t=ww,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:ww=n);um=e,w7(r)}function w7(e){if(!Sp){cm&&(cm=clearTimeout(cm));var t=e-tf;t>24?(e<1/0&&(cm=setTimeout(eI,e-Mg.now()-S2)),N0&&(N0=clearInterval(N0))):(N0||(vw=Mg.now(),N0=setInterval(F7t,gY)),Sp=1,yY(eI))}}function tI(e,t,n){var r=new xw;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var M7t=XK("start","end","cancel","interrupt"),O7t=[],bY=0,nI=1,v7=2,Lb=3,rI=4,x7=5,Ib=6;function D2(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;N7t(e,n,{name:t,index:r,group:i,on:M7t,tween:O7t,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:bY})}function YD(e,t){var n=ts(e,t);if(n.state>bY)throw new Error("too late; already scheduled");return n}function Us(e,t){var n=ts(e,t);if(n.state>Lb)throw new Error("too late; already running");return n}function ts(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function N7t(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=_Y(a,0,n.time);function a(c){n.state=nI,n.timer.restart(o,n.delay,n.time),n.delay<=c&&o(c-n.delay)}function o(c){var u,f,h,m;if(n.state!==nI)return l();for(u in r)if(m=r[u],m.name===n.name){if(m.state===Lb)return tI(o);m.state===rI?(m.state=Ib,m.timer.stop(),m.on.call("interrupt",e,e.__data__,m.index,m.group),delete r[u]):+u<t&&(m.state=Ib,m.timer.stop(),m.on.call("cancel",e,e.__data__,m.index,m.group),delete r[u])}if(tI(function(){n.state===Lb&&(n.state=rI,n.timer.restart(s,n.delay,n.time),s(c))}),n.state=v7,n.on.call("start",e,e.__data__,n.index,n.group),n.state===v7){for(n.state=Lb,i=new Array(h=n.tween.length),u=0,f=-1;u<h;++u)(m=n.tween[u].value.call(e,e.__data__,n.index,n.group))&&(i[++f]=m);i.length=f+1}}function s(c){for(var u=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(l),n.state=x7,1),f=-1,h=i.length;++f<h;)i[f].call(e,u);n.state===x7&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){n.state=Ib,n.timer.stop(),delete r[t];for(var c in r)return;delete e.__transition}}function L7t(e,t){var n=e.__transition,r,i,a=!0,o;if(n){t=t==null?null:t+"";for(o in n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>v7&&r.state<x7,r.state=Ib,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function I7t(e){return this.each(function(){L7t(this,e)})}function B7t(e,t){var n,r;return function(){var i=Us(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function R7t(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var a=Us(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===t){i[l]=s;break}l===c&&i.push(s)}a.tween=i}}function P7t(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=ts(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?B7t:R7t)(n,e,t))}function ZD(e,t,n){var r=e._id;return e.each(function(){var i=Us(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return ts(i,r).value[t]}}function kY(e,t){var n;return(typeof t=="number"?Mc:t instanceof $g?JL:(n=$g(t))?(t=n,JL):C7t)(e,t)}function j7t(e){return function(){this.removeAttribute(e)}}function V7t(e){return function(){this.removeAttributeNS(e.space,e.local)}}function q7t(e,t,n){var r,i=n+"",a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function H7t(e,t,n){var r,i=n+"",a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function U7t(e,t,n){var r,i,a;return function(){var o,s=n(this),l;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),l=s+"",o===l?null:o===r&&l===i?a:(i=l,a=t(r=o,s)))}}function W7t(e,t,n){var r,i,a;return function(){var o,s=n(this),l;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),l=s+"",o===l?null:o===r&&l===i?a:(i=l,a=t(r=o,s)))}}function G7t(e,t){var n=C2(e),r=n==="transform"?T7t:kY;return this.attrTween(e,typeof t=="function"?(n.local?W7t:U7t)(n,r,ZD(this,"attr."+e,t)):t==null?(n.local?V7t:j7t)(n):(n.local?H7t:q7t)(n,r,t))}function K7t(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Y7t(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Z7t(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&Y7t(e,a)),n}return i._value=t,i}function X7t(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&K7t(e,a)),n}return i._value=t,i}function J7t(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=C2(e);return this.tween(n,(r.local?Z7t:X7t)(r,t))}function Q7t(e,t){return function(){YD(this,e).delay=+t.apply(this,arguments)}}function eCt(e,t){return t=+t,function(){YD(this,e).delay=t}}function tCt(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Q7t:eCt)(t,e)):ts(this.node(),t).delay}function nCt(e,t){return function(){Us(this,e).duration=+t.apply(this,arguments)}}function rCt(e,t){return t=+t,function(){Us(this,e).duration=t}}function iCt(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?nCt:rCt)(t,e)):ts(this.node(),t).duration}function aCt(e,t){if(typeof t!="function")throw new Error;return function(){Us(this,e).ease=t}}function oCt(e){var t=this._id;return arguments.length?this.each(aCt(t,e)):ts(this.node(),t).ease}function sCt(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Us(this,e).ease=n}}function lCt(e){if(typeof e!="function")throw new Error;return this.each(sCt(this._id,e))}function cCt(e){typeof e!="function"&&(e=eY(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],l,c=0;c<o;++c)(l=a[c])&&e.call(l,l.__data__,c,a)&&s.push(l);return new Wl(r,this._parents,this._name,this._id)}function uCt(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=new Array(r),s=0;s<a;++s)for(var l=t[s],c=n[s],u=l.length,f=o[s]=new Array(u),h,m=0;m<u;++m)(h=l[m]||c[m])&&(f[m]=h);for(;s<r;++s)o[s]=t[s];return new Wl(o,this._parents,this._name,this._id)}function dCt(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function fCt(e,t,n){var r,i,a=dCt(t)?YD:Us;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function hCt(e,t){var n=this._id;return arguments.length<2?ts(this.node(),n).on.on(e):this.each(fCt(n,e,t))}function pCt(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function mCt(){return this.on("end.remove",pCt(this._id))}function gCt(e){var t=this._name,n=this._id;typeof e!="function"&&(e=HD(e));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o<i;++o)for(var s=r[o],l=s.length,c=a[o]=new Array(l),u,f,h=0;h<l;++h)(u=s[h])&&(f=e.call(u,u.__data__,h,s))&&("__data__"in u&&(f.__data__=u.__data__),c[h]=f,D2(c[h],t,n,h,c,ts(u,n)));return new Wl(a,this._parents,t,n)}function yCt(e){var t=this._name,n=this._id;typeof e!="function"&&(e=QK(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var l=r[s],c=l.length,u,f=0;f<c;++f)if(u=l[f]){for(var h=e.call(u,u.__data__,f,l),m,g=ts(u,n),b=0,C=h.length;b<C;++b)(m=h[b])&&D2(m,t,n,b,h,g);a.push(h),o.push(u)}return new Wl(a,o,t,n)}var _Ct=E1.prototype.constructor;function bCt(){return new _Ct(this._groups,this._parents)}function kCt(e,t){var n,r,i;return function(){var a=Cp(this,e),o=(this.style.removeProperty(e),Cp(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function wY(e){return function(){this.style.removeProperty(e)}}function wCt(e,t,n){var r,i=n+"",a;return function(){var o=Cp(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function vCt(e,t,n){var r,i,a;return function(){var o=Cp(this,e),s=n(this),l=s+"";return s==null&&(l=s=(this.style.removeProperty(e),Cp(this,e))),o===l?null:o===r&&l===i?a:(i=l,a=t(r=o,s))}}function xCt(e,t){var n,r,i,a="style."+t,o="end."+a,s;return function(){var l=Us(this,e),c=l.on,u=l.value[a]==null?s||(s=wY(t)):void 0;(c!==n||i!==u)&&(r=(n=c).copy()).on(o,i=u),l.on=r}}function CCt(e,t,n){var r=(e+="")=="transform"?E7t:kY;return t==null?this.styleTween(e,kCt(e,r)).on("end.style."+e,wY(e)):typeof t=="function"?this.styleTween(e,vCt(e,r,ZD(this,"style."+e,t))).each(xCt(this._id,e)):this.styleTween(e,wCt(e,r,t),n).on("end.style."+e,null)}function SCt(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function DCt(e,t,n){var r,i;function a(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&SCt(e,o,n)),r}return a._value=t,a}function ECt(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,DCt(e,t,n??""))}function TCt(e){return function(){this.textContent=e}}function ACt(e){return function(){var t=e(this);this.textContent=t??""}}function zCt(e){return this.tween("text",typeof e=="function"?ACt(ZD(this,"text",e)):TCt(e==null?"":e+""))}function FCt(e){return function(t){this.textContent=e.call(this,t)}}function $Ct(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&FCt(i)),t}return r._value=e,r}function MCt(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,$Ct(e))}function OCt(){for(var e=this._name,t=this._id,n=vY(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,l,c=0;c<s;++c)if(l=o[c]){var u=ts(l,t);D2(l,e,n,c,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Wl(r,this._parents,e,n)}function NCt(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},l={value:function(){--i===0&&a()}};n.each(function(){var c=Us(this,r),u=c.on;u!==e&&(t=(e=u).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),c.on=t}),i===0&&a()})}var LCt=0;function Wl(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function vY(){return++LCt}var ul=E1.prototype;Wl.prototype={constructor:Wl,select:gCt,selectAll:yCt,selectChild:ul.selectChild,selectChildren:ul.selectChildren,filter:cCt,merge:uCt,selection:bCt,transition:OCt,call:ul.call,nodes:ul.nodes,node:ul.node,size:ul.size,empty:ul.empty,each:ul.each,on:hCt,attr:G7t,attrTween:J7t,style:CCt,styleTween:ECt,text:zCt,textTween:MCt,remove:mCt,tween:P7t,delay:tCt,duration:iCt,ease:oCt,easeVarying:lCt,end:NCt,[Symbol.iterator]:ul[Symbol.iterator]};function ICt(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var BCt={time:null,delay:0,duration:250,ease:ICt};function RCt(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function PCt(e){var t,n;e instanceof Wl?(t=e._id,e=e._name):(t=vY(),(n=BCt).time=KD(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,l,c=0;c<s;++c)(l=o[c])&&D2(l,e,t,c,o,n||RCt(l,t));return new Wl(r,this._parents,e,t)}E1.prototype.interrupt=I7t;E1.prototype.transition=PCt;const HNt=Math.abs,UNt=Math.atan2,WNt=Math.cos,GNt=Math.max,KNt=Math.min,YNt=Math.sin,ZNt=Math.sqrt,iI=1e-12,XD=Math.PI,aI=XD/2,XNt=2*XD;function JNt(e){return e>1?0:e<-1?XD:Math.acos(e)}function QNt(e){return e>=1?aI:e<=-1?-aI:Math.asin(e)}function xY(e){this._context=e}xY.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function jCt(e){return new xY(e)}class CY{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function VCt(e){return new CY(e,!0)}function qCt(e){return new CY(e,!1)}function yu(){}function Cw(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function E2(e){this._context=e}E2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Cw(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Cw(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function HCt(e){return new E2(e)}function SY(e){this._context=e}SY.prototype={areaStart:yu,areaEnd:yu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Cw(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function UCt(e){return new SY(e)}function DY(e){this._context=e}DY.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Cw(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function WCt(e){return new DY(e)}function EY(e,t){this._basis=new E2(e),this._beta=t}EY.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,l;++s<=n;)l=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+l*a),this._beta*t[s]+(1-this._beta)*(i+l*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const GCt=function e(t){function n(r){return t===1?new E2(r):new EY(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Sw(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function JD(e,t){this._context=e,this._k=(1-t)/6}JD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Sw(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Sw(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const KCt=function e(t){function n(r){return new JD(r,t)}return n.tension=function(r){return e(+r)},n}(0);function QD(e,t){this._context=e,this._k=(1-t)/6}QD.prototype={areaStart:yu,areaEnd:yu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Sw(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const YCt=function e(t){function n(r){return new QD(r,t)}return n.tension=function(r){return e(+r)},n}(0);function eE(e,t){this._context=e,this._k=(1-t)/6}eE.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Sw(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const ZCt=function e(t){function n(r){return new eE(r,t)}return n.tension=function(r){return e(+r)},n}(0);function tE(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>iI){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>iI){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*c+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function TY(e,t){this._context=e,this._alpha=t}TY.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:tE(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const XCt=function e(t){function n(r){return t?new TY(r,t):new JD(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function AY(e,t){this._context=e,this._alpha=t}AY.prototype={areaStart:yu,areaEnd:yu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:tE(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const JCt=function e(t){function n(r){return t?new AY(r,t):new QD(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function zY(e,t){this._context=e,this._alpha=t}zY.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:tE(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const QCt=function e(t){function n(r){return t?new zY(r,t):new eE(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function FY(e){this._context=e}FY.prototype={areaStart:yu,areaEnd:yu,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function eSt(e){return new FY(e)}function oI(e){return e<0?-1:1}function sI(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(oI(a)+oI(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function lI(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function g5(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function Dw(e){this._context=e}Dw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:g5(this,this._t0,lI(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,g5(this,lI(this,n=sI(this,e,t)),n);break;default:g5(this,this._t0,n=sI(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function $Y(e){this._context=new MY(e)}($Y.prototype=Object.create(Dw.prototype)).point=function(e,t){Dw.prototype.point.call(this,t,e)};function MY(e){this._context=e}MY.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function tSt(e){return new Dw(e)}function nSt(e){return new $Y(e)}function OY(e){this._context=e}OY.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=cI(e),i=cI(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function cI(e){var t,n=e.length-1,r,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function rSt(e){return new OY(e)}function T2(e,t){this._context=e,this._t=t}T2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function iSt(e){return new T2(e,.5)}function aSt(e){return new T2(e,0)}function oSt(e){return new T2(e,1)}function dm(e,t,n){this.k=e,this.x=t,this.y=n}dm.prototype={constructor:dm,scale:function(e){return e===1?this:new dm(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new dm(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};dm.prototype;/*! @license DOMPurify 3.0.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.3/LICENSE */const{entries:NY,setPrototypeOf:uI,isFrozen:sSt,getPrototypeOf:lSt,getOwnPropertyDescriptor:cSt}=Object;let{freeze:Ci,seal:Jo,create:uSt}=Object,{apply:C7,construct:S7}=typeof Reflect<"u"&&Reflect;C7||(C7=function(t,n,r){return t.apply(n,r)});Ci||(Ci=function(t){return t});Jo||(Jo=function(t){return t});S7||(S7=function(t,n){return new t(...n)});const dSt=_o(Array.prototype.forEach),dI=_o(Array.prototype.pop),L0=_o(Array.prototype.push),Bb=_o(String.prototype.toLowerCase),y5=_o(String.prototype.toString),fSt=_o(String.prototype.match),$o=_o(String.prototype.replace),hSt=_o(String.prototype.indexOf),pSt=_o(String.prototype.trim),da=_o(RegExp.prototype.test),I0=mSt(TypeError);function _o(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return C7(e,t,r)}}function mSt(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return S7(e,n)}}function Ut(e,t,n){var r;n=(r=n)!==null&&r!==void 0?r:Bb,uI&&uI(e,null);let i=t.length;for(;i--;){let a=t[i];if(typeof a=="string"){const o=n(a);o!==a&&(sSt(t)||(t[i]=o),a=o)}e[a]=!0}return e}function Uf(e){const t=uSt(null);for(const[n,r]of NY(e))t[n]=r;return t}function v_(e,t){for(;e!==null;){const r=cSt(e,t);if(r){if(r.get)return _o(r.get);if(typeof r.value=="function")return _o(r.value)}e=lSt(e)}function n(r){return console.warn("fallback value for",r),null}return n}const fI=Ci(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),_5=Ci(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),b5=Ci(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),gSt=Ci(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),k5=Ci(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ySt=Ci(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),hI=Ci(["#text"]),pI=Ci(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),w5=Ci(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),mI=Ci(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),x_=Ci(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),_St=Jo(/\{\{[\w\W]*|[\w\W]*\}\}/gm),bSt=Jo(/<%[\w\W]*|[\w\W]*%>/gm),kSt=Jo(/\${[\w\W]*}/gm),wSt=Jo(/^data-[\-\w.\u00B7-\uFFFF]/),vSt=Jo(/^aria-[\-\w]+$/),LY=Jo(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),xSt=Jo(/^(?:\w+script|data):/i),CSt=Jo(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),IY=Jo(/^html$/i);var gI=Object.freeze({__proto__:null,MUSTACHE_EXPR:_St,ERB_EXPR:bSt,TMPLIT_EXPR:kSt,DATA_ATTR:wSt,ARIA_ATTR:vSt,IS_ALLOWED_URI:LY,IS_SCRIPT_OR_DATA:xSt,ATTR_WHITESPACE:CSt,DOCTYPE_NAME:IY});const SSt=()=>typeof window>"u"?null:window,DSt=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function BY(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:SSt();const t=ot=>BY(ot);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;const n=e.document,r=n.currentScript;let{document:i}=e;const{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:l,NodeFilter:c,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:h,trustedTypes:m}=e,g=l.prototype,b=v_(g,"cloneNode"),C=v_(g,"nextSibling"),w=v_(g,"childNodes"),k=v_(g,"parentNode");if(typeof o=="function"){const ot=i.createElement("template");ot.content&&ot.content.ownerDocument&&(i=ot.content.ownerDocument)}let S,E="";const{implementation:A,createNodeIterator:_,createDocumentFragment:T,getElementsByTagName:$}=i,{importNode:R}=n;let O={};t.isSupported=typeof NY=="function"&&typeof k=="function"&&A&&A.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:G,ERB_EXPR:V,TMPLIT_EXPR:Z,DATA_ATTR:W,ARIA_ATTR:Y,IS_SCRIPT_OR_DATA:fe,ATTR_WHITESPACE:ae}=gI;let{IS_ALLOWED_URI:Q}=gI,ce=null;const L=Ut({},[...fI,..._5,...b5,...k5,...hI]);let de=null;const ue=Ut({},[...pI,...w5,...mI,...x_]);let I=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),be=null,ze=null,J=!0,Ve=!0,ye=!1,We=!0,Pe=!1,Ge=!1,Xe=!1,Kt=!1,Et=!1,mt=!1,K=!1,ie=!0,he=!1;const Ie="user-content-";let xe=!0,ke=!1,Be={},dt=null;const Re=Ut({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let zt=null;const Ir=Ut({},["audio","video","img","source","image","track"]);let pe=null;const Ce=Ut({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),it="http://www.w3.org/1998/Math/MathML",It="http://www.w3.org/2000/svg",Tt="http://www.w3.org/1999/xhtml";let vn=Tt,Tr=!1,ge=null;const Ye=Ut({},[it,It,Tt],y5);let nt;const ct=["application/xhtml+xml","text/html"],Pt="text/html";let Dt,rr=null;const So=i.createElement("form"),tc=function(ne){return ne instanceof RegExp||ne instanceof Function},ra=function(ne){if(!(rr&&rr===ne)){if((!ne||typeof ne!="object")&&(ne={}),ne=Uf(ne),nt=ct.indexOf(ne.PARSER_MEDIA_TYPE)===-1?nt=Pt:nt=ne.PARSER_MEDIA_TYPE,Dt=nt==="application/xhtml+xml"?y5:Bb,ce="ALLOWED_TAGS"in ne?Ut({},ne.ALLOWED_TAGS,Dt):L,de="ALLOWED_ATTR"in ne?Ut({},ne.ALLOWED_ATTR,Dt):ue,ge="ALLOWED_NAMESPACES"in ne?Ut({},ne.ALLOWED_NAMESPACES,y5):Ye,pe="ADD_URI_SAFE_ATTR"in ne?Ut(Uf(Ce),ne.ADD_URI_SAFE_ATTR,Dt):Ce,zt="ADD_DATA_URI_TAGS"in ne?Ut(Uf(Ir),ne.ADD_DATA_URI_TAGS,Dt):Ir,dt="FORBID_CONTENTS"in ne?Ut({},ne.FORBID_CONTENTS,Dt):Re,be="FORBID_TAGS"in ne?Ut({},ne.FORBID_TAGS,Dt):{},ze="FORBID_ATTR"in ne?Ut({},ne.FORBID_ATTR,Dt):{},Be="USE_PROFILES"in ne?ne.USE_PROFILES:!1,J=ne.ALLOW_ARIA_ATTR!==!1,Ve=ne.ALLOW_DATA_ATTR!==!1,ye=ne.ALLOW_UNKNOWN_PROTOCOLS||!1,We=ne.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Pe=ne.SAFE_FOR_TEMPLATES||!1,Ge=ne.WHOLE_DOCUMENT||!1,Et=ne.RETURN_DOM||!1,mt=ne.RETURN_DOM_FRAGMENT||!1,K=ne.RETURN_TRUSTED_TYPE||!1,Kt=ne.FORCE_BODY||!1,ie=ne.SANITIZE_DOM!==!1,he=ne.SANITIZE_NAMED_PROPS||!1,xe=ne.KEEP_CONTENT!==!1,ke=ne.IN_PLACE||!1,Q=ne.ALLOWED_URI_REGEXP||LY,vn=ne.NAMESPACE||Tt,I=ne.CUSTOM_ELEMENT_HANDLING||{},ne.CUSTOM_ELEMENT_HANDLING&&tc(ne.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(I.tagNameCheck=ne.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ne.CUSTOM_ELEMENT_HANDLING&&tc(ne.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(I.attributeNameCheck=ne.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ne.CUSTOM_ELEMENT_HANDLING&&typeof ne.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(I.allowCustomizedBuiltInElements=ne.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Pe&&(Ve=!1),mt&&(Et=!0),Be&&(ce=Ut({},[...hI]),de=[],Be.html===!0&&(Ut(ce,fI),Ut(de,pI)),Be.svg===!0&&(Ut(ce,_5),Ut(de,w5),Ut(de,x_)),Be.svgFilters===!0&&(Ut(ce,b5),Ut(de,w5),Ut(de,x_)),Be.mathMl===!0&&(Ut(ce,k5),Ut(de,mI),Ut(de,x_))),ne.ADD_TAGS&&(ce===L&&(ce=Uf(ce)),Ut(ce,ne.ADD_TAGS,Dt)),ne.ADD_ATTR&&(de===ue&&(de=Uf(de)),Ut(de,ne.ADD_ATTR,Dt)),ne.ADD_URI_SAFE_ATTR&&Ut(pe,ne.ADD_URI_SAFE_ATTR,Dt),ne.FORBID_CONTENTS&&(dt===Re&&(dt=Uf(dt)),Ut(dt,ne.FORBID_CONTENTS,Dt)),xe&&(ce["#text"]=!0),Ge&&Ut(ce,["html","head","body"]),ce.table&&(Ut(ce,["tbody"]),delete be.tbody),ne.TRUSTED_TYPES_POLICY){if(typeof ne.TRUSTED_TYPES_POLICY.createHTML!="function")throw I0('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ne.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw I0('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=ne.TRUSTED_TYPES_POLICY,E=S.createHTML("")}else S===void 0&&(S=DSt(m,r)),S!==null&&typeof E=="string"&&(E=S.createHTML(""));Ci&&Ci(ne),rr=ne}},nc=Ut({},["mi","mo","mn","ms","mtext"]),Gs=Ut({},["foreignobject","desc","title","annotation-xml"]),ns=Ut({},["title","style","font","a","script"]),Ks=Ut({},_5);Ut(Ks,b5),Ut(Ks,gSt);const Ys=Ut({},k5);Ut(Ys,ySt);const rc=function(ne){let $e=k(ne);(!$e||!$e.tagName)&&($e={namespaceURI:vn,tagName:"template"});const Ze=Bb(ne.tagName),hn=Bb($e.tagName);return ge[ne.namespaceURI]?ne.namespaceURI===It?$e.namespaceURI===Tt?Ze==="svg":$e.namespaceURI===it?Ze==="svg"&&(hn==="annotation-xml"||nc[hn]):!!Ks[Ze]:ne.namespaceURI===it?$e.namespaceURI===Tt?Ze==="math":$e.namespaceURI===It?Ze==="math"&&Gs[hn]:!!Ys[Ze]:ne.namespaceURI===Tt?$e.namespaceURI===It&&!Gs[hn]||$e.namespaceURI===it&&!nc[hn]?!1:!Ys[Ze]&&(ns[Ze]||!Ks[Ze]):!!(nt==="application/xhtml+xml"&&ge[ne.namespaceURI]):!1},Zs=function(ne){L0(t.removed,{element:ne});try{ne.parentNode.removeChild(ne)}catch{ne.remove()}},Nu=function(ne,$e){try{L0(t.removed,{attribute:$e.getAttributeNode(ne),from:$e})}catch{L0(t.removed,{attribute:null,from:$e})}if($e.removeAttribute(ne),ne==="is"&&!de[ne])if(Et||mt)try{Zs($e)}catch{}else try{$e.setAttribute(ne,"")}catch{}},L1=function(ne){let $e,Ze;if(Kt)ne="<remove></remove>"+ne;else{const Ti=fSt(ne,/^[\r\n\t ]+/);Ze=Ti&&Ti[0]}nt==="application/xhtml+xml"&&vn===Tt&&(ne='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ne+"</body></html>");const hn=S?S.createHTML(ne):ne;if(vn===Tt)try{$e=new h().parseFromString(hn,nt)}catch{}if(!$e||!$e.documentElement){$e=A.createDocument(vn,"template",null);try{$e.documentElement.innerHTML=Tr?E:hn}catch{}}const ur=$e.body||$e.documentElement;return ne&&Ze&&ur.insertBefore(i.createTextNode(Ze),ur.childNodes[0]||null),vn===Tt?$.call($e,Ge?"html":"body")[0]:Ge?$e.documentElement:ur},vf=function(ne){return _.call(ne.ownerDocument||ne,ne,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},G2=function(ne){return ne instanceof f&&(typeof ne.nodeName!="string"||typeof ne.textContent!="string"||typeof ne.removeChild!="function"||!(ne.attributes instanceof u)||typeof ne.removeAttribute!="function"||typeof ne.setAttribute!="function"||typeof ne.namespaceURI!="string"||typeof ne.insertBefore!="function"||typeof ne.hasChildNodes!="function")},xf=function(ne){return typeof s=="object"?ne instanceof s:ne&&typeof ne=="object"&&typeof ne.nodeType=="number"&&typeof ne.nodeName=="string"},Do=function(ne,$e,Ze){O[ne]&&dSt(O[ne],hn=>{hn.call(t,$e,Ze,rr)})},I1=function(ne){let $e;if(Do("beforeSanitizeElements",ne,null),G2(ne))return Zs(ne),!0;const Ze=Dt(ne.nodeName);if(Do("uponSanitizeElement",ne,{tagName:Ze,allowedTags:ce}),ne.hasChildNodes()&&!xf(ne.firstElementChild)&&(!xf(ne.content)||!xf(ne.content.firstElementChild))&&da(/<[/\w]/g,ne.innerHTML)&&da(/<[/\w]/g,ne.textContent))return Zs(ne),!0;if(!ce[Ze]||be[Ze]){if(!be[Ze]&&R1(Ze)&&(I.tagNameCheck instanceof RegExp&&da(I.tagNameCheck,Ze)||I.tagNameCheck instanceof Function&&I.tagNameCheck(Ze)))return!1;if(xe&&!dt[Ze]){const hn=k(ne)||ne.parentNode,ur=w(ne)||ne.childNodes;if(ur&&hn){const Ti=ur.length;for(let wn=Ti-1;wn>=0;--wn)hn.insertBefore(b(ur[wn],!0),C(ne))}}return Zs(ne),!0}return ne instanceof l&&!rc(ne)||(Ze==="noscript"||Ze==="noembed")&&da(/<\/no(script|embed)/i,ne.innerHTML)?(Zs(ne),!0):(Pe&&ne.nodeType===3&&($e=ne.textContent,$e=$o($e,G," "),$e=$o($e,V," "),$e=$o($e,Z," "),ne.textContent!==$e&&(L0(t.removed,{element:ne.cloneNode()}),ne.textContent=$e)),Do("afterSanitizeElements",ne,null),!1)},B1=function(ne,$e,Ze){if(ie&&($e==="id"||$e==="name")&&(Ze in i||Ze in So))return!1;if(!(Ve&&!ze[$e]&&da(W,$e))){if(!(J&&da(Y,$e))){if(!de[$e]||ze[$e]){if(!(R1(ne)&&(I.tagNameCheck instanceof RegExp&&da(I.tagNameCheck,ne)||I.tagNameCheck instanceof Function&&I.tagNameCheck(ne))&&(I.attributeNameCheck instanceof RegExp&&da(I.attributeNameCheck,$e)||I.attributeNameCheck instanceof Function&&I.attributeNameCheck($e))||$e==="is"&&I.allowCustomizedBuiltInElements&&(I.tagNameCheck instanceof RegExp&&da(I.tagNameCheck,Ze)||I.tagNameCheck instanceof Function&&I.tagNameCheck(Ze))))return!1}else if(!pe[$e]){if(!da(Q,$o(Ze,ae,""))){if(!(($e==="src"||$e==="xlink:href"||$e==="href")&&ne!=="script"&&hSt(Ze,"data:")===0&&zt[ne])){if(!(ye&&!da(fe,$o(Ze,ae,"")))){if(Ze)return!1}}}}}}return!0},R1=function(ne){return ne.indexOf("-")>0},P1=function(ne){let $e,Ze,hn,ur;Do("beforeSanitizeAttributes",ne,null);const{attributes:Ti}=ne;if(!Ti)return;const wn={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:de};for(ur=Ti.length;ur--;){$e=Ti[ur];const{name:Na,namespaceURI:ic}=$e;if(Ze=Na==="value"?$e.value:pSt($e.value),hn=Dt(Na),wn.attrName=hn,wn.attrValue=Ze,wn.keepAttr=!0,wn.forceKeepAttr=void 0,Do("uponSanitizeAttribute",ne,wn),Ze=wn.attrValue,wn.forceKeepAttr||(Nu(Na,ne),!wn.keepAttr))continue;if(!We&&da(/\/>/i,Ze)){Nu(Na,ne);continue}Pe&&(Ze=$o(Ze,G," "),Ze=$o(Ze,V," "),Ze=$o(Ze,Z," "));const j1=Dt(ne.nodeName);if(B1(j1,hn,Ze)){if(he&&(hn==="id"||hn==="name")&&(Nu(Na,ne),Ze=Ie+Ze),S&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!ic)switch(m.getAttributeType(j1,hn)){case"TrustedHTML":{Ze=S.createHTML(Ze);break}case"TrustedScriptURL":{Ze=S.createScriptURL(Ze);break}}try{ic?ne.setAttributeNS(ic,Na,Ze):ne.setAttribute(Na,Ze),dI(t.removed)}catch{}}}Do("afterSanitizeAttributes",ne,null)},K2=function ot(ne){let $e;const Ze=vf(ne);for(Do("beforeSanitizeShadowDOM",ne,null);$e=Ze.nextNode();)Do("uponSanitizeShadowNode",$e,null),!I1($e)&&($e.content instanceof a&&ot($e.content),P1($e));Do("afterSanitizeShadowDOM",ne,null)};return t.sanitize=function(ot){let ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$e,Ze,hn,ur;if(Tr=!ot,Tr&&(ot="<!-->"),typeof ot!="string"&&!xf(ot))if(typeof ot.toString=="function"){if(ot=ot.toString(),typeof ot!="string")throw I0("dirty is not a string, aborting")}else throw I0("toString is not a function");if(!t.isSupported)return ot;if(Xe||ra(ne),t.removed=[],typeof ot=="string"&&(ke=!1),ke){if(ot.nodeName){const Na=Dt(ot.nodeName);if(!ce[Na]||be[Na])throw I0("root node is forbidden and cannot be sanitized in-place")}}else if(ot instanceof s)$e=L1("<!---->"),Ze=$e.ownerDocument.importNode(ot,!0),Ze.nodeType===1&&Ze.nodeName==="BODY"||Ze.nodeName==="HTML"?$e=Ze:$e.appendChild(Ze);else{if(!Et&&!Pe&&!Ge&&ot.indexOf("<")===-1)return S&&K?S.createHTML(ot):ot;if($e=L1(ot),!$e)return Et?null:K?E:""}$e&&Kt&&Zs($e.firstChild);const Ti=vf(ke?ot:$e);for(;hn=Ti.nextNode();)I1(hn)||(hn.content instanceof a&&K2(hn.content),P1(hn));if(ke)return ot;if(Et){if(mt)for(ur=T.call($e.ownerDocument);$e.firstChild;)ur.appendChild($e.firstChild);else ur=$e;return(de.shadowroot||de.shadowrootmod)&&(ur=R.call(n,ur,!0)),ur}let wn=Ge?$e.outerHTML:$e.innerHTML;return Ge&&ce["!doctype"]&&$e.ownerDocument&&$e.ownerDocument.doctype&&$e.ownerDocument.doctype.name&&da(IY,$e.ownerDocument.doctype.name)&&(wn="<!DOCTYPE "+$e.ownerDocument.doctype.name+`> +`+wn),Pe&&(wn=$o(wn,G," "),wn=$o(wn,V," "),wn=$o(wn,Z," ")),S&&K?S.createHTML(wn):wn},t.setConfig=function(ot){ra(ot),Xe=!0},t.clearConfig=function(){rr=null,Xe=!1},t.isValidAttribute=function(ot,ne,$e){rr||ra({});const Ze=Dt(ot),hn=Dt(ne);return B1(Ze,hn,$e)},t.addHook=function(ot,ne){typeof ne=="function"&&(O[ot]=O[ot]||[],L0(O[ot],ne))},t.removeHook=function(ot){if(O[ot])return dI(O[ot])},t.removeHooks=function(ot){O[ot]&&(O[ot]=[])},t.removeAllHooks=function(){O={}},t}var Ew=BY();const Rb={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e),hsl2rgb:({h:e,s:t,l:n},r)=>{if(!t)return n*2.55;e/=360,t/=100,n/=100;const i=n<.5?n*(1+t):n+t-n*t,a=2*n-i;switch(r){case"r":return Rb.hue2rgb(a,i,e+1/3)*255;case"g":return Rb.hue2rgb(a,i,e)*255;case"b":return Rb.hue2rgb(a,i,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:n},r)=>{e/=255,t/=255,n/=255;const i=Math.max(e,t,n),a=Math.min(e,t,n),o=(i+a)/2;if(r==="l")return o*100;if(i===a)return 0;const s=i-a,l=o>.5?s/(2-i-a):s/(i+a);if(r==="s")return l*100;switch(i){case e:return((t-n)/s+(t<n?6:0))*60;case t:return((n-e)/s+2)*60;case n:return((e-t)/s+4)*60;default:return-1}}},ESt=Rb,TSt={clamp:(e,t,n)=>t>n?Math.min(t,Math.max(n,e)):Math.min(n,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10},ASt=TSt,zSt={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},FSt=zSt,$St={channel:ESt,lang:ASt,unit:FSt},St=$St,Tc={};for(let e=0;e<=255;e++)Tc[e]=St.unit.dec2hex(e);const Qr={ALL:0,RGB:1,HSL:2};class MSt{constructor(){this.type=Qr.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=Qr.ALL}is(t){return this.type===t}}const OSt=MSt;class NSt{constructor(t,n){this.color=n,this.changed=!1,this.data=t,this.type=new OSt}set(t,n){return this.color=n,this.changed=!1,this.data=t,this.type.type=Qr.ALL,this}_ensureHSL(){const t=this.data,{h:n,s:r,l:i}=t;n===void 0&&(t.h=St.channel.rgb2hsl(t,"h")),r===void 0&&(t.s=St.channel.rgb2hsl(t,"s")),i===void 0&&(t.l=St.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r:n,g:r,b:i}=t;n===void 0&&(t.r=St.channel.hsl2rgb(t,"r")),r===void 0&&(t.g=St.channel.hsl2rgb(t,"g")),i===void 0&&(t.b=St.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,n=t.r;return!this.type.is(Qr.HSL)&&n!==void 0?n:(this._ensureHSL(),St.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,n=t.g;return!this.type.is(Qr.HSL)&&n!==void 0?n:(this._ensureHSL(),St.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,n=t.b;return!this.type.is(Qr.HSL)&&n!==void 0?n:(this._ensureHSL(),St.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,n=t.h;return!this.type.is(Qr.RGB)&&n!==void 0?n:(this._ensureRGB(),St.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,n=t.s;return!this.type.is(Qr.RGB)&&n!==void 0?n:(this._ensureRGB(),St.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,n=t.l;return!this.type.is(Qr.RGB)&&n!==void 0?n:(this._ensureRGB(),St.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(Qr.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(Qr.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(Qr.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(Qr.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(Qr.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(Qr.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const LSt=NSt,ISt=new LSt({r:0,g:0,b:0,a:0},"transparent"),A2=ISt,RY={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(RY.re);if(!t)return;const n=t[1],r=parseInt(n,16),i=n.length,a=i%4===0,o=i>4,s=o?1:17,l=o?8:4,c=a?0:-1,u=o?255:15;return A2.set({r:(r>>l*(c+3)&u)*s,g:(r>>l*(c+2)&u)*s,b:(r>>l*(c+1)&u)*s,a:a?(r&u)*s/255:1},e)},stringify:e=>{const{r:t,g:n,b:r,a:i}=e;return i<1?`#${Tc[Math.round(t)]}${Tc[Math.round(n)]}${Tc[Math.round(r)]}${Tc[Math.round(i*255)]}`:`#${Tc[Math.round(t)]}${Tc[Math.round(n)]}${Tc[Math.round(r)]}`}},Vm=RY,Pb={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const t=e.match(Pb.hueRe);if(t){const[,n,r]=t;switch(r){case"grad":return St.channel.clamp.h(parseFloat(n)*.9);case"rad":return St.channel.clamp.h(parseFloat(n)*180/Math.PI);case"turn":return St.channel.clamp.h(parseFloat(n)*360)}}return St.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const n=e.match(Pb.re);if(!n)return;const[,r,i,a,o,s]=n;return A2.set({h:Pb._hue2deg(r),s:St.channel.clamp.s(parseFloat(i)),l:St.channel.clamp.l(parseFloat(a)),a:o?St.channel.clamp.a(s?parseFloat(o)/100:parseFloat(o)):1},e)},stringify:e=>{const{h:t,s:n,l:r,a:i}=e;return i<1?`hsla(${St.lang.round(t)}, ${St.lang.round(n)}%, ${St.lang.round(r)}%, ${i})`:`hsl(${St.lang.round(t)}, ${St.lang.round(n)}%, ${St.lang.round(r)}%)`}},C_=Pb,jb={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const t=jb.colors[e];if(t)return Vm.parse(t)},stringify:e=>{const t=Vm.stringify(e);for(const n in jb.colors)if(jb.colors[n]===t)return n}},yI=jb,PY={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const t=e.charCodeAt(0);if(t!==114&&t!==82)return;const n=e.match(PY.re);if(!n)return;const[,r,i,a,o,s,l,c,u]=n;return A2.set({r:St.channel.clamp.r(i?parseFloat(r)*2.55:parseFloat(r)),g:St.channel.clamp.g(o?parseFloat(a)*2.55:parseFloat(a)),b:St.channel.clamp.b(l?parseFloat(s)*2.55:parseFloat(s)),a:c?St.channel.clamp.a(u?parseFloat(c)/100:parseFloat(c)):1},e)},stringify:e=>{const{r:t,g:n,b:r,a:i}=e;return i<1?`rgba(${St.lang.round(t)}, ${St.lang.round(n)}, ${St.lang.round(r)}, ${St.lang.round(i)})`:`rgb(${St.lang.round(t)}, ${St.lang.round(n)}, ${St.lang.round(r)})`}},S_=PY,BSt={format:{keyword:yI,hex:Vm,rgb:S_,rgba:S_,hsl:C_,hsla:C_},parse:e=>{if(typeof e!="string")return e;const t=Vm.parse(e)||S_.parse(e)||C_.parse(e)||yI.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(Qr.HSL)||e.data.r===void 0?C_.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?S_.stringify(e):Vm.stringify(e)},Rs=BSt,RSt=(e,t)=>{const n=Rs.parse(e);for(const r in t)n[r]=St.channel.clamp[r](t[r]);return Rs.stringify(n)},jY=RSt,PSt=(e,t,n=0,r=1)=>{if(typeof e!="number")return jY(e,{a:t});const i=A2.set({r:St.channel.clamp.r(e),g:St.channel.clamp.g(t),b:St.channel.clamp.b(n),a:St.channel.clamp.a(r)});return Rs.stringify(i)},qm=PSt,jSt=e=>{const{r:t,g:n,b:r}=Rs.parse(e),i=.2126*St.channel.toLinear(t)+.7152*St.channel.toLinear(n)+.0722*St.channel.toLinear(r);return St.lang.round(i)},VSt=jSt,qSt=e=>VSt(e)>=.5,HSt=qSt,USt=e=>!HSt(e),A1=USt,WSt=(e,t,n)=>{const r=Rs.parse(e),i=r[t],a=St.channel.clamp[t](i+n);return i!==a&&(r[t]=a),Rs.stringify(r)},VY=WSt,GSt=(e,t)=>VY(e,"l",t),ft=GSt,KSt=(e,t)=>VY(e,"l",-t),yt=KSt,YSt=(e,t)=>{const n=Rs.parse(e),r={};for(const i in t)t[i]&&(r[i]=n[i]+t[i]);return jY(e,r)},se=YSt,ZSt=(e,t,n=50)=>{const{r,g:i,b:a,a:o}=Rs.parse(e),{r:s,g:l,b:c,a:u}=Rs.parse(t),f=n/100,h=f*2-1,m=o-u,b=((h*m===-1?h:(h+m)/(1+h*m))+1)/2,C=1-b,w=r*b+s*C,k=i*b+l*C,S=a*b+c*C,E=o*f+u*(1-f);return qm(w,k,S,E)},XSt=ZSt,JSt=(e,t=100)=>{const n=Rs.parse(e);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,XSt(n,e,t)},je=JSt;var QSt=typeof global=="object"&&global&&global.Object===Object&&global;const qY=QSt;var e9t=typeof self=="object"&&self&&self.Object===Object&&self,t9t=qY||e9t||Function("return this")();const Ou=t9t;var n9t=Ou.Symbol;const Tw=n9t;var HY=Object.prototype,r9t=HY.hasOwnProperty,i9t=HY.toString,B0=Tw?Tw.toStringTag:void 0;function a9t(e){var t=r9t.call(e,B0),n=e[B0];try{e[B0]=void 0;var r=!0}catch{}var i=i9t.call(e);return r&&(t?e[B0]=n:delete e[B0]),i}var o9t=Object.prototype,s9t=o9t.toString;function l9t(e){return s9t.call(e)}var c9t="[object Null]",u9t="[object Undefined]",_I=Tw?Tw.toStringTag:void 0;function z1(e){return e==null?e===void 0?u9t:c9t:_I&&_I in Object(e)?a9t(e):l9t(e)}function UY(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var d9t="[object AsyncFunction]",f9t="[object Function]",h9t="[object GeneratorFunction]",p9t="[object Proxy]";function WY(e){if(!UY(e))return!1;var t=z1(e);return t==f9t||t==h9t||t==d9t||t==p9t}var m9t=Ou["__core-js_shared__"];const v5=m9t;var bI=function(){var e=/[^.]+$/.exec(v5&&v5.keys&&v5.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function g9t(e){return!!bI&&bI in e}var y9t=Function.prototype,_9t=y9t.toString;function bf(e){if(e!=null){try{return _9t.call(e)}catch{}try{return e+""}catch{}}return""}var b9t=/[\\^$.*+?()[\]{}|]/g,k9t=/^\[object .+?Constructor\]$/,w9t=Function.prototype,v9t=Object.prototype,x9t=w9t.toString,C9t=v9t.hasOwnProperty,S9t=RegExp("^"+x9t.call(C9t).replace(b9t,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function D9t(e){if(!UY(e)||g9t(e))return!1;var t=WY(e)?S9t:k9t;return t.test(bf(e))}function E9t(e,t){return e==null?void 0:e[t]}function Yp(e,t){var n=E9t(e,t);return D9t(n)?n:void 0}var T9t=Yp(Object,"create");const Og=T9t;function A9t(){this.__data__=Og?Og(null):{},this.size=0}function z9t(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var F9t="__lodash_hash_undefined__",$9t=Object.prototype,M9t=$9t.hasOwnProperty;function O9t(e){var t=this.__data__;if(Og){var n=t[e];return n===F9t?void 0:n}return M9t.call(t,e)?t[e]:void 0}var N9t=Object.prototype,L9t=N9t.hasOwnProperty;function I9t(e){var t=this.__data__;return Og?t[e]!==void 0:L9t.call(t,e)}var B9t="__lodash_hash_undefined__";function R9t(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Og&&t===void 0?B9t:t,this}function nf(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}nf.prototype.clear=A9t;nf.prototype.delete=z9t;nf.prototype.get=O9t;nf.prototype.has=I9t;nf.prototype.set=R9t;function P9t(){this.__data__=[],this.size=0}function j9t(e,t){return e===t||e!==e&&t!==t}function z2(e,t){for(var n=e.length;n--;)if(j9t(e[n][0],t))return n;return-1}var V9t=Array.prototype,q9t=V9t.splice;function H9t(e){var t=this.__data__,n=z2(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():q9t.call(t,n,1),--this.size,!0}function U9t(e){var t=this.__data__,n=z2(t,e);return n<0?void 0:t[n][1]}function W9t(e){return z2(this.__data__,e)>-1}function G9t(e,t){var n=this.__data__,r=z2(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Zp(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Zp.prototype.clear=P9t;Zp.prototype.delete=H9t;Zp.prototype.get=U9t;Zp.prototype.has=W9t;Zp.prototype.set=G9t;var K9t=Yp(Ou,"Map");const Aw=K9t;function Y9t(){this.size=0,this.__data__={hash:new nf,map:new(Aw||Zp),string:new nf}}function Z9t(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function F2(e,t){var n=e.__data__;return Z9t(t)?n[typeof t=="string"?"string":"hash"]:n.map}function X9t(e){var t=F2(this,e).delete(e);return this.size-=t?1:0,t}function J9t(e){return F2(this,e).get(e)}function Q9t(e){return F2(this,e).has(e)}function eDt(e,t){var n=F2(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function kf(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}kf.prototype.clear=Y9t;kf.prototype.delete=X9t;kf.prototype.get=J9t;kf.prototype.has=Q9t;kf.prototype.set=eDt;var tDt="Expected a function";function F1(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(tDt);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(F1.Cache||kf),n}F1.Cache=kf;var GY="comm",KY="rule",YY="decl",nDt="@import",rDt="@keyframes",iDt="@layer",aDt=Math.abs,nE=String.fromCharCode;function ZY(e){return e.trim()}function Vb(e,t,n){return e.replace(t,n)}function oDt(e,t){return e.indexOf(t)}function Ng(e,t){return e.charCodeAt(t)|0}function Lg(e,t,n){return e.slice(t,n)}function vl(e){return e.length}function sDt(e){return e.length}function D_(e,t){return t.push(e),e}var $2=1,Dp=1,XY=0,bo=0,pr=0,Xp="";function rE(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:$2,column:Dp,length:o,return:"",siblings:s}}function lDt(){return pr}function cDt(){return pr=bo>0?Ng(Xp,--bo):0,Dp--,pr===10&&(Dp=1,$2--),pr}function Yo(){return pr=bo<XY?Ng(Xp,bo++):0,Dp++,pr===10&&(Dp=1,$2++),pr}function Id(){return Ng(Xp,bo)}function qb(){return bo}function M2(e,t){return Lg(Xp,e,t)}function D7(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function uDt(e){return $2=Dp=1,XY=vl(Xp=e),bo=0,[]}function dDt(e){return Xp="",e}function x5(e){return ZY(M2(bo-1,E7(e===91?e+2:e===40?e+1:e)))}function fDt(e){for(;(pr=Id())&&pr<33;)Yo();return D7(e)>2||D7(pr)>3?"":" "}function hDt(e,t){for(;--t&&Yo()&&!(pr<48||pr>102||pr>57&&pr<65||pr>70&&pr<97););return M2(e,qb()+(t<6&&Id()==32&&Yo()==32))}function E7(e){for(;Yo();)switch(pr){case e:return bo;case 34:case 39:e!==34&&e!==39&&E7(pr);break;case 40:e===41&&E7(e);break;case 92:Yo();break}return bo}function pDt(e,t){for(;Yo()&&e+pr!==47+10;)if(e+pr===42+42&&Id()===47)break;return"/*"+M2(t,bo-1)+"*"+nE(e===47?e:Yo())}function mDt(e){for(;!D7(Id());)Yo();return M2(e,bo)}function gDt(e){return dDt(Hb("",null,null,null,[""],e=uDt(e),0,[0],e))}function Hb(e,t,n,r,i,a,o,s,l){for(var c=0,u=0,f=o,h=0,m=0,g=0,b=1,C=1,w=1,k=0,S="",E=i,A=a,_=r,T=S;C;)switch(g=k,k=Yo()){case 40:if(g!=108&&Ng(T,f-1)==58){oDt(T+=Vb(x5(k),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:T+=x5(k);break;case 9:case 10:case 13:case 32:T+=fDt(g);break;case 92:T+=hDt(qb()-1,7);continue;case 47:switch(Id()){case 42:case 47:D_(yDt(pDt(Yo(),qb()),t,n,l),l);break;default:T+="/"}break;case 123*b:s[c++]=vl(T)*w;case 125*b:case 59:case 0:switch(k){case 0:case 125:C=0;case 59+u:w==-1&&(T=Vb(T,/\f/g,"")),m>0&&vl(T)-f&&D_(m>32?wI(T+";",r,n,f-1,l):wI(Vb(T," ","")+";",r,n,f-2,l),l);break;case 59:T+=";";default:if(D_(_=kI(T,t,n,c,u,i,s,S,E=[],A=[],f,a),a),k===123)if(u===0)Hb(T,t,_,_,E,a,f,s,A);else switch(h===99&&Ng(T,3)===110?100:h){case 100:case 108:case 109:case 115:Hb(e,_,_,r&&D_(kI(e,_,_,0,0,i,s,S,i,E=[],f,A),A),i,A,f,s,r?E:A);break;default:Hb(T,_,_,_,[""],A,0,s,A)}}c=u=m=0,b=w=1,S=T="",f=o;break;case 58:f=1+vl(T),m=g;default:if(b<1){if(k==123)--b;else if(k==125&&b++==0&&cDt()==125)continue}switch(T+=nE(k),k*b){case 38:w=u>0?1:(T+="\f",-1);break;case 44:s[c++]=(vl(T)-1)*w,w=1;break;case 64:Id()===45&&(T+=x5(Yo())),h=Id(),u=f=vl(S=T+=mDt(qb())),k++;break;case 45:g===45&&vl(T)==2&&(b=0)}}return a}function kI(e,t,n,r,i,a,o,s,l,c,u,f){for(var h=i-1,m=i===0?a:[""],g=sDt(m),b=0,C=0,w=0;b<r;++b)for(var k=0,S=Lg(e,h+1,h=aDt(C=o[b])),E=e;k<g;++k)(E=ZY(C>0?m[k]+" "+S:Vb(S,/&\f/g,m[k])))&&(l[w++]=E);return rE(e,t,n,i===0?KY:s,l,c,u,f)}function yDt(e,t,n,r){return rE(e,t,n,GY,nE(lDt()),Lg(e,2,-2),0,r)}function wI(e,t,n,r,i){return rE(e,t,n,YY,Lg(e,0,r),Lg(e,r+1,-1),r,i)}function T7(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function _Dt(e,t,n,r){switch(e.type){case iDt:if(e.children.length)break;case nDt:case YY:return e.return=e.return||e.value;case GY:return"";case rDt:return e.return=e.value+"{"+T7(e.children,r)+"}";case KY:if(!vl(e.value=e.props.join(",")))return""}return vl(n=T7(e.children,r))?e.return=e.value+"{"+n+"}":""}var bDt=Object.prototype;function JY(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||bDt;return e===n}function kDt(e,t){return function(n){return e(t(n))}}var wDt=kDt(Object.keys,Object);const vDt=wDt;var xDt=Object.prototype,CDt=xDt.hasOwnProperty;function SDt(e){if(!JY(e))return vDt(e);var t=[];for(var n in Object(e))CDt.call(e,n)&&n!="constructor"&&t.push(n);return t}var DDt=Yp(Ou,"DataView");const A7=DDt;var EDt=Yp(Ou,"Promise");const z7=EDt;var TDt=Yp(Ou,"Set");const F7=TDt;var ADt=Yp(Ou,"WeakMap");const $7=ADt;var vI="[object Map]",zDt="[object Object]",xI="[object Promise]",CI="[object Set]",SI="[object WeakMap]",DI="[object DataView]",FDt=bf(A7),$Dt=bf(Aw),MDt=bf(z7),ODt=bf(F7),NDt=bf($7),cd=z1;(A7&&cd(new A7(new ArrayBuffer(1)))!=DI||Aw&&cd(new Aw)!=vI||z7&&cd(z7.resolve())!=xI||F7&&cd(new F7)!=CI||$7&&cd(new $7)!=SI)&&(cd=function(e){var t=z1(e),n=t==zDt?e.constructor:void 0,r=n?bf(n):"";if(r)switch(r){case FDt:return DI;case $Dt:return vI;case MDt:return xI;case ODt:return CI;case NDt:return SI}return t});const LDt=cd;function iE(e){return e!=null&&typeof e=="object"}var IDt="[object Arguments]";function EI(e){return iE(e)&&z1(e)==IDt}var QY=Object.prototype,BDt=QY.hasOwnProperty,RDt=QY.propertyIsEnumerable,PDt=EI(function(){return arguments}())?EI:function(e){return iE(e)&&BDt.call(e,"callee")&&!RDt.call(e,"callee")};const jDt=PDt;var VDt=Array.isArray;const qDt=VDt;var HDt=9007199254740991;function eZ(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=HDt}function UDt(e){return e!=null&&eZ(e.length)&&!WY(e)}function WDt(){return!1}var tZ=typeof exports=="object"&&exports&&!exports.nodeType&&exports,TI=tZ&&typeof module=="object"&&module&&!module.nodeType&&module,GDt=TI&&TI.exports===tZ,AI=GDt?Ou.Buffer:void 0,KDt=AI?AI.isBuffer:void 0,YDt=KDt||WDt;const ZDt=YDt;var XDt="[object Arguments]",JDt="[object Array]",QDt="[object Boolean]",eEt="[object Date]",tEt="[object Error]",nEt="[object Function]",rEt="[object Map]",iEt="[object Number]",aEt="[object Object]",oEt="[object RegExp]",sEt="[object Set]",lEt="[object String]",cEt="[object WeakMap]",uEt="[object ArrayBuffer]",dEt="[object DataView]",fEt="[object Float32Array]",hEt="[object Float64Array]",pEt="[object Int8Array]",mEt="[object Int16Array]",gEt="[object Int32Array]",yEt="[object Uint8Array]",_Et="[object Uint8ClampedArray]",bEt="[object Uint16Array]",kEt="[object Uint32Array]",Nn={};Nn[fEt]=Nn[hEt]=Nn[pEt]=Nn[mEt]=Nn[gEt]=Nn[yEt]=Nn[_Et]=Nn[bEt]=Nn[kEt]=!0;Nn[XDt]=Nn[JDt]=Nn[uEt]=Nn[QDt]=Nn[dEt]=Nn[eEt]=Nn[tEt]=Nn[nEt]=Nn[rEt]=Nn[iEt]=Nn[aEt]=Nn[oEt]=Nn[sEt]=Nn[lEt]=Nn[cEt]=!1;function wEt(e){return iE(e)&&eZ(e.length)&&!!Nn[z1(e)]}function vEt(e){return function(t){return e(t)}}var nZ=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Hm=nZ&&typeof module=="object"&&module&&!module.nodeType&&module,xEt=Hm&&Hm.exports===nZ,C5=xEt&&qY.process,CEt=function(){try{var e=Hm&&Hm.require&&Hm.require("util").types;return e||C5&&C5.binding&&C5.binding("util")}catch{}}();const zI=CEt;var FI=zI&&zI.isTypedArray,SEt=FI?vEt(FI):wEt;const DEt=SEt;var EEt="[object Map]",TEt="[object Set]",AEt=Object.prototype,zEt=AEt.hasOwnProperty;function Ub(e){if(e==null)return!0;if(UDt(e)&&(qDt(e)||typeof e=="string"||typeof e.splice=="function"||ZDt(e)||DEt(e)||jDt(e)))return!e.length;var t=LDt(e);if(t==EEt||t==TEt)return!e.size;if(JY(e))return!SDt(e).length;for(var n in e)if(zEt.call(e,n))return!1;return!0}const dl={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},Qe={trace:(...e)=>{},debug:(...e)=>{},info:(...e)=>{},warn:(...e)=>{},error:(...e)=>{},fatal:(...e)=>{}},aE=function(e="fatal"){let t=dl.fatal;typeof e=="string"?(e=e.toLowerCase(),e in dl&&(t=dl[e])):typeof e=="number"&&(t=e),Qe.trace=()=>{},Qe.debug=()=>{},Qe.info=()=>{},Qe.warn=()=>{},Qe.error=()=>{},Qe.fatal=()=>{},t<=dl.fatal&&(Qe.fatal=console.error?console.error.bind(console,Ga("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Ga("FATAL"))),t<=dl.error&&(Qe.error=console.error?console.error.bind(console,Ga("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Ga("ERROR"))),t<=dl.warn&&(Qe.warn=console.warn?console.warn.bind(console,Ga("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Ga("WARN"))),t<=dl.info&&(Qe.info=console.info?console.info.bind(console,Ga("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Ga("INFO"))),t<=dl.debug&&(Qe.debug=console.debug?console.debug.bind(console,Ga("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Ga("DEBUG"))),t<=dl.trace&&(Qe.trace=console.debug?console.debug.bind(console,Ga("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Ga("TRACE")))},Ga=e=>`%c${yxt().format("ss.SSS")} : ${e} : `,O2=/<br\s*\/?>/gi,FEt=e=>e?iZ(e).replace(/\\n/g,"#br#").split("#br#"):[""],rZ=e=>Ew.sanitize(e),$I=(e,t)=>{var n;if(((n=t.flowchart)==null?void 0:n.htmlLabels)!==!1){const r=t.securityLevel;r==="antiscript"||r==="strict"?e=rZ(e):r!=="loose"&&(e=iZ(e),e=e.replace(/</g,"<").replace(/>/g,">"),e=e.replace(/=/g,"="),e=NEt(e))}return e},Ig=(e,t)=>e&&(t.dompurifyConfig?e=Ew.sanitize($I(e,t),t.dompurifyConfig).toString():e=Ew.sanitize($I(e,t),{FORBID_TAGS:["style"]}).toString(),e),$Et=(e,t)=>typeof e=="string"?Ig(e,t):e.flat().map(n=>Ig(n,t)),MEt=e=>O2.test(e),OEt=e=>e.split(O2),NEt=e=>e.replace(/#br#/g,"<br/>"),iZ=e=>e.replace(O2,"#br#"),LEt=e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=t.replaceAll(/\(/g,"\\("),t=t.replaceAll(/\)/g,"\\)")),t},aZ=e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),IEt=function(...e){const t=e.filter(n=>!isNaN(n));return Math.max(...t)},BEt=function(...e){const t=e.filter(n=>!isNaN(n));return Math.min(...t)},REt=function(e){let t=e;if(e.split("~").length-1>=2){let n=t;do t=n,n=t.replace(/~([^\s,:;]+)~/,"<$1>");while(n!=t);return REt(n)}else return t},oE={getRows:FEt,sanitizeText:Ig,sanitizeTextOrArray:$Et,hasBreaks:MEt,splitBreaks:OEt,lineBreakRegex:O2,removeScript:rZ,getUrl:LEt,evaluate:aZ,getMax:IEt,getMin:BEt},bi=(e,t)=>t?se(e,{s:-40,l:10}):se(e,{s:-40,l:-10}),N2="#ffffff",L2="#f2f2f2";let PEt=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||se(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||se(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||bi(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||bi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||bi(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||bi(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||je(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||je(this.tertiaryColor),this.lineColor=this.lineColor||je(this.background),this.arrowheadColor=this.arrowheadColor||je(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?yt(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||yt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||je(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||ft(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||se(this.primaryColor,{h:30}),this.cScale4=this.cScale4||se(this.primaryColor,{h:60}),this.cScale5=this.cScale5||se(this.primaryColor,{h:90}),this.cScale6=this.cScale6||se(this.primaryColor,{h:120}),this.cScale7=this.cScale7||se(this.primaryColor,{h:150}),this.cScale8=this.cScale8||se(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||se(this.primaryColor,{h:270}),this.cScale10=this.cScale10||se(this.primaryColor,{h:300}),this.cScale11=this.cScale11||se(this.primaryColor,{h:330}),this.darkMode)for(let n=0;n<this.THEME_COLOR_LIMIT;n++)this["cScale"+n]=yt(this["cScale"+n],75);else for(let n=0;n<this.THEME_COLOR_LIMIT;n++)this["cScale"+n]=yt(this["cScale"+n],25);for(let n=0;n<this.THEME_COLOR_LIMIT;n++)this["cScaleInv"+n]=this["cScaleInv"+n]||je(this["cScale"+n]);for(let n=0;n<this.THEME_COLOR_LIMIT;n++)this.darkMode?this["cScalePeer"+n]=this["cScalePeer"+n]||ft(this["cScale"+n],10):this["cScalePeer"+n]=this["cScalePeer"+n]||yt(this["cScale"+n],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let n=0;n<this.THEME_COLOR_LIMIT;n++)this["cScaleLabel"+n]=this["cScaleLabel"+n]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let n=0;n<5;n++)this["surface"+n]=this["surface"+n]||se(this.mainBkg,{h:180,s:-15,l:t*(5+n*3)}),this["surfacePeer"+n]=this["surfacePeer"+n]||se(this.mainBkg,{h:180,s:-15,l:t*(8+n*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||se(this.primaryColor,{h:64}),this.fillType3=this.fillType3||se(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||se(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||se(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||se(this.primaryColor,{h:128}),this.fillType7=this.fillType7||se(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||se(this.primaryColor,{l:-10}),this.pie5=this.pie5||se(this.secondaryColor,{l:-10}),this.pie6=this.pie6||se(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||se(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||se(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||se(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||se(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||se(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||se(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||se(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||se(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||se(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||se(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||se(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||se(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||A1(this.quadrant1Fill)?ft(this.quadrant1Fill):yt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?yt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||se(this.primaryColor,{h:-30}),this.git4=this.git4||se(this.primaryColor,{h:-60}),this.git5=this.git5||se(this.primaryColor,{h:-90}),this.git6=this.git6||se(this.primaryColor,{h:60}),this.git7=this.git7||se(this.primaryColor,{h:120}),this.darkMode?(this.git0=ft(this.git0,25),this.git1=ft(this.git1,25),this.git2=ft(this.git2,25),this.git3=ft(this.git3,25),this.git4=ft(this.git4,25),this.git5=ft(this.git5,25),this.git6=ft(this.git6,25),this.git7=ft(this.git7,25)):(this.git0=yt(this.git0,25),this.git1=yt(this.git1,25),this.git2=yt(this.git2,25),this.git3=yt(this.git3,25),this.git4=yt(this.git4,25),this.git5=yt(this.git5,25),this.git6=yt(this.git6,25),this.git7=yt(this.git7,25)),this.gitInv0=this.gitInv0||je(this.git0),this.gitInv1=this.gitInv1||je(this.git1),this.gitInv2=this.gitInv2||je(this.git2),this.gitInv3=this.gitInv3||je(this.git3),this.gitInv4=this.gitInv4||je(this.git4),this.gitInv5=this.gitInv5||je(this.git5),this.gitInv6=this.gitInv6||je(this.git6),this.gitInv7=this.gitInv7||je(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||N2,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||L2}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(r=>{this[r]=t[r]}),this.updateColors(),n.forEach(r=>{this[r]=t[r]})}};const jEt=e=>{const t=new PEt;return t.calculate(e),t};let VEt=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=ft(this.primaryColor,16),this.tertiaryColor=se(this.primaryColor,{h:-160}),this.primaryBorderColor=je(this.background),this.secondaryBorderColor=bi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=bi(this.tertiaryColor,this.darkMode),this.primaryTextColor=je(this.primaryColor),this.secondaryTextColor=je(this.secondaryColor),this.tertiaryTextColor=je(this.tertiaryColor),this.lineColor=je(this.background),this.textColor=je(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=ft(je("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=qm(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=yt("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=yt(this.sectionBkgColor,10),this.taskBorderColor=qm(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=qm(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=ft(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=ft(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=ft(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=se(this.primaryColor,{h:64}),this.fillType3=se(this.secondaryColor,{h:64}),this.fillType4=se(this.primaryColor,{h:-64}),this.fillType5=se(this.secondaryColor,{h:-64}),this.fillType6=se(this.primaryColor,{h:128}),this.fillType7=se(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||se(this.primaryColor,{h:30}),this.cScale4=this.cScale4||se(this.primaryColor,{h:60}),this.cScale5=this.cScale5||se(this.primaryColor,{h:90}),this.cScale6=this.cScale6||se(this.primaryColor,{h:120}),this.cScale7=this.cScale7||se(this.primaryColor,{h:150}),this.cScale8=this.cScale8||se(this.primaryColor,{h:210}),this.cScale9=this.cScale9||se(this.primaryColor,{h:270}),this.cScale10=this.cScale10||se(this.primaryColor,{h:300}),this.cScale11=this.cScale11||se(this.primaryColor,{h:330});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||je(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScalePeer"+t]=this["cScalePeer"+t]||ft(this["cScale"+t],10);for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||se(this.mainBkg,{h:30,s:-30,l:-(-10+t*4)}),this["surfacePeer"+t]=this["surfacePeer"+t]||se(this.mainBkg,{h:30,s:-30,l:-(-7+t*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||se(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||se(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||se(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||se(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||se(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||se(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||A1(this.quadrant1Fill)?ft(this.quadrant1Fill):yt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?yt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=ft(this.secondaryColor,20),this.git1=ft(this.pie2||this.secondaryColor,20),this.git2=ft(this.pie3||this.tertiaryColor,20),this.git3=ft(this.pie4||se(this.primaryColor,{h:-30}),20),this.git4=ft(this.pie5||se(this.primaryColor,{h:-60}),20),this.git5=ft(this.pie6||se(this.primaryColor,{h:-90}),10),this.git6=ft(this.pie7||se(this.primaryColor,{h:60}),10),this.git7=ft(this.pie8||se(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||je(this.git0),this.gitInv1=this.gitInv1||je(this.git1),this.gitInv2=this.gitInv2||je(this.git2),this.gitInv3=this.gitInv3||je(this.git3),this.gitInv4=this.gitInv4||je(this.git4),this.gitInv5=this.gitInv5||je(this.git5),this.gitInv6=this.gitInv6||je(this.git6),this.gitInv7=this.gitInv7||je(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||je(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||je(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ft(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ft(this.background,2)}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(r=>{this[r]=t[r]}),this.updateColors(),n.forEach(r=>{this[r]=t[r]})}};const qEt=e=>{const t=new VEt;return t.calculate(e),t};let HEt=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=se(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=se(this.primaryColor,{h:-160}),this.primaryBorderColor=bi(this.primaryColor,this.darkMode),this.secondaryBorderColor=bi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=bi(this.tertiaryColor,this.darkMode),this.primaryTextColor=je(this.primaryColor),this.secondaryTextColor=je(this.secondaryColor),this.tertiaryTextColor=je(this.tertiaryColor),this.lineColor=je(this.background),this.textColor=je(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=qm(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||se(this.primaryColor,{h:30}),this.cScale4=this.cScale4||se(this.primaryColor,{h:60}),this.cScale5=this.cScale5||se(this.primaryColor,{h:90}),this.cScale6=this.cScale6||se(this.primaryColor,{h:120}),this.cScale7=this.cScale7||se(this.primaryColor,{h:150}),this.cScale8=this.cScale8||se(this.primaryColor,{h:210}),this.cScale9=this.cScale9||se(this.primaryColor,{h:270}),this.cScale10=this.cScale10||se(this.primaryColor,{h:300}),this.cScale11=this.cScale11||se(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||yt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||yt(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=yt(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||yt(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||se(this["cScale"+t],{h:180});for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||se(this.mainBkg,{h:30,l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||se(this.mainBkg,{h:30,l:-(7+t*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||je(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||je(this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=ft(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=se(this.primaryColor,{h:64}),this.fillType3=se(this.secondaryColor,{h:64}),this.fillType4=se(this.primaryColor,{h:-64}),this.fillType5=se(this.secondaryColor,{h:-64}),this.fillType6=se(this.primaryColor,{h:128}),this.fillType7=se(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||se(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||se(this.primaryColor,{l:-10}),this.pie5=this.pie5||se(this.secondaryColor,{l:-30}),this.pie6=this.pie6||se(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||se(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||se(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||se(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||se(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||se(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||se(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||se(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||se(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||se(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||se(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||se(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||se(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||A1(this.quadrant1Fill)?ft(this.quadrant1Fill):yt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||se(this.primaryColor,{h:-30}),this.git4=this.git4||se(this.primaryColor,{h:-60}),this.git5=this.git5||se(this.primaryColor,{h:-90}),this.git6=this.git6||se(this.primaryColor,{h:60}),this.git7=this.git7||se(this.primaryColor,{h:120}),this.darkMode?(this.git0=ft(this.git0,25),this.git1=ft(this.git1,25),this.git2=ft(this.git2,25),this.git3=ft(this.git3,25),this.git4=ft(this.git4,25),this.git5=ft(this.git5,25),this.git6=ft(this.git6,25),this.git7=ft(this.git7,25)):(this.git0=yt(this.git0,25),this.git1=yt(this.git1,25),this.git2=yt(this.git2,25),this.git3=yt(this.git3,25),this.git4=yt(this.git4,25),this.git5=yt(this.git5,25),this.git6=yt(this.git6,25),this.git7=yt(this.git7,25)),this.gitInv0=this.gitInv0||yt(je(this.git0),25),this.gitInv1=this.gitInv1||je(this.git1),this.gitInv2=this.gitInv2||je(this.git2),this.gitInv3=this.gitInv3||je(this.git3),this.gitInv4=this.gitInv4||je(this.git4),this.gitInv5=this.gitInv5||je(this.git5),this.gitInv6=this.gitInv6||je(this.git6),this.gitInv7=this.gitInv7||je(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||je(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||je(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||N2,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||L2}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(r=>{this[r]=t[r]}),this.updateColors(),n.forEach(r=>{this[r]=t[r]})}};const UEt=e=>{const t=new HEt;return t.calculate(e),t};let WEt=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=ft("#cde498",10),this.primaryBorderColor=bi(this.primaryColor,this.darkMode),this.secondaryBorderColor=bi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=bi(this.tertiaryColor,this.darkMode),this.primaryTextColor=je(this.primaryColor),this.secondaryTextColor=je(this.secondaryColor),this.tertiaryTextColor=je(this.primaryColor),this.lineColor=je(this.background),this.textColor=je(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.actorBorder=yt(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||se(this.primaryColor,{h:30}),this.cScale4=this.cScale4||se(this.primaryColor,{h:60}),this.cScale5=this.cScale5||se(this.primaryColor,{h:90}),this.cScale6=this.cScale6||se(this.primaryColor,{h:120}),this.cScale7=this.cScale7||se(this.primaryColor,{h:150}),this.cScale8=this.cScale8||se(this.primaryColor,{h:210}),this.cScale9=this.cScale9||se(this.primaryColor,{h:270}),this.cScale10=this.cScale10||se(this.primaryColor,{h:300}),this.cScale11=this.cScale11||se(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||yt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||yt(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=yt(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||yt(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||se(this["cScale"+t],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||se(this.mainBkg,{h:30,s:-30,l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||se(this.mainBkg,{h:30,s:-30,l:-(8+t*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=se(this.primaryColor,{h:64}),this.fillType3=se(this.secondaryColor,{h:64}),this.fillType4=se(this.primaryColor,{h:-64}),this.fillType5=se(this.secondaryColor,{h:-64}),this.fillType6=se(this.primaryColor,{h:128}),this.fillType7=se(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||se(this.primaryColor,{l:-30}),this.pie5=this.pie5||se(this.secondaryColor,{l:-30}),this.pie6=this.pie6||se(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||se(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||se(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||se(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||se(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||se(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||se(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||se(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||se(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||se(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||se(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||se(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||se(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||A1(this.quadrant1Fill)?ft(this.quadrant1Fill):yt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||se(this.primaryColor,{h:-30}),this.git4=this.git4||se(this.primaryColor,{h:-60}),this.git5=this.git5||se(this.primaryColor,{h:-90}),this.git6=this.git6||se(this.primaryColor,{h:60}),this.git7=this.git7||se(this.primaryColor,{h:120}),this.darkMode?(this.git0=ft(this.git0,25),this.git1=ft(this.git1,25),this.git2=ft(this.git2,25),this.git3=ft(this.git3,25),this.git4=ft(this.git4,25),this.git5=ft(this.git5,25),this.git6=ft(this.git6,25),this.git7=ft(this.git7,25)):(this.git0=yt(this.git0,25),this.git1=yt(this.git1,25),this.git2=yt(this.git2,25),this.git3=yt(this.git3,25),this.git4=yt(this.git4,25),this.git5=yt(this.git5,25),this.git6=yt(this.git6,25),this.git7=yt(this.git7,25)),this.gitInv0=this.gitInv0||je(this.git0),this.gitInv1=this.gitInv1||je(this.git1),this.gitInv2=this.gitInv2||je(this.git2),this.gitInv3=this.gitInv3||je(this.git3),this.gitInv4=this.gitInv4||je(this.git4),this.gitInv5=this.gitInv5||je(this.git5),this.gitInv6=this.gitInv6||je(this.git6),this.gitInv7=this.gitInv7||je(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||je(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||je(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||N2,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||L2}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(r=>{this[r]=t[r]}),this.updateColors(),n.forEach(r=>{this[r]=t[r]})}};const GEt=e=>{const t=new WEt;return t.calculate(e),t};class KEt{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=ft(this.contrast,55),this.background="#ffffff",this.tertiaryColor=se(this.primaryColor,{h:-160}),this.primaryBorderColor=bi(this.primaryColor,this.darkMode),this.secondaryBorderColor=bi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=bi(this.tertiaryColor,this.darkMode),this.primaryTextColor=je(this.primaryColor),this.secondaryTextColor=je(this.secondaryColor),this.tertiaryTextColor=je(this.tertiaryColor),this.lineColor=je(this.background),this.textColor=je(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=ft(this.contrast,55),this.border2=this.contrast,this.actorBorder=ft(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||je(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||ft(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||yt(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||se(this.mainBkg,{l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||se(this.mainBkg,{l:-(8+t*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=ft(this.contrast,30),this.sectionBkgColor2=ft(this.contrast,30),this.taskBorderColor=yt(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=ft(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=yt(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=se(this.primaryColor,{h:64}),this.fillType3=se(this.secondaryColor,{h:64}),this.fillType4=se(this.primaryColor,{h:-64}),this.fillType5=se(this.secondaryColor,{h:-64}),this.fillType6=se(this.primaryColor,{h:128}),this.fillType7=se(this.secondaryColor,{h:128});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||se(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||se(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||se(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||se(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||se(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||se(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||A1(this.quadrant1Fill)?ft(this.quadrant1Fill):yt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=yt(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||se(this.primaryColor,{h:-30}),this.git4=this.pie5||se(this.primaryColor,{h:-60}),this.git5=this.pie6||se(this.primaryColor,{h:-90}),this.git6=this.pie7||se(this.primaryColor,{h:60}),this.git7=this.pie8||se(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||je(this.git0),this.gitInv1=this.gitInv1||je(this.git1),this.gitInv2=this.gitInv2||je(this.git2),this.gitInv3=this.gitInv3||je(this.git3),this.gitInv4=this.gitInv4||je(this.git4),this.gitInv5=this.gitInv5||je(this.git5),this.gitInv6=this.gitInv6||je(this.git6),this.gitInv7=this.gitInv7||je(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||N2,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||L2}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(r=>{this[r]=t[r]}),this.updateColors(),n.forEach(r=>{this[r]=t[r]})}}const YEt=e=>{const t=new KEt;return t.calculate(e),t},Ol={base:{getThemeVariables:jEt},dark:{getThemeVariables:qEt},default:{getThemeVariables:UEt},forest:{getThemeVariables:GEt},neutral:{getThemeVariables:YEt}},ou={theme:"default",themeVariables:Ol.default.getThemeVariables(),themeCSS:void 0,maxTextSize:5e4,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],deterministicIds:!1,deterministicIDSeed:void 0,flowchart:{titleTopMargin:25,diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,useMaxWidth:!0,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,displayMode:"",axisFormat:"%Y-%m-%d",tickInterval:void 0,useMaxWidth:!0,topAxis:!1,useWidth:void 0},journey:{diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},timeline:{diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},class:{titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},state:{titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},er:{titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12,useMaxWidth:!0},pie:{useWidth:void 0,useMaxWidth:!0,textPosition:.75},quadrantChart:{chartWidth:500,chartHeight:500,titlePadding:10,titleFontSize:20,quadrantPadding:5,quadrantTextTopPadding:5,quadrantLabelFontSize:16,quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2,xAxisLabelPadding:5,xAxisLabelFontSize:16,xAxisPosition:"top",yAxisLabelPadding:5,yAxisLabelFontSize:16,yAxisPosition:"left",pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,useMaxWidth:!0},requirement:{useWidth:void 0,useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},gitGraph:{titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0},c4:{useWidth:void 0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,useMaxWidth:!0,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},fontSize:16};ou.class&&(ou.class.arrowMarkerAbsolute=ou.arrowMarkerAbsolute);ou.gitGraph&&(ou.gitGraph.arrowMarkerAbsolute=ou.arrowMarkerAbsolute);const oZ=(e,t="")=>Object.keys(e).reduce((n,r)=>Array.isArray(e[r])?n:typeof e[r]=="object"&&e[r]!==null?[...n,t+r,...oZ(e[r],"")]:[...n,t+r],[]),ZEt=oZ(ou,""),XEt=ou;/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function sZ(e){return typeof e>"u"||e===null}function JEt(e){return typeof e=="object"&&e!==null}function QEt(e){return Array.isArray(e)?e:sZ(e)?[]:[e]}function eTt(e,t){var n,r,i,a;if(t)for(a=Object.keys(t),n=0,r=a.length;n<r;n+=1)i=a[n],e[i]=t[i];return e}function tTt(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}function nTt(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var rTt=sZ,iTt=JEt,aTt=QEt,oTt=tTt,sTt=nTt,lTt=eTt,yi={isNothing:rTt,isObject:iTt,toArray:aTt,repeat:oTt,isNegativeZero:sTt,extend:lTt};function lZ(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=` -`+e.mark.snippet),r+" "+n):r}function Bg(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=sZ(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Bg.prototype=Object.create(Error.prototype);Bg.prototype.constructor=Bg;Bg.prototype.toString=function(t){return this.name+": "+sZ(this,t)};var xl=Bg;function S5(e,t,n,r,i){var a="",o="",s=Math.floor(i/2)-1;return r-t>s&&(a=" ... ",t=r-s+a.length),n-r>s&&(o=" ...",n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,"→")+o,pos:r-t+a.length}}function D5(e,t){return yi.repeat(" ",t-e.length)+e}function lTt(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],a,o=-1;a=n.exec(e.buffer);)i.push(a.index),r.push(a.index+a[0].length),e.position<=a.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s="",l,c,u=Math.min(e.line+t.linesAfter,i.length).toString().length,f=t.maxLength-(t.indent+u+3);for(l=1;l<=t.linesBefore&&!(o-l<0);l++)c=S5(e.buffer,r[o-l],i[o-l],e.position-(r[o]-r[o-l]),f),s=yi.repeat(" ",t.indent)+D5((e.line-l+1).toString(),u)+" | "+c.str+` +`+e.mark.snippet),r+" "+n):r}function Bg(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=lZ(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Bg.prototype=Object.create(Error.prototype);Bg.prototype.constructor=Bg;Bg.prototype.toString=function(t){return this.name+": "+lZ(this,t)};var xl=Bg;function S5(e,t,n,r,i){var a="",o="",s=Math.floor(i/2)-1;return r-t>s&&(a=" ... ",t=r-s+a.length),n-r>s&&(o=" ...",n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,"→")+o,pos:r-t+a.length}}function D5(e,t){return yi.repeat(" ",t-e.length)+e}function cTt(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],a,o=-1;a=n.exec(e.buffer);)i.push(a.index),r.push(a.index+a[0].length),e.position<=a.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s="",l,c,u=Math.min(e.line+t.linesAfter,i.length).toString().length,f=t.maxLength-(t.indent+u+3);for(l=1;l<=t.linesBefore&&!(o-l<0);l++)c=S5(e.buffer,r[o-l],i[o-l],e.position-(r[o]-r[o-l]),f),s=yi.repeat(" ",t.indent)+D5((e.line-l+1).toString(),u)+" | "+c.str+` `+s;for(c=S5(e.buffer,r[o],i[o],e.position,f),s+=yi.repeat(" ",t.indent)+D5((e.line+1).toString(),u)+" | "+c.str+` `,s+=yi.repeat("-",t.indent+u+3+c.pos)+`^ `,l=1;l<=t.linesAfter&&!(o+l>=i.length);l++)c=S5(e.buffer,r[o+l],i[o+l],e.position-(r[o]-r[o+l]),f),s+=yi.repeat(" ",t.indent)+D5((e.line+l+1).toString(),u)+" | "+c.str+` -`;return s.replace(/\n$/,"")}var cTt=lTt,uTt=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],dTt=["scalar","sequence","mapping"];function fTt(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function hTt(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(uTt.indexOf(n)===-1)throw new xl('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=fTt(t.styleAliases||null),dTt.indexOf(this.kind)===-1)throw new xl('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var oi=hTt;function MI(e,t){var n=[];return e[t].forEach(function(r){var i=n.length;n.forEach(function(a,o){a.tag===r.tag&&a.kind===r.kind&&a.multi===r.multi&&(i=o)}),n[i]=r}),n}function pTt(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}function M7(e){return this.extend(e)}M7.prototype.extend=function(t){var n=[],r=[];if(t instanceof oi)r.push(t);else if(Array.isArray(t))r=r.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(n=n.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit));else throw new xl("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(a){if(!(a instanceof oi))throw new xl("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(a.loadKind&&a.loadKind!=="scalar")throw new xl("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(a.multi)throw new xl("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(a){if(!(a instanceof oi))throw new xl("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(M7.prototype);return i.implicit=(this.implicit||[]).concat(n),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=MI(i,"implicit"),i.compiledExplicit=MI(i,"explicit"),i.compiledTypeMap=pTt(i.compiledImplicit,i.compiledExplicit),i};var mTt=M7,gTt=new oi("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),yTt=new oi("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),_Tt=new oi("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),lZ=new mTt({explicit:[gTt,yTt,_Tt]});function bTt(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function kTt(){return null}function wTt(e){return e===null}var vTt=new oi("tag:yaml.org,2002:null",{kind:"scalar",resolve:bTt,construct:kTt,predicate:wTt,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function xTt(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function CTt(e){return e==="true"||e==="True"||e==="TRUE"}function STt(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var DTt=new oi("tag:yaml.org,2002:bool",{kind:"scalar",resolve:xTt,construct:CTt,predicate:STt,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function ETt(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function TTt(e){return 48<=e&&e<=55}function ATt(e){return 48<=e&&e<=57}function zTt(e){if(e===null)return!1;var t=e.length,n=0,r=!1,i;if(!t)return!1;if(i=e[n],(i==="-"||i==="+")&&(i=e[++n]),i==="0"){if(n+1===t)return!0;if(i=e[++n],i==="b"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;r=!0}return r&&i!=="_"}if(i==="x"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!ETt(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}if(i==="o"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!TTt(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}}if(i==="_")return!1;for(;n<t;n++)if(i=e[n],i!=="_"){if(!ATt(e.charCodeAt(n)))return!1;r=!0}return!(!r||i==="_")}function FTt(e){var t=e,n=1,r;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),r=t[0],(r==="-"||r==="+")&&(r==="-"&&(n=-1),t=t.slice(1),r=t[0]),t==="0")return 0;if(r==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function $Tt(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!yi.isNegativeZero(e)}var MTt=new oi("tag:yaml.org,2002:int",{kind:"scalar",resolve:zTt,construct:FTt,predicate:$Tt,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),OTt=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function NTt(e){return!(e===null||!OTt.test(e)||e[e.length-1]==="_")}function LTt(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var ITt=/^[-+]?[0-9]+e/;function BTt(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(yi.isNegativeZero(e))return"-0.0";return n=e.toString(10),ITt.test(n)?n.replace("e",".e"):n}function RTt(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||yi.isNegativeZero(e))}var PTt=new oi("tag:yaml.org,2002:float",{kind:"scalar",resolve:NTt,construct:LTt,predicate:RTt,represent:BTt,defaultStyle:"lowercase"}),jTt=lZ.extend({implicit:[vTt,DTt,MTt,PTt]}),VTt=jTt,cZ=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),uZ=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function qTt(e){return e===null?!1:cZ.exec(e)!==null||uZ.exec(e)!==null}function HTt(e){var t,n,r,i,a,o,s,l=0,c=null,u,f,h;if(t=cZ.exec(e),t===null&&(t=uZ.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(a=+t[4],o=+t[5],s=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(u=+t[10],f=+(t[11]||0),c=(u*60+f)*6e4,t[9]==="-"&&(c=-c)),h=new Date(Date.UTC(n,r,i,a,o,s,l)),c&&h.setTime(h.getTime()-c),h}function UTt(e){return e.toISOString()}var WTt=new oi("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:qTt,construct:HTt,instanceOf:Date,represent:UTt});function GTt(e){return e==="<<"||e===null}var KTt=new oi("tag:yaml.org,2002:merge",{kind:"scalar",resolve:GTt}),sE=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= -\r`;function YTt(e){if(e===null)return!1;var t,n,r=0,i=e.length,a=sE;for(n=0;n<i;n++)if(t=a.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8===0}function ZTt(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,a=sE,o=0,s=[];for(t=0;t<i;t++)t%4===0&&t&&(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|a.indexOf(r.charAt(t));return n=i%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function XTt(e){var t="",n=0,r,i,a=e.length,o=sE;for(r=0;r<a;r++)r%3===0&&r&&(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return i=a%3,i===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):i===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):i===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function JTt(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var QTt=new oi("tag:yaml.org,2002:binary",{kind:"scalar",resolve:YTt,construct:ZTt,predicate:JTt,represent:XTt}),eAt=Object.prototype.hasOwnProperty,tAt=Object.prototype.toString;function nAt(e){if(e===null)return!0;var t=[],n,r,i,a,o,s=e;for(n=0,r=s.length;n<r;n+=1){if(i=s[n],o=!1,tAt.call(i)!=="[object Object]")return!1;for(a in i)if(eAt.call(i,a))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(a)===-1)t.push(a);else return!1}return!0}function rAt(e){return e!==null?e:[]}var iAt=new oi("tag:yaml.org,2002:omap",{kind:"sequence",resolve:nAt,construct:rAt}),aAt=Object.prototype.toString;function oAt(e){if(e===null)return!0;var t,n,r,i,a,o=e;for(a=new Array(o.length),t=0,n=o.length;t<n;t+=1){if(r=o[t],aAt.call(r)!=="[object Object]"||(i=Object.keys(r),i.length!==1))return!1;a[t]=[i[0],r[i[0]]]}return!0}function sAt(e){if(e===null)return[];var t,n,r,i,a,o=e;for(a=new Array(o.length),t=0,n=o.length;t<n;t+=1)r=o[t],i=Object.keys(r),a[t]=[i[0],r[i[0]]];return a}var lAt=new oi("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:oAt,construct:sAt}),cAt=Object.prototype.hasOwnProperty;function uAt(e){if(e===null)return!0;var t,n=e;for(t in n)if(cAt.call(n,t)&&n[t]!==null)return!1;return!0}function dAt(e){return e!==null?e:{}}var fAt=new oi("tag:yaml.org,2002:set",{kind:"mapping",resolve:uAt,construct:dAt}),hAt=VTt.extend({implicit:[WTt,KTt],explicit:[QTt,iAt,lAt,fAt]}),_u=Object.prototype.hasOwnProperty,zw=1,dZ=2,fZ=3,Fw=4,E5=1,pAt=2,OI=3,mAt=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,gAt=/[\x85\u2028\u2029]/,yAt=/[,\[\]\{\}]/,hZ=/^(?:!|!!|![a-z\-]+!)$/i,pZ=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function NI(e){return Object.prototype.toString.call(e)}function $s(e){return e===10||e===13}function Bd(e){return e===9||e===32}function qi(e){return e===9||e===32||e===10||e===13}function Eh(e){return e===44||e===91||e===93||e===123||e===125}function _At(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function bAt(e){return e===120?2:e===117?4:e===85?8:0}function kAt(e){return 48<=e&&e<=57?e-48:-1}function LI(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?` -`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function wAt(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var mZ=new Array(256),gZ=new Array(256);for(var Wf=0;Wf<256;Wf++)mZ[Wf]=LI(Wf)?1:0,gZ[Wf]=LI(Wf);function vAt(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||hAt,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function yZ(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=cTt(n),new xl(t,n)}function ht(e,t){throw yZ(e,t)}function $w(e,t){e.onWarning&&e.onWarning.call(null,yZ(e,t))}var II={YAML:function(t,n,r){var i,a,o;t.version!==null&&ht(t,"duplication of %YAML directive"),r.length!==1&&ht(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&ht(t,"ill-formed argument of the YAML directive"),a=parseInt(i[1],10),o=parseInt(i[2],10),a!==1&&ht(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&$w(t,"unsupported YAML version of the document")},TAG:function(t,n,r){var i,a;r.length!==2&&ht(t,"TAG directive accepts exactly two arguments"),i=r[0],a=r[1],hZ.test(i)||ht(t,"ill-formed tag handle (first argument) of the TAG directive"),_u.call(t.tagMap,i)&&ht(t,'there is a previously declared suffix for "'+i+'" tag handle'),pZ.test(a)||ht(t,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{ht(t,"tag prefix is malformed: "+a)}t.tagMap[i]=a}};function su(e,t,n,r){var i,a,o,s;if(t<n){if(s=e.input.slice(t,n),r)for(i=0,a=s.length;i<a;i+=1)o=s.charCodeAt(i),o===9||32<=o&&o<=1114111||ht(e,"expected valid JSON character");else mAt.test(s)&&ht(e,"the stream contains non-printable characters");e.result+=s}}function BI(e,t,n,r){var i,a,o,s;for(yi.isObject(n)||ht(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),o=0,s=i.length;o<s;o+=1)a=i[o],_u.call(t,a)||(t[a]=n[a],r[a]=!0)}function Th(e,t,n,r,i,a,o,s,l){var c,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,u=i.length;c<u;c+=1)Array.isArray(i[c])&&ht(e,"nested arrays are not supported inside keys"),typeof i=="object"&&NI(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&NI(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(a))for(c=0,u=a.length;c<u;c+=1)BI(e,t,a[c],n);else BI(e,t,a,n);else!e.json&&!_u.call(n,i)&&_u.call(t,i)&&(e.line=o||e.line,e.lineStart=s||e.lineStart,e.position=l||e.position,ht(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:a}):t[i]=a,delete n[i];return t}function lE(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):ht(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function gr(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Bd(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if($s(i))for(lE(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&$w(e,"deficient indentation"),r}function I2(e){var t=e.position,n;return n=e.input.charCodeAt(t),!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||qi(n)))}function cE(e,t){t===1?e.result+=" ":t>1&&(e.result+=yi.repeat(` -`,t-1))}function xAt(e,t,n){var r,i,a,o,s,l,c,u,f=e.kind,h=e.result,m;if(m=e.input.charCodeAt(e.position),qi(m)||Eh(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(i=e.input.charCodeAt(e.position+1),qi(i)||n&&Eh(i)))return!1;for(e.kind="scalar",e.result="",a=o=e.position,s=!1;m!==0;){if(m===58){if(i=e.input.charCodeAt(e.position+1),qi(i)||n&&Eh(i))break}else if(m===35){if(r=e.input.charCodeAt(e.position-1),qi(r))break}else{if(e.position===e.lineStart&&I2(e)||n&&Eh(m))break;if($s(m))if(l=e.line,c=e.lineStart,u=e.lineIndent,gr(e,!1,-1),e.lineIndent>=t){s=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=l,e.lineStart=c,e.lineIndent=u;break}}s&&(su(e,a,o,!1),cE(e,e.line-l),a=o=e.position,s=!1),Bd(m)||(o=e.position+1),m=e.input.charCodeAt(++e.position)}return su(e,a,o,!1),e.result?!0:(e.kind=f,e.result=h,!1)}function CAt(e,t){var n,r,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(su(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,i=e.position;else return!0;else $s(n)?(su(e,r,i,!0),cE(e,gr(e,!1,t)),r=i=e.position):e.position===e.lineStart&&I2(e)?ht(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);ht(e,"unexpected end of the stream within a single quoted scalar")}function SAt(e,t){var n,r,i,a,o,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return su(e,n,e.position,!0),e.position++,!0;if(s===92){if(su(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),$s(s))gr(e,!1,t);else if(s<256&&mZ[s])e.result+=gZ[s],e.position++;else if((o=bAt(s))>0){for(i=o,a=0;i>0;i--)s=e.input.charCodeAt(++e.position),(o=_At(s))>=0?a=(a<<4)+o:ht(e,"expected hexadecimal character");e.result+=wAt(a),e.position++}else ht(e,"unknown escape sequence");n=r=e.position}else $s(s)?(su(e,n,r,!0),cE(e,gr(e,!1,t)),n=r=e.position):e.position===e.lineStart&&I2(e)?ht(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}ht(e,"unexpected end of the stream within a double quoted scalar")}function DAt(e,t){var n=!0,r,i,a,o=e.tag,s,l=e.anchor,c,u,f,h,m,g=Object.create(null),b,C,w,k;if(k=e.input.charCodeAt(e.position),k===91)u=93,m=!1,s=[];else if(k===123)u=125,m=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),k=e.input.charCodeAt(++e.position);k!==0;){if(gr(e,!0,t),k=e.input.charCodeAt(e.position),k===u)return e.position++,e.tag=o,e.anchor=l,e.kind=m?"mapping":"sequence",e.result=s,!0;n?k===44&&ht(e,"expected the node content, but found ','"):ht(e,"missed comma between flow collection entries"),C=b=w=null,f=h=!1,k===63&&(c=e.input.charCodeAt(e.position+1),qi(c)&&(f=h=!0,e.position++,gr(e,!0,t))),r=e.line,i=e.lineStart,a=e.position,Ep(e,t,zw,!1,!0),C=e.tag,b=e.result,gr(e,!0,t),k=e.input.charCodeAt(e.position),(h||e.line===r)&&k===58&&(f=!0,k=e.input.charCodeAt(++e.position),gr(e,!0,t),Ep(e,t,zw,!1,!0),w=e.result),m?Th(e,s,g,C,b,w,r,i,a):f?s.push(Th(e,null,g,C,b,w,r,i,a)):s.push(b),gr(e,!0,t),k=e.input.charCodeAt(e.position),k===44?(n=!0,k=e.input.charCodeAt(++e.position)):n=!1}ht(e,"unexpected end of the stream within a flow collection")}function EAt(e,t){var n,r,i=E5,a=!1,o=!1,s=t,l=0,c=!1,u,f;if(f=e.input.charCodeAt(e.position),f===124)r=!1;else if(f===62)r=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)E5===i?i=f===43?OI:pAt:ht(e,"repeat of a chomping mode identifier");else if((u=kAt(f))>=0)u===0?ht(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?ht(e,"repeat of an indentation width identifier"):(s=t+u-1,o=!0);else break;if(Bd(f)){do f=e.input.charCodeAt(++e.position);while(Bd(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!$s(f)&&f!==0)}for(;f!==0;){for(lE(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!o||e.lineIndent<s)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>s&&(s=e.lineIndent),$s(f)){l++;continue}if(e.lineIndent<s){i===OI?e.result+=yi.repeat(` +`;return s.replace(/\n$/,"")}var uTt=cTt,dTt=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],fTt=["scalar","sequence","mapping"];function hTt(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function pTt(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(dTt.indexOf(n)===-1)throw new xl('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=hTt(t.styleAliases||null),fTt.indexOf(this.kind)===-1)throw new xl('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var oi=pTt;function MI(e,t){var n=[];return e[t].forEach(function(r){var i=n.length;n.forEach(function(a,o){a.tag===r.tag&&a.kind===r.kind&&a.multi===r.multi&&(i=o)}),n[i]=r}),n}function mTt(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}function M7(e){return this.extend(e)}M7.prototype.extend=function(t){var n=[],r=[];if(t instanceof oi)r.push(t);else if(Array.isArray(t))r=r.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(n=n.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit));else throw new xl("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(a){if(!(a instanceof oi))throw new xl("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(a.loadKind&&a.loadKind!=="scalar")throw new xl("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(a.multi)throw new xl("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(a){if(!(a instanceof oi))throw new xl("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(M7.prototype);return i.implicit=(this.implicit||[]).concat(n),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=MI(i,"implicit"),i.compiledExplicit=MI(i,"explicit"),i.compiledTypeMap=mTt(i.compiledImplicit,i.compiledExplicit),i};var gTt=M7,yTt=new oi("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),_Tt=new oi("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),bTt=new oi("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),cZ=new gTt({explicit:[yTt,_Tt,bTt]});function kTt(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function wTt(){return null}function vTt(e){return e===null}var xTt=new oi("tag:yaml.org,2002:null",{kind:"scalar",resolve:kTt,construct:wTt,predicate:vTt,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function CTt(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function STt(e){return e==="true"||e==="True"||e==="TRUE"}function DTt(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var ETt=new oi("tag:yaml.org,2002:bool",{kind:"scalar",resolve:CTt,construct:STt,predicate:DTt,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function TTt(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function ATt(e){return 48<=e&&e<=55}function zTt(e){return 48<=e&&e<=57}function FTt(e){if(e===null)return!1;var t=e.length,n=0,r=!1,i;if(!t)return!1;if(i=e[n],(i==="-"||i==="+")&&(i=e[++n]),i==="0"){if(n+1===t)return!0;if(i=e[++n],i==="b"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;r=!0}return r&&i!=="_"}if(i==="x"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!TTt(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}if(i==="o"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!ATt(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}}if(i==="_")return!1;for(;n<t;n++)if(i=e[n],i!=="_"){if(!zTt(e.charCodeAt(n)))return!1;r=!0}return!(!r||i==="_")}function $Tt(e){var t=e,n=1,r;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),r=t[0],(r==="-"||r==="+")&&(r==="-"&&(n=-1),t=t.slice(1),r=t[0]),t==="0")return 0;if(r==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function MTt(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!yi.isNegativeZero(e)}var OTt=new oi("tag:yaml.org,2002:int",{kind:"scalar",resolve:FTt,construct:$Tt,predicate:MTt,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),NTt=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function LTt(e){return!(e===null||!NTt.test(e)||e[e.length-1]==="_")}function ITt(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var BTt=/^[-+]?[0-9]+e/;function RTt(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(yi.isNegativeZero(e))return"-0.0";return n=e.toString(10),BTt.test(n)?n.replace("e",".e"):n}function PTt(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||yi.isNegativeZero(e))}var jTt=new oi("tag:yaml.org,2002:float",{kind:"scalar",resolve:LTt,construct:ITt,predicate:PTt,represent:RTt,defaultStyle:"lowercase"}),VTt=cZ.extend({implicit:[xTt,ETt,OTt,jTt]}),qTt=VTt,uZ=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),dZ=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function HTt(e){return e===null?!1:uZ.exec(e)!==null||dZ.exec(e)!==null}function UTt(e){var t,n,r,i,a,o,s,l=0,c=null,u,f,h;if(t=uZ.exec(e),t===null&&(t=dZ.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(a=+t[4],o=+t[5],s=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(u=+t[10],f=+(t[11]||0),c=(u*60+f)*6e4,t[9]==="-"&&(c=-c)),h=new Date(Date.UTC(n,r,i,a,o,s,l)),c&&h.setTime(h.getTime()-c),h}function WTt(e){return e.toISOString()}var GTt=new oi("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:HTt,construct:UTt,instanceOf:Date,represent:WTt});function KTt(e){return e==="<<"||e===null}var YTt=new oi("tag:yaml.org,2002:merge",{kind:"scalar",resolve:KTt}),sE=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;function ZTt(e){if(e===null)return!1;var t,n,r=0,i=e.length,a=sE;for(n=0;n<i;n++)if(t=a.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8===0}function XTt(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,a=sE,o=0,s=[];for(t=0;t<i;t++)t%4===0&&t&&(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|a.indexOf(r.charAt(t));return n=i%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function JTt(e){var t="",n=0,r,i,a=e.length,o=sE;for(r=0;r<a;r++)r%3===0&&r&&(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return i=a%3,i===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):i===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):i===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function QTt(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var eAt=new oi("tag:yaml.org,2002:binary",{kind:"scalar",resolve:ZTt,construct:XTt,predicate:QTt,represent:JTt}),tAt=Object.prototype.hasOwnProperty,nAt=Object.prototype.toString;function rAt(e){if(e===null)return!0;var t=[],n,r,i,a,o,s=e;for(n=0,r=s.length;n<r;n+=1){if(i=s[n],o=!1,nAt.call(i)!=="[object Object]")return!1;for(a in i)if(tAt.call(i,a))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(a)===-1)t.push(a);else return!1}return!0}function iAt(e){return e!==null?e:[]}var aAt=new oi("tag:yaml.org,2002:omap",{kind:"sequence",resolve:rAt,construct:iAt}),oAt=Object.prototype.toString;function sAt(e){if(e===null)return!0;var t,n,r,i,a,o=e;for(a=new Array(o.length),t=0,n=o.length;t<n;t+=1){if(r=o[t],oAt.call(r)!=="[object Object]"||(i=Object.keys(r),i.length!==1))return!1;a[t]=[i[0],r[i[0]]]}return!0}function lAt(e){if(e===null)return[];var t,n,r,i,a,o=e;for(a=new Array(o.length),t=0,n=o.length;t<n;t+=1)r=o[t],i=Object.keys(r),a[t]=[i[0],r[i[0]]];return a}var cAt=new oi("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:sAt,construct:lAt}),uAt=Object.prototype.hasOwnProperty;function dAt(e){if(e===null)return!0;var t,n=e;for(t in n)if(uAt.call(n,t)&&n[t]!==null)return!1;return!0}function fAt(e){return e!==null?e:{}}var hAt=new oi("tag:yaml.org,2002:set",{kind:"mapping",resolve:dAt,construct:fAt}),pAt=qTt.extend({implicit:[GTt,YTt],explicit:[eAt,aAt,cAt,hAt]}),_u=Object.prototype.hasOwnProperty,zw=1,fZ=2,hZ=3,Fw=4,E5=1,mAt=2,OI=3,gAt=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,yAt=/[\x85\u2028\u2029]/,_At=/[,\[\]\{\}]/,pZ=/^(?:!|!!|![a-z\-]+!)$/i,mZ=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function NI(e){return Object.prototype.toString.call(e)}function $s(e){return e===10||e===13}function Bd(e){return e===9||e===32}function qi(e){return e===9||e===32||e===10||e===13}function Eh(e){return e===44||e===91||e===93||e===123||e===125}function bAt(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function kAt(e){return e===120?2:e===117?4:e===85?8:0}function wAt(e){return 48<=e&&e<=57?e-48:-1}function LI(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?` +`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function vAt(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var gZ=new Array(256),yZ=new Array(256);for(var Wf=0;Wf<256;Wf++)gZ[Wf]=LI(Wf)?1:0,yZ[Wf]=LI(Wf);function xAt(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||pAt,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function _Z(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=uTt(n),new xl(t,n)}function ht(e,t){throw _Z(e,t)}function $w(e,t){e.onWarning&&e.onWarning.call(null,_Z(e,t))}var II={YAML:function(t,n,r){var i,a,o;t.version!==null&&ht(t,"duplication of %YAML directive"),r.length!==1&&ht(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&ht(t,"ill-formed argument of the YAML directive"),a=parseInt(i[1],10),o=parseInt(i[2],10),a!==1&&ht(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&$w(t,"unsupported YAML version of the document")},TAG:function(t,n,r){var i,a;r.length!==2&&ht(t,"TAG directive accepts exactly two arguments"),i=r[0],a=r[1],pZ.test(i)||ht(t,"ill-formed tag handle (first argument) of the TAG directive"),_u.call(t.tagMap,i)&&ht(t,'there is a previously declared suffix for "'+i+'" tag handle'),mZ.test(a)||ht(t,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{ht(t,"tag prefix is malformed: "+a)}t.tagMap[i]=a}};function su(e,t,n,r){var i,a,o,s;if(t<n){if(s=e.input.slice(t,n),r)for(i=0,a=s.length;i<a;i+=1)o=s.charCodeAt(i),o===9||32<=o&&o<=1114111||ht(e,"expected valid JSON character");else gAt.test(s)&&ht(e,"the stream contains non-printable characters");e.result+=s}}function BI(e,t,n,r){var i,a,o,s;for(yi.isObject(n)||ht(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),o=0,s=i.length;o<s;o+=1)a=i[o],_u.call(t,a)||(t[a]=n[a],r[a]=!0)}function Th(e,t,n,r,i,a,o,s,l){var c,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,u=i.length;c<u;c+=1)Array.isArray(i[c])&&ht(e,"nested arrays are not supported inside keys"),typeof i=="object"&&NI(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&NI(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(a))for(c=0,u=a.length;c<u;c+=1)BI(e,t,a[c],n);else BI(e,t,a,n);else!e.json&&!_u.call(n,i)&&_u.call(t,i)&&(e.line=o||e.line,e.lineStart=s||e.lineStart,e.position=l||e.position,ht(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:a}):t[i]=a,delete n[i];return t}function lE(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):ht(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function gr(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Bd(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if($s(i))for(lE(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&$w(e,"deficient indentation"),r}function I2(e){var t=e.position,n;return n=e.input.charCodeAt(t),!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||qi(n)))}function cE(e,t){t===1?e.result+=" ":t>1&&(e.result+=yi.repeat(` +`,t-1))}function CAt(e,t,n){var r,i,a,o,s,l,c,u,f=e.kind,h=e.result,m;if(m=e.input.charCodeAt(e.position),qi(m)||Eh(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(i=e.input.charCodeAt(e.position+1),qi(i)||n&&Eh(i)))return!1;for(e.kind="scalar",e.result="",a=o=e.position,s=!1;m!==0;){if(m===58){if(i=e.input.charCodeAt(e.position+1),qi(i)||n&&Eh(i))break}else if(m===35){if(r=e.input.charCodeAt(e.position-1),qi(r))break}else{if(e.position===e.lineStart&&I2(e)||n&&Eh(m))break;if($s(m))if(l=e.line,c=e.lineStart,u=e.lineIndent,gr(e,!1,-1),e.lineIndent>=t){s=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=l,e.lineStart=c,e.lineIndent=u;break}}s&&(su(e,a,o,!1),cE(e,e.line-l),a=o=e.position,s=!1),Bd(m)||(o=e.position+1),m=e.input.charCodeAt(++e.position)}return su(e,a,o,!1),e.result?!0:(e.kind=f,e.result=h,!1)}function SAt(e,t){var n,r,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(su(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,i=e.position;else return!0;else $s(n)?(su(e,r,i,!0),cE(e,gr(e,!1,t)),r=i=e.position):e.position===e.lineStart&&I2(e)?ht(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);ht(e,"unexpected end of the stream within a single quoted scalar")}function DAt(e,t){var n,r,i,a,o,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return su(e,n,e.position,!0),e.position++,!0;if(s===92){if(su(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),$s(s))gr(e,!1,t);else if(s<256&&gZ[s])e.result+=yZ[s],e.position++;else if((o=kAt(s))>0){for(i=o,a=0;i>0;i--)s=e.input.charCodeAt(++e.position),(o=bAt(s))>=0?a=(a<<4)+o:ht(e,"expected hexadecimal character");e.result+=vAt(a),e.position++}else ht(e,"unknown escape sequence");n=r=e.position}else $s(s)?(su(e,n,r,!0),cE(e,gr(e,!1,t)),n=r=e.position):e.position===e.lineStart&&I2(e)?ht(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}ht(e,"unexpected end of the stream within a double quoted scalar")}function EAt(e,t){var n=!0,r,i,a,o=e.tag,s,l=e.anchor,c,u,f,h,m,g=Object.create(null),b,C,w,k;if(k=e.input.charCodeAt(e.position),k===91)u=93,m=!1,s=[];else if(k===123)u=125,m=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),k=e.input.charCodeAt(++e.position);k!==0;){if(gr(e,!0,t),k=e.input.charCodeAt(e.position),k===u)return e.position++,e.tag=o,e.anchor=l,e.kind=m?"mapping":"sequence",e.result=s,!0;n?k===44&&ht(e,"expected the node content, but found ','"):ht(e,"missed comma between flow collection entries"),C=b=w=null,f=h=!1,k===63&&(c=e.input.charCodeAt(e.position+1),qi(c)&&(f=h=!0,e.position++,gr(e,!0,t))),r=e.line,i=e.lineStart,a=e.position,Ep(e,t,zw,!1,!0),C=e.tag,b=e.result,gr(e,!0,t),k=e.input.charCodeAt(e.position),(h||e.line===r)&&k===58&&(f=!0,k=e.input.charCodeAt(++e.position),gr(e,!0,t),Ep(e,t,zw,!1,!0),w=e.result),m?Th(e,s,g,C,b,w,r,i,a):f?s.push(Th(e,null,g,C,b,w,r,i,a)):s.push(b),gr(e,!0,t),k=e.input.charCodeAt(e.position),k===44?(n=!0,k=e.input.charCodeAt(++e.position)):n=!1}ht(e,"unexpected end of the stream within a flow collection")}function TAt(e,t){var n,r,i=E5,a=!1,o=!1,s=t,l=0,c=!1,u,f;if(f=e.input.charCodeAt(e.position),f===124)r=!1;else if(f===62)r=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)E5===i?i=f===43?OI:mAt:ht(e,"repeat of a chomping mode identifier");else if((u=wAt(f))>=0)u===0?ht(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?ht(e,"repeat of an indentation width identifier"):(s=t+u-1,o=!0);else break;if(Bd(f)){do f=e.input.charCodeAt(++e.position);while(Bd(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!$s(f)&&f!==0)}for(;f!==0;){for(lE(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!o||e.lineIndent<s)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>s&&(s=e.lineIndent),$s(f)){l++;continue}if(e.lineIndent<s){i===OI?e.result+=yi.repeat(` `,a?1+l:l):i===E5&&a&&(e.result+=` `);break}for(r?Bd(f)?(c=!0,e.result+=yi.repeat(` `,a?1+l:l)):c?(c=!1,e.result+=yi.repeat(` `,l+1)):l===0?a&&(e.result+=" "):e.result+=yi.repeat(` `,l):e.result+=yi.repeat(` -`,a?1+l:l),a=!0,o=!0,l=0,n=e.position;!$s(f)&&f!==0;)f=e.input.charCodeAt(++e.position);su(e,n,e.position,!1)}return!0}function RI(e,t){var n,r=e.tag,i=e.anchor,a=[],o,s=!1,l;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),l=e.input.charCodeAt(e.position);l!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ht(e,"tab characters must not be used in indentation")),!(l!==45||(o=e.input.charCodeAt(e.position+1),!qi(o))));){if(s=!0,e.position++,gr(e,!0,-1)&&e.lineIndent<=t){a.push(null),l=e.input.charCodeAt(e.position);continue}if(n=e.line,Ep(e,t,fZ,!1,!0),a.push(e.result),gr(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&l!==0)ht(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return s?(e.tag=r,e.anchor=i,e.kind="sequence",e.result=a,!0):!1}function TAt(e,t,n){var r,i,a,o,s,l,c=e.tag,u=e.anchor,f={},h=Object.create(null),m=null,g=null,b=null,C=!1,w=!1,k;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=f),k=e.input.charCodeAt(e.position);k!==0;){if(!C&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ht(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),a=e.line,(k===63||k===58)&&qi(r))k===63?(C&&(Th(e,f,h,m,g,null,o,s,l),m=g=b=null),w=!0,C=!0,i=!0):C?(C=!1,i=!0):ht(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,k=r;else{if(o=e.line,s=e.lineStart,l=e.position,!Ep(e,n,dZ,!1,!0))break;if(e.line===a){for(k=e.input.charCodeAt(e.position);Bd(k);)k=e.input.charCodeAt(++e.position);if(k===58)k=e.input.charCodeAt(++e.position),qi(k)||ht(e,"a whitespace character is expected after the key-value separator within a block mapping"),C&&(Th(e,f,h,m,g,null,o,s,l),m=g=b=null),w=!0,C=!1,i=!1,m=e.tag,g=e.result;else if(w)ht(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=u,!0}else if(w)ht(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=u,!0}if((e.line===a||e.lineIndent>t)&&(C&&(o=e.line,s=e.lineStart,l=e.position),Ep(e,t,Fw,!0,i)&&(C?g=e.result:b=e.result),C||(Th(e,f,h,m,g,b,o,s,l),m=g=b=null),gr(e,!0,-1),k=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&k!==0)ht(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return C&&Th(e,f,h,m,g,null,o,s,l),w&&(e.tag=c,e.anchor=u,e.kind="mapping",e.result=f),w}function AAt(e){var t,n=!1,r=!1,i,a,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&ht(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(n=!0,o=e.input.charCodeAt(++e.position)):o===33?(r=!0,i="!!",o=e.input.charCodeAt(++e.position)):i="!",t=e.position,n){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(a=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):ht(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!qi(o);)o===33&&(r?ht(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),hZ.test(i)||ht(e,"named tag handle cannot contain such characters"),r=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);a=e.input.slice(t,e.position),yAt.test(a)&&ht(e,"tag suffix cannot contain flow indicator characters")}a&&!pZ.test(a)&&ht(e,"tag name cannot contain such characters: "+a);try{a=decodeURIComponent(a)}catch{ht(e,"tag name is malformed: "+a)}return n?e.tag=a:_u.call(e.tagMap,i)?e.tag=e.tagMap[i]+a:i==="!"?e.tag="!"+a:i==="!!"?e.tag="tag:yaml.org,2002:"+a:ht(e,'undeclared tag handle "'+i+'"'),!0}function zAt(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&ht(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!qi(n)&&!Eh(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&ht(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function FAt(e){var t,n,r;if(r=e.input.charCodeAt(e.position),r!==42)return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!qi(r)&&!Eh(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&ht(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),_u.call(e.anchorMap,n)||ht(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],gr(e,!0,-1),!0}function Ep(e,t,n,r,i){var a,o,s,l=1,c=!1,u=!1,f,h,m,g,b,C;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=o=s=Fw===n||fZ===n,r&&gr(e,!0,-1)&&(c=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;AAt(e)||zAt(e);)gr(e,!0,-1)?(c=!0,s=a,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):s=!1;if(s&&(s=c||i),(l===1||Fw===n)&&(zw===n||dZ===n?b=t:b=t+1,C=e.position-e.lineStart,l===1?s&&(RI(e,C)||TAt(e,C,b))||DAt(e,b)?u=!0:(o&&EAt(e,b)||CAt(e,b)||SAt(e,b)?u=!0:FAt(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&ht(e,"alias node should not have any properties")):xAt(e,b,zw===n)&&(u=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(u=s&&RI(e,C))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&ht(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,h=e.implicitTypes.length;f<h;f+=1)if(g=e.implicitTypes[f],g.resolve(e.result)){e.result=g.construct(e.result),e.tag=g.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(_u.call(e.typeMap[e.kind||"fallback"],e.tag))g=e.typeMap[e.kind||"fallback"][e.tag];else for(g=null,m=e.typeMap.multi[e.kind||"fallback"],f=0,h=m.length;f<h;f+=1)if(e.tag.slice(0,m[f].tag.length)===m[f].tag){g=m[f];break}g||ht(e,"unknown tag !<"+e.tag+">"),e.result!==null&&g.kind!==e.kind&&ht(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ht(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||u}function $At(e){var t=e.position,n,r,i,a=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(gr(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(a=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!qi(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&ht(e,"directive name must not be less than one character in length");o!==0;){for(;Bd(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!$s(o));break}if($s(o))break;for(n=e.position;o!==0&&!qi(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}o!==0&&lE(e),_u.call(II,r)?II[r](e,r,i):$w(e,'unknown document directive "'+r+'"')}if(gr(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,gr(e,!0,-1)):a&&ht(e,"directives end mark is expected"),Ep(e,e.lineIndent-1,Fw,!1,!0),gr(e,!0,-1),e.checkLineBreaks&&gAt.test(e.input.slice(t,e.position))&&$w(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&I2(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,gr(e,!0,-1));return}if(e.position<e.length-1)ht(e,"end of the stream or a document separator is expected");else return}function _Z(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=` -`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new vAt(e,t),r=e.indexOf("\0");for(r!==-1&&(n.position=r,ht(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)$At(n);return n.documents}function MAt(e,t,n){t!==null&&typeof t=="object"&&typeof n>"u"&&(n=t,t=null);var r=_Z(e,n);if(typeof t!="function")return r;for(var i=0,a=r.length;i<a;i+=1)t(r[i])}function OAt(e,t){var n=_Z(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new xl("expected a single document in the stream, but found more")}}var NAt=MAt,LAt=OAt,IAt={loadAll:NAt,load:LAt},BAt=lZ,RAt=IAt.load;const bZ=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s;function PAt(e,t){var n,r;const i=e.match(bZ);if(i){const a=RAt(i[1],{schema:BAt});return a!=null&&a.title&&((n=t.setDiagramTitle)==null||n.call(t,a.title)),a!=null&&a.displayMode&&((r=t.setDisplayMode)==null||r.call(t,a.displayMode)),e.slice(i[0].length)}else return e}const O7=function(e,t,n){const{depth:r,clobber:i}=Object.assign({depth:2,clobber:!1},n);return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(a=>O7(e,a,n)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(a=>{e.includes(a)||e.push(a)}),e):e===void 0||r<=0?e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t:(t!==void 0&&typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(a=>{typeof t[a]=="object"&&(e[a]===void 0||typeof e[a]=="object")?(e[a]===void 0&&(e[a]=Array.isArray(t[a])?[]:{}),e[a]=O7(e[a],t[a],{depth:r-1,clobber:i})):(i||typeof e[a]!="object"&&typeof t[a]!="object")&&(e[a]=t[a])}),e)},ii=O7,Rg=Object.freeze(ZEt);let Ii=ii({},Rg),kZ,Tp=[],Um=ii({},Rg);const B2=(e,t)=>{let n=ii({},e),r={};for(const i of t)vZ(i),r=ii(r,i);if(n=ii(n,r),r.theme&&r.theme in Ol){const i=ii({},kZ),a=ii(i.themeVariables||{},r.themeVariables);n.theme&&n.theme in Ol&&(n.themeVariables=Ol[n.theme].getThemeVariables(a))}return Um=n,SZ(Um),Um},jAt=e=>(Ii=ii({},Rg),Ii=ii(Ii,e),e.theme&&Ol[e.theme]&&(Ii.themeVariables=Ol[e.theme].getThemeVariables(e.themeVariables)),B2(Ii,Tp),Ii),VAt=e=>{kZ=ii({},e)},qAt=e=>(Ii=ii(Ii,e),B2(Ii,Tp),Ii),wZ=()=>ii({},Ii),HAt=e=>(SZ(e),ii(Um,e),Ql()),Ql=()=>ii({},Um),vZ=e=>{["secure",...Ii.secure??[]].forEach(t=>{e[t]!==void 0&&(Qe.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.indexOf("__")===0&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&vZ(e[t])})},xZ=e=>{e.fontFamily&&(e.themeVariables?e.themeVariables.fontFamily||(e.themeVariables={fontFamily:e.fontFamily}):e.themeVariables={fontFamily:e.fontFamily}),Tp.push(e),B2(Ii,Tp)},Mw=(e=Ii)=>{Tp=[],B2(e,Tp)};var CZ=(e=>(e.LAZY_LOAD_DEPRECATED="The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",e))(CZ||{});const PI={},UAt=e=>{PI[e]||(Qe.warn(CZ[e]),PI[e]=!0)},SZ=e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&UAt("LAZY_LOAD_DEPRECATED")},WAt=function(e,t){for(let n of t)e.attr(n[0],n[1])},GAt=function(e,t,n){let r=new Map;return n?(r.set("width","100%"),r.set("style",`max-width: ${t}px;`)):(r.set("height",e),r.set("width",t)),r},KAt=function(e,t,n,r){const i=GAt(t,n,r);WAt(e,i)},YAt=function(e,t,n,r){const i=t.node().getBBox(),a=i.width,o=i.height;Qe.info(`SVG bounds: ${a}x${o}`,i);let s=0,l=0;Qe.info(`Graph bounds: ${s}x${l}`,e),s=a+n*2,l=o+n*2,Qe.info(`Calculated bounds: ${s}x${l}`),KAt(t,l,s,r);const c=`${i.x-n} ${i.y-n} ${i.width+2*n} ${i.height+2*n}`;t.attr("viewBox",c)},Wb={},ZAt=(e,t,n)=>{let r="";return e in Wb&&Wb[e]?r=Wb[e](n):Qe.warn(`No theme found for ${e}`),` & { +`,a?1+l:l),a=!0,o=!0,l=0,n=e.position;!$s(f)&&f!==0;)f=e.input.charCodeAt(++e.position);su(e,n,e.position,!1)}return!0}function RI(e,t){var n,r=e.tag,i=e.anchor,a=[],o,s=!1,l;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),l=e.input.charCodeAt(e.position);l!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ht(e,"tab characters must not be used in indentation")),!(l!==45||(o=e.input.charCodeAt(e.position+1),!qi(o))));){if(s=!0,e.position++,gr(e,!0,-1)&&e.lineIndent<=t){a.push(null),l=e.input.charCodeAt(e.position);continue}if(n=e.line,Ep(e,t,hZ,!1,!0),a.push(e.result),gr(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&l!==0)ht(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return s?(e.tag=r,e.anchor=i,e.kind="sequence",e.result=a,!0):!1}function AAt(e,t,n){var r,i,a,o,s,l,c=e.tag,u=e.anchor,f={},h=Object.create(null),m=null,g=null,b=null,C=!1,w=!1,k;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=f),k=e.input.charCodeAt(e.position);k!==0;){if(!C&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ht(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),a=e.line,(k===63||k===58)&&qi(r))k===63?(C&&(Th(e,f,h,m,g,null,o,s,l),m=g=b=null),w=!0,C=!0,i=!0):C?(C=!1,i=!0):ht(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,k=r;else{if(o=e.line,s=e.lineStart,l=e.position,!Ep(e,n,fZ,!1,!0))break;if(e.line===a){for(k=e.input.charCodeAt(e.position);Bd(k);)k=e.input.charCodeAt(++e.position);if(k===58)k=e.input.charCodeAt(++e.position),qi(k)||ht(e,"a whitespace character is expected after the key-value separator within a block mapping"),C&&(Th(e,f,h,m,g,null,o,s,l),m=g=b=null),w=!0,C=!1,i=!1,m=e.tag,g=e.result;else if(w)ht(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=u,!0}else if(w)ht(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=u,!0}if((e.line===a||e.lineIndent>t)&&(C&&(o=e.line,s=e.lineStart,l=e.position),Ep(e,t,Fw,!0,i)&&(C?g=e.result:b=e.result),C||(Th(e,f,h,m,g,b,o,s,l),m=g=b=null),gr(e,!0,-1),k=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&k!==0)ht(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return C&&Th(e,f,h,m,g,null,o,s,l),w&&(e.tag=c,e.anchor=u,e.kind="mapping",e.result=f),w}function zAt(e){var t,n=!1,r=!1,i,a,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&ht(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(n=!0,o=e.input.charCodeAt(++e.position)):o===33?(r=!0,i="!!",o=e.input.charCodeAt(++e.position)):i="!",t=e.position,n){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(a=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):ht(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!qi(o);)o===33&&(r?ht(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),pZ.test(i)||ht(e,"named tag handle cannot contain such characters"),r=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);a=e.input.slice(t,e.position),_At.test(a)&&ht(e,"tag suffix cannot contain flow indicator characters")}a&&!mZ.test(a)&&ht(e,"tag name cannot contain such characters: "+a);try{a=decodeURIComponent(a)}catch{ht(e,"tag name is malformed: "+a)}return n?e.tag=a:_u.call(e.tagMap,i)?e.tag=e.tagMap[i]+a:i==="!"?e.tag="!"+a:i==="!!"?e.tag="tag:yaml.org,2002:"+a:ht(e,'undeclared tag handle "'+i+'"'),!0}function FAt(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&ht(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!qi(n)&&!Eh(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&ht(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function $At(e){var t,n,r;if(r=e.input.charCodeAt(e.position),r!==42)return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!qi(r)&&!Eh(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&ht(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),_u.call(e.anchorMap,n)||ht(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],gr(e,!0,-1),!0}function Ep(e,t,n,r,i){var a,o,s,l=1,c=!1,u=!1,f,h,m,g,b,C;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=o=s=Fw===n||hZ===n,r&&gr(e,!0,-1)&&(c=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;zAt(e)||FAt(e);)gr(e,!0,-1)?(c=!0,s=a,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):s=!1;if(s&&(s=c||i),(l===1||Fw===n)&&(zw===n||fZ===n?b=t:b=t+1,C=e.position-e.lineStart,l===1?s&&(RI(e,C)||AAt(e,C,b))||EAt(e,b)?u=!0:(o&&TAt(e,b)||SAt(e,b)||DAt(e,b)?u=!0:$At(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&ht(e,"alias node should not have any properties")):CAt(e,b,zw===n)&&(u=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(u=s&&RI(e,C))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&ht(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,h=e.implicitTypes.length;f<h;f+=1)if(g=e.implicitTypes[f],g.resolve(e.result)){e.result=g.construct(e.result),e.tag=g.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(_u.call(e.typeMap[e.kind||"fallback"],e.tag))g=e.typeMap[e.kind||"fallback"][e.tag];else for(g=null,m=e.typeMap.multi[e.kind||"fallback"],f=0,h=m.length;f<h;f+=1)if(e.tag.slice(0,m[f].tag.length)===m[f].tag){g=m[f];break}g||ht(e,"unknown tag !<"+e.tag+">"),e.result!==null&&g.kind!==e.kind&&ht(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ht(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||u}function MAt(e){var t=e.position,n,r,i,a=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(gr(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(a=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!qi(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&ht(e,"directive name must not be less than one character in length");o!==0;){for(;Bd(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!$s(o));break}if($s(o))break;for(n=e.position;o!==0&&!qi(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}o!==0&&lE(e),_u.call(II,r)?II[r](e,r,i):$w(e,'unknown document directive "'+r+'"')}if(gr(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,gr(e,!0,-1)):a&&ht(e,"directives end mark is expected"),Ep(e,e.lineIndent-1,Fw,!1,!0),gr(e,!0,-1),e.checkLineBreaks&&yAt.test(e.input.slice(t,e.position))&&$w(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&I2(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,gr(e,!0,-1));return}if(e.position<e.length-1)ht(e,"end of the stream or a document separator is expected");else return}function bZ(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=` +`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new xAt(e,t),r=e.indexOf("\0");for(r!==-1&&(n.position=r,ht(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)MAt(n);return n.documents}function OAt(e,t,n){t!==null&&typeof t=="object"&&typeof n>"u"&&(n=t,t=null);var r=bZ(e,n);if(typeof t!="function")return r;for(var i=0,a=r.length;i<a;i+=1)t(r[i])}function NAt(e,t){var n=bZ(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new xl("expected a single document in the stream, but found more")}}var LAt=OAt,IAt=NAt,BAt={loadAll:LAt,load:IAt},RAt=cZ,PAt=BAt.load;const kZ=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s;function jAt(e,t){var n,r;const i=e.match(kZ);if(i){const a=PAt(i[1],{schema:RAt});return a!=null&&a.title&&((n=t.setDiagramTitle)==null||n.call(t,a.title)),a!=null&&a.displayMode&&((r=t.setDisplayMode)==null||r.call(t,a.displayMode)),e.slice(i[0].length)}else return e}const O7=function(e,t,n){const{depth:r,clobber:i}=Object.assign({depth:2,clobber:!1},n);return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(a=>O7(e,a,n)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(a=>{e.includes(a)||e.push(a)}),e):e===void 0||r<=0?e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t:(t!==void 0&&typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(a=>{typeof t[a]=="object"&&(e[a]===void 0||typeof e[a]=="object")?(e[a]===void 0&&(e[a]=Array.isArray(t[a])?[]:{}),e[a]=O7(e[a],t[a],{depth:r-1,clobber:i})):(i||typeof e[a]!="object"&&typeof t[a]!="object")&&(e[a]=t[a])}),e)},ii=O7,Rg=Object.freeze(XEt);let Ii=ii({},Rg),wZ,Tp=[],Um=ii({},Rg);const B2=(e,t)=>{let n=ii({},e),r={};for(const i of t)xZ(i),r=ii(r,i);if(n=ii(n,r),r.theme&&r.theme in Ol){const i=ii({},wZ),a=ii(i.themeVariables||{},r.themeVariables);n.theme&&n.theme in Ol&&(n.themeVariables=Ol[n.theme].getThemeVariables(a))}return Um=n,DZ(Um),Um},VAt=e=>(Ii=ii({},Rg),Ii=ii(Ii,e),e.theme&&Ol[e.theme]&&(Ii.themeVariables=Ol[e.theme].getThemeVariables(e.themeVariables)),B2(Ii,Tp),Ii),qAt=e=>{wZ=ii({},e)},HAt=e=>(Ii=ii(Ii,e),B2(Ii,Tp),Ii),vZ=()=>ii({},Ii),UAt=e=>(DZ(e),ii(Um,e),Ql()),Ql=()=>ii({},Um),xZ=e=>{["secure",...Ii.secure??[]].forEach(t=>{e[t]!==void 0&&(Qe.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.indexOf("__")===0&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&xZ(e[t])})},CZ=e=>{e.fontFamily&&(e.themeVariables?e.themeVariables.fontFamily||(e.themeVariables={fontFamily:e.fontFamily}):e.themeVariables={fontFamily:e.fontFamily}),Tp.push(e),B2(Ii,Tp)},Mw=(e=Ii)=>{Tp=[],B2(e,Tp)};var SZ=(e=>(e.LAZY_LOAD_DEPRECATED="The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",e))(SZ||{});const PI={},WAt=e=>{PI[e]||(Qe.warn(SZ[e]),PI[e]=!0)},DZ=e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&WAt("LAZY_LOAD_DEPRECATED")},GAt=function(e,t){for(let n of t)e.attr(n[0],n[1])},KAt=function(e,t,n){let r=new Map;return n?(r.set("width","100%"),r.set("style",`max-width: ${t}px;`)):(r.set("height",e),r.set("width",t)),r},YAt=function(e,t,n,r){const i=KAt(t,n,r);GAt(e,i)},ZAt=function(e,t,n,r){const i=t.node().getBBox(),a=i.width,o=i.height;Qe.info(`SVG bounds: ${a}x${o}`,i);let s=0,l=0;Qe.info(`Graph bounds: ${s}x${l}`,e),s=a+n*2,l=o+n*2,Qe.info(`Calculated bounds: ${s}x${l}`),YAt(t,l,s,r);const c=`${i.x-n} ${i.y-n} ${i.width+2*n} ${i.height+2*n}`;t.attr("viewBox",c)},Wb={},XAt=(e,t,n)=>{let r="";return e in Wb&&Wb[e]?r=Wb[e](n):Qe.warn(`No theme found for ${e}`),` & { font-family: ${n.fontFamily}; font-size: ${n.fontSize}; fill: ${n.textColor} @@ -667,24 +667,24 @@ l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, ${r} ${t} -`},XAt=(e,t)=>{t!==void 0&&(Wb[e]=t)},JAt=ZAt;let uE="",R2="",dE="";const fE=e=>Ig(e,Ql()),DZ=function(){uE="",dE="",R2=""},EZ=function(e){uE=fE(e).replace(/^\s+/g,"")},TZ=function(){return uE||R2},AZ=function(e){dE=fE(e).replace(/\n\s+/g,` -`)},zZ=function(){return dE},FZ=function(e){R2=fE(e)},$Z=function(){return R2},QAt={getAccTitle:TZ,setAccTitle:EZ,getDiagramTitle:$Z,setDiagramTitle:FZ,getAccDescription:zZ,setAccDescription:AZ,clear:DZ},ezt=Object.freeze(Object.defineProperty({__proto__:null,clear:DZ,default:QAt,getAccDescription:zZ,getAccTitle:TZ,getDiagramTitle:$Z,setAccDescription:AZ,setAccTitle:EZ,setDiagramTitle:FZ},Symbol.toStringTag,{value:"Module"}));let Xu={};const MZ=function(e,t,n,r){Qe.debug("parseDirective is being called",t,n,r);try{if(t!==void 0)switch(t=t.trim(),n){case"open_directive":Xu={};break;case"type_directive":if(!Xu)throw new Error("currentDirective is undefined");Xu.type=t.toLowerCase();break;case"arg_directive":if(!Xu)throw new Error("currentDirective is undefined");Xu.args=JSON.parse(t);break;case"close_directive":tzt(e,Xu,r),Xu=void 0;break}}catch(i){Qe.error(`Error while rendering sequenceDiagram directive: ${t} jison context: ${n}`),Qe.error(i.message)}},tzt=function(e,t,n){switch(Qe.info(`Directive type=${t.type} with args:`,t.args),t.type){case"init":case"initialize":{["config"].forEach(r=>{t.args[r]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),t.args[n]=t.args[r],delete t.args[r])}),Qe.info("sanitize in handleDirective",t.args),zp(t.args),Qe.info("sanitize in handleDirective (done)",t.args),xZ(t.args);break}case"wrap":case"nowrap":e&&e.setWrap&&e.setWrap(t.type==="wrap");break;case"themeCss":Qe.warn("themeCss encountered");break;default:Qe.warn(`Unhandled directive: source: '%%{${t.type}: ${JSON.stringify(t.args?t.args:{})}}%%`,t);break}},nzt=Qe,rzt=aE,OZ=Ql,izt=e=>Ig(e,OZ()),azt=YAt,ozt=()=>ezt,szt=(e,t,n,r)=>MZ(e,t,n,r),Ow={},Nw=(e,t,n)=>{if(Ow[e])throw new Error(`Diagram ${e} already registered.`);Ow[e]=t,n&&IZ(e,n),XAt(e,t.styles),t.injectUtils&&t.injectUtils(nzt,rzt,OZ,izt,azt,ozt(),szt)},hE=e=>{if(e in Ow)return Ow[e];throw new Error(`Diagram ${e} not found.`)};class NZ extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}}const lzt=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,czt=/\s*%%.*\n/gm,Ap={},P2=function(e,t){e=e.replace(bZ,"").replace(lzt,"").replace(czt,` -`);for(const[n,{detector:r}]of Object.entries(Ap))if(r(e,t))return n;throw new NZ(`No diagram type detected matching given configuration for text: ${e}`)},LZ=(...e)=>{for(const{id:t,detector:n,loader:r}of e)IZ(t,n,r)},uzt=async()=>{Qe.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(Ap).map(async([n,{detector:r,loader:i}])=>{if(i)try{hE(n)}catch{try{const{diagram:o,id:s}=await i();Nw(s,o,r)}catch(o){throw Qe.error(`Failed to load external diagram with key ${n}. Removing from detectors.`),delete Ap[n],o}}}))).filter(n=>n.status==="rejected");if(t.length>0){Qe.error(`Failed to load ${t.length} external diagrams`);for(const n of t)Qe.error(n);throw new Error(`Failed to load ${t.length} external diagrams`)}},IZ=(e,t,n)=>{Ap[e]?Qe.error(`Detector with key ${e} already exists`):Ap[e]={detector:t,loader:n},Qe.debug(`Detector with key ${e} added${n?" with loader":""}`)},dzt=e=>Ap[e].loader,fzt="​",hzt={curveBasis:qCt,curveBasisClosed:HCt,curveBasisOpen:UCt,curveBumpX:jCt,curveBumpY:VCt,curveBundle:WCt,curveCardinalClosed:KCt,curveCardinalOpen:YCt,curveCardinal:GCt,curveCatmullRomClosed:XCt,curveCatmullRomOpen:JCt,curveCatmullRom:ZCt,curveLinear:PCt,curveLinearClosed:QCt,curveMonotoneX:eSt,curveMonotoneY:tSt,curveNatural:nSt,curveStep:rSt,curveStepAfter:aSt,curveStepBefore:iSt},T5=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,pzt=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,mzt=function(e,t){const n=BZ(e,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(n)){const i=n.map(a=>a.args);zp(i),r=ii(r,[...i])}else r=n.args;if(r){let i=P2(e,t);["config"].forEach(a=>{r[a]!==void 0&&(i==="flowchart-v2"&&(i="flowchart"),r[i]=r[a],delete r[a])})}return r},BZ=function(e,t=null){try{const n=new RegExp(`[%]{2}(?![{]${pzt.source})(?=[}][%]{2}).* +`},JAt=(e,t)=>{t!==void 0&&(Wb[e]=t)},QAt=XAt;let uE="",R2="",dE="";const fE=e=>Ig(e,Ql()),EZ=function(){uE="",dE="",R2=""},TZ=function(e){uE=fE(e).replace(/^\s+/g,"")},AZ=function(){return uE||R2},zZ=function(e){dE=fE(e).replace(/\n\s+/g,` +`)},FZ=function(){return dE},$Z=function(e){R2=fE(e)},MZ=function(){return R2},ezt={getAccTitle:AZ,setAccTitle:TZ,getDiagramTitle:MZ,setDiagramTitle:$Z,getAccDescription:FZ,setAccDescription:zZ,clear:EZ},tzt=Object.freeze(Object.defineProperty({__proto__:null,clear:EZ,default:ezt,getAccDescription:FZ,getAccTitle:AZ,getDiagramTitle:MZ,setAccDescription:zZ,setAccTitle:TZ,setDiagramTitle:$Z},Symbol.toStringTag,{value:"Module"}));let Xu={};const OZ=function(e,t,n,r){Qe.debug("parseDirective is being called",t,n,r);try{if(t!==void 0)switch(t=t.trim(),n){case"open_directive":Xu={};break;case"type_directive":if(!Xu)throw new Error("currentDirective is undefined");Xu.type=t.toLowerCase();break;case"arg_directive":if(!Xu)throw new Error("currentDirective is undefined");Xu.args=JSON.parse(t);break;case"close_directive":nzt(e,Xu,r),Xu=void 0;break}}catch(i){Qe.error(`Error while rendering sequenceDiagram directive: ${t} jison context: ${n}`),Qe.error(i.message)}},nzt=function(e,t,n){switch(Qe.info(`Directive type=${t.type} with args:`,t.args),t.type){case"init":case"initialize":{["config"].forEach(r=>{t.args[r]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),t.args[n]=t.args[r],delete t.args[r])}),Qe.info("sanitize in handleDirective",t.args),zp(t.args),Qe.info("sanitize in handleDirective (done)",t.args),CZ(t.args);break}case"wrap":case"nowrap":e&&e.setWrap&&e.setWrap(t.type==="wrap");break;case"themeCss":Qe.warn("themeCss encountered");break;default:Qe.warn(`Unhandled directive: source: '%%{${t.type}: ${JSON.stringify(t.args?t.args:{})}}%%`,t);break}},rzt=Qe,izt=aE,NZ=Ql,azt=e=>Ig(e,NZ()),ozt=ZAt,szt=()=>tzt,lzt=(e,t,n,r)=>OZ(e,t,n,r),Ow={},Nw=(e,t,n)=>{if(Ow[e])throw new Error(`Diagram ${e} already registered.`);Ow[e]=t,n&&BZ(e,n),JAt(e,t.styles),t.injectUtils&&t.injectUtils(rzt,izt,NZ,azt,ozt,szt(),lzt)},hE=e=>{if(e in Ow)return Ow[e];throw new Error(`Diagram ${e} not found.`)};class LZ extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}}const czt=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,uzt=/\s*%%.*\n/gm,Ap={},P2=function(e,t){e=e.replace(kZ,"").replace(czt,"").replace(uzt,` +`);for(const[n,{detector:r}]of Object.entries(Ap))if(r(e,t))return n;throw new LZ(`No diagram type detected matching given configuration for text: ${e}`)},IZ=(...e)=>{for(const{id:t,detector:n,loader:r}of e)BZ(t,n,r)},dzt=async()=>{Qe.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(Ap).map(async([n,{detector:r,loader:i}])=>{if(i)try{hE(n)}catch{try{const{diagram:o,id:s}=await i();Nw(s,o,r)}catch(o){throw Qe.error(`Failed to load external diagram with key ${n}. Removing from detectors.`),delete Ap[n],o}}}))).filter(n=>n.status==="rejected");if(t.length>0){Qe.error(`Failed to load ${t.length} external diagrams`);for(const n of t)Qe.error(n);throw new Error(`Failed to load ${t.length} external diagrams`)}},BZ=(e,t,n)=>{Ap[e]?Qe.error(`Detector with key ${e} already exists`):Ap[e]={detector:t,loader:n},Qe.debug(`Detector with key ${e} added${n?" with loader":""}`)},fzt=e=>Ap[e].loader,hzt="​",pzt={curveBasis:HCt,curveBasisClosed:UCt,curveBasisOpen:WCt,curveBumpX:VCt,curveBumpY:qCt,curveBundle:GCt,curveCardinalClosed:YCt,curveCardinalOpen:ZCt,curveCardinal:KCt,curveCatmullRomClosed:JCt,curveCatmullRomOpen:QCt,curveCatmullRom:XCt,curveLinear:jCt,curveLinearClosed:eSt,curveMonotoneX:tSt,curveMonotoneY:nSt,curveNatural:rSt,curveStep:iSt,curveStepAfter:oSt,curveStepBefore:aSt},T5=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,mzt=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,gzt=function(e,t){const n=RZ(e,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(n)){const i=n.map(a=>a.args);zp(i),r=ii(r,[...i])}else r=n.args;if(r){let i=P2(e,t);["config"].forEach(a=>{r[a]!==void 0&&(i==="flowchart-v2"&&(i="flowchart"),r[i]=r[a],delete r[a])})}return r},RZ=function(e,t=null){try{const n=new RegExp(`[%]{2}(?![{]${mzt.source})(?=[}][%]{2}).* `,"ig");e=e.trim().replace(n,"").replace(/'/gm,'"'),Qe.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let r;const i=[];for(;(r=T5.exec(e))!==null;)if(r.index===T5.lastIndex&&T5.lastIndex++,r&&!t||t&&r[1]&&r[1].match(t)||t&&r[2]&&r[2].match(t)){const a=r[1]?r[1]:r[2],o=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;i.push({type:a,args:o})}return i.length===0&&i.push({type:e,args:null}),i.length===1?i[0]:i}catch(n){return Qe.error(`ERROR: ${n.message} - Unable to parse directive - ${t!==null?" type:"+t:""} based on the text:${e}`),{type:null,args:null}}},gzt=function(e,t){for(const[n,r]of t.entries())if(r.match(e))return n;return-1};function yzt(e,t){if(!e)return t;const n=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return hzt[n]||t}function _zt(e,t){const n=e.trim();if(n)return t.securityLevel!=="loose"?YK(n):n}const bzt=(e,...t)=>{const n=e.split("."),r=n.length-1,i=n[r];let a=window;for(let o=0;o<r;o++)if(a=a[n[o]],!a)return;a[i](...t)};function Lw(e,t){return e&&t?Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0}function kzt(e){let t,n=0;e.forEach(a=>{n+=Lw(a,t),t=a});let r=n/2,i;return t=void 0,e.forEach(a=>{if(t&&!i){const o=Lw(a,t);if(o<r)r-=o;else{const s=r/o;s<=0&&(i=t),s>=1&&(i={x:a.x,y:a.y}),s>0&&s<1&&(i={x:(1-s)*t.x+s*a.x,y:(1-s)*t.y+s*a.y})}}t=a}),i}function wzt(e){return e.length===1?e[0]:kzt(e)}const vzt=(e,t,n)=>{let r;Qe.info(`our points ${JSON.stringify(t)}`),t[0]!==n&&(t=t.reverse());let a=25,o;r=void 0,t.forEach(u=>{if(r&&!o){const f=Lw(u,r);if(f<a)a-=f;else{const h=a/f;h<=0&&(o=r),h>=1&&(o={x:u.x,y:u.y}),h>0&&h<1&&(o={x:(1-h)*r.x+h*u.x,y:(1-h)*r.y+h*u.y})}}r=u});const s=e?10:5,l=Math.atan2(t[0].y-o.y,t[0].x-o.x),c={x:0,y:0};return c.x=Math.sin(l)*s+(t[0].x+o.x)/2,c.y=-Math.cos(l)*s+(t[0].y+o.y)/2,c};function xzt(e,t,n){let r=JSON.parse(JSON.stringify(n)),i;Qe.info("our points",r),t!=="start_left"&&t!=="start_right"&&(r=r.reverse()),r.forEach(f=>{i=f});let o=25+e,s;i=void 0,r.forEach(f=>{if(i&&!s){const h=Lw(f,i);if(h<o)o-=h;else{const m=o/h;m<=0&&(s=i),m>=1&&(s={x:f.x,y:f.y}),m>0&&m<1&&(s={x:(1-m)*i.x+m*f.x,y:(1-m)*i.y+m*f.y})}}i=f});const l=10+e*.5,c=Math.atan2(r[0].y-s.y,r[0].x-s.x),u={x:0,y:0};return u.x=Math.sin(c)*l+(r[0].x+s.x)/2,u.y=-Math.cos(c)*l+(r[0].y+s.y)/2,t==="start_left"&&(u.x=Math.sin(c+Math.PI)*l+(r[0].x+s.x)/2,u.y=-Math.cos(c+Math.PI)*l+(r[0].y+s.y)/2),t==="end_right"&&(u.x=Math.sin(c-Math.PI)*l+(r[0].x+s.x)/2-5,u.y=-Math.cos(c-Math.PI)*l+(r[0].y+s.y)/2-5),t==="end_left"&&(u.x=Math.sin(c)*l+(r[0].x+s.x)/2-5,u.y=-Math.cos(c)*l+(r[0].y+s.y)/2-5),u}function Czt(e){let t="",n="";for(const r of e)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?n=n+r+";":t=t+r+";");return{style:t,labelStyle:n}}let jI=0;const Szt=()=>(jI++,"id-"+Math.random().toString(36).substr(2,12)+"-"+jI);function Dzt(e){let t="";const n="0123456789abcdef",r=n.length;for(let i=0;i<e;i++)t+=n.charAt(Math.floor(Math.random()*r));return t}const Ezt=e=>Dzt(e.length),Tzt=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0}},Azt=function(e,t){const n=t.text.replace(oE.lineBreakRegex," "),[,r]=mE(t.fontSize),i=e.append("text");i.attr("x",t.x),i.attr("y",t.y),i.style("text-anchor",t.anchor),i.style("font-family",t.fontFamily),i.style("font-size",r),i.style("font-weight",t.fontWeight),i.attr("fill",t.fill),t.class!==void 0&&i.attr("class",t.class);const a=i.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.attr("fill",t.fill),a.text(n),i},zzt=F1((e,t,n)=>{if(!e||(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},n),oE.lineBreakRegex.test(e)))return e;const r=e.split(" "),i=[];let a="";return r.forEach((o,s)=>{const l=Iw(`${o} `,n),c=Iw(a,n);if(l>t){const{hyphenatedStrings:h,remainingWord:m}=Fzt(o,t,"-",n);i.push(a,...h),a=m}else c+l>=t?(i.push(a),a=o):a=[a,o].filter(Boolean).join(" ");s+1===r.length&&i.push(a)}),i.filter(o=>o!=="").join(n.joinWith)},(e,t,n)=>`${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`),Fzt=F1((e,t,n="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const i=[...e],a=[];let o="";return i.forEach((s,l)=>{const c=`${o}${s}`;if(Iw(c,r)>=t){const f=l+1,h=i.length===f,m=`${c}${n}`;a.push(h?c:m),o=""}else o=c}),{hyphenatedStrings:a,remainingWord:o}},(e,t,n="-",r)=>`${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function $zt(e,t){return t=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},t),pE(e,t).height}function Iw(e,t){return t=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},t),pE(e,t).width}const pE=F1((e,t)=>{t=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},t);const{fontSize:n,fontFamily:r,fontWeight:i}=t;if(!e)return{width:0,height:0};const[,a]=mE(n),o=["sans-serif",r],s=e.split(oE.lineBreakRegex),l=[],c=ms("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const u=c.append("svg");for(const h of o){let m=0;const g={width:0,height:0,lineHeight:0};for(const b of s){const C=Tzt();C.text=b||fzt;const w=Azt(u,C).style("font-size",a).style("font-weight",i).style("font-family",h),k=(w._groups||w)[0][0].getBBox();if(k.width===0&&k.height===0)throw new Error("svg element not in render tree");g.width=Math.round(Math.max(g.width,k.width)),m=Math.round(k.height),g.height+=m,g.lineHeight=Math.round(Math.max(g.lineHeight,m))}l.push(g)}u.remove();const f=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[f]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),Mzt=class{constructor(t,n){this.deterministic=t,this.seed=n,this.count=n?n.length:0}next(){return this.deterministic?this.count++:Date.now()}};let E_;const Ozt=function(e){return E_=E_||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),E_.innerHTML=e,unescape(E_.textContent)},zp=e=>{if(Qe.debug("directiveSanitizer called with",e),typeof e=="object"&&(e.length?e.forEach(t=>zp(t)):Object.keys(e).forEach(t=>{Qe.debug("Checking key",t),t.startsWith("__")&&(Qe.debug("sanitize deleting __ option",t),delete e[t]),t.includes("proto")&&(Qe.debug("sanitize deleting proto option",t),delete e[t]),t.includes("constr")&&(Qe.debug("sanitize deleting constr option",t),delete e[t]),t.includes("themeCSS")&&(Qe.debug("sanitizing themeCss option"),e[t]=Gb(e[t])),t.includes("fontFamily")&&(Qe.debug("sanitizing fontFamily option"),e[t]=Gb(e[t])),t.includes("altFontFamily")&&(Qe.debug("sanitizing altFontFamily option"),e[t]=Gb(e[t])),YEt.includes(t)?typeof e[t]=="object"&&(Qe.debug("sanitize deleting object",t),zp(e[t])):(Qe.debug("sanitize deleting option",t),delete e[t])})),e.themeVariables){const t=Object.keys(e.themeVariables);for(const n of t){const r=e.themeVariables[n];r&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[n]="")}}Qe.debug("After sanitization",e)},Gb=e=>{let t=0,n=0;for(const r of e){if(t<n)return"{ /* ERROR: Unbalanced CSS */ }";r==="{"?t++:r==="}"&&n++}return t!==n?"{ /* ERROR: Unbalanced CSS */ }":e};function RZ(e){return"str"in e}function Nzt(e){return e instanceof Error?e.message:String(e)}const Lzt=(e,t,n,r)=>{if(!r)return;const i=e.node().getBBox();e.append("text").text(r).attr("x",i.x+i.width/2).attr("y",-n).attr("class",t)},mE=e=>{if(typeof e=="number")return[e,e+"px"];const t=parseInt(e,10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},Kb={assignWithDepth:ii,wrapLabel:zzt,calculateTextHeight:$zt,calculateTextWidth:Iw,calculateTextDimensions:pE,detectInit:mzt,detectDirective:BZ,isSubstringInArray:gzt,interpolateToCurve:yzt,calcLabelPosition:wzt,calcCardinalityPosition:vzt,calcTerminalLabelPosition:xzt,formatUrl:_zt,getStylesFromArray:Czt,generateId:Szt,random:Ezt,runFunc:bzt,entityDecode:Ozt,initIdGenerator:Mzt,directiveSanitizer:zp,sanitizeCss:Gb,insertTitle:Lzt,parseFontSize:mE},VI="10.2.4",PZ="c4",Izt=e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),Bzt=async()=>{const{diagram:e}=await Er(()=>import("./c4Diagram-73a25429-279f24bf.js"),["assets/c4Diagram-73a25429-279f24bf.js","assets/svgDrawCommon-f26cad39-39fd75a0.js"]);return{id:PZ,diagram:e}},Rzt={id:PZ,detector:Izt,loader:Bzt},Pzt=Rzt,jZ="flowchart",jzt=(e,t)=>{var n,r;return((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"||((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},Vzt=async()=>{const{diagram:e}=await Er(()=>import("./flowDiagram-b66fcae9-b78fa919.js"),["assets/flowDiagram-b66fcae9-b78fa919.js","assets/flowDb-9e6c6aac-a25cd141.js","assets/layout-15168dd5.js","assets/styles-7882abfe-cae0a94a.js","assets/index-1e7f2254-829de93b.js","assets/edges-66ea8538-e5136c41.js","assets/createText-a49d2d2a-a6165332.js","assets/svgDraw-95adee0a-796bbfe8.js","assets/line-bade02ca.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js","assets/selectAll-73b48e14.js"]);return{id:jZ,diagram:e}},qzt={id:jZ,detector:jzt,loader:Vzt},Hzt=qzt,VZ="flowchart-v2",Uzt=(e,t)=>{var n,r,i;return((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="dagre-d3"||((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)&&((i=t==null?void 0:t.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e)},Wzt=async()=>{const{diagram:e}=await Er(()=>import("./flowDiagram-v2-fe64f300-2cc25d5b.js"),["assets/flowDiagram-v2-fe64f300-2cc25d5b.js","assets/flowDb-9e6c6aac-a25cd141.js","assets/styles-7882abfe-cae0a94a.js","assets/layout-15168dd5.js","assets/index-1e7f2254-829de93b.js","assets/edges-66ea8538-e5136c41.js","assets/createText-a49d2d2a-a6165332.js","assets/svgDraw-95adee0a-796bbfe8.js","assets/line-bade02ca.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js","assets/selectAll-73b48e14.js"]);return{id:VZ,diagram:e}},Gzt={id:VZ,detector:Uzt,loader:Wzt},Kzt=Gzt,qZ="er",Yzt=e=>/^\s*erDiagram/.test(e),Zzt=async()=>{const{diagram:e}=await Er(()=>import("./erDiagram-731c3598-ee47ceae.js"),["assets/erDiagram-731c3598-ee47ceae.js","assets/layout-15168dd5.js","assets/line-bade02ca.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js"]);return{id:qZ,diagram:e}},Xzt={id:qZ,detector:Yzt,loader:Zzt},Jzt=Xzt,HZ="gitGraph",Qzt=e=>/^\s*gitGraph/.test(e),eFt=async()=>{const{diagram:e}=await Er(()=>import("./gitGraphDiagram-566a7451-cec6c862.js"),[]);return{id:HZ,diagram:e}},tFt={id:HZ,detector:Qzt,loader:eFt},nFt=tFt,UZ="gantt",rFt=e=>/^\s*gantt/.test(e),iFt=async()=>{const{diagram:e}=await Er(()=>import("./ganttDiagram-55b9c28c-831d8c90.js"),["assets/ganttDiagram-55b9c28c-831d8c90.js","assets/linear-21c501a1.js","assets/init-77b53fdd.js"]);return{id:UZ,diagram:e}},aFt={id:UZ,detector:rFt,loader:iFt},oFt=aFt,WZ="info",sFt=e=>/^\s*info/.test(e),lFt=async()=>{const{diagram:e}=await Er(()=>import("./infoDiagram-f43c69c6-0ec89eea.js"),[]);return{id:WZ,diagram:e}},cFt={id:WZ,detector:sFt,loader:lFt},GZ="pie",uFt=e=>/^\s*pie/.test(e),dFt=async()=>{const{diagram:e}=await Er(()=>import("./pieDiagram-c8640b32-9bf366e0.js"),["assets/pieDiagram-c8640b32-9bf366e0.js","assets/init-77b53fdd.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js","assets/arc-12672da3.js"]);return{id:GZ,diagram:e}},fFt={id:GZ,detector:uFt,loader:dFt},hFt=fFt,KZ="quadrantChart",pFt=e=>/^\s*quadrantChart/.test(e),mFt=async()=>{const{diagram:e}=await Er(()=>import("./quadrantDiagram-f7a9076b-df541aaf.js"),["assets/quadrantDiagram-f7a9076b-df541aaf.js","assets/linear-21c501a1.js","assets/init-77b53fdd.js"]);return{id:KZ,diagram:e}},gFt={id:KZ,detector:pFt,loader:mFt},yFt=gFt,YZ="requirement",_Ft=e=>/^\s*requirement(Diagram)?/.test(e),bFt=async()=>{const{diagram:e}=await Er(()=>import("./requirementDiagram-429b9d18-d6b86776.js"),["assets/requirementDiagram-429b9d18-d6b86776.js","assets/layout-15168dd5.js","assets/line-bade02ca.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js"]);return{id:YZ,diagram:e}},kFt={id:YZ,detector:_Ft,loader:bFt},wFt=kFt,ZZ="sequence",vFt=e=>/^\s*sequenceDiagram/.test(e),xFt=async()=>{const{diagram:e}=await Er(()=>import("./sequenceDiagram-9506b40c-1ccc68e8.js"),["assets/sequenceDiagram-9506b40c-1ccc68e8.js","assets/svgDrawCommon-f26cad39-39fd75a0.js","assets/selectAll-73b48e14.js"]);return{id:ZZ,diagram:e}},CFt={id:ZZ,detector:vFt,loader:xFt},SFt=CFt,XZ="class",DFt=(e,t)=>{var n;return((n=t==null?void 0:t.class)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},EFt=async()=>{const{diagram:e}=await Er(()=>import("./classDiagram-d26c05e1-8ff51e1b.js"),["assets/classDiagram-d26c05e1-8ff51e1b.js","assets/styles-a893c203-00f093d8.js","assets/layout-15168dd5.js","assets/svgDraw-95adee0a-796bbfe8.js","assets/line-bade02ca.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js"]);return{id:XZ,diagram:e}},TFt={id:XZ,detector:DFt,loader:EFt},AFt=TFt,JZ="classDiagram",zFt=(e,t)=>{var n;return/^\s*classDiagram/.test(e)&&((n=t==null?void 0:t.class)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},FFt=async()=>{const{diagram:e}=await Er(()=>import("./classDiagram-v2-656fc6c4-a7206bc0.js"),["assets/classDiagram-v2-656fc6c4-a7206bc0.js","assets/styles-a893c203-00f093d8.js","assets/layout-15168dd5.js","assets/index-1e7f2254-829de93b.js","assets/edges-66ea8538-e5136c41.js","assets/createText-a49d2d2a-a6165332.js","assets/svgDraw-95adee0a-796bbfe8.js","assets/line-bade02ca.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js"]);return{id:JZ,diagram:e}},$Ft={id:JZ,detector:zFt,loader:FFt},MFt=$Ft,QZ="state",OFt=(e,t)=>{var n;return((n=t==null?void 0:t.state)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},NFt=async()=>{const{diagram:e}=await Er(()=>import("./stateDiagram-0dc7ce84-2fcd1e17.js"),["assets/stateDiagram-0dc7ce84-2fcd1e17.js","assets/styles-b820c189-b659880f.js","assets/layout-15168dd5.js","assets/line-bade02ca.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js"]);return{id:QZ,diagram:e}},LFt={id:QZ,detector:OFt,loader:NFt},IFt=LFt,eX="stateDiagram",BFt=(e,t)=>{var n;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((n=t==null?void 0:t.state)==null?void 0:n.defaultRenderer)==="dagre-wrapper")},RFt=async()=>{const{diagram:e}=await Er(()=>import("./stateDiagram-v2-e65458cd-bf96709f.js"),["assets/stateDiagram-v2-e65458cd-bf96709f.js","assets/styles-b820c189-b659880f.js","assets/layout-15168dd5.js","assets/index-1e7f2254-829de93b.js","assets/edges-66ea8538-e5136c41.js","assets/createText-a49d2d2a-a6165332.js","assets/svgDraw-95adee0a-796bbfe8.js","assets/line-bade02ca.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js"]);return{id:eX,diagram:e}},PFt={id:eX,detector:BFt,loader:RFt},jFt=PFt,tX="journey",VFt=e=>/^\s*journey/.test(e),qFt=async()=>{const{diagram:e}=await Er(()=>import("./journeyDiagram-4f4351b8-eeb65947.js"),["assets/journeyDiagram-4f4351b8-eeb65947.js","assets/svgDrawCommon-f26cad39-39fd75a0.js","assets/arc-12672da3.js","assets/path-53f90ab3.js"]);return{id:tX,diagram:e}},HFt={id:tX,detector:VFt,loader:qFt},UFt=HFt,WFt=()=>"",GFt=WFt,KFt=function(){},YFt=(e,t,n)=>{try{Qe.debug(`Renering svg for syntax error -`);const r=ms("#"+t),i=r.append("g");i.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),i.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),i.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),i.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),i.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),i.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),i.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+n),r.attr("height",100),r.attr("width",500),r.attr("viewBox","768 0 912 512")}catch(r){Qe.error("Error while rendering info diagram"),Qe.error(Nzt(r))}},nX={setConf:KFt,draw:YFt},ZFt={db:{clear:()=>{}},styles:GFt,renderer:nX,parser:{parser:{yy:{}},parse:()=>{}},init:()=>{}},XFt=ZFt,rX="flowchart-elk",JFt=(e,t)=>{var n;return!!(/^\s*flowchart-elk/.test(e)||/^\s*flowchart|graph/.test(e)&&((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="elk")},QFt=async()=>{const{diagram:e}=await Er(()=>import("./flowchart-elk-definition-ec654d50-054c6404.js"),["assets/flowchart-elk-definition-ec654d50-054c6404.js","assets/flowDb-9e6c6aac-a25cd141.js","assets/edges-66ea8538-e5136c41.js","assets/createText-a49d2d2a-a6165332.js","assets/svgDraw-95adee0a-796bbfe8.js","assets/line-bade02ca.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js"]);return{id:rX,diagram:e}},e$t={id:rX,detector:JFt,loader:QFt},t$t=e$t,iX="timeline",n$t=e=>/^\s*timeline/.test(e),r$t=async()=>{const{diagram:e}=await Er(()=>import("./timeline-definition-46a17596-78fef503.js"),["assets/timeline-definition-46a17596-78fef503.js","assets/arc-12672da3.js","assets/path-53f90ab3.js"]);return{id:iX,diagram:e}},i$t={id:iX,detector:n$t,loader:r$t},a$t=i$t,aX="mindmap",o$t=e=>/^\s*mindmap/.test(e),s$t=async()=>{const{diagram:e}=await Er(()=>import("./mindmap-definition-89ece3a3-4c37e8a6.js"),["assets/mindmap-definition-89ece3a3-4c37e8a6.js","assets/createText-a49d2d2a-a6165332.js"]);return{id:aX,diagram:e}},l$t={id:aX,detector:o$t,loader:s$t},c$t=l$t;let qI=!1;const gE=()=>{qI||(qI=!0,Nw("error",XFt,e=>e.toLowerCase().trim()==="error"),Nw("---",{db:{clear:()=>{}},styles:{},renderer:{},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},e=>e.toLowerCase().trimStart().startsWith("---")),LZ(Pzt,MFt,AFt,Jzt,oFt,cFt,hFt,wFt,SFt,t$t,Kzt,Hzt,c$t,a$t,nFt,jFt,IFt,UFt,yFt))},u$t=e=>e.trimStart().replace(/^\s*%%(?!{)[^\n]+\n?/gm,"");class oX{constructor(t){var n,r;this.text=t,this.type="graph",this.text+=` -`;const i=Ql();try{this.type=P2(t,i)}catch(s){this.type="error",this.detectError=s}const a=hE(this.type);Qe.debug("Type "+this.type),this.db=a.db,(r=(n=this.db).clear)==null||r.call(n),this.renderer=a.renderer,this.parser=a.parser;const o=this.parser.parse.bind(this.parser);this.parser.parse=s=>o(u$t(PAt(s,this.db))),this.parser.parser.yy=this.db,a.init&&(a.init(i),Qe.info("Initialized diagram "+this.type,i)),this.parse()}parse(){var t,n;if(this.detectError)throw this.detectError;(n=(t=this.db).clear)==null||n.call(t),this.parser.parse(this.text)}async render(t,n){await this.renderer.draw(this.text,t,n,this)}getParser(){return this.parser}getType(){return this.type}}const yE=async e=>{const t=P2(e,Ql());try{hE(t)}catch{const r=dzt(t);if(!r)throw new NZ(`Diagram ${t} not found.`);const{id:i,diagram:a}=await r();Nw(i,a)}return new oX(e)};let N7=[];const iLt=e=>{N7.push(e)},d$t=()=>{N7.forEach(e=>{e()}),N7=[]},f$t="graphics-document document";function h$t(e,t){e.attr("role",f$t),Ub(t)||e.attr("aria-roledescription",t)}function p$t(e,t,n,r){if(e.insert!==void 0)if(t||n){if(n){const i="chart-desc-"+r;e.attr("aria-describedby",i),e.insert("desc",":first-child").attr("id",i).text(n)}if(t){const i="chart-title-"+r;e.attr("aria-labelledby",i),e.insert("title",":first-child").attr("id",i).text(t)}}else return}const sX=["graph","flowchart","flowchart-v2","flowchart-elk","stateDiagram","stateDiagram-v2"],m$t=5e4,g$t="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",y$t="sandbox",_$t="loose",b$t="http://www.w3.org/2000/svg",k$t="http://www.w3.org/1999/xlink",w$t="http://www.w3.org/1999/xhtml",v$t="100%",x$t="100%",C$t="border:0;margin:0;",S$t="margin:0",D$t="allow-top-navigation-by-user-activation allow-popups",E$t='The "iframe" tag is not supported by your browser.',T$t=["foreignobject"],A$t=["dominant-baseline"];async function z$t(e,t){gE();try{(await yE(e)).parse()}catch(n){if(t!=null&&t.suppressErrors)return!1;throw n}return!0}const F$t=function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(n){return n.substring(0,n.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(n){return n.substring(0,n.length-1)}),t=t.replace(/#\w+;/g,function(n){const r=n.substring(1,n.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),t},$$t=function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},HI=(e,t,n=[])=>` -.${e} ${t} { ${n.join(" !important; ")} !important; }`,M$t=(e,t,n={})=>{var r;let i="";if(e.themeCSS!==void 0&&(i+=` + ${t!==null?" type:"+t:""} based on the text:${e}`),{type:null,args:null}}},yzt=function(e,t){for(const[n,r]of t.entries())if(r.match(e))return n;return-1};function _zt(e,t){if(!e)return t;const n=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return pzt[n]||t}function bzt(e,t){const n=e.trim();if(n)return t.securityLevel!=="loose"?ZK(n):n}const kzt=(e,...t)=>{const n=e.split("."),r=n.length-1,i=n[r];let a=window;for(let o=0;o<r;o++)if(a=a[n[o]],!a)return;a[i](...t)};function Lw(e,t){return e&&t?Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0}function wzt(e){let t,n=0;e.forEach(a=>{n+=Lw(a,t),t=a});let r=n/2,i;return t=void 0,e.forEach(a=>{if(t&&!i){const o=Lw(a,t);if(o<r)r-=o;else{const s=r/o;s<=0&&(i=t),s>=1&&(i={x:a.x,y:a.y}),s>0&&s<1&&(i={x:(1-s)*t.x+s*a.x,y:(1-s)*t.y+s*a.y})}}t=a}),i}function vzt(e){return e.length===1?e[0]:wzt(e)}const xzt=(e,t,n)=>{let r;Qe.info(`our points ${JSON.stringify(t)}`),t[0]!==n&&(t=t.reverse());let a=25,o;r=void 0,t.forEach(u=>{if(r&&!o){const f=Lw(u,r);if(f<a)a-=f;else{const h=a/f;h<=0&&(o=r),h>=1&&(o={x:u.x,y:u.y}),h>0&&h<1&&(o={x:(1-h)*r.x+h*u.x,y:(1-h)*r.y+h*u.y})}}r=u});const s=e?10:5,l=Math.atan2(t[0].y-o.y,t[0].x-o.x),c={x:0,y:0};return c.x=Math.sin(l)*s+(t[0].x+o.x)/2,c.y=-Math.cos(l)*s+(t[0].y+o.y)/2,c};function Czt(e,t,n){let r=JSON.parse(JSON.stringify(n)),i;Qe.info("our points",r),t!=="start_left"&&t!=="start_right"&&(r=r.reverse()),r.forEach(f=>{i=f});let o=25+e,s;i=void 0,r.forEach(f=>{if(i&&!s){const h=Lw(f,i);if(h<o)o-=h;else{const m=o/h;m<=0&&(s=i),m>=1&&(s={x:f.x,y:f.y}),m>0&&m<1&&(s={x:(1-m)*i.x+m*f.x,y:(1-m)*i.y+m*f.y})}}i=f});const l=10+e*.5,c=Math.atan2(r[0].y-s.y,r[0].x-s.x),u={x:0,y:0};return u.x=Math.sin(c)*l+(r[0].x+s.x)/2,u.y=-Math.cos(c)*l+(r[0].y+s.y)/2,t==="start_left"&&(u.x=Math.sin(c+Math.PI)*l+(r[0].x+s.x)/2,u.y=-Math.cos(c+Math.PI)*l+(r[0].y+s.y)/2),t==="end_right"&&(u.x=Math.sin(c-Math.PI)*l+(r[0].x+s.x)/2-5,u.y=-Math.cos(c-Math.PI)*l+(r[0].y+s.y)/2-5),t==="end_left"&&(u.x=Math.sin(c)*l+(r[0].x+s.x)/2-5,u.y=-Math.cos(c)*l+(r[0].y+s.y)/2-5),u}function Szt(e){let t="",n="";for(const r of e)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?n=n+r+";":t=t+r+";");return{style:t,labelStyle:n}}let jI=0;const Dzt=()=>(jI++,"id-"+Math.random().toString(36).substr(2,12)+"-"+jI);function Ezt(e){let t="";const n="0123456789abcdef",r=n.length;for(let i=0;i<e;i++)t+=n.charAt(Math.floor(Math.random()*r));return t}const Tzt=e=>Ezt(e.length),Azt=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0}},zzt=function(e,t){const n=t.text.replace(oE.lineBreakRegex," "),[,r]=mE(t.fontSize),i=e.append("text");i.attr("x",t.x),i.attr("y",t.y),i.style("text-anchor",t.anchor),i.style("font-family",t.fontFamily),i.style("font-size",r),i.style("font-weight",t.fontWeight),i.attr("fill",t.fill),t.class!==void 0&&i.attr("class",t.class);const a=i.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.attr("fill",t.fill),a.text(n),i},Fzt=F1((e,t,n)=>{if(!e||(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},n),oE.lineBreakRegex.test(e)))return e;const r=e.split(" "),i=[];let a="";return r.forEach((o,s)=>{const l=Iw(`${o} `,n),c=Iw(a,n);if(l>t){const{hyphenatedStrings:h,remainingWord:m}=$zt(o,t,"-",n);i.push(a,...h),a=m}else c+l>=t?(i.push(a),a=o):a=[a,o].filter(Boolean).join(" ");s+1===r.length&&i.push(a)}),i.filter(o=>o!=="").join(n.joinWith)},(e,t,n)=>`${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`),$zt=F1((e,t,n="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const i=[...e],a=[];let o="";return i.forEach((s,l)=>{const c=`${o}${s}`;if(Iw(c,r)>=t){const f=l+1,h=i.length===f,m=`${c}${n}`;a.push(h?c:m),o=""}else o=c}),{hyphenatedStrings:a,remainingWord:o}},(e,t,n="-",r)=>`${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function Mzt(e,t){return t=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},t),pE(e,t).height}function Iw(e,t){return t=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},t),pE(e,t).width}const pE=F1((e,t)=>{t=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},t);const{fontSize:n,fontFamily:r,fontWeight:i}=t;if(!e)return{width:0,height:0};const[,a]=mE(n),o=["sans-serif",r],s=e.split(oE.lineBreakRegex),l=[],c=ms("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const u=c.append("svg");for(const h of o){let m=0;const g={width:0,height:0,lineHeight:0};for(const b of s){const C=Azt();C.text=b||hzt;const w=zzt(u,C).style("font-size",a).style("font-weight",i).style("font-family",h),k=(w._groups||w)[0][0].getBBox();if(k.width===0&&k.height===0)throw new Error("svg element not in render tree");g.width=Math.round(Math.max(g.width,k.width)),m=Math.round(k.height),g.height+=m,g.lineHeight=Math.round(Math.max(g.lineHeight,m))}l.push(g)}u.remove();const f=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[f]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),Ozt=class{constructor(t,n){this.deterministic=t,this.seed=n,this.count=n?n.length:0}next(){return this.deterministic?this.count++:Date.now()}};let E_;const Nzt=function(e){return E_=E_||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),E_.innerHTML=e,unescape(E_.textContent)},zp=e=>{if(Qe.debug("directiveSanitizer called with",e),typeof e=="object"&&(e.length?e.forEach(t=>zp(t)):Object.keys(e).forEach(t=>{Qe.debug("Checking key",t),t.startsWith("__")&&(Qe.debug("sanitize deleting __ option",t),delete e[t]),t.includes("proto")&&(Qe.debug("sanitize deleting proto option",t),delete e[t]),t.includes("constr")&&(Qe.debug("sanitize deleting constr option",t),delete e[t]),t.includes("themeCSS")&&(Qe.debug("sanitizing themeCss option"),e[t]=Gb(e[t])),t.includes("fontFamily")&&(Qe.debug("sanitizing fontFamily option"),e[t]=Gb(e[t])),t.includes("altFontFamily")&&(Qe.debug("sanitizing altFontFamily option"),e[t]=Gb(e[t])),ZEt.includes(t)?typeof e[t]=="object"&&(Qe.debug("sanitize deleting object",t),zp(e[t])):(Qe.debug("sanitize deleting option",t),delete e[t])})),e.themeVariables){const t=Object.keys(e.themeVariables);for(const n of t){const r=e.themeVariables[n];r&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[n]="")}}Qe.debug("After sanitization",e)},Gb=e=>{let t=0,n=0;for(const r of e){if(t<n)return"{ /* ERROR: Unbalanced CSS */ }";r==="{"?t++:r==="}"&&n++}return t!==n?"{ /* ERROR: Unbalanced CSS */ }":e};function PZ(e){return"str"in e}function Lzt(e){return e instanceof Error?e.message:String(e)}const Izt=(e,t,n,r)=>{if(!r)return;const i=e.node().getBBox();e.append("text").text(r).attr("x",i.x+i.width/2).attr("y",-n).attr("class",t)},mE=e=>{if(typeof e=="number")return[e,e+"px"];const t=parseInt(e,10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},Kb={assignWithDepth:ii,wrapLabel:Fzt,calculateTextHeight:Mzt,calculateTextWidth:Iw,calculateTextDimensions:pE,detectInit:gzt,detectDirective:RZ,isSubstringInArray:yzt,interpolateToCurve:_zt,calcLabelPosition:vzt,calcCardinalityPosition:xzt,calcTerminalLabelPosition:Czt,formatUrl:bzt,getStylesFromArray:Szt,generateId:Dzt,random:Tzt,runFunc:kzt,entityDecode:Nzt,initIdGenerator:Ozt,directiveSanitizer:zp,sanitizeCss:Gb,insertTitle:Izt,parseFontSize:mE},VI="10.2.4",jZ="c4",Bzt=e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),Rzt=async()=>{const{diagram:e}=await Er(()=>import("./c4Diagram-73a25429-24fc0fe6.js"),["assets/c4Diagram-73a25429-24fc0fe6.js","assets/svgDrawCommon-f26cad39-ad1bc4a5.js"]);return{id:jZ,diagram:e}},Pzt={id:jZ,detector:Bzt,loader:Rzt},jzt=Pzt,VZ="flowchart",Vzt=(e,t)=>{var n,r;return((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"||((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},qzt=async()=>{const{diagram:e}=await Er(()=>import("./flowDiagram-b66fcae9-34873be9.js"),["assets/flowDiagram-b66fcae9-34873be9.js","assets/flowDb-9e6c6aac-32de2878.js","assets/layout-c97c50ff.js","assets/styles-7882abfe-849890ab.js","assets/index-1e7f2254-a4f10dcc.js","assets/edges-66ea8538-e73fd07f.js","assets/createText-a49d2d2a-b45cf165.js","assets/svgDraw-95adee0a-c0e4fe11.js","assets/line-4c8e436d.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js","assets/selectAll-ad8aa736.js"]);return{id:VZ,diagram:e}},Hzt={id:VZ,detector:Vzt,loader:qzt},Uzt=Hzt,qZ="flowchart-v2",Wzt=(e,t)=>{var n,r,i;return((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="dagre-d3"||((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)&&((i=t==null?void 0:t.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e)},Gzt=async()=>{const{diagram:e}=await Er(()=>import("./flowDiagram-v2-fe64f300-63afd088.js"),["assets/flowDiagram-v2-fe64f300-63afd088.js","assets/flowDb-9e6c6aac-32de2878.js","assets/styles-7882abfe-849890ab.js","assets/layout-c97c50ff.js","assets/index-1e7f2254-a4f10dcc.js","assets/edges-66ea8538-e73fd07f.js","assets/createText-a49d2d2a-b45cf165.js","assets/svgDraw-95adee0a-c0e4fe11.js","assets/line-4c8e436d.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js","assets/selectAll-ad8aa736.js"]);return{id:qZ,diagram:e}},Kzt={id:qZ,detector:Wzt,loader:Gzt},Yzt=Kzt,HZ="er",Zzt=e=>/^\s*erDiagram/.test(e),Xzt=async()=>{const{diagram:e}=await Er(()=>import("./erDiagram-731c3598-cb03c1f0.js"),["assets/erDiagram-731c3598-cb03c1f0.js","assets/layout-c97c50ff.js","assets/line-4c8e436d.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js"]);return{id:HZ,diagram:e}},Jzt={id:HZ,detector:Zzt,loader:Xzt},Qzt=Jzt,UZ="gitGraph",eFt=e=>/^\s*gitGraph/.test(e),tFt=async()=>{const{diagram:e}=await Er(()=>import("./gitGraphDiagram-566a7451-3eee2e44.js"),[]);return{id:UZ,diagram:e}},nFt={id:UZ,detector:eFt,loader:tFt},rFt=nFt,WZ="gantt",iFt=e=>/^\s*gantt/.test(e),aFt=async()=>{const{diagram:e}=await Er(()=>import("./ganttDiagram-55b9c28c-f3faab3a.js"),["assets/ganttDiagram-55b9c28c-f3faab3a.js","assets/linear-fb1e7037.js","assets/init-77b53fdd.js"]);return{id:WZ,diagram:e}},oFt={id:WZ,detector:iFt,loader:aFt},sFt=oFt,GZ="info",lFt=e=>/^\s*info/.test(e),cFt=async()=>{const{diagram:e}=await Er(()=>import("./infoDiagram-f43c69c6-feae6ee1.js"),[]);return{id:GZ,diagram:e}},uFt={id:GZ,detector:lFt,loader:cFt},KZ="pie",dFt=e=>/^\s*pie/.test(e),fFt=async()=>{const{diagram:e}=await Er(()=>import("./pieDiagram-c8640b32-44e9bed5.js"),["assets/pieDiagram-c8640b32-44e9bed5.js","assets/init-77b53fdd.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js","assets/arc-2fa818f3.js"]);return{id:KZ,diagram:e}},hFt={id:KZ,detector:dFt,loader:fFt},pFt=hFt,YZ="quadrantChart",mFt=e=>/^\s*quadrantChart/.test(e),gFt=async()=>{const{diagram:e}=await Er(()=>import("./quadrantDiagram-f7a9076b-21d1c0d8.js"),["assets/quadrantDiagram-f7a9076b-21d1c0d8.js","assets/linear-fb1e7037.js","assets/init-77b53fdd.js"]);return{id:YZ,diagram:e}},yFt={id:YZ,detector:mFt,loader:gFt},_Ft=yFt,ZZ="requirement",bFt=e=>/^\s*requirement(Diagram)?/.test(e),kFt=async()=>{const{diagram:e}=await Er(()=>import("./requirementDiagram-429b9d18-dcacaeb3.js"),["assets/requirementDiagram-429b9d18-dcacaeb3.js","assets/layout-c97c50ff.js","assets/line-4c8e436d.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js"]);return{id:ZZ,diagram:e}},wFt={id:ZZ,detector:bFt,loader:kFt},vFt=wFt,XZ="sequence",xFt=e=>/^\s*sequenceDiagram/.test(e),CFt=async()=>{const{diagram:e}=await Er(()=>import("./sequenceDiagram-9506b40c-b277b1e6.js"),["assets/sequenceDiagram-9506b40c-b277b1e6.js","assets/svgDrawCommon-f26cad39-ad1bc4a5.js","assets/selectAll-ad8aa736.js"]);return{id:XZ,diagram:e}},SFt={id:XZ,detector:xFt,loader:CFt},DFt=SFt,JZ="class",EFt=(e,t)=>{var n;return((n=t==null?void 0:t.class)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},TFt=async()=>{const{diagram:e}=await Er(()=>import("./classDiagram-d26c05e1-73441f0f.js"),["assets/classDiagram-d26c05e1-73441f0f.js","assets/styles-a893c203-67b644c0.js","assets/layout-c97c50ff.js","assets/svgDraw-95adee0a-c0e4fe11.js","assets/line-4c8e436d.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js"]);return{id:JZ,diagram:e}},AFt={id:JZ,detector:EFt,loader:TFt},zFt=AFt,QZ="classDiagram",FFt=(e,t)=>{var n;return/^\s*classDiagram/.test(e)&&((n=t==null?void 0:t.class)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},$Ft=async()=>{const{diagram:e}=await Er(()=>import("./classDiagram-v2-656fc6c4-e5871a12.js"),["assets/classDiagram-v2-656fc6c4-e5871a12.js","assets/styles-a893c203-67b644c0.js","assets/layout-c97c50ff.js","assets/index-1e7f2254-a4f10dcc.js","assets/edges-66ea8538-e73fd07f.js","assets/createText-a49d2d2a-b45cf165.js","assets/svgDraw-95adee0a-c0e4fe11.js","assets/line-4c8e436d.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js"]);return{id:QZ,diagram:e}},MFt={id:QZ,detector:FFt,loader:$Ft},OFt=MFt,eX="state",NFt=(e,t)=>{var n;return((n=t==null?void 0:t.state)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},LFt=async()=>{const{diagram:e}=await Er(()=>import("./stateDiagram-0dc7ce84-3f345ece.js"),["assets/stateDiagram-0dc7ce84-3f345ece.js","assets/styles-b820c189-3143e8ba.js","assets/layout-c97c50ff.js","assets/line-4c8e436d.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js"]);return{id:eX,diagram:e}},IFt={id:eX,detector:NFt,loader:LFt},BFt=IFt,tX="stateDiagram",RFt=(e,t)=>{var n;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((n=t==null?void 0:t.state)==null?void 0:n.defaultRenderer)==="dagre-wrapper")},PFt=async()=>{const{diagram:e}=await Er(()=>import("./stateDiagram-v2-e65458cd-2ae324e1.js"),["assets/stateDiagram-v2-e65458cd-2ae324e1.js","assets/styles-b820c189-3143e8ba.js","assets/layout-c97c50ff.js","assets/index-1e7f2254-a4f10dcc.js","assets/edges-66ea8538-e73fd07f.js","assets/createText-a49d2d2a-b45cf165.js","assets/svgDraw-95adee0a-c0e4fe11.js","assets/line-4c8e436d.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js"]);return{id:tX,diagram:e}},jFt={id:tX,detector:RFt,loader:PFt},VFt=jFt,nX="journey",qFt=e=>/^\s*journey/.test(e),HFt=async()=>{const{diagram:e}=await Er(()=>import("./journeyDiagram-4f4351b8-d2c59943.js"),["assets/journeyDiagram-4f4351b8-d2c59943.js","assets/svgDrawCommon-f26cad39-ad1bc4a5.js","assets/arc-2fa818f3.js","assets/path-53f90ab3.js"]);return{id:nX,diagram:e}},UFt={id:nX,detector:qFt,loader:HFt},WFt=UFt,GFt=()=>"",KFt=GFt,YFt=function(){},ZFt=(e,t,n)=>{try{Qe.debug(`Renering svg for syntax error +`);const r=ms("#"+t),i=r.append("g");i.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),i.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),i.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),i.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),i.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),i.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),i.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+n),r.attr("height",100),r.attr("width",500),r.attr("viewBox","768 0 912 512")}catch(r){Qe.error("Error while rendering info diagram"),Qe.error(Lzt(r))}},rX={setConf:YFt,draw:ZFt},XFt={db:{clear:()=>{}},styles:KFt,renderer:rX,parser:{parser:{yy:{}},parse:()=>{}},init:()=>{}},JFt=XFt,iX="flowchart-elk",QFt=(e,t)=>{var n;return!!(/^\s*flowchart-elk/.test(e)||/^\s*flowchart|graph/.test(e)&&((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="elk")},e$t=async()=>{const{diagram:e}=await Er(()=>import("./flowchart-elk-definition-ec654d50-48610d4c.js"),["assets/flowchart-elk-definition-ec654d50-48610d4c.js","assets/flowDb-9e6c6aac-32de2878.js","assets/edges-66ea8538-e73fd07f.js","assets/createText-a49d2d2a-b45cf165.js","assets/svgDraw-95adee0a-c0e4fe11.js","assets/line-4c8e436d.js","assets/array-9f3ba611.js","assets/path-53f90ab3.js"]);return{id:iX,diagram:e}},t$t={id:iX,detector:QFt,loader:e$t},n$t=t$t,aX="timeline",r$t=e=>/^\s*timeline/.test(e),i$t=async()=>{const{diagram:e}=await Er(()=>import("./timeline-definition-46a17596-bdc62e5d.js"),["assets/timeline-definition-46a17596-bdc62e5d.js","assets/arc-2fa818f3.js","assets/path-53f90ab3.js"]);return{id:aX,diagram:e}},a$t={id:aX,detector:r$t,loader:i$t},o$t=a$t,oX="mindmap",s$t=e=>/^\s*mindmap/.test(e),l$t=async()=>{const{diagram:e}=await Er(()=>import("./mindmap-definition-89ece3a3-cf3a3aea.js"),["assets/mindmap-definition-89ece3a3-cf3a3aea.js","assets/createText-a49d2d2a-b45cf165.js"]);return{id:oX,diagram:e}},c$t={id:oX,detector:s$t,loader:l$t},u$t=c$t;let qI=!1;const gE=()=>{qI||(qI=!0,Nw("error",JFt,e=>e.toLowerCase().trim()==="error"),Nw("---",{db:{clear:()=>{}},styles:{},renderer:{},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},e=>e.toLowerCase().trimStart().startsWith("---")),IZ(jzt,OFt,zFt,Qzt,sFt,uFt,pFt,vFt,DFt,n$t,Yzt,Uzt,u$t,o$t,rFt,VFt,BFt,WFt,_Ft))},d$t=e=>e.trimStart().replace(/^\s*%%(?!{)[^\n]+\n?/gm,"");class sX{constructor(t){var n,r;this.text=t,this.type="graph",this.text+=` +`;const i=Ql();try{this.type=P2(t,i)}catch(s){this.type="error",this.detectError=s}const a=hE(this.type);Qe.debug("Type "+this.type),this.db=a.db,(r=(n=this.db).clear)==null||r.call(n),this.renderer=a.renderer,this.parser=a.parser;const o=this.parser.parse.bind(this.parser);this.parser.parse=s=>o(d$t(jAt(s,this.db))),this.parser.parser.yy=this.db,a.init&&(a.init(i),Qe.info("Initialized diagram "+this.type,i)),this.parse()}parse(){var t,n;if(this.detectError)throw this.detectError;(n=(t=this.db).clear)==null||n.call(t),this.parser.parse(this.text)}async render(t,n){await this.renderer.draw(this.text,t,n,this)}getParser(){return this.parser}getType(){return this.type}}const yE=async e=>{const t=P2(e,Ql());try{hE(t)}catch{const r=fzt(t);if(!r)throw new LZ(`Diagram ${t} not found.`);const{id:i,diagram:a}=await r();Nw(i,a)}return new sX(e)};let N7=[];const aLt=e=>{N7.push(e)},f$t=()=>{N7.forEach(e=>{e()}),N7=[]},h$t="graphics-document document";function p$t(e,t){e.attr("role",h$t),Ub(t)||e.attr("aria-roledescription",t)}function m$t(e,t,n,r){if(e.insert!==void 0)if(t||n){if(n){const i="chart-desc-"+r;e.attr("aria-describedby",i),e.insert("desc",":first-child").attr("id",i).text(n)}if(t){const i="chart-title-"+r;e.attr("aria-labelledby",i),e.insert("title",":first-child").attr("id",i).text(t)}}else return}const lX=["graph","flowchart","flowchart-v2","flowchart-elk","stateDiagram","stateDiagram-v2"],g$t=5e4,y$t="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",_$t="sandbox",b$t="loose",k$t="http://www.w3.org/2000/svg",w$t="http://www.w3.org/1999/xlink",v$t="http://www.w3.org/1999/xhtml",x$t="100%",C$t="100%",S$t="border:0;margin:0;",D$t="margin:0",E$t="allow-top-navigation-by-user-activation allow-popups",T$t='The "iframe" tag is not supported by your browser.',A$t=["foreignobject"],z$t=["dominant-baseline"];async function F$t(e,t){gE();try{(await yE(e)).parse()}catch(n){if(t!=null&&t.suppressErrors)return!1;throw n}return!0}const $$t=function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(n){return n.substring(0,n.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(n){return n.substring(0,n.length-1)}),t=t.replace(/#\w+;/g,function(n){const r=n.substring(1,n.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),t},M$t=function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},HI=(e,t,n=[])=>` +.${e} ${t} { ${n.join(" !important; ")} !important; }`,O$t=(e,t,n={})=>{var r;let i="";if(e.themeCSS!==void 0&&(i+=` ${e.themeCSS}`),e.fontFamily!==void 0&&(i+=` :root { --mermaid-font-family: ${e.fontFamily}}`),e.altFontFamily!==void 0&&(i+=` -:root { --mermaid-alt-font-family: ${e.altFontFamily}}`),!Ub(n)&&sX.includes(t)){const l=e.htmlLabels||((r=e.flowchart)==null?void 0:r.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const c in n){const u=n[c];Ub(u.styles)||l.forEach(f=>{i+=HI(u.id,f,u.styles)}),Ub(u.textStyles)||(i+=HI(u.id,"tspan",u.textStyles))}}return i},O$t=(e,t,n,r)=>{const i=M$t(e,t,n),a=JAt(t,i,e.themeVariables);return T7(mDt(`${r}{${a}}`),yDt)},N$t=(e="",t,n)=>{let r=e;return!n&&!t&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=$$t(r),r=r.replace(/<br>/g,"<br/>"),r},L$t=(e="",t)=>{const n=t?t.viewBox.baseVal.height+"px":x$t,r=btoa('<body style="'+S$t+'">'+e+"</body>");return`<iframe style="width:${v$t};height:${n};${C$t}" src="data:text/html;base64,${r}" sandbox="${D$t}"> - ${E$t} -</iframe>`},UI=(e,t,n,r,i)=>{const a=e.append("div");a.attr("id",n),r&&a.attr("style",r);const o=a.append("svg").attr("id",t).attr("width","100%").attr("xmlns",b$t);return i&&o.attr("xmlns:xlink",i),o.append("g"),e};function WI(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const I$t=(e,t,n,r)=>{var i,a,o;(i=e.getElementById(t))==null||i.remove(),(a=e.getElementById(n))==null||a.remove(),(o=e.getElementById(r))==null||o.remove()},B$t=async function(e,t,n){var r,i,a,o;gE(),Mw();const s=Kb.detectInit(t);s&&(zp(s),xZ(s));const l=Ql();Qe.debug(l),t.length>((l==null?void 0:l.maxTextSize)??m$t)&&(t=g$t),t=t.replace(/\r\n?/g,` -`),t=t.replace(/<(\w+)([^>]*)>/g,(ae,Q,ce)=>"<"+Q+ce.replace(/="([^"]*)"/g,"='$1'")+">");const c="#"+e,u="i"+e,f="#"+u,h="d"+e,m="#"+h;let g=ms("body");const b=l.securityLevel===y$t,C=l.securityLevel===_$t,w=l.fontFamily;if(n!==void 0){if(n&&(n.innerHTML=""),b){const ae=WI(ms(n),u);g=ms(ae.nodes()[0].contentDocument.body),g.node().style.margin=0}else g=ms(n);UI(g,e,h,`font-family: ${w}`,k$t)}else{if(I$t(document,e,h,u),b){const ae=WI(ms("body"),u);g=ms(ae.nodes()[0].contentDocument.body),g.node().style.margin=0}else g=ms("body");UI(g,e,h)}t=F$t(t);let k,S;try{k=await yE(t)}catch(ae){k=new oX("error"),S=ae}const E=g.select(m).node(),A=k.type,_=E.firstChild,T=_.firstChild,$=sX.includes(A)?k.renderer.getClasses(t,k):{},R=O$t(l,A,$,c),O=document.createElement("style");O.innerHTML=R,_.insertBefore(O,T);try{await k.renderer.draw(t,e,VI,k)}catch(ae){throw nX.draw(t,e,VI),ae}const G=g.select(`${m} svg`),V=(i=(r=k.db).getAccTitle)==null?void 0:i.call(r),Z=(o=(a=k.db).getAccDescription)==null?void 0:o.call(a);P$t(A,G,V,Z),g.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",w$t);let W=g.select(m).node().innerHTML;if(Qe.debug("config.arrowMarkerAbsolute",l.arrowMarkerAbsolute),W=N$t(W,b,iZ(l.arrowMarkerAbsolute)),b){const ae=g.select(m+" svg").node();W=L$t(W,ae)}else C||(W=Ew.sanitize(W,{ADD_TAGS:T$t,ADD_ATTR:A$t}));if(d$t(),S)throw S;const fe=ms(b?f:m).node();return fe&&"remove"in fe&&fe.remove(),{svg:W,bindFunctions:k.db.bindFunctions}};function R$t(e={}){var t;e!=null&&e.fontFamily&&!((t=e.themeVariables)!=null&&t.fontFamily)&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),VAt(e),e!=null&&e.theme&&e.theme in Ol?e.themeVariables=Ol[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=Ol.default.getThemeVariables(e.themeVariables));const n=typeof e=="object"?jAt(e):wZ();aE(n.logLevel),gE()}function P$t(e,t,n,r){h$t(t,e),p$t(t,n,r,t.attr("id"))}const rf=Object.freeze({render:B$t,parse:z$t,parseDirective:MZ,getDiagramFromText:yE,initialize:R$t,getConfig:Ql,setConfig:HAt,getSiteConfig:wZ,updateSiteConfig:qAt,reset:()=>{Mw()},globalReset:()=>{Mw(Rg)},defaultConfig:Rg});aE(Ql().logLevel);Mw(Ql());const j$t=(e,t,n)=>{Qe.warn(e),RZ(e)?(n&&n(e.str,e.hash),t.push({...e,message:e.str,error:e})):(n&&n(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},lX=async function(e={querySelector:".mermaid"}){try{await V$t(e)}catch(t){if(RZ(t)&&Qe.error(t.str),Ta.parseError&&Ta.parseError(t),!e.suppressErrors)throw Qe.error("Use the suppressErrors option to suppress these errors"),t}},V$t=async function({postRenderCallback:e,querySelector:t,nodes:n}={querySelector:".mermaid"}){const r=rf.getConfig();Qe.debug(`${e?"":"No "}Callback function found`);let i;if(n)i=n;else if(t)i=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");Qe.debug(`Found ${i.length} diagrams`),(r==null?void 0:r.startOnLoad)!==void 0&&(Qe.debug("Start On Load: "+(r==null?void 0:r.startOnLoad)),rf.updateSiteConfig({startOnLoad:r==null?void 0:r.startOnLoad}));const a=new Kb.initIdGenerator(r.deterministicIds,r.deterministicIDSeed);let o;const s=[];for(const l of Array.from(i)){Qe.info("Rendering diagram: "+l.id);/*! Check if previously processed */if(l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const c=`mermaid-${a.next()}`;o=l.innerHTML,o=fxt(Kb.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,"<br/>");const u=Kb.detectInit(o);u&&Qe.debug("Detected early reinit: ",u);try{const{svg:f,bindFunctions:h}=await fX(c,o,l);l.innerHTML=f,e&&await e(c),h&&h(l)}catch(f){j$t(f,s,Ta.parseError)}}if(s.length>0)throw s[0]},cX=function(e){rf.initialize(e)},q$t=async function(e,t,n){Qe.warn("mermaid.init is deprecated. Please use run instead."),e&&cX(e);const r={postRenderCallback:n,querySelector:".mermaid"};typeof t=="string"?r.querySelector=t:t&&(t instanceof HTMLElement?r.nodes=[t]:r.nodes=t),await lX(r)},H$t=async(e,{lazyLoad:t=!0}={})=>{LZ(...e),t===!1&&await uzt()},uX=function(){if(Ta.startOnLoad){const{startOnLoad:e}=rf.getConfig();e&&Ta.run().catch(t=>Qe.error("Mermaid failed to initialize",t))}};if(typeof document<"u"){/*! +:root { --mermaid-alt-font-family: ${e.altFontFamily}}`),!Ub(n)&&lX.includes(t)){const l=e.htmlLabels||((r=e.flowchart)==null?void 0:r.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const c in n){const u=n[c];Ub(u.styles)||l.forEach(f=>{i+=HI(u.id,f,u.styles)}),Ub(u.textStyles)||(i+=HI(u.id,"tspan",u.textStyles))}}return i},N$t=(e,t,n,r)=>{const i=O$t(e,t,n),a=QAt(t,i,e.themeVariables);return T7(gDt(`${r}{${a}}`),_Dt)},L$t=(e="",t,n)=>{let r=e;return!n&&!t&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=M$t(r),r=r.replace(/<br>/g,"<br/>"),r},I$t=(e="",t)=>{const n=t?t.viewBox.baseVal.height+"px":C$t,r=btoa('<body style="'+D$t+'">'+e+"</body>");return`<iframe style="width:${x$t};height:${n};${S$t}" src="data:text/html;base64,${r}" sandbox="${E$t}"> + ${T$t} +</iframe>`},UI=(e,t,n,r,i)=>{const a=e.append("div");a.attr("id",n),r&&a.attr("style",r);const o=a.append("svg").attr("id",t).attr("width","100%").attr("xmlns",k$t);return i&&o.attr("xmlns:xlink",i),o.append("g"),e};function WI(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const B$t=(e,t,n,r)=>{var i,a,o;(i=e.getElementById(t))==null||i.remove(),(a=e.getElementById(n))==null||a.remove(),(o=e.getElementById(r))==null||o.remove()},R$t=async function(e,t,n){var r,i,a,o;gE(),Mw();const s=Kb.detectInit(t);s&&(zp(s),CZ(s));const l=Ql();Qe.debug(l),t.length>((l==null?void 0:l.maxTextSize)??g$t)&&(t=y$t),t=t.replace(/\r\n?/g,` +`),t=t.replace(/<(\w+)([^>]*)>/g,(ae,Q,ce)=>"<"+Q+ce.replace(/="([^"]*)"/g,"='$1'")+">");const c="#"+e,u="i"+e,f="#"+u,h="d"+e,m="#"+h;let g=ms("body");const b=l.securityLevel===_$t,C=l.securityLevel===b$t,w=l.fontFamily;if(n!==void 0){if(n&&(n.innerHTML=""),b){const ae=WI(ms(n),u);g=ms(ae.nodes()[0].contentDocument.body),g.node().style.margin=0}else g=ms(n);UI(g,e,h,`font-family: ${w}`,w$t)}else{if(B$t(document,e,h,u),b){const ae=WI(ms("body"),u);g=ms(ae.nodes()[0].contentDocument.body),g.node().style.margin=0}else g=ms("body");UI(g,e,h)}t=$$t(t);let k,S;try{k=await yE(t)}catch(ae){k=new sX("error"),S=ae}const E=g.select(m).node(),A=k.type,_=E.firstChild,T=_.firstChild,$=lX.includes(A)?k.renderer.getClasses(t,k):{},R=N$t(l,A,$,c),O=document.createElement("style");O.innerHTML=R,_.insertBefore(O,T);try{await k.renderer.draw(t,e,VI,k)}catch(ae){throw rX.draw(t,e,VI),ae}const G=g.select(`${m} svg`),V=(i=(r=k.db).getAccTitle)==null?void 0:i.call(r),Z=(o=(a=k.db).getAccDescription)==null?void 0:o.call(a);j$t(A,G,V,Z),g.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",v$t);let W=g.select(m).node().innerHTML;if(Qe.debug("config.arrowMarkerAbsolute",l.arrowMarkerAbsolute),W=L$t(W,b,aZ(l.arrowMarkerAbsolute)),b){const ae=g.select(m+" svg").node();W=I$t(W,ae)}else C||(W=Ew.sanitize(W,{ADD_TAGS:A$t,ADD_ATTR:z$t}));if(f$t(),S)throw S;const fe=ms(b?f:m).node();return fe&&"remove"in fe&&fe.remove(),{svg:W,bindFunctions:k.db.bindFunctions}};function P$t(e={}){var t;e!=null&&e.fontFamily&&!((t=e.themeVariables)!=null&&t.fontFamily)&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),qAt(e),e!=null&&e.theme&&e.theme in Ol?e.themeVariables=Ol[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=Ol.default.getThemeVariables(e.themeVariables));const n=typeof e=="object"?VAt(e):vZ();aE(n.logLevel),gE()}function j$t(e,t,n,r){p$t(t,e),m$t(t,n,r,t.attr("id"))}const rf=Object.freeze({render:R$t,parse:F$t,parseDirective:OZ,getDiagramFromText:yE,initialize:P$t,getConfig:Ql,setConfig:UAt,getSiteConfig:vZ,updateSiteConfig:HAt,reset:()=>{Mw()},globalReset:()=>{Mw(Rg)},defaultConfig:Rg});aE(Ql().logLevel);Mw(Ql());const V$t=(e,t,n)=>{Qe.warn(e),PZ(e)?(n&&n(e.str,e.hash),t.push({...e,message:e.str,error:e})):(n&&n(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},cX=async function(e={querySelector:".mermaid"}){try{await q$t(e)}catch(t){if(PZ(t)&&Qe.error(t.str),Ta.parseError&&Ta.parseError(t),!e.suppressErrors)throw Qe.error("Use the suppressErrors option to suppress these errors"),t}},q$t=async function({postRenderCallback:e,querySelector:t,nodes:n}={querySelector:".mermaid"}){const r=rf.getConfig();Qe.debug(`${e?"":"No "}Callback function found`);let i;if(n)i=n;else if(t)i=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");Qe.debug(`Found ${i.length} diagrams`),(r==null?void 0:r.startOnLoad)!==void 0&&(Qe.debug("Start On Load: "+(r==null?void 0:r.startOnLoad)),rf.updateSiteConfig({startOnLoad:r==null?void 0:r.startOnLoad}));const a=new Kb.initIdGenerator(r.deterministicIds,r.deterministicIDSeed);let o;const s=[];for(const l of Array.from(i)){Qe.info("Rendering diagram: "+l.id);/*! Check if previously processed */if(l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const c=`mermaid-${a.next()}`;o=l.innerHTML,o=hxt(Kb.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,"<br/>");const u=Kb.detectInit(o);u&&Qe.debug("Detected early reinit: ",u);try{const{svg:f,bindFunctions:h}=await hX(c,o,l);l.innerHTML=f,e&&await e(c),h&&h(l)}catch(f){V$t(f,s,Ta.parseError)}}if(s.length>0)throw s[0]},uX=function(e){rf.initialize(e)},H$t=async function(e,t,n){Qe.warn("mermaid.init is deprecated. Please use run instead."),e&&uX(e);const r={postRenderCallback:n,querySelector:".mermaid"};typeof t=="string"?r.querySelector=t:t&&(t instanceof HTMLElement?r.nodes=[t]:r.nodes=t),await cX(r)},U$t=async(e,{lazyLoad:t=!0}={})=>{IZ(...e),t===!1&&await dzt()},dX=function(){if(Ta.startOnLoad){const{startOnLoad:e}=rf.getConfig();e&&Ta.run().catch(t=>Qe.error("Mermaid failed to initialize",t))}};if(typeof document<"u"){/*! * Wait for document loaded before starting the execution - */window.addEventListener("load",uX,!1)}const U$t=function(e){Ta.parseError=e},Bw=[];let A5=!1;const dX=async()=>{if(!A5){for(A5=!0;Bw.length>0;){const e=Bw.shift();if(e)try{await e()}catch(t){Qe.error("Error executing queue",t)}}A5=!1}},W$t=async(e,t)=>new Promise((n,r)=>{const i=()=>new Promise((a,o)=>{rf.parse(e,t).then(s=>{a(s),n(s)},s=>{var l;Qe.error("Error parsing",s),(l=Ta.parseError)==null||l.call(Ta,s),o(s),r(s)})});Bw.push(i),dX().catch(r)}),fX=(e,t,n)=>new Promise((r,i)=>{const a=()=>new Promise((o,s)=>{rf.render(e,t,n).then(l=>{o(l),r(l)},l=>{var c;Qe.error("Error parsing",l),(c=Ta.parseError)==null||c.call(Ta,l),s(l),i(l)})});Bw.push(a),dX().catch(i)}),Ta={startOnLoad:!0,mermaidAPI:rf,parse:W$t,render:fX,init:q$t,run:lX,registerExternalDiagrams:H$t,initialize:cX,parseError:void 0,contentLoaded:uX,setParseErrorHandler:U$t,detectType:P2},G$t=e=>({type:"diagram",value:e}),K$t=e=>lf(e,"code",(t,n,r)=>{const{lang:i,value:a}=t;if(i!=="mermaid")return t;const o=G$t(a);return r&&n!=null&&r.children.splice(n,1,o),t}),Y$t=()=>{function e(t){K$t(t)}return e},Z$t=qP("abcdefg",8),Rw=e=>{var t;return((t=e==null?void 0:e.attrs)==null?void 0:t.identity)||Z$t()},Jp=(e,t)=>(Object.assign(e,{meta:{package:"@milkdown/plugin-diagram",...t}}),e),_E=Lr({startOnLoad:!1},"mermaidConfig");Jp(_E,{displayName:"Ctx<mermaidConfig>"});const R0="diagram",Qp=cr(R0,e=>(Ta.initialize({...e.get(_E.key)}),{content:"text*",group:"block",marks:"",defining:!0,atom:!0,isolating:!0,attrs:{value:{default:""},identity:{default:""}},parseDOM:[{tag:`div[data-type="${R0}"]`,preserveWhitespace:"full",getAttrs:t=>{if(!(t instanceof HTMLElement))throw Ma(t);return{value:t.dataset.value,identity:t.dataset.id}}}],toDOM:t=>{const n=Rw(t),r=t.attrs.value,i=document.createElement("div");return i.dataset.type=R0,i.dataset.id=n,i.dataset.value=r,i.textContent=r,i},parseMarkdown:{match:({type:t})=>t===R0,runner:(t,n,r)=>{const i=n.value;t.addNode(r,{value:i,identity:Rw()})}},toMarkdown:{match:t=>t.type.name===R0,runner:(t,n)=>{t.addNode("code",void 0,n.attrs.value||"",{lang:"mermaid"})}}}));Jp(Qp.node,{displayName:"NodeSchema<diagram>"});Jp(Qp.ctx,{displayName:"NodeSchemaCtx<diagram>"});const hX=vo(e=>new Yl(/^```mermaid$/,(t,n,r,i)=>{const a=Qp.type(e),o=t.doc.resolve(r);return o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),a)?t.tr.delete(r,i).setBlockType(r,r,a,{identity:Rw()}):null}));Jp(hX,{displayName:"InputRule<insertDiagramInputRules>"});const pX=Ps(()=>Y$t);Jp(pX,{displayName:"Remark<diagram>"});const $1=Lt("InsertDiagramCommand",e=>()=>Zd(Qp.type(e),{identity:Rw()}));Jp($1,{displayName:"Command<insertDiagramCommand>"});const X$t=[pX,_E,Qp,$1,hX].flat(),mX=F.createContext({onOpen:()=>{},isOpen:!1,onClose:()=>{}}),J$t=({onClose:e,isOpen:t,onOpen:n,children:r})=>{const i=F.useMemo(()=>({onOpen:n,isOpen:t,onClose:e}),[e,t,n]);return j(mX.Provider,{value:i,children:r})},gX=()=>F.useContext(mX),yX=({handler:e,children:t,className:n,closeOnOutsideClick:r=!0})=>{const i=F.useRef(null),{state:a,on:o,off:s,toggle:l}=Up();return F.useEffect(()=>{if(!a||!r)return;const c=u=>{u.preventDefault(),u.stopPropagation();const f=u.target,{current:h}=i;!(h!=null&&h.contains(f))&&r&&s()};return document.body.addEventListener("click",c),()=>document.body.removeEventListener("click",c)},[r,s,a]),He(Q$t,{ref:i,className:n,children:[j(e,{onToggle:l}),j(J$t,{isOpen:a,onClose:s,onOpen:o,children:j(eMt,{$isOpen:a,children:j(j2,{children:t})})})]})},Q$t=Ae.div.withConfig({displayName:"DropdownContainerStyled"})(["position:relative;"]),eMt=Ae.div.withConfig({displayName:"DropdownListContainerStyled"})(["position:absolute;right:0;z-index:",";top:calc(100% + 14px);display:",";"],e=>e.$isOpen?e.theme.zIndexes.dropdown.container:-1,e=>e.$isOpen?"block":"none"),j2=Ae.ul.withConfig({displayName:"DropdownListStyled"})(["position:relative;padding-left:0 !important;background-color:",";border-radius:",";border:1px solid ",";z-index:",";box-shadow:0 4px 6px -1px rgb(0 0 0 / 10%),0 2px 4px -1px rgb(0 0 0 / 6%);"],e=>e.theme.colors.white,ee(8),e=>e.theme.colors.lightGrey,e=>e.theme.zIndexes.dropdown.container),er=Ae.li.withConfig({displayName:"DropdownItemStyled"})(["list-style-type:none;z-index:",";"],e=>e.theme.zIndexes.dropdown.container),ya=Ae(Xt).withConfig({displayName:"DropdownButtonActionStyled"})(["width:100%;justify-content:flex-start;gap:",";z-index:",";padding:"," ",";min-width:",";"],ee(10),e=>e.theme.zIndexes.dropdown.container,ee(14),ee(20),ee(200)),ec=()=>{const{editor:e,loading:t}=li();return{onCallCommand:F.useCallback((r,i)=>{t||!e||e.status!==pn.Created||e.action(sge(r,i))},[e,t])}},_X=()=>{const{onCallCommand:e}=ec(),{editor:t,loading:n}=li();return{onInsertMathBlock:F.useCallback(()=>{n||!t||t.status!==pn.Created||t.action(i=>{const a=i.get(ai),{state:o}=a,{selection:s}=o,{from:l,to:c}=s,u=o.tr.doc.textBetween(l,c)||"";e(VD.key,u)})},[n,t,e])}},tMt=()=>{const{onFileUpload:e,onFileValidation:t}=ta(),[n,r]=F.useState(!1),{onErrorNotification:i}=Xv();return{onFileConvert:async o=>{const[s]=o;if(!(t&&!t(s)))try{return r(!0),await e(s)}catch{i("Something bad happened")}finally{r(!1)}},loading:n}},nMt=d1().shape({url:Jd().required()}).required(),rMt=()=>Jv({mode:"onBlur",resolver:X9(nMt)}),iMt=({name:e,className:t="",onFileUpload:n,...r})=>{const i=F.useRef(null),a=Up(),o=async u=>{u.preventDefault(),u.target.files&&n(u.target.files)},s=u=>{u.preventDefault(),u.stopPropagation(),u.type==="dragenter"||u.type==="dragover"?a.on():u.type==="dragleave"&&a.off()},l=async u=>{u.preventDefault(),u.stopPropagation(),a.off(),u.dataTransfer.files&&n(u.dataTransfer.files)},c=()=>{var u;(u=i.current)==null||u.click()};return He(aMt,{className:t,onDragEnter:s,children:[j(oMt,{ref:i,type:"file",onChange:o,name:e,...r}),He(sMt,{htmlFor:e,$dragActive:a.state,children:[j(dMt,{icon:"d_a_d_file",width:230,height:230,$dragOver:a.state,fill:"#BABABA"}),He(lMt,{children:["Drag and drop or",j(uMt,{onClick:c,variant:"simple_text",children:"browse"})]}),j(cMt,{children:"maximum file size 20 MB"})]}),a.state&&j(fMt,{onDrop:l,onDragOver:s,onDragEnter:s,onDragLeave:s})]})},aMt=Ae.div.withConfig({displayName:"DragDropFileContainerStyled"})(["position:relative;"]),oMt=Ae.input.withConfig({displayName:"InputFileStyled"})(["",""],rge),sMt=Ae.label.withConfig({displayName:"LabelStyled"})(["display:flex;align-items:center;flex-direction:column;padding:"," 0;border-radius:",";border:2px solid ",";background-color:",";transition:border-color 0.2s ease-in,background-color 0.2s ease-in;"],ee(16),ee(8),e=>e.$dragActive?e.theme.colors.green:"transparent",e=>e.$dragActive?e.theme.colors.lightAzure:e.theme.colors.white),lMt=Ae.p.withConfig({displayName:"DragAndDropStyled"})(["display:flex;align-items:center;margin-top:",";margin-bottom:",";font-size:",";gap:",";"],ee(12),ee(4),ee(21),ee(4)),cMt=Ae.p.withConfig({displayName:"FileInfoSyled"})(["color:",";"],e=>e.theme.colors.grey),uMt=Ae(Xt).withConfig({displayName:"BrowseButtonStyled"})(["font-size:",";text-decoration:underline;&:hover,&:focus{color:",";}"],ee(21),e=>e.theme.colors.green),dMt=Ae(ut).withConfig({displayName:"IconStyled"})([".light-green,.green,.dark-green{transition:fill 0.2s ease-in;}",""],e=>e.$dragOver&&Tn([".secondary-light-green{fill:",";}.light-green{fill:#8dd4cb;}.green{fill:",";}"],t=>t.theme.colors.azure,t=>t.theme.colors.green)),fMt=Ae.div.withConfig({displayName:"DragElementStyled"})(["position:absolute;width:100%;height:100%;inset:0;"]),hMt=({onInsert:e})=>{var m;const{onClose:t}=Hp(),{inputAcceptedFormats:n}=ta(),{onFileConvert:r,loading:i}=tMt(),{formState:a,register:o,handleSubmit:s,control:l}=rMt(),c=z1t({control:l,name:"url"}),u=g=>{e(g),t()},f=async g=>{try{const b=await r(g);b&&u(b)}catch{}},h=g=>{u(g.url)};return i?He(pMt,{children:[j(mMt,{loading:i,size:"large"}),j("span",{children:"Uploading..."})]}):j(f1,{children:He(gMt,{children:[j(lw.div,{animate:c?"hidden":"show",variants:svt,children:He(GI,{children:[j(iMt,{name:"insert_image",multiple:!1,accept:n,onFileUpload:f}),j(_Mt,{children:j(GI,{children:"Or"})})]})}),He("form",{onSubmit:s(h),children:[j(yMt,{...o("url"),label:"Import from URL",error:(m=a.errors.url)==null?void 0:m.message,accept:"*",placeholder:"Paste a URL..."}),j(ZW,{children:c&&j(lw.div,{...ovt,children:j(bMt,{loading:a.isValidating,isDisabled:a.isValidating||!a.isValid,saveText:"Upload",withCancel:!1,saveButtonType:"submit"})})})]})]})})},pMt=Ae(f1).withConfig({displayName:"LoaderContainerStyled"})(["display:flex;flex-direction:column;align-items:center;padding-top:",";padding-bottom:",";min-height:",";font-weight:500;font-size:",";"],ee(40),ee(40),ee(350),ee(21)),mMt=Ae(eG).withConfig({displayName:"LoaderStyled"})(["flex:1;"]),gMt=Ae.div.withConfig({displayName:"DocumentContentContainerStyled"})(["overflow:hidden;padding-top:",";padding-bottom:",";"],ee(40),ee(24)),yMt=Ae(kp).withConfig({displayName:"UrlInputStyled"})(["margin-bottom:0;"]),_Mt=Ae.div.withConfig({displayName:"GapStyled"})(["display:flex;align-items:center;padding-top:",";padding-bottom:",";&::before,&::after{display:block;flex:1;height:",";background-color:",";content:'';}"],ee(32),ee(24),ee(1),e=>e.theme.colors.lightGrey),GI=Ae.span.withConfig({displayName:"GapTextStyled"})(["color:",";padding:"," ",";"],e=>e.theme.colors.grey,ee(0),ee(8)),bMt=Ae(n2).withConfig({displayName:"ModalActionsStyled"})(["padding-top:",";"],ee(24)),bE=({handler:e,onModalOpen:t,onModalClose:n,onInsert:r})=>j(J9,{handler:e,onModalOpen:t,onModalClose:n,children:j(hMt,{onInsert:r})}),kMt=()=>({validateGoogleSlides:F.useCallback(t=>t.startsWith("https://docs.google.com/presentation"),[])}),wMt=({validateGoogleSlides:e})=>d1().shape({url:Jd().required("This field is required").test("validateGoogleSlides",()=>nG.image.google_slides,t=>t?e(t):!0)}).required(),vMt=()=>{const e=kMt();return Jv({mode:"onChange",resolver:X9(wMt(e))})},xMt=()=>{var l;const{editor:e,loading:t}=li(),{onClose:n}=Hp(),{handleSubmit:r,formState:i,register:a}=vMt(),{getLinkCreationTransaction:o}=lG();return He("form",{onSubmit:r(({url:c})=>{t||!e||e.status!==pn.Created||e.action(u=>{const f=u.get(ai),h=o(f,{text:c,href:c});h&&f.dispatch(h),n()})}),children:[j(sG,{children:"Add Google Slides presentation"}),He(DMt,{children:[He(CMt,{children:["Learn how to",j(SMt,{href:"https://support.google.com/docs/answer/183965?hl=en&co=GENIE.Platform%3DDesktop",children:"publish files from Google Drive"})]}),j(kp,{...a("url"),error:(l=i.errors.url)==null?void 0:l.message,placeholder:"Paste the “Publish to the web” link"})]}),j(T9,{children:j(n2,{saveButtonType:"submit",isDisabled:!i.isValid})})]})},CMt=Ae.p.withConfig({displayName:"NoteStyled"})(["font-size:",";color:",";margin-bottom:",";"],ee(14),e=>e.theme.colors.grey,ee(16)),SMt=Ae(aG).withConfig({displayName:"AnchorStyled"})(["margin:0 ",";"],ee(2)),DMt=Ae(f1).withConfig({displayName:"ModalBodyStyled"})(["padding-top:0;"]),kE=({handler:e,onModalOpen:t,onModalClose:n})=>j(J9,{handler:e,onModalOpen:t,onModalClose:n,children:j(xMt,{})}),EMt=()=>{const{colors:e}=Kl(),{onClose:t}=gX(),{onCallCommand:n}=ec(),{onInsertMathBlock:r}=_X(),i=(a,o)=>{t(),n(a,o)};return He(j2,{children:[j(er,{children:j(f2,{editable:!1,onModalOpen:t,handler:({onOpen:a})=>He(ya,{onClick:a,children:[j(ut,{icon:"add_link"}),"Add link"]})})}),j(er,{children:j(bE,{handler:({onOpen:a})=>He(ya,{onClick:a,children:[j(ut,{icon:"embed_image"}),"Add image"]}),onInsert:a=>i(s1.key,{src:a}),onModalOpen:t})}),j(er,{children:He(ya,{onClick:()=>i(jp.key),children:[j(ut,{icon:"code_block"}),"Add code"]})}),j(er,{children:He(ya,{onClick:()=>i(v1.key),children:[j(ut,{icon:"create_table"}),"Add table"]})}),j(er,{children:He(ya,{onClick:r,children:[j(ut,{icon:"math"}),"Add math"]})}),j(er,{children:He(ya,{onClick:()=>i($1.key),children:[j(ut,{icon:"mermaid"}),"Add diagram"]})}),j(er,{children:j(kE,{handler:({onOpen:a})=>He(ya,{onClick:a,children:[j(ut,{icon:"google",fill:e.white}),"Add Google doc"]}),onModalOpen:t})})]})},TMt=()=>j(AMt,{handler:({onToggle:e})=>j(Xt,{onClick:e,oval:!0,space:"small",color:"secondary",children:j(ut,{icon:"settings"})}),children:j(EMt,{})}),AMt=Ae(yX).withConfig({displayName:"DropdownStyled"})(["@media (min-width:","){margin-left:auto;}"],Vt.queries.tablet),zMt=()=>{const[e,t]=F.useState(""),{colors:n}=Kl(),{onCallCommand:r}=ec(),{onInsertMathBlock:i}=_X(),{view:{state:a}}=Np(),o=F.useCallback(()=>{const{selection:l,doc:c}=a,{from:u,to:f}=l,h=c.textBetween(u,f)||"";t(h)},[a]),s=F.useCallback(()=>t(""),[]);return He(Gr,{children:[j(FMt,{children:j(f2,{editable:!1,text:e,onModalOpen:o,onModalClose:s,handler:({onOpen:l})=>j(Xt,{oval:!0,onClick:l,space:"small",color:"secondary",children:j(ut,{icon:"add_link"})})})}),j("li",{children:j(bE,{handler:({onOpen:l})=>j(Xt,{oval:!0,onClick:l,space:"small",color:"secondary",children:j(ut,{icon:"embed_image"})}),onInsert:l=>r(s1.key,{src:l})})}),j("li",{children:j(Xt,{onClick:()=>r(jp.key),oval:!0,space:"small",color:"secondary",children:j(ut,{icon:"code_block"})})}),j("li",{children:j(Xt,{onClick:()=>r(v1.key),oval:!0,space:"small",color:"secondary",children:j(ut,{icon:"create_table"})})}),j("li",{children:j(Xt,{onClick:i,oval:!0,space:"small",color:"secondary",children:j(ut,{icon:"math"})})}),j("li",{children:j(Xt,{onClick:()=>r($1.key),oval:!0,space:"small",color:"secondary",children:j(ut,{icon:"mermaid"})})}),j("li",{children:j(kE,{handler:({onOpen:l})=>j(Xt,{onClick:l,oval:!0,space:"small",color:"secondary",children:j(ut,{icon:"google",fill:n.white})})})})]})},FMt=Ae.li.withConfig({displayName:"HyperlinkModalItemStyled"})(["@media (min-width:","){margin-left:",";}"],Vt.queries.menuWithSpace,ee(12)),$Mt=(e,t,n)=>r=>e.rangeHasMark(t,n,r),MMt=e=>t=>!!t.isInSet(e),OMt=()=>{const{view:e}=Np(),{state:t}=e,{selection:n}=t,{editor:r,loading:i}=li();return F.useMemo(()=>{if(!r||i||r.status!==pn.Created)return{isStrongActive:!1,isEmphasisActive:!1,isStrikethroughActive:!1};const{ctx:o}=r,{doc:s,storedMarks:l}=t,{from:c,to:u,empty:f,$from:h}=n;if(f){const g=MMt(l||h.marks());return{isStrongActive:!!(o&&g(bp.type(o))),isEmphasisActive:!!(o&&g(_p.type(o))),isStrikethroughActive:!!(o&&g(vp.type(o)))}}const m=$Mt(s,c,u);return{isStrongActive:!!(o&&m(bp.type(o))),isEmphasisActive:!!(o&&m(_p.type(o))),isStrikethroughActive:!!(o&&m(vp.type(o)))}},[t,n,r,i])},NMt=()=>{const{onCallCommand:e}=ec(),t=OMt();return He(Gr,{children:[j(LMt,{children:j(z5,{onClick:()=>e(i1.key),oval:!0,space:"small",color:"secondary",$isActive:t.isStrongActive,children:j(ut,{icon:"bold"})})}),j("li",{children:j(z5,{onClick:()=>e(r1.key),oval:!0,space:"small",color:"secondary",$isActive:t.isEmphasisActive,children:j(ut,{icon:"italic"})})}),j("li",{children:j(z5,{onClick:()=>e(_1.key),oval:!0,space:"small",color:"secondary",$isActive:t.isStrikethroughActive,children:j(ut,{icon:"strikethrough"})})})]})},LMt=Ae.li.withConfig({displayName:"BoldItemStyled"})(["margin-left:",";@media (min-width:","){margin-left:",";}"],ee(2),Vt.queries.menuWithSpace,ee(12)),z5=Ae(Xt).withConfig({displayName:"ButtonStyled"})(["",""],e=>e.$isActive&&Tn(["background-color:",";"],t=>t.theme.colors.secondaryGrey)),KI=(e,t)=>{const{$from:n,$to:r}=e;return!!n.blockRange(r,i=>i.childCount>0&&i.type.name===t)},IMt=()=>{const{view:e}=Np(),{state:t}=e,{selection:n}=t,{onCallCommand:r}=ec();return{onBulletListToggle:()=>{KI(n,"bullet_list")?r(vg.key):r(cG.key)},onOrderedListToggle:()=>{KI(n,"ordered_list")?r(vg.key):r(uG.key)}}},BMt=()=>{const{onBulletListToggle:e,onOrderedListToggle:t}=IMt();return He(Gr,{children:[j(RMt,{children:j(Xt,{onClick:e,oval:!0,space:"small",color:"secondary",children:j(ut,{icon:"bulleted_list"})})}),j("li",{children:j(Xt,{onClick:t,oval:!0,space:"small",color:"secondary",children:j(ut,{icon:"numbered_list"})})})]})},RMt=Ae.li.withConfig({displayName:"BulletListItemStyled"})(["margin-left:",";@media (min-width:","){margin-left:",";}"],ee(2),Vt.queries.menuWithSpace,ee(12)),PMt=[{value:"title",label:"Title"},{value:"subtitle",label:"Subtitle"},{value:"normal",label:"Normal Text"}],jMt=()=>{const{onCallCommand:e}=ec();return j(VMt,{options:PMt,placeholder:"Select text..",onChange:({value:n})=>{qp(n).match("title",()=>e(eo.key,1)).match("subtitle",()=>e(eo.key,2)).match("normal",()=>e(a1.key))}})},VMt=Ae(sU).withConfig({displayName:"SelectStyled"})(["margin-left:",";@media (min-width:","){margin-left:",";}.Dropdown-control{background-color:rgb(31 31 31 / 80%);.Dropdown-placeholder{color:",";}.Dropdown-arrow-wrapper svg{fill:",";}}"],ee(2),Vt.queries.menuWithSpace,ee(12),e=>e.theme.colors.white,e=>e.theme.colors.white),qMt=()=>{const{view:e}=Np(),{state:t}=e;return{isRedoDisabled:kpt(t)===0,isUndoDisabled:bpt(t)===0}},HMt=()=>{const{colors:e}=Kl(),{onCallCommand:t}=ec(),{isRedoDisabled:n,isUndoDisabled:r}=qMt();return He(Gr,{children:[j("li",{children:j(YI,{onClick:()=>t(e1.key),oval:!0,disabled:r,space:"small",color:"secondary",children:j(ut,{icon:"undo",fill:r?"#8A8A8A":e.lightBlack})})}),j("li",{children:j(YI,{onClick:()=>t(CS.key),oval:!0,space:"small",disabled:n,color:"secondary",children:j(ut,{icon:"redo",fill:n?"#8A8A8A":e.lightBlack})})})]})},YI=Ae(Xt).withConfig({displayName:"ButtonStyled"})(["",""],e=>e.disabled&&Tn(["background-color:transparent;"])),UMt=()=>{const{onClose:e}=gX(),{onCallCommand:t}=ec(),n=r=>{e(),t(r)};return He(j2,{children:[j(er,{children:He(ya,{onClick:()=>n(i1.key),children:[j(ut,{icon:"bold"}),"Bold"]})}),j(er,{children:He(ya,{onClick:()=>n(r1.key),children:[j(ut,{icon:"italic"}),"Italic"]})}),j(er,{children:He(ya,{onClick:()=>n(_1.key),children:[j(ut,{icon:"strikethrough"}),"Strikethrough"]})}),j(er,{onClick:()=>n(Yv.key),children:He(ya,{children:[j(ut,{icon:"bulleted_list"}),"Bullet list"]})}),j(er,{children:He(ya,{onClick:()=>n(Zv.key),children:[j(ut,{icon:"numbered_list"}),"Numbered list"]})})]})},WMt=()=>j(GMt,{handler:({onToggle:e})=>j(Xt,{onClick:e,oval:!0,space:"small",color:"secondary",children:j(ut,{icon:"format_dropdown"})}),children:j(UMt,{})}),GMt=Ae(yX).withConfig({displayName:"DropdownStyled"})(["margin-left:auto;"]),ZI=e=>typeof window<"u"?window.matchMedia(e).matches:!1,XI=({query:e})=>{const[t,n]=F.useState(ZI(e)),r=F.useCallback(i=>{n(ZI(i))},[]);return F.useEffect(()=>{const i=()=>r(e),a=window.matchMedia(e);return i(),a.addEventListener("change",i),()=>{a.removeEventListener("change",i)}},[e,r]),t},KMt=()=>{const{queries:e}=Kl(),{mode:t,stickyOnMenu:n,showMenu:r}=ta(),i=XI({query:`(min-width: ${e.tablet})`}),a=XI({query:`(min-width: ${e.laptop})`});return t==="preview"||!r?null:He(YMt,{$stickyOnMenu:n,children:[j(HMt,{}),j(jMt,{}),i?He(Gr,{children:[j(NMt,{}),j(BMt,{})]}):j(WMt,{}),a?j(zMt,{}):j(TMt,{})]})},YMt=Ae.ul.withConfig({displayName:"MenuBarListStyled"})(["position:sticky;top:",";list-style-type:none;display:flex;flex-wrap:wrap;align-items:center;background-color:",";border-radius:",";margin-bottom:",";z-index:",";&&&{padding:"," ",";@media (min-width:","){padding:"," ",";}}"],e=>`${e.$stickyOnMenu}px`,e=>e.theme.colors.secondaryLightGrey,ee(4),ee(20),e=>e.theme.zIndexes.menu,ee(8),ee(2),Vt.queries.menuWithSpace,ee(8),ee(8)),ZMt=()=>{const e=$v(),t=F.useMemo(()=>e({as:"span",component:KMt}),[e]);return F.useMemo(()=>yr(()=>{const r=new Fn("MILKDOWN_MENU_BAR");return new Bn({key:r,state:{init(i,a){const o=[t(0)];return{decorations:en.create(a.doc,o),pos:0}},apply(i){const a=[t(0)];return{decorations:en.create(i.doc,a),pos:0}}},props:{decorations(i){return r.getState(i).decorations}}})}),[t])},XMt=({codePanelRef:e})=>{const{components:{editor:t}}=Kl(),{node:n}=es(),r=F.useRef(!1),i=n.attrs.identity,a=F.useMemo(()=>n.attrs.value,[n.attrs.value]),o=F.useCallback(async(s=3)=>{const l=e.current;if(l&&a.length!==0&&!r.current)try{Ta.initialize({startOnLoad:!1,theme:"base",themeVariables:{primaryColor:t.mermaid.primaryColor,primaryTextColor:t.mermaid.primaryTextColor,primaryBorderColor:t.mermaid.primaryBorderColor,lineColor:t.mermaid.lineColor,secondaryColor:t.mermaid.secondaryColor,tertiaryColor:t.mermaid.tertiaryColor}}),r.current=!0;const{svg:c,bindFunctions:u}=await Ta.render(i,a);r.current=!1,l.innerHTML=c,u==null||u(l)}catch(c){if(console.error(c),s===0)return;setTimeout(()=>{o(s-1)},200)}},[a,i,e,t]);F.useEffect(()=>{requestAnimationFrame(()=>{o()})},[o])},JI=()=>{const e=F.useRef(null);return XMt({codePanelRef:e}),j(JMt,{id:"mermaid-preview",ref:e})},JMt=Ae.div.withConfig({displayName:"MermaidContainerStyled"})(["text-align:center;.edgeLabel{display:block !important;}"]),QMt=({onSourceUpdate:e})=>{const t=F.useRef(null),{node:n}=es(),{onTabChange:r}=v2(),i=()=>{var s;const o=((s=t.current)==null?void 0:s.value)||"";e(o),r(bX.Preview)},a=F.useMemo(()=>n.attrs.value,[n.attrs.value]);return He(Gr,{children:[j(eOt,{ref:t,defaultValue:a}),j(tOt,{oval:!0,variant:"contained",color:"primary",onClick:i,children:"Update"})]})},eOt=Ae(qK).withConfig({displayName:"TextareaStyled"})(["outline:0;background-color:transparent;border:0;min-height:",";font-family:",";font-size:",";line-height:",";width:100%;resize:vertical;"],ee(60),e=>e.theme.fonts.secondary,ee(16),ee(22)),tOt=Ae(Xt).withConfig({displayName:"UpdateButtonStyled"})(["position:absolute;top:",";right:",";"],ee(16),ee(16));var bX=(e=>(e.Preview="preview",e.Source="soure",e))(bX||{});const nOt=()=>{const{setAttrs:e}=es(),{mode:t}=ta(),n=r=>{e({value:r})};return t==="preview"?j(QI,{children:j(JI,{})}):j(QI,{contentEditable:!1,children:He(WK,{initialTab:"preview",children:[He(UK,{children:[j(yw,{label:"preview",children:"Preview"}),j(yw,{label:"soure",children:"Source"})]}),j(x2,{label:"preview",children:j(JI,{})}),j(rOt,{label:"soure",children:j(QMt,{onSourceUpdate:n})})]})})},rOt=Ae(x2).withConfig({displayName:"SourceTabPanelStyled"})(["padding-right:0;"]),QI=Ae.div.withConfig({displayName:"MermaidNodeContainerStyled"})(["margin:"," 0;"],ee(16)),iOt=()=>{const e=aS();return F.useMemo(()=>[X$t,jk(Qp.node,()=>e({component:nOt,stopEvent:()=>!0}))].flat(),[e])},aOt=e=>{var r,i;const{editable:t,state:{doc:n}}=e;return!(!t||n.childCount>1||!((r=n.firstChild)!=null&&r.isTextblock)||n.firstChild.content.size>0||((i=n.firstChild)==null?void 0:i.type.name)!=="paragraph")},oOt=()=>{const{placeholder:e}=ta();return F.useMemo(()=>yr(()=>{const n=new Fn("MILKDOWN_PLACEHOLDER_PLUGIN"),r=i=>{aOt(i)?i.dom.setAttribute("data-placeholder",e):i.dom.removeAttribute("data-placeholder")};return new Bn({key:n,view:i=>(r(i),{update:r})})}),[e])};Ws.displayName="clike";Ws.aliases=[];function Ws(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}M1.displayName="c";M1.aliases=[];function M1(e){e.register(Ws),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}V2.displayName="cpp";V2.aliases=[];function V2(e){e.register(M1),function(t){var n=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,r=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return n.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return n.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:n,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(e)}wE.displayName="arduino";wE.aliases=["ino"];function wE(e){e.register(V2),e.languages.arduino=e.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),e.languages.ino=e.languages.arduino}vE.displayName="bash";vE.aliases=["sh","shell"];function vE(e){(function(t){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:r,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=t.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=i.variable[1].inside,s=0;s<a.length;s++)o[a[s]]=t.languages.bash[a[s]];t.languages.sh=t.languages.bash,t.languages.shell=t.languages.bash})(e)}xE.displayName="csharp";xE.aliases=["cs","dotnet"];function xE(e){e.register(Ws),function(t){function n(L,de){return L.replace(/<<(\d+)>>/g,function(ue,I){return"(?:"+de[+I]+")"})}function r(L,de,ue){return RegExp(n(L,de),ue||"")}function i(L,de){for(var ue=0;ue<de;ue++)L=L.replace(/<<self>>/g,function(){return"(?:"+L+")"});return L.replace(/<<self>>/g,"[^\\s\\S]")}var a={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function o(L){return"\\b(?:"+L.trim().replace(/ /g,"|")+")\\b"}var s=o(a.typeDeclaration),l=RegExp(o(a.type+" "+a.typeDeclaration+" "+a.contextual+" "+a.other)),c=o(a.typeDeclaration+" "+a.contextual+" "+a.other),u=o(a.type+" "+a.typeDeclaration+" "+a.other),f=i(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=i(/\((?:[^()]|<<self>>)*\)/.source,2),m=/@?\b[A-Za-z_]\w*\b/.source,g=n(/<<0>>(?:\s*<<1>>)?/.source,[m,f]),b=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[c,g]),C=/\[\s*(?:,\s*)*\]/.source,w=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[b,C]),k=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[f,h,C]),S=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[k]),E=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[S,b,C]),A={keyword:l,punctuation:/[<>()?,.:[\]]/},_=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,T=/"(?:\\.|[^\\"\r\n])*"/.source,$=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[$]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[T]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[b]),lookbehind:!0,inside:A},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[m,E]),lookbehind:!0,inside:A},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[m]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[s,g]),lookbehind:!0,inside:A},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[b]),lookbehind:!0,inside:A},{pattern:r(/(\bwhere\s+)<<0>>/.source,[m]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[w]),lookbehind:!0,inside:A},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[E,u,m]),inside:A}],keyword:l,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[m]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[m]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:A},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[E,b]),inside:A,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[E]),lookbehind:!0,inside:A,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[m,f]),inside:{function:r(/^<<0>>/.source,[m]),generic:{pattern:RegExp(f),alias:"class-name",inside:A}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[s,g,m,E,l.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,h]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:l,"class-name":{pattern:RegExp(E),greedy:!0,inside:A},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var R=T+"|"+_,O=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[R]),G=i(n(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[O]),2),V=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,Z=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[b,G]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[V,Z]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[V]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[G]),inside:t.languages.csharp},"class-name":{pattern:RegExp(b),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var W=/:[^}\r\n]+/.source,Y=i(n(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[O]),2),fe=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Y,W]),ae=i(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[R]),2),Q=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[ae,W]);function ce(L,de){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[L]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[de,W]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[fe]),lookbehind:!0,greedy:!0,inside:ce(fe,Y)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[Q]),lookbehind:!0,greedy:!0,inside:ce(Q,ae)}],char:{pattern:RegExp(_),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(e)}O1.displayName="markup";O1.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function O1(e){e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var i={};i["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[r]},i.cdata=/^<!\[CDATA\[|\]\]>$/i;var a={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:i}};a["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var o={};o[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:a},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}e0.displayName="css";e0.aliases=[];function e0(e){(function(t){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+n.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(e)}CE.displayName="diff";CE.aliases=[];function CE(e){(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var n={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(n).forEach(function(r){var i=n[r],a=[];/^\w+$/.test(r)||a.push(/\w+/.exec(r)[0]),r==="diff"&&a.push("bold"),t.languages.diff[r]={pattern:RegExp("^(?:["+i+`].*(?:\r + */window.addEventListener("load",dX,!1)}const W$t=function(e){Ta.parseError=e},Bw=[];let A5=!1;const fX=async()=>{if(!A5){for(A5=!0;Bw.length>0;){const e=Bw.shift();if(e)try{await e()}catch(t){Qe.error("Error executing queue",t)}}A5=!1}},G$t=async(e,t)=>new Promise((n,r)=>{const i=()=>new Promise((a,o)=>{rf.parse(e,t).then(s=>{a(s),n(s)},s=>{var l;Qe.error("Error parsing",s),(l=Ta.parseError)==null||l.call(Ta,s),o(s),r(s)})});Bw.push(i),fX().catch(r)}),hX=(e,t,n)=>new Promise((r,i)=>{const a=()=>new Promise((o,s)=>{rf.render(e,t,n).then(l=>{o(l),r(l)},l=>{var c;Qe.error("Error parsing",l),(c=Ta.parseError)==null||c.call(Ta,l),s(l),i(l)})});Bw.push(a),fX().catch(i)}),Ta={startOnLoad:!0,mermaidAPI:rf,parse:G$t,render:hX,init:H$t,run:cX,registerExternalDiagrams:U$t,initialize:uX,parseError:void 0,contentLoaded:dX,setParseErrorHandler:W$t,detectType:P2},K$t=e=>({type:"diagram",value:e}),Y$t=e=>lf(e,"code",(t,n,r)=>{const{lang:i,value:a}=t;if(i!=="mermaid")return t;const o=K$t(a);return r&&n!=null&&r.children.splice(n,1,o),t}),Z$t=()=>{function e(t){Y$t(t)}return e},X$t=HP("abcdefg",8),Rw=e=>{var t;return((t=e==null?void 0:e.attrs)==null?void 0:t.identity)||X$t()},Jp=(e,t)=>(Object.assign(e,{meta:{package:"@milkdown/plugin-diagram",...t}}),e),_E=Lr({startOnLoad:!1},"mermaidConfig");Jp(_E,{displayName:"Ctx<mermaidConfig>"});const R0="diagram",Qp=cr(R0,e=>(Ta.initialize({...e.get(_E.key)}),{content:"text*",group:"block",marks:"",defining:!0,atom:!0,isolating:!0,attrs:{value:{default:""},identity:{default:""}},parseDOM:[{tag:`div[data-type="${R0}"]`,preserveWhitespace:"full",getAttrs:t=>{if(!(t instanceof HTMLElement))throw Ma(t);return{value:t.dataset.value,identity:t.dataset.id}}}],toDOM:t=>{const n=Rw(t),r=t.attrs.value,i=document.createElement("div");return i.dataset.type=R0,i.dataset.id=n,i.dataset.value=r,i.textContent=r,i},parseMarkdown:{match:({type:t})=>t===R0,runner:(t,n,r)=>{const i=n.value;t.addNode(r,{value:i,identity:Rw()})}},toMarkdown:{match:t=>t.type.name===R0,runner:(t,n)=>{t.addNode("code",void 0,n.attrs.value||"",{lang:"mermaid"})}}}));Jp(Qp.node,{displayName:"NodeSchema<diagram>"});Jp(Qp.ctx,{displayName:"NodeSchemaCtx<diagram>"});const pX=vo(e=>new Yl(/^```mermaid$/,(t,n,r,i)=>{const a=Qp.type(e),o=t.doc.resolve(r);return o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),a)?t.tr.delete(r,i).setBlockType(r,r,a,{identity:Rw()}):null}));Jp(pX,{displayName:"InputRule<insertDiagramInputRules>"});const mX=Ps(()=>Z$t);Jp(mX,{displayName:"Remark<diagram>"});const $1=Lt("InsertDiagramCommand",e=>()=>Zd(Qp.type(e),{identity:Rw()}));Jp($1,{displayName:"Command<insertDiagramCommand>"});const J$t=[mX,_E,Qp,$1,pX].flat(),gX=F.createContext({onOpen:()=>{},isOpen:!1,onClose:()=>{}}),Q$t=({onClose:e,isOpen:t,onOpen:n,children:r})=>{const i=F.useMemo(()=>({onOpen:n,isOpen:t,onClose:e}),[e,t,n]);return j(gX.Provider,{value:i,children:r})},yX=()=>F.useContext(gX),_X=({handler:e,children:t,className:n,closeOnOutsideClick:r=!0})=>{const i=F.useRef(null),{state:a,on:o,off:s,toggle:l}=Up();return F.useEffect(()=>{if(!a||!r)return;const c=u=>{u.preventDefault(),u.stopPropagation();const f=u.target,{current:h}=i;!(h!=null&&h.contains(f))&&r&&s()};return document.body.addEventListener("click",c),()=>document.body.removeEventListener("click",c)},[r,s,a]),He(eMt,{ref:i,className:n,children:[j(e,{onToggle:l}),j(Q$t,{isOpen:a,onClose:s,onOpen:o,children:j(tMt,{$isOpen:a,children:j(j2,{children:t})})})]})},eMt=Ae.div.withConfig({displayName:"DropdownContainerStyled"})(["position:relative;"]),tMt=Ae.div.withConfig({displayName:"DropdownListContainerStyled"})(["position:absolute;right:0;z-index:",";top:calc(100% + 14px);display:",";"],e=>e.$isOpen?e.theme.zIndexes.dropdown.container:-1,e=>e.$isOpen?"block":"none"),j2=Ae.ul.withConfig({displayName:"DropdownListStyled"})(["position:relative;padding-left:0 !important;background-color:",";border-radius:",";border:1px solid ",";z-index:",";box-shadow:0 4px 6px -1px rgb(0 0 0 / 10%),0 2px 4px -1px rgb(0 0 0 / 6%);"],e=>e.theme.colors.white,ee(8),e=>e.theme.colors.lightGrey,e=>e.theme.zIndexes.dropdown.container),er=Ae.li.withConfig({displayName:"DropdownItemStyled"})(["list-style-type:none;z-index:",";"],e=>e.theme.zIndexes.dropdown.container),ya=Ae(Xt).withConfig({displayName:"DropdownButtonActionStyled"})(["width:100%;justify-content:flex-start;gap:",";z-index:",";padding:"," ",";min-width:",";"],ee(10),e=>e.theme.zIndexes.dropdown.container,ee(14),ee(20),ee(200)),ec=()=>{const{editor:e,loading:t}=li();return{onCallCommand:F.useCallback((r,i)=>{t||!e||e.status!==fn.Created||e.action(sge(r,i))},[e,t])}},bX=()=>{const{onCallCommand:e}=ec(),{editor:t,loading:n}=li();return{onInsertMathBlock:F.useCallback(()=>{n||!t||t.status!==fn.Created||t.action(i=>{const a=i.get(ai),{state:o}=a,{selection:s}=o,{from:l,to:c}=s,u=o.tr.doc.textBetween(l,c)||"";e(VD.key,u)})},[n,t,e])}},nMt=()=>{const{onFileUpload:e,onFileValidation:t}=ta(),[n,r]=F.useState(!1),{onErrorNotification:i}=Xv();return{onFileConvert:async o=>{const[s]=o;if(!(t&&!t(s)))try{return r(!0),await e(s)}catch{i("Something bad happened")}finally{r(!1)}},loading:n}},rMt=d1().shape({url:Jd().required()}).required(),iMt=()=>Jv({mode:"onBlur",resolver:X9(rMt)}),aMt=({name:e,className:t="",onFileUpload:n,...r})=>{const i=F.useRef(null),a=Up(),o=async u=>{u.preventDefault(),u.target.files&&n(u.target.files)},s=u=>{u.preventDefault(),u.stopPropagation(),u.type==="dragenter"||u.type==="dragover"?a.on():u.type==="dragleave"&&a.off()},l=async u=>{u.preventDefault(),u.stopPropagation(),a.off(),u.dataTransfer.files&&n(u.dataTransfer.files)},c=()=>{var u;(u=i.current)==null||u.click()};return He(oMt,{className:t,onDragEnter:s,children:[j(sMt,{ref:i,type:"file",onChange:o,name:e,...r}),He(lMt,{htmlFor:e,$dragActive:a.state,children:[j(fMt,{icon:"d_a_d_file",width:230,height:230,$dragOver:a.state,fill:"#BABABA"}),He(cMt,{children:["Drag and drop or",j(dMt,{onClick:c,variant:"simple_text",children:"browse"})]}),j(uMt,{children:"maximum file size 20 MB"})]}),a.state&&j(hMt,{onDrop:l,onDragOver:s,onDragEnter:s,onDragLeave:s})]})},oMt=Ae.div.withConfig({displayName:"DragDropFileContainerStyled"})(["position:relative;"]),sMt=Ae.input.withConfig({displayName:"InputFileStyled"})(["",""],rge),lMt=Ae.label.withConfig({displayName:"LabelStyled"})(["display:flex;align-items:center;flex-direction:column;padding:"," 0;border-radius:",";border:2px solid ",";background-color:",";transition:border-color 0.2s ease-in,background-color 0.2s ease-in;"],ee(16),ee(8),e=>e.$dragActive?e.theme.colors.green:"transparent",e=>e.$dragActive?e.theme.colors.lightAzure:e.theme.colors.white),cMt=Ae.p.withConfig({displayName:"DragAndDropStyled"})(["display:flex;align-items:center;margin-top:",";margin-bottom:",";font-size:",";gap:",";"],ee(12),ee(4),ee(21),ee(4)),uMt=Ae.p.withConfig({displayName:"FileInfoSyled"})(["color:",";"],e=>e.theme.colors.grey),dMt=Ae(Xt).withConfig({displayName:"BrowseButtonStyled"})(["font-size:",";text-decoration:underline;&:hover,&:focus{color:",";}"],ee(21),e=>e.theme.colors.green),fMt=Ae(ut).withConfig({displayName:"IconStyled"})([".light-green,.green,.dark-green{transition:fill 0.2s ease-in;}",""],e=>e.$dragOver&&Tn([".secondary-light-green{fill:",";}.light-green{fill:#8dd4cb;}.green{fill:",";}"],t=>t.theme.colors.azure,t=>t.theme.colors.green)),hMt=Ae.div.withConfig({displayName:"DragElementStyled"})(["position:absolute;width:100%;height:100%;inset:0;"]),pMt=({onInsert:e})=>{var m;const{onClose:t}=Hp(),{inputAcceptedFormats:n}=ta(),{onFileConvert:r,loading:i}=nMt(),{formState:a,register:o,handleSubmit:s,control:l}=iMt(),c=z1t({control:l,name:"url"}),u=g=>{e(g),t()},f=async g=>{try{const b=await r(g);b&&u(b)}catch{}},h=g=>{u(g.url)};return i?He(mMt,{children:[j(gMt,{loading:i,size:"large"}),j("span",{children:"Uploading..."})]}):j(f1,{children:He(yMt,{children:[j(lw.div,{animate:c?"hidden":"show",variants:svt,children:He(GI,{children:[j(aMt,{name:"insert_image",multiple:!1,accept:n,onFileUpload:f}),j(bMt,{children:j(GI,{children:"Or"})})]})}),He("form",{onSubmit:s(h),children:[j(_Mt,{...o("url"),label:"Import from URL",error:(m=a.errors.url)==null?void 0:m.message,accept:"*",placeholder:"Paste a URL..."}),j(XW,{children:c&&j(lw.div,{...ovt,children:j(kMt,{loading:a.isValidating,isDisabled:a.isValidating||!a.isValid,saveText:"Upload",withCancel:!1,saveButtonType:"submit"})})})]})]})})},mMt=Ae(f1).withConfig({displayName:"LoaderContainerStyled"})(["display:flex;flex-direction:column;align-items:center;padding-top:",";padding-bottom:",";min-height:",";font-weight:500;font-size:",";"],ee(40),ee(40),ee(350),ee(21)),gMt=Ae(tG).withConfig({displayName:"LoaderStyled"})(["flex:1;"]),yMt=Ae.div.withConfig({displayName:"DocumentContentContainerStyled"})(["overflow:hidden;padding-top:",";padding-bottom:",";"],ee(40),ee(24)),_Mt=Ae(kp).withConfig({displayName:"UrlInputStyled"})(["margin-bottom:0;"]),bMt=Ae.div.withConfig({displayName:"GapStyled"})(["display:flex;align-items:center;padding-top:",";padding-bottom:",";&::before,&::after{display:block;flex:1;height:",";background-color:",";content:'';}"],ee(32),ee(24),ee(1),e=>e.theme.colors.lightGrey),GI=Ae.span.withConfig({displayName:"GapTextStyled"})(["color:",";padding:"," ",";"],e=>e.theme.colors.grey,ee(0),ee(8)),kMt=Ae(n2).withConfig({displayName:"ModalActionsStyled"})(["padding-top:",";"],ee(24)),bE=({handler:e,onModalOpen:t,onModalClose:n,onInsert:r})=>j(J9,{handler:e,onModalOpen:t,onModalClose:n,children:j(pMt,{onInsert:r})}),wMt=()=>({validateGoogleSlides:F.useCallback(t=>t.startsWith("https://docs.google.com/presentation"),[])}),vMt=({validateGoogleSlides:e})=>d1().shape({url:Jd().required("This field is required").test("validateGoogleSlides",()=>rG.image.google_slides,t=>t?e(t):!0)}).required(),xMt=()=>{const e=wMt();return Jv({mode:"onChange",resolver:X9(vMt(e))})},CMt=()=>{var l;const{editor:e,loading:t}=li(),{onClose:n}=Hp(),{handleSubmit:r,formState:i,register:a}=xMt(),{getLinkCreationTransaction:o}=cG();return He("form",{onSubmit:r(({url:c})=>{t||!e||e.status!==fn.Created||e.action(u=>{const f=u.get(ai),h=o(f,{text:c,href:c});h&&f.dispatch(h),n()})}),children:[j(lG,{children:"Add Google Slides presentation"}),He(EMt,{children:[He(SMt,{children:["Learn how to",j(DMt,{href:"https://support.google.com/docs/answer/183965?hl=en&co=GENIE.Platform%3DDesktop",children:"publish files from Google Drive"})]}),j(kp,{...a("url"),error:(l=i.errors.url)==null?void 0:l.message,placeholder:"Paste the “Publish to the web” link"})]}),j(T9,{children:j(n2,{saveButtonType:"submit",isDisabled:!i.isValid})})]})},SMt=Ae.p.withConfig({displayName:"NoteStyled"})(["font-size:",";color:",";margin-bottom:",";"],ee(14),e=>e.theme.colors.grey,ee(16)),DMt=Ae(oG).withConfig({displayName:"AnchorStyled"})(["margin:0 ",";"],ee(2)),EMt=Ae(f1).withConfig({displayName:"ModalBodyStyled"})(["padding-top:0;"]),kE=({handler:e,onModalOpen:t,onModalClose:n})=>j(J9,{handler:e,onModalOpen:t,onModalClose:n,children:j(CMt,{})}),TMt=()=>{const{colors:e}=Kl(),{onClose:t}=yX(),{onCallCommand:n}=ec(),{onInsertMathBlock:r}=bX(),i=(a,o)=>{t(),n(a,o)};return He(j2,{children:[j(er,{children:j(f2,{editable:!1,onModalOpen:t,handler:({onOpen:a})=>He(ya,{onClick:a,children:[j(ut,{icon:"add_link"}),"Add link"]})})}),j(er,{children:j(bE,{handler:({onOpen:a})=>He(ya,{onClick:a,children:[j(ut,{icon:"embed_image"}),"Add image"]}),onInsert:a=>i(s1.key,{src:a}),onModalOpen:t})}),j(er,{children:He(ya,{onClick:()=>i(jp.key),children:[j(ut,{icon:"code_block"}),"Add code"]})}),j(er,{children:He(ya,{onClick:()=>i(v1.key),children:[j(ut,{icon:"create_table"}),"Add table"]})}),j(er,{children:He(ya,{onClick:r,children:[j(ut,{icon:"math"}),"Add math"]})}),j(er,{children:He(ya,{onClick:()=>i($1.key),children:[j(ut,{icon:"mermaid"}),"Add diagram"]})}),j(er,{children:j(kE,{handler:({onOpen:a})=>He(ya,{onClick:a,children:[j(ut,{icon:"google",fill:e.white}),"Add Google doc"]}),onModalOpen:t})})]})},AMt=()=>j(zMt,{handler:({onToggle:e})=>j(Xt,{onClick:e,oval:!0,space:"small",color:"secondary",children:j(ut,{icon:"settings"})}),children:j(TMt,{})}),zMt=Ae(_X).withConfig({displayName:"DropdownStyled"})(["@media (min-width:","){margin-left:auto;}"],Vt.queries.tablet),FMt=()=>{const[e,t]=F.useState(""),{colors:n}=Kl(),{onCallCommand:r}=ec(),{onInsertMathBlock:i}=bX(),{view:{state:a}}=Np(),o=F.useCallback(()=>{const{selection:l,doc:c}=a,{from:u,to:f}=l,h=c.textBetween(u,f)||"";t(h)},[a]),s=F.useCallback(()=>t(""),[]);return He(Gr,{children:[j($Mt,{children:j(f2,{editable:!1,text:e,onModalOpen:o,onModalClose:s,handler:({onOpen:l})=>j(Xt,{oval:!0,onClick:l,space:"small",color:"secondary",children:j(ut,{icon:"add_link"})})})}),j("li",{children:j(bE,{handler:({onOpen:l})=>j(Xt,{oval:!0,onClick:l,space:"small",color:"secondary",children:j(ut,{icon:"embed_image"})}),onInsert:l=>r(s1.key,{src:l})})}),j("li",{children:j(Xt,{onClick:()=>r(jp.key),oval:!0,space:"small",color:"secondary",children:j(ut,{icon:"code_block"})})}),j("li",{children:j(Xt,{onClick:()=>r(v1.key),oval:!0,space:"small",color:"secondary",children:j(ut,{icon:"create_table"})})}),j("li",{children:j(Xt,{onClick:i,oval:!0,space:"small",color:"secondary",children:j(ut,{icon:"math"})})}),j("li",{children:j(Xt,{onClick:()=>r($1.key),oval:!0,space:"small",color:"secondary",children:j(ut,{icon:"mermaid"})})}),j("li",{children:j(kE,{handler:({onOpen:l})=>j(Xt,{onClick:l,oval:!0,space:"small",color:"secondary",children:j(ut,{icon:"google",fill:n.white})})})})]})},$Mt=Ae.li.withConfig({displayName:"HyperlinkModalItemStyled"})(["@media (min-width:","){margin-left:",";}"],Vt.queries.menuWithSpace,ee(12)),MMt=(e,t,n)=>r=>e.rangeHasMark(t,n,r),OMt=e=>t=>!!t.isInSet(e),NMt=()=>{const{view:e}=Np(),{state:t}=e,{selection:n}=t,{editor:r,loading:i}=li();return F.useMemo(()=>{if(!r||i||r.status!==fn.Created)return{isStrongActive:!1,isEmphasisActive:!1,isStrikethroughActive:!1};const{ctx:o}=r,{doc:s,storedMarks:l}=t,{from:c,to:u,empty:f,$from:h}=n;if(f){const g=OMt(l||h.marks());return{isStrongActive:!!(o&&g(bp.type(o))),isEmphasisActive:!!(o&&g(_p.type(o))),isStrikethroughActive:!!(o&&g(vp.type(o)))}}const m=MMt(s,c,u);return{isStrongActive:!!(o&&m(bp.type(o))),isEmphasisActive:!!(o&&m(_p.type(o))),isStrikethroughActive:!!(o&&m(vp.type(o)))}},[t,n,r,i])},LMt=()=>{const{onCallCommand:e}=ec(),t=NMt();return He(Gr,{children:[j(IMt,{children:j(z5,{onClick:()=>e(i1.key),oval:!0,space:"small",color:"secondary",$isActive:t.isStrongActive,children:j(ut,{icon:"bold"})})}),j("li",{children:j(z5,{onClick:()=>e(r1.key),oval:!0,space:"small",color:"secondary",$isActive:t.isEmphasisActive,children:j(ut,{icon:"italic"})})}),j("li",{children:j(z5,{onClick:()=>e(_1.key),oval:!0,space:"small",color:"secondary",$isActive:t.isStrikethroughActive,children:j(ut,{icon:"strikethrough"})})})]})},IMt=Ae.li.withConfig({displayName:"BoldItemStyled"})(["margin-left:",";@media (min-width:","){margin-left:",";}"],ee(2),Vt.queries.menuWithSpace,ee(12)),z5=Ae(Xt).withConfig({displayName:"ButtonStyled"})(["",""],e=>e.$isActive&&Tn(["background-color:",";"],t=>t.theme.colors.secondaryGrey)),KI=(e,t)=>{const{$from:n,$to:r}=e;return!!n.blockRange(r,i=>i.childCount>0&&i.type.name===t)},BMt=()=>{const{view:e}=Np(),{state:t}=e,{selection:n}=t,{onCallCommand:r}=ec();return{onBulletListToggle:()=>{KI(n,"bullet_list")?r(vg.key):r(uG.key)},onOrderedListToggle:()=>{KI(n,"ordered_list")?r(vg.key):r(dG.key)}}},RMt=()=>{const{onBulletListToggle:e,onOrderedListToggle:t}=BMt();return He(Gr,{children:[j(PMt,{children:j(Xt,{onClick:e,oval:!0,space:"small",color:"secondary",children:j(ut,{icon:"bulleted_list"})})}),j("li",{children:j(Xt,{onClick:t,oval:!0,space:"small",color:"secondary",children:j(ut,{icon:"numbered_list"})})})]})},PMt=Ae.li.withConfig({displayName:"BulletListItemStyled"})(["margin-left:",";@media (min-width:","){margin-left:",";}"],ee(2),Vt.queries.menuWithSpace,ee(12)),jMt=[{value:"title",label:"Title"},{value:"subtitle",label:"Subtitle"},{value:"normal",label:"Normal Text"}],VMt=()=>{const{onCallCommand:e}=ec();return j(qMt,{options:jMt,placeholder:"Select text..",onChange:({value:n})=>{qp(n).match("title",()=>e(eo.key,1)).match("subtitle",()=>e(eo.key,2)).match("normal",()=>e(a1.key))}})},qMt=Ae(lU).withConfig({displayName:"SelectStyled"})(["margin-left:",";@media (min-width:","){margin-left:",";}.Dropdown-control{background-color:rgb(31 31 31 / 80%);.Dropdown-placeholder{color:",";}.Dropdown-arrow-wrapper svg{fill:",";}}"],ee(2),Vt.queries.menuWithSpace,ee(12),e=>e.theme.colors.white,e=>e.theme.colors.white),HMt=()=>{const{view:e}=Np(),{state:t}=e;return{isRedoDisabled:kpt(t)===0,isUndoDisabled:bpt(t)===0}},UMt=()=>{const{colors:e}=Kl(),{onCallCommand:t}=ec(),{isRedoDisabled:n,isUndoDisabled:r}=HMt();return He(Gr,{children:[j("li",{children:j(YI,{onClick:()=>t(e1.key),oval:!0,disabled:r,space:"small",color:"secondary",children:j(ut,{icon:"undo",fill:r?"#8A8A8A":e.lightBlack})})}),j("li",{children:j(YI,{onClick:()=>t(CS.key),oval:!0,space:"small",disabled:n,color:"secondary",children:j(ut,{icon:"redo",fill:n?"#8A8A8A":e.lightBlack})})})]})},YI=Ae(Xt).withConfig({displayName:"ButtonStyled"})(["",""],e=>e.disabled&&Tn(["background-color:transparent;"])),WMt=()=>{const{onClose:e}=yX(),{onCallCommand:t}=ec(),n=r=>{e(),t(r)};return He(j2,{children:[j(er,{children:He(ya,{onClick:()=>n(i1.key),children:[j(ut,{icon:"bold"}),"Bold"]})}),j(er,{children:He(ya,{onClick:()=>n(r1.key),children:[j(ut,{icon:"italic"}),"Italic"]})}),j(er,{children:He(ya,{onClick:()=>n(_1.key),children:[j(ut,{icon:"strikethrough"}),"Strikethrough"]})}),j(er,{onClick:()=>n(Yv.key),children:He(ya,{children:[j(ut,{icon:"bulleted_list"}),"Bullet list"]})}),j(er,{children:He(ya,{onClick:()=>n(Zv.key),children:[j(ut,{icon:"numbered_list"}),"Numbered list"]})})]})},GMt=()=>j(KMt,{handler:({onToggle:e})=>j(Xt,{onClick:e,oval:!0,space:"small",color:"secondary",children:j(ut,{icon:"format_dropdown"})}),children:j(WMt,{})}),KMt=Ae(_X).withConfig({displayName:"DropdownStyled"})(["margin-left:auto;"]),ZI=e=>typeof window<"u"?window.matchMedia(e).matches:!1,XI=({query:e})=>{const[t,n]=F.useState(ZI(e)),r=F.useCallback(i=>{n(ZI(i))},[]);return F.useEffect(()=>{const i=()=>r(e),a=window.matchMedia(e);return i(),a.addEventListener("change",i),()=>{a.removeEventListener("change",i)}},[e,r]),t},YMt=()=>{const{queries:e}=Kl(),{mode:t,stickyOnMenu:n,showMenu:r}=ta(),i=XI({query:`(min-width: ${e.tablet})`}),a=XI({query:`(min-width: ${e.laptop})`});return t==="preview"||!r?null:He(ZMt,{$stickyOnMenu:n,children:[j(UMt,{}),j(VMt,{}),i?He(Gr,{children:[j(LMt,{}),j(RMt,{})]}):j(GMt,{}),a?j(FMt,{}):j(AMt,{})]})},ZMt=Ae.ul.withConfig({displayName:"MenuBarListStyled"})(["position:sticky;top:",";list-style-type:none;display:flex;flex-wrap:wrap;align-items:center;background-color:",";border-radius:",";margin-bottom:",";z-index:",";&&&{padding:"," ",";@media (min-width:","){padding:"," ",";}}"],e=>`${e.$stickyOnMenu}px`,e=>e.theme.colors.secondaryLightGrey,ee(4),ee(20),e=>e.theme.zIndexes.menu,ee(8),ee(2),Vt.queries.menuWithSpace,ee(8),ee(8)),XMt=()=>{const e=$v(),t=F.useMemo(()=>e({as:"span",component:YMt}),[e]);return F.useMemo(()=>yr(()=>{const r=new Fn("MILKDOWN_MENU_BAR");return new Bn({key:r,state:{init(i,a){const o=[t(0)];return{decorations:en.create(a.doc,o),pos:0}},apply(i){const a=[t(0)];return{decorations:en.create(i.doc,a),pos:0}}},props:{decorations(i){return r.getState(i).decorations}}})}),[t])},JMt=({codePanelRef:e})=>{const{components:{editor:t}}=Kl(),{node:n}=es(),r=F.useRef(!1),i=n.attrs.identity,a=F.useMemo(()=>n.attrs.value,[n.attrs.value]),o=F.useCallback(async(s=3)=>{const l=e.current;if(l&&a.length!==0&&!r.current)try{Ta.initialize({startOnLoad:!1,theme:"base",themeVariables:{primaryColor:t.mermaid.primaryColor,primaryTextColor:t.mermaid.primaryTextColor,primaryBorderColor:t.mermaid.primaryBorderColor,lineColor:t.mermaid.lineColor,secondaryColor:t.mermaid.secondaryColor,tertiaryColor:t.mermaid.tertiaryColor}}),r.current=!0;const{svg:c,bindFunctions:u}=await Ta.render(i,a);r.current=!1,l.innerHTML=c,u==null||u(l)}catch(c){if(console.error(c),s===0)return;setTimeout(()=>{o(s-1)},200)}},[a,i,e,t]);F.useEffect(()=>{requestAnimationFrame(()=>{o()})},[o])},JI=()=>{const e=F.useRef(null);return JMt({codePanelRef:e}),j(QMt,{id:"mermaid-preview",ref:e})},QMt=Ae.div.withConfig({displayName:"MermaidContainerStyled"})(["text-align:center;.edgeLabel{display:block !important;}"]),eOt=({onSourceUpdate:e})=>{const t=F.useRef(null),{node:n}=es(),{onTabChange:r}=v2(),i=()=>{var s;const o=((s=t.current)==null?void 0:s.value)||"";e(o),r(kX.Preview)},a=F.useMemo(()=>n.attrs.value,[n.attrs.value]);return He(Gr,{children:[j(tOt,{ref:t,defaultValue:a}),j(nOt,{oval:!0,variant:"contained",color:"primary",onClick:i,children:"Update"})]})},tOt=Ae(HK).withConfig({displayName:"TextareaStyled"})(["outline:0;background-color:transparent;border:0;min-height:",";font-family:",";font-size:",";line-height:",";width:100%;resize:vertical;"],ee(60),e=>e.theme.fonts.secondary,ee(16),ee(22)),nOt=Ae(Xt).withConfig({displayName:"UpdateButtonStyled"})(["position:absolute;top:",";right:",";"],ee(16),ee(16));var kX=(e=>(e.Preview="preview",e.Source="soure",e))(kX||{});const rOt=()=>{const{setAttrs:e}=es(),{mode:t}=ta(),n=r=>{e({value:r})};return t==="preview"?j(QI,{children:j(JI,{})}):j(QI,{contentEditable:!1,children:He(GK,{initialTab:"preview",children:[He(WK,{children:[j(yw,{label:"preview",children:"Preview"}),j(yw,{label:"soure",children:"Source"})]}),j(x2,{label:"preview",children:j(JI,{})}),j(iOt,{label:"soure",children:j(eOt,{onSourceUpdate:n})})]})})},iOt=Ae(x2).withConfig({displayName:"SourceTabPanelStyled"})(["padding-right:0;"]),QI=Ae.div.withConfig({displayName:"MermaidNodeContainerStyled"})(["margin:"," 0;"],ee(16)),aOt=()=>{const e=aS();return F.useMemo(()=>[J$t,jk(Qp.node,()=>e({component:rOt,stopEvent:()=>!0}))].flat(),[e])},oOt=e=>{var r,i;const{editable:t,state:{doc:n}}=e;return!(!t||n.childCount>1||!((r=n.firstChild)!=null&&r.isTextblock)||n.firstChild.content.size>0||((i=n.firstChild)==null?void 0:i.type.name)!=="paragraph")},sOt=()=>{const{placeholder:e}=ta();return F.useMemo(()=>yr(()=>{const n=new Fn("MILKDOWN_PLACEHOLDER_PLUGIN"),r=i=>{oOt(i)?i.dom.setAttribute("data-placeholder",e):i.dom.removeAttribute("data-placeholder")};return new Bn({key:n,view:i=>(r(i),{update:r})})}),[e])};Ws.displayName="clike";Ws.aliases=[];function Ws(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}M1.displayName="c";M1.aliases=[];function M1(e){e.register(Ws),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}V2.displayName="cpp";V2.aliases=[];function V2(e){e.register(M1),function(t){var n=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,r=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return n.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return n.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:n,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(e)}wE.displayName="arduino";wE.aliases=["ino"];function wE(e){e.register(V2),e.languages.arduino=e.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),e.languages.ino=e.languages.arduino}vE.displayName="bash";vE.aliases=["sh","shell"];function vE(e){(function(t){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:r,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=t.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=i.variable[1].inside,s=0;s<a.length;s++)o[a[s]]=t.languages.bash[a[s]];t.languages.sh=t.languages.bash,t.languages.shell=t.languages.bash})(e)}xE.displayName="csharp";xE.aliases=["cs","dotnet"];function xE(e){e.register(Ws),function(t){function n(L,de){return L.replace(/<<(\d+)>>/g,function(ue,I){return"(?:"+de[+I]+")"})}function r(L,de,ue){return RegExp(n(L,de),ue||"")}function i(L,de){for(var ue=0;ue<de;ue++)L=L.replace(/<<self>>/g,function(){return"(?:"+L+")"});return L.replace(/<<self>>/g,"[^\\s\\S]")}var a={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function o(L){return"\\b(?:"+L.trim().replace(/ /g,"|")+")\\b"}var s=o(a.typeDeclaration),l=RegExp(o(a.type+" "+a.typeDeclaration+" "+a.contextual+" "+a.other)),c=o(a.typeDeclaration+" "+a.contextual+" "+a.other),u=o(a.type+" "+a.typeDeclaration+" "+a.other),f=i(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=i(/\((?:[^()]|<<self>>)*\)/.source,2),m=/@?\b[A-Za-z_]\w*\b/.source,g=n(/<<0>>(?:\s*<<1>>)?/.source,[m,f]),b=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[c,g]),C=/\[\s*(?:,\s*)*\]/.source,w=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[b,C]),k=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[f,h,C]),S=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[k]),E=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[S,b,C]),A={keyword:l,punctuation:/[<>()?,.:[\]]/},_=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,T=/"(?:\\.|[^\\"\r\n])*"/.source,$=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[$]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[T]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[b]),lookbehind:!0,inside:A},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[m,E]),lookbehind:!0,inside:A},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[m]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[s,g]),lookbehind:!0,inside:A},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[b]),lookbehind:!0,inside:A},{pattern:r(/(\bwhere\s+)<<0>>/.source,[m]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[w]),lookbehind:!0,inside:A},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[E,u,m]),inside:A}],keyword:l,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[m]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[m]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:A},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[E,b]),inside:A,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[E]),lookbehind:!0,inside:A,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[m,f]),inside:{function:r(/^<<0>>/.source,[m]),generic:{pattern:RegExp(f),alias:"class-name",inside:A}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[s,g,m,E,l.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,h]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:l,"class-name":{pattern:RegExp(E),greedy:!0,inside:A},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var R=T+"|"+_,O=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[R]),G=i(n(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[O]),2),V=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,Z=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[b,G]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[V,Z]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[V]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[G]),inside:t.languages.csharp},"class-name":{pattern:RegExp(b),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var W=/:[^}\r\n]+/.source,Y=i(n(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[O]),2),fe=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Y,W]),ae=i(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[R]),2),Q=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[ae,W]);function ce(L,de){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[L]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[de,W]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[fe]),lookbehind:!0,greedy:!0,inside:ce(fe,Y)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[Q]),lookbehind:!0,greedy:!0,inside:ce(Q,ae)}],char:{pattern:RegExp(_),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(e)}O1.displayName="markup";O1.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function O1(e){e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var i={};i["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[r]},i.cdata=/^<!\[CDATA\[|\]\]>$/i;var a={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:i}};a["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var o={};o[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:a},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}e0.displayName="css";e0.aliases=[];function e0(e){(function(t){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+n.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(e)}CE.displayName="diff";CE.aliases=[];function CE(e){(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var n={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(n).forEach(function(r){var i=n[r],a=[];/^\w+$/.test(r)||a.push(/\w+/.exec(r)[0]),r==="diff"&&a.push("bold"),t.languages.diff[r]={pattern:RegExp("^(?:["+i+`].*(?:\r ?| -|(?![\\s\\S])))+`,"m"),alias:a,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(r)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:n})})(e)}SE.displayName="go";SE.aliases=[];function SE(e){e.register(Ws),e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}DE.displayName="ini";DE.aliases=[];function DE(e){e.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}EE.displayName="java";EE.aliases=[];function EE(e){e.register(Ws),function(t){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:i.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:i.inside}],keyword:n,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:i.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:i.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return n.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(e)}TE.displayName="regex";TE.aliases=[];function TE(e){(function(t){var n={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},r=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},a={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},o="(?:[^\\\\-]|"+r.source+")",s=RegExp(o+"-"+o),l={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:s,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":a,escape:r}},"special-escape":n,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":l}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:r,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":l}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(e)}q2.displayName="javascript";q2.aliases=["js"];function q2(e){e.register(Ws),e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}AE.displayName="json";AE.aliases=["webmanifest"];function AE(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}zE.displayName="kotlin";zE.aliases=["kt","kts"];function zE(e){e.register(Ws),function(t){t.languages.kotlin=t.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete t.languages.kotlin["class-name"];var n={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.kotlin}};t.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:n},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:n},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete t.languages.kotlin.string,t.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),t.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),t.languages.kt=t.languages.kotlin,t.languages.kts=t.languages.kotlin}(e)}FE.displayName="less";FE.aliases=[];function FE(e){e.register(e0),e.languages.less=e.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}$E.displayName="lua";$E.aliases=[];function $E(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}ME.displayName="makefile";ME.aliases=[];function ME(e){e.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}OE.displayName="yaml";OE.aliases=["yml"];function OE(e){(function(t){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+r.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+r.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function s(l,c){c=(c||"").replace(/m/g,"")+"m";var u=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return i}).replace(/<<value>>/g,function(){return l});return RegExp(u,c)}t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return i}).replace(/<<key>>/g,function(){return"(?:"+a+"|"+o+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:s(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:s(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:s(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:s(o),lookbehind:!0,greedy:!0},number:{pattern:s(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml})(e)}NE.displayName="markdown";NE.aliases=["md"];function NE(e){e.register(O1),function(t){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(s){return s=s.replace(/<inner>/g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+s+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+o+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+o+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(s){["url","bold","italic","strike","code-snippet"].forEach(function(l){s!==l&&(t.languages.markdown[s].inside.content.inside[l]=t.languages.markdown[l])})}),t.hooks.add("after-tokenize",function(s){if(s.language!=="markdown"&&s.language!=="md")return;function l(c){if(!(!c||typeof c=="string"))for(var u=0,f=c.length;u<f;u++){var h=c[u];if(h.type!=="code"){l(h.content);continue}var m=h.content[1],g=h.content[3];if(m&&g&&m.type==="code-language"&&g.type==="code-block"&&typeof m.content=="string"){var b=m.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");b=(/[a-z][\w-]*/i.exec(b)||[""])[0].toLowerCase();var C="language-"+b;g.alias?typeof g.alias=="string"?g.alias=[g.alias,C]:g.alias.push(C):g.alias=[C]}}}l(s.tokens)}),t.hooks.add("wrap",function(s){if(s.type==="code-block"){for(var l="",c=0,u=s.classes.length;c<u;c++){var f=s.classes[c],h=/language-(.+)/.exec(f);if(h){l=h[1];break}}var m=t.languages[l];if(m)s.content=t.highlight(s.content.value,m,l);else if(l&&l!=="none"&&t.plugins.autoloader){var g="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);s.attributes.id=g,t.plugins.autoloader.loadLanguages(l,function(){var b=document.getElementById(g);b&&(b.innerHTML=t.highlight(b.textContent,t.languages[l],l))})}}}),RegExp(t.languages.markup.tag.pattern.source,"gi"),t.languages.md=t.languages.markdown}(e)}LE.displayName="objectivec";LE.aliases=["objc"];function LE(e){e.register(M1),e.languages.objectivec=e.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}IE.displayName="perl";IE.aliases=[];function IE(e){(function(t){var n=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;t.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,n+/\s*/.source+n].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(e)}H2.displayName="markup-templating";H2.aliases=[];function H2(e){e.register(O1),function(t){function n(r,i){return"___"+r.toUpperCase()+i+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,i,a,o){if(r.language===i){var s=r.tokenStack=[];r.code=r.code.replace(a,function(l){if(typeof o=="function"&&!o(l))return l;for(var c=s.length,u;r.code.indexOf(u=n(i,c))!==-1;)++c;return s[c]=l,u}),r.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(r,i){if(r.language!==i||!r.tokenStack)return;r.grammar=t.languages[i];var a=0,o=Object.keys(r.tokenStack);function s(l){for(var c=0;c<l.length&&!(a>=o.length);c++){var u=l[c];if(typeof u=="string"||u.content&&typeof u.content=="string"){var f=o[a],h=r.tokenStack[f],m=typeof u=="string"?u:u.content,g=n(i,f),b=m.indexOf(g);if(b>-1){++a;var C=m.substring(0,b),w=new t.Token(i,t.tokenize(h,r.grammar),"language-"+i,h),k=m.substring(b+g.length),S=[];C&&S.push.apply(S,s([C])),S.push(w),k&&S.push.apply(S,s([k])),typeof u=="string"?l.splice.apply(l,[c,1].concat(S)):u.content=S}}else u.content&&s(u.content)}return l}s(r.tokens)}}})}(e)}BE.displayName="php";BE.aliases=[];function BE(e){e.register(H2),function(t){var n=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,a=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,o=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:n,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:a,punctuation:o};var s={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},l=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:s}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:s}}];t.languages.insertBefore("php","variable",{string:l,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:n,string:l,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:i,operator:a,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(c){if(/<\?/.test(c.code)){var u=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;t.languages["markup-templating"].buildPlaceholders(c,"php",u)}}),t.hooks.add("after-tokenize",function(c){t.languages["markup-templating"].tokenizePlaceholders(c,"php")})}(e)}RE.displayName="python";RE.aliases=["py"];function RE(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}PE.displayName="r";PE.aliases=[];function PE(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}jE.displayName="ruby";jE.aliases=["rb"];function jE(e){e.register(Ws),function(t){t.languages.ruby=t.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),t.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:t.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete t.languages.ruby.function;var r="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",i=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;t.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+i),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+i+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),t.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+r),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+r),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete t.languages.ruby.string,t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),t.languages.rb=t.languages.ruby}(e)}VE.displayName="rust";VE.aliases=[];function VE(e){(function(t){for(var n=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,r=0;r<2;r++)n=n.replace(/<self>/g,function(){return n});n=n.replace(/<self>/g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+n),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string})(e)}qE.displayName="sass";qE.aliases=[];function qE(e){e.register(e0),function(t){t.languages.sass=t.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete t.languages.sass.atrule;var n=/\$[-\w]+|#\{\$[-\w]+\}/,r=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];t.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:n,operator:r}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:n,operator:r,important:t.languages.sass.important}}}),delete t.languages.sass.property,delete t.languages.sass.important,t.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(e)}HE.displayName="scss";HE.aliases=[];function HE(e){e.register(e0),e.languages.scss=e.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}UE.displayName="sql";UE.aliases=[];function UE(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}WE.displayName="swift";WE.aliases=[];function WE(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=e.languages.swift})}GE.displayName="typescript";GE.aliases=["ts"];function GE(e){e.register(q2),function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var n=t.languages.extend("typescript",{});delete n["class-name"],t.languages.typescript["class-name"].inside=n,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n}}}}),t.languages.ts=t.languages.typescript}(e)}U2.displayName="basic";U2.aliases=[];function U2(e){e.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}KE.displayName="vbnet";KE.aliases=[];function KE(e){e.register(U2),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}class N1{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}N1.prototype.property={};N1.prototype.normal={};N1.prototype.space=null;function kX(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new N1(n,r,t)}function Pg(e){return e.toLowerCase()}class Co{constructor(t,n){this.property=t,this.attribute=n}}Co.prototype.space=null;Co.prototype.boolean=!1;Co.prototype.booleanish=!1;Co.prototype.overloadedBoolean=!1;Co.prototype.number=!1;Co.prototype.commaSeparated=!1;Co.prototype.spaceSeparated=!1;Co.prototype.commaOrSpaceSeparated=!1;Co.prototype.mustUseProperty=!1;Co.prototype.defined=!1;let sOt=0;const Wt=wf(),hr=wf(),wX=wf(),Ne=wf(),Ln=wf(),Kh=wf(),ha=wf();function wf(){return 2**++sOt}const L7=Object.freeze(Object.defineProperty({__proto__:null,boolean:Wt,booleanish:hr,commaOrSpaceSeparated:ha,commaSeparated:Kh,number:Ne,overloadedBoolean:wX,spaceSeparated:Ln},Symbol.toStringTag,{value:"Module"})),F5=Object.keys(L7);class YE extends Co{constructor(t,n,r,i){let a=-1;if(super(t,n),eB(this,"space",i),typeof r=="number")for(;++a<F5.length;){const o=F5[a];eB(this,F5[a],(r&L7[o])===L7[o])}}}YE.prototype.defined=!0;function eB(e,t,n){n&&(e[t]=n)}const lOt={}.hasOwnProperty;function t0(e){const t={},n={};let r;for(r in e.properties)if(lOt.call(e.properties,r)){const i=e.properties[r],a=new YE(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Pg(r)]=r,n[Pg(a.attribute)]=r}return new N1(t,n,e.space)}const vX=t0({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),xX=t0({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function CX(e,t){return t in e?e[t]:t}function SX(e,t){return CX(e,t.toLowerCase())}const DX=t0({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:SX,properties:{xmlns:null,xmlnsXLink:null}}),EX=t0({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:hr,ariaAutoComplete:null,ariaBusy:hr,ariaChecked:hr,ariaColCount:Ne,ariaColIndex:Ne,ariaColSpan:Ne,ariaControls:Ln,ariaCurrent:null,ariaDescribedBy:Ln,ariaDetails:null,ariaDisabled:hr,ariaDropEffect:Ln,ariaErrorMessage:null,ariaExpanded:hr,ariaFlowTo:Ln,ariaGrabbed:hr,ariaHasPopup:null,ariaHidden:hr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ln,ariaLevel:Ne,ariaLive:null,ariaModal:hr,ariaMultiLine:hr,ariaMultiSelectable:hr,ariaOrientation:null,ariaOwns:Ln,ariaPlaceholder:null,ariaPosInSet:Ne,ariaPressed:hr,ariaReadOnly:hr,ariaRelevant:null,ariaRequired:hr,ariaRoleDescription:Ln,ariaRowCount:Ne,ariaRowIndex:Ne,ariaRowSpan:Ne,ariaSelected:hr,ariaSetSize:Ne,ariaSort:null,ariaValueMax:Ne,ariaValueMin:Ne,ariaValueNow:Ne,ariaValueText:null,role:null}}),cOt=t0({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:SX,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Kh,acceptCharset:Ln,accessKey:Ln,action:null,allow:null,allowFullScreen:Wt,allowPaymentRequest:Wt,allowUserMedia:Wt,alt:null,as:null,async:Wt,autoCapitalize:null,autoComplete:Ln,autoFocus:Wt,autoPlay:Wt,capture:Wt,charSet:null,checked:Wt,cite:null,className:Ln,cols:Ne,colSpan:null,content:null,contentEditable:hr,controls:Wt,controlsList:Ln,coords:Ne|Kh,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Wt,defer:Wt,dir:null,dirName:null,disabled:Wt,download:wX,draggable:hr,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Wt,formTarget:null,headers:Ln,height:Ne,hidden:Wt,high:Ne,href:null,hrefLang:null,htmlFor:Ln,httpEquiv:Ln,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:Wt,itemId:null,itemProp:Ln,itemRef:Ln,itemScope:Wt,itemType:Ln,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Wt,low:Ne,manifest:null,max:null,maxLength:Ne,media:null,method:null,min:null,minLength:Ne,multiple:Wt,muted:Wt,name:null,nonce:null,noModule:Wt,noValidate:Wt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Wt,optimum:Ne,pattern:null,ping:Ln,placeholder:null,playsInline:Wt,poster:null,preload:null,readOnly:Wt,referrerPolicy:null,rel:Ln,required:Wt,reversed:Wt,rows:Ne,rowSpan:Ne,sandbox:Ln,scope:null,scoped:Wt,seamless:Wt,selected:Wt,shape:null,size:Ne,sizes:null,slot:null,span:Ne,spellCheck:hr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ne,step:null,style:null,tabIndex:Ne,target:null,title:null,translate:null,type:null,typeMustMatch:Wt,useMap:null,value:hr,width:Ne,wrap:null,align:null,aLink:null,archive:Ln,axis:null,background:null,bgColor:null,border:Ne,borderColor:null,bottomMargin:Ne,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Wt,declare:Wt,event:null,face:null,frame:null,frameBorder:null,hSpace:Ne,leftMargin:Ne,link:null,longDesc:null,lowSrc:null,marginHeight:Ne,marginWidth:Ne,noResize:Wt,noHref:Wt,noShade:Wt,noWrap:Wt,object:null,profile:null,prompt:null,rev:null,rightMargin:Ne,rules:null,scheme:null,scrolling:hr,standby:null,summary:null,text:null,topMargin:Ne,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ne,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Wt,disableRemotePlayback:Wt,prefix:null,property:null,results:Ne,security:null,unselectable:null}}),uOt=t0({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:CX,properties:{about:ha,accentHeight:Ne,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ne,amplitude:Ne,arabicForm:null,ascent:Ne,attributeName:null,attributeType:null,azimuth:Ne,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ne,by:null,calcMode:null,capHeight:Ne,className:Ln,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Ne,diffuseConstant:Ne,direction:null,display:null,dur:null,divisor:Ne,dominantBaseline:null,download:Wt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ne,enableBackground:null,end:null,event:null,exponent:Ne,externalResourcesRequired:null,fill:null,fillOpacity:Ne,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Kh,g2:Kh,glyphName:Kh,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ne,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ne,horizOriginX:Ne,horizOriginY:Ne,id:null,ideographic:Ne,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ne,k:Ne,k1:Ne,k2:Ne,k3:Ne,k4:Ne,kernelMatrix:ha,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ne,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ne,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Ne,overlineThickness:Ne,paintOrder:null,panose1:null,path:null,pathLength:Ne,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ln,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ne,pointsAtY:Ne,pointsAtZ:Ne,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ha,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ha,rev:ha,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ha,requiredFeatures:ha,requiredFonts:ha,requiredFormats:ha,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Ne,specularExponent:Ne,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ne,strikethroughThickness:Ne,string:null,stroke:null,strokeDashArray:ha,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ne,strokeOpacity:Ne,strokeWidth:null,style:null,surfaceScale:Ne,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ha,tabIndex:Ne,tableValues:null,target:null,targetX:Ne,targetY:Ne,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ha,to:null,transform:null,u1:null,u2:null,underlinePosition:Ne,underlineThickness:Ne,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ne,values:null,vAlphabetic:Ne,vMathematical:Ne,vectorEffect:null,vHanging:Ne,vIdeographic:Ne,version:null,vertAdvY:Ne,vertOriginX:Ne,vertOriginY:Ne,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ne,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),dOt=/^data[-\w.:]+$/i,tB=/-[a-z]/g,fOt=/[A-Z]/g;function hOt(e,t){const n=Pg(t);let r=t,i=Co;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&dOt.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(tB,mOt);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!tB.test(a)){let o=a.replace(fOt,pOt);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=YE}return new i(r,t)}function pOt(e){return"-"+e.toLowerCase()}function mOt(e){return e.charAt(1).toUpperCase()}const gOt=kX([xX,vX,DX,EX,cOt],"html");kX([xX,vX,DX,EX,uOt],"svg");const nB=/[#.]/g;function yOt(e,t){const n=e||"",r={};let i=0,a,o;for(;i<n.length;){nB.lastIndex=i;const s=nB.exec(n),l=n.slice(i,s?s.index:n.length);l&&(a?a==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:o=l,i+=l.length),s&&(a=s[0],i++)}return{type:"element",tagName:o||t||"div",properties:r,children:[]}}function rB(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function iB(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const o=n.slice(i,r).trim();(o||!a)&&t.push(o),i=r+1,r=n.indexOf(",",i)}return t}const _Ot=new Set(["menu","submit","reset","button"]),I7={}.hasOwnProperty;function bOt(e,t,n){const r=n&&xOt(n);return function(a,o,...s){let l=-1,c;if(a==null)c={type:"root",children:[]},s.unshift(o);else if(c=yOt(a,t),c.tagName=c.tagName.toLowerCase(),r&&I7.call(r,c.tagName)&&(c.tagName=r[c.tagName]),kOt(o,c.tagName)){let u;for(u in o)I7.call(o,u)&&wOt(e,c.properties,u,o[u])}else s.unshift(o);for(;++l<s.length;)B7(c.children,s[l]);return c.type==="element"&&c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}}function kOt(e,t){return e==null||typeof e!="object"||Array.isArray(e)?!1:t==="input"||!e.type||typeof e.type!="string"?!0:"children"in e&&Array.isArray(e.children)?!1:t==="button"?_Ot.has(e.type.toLowerCase()):!("value"in e)}function wOt(e,t,n,r){const i=hOt(e,n);let a=-1,o;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;o=r}else typeof r=="boolean"?o=r:typeof r=="string"?i.spaceSeparated?o=rB(r):i.commaSeparated?o=iB(r):i.commaOrSpaceSeparated?o=rB(iB(r).join(" ")):o=aB(i,i.property,r):Array.isArray(r)?o=r.concat():o=i.property==="style"?vOt(r):String(r);if(Array.isArray(o)){const s=[];for(;++a<o.length;)s[a]=aB(i,i.property,o[a]);o=s}i.property==="className"&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[i.property]=o}}function B7(e,t){let n=-1;if(t!=null)if(typeof t=="string"||typeof t=="number")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++n<t.length;)B7(e,t[n]);else if(typeof t=="object"&&"type"in t)t.type==="root"?B7(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function aB(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Pg(n)===Pg(t)))return!0}return n}function vOt(e){const t=[];let n;for(n in e)I7.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}function xOt(e){const t={};let n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}const COt=bOt(gOt,"div"),SOt=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],oB={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function TX(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function DOt(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function EOt(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function sB(e){return EOt(e)||TX(e)}const Gf=String.fromCharCode,TOt=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function AOt(e,t={}){const n=typeof t.additional=="string"?t.additional.charCodeAt(0):t.additional,r=[];let i=0,a=-1,o="",s,l;t.position&&("start"in t.position||"indent"in t.position?(l=t.position.indent,s=t.position.start):s=t.position);let c=(s?s.line:0)||1,u=(s?s.column:0)||1,f=m(),h;for(i--;++i<=e.length;)if(h===10&&(u=(l?l[a]:0)||1),h=e.charCodeAt(i),h===38){const C=e.charCodeAt(i+1);if(C===9||C===10||C===12||C===32||C===38||C===60||Number.isNaN(C)||n&&C===n){o+=Gf(h),u++;continue}const w=i+1;let k=w,S=w,E;if(C===35){S=++k;const V=e.charCodeAt(S);V===88||V===120?(E="hexadecimal",S=++k):E="decimal"}else E="named";let A="",_="",T="";const $=E==="named"?sB:E==="decimal"?TX:DOt;for(S--;++S<=e.length;){const V=e.charCodeAt(S);if(!$(V))break;T+=Gf(V),E==="named"&&SOt.includes(T)&&(A=T,_=mg(T))}let R=e.charCodeAt(S)===59;if(R){S++;const V=E==="named"?mg(T):!1;V&&(A=T,_=V)}let O=1+S-w,G="";if(!(!R&&t.nonTerminated===!1))if(!T)E!=="named"&&g(4,O);else if(E==="named"){if(R&&!_)g(5,1);else if(A!==T&&(S=k+A.length,O=1+S-k,R=!1),!R){const V=A?1:3;if(t.attribute){const Z=e.charCodeAt(S);Z===61?(g(V,O),_=""):sB(Z)?_="":g(V,O)}else g(V,O)}G=_}else{R||g(2,O);let V=Number.parseInt(T,E==="hexadecimal"?16:10);if(zOt(V))g(7,O),G=Gf(65533);else if(V in oB)g(6,O),G=oB[V];else{let Z="";FOt(V)&&g(6,O),V>65535&&(V-=65536,Z+=Gf(V>>>10|55296),V=56320|V&1023),G=Z+Gf(V)}}if(G){b(),f=m(),i=S-1,u+=S-w+1,r.push(G);const V=m();V.offset++,t.reference&&t.reference.call(t.referenceContext,G,{start:f,end:V},e.slice(w-1,S)),f=V}else T=e.slice(w-1,S),o+=T,u+=T.length,i=S-1}else h===10&&(c++,a++,u=0),Number.isNaN(h)?b():(o+=Gf(h),u++);return r.join("");function m(){return{line:c,column:u,offset:i+((s?s.offset:0)||0)}}function g(C,w){let k;t.warning&&(k=m(),k.column+=w,k.offset+=w,t.warning.call(t.warningContext,TOt[C],k,C))}function b(){o&&(r.push(o),t.text&&t.text.call(t.textContext,o,{start:f,end:m()}),o="")}}function zOt(e){return e>=55296&&e<=57343||e>1114111}function FOt(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var $Ot=0,T_={},zr={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++$Ot}),e.__id},clone:function e(t,n){n=n||{};var r,i;switch(zr.util.type(t)){case"Object":if(i=zr.util.objId(t),n[i])return n[i];r={},n[i]=r;for(var a in t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=zr.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(o,s){r[s]=e(o,n)}),r);default:return t}}},languages:{plain:T_,plaintext:T_,text:T_,txt:T_,extend:function(e,t){var n=zr.util.clone(zr.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||zr.languages;var i=r[e],a={};for(var o in i)if(i.hasOwnProperty(o)){if(o==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(o)||(a[o]=i[o])}var l=r[e];return r[e]=a,zr.languages.DFS(zr.languages,function(c,u){u===l&&c!=e&&(this[c]=a)}),a},DFS:function e(t,n,r,i){i=i||{};var a=zr.util.objId;for(var o in t)if(t.hasOwnProperty(o)){n.call(t,o,t[o],r||o);var s=t[o],l=zr.util.type(s);l==="Object"&&!i[a(s)]?(i[a(s)]=!0,e(s,n,null,i)):l==="Array"&&!i[a(s)]&&(i[a(s)]=!0,e(s,n,o,i))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(zr.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=zr.tokenize(r.code,r.grammar),zr.hooks.run("after-tokenize",r),Wm.stringify(zr.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new MOt;return Yb(i,i.head,e),AX(e,i,t,i.head,0),NOt(i)},hooks:{all:{},add:function(e,t){var n=zr.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=zr.hooks.all[e];if(!(!n||!n.length))for(var r=0,i;i=n[r++];)i(t)}},Token:Wm};function Wm(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function lB(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function AX(e,t,n,r,i,a){for(var o in n)if(!(!n.hasOwnProperty(o)||!n[o])){var s=n[o];s=Array.isArray(s)?s:[s];for(var l=0;l<s.length;++l){if(a&&a.cause==o+","+l)return;var c=s[l],u=c.inside,f=!!c.lookbehind,h=!!c.greedy,m=c.alias;if(h&&!c.pattern.global){var g=c.pattern.toString().match(/[imsuy]*$/)[0];c.pattern=RegExp(c.pattern.source,g+"g")}for(var b=c.pattern||c,C=r.next,w=i;C!==t.tail&&!(a&&w>=a.reach);w+=C.value.length,C=C.next){var k=C.value;if(t.length>e.length)return;if(!(k instanceof Wm)){var S=1,E;if(h){if(E=lB(b,w,e,f),!E||E.index>=e.length)break;var $=E.index,A=E.index+E[0].length,_=w;for(_+=C.value.length;$>=_;)C=C.next,_+=C.value.length;if(_-=C.value.length,w=_,C.value instanceof Wm)continue;for(var T=C;T!==t.tail&&(_<A||typeof T.value=="string");T=T.next)S++,_+=T.value.length;S--,k=e.slice(w,_),E.index-=w}else if(E=lB(b,0,k,f),!E)continue;var $=E.index,R=E[0],O=k.slice(0,$),G=k.slice($+R.length),V=w+k.length;a&&V>a.reach&&(a.reach=V);var Z=C.prev;O&&(Z=Yb(t,Z,O),w+=O.length),OOt(t,Z,S);var W=new Wm(o,u?zr.tokenize(R,u):R,m,R);if(C=Yb(t,Z,W),G&&Yb(t,C,G),S>1){var Y={cause:o+","+l,reach:V};AX(e,t,n,C.prev,w,Y),a&&Y.reach>a.reach&&(a.reach=Y.reach)}}}}}}function MOt(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function Yb(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function OOt(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}function NOt(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}const zX=zr,n0={}.hasOwnProperty;function FX(){}FX.prototype=zX;const pt=new FX;pt.highlight=LOt;pt.register=IOt;pt.alias=BOt;pt.registered=ROt;pt.listLanguages=POt;pt.util.encode=jOt;pt.Token.stringify=R7;function LOt(e,t){if(typeof e!="string")throw new TypeError("Expected `string` for `value`, got `"+e+"`");let n,r;if(t&&typeof t=="object")n=t;else{if(r=t,typeof r!="string")throw new TypeError("Expected `string` for `name`, got `"+r+"`");if(n0.call(pt.languages,r))n=pt.languages[r];else throw new Error("Unknown language: `"+r+"` is not registered")}return{type:"root",children:zX.highlight.call(pt,e,n,r)}}function IOt(e){if(typeof e!="function"||!e.displayName)throw new Error("Expected `function` for `syntax`, got `"+e+"`");n0.call(pt.languages,e.displayName)||e(pt)}function BOt(e,t){const n=pt.languages;let r={};typeof e=="string"?t&&(r[e]=t):r=e;let i;for(i in r)if(n0.call(r,i)){const a=r[i],o=typeof a=="string"?[a]:a;let s=-1;for(;++s<o.length;)n[o[s]]=n[i]}}function ROt(e){if(typeof e!="string")throw new TypeError("Expected `string` for `aliasOrLanguage`, got `"+e+"`");return n0.call(pt.languages,e)}function POt(){const e=pt.languages,t=[];let n;for(n in e)n0.call(e,n)&&typeof e[n]=="object"&&t.push(n);return t}function R7(e,t){if(typeof e=="string")return{type:"text",value:e};if(Array.isArray(e)){const r=[];let i=-1;for(;++i<e.length;)e[i]!==""&&e[i]!==null&&e[i]!==void 0&&r.push(R7(e[i],t));return r}const n={type:e.type,content:R7(e.content,t),tag:"span",classes:["token",e.type],attributes:{},language:t};return e.alias&&n.classes.push(...typeof e.alias=="string"?[e.alias]:e.alias),pt.hooks.run("wrap",n),COt(n.tag+"."+n.classes.join("."),VOt(n.attributes),n.content)}function jOt(e){return e}function VOt(e){let t;for(t in e)n0.call(e,t)&&(e[t]=AOt(e[t]));return e}pt.register(Ws);pt.register(M1);pt.register(V2);pt.register(wE);pt.register(vE);pt.register(xE);pt.register(O1);pt.register(e0);pt.register(CE);pt.register(SE);pt.register(DE);pt.register(EE);pt.register(TE);pt.register(q2);pt.register(AE);pt.register(zE);pt.register(FE);pt.register($E);pt.register(ME);pt.register(OE);pt.register(NE);pt.register(LE);pt.register(IE);pt.register(H2);pt.register(BE);pt.register(RE);pt.register(PE);pt.register(jE);pt.register(VE);pt.register(qE);pt.register(HE);pt.register(UE);pt.register(WE);pt.register(GE);pt.register(U2);pt.register(KE);const $X=(e,t=[])=>e.flatMap(n=>{var r;return n.type==="element"?$X(n.children,[...t,...((r=n.properties)==null?void 0:r.className)||[]]):[{text:n.value,className:t}]});function cB(e,t,n){const{highlight:r,listLanguages:i}=n,a=i(),o=[];return Rk(s=>s.type.name===t)(e).forEach(s=>{let l=s.pos+1;const{language:c}=s.node.attrs;if(!c||!a.includes(c)){console.warn("Unsupported language detected, this language has not been supported by current prism config: ",c);return}const u=r(s.node.textContent,c);$X(u.children).forEach(f=>{const h=l+f.text.length;if(f.className.length){const m=$r.inline(l,h,{class:f.className.join(" ")});o.push(m)}l=h})}),en.create(e,o)}const W2=Lr({configureRefractor:()=>{}},"prismConfig");W2.meta={package:"@milkdown/plugin-prism",displayName:"Ctx<prism>"};const MX=yr(e=>{const{configureRefractor:t}=e.get(W2.key),n="code_block";return new Bn({key:new Fn("MILKDOWN_PRISM"),state:{init:(r,{doc:i})=>{const a=t(pt);return cB(i,n,a??pt)},apply:(r,i,a,o)=>{var s,l;const c=o.selection.$head.parent.type.name===n,u=a.selection.$head.parent.type.name===n,f=Rk(m=>m.type.name===n)(a.doc),h=Rk(m=>m.type.name===n)(o.doc);return r.docChanged&&(c||u||f.length!==h.length||((s=f[0])==null?void 0:s.node.attrs.language)!==((l=h[0])==null?void 0:l.node.attrs.language)||r.steps.some(m=>{const g=m;return g.from!==void 0&&g.to!==void 0&&f.some(b=>b.pos>=g.from&&b.pos+b.node.nodeSize<=g.to)}))?cB(r.doc,n,pt):i.map(r.mapping,r.doc)}},props:{decorations(r){return this.getState(r)}}})});MX.meta={package:"@milkdown/plugin-prism",displayName:"Prose<prism>"};const qOt=[MX,W2],HOt=()=>F.useMemo(()=>[qOt,t=>()=>{t.update(W2.key,n=>({...n,configureRefractor:()=>pt}))}].flat(),[]);var ZE=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},pa=(e,t,n)=>(ZE(e,t,"read from private field"),n?n.call(e):t.get(e)),Ju=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Kf=(e,t,n,r)=>(ZE(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),UOt=(e,t,n)=>(ZE(e,t,"access private method"),n);const WOt=e=>{const t=Lr({},`${e}_SLASH_SPEC`),n=yr(i=>{const a=i.get(t.key);return new Bn({key:new Fn(`${e}_SLASH`),...a})}),r=[t,n];return r.key=t.key,r.pluginKey=n.key,t.meta={package:"@milkdown/plugin-slash",displayName:`Ctx<slashSpec>|${e}`},n.meta={package:"@milkdown/plugin-slash",displayName:`Prose<slash>|${e}`},r};var pl,Zb,Xb,Ah,Jb,Qb,P7,OX;class GOt{constructor(t){Ju(this,P7),Ju(this,pl,void 0),Ju(this,Zb,void 0),Ju(this,Xb,void 0),Ju(this,Ah,void 0),Ju(this,Jb,void 0),Ju(this,Qb,void 0),Kf(this,Qb,(n,r)=>{const{state:i,composing:a}=n,{selection:o,doc:s}=i,{ranges:l}=o,c=Math.min(...l.map(h=>h.$from.pos)),u=Math.max(...l.map(h=>h.$to.pos)),f=r&&r.doc.eq(s)&&r.selection.eq(o);if(pa(this,pl)??Kf(this,pl,Rp(n.dom,{trigger:"manual",placement:"bottom-start",interactive:!0,...pa(this,Zb),content:this.element})),!(a||f)){if(!pa(this,Jb).call(this,n,r)){this.hide();return}pa(this,pl).setProps({getReferenceClientRect:()=>cq(n,c,u)}),this.show()}}),this.update=(n,r)=>{TS(pa(this,Qb),pa(this,Xb))(n,r)},this.getContent=(n,r=i=>i.type.name==="paragraph")=>{const{selection:i}=n.state,{empty:a}=i,o=n.state.selection instanceof Nt,s=this.element.contains(document.activeElement),l=!n.hasFocus()&&!s,c=!n.editable,u=uq(r)(n.state.selection);if(!(l||c||!a||!o||!u))return u.node.textContent},this.destroy=()=>{var n;(n=pa(this,pl))==null||n.destroy()},this.show=()=>{var n;(n=pa(this,pl))==null||n.show()},this.hide=()=>{var n;(n=pa(this,pl))==null||n.hide()},this.getInstance=()=>pa(this,pl),this.element=t.content,Kf(this,Zb,t.tippyOptions??{}),Kf(this,Xb,t.debounce??200),Kf(this,Jb,t.shouldShow??UOt(this,P7,OX)),Kf(this,Ah,t.trigger??"/")}}pl=new WeakMap,Zb=new WeakMap,Xb=new WeakMap,Ah=new WeakMap,Jb=new WeakMap,Qb=new WeakMap,P7=new WeakSet,OX=function(e){const t=this.getContent(e);if(!t)return!1;const n=t.at(-1);return n?Array.isArray(pa(this,Ah))?pa(this,Ah).includes(n):pa(this,Ah)===n:!1};const KOt=({length:e,onEnter:t,onEscape:n,...r})=>{const[i,a]=F.useState(null),o=F.useRef([]);F.useEffect(()=>{e&&(o.current=Array.from({length:e},()=>F.createRef()))},[e]);const s=F.useCallback(u=>{u.preventDefault(),u.stopPropagation();const{length:f}=o.current;a(h=>typeof h!="number"||h===f-1?0:h+1)},[]),l=F.useCallback(u=>{u.preventDefault(),u.stopPropagation();const{length:f}=o.current;a(h=>typeof h!="number"?0:h===0?f-1:h-1)},[]),c=i?o.current[i]:null;return XW({Enter:F.useCallback(u=>t==null?void 0:t(u,c),[c,t]),Escape:n,options:r,ArrowUp:l,ArrowDown:s}),{keyboardListRefs:o,setActive:a,active:i}},YOt=({tooltipRef:e})=>{const[t,n]=F.useState(!1),r=F.useRef(),{editor:i,loading:a}=li(),{view:o,prevState:s}=Fv(),{keyboardListRefs:l,setActive:c,active:u}=KOt({length:10,onMount:!1,onEscape:F.useCallback(()=>{var f;(f=r.current)==null||f.hide()},[]),onEnter:F.useCallback((f,h)=>{var m;h&&(f.preventDefault(),(m=h.current)==null||m.click())},[]),isBodyKeyDownActive:t});return F.useEffect(()=>{if(!(a||!(e!=null&&e.current)||!i||i.status!==pn.Created))return r.current??(r.current=new GOt({content:e.current,shouldShow:f=>{var _;const{selection:h,tr:m}=f.state,{empty:g,from:b,to:C}=h,w=h instanceof Nt,k=(_=e.current)==null?void 0:_.contains(document.activeElement),S=!f.hasFocus()&&!k,E=!f.editable;return S||E||!g||!w||b!==C?!1:m.doc.content.textBetween(b-1,C).includes("/")},tippyOptions:{arrow:!1,onMount:()=>{const[f]=l.current;f&&(c(0),n(!0))},onHide:()=>{c(null),n(!1)}}})),()=>{var f;(f=r.current)==null||f.destroy()}},[a,i,e,l,c]),F.useEffect(()=>{var f;(f=r.current)==null||f.update(o,s)}),{keyboardListRefs:l,activeItemIndex:u}},ZOt=Ae.div.withConfig({displayName:"Hidden"})(["display:none;"]),XOt=()=>{const{colors:e}=Kl(),t=F.useRef(null),{editor:n,loading:r}=li(),{onCallCommand:i}=ec(),{keyboardListRefs:a,activeItemIndex:o}=YOt({tooltipRef:t}),s=()=>{r||!n||n.status!==pn.Created||n.action(c=>{const u=c.get(ai),{state:f}=u,{selection:h}=f;u.dispatch(f.tr.delete(h.from-1,h.from))})},l=(c,u)=>{s(),i(c,u)};return j(ZOt,{children:j("div",{ref:t,children:He(j2,{children:[j(er,{children:He(cs,{ref:a.current[0],color:"secondary",onClick:()=>l(eo.key,1),$isFocused:o===0,children:[j(ut,{icon:"title"}),"Title"]})}),j(er,{children:He(cs,{color:"secondary",ref:a.current[1],onClick:()=>l(eo.key,2),$isFocused:o===1,children:[j(ut,{icon:"subtitle"}),"Subtitle"]})}),j(er,{children:He(cs,{color:"secondary",ref:a.current[2],onClick:()=>l(a1.key),$isFocused:o===2,children:[j(ut,{icon:"paragraph"}),"Normal text"]})}),j(er,{children:j(f2,{editable:!1,onModalOpen:s,handler:({onOpen:c})=>He(cs,{onClick:c,color:"secondary",ref:a.current[3],$isFocused:o===3,children:[j(ut,{icon:"add_link"}),"Add link"]})})}),j(er,{children:j(bE,{onModalOpen:s,handler:({onOpen:c})=>He(cs,{onClick:c,color:"secondary",ref:a.current[4],$isFocused:o===4,children:[j(ut,{icon:"embed_image"}),"Add document"]}),onInsert:c=>i(s1.key,{src:c})})}),j(er,{children:He(cs,{color:"secondary",onClick:()=>l(jp.key),ref:a.current[5],$isFocused:o===5,children:[j(ut,{icon:"code_block"}),"Add code"]})}),j(er,{children:He(cs,{color:"secondary",onClick:()=>l(v1.key),ref:a.current[6],$isFocused:o===6,children:[j(ut,{icon:"create_table"}),"Add table"]})}),j(er,{children:He(cs,{color:"secondary",ref:a.current[7],onClick:()=>l(VD.key),$isFocused:o===7,children:[j(ut,{icon:"math"}),"Add math"]})}),j(er,{children:He(cs,{color:"secondary",onClick:()=>l($1.key),ref:a.current[8],$isFocused:o===8,children:[j(ut,{icon:"mermaid"}),"Add diagram"]})}),j(er,{children:j(kE,{onModalOpen:s,handler:({onOpen:c})=>He(cs,{onClick:c,color:"secondary",ref:a.current[9],$isFocused:o===9,children:[j(ut,{icon:"google",fill:e.white}),"Add Google doc"]})})})]})})})},cs=Ae(ya).withConfig({displayName:"FocusableDropdownButtonActionStyled"})(["",""],e=>e.$isFocused&&Tn(["background-color:",";"],t=>t.theme.colors.secondaryLightGrey)),uB=WOt("MILKDOWN"),JOt=()=>{const e=oS();return F.useMemo(()=>[uB,n=>()=>{n.set(uB.key,{view:e({component:XOt})})}].flat(),[e])},QOt=e=>new Promise(t=>{const n=new FileReader;n.addEventListener("load",()=>{t({alt:e.name,src:n.result})},!1),n.readAsDataURL(e)}),eNt=async(e,t)=>{const n=[];for(let i=0;i<e.length;i++){const a=e.item(i);a&&a.type.includes("image")&&n.push(a)}const{image:r}=t.nodes;if(!r)throw sV("image");return(await Promise.all(n.map(i=>QOt(i)))).map(({alt:i,src:a})=>r.createAndFill({src:a,alt:i}))},Yh=Lr({uploader:eNt,enableHtmlFileUploader:!1,uploadWidgetFactory:(e,t)=>{const n=document.createElement("span");return n.textContent="Upload in progress...",$r.widget(e,n,t)}},"uploadConfig");Yh.meta={package:"@milkdown/plugin-upload",displayName:"Ctx<uploadConfig>"};const NX=yr(e=>{const t=new Fn("MILKDOWN_UPLOAD"),n=(i,a)=>{var o;const s=t.getState(i);if(!s)return-1;const l=s.find(void 0,void 0,c=>c.id===a);return l.length?((o=l[0])==null?void 0:o.from)??-1:-1},r=(i,a,o)=>{var s;if(!o||o.length<=0)return!1;const l=Symbol("upload symbol"),c=e.get(Es),{tr:u}=i.state,f=a instanceof DragEvent?((s=i.posAtCoords({left:a.clientX,top:a.clientY}))==null?void 0:s.pos)??u.selection.from:u.selection.from;i.dispatch(u.setMeta(t,{add:{id:l,pos:f}}));const{uploader:h}=e.get(Yh.key);return h(o,c).then(m=>{const g=n(i.state,l);g<0||i.dispatch(i.state.tr.replaceWith(g,g,m).setMeta(t,{remove:{id:l}}))}).catch(m=>{console.error(m)}),!0};return new Bn({key:t,state:{init(){return en.empty},apply(i,a){const o=a.map(i.mapping,i.doc),s=i.getMeta(this);if(!s)return o;if(s.add){const{uploadWidgetFactory:l}=e.get(Yh.key),c=l(s.add.pos,{id:s.add.id});return o.add(i.doc,[c])}if(s.remove){const l=o.find(void 0,void 0,c=>c.id===s.remove.id);return o.remove(l)}return o}},props:{decorations(i){return this.getState(i)},handlePaste:(i,a)=>{var o,s;const{enableHtmlFileUploader:l}=e.get(Yh.key);return!(a instanceof ClipboardEvent)||!l&&(o=a.clipboardData)!=null&&o.getData("text/html")?!1:r(i,a,(s=a.clipboardData)==null?void 0:s.files)},handleDrop:(i,a)=>{var o;return a instanceof DragEvent?r(i,a,(o=a.dataTransfer)==null?void 0:o.files):!1}}})});NX.meta={package:"@milkdown/plugin-upload",displayName:"Prose<upload>"};const tNt=[Yh,NX],nNt=()=>{const{onErrorNotification:e}=Xv(),{onFileUpload:t,onFileValidation:n}=ta();return F.useCallback(async(i,a)=>{try{const o=[];for(let s=0;s<i.length;s++){const l=i.item(s);n&&!n(l)||o.push(l)}return await Promise.all(o.map(async s=>{const l=await t(s),c=s.name;return a.nodes.image.createAndFill({src:l,alt:c})}))}catch{return e("Something bad happened"),[]}},[t,e,n])},rNt=()=>{const e=$v(),t=nNt();return F.useMemo(()=>[tNt,r=>()=>{r.update(Yh.key,i=>({...i,uploader:t,uploadWidgetFactory:e({as:"div",component:()=>j(tG,{})})}))}].flat(),[e,t])},iNt=F.createContext({editor:null}),aNt=({onFocus:e,children:t,onChange:n,debounceChange:r,defaultMarkdownValue:i})=>{const{mode:a}=ta(),o=D4t(),s=dxt(),l=rNt(),c=iOt(),u=JOt(),f=jvt(),h=HOt(),m=oOt(),g=ZMt(),b=z4t({onChange:n,onFocus:e,debounceChange:r}),C=mle(k=>Cme.make().config(S=>{S.set(pb,k),S.set(db,i),S.update(zm,E=>({...E,editable:()=>a==="active"}))}).use(f).use(m).use(b).use(h).use(wpt).use(l).use(c).use(s).use(u).use(vpt).use(upt).use($q).use(g).use(o),[a,f,i,b,g,o,s,c,n,u,l,h]),w=F.useMemo(()=>({editor:C}),[C]);return j(iNt.Provider,{value:w,children:t})},oNt={error:{className:"error-toaster",icon:"🫠",style:{padding:`${ee(13)} ${ee(16)}`,color:Vt.colors.lightBlack,background:"#FFDDDD",maxWidth:"none",gap:`${ee(5)}`}},success:{className:"success-toaster",icon:"🙌",style:{padding:`${ee(13)} ${ee(16)}`,color:Vt.colors.white,background:Vt.colors.lightBlack,maxWidth:"none",gap:`${ee(5)}`}}},sNt=({data:e,mode:t,showMenu:n,className:r="",editorRef:i,placeholder:a,onDataChange:o,onFileUpload:s,stickyOnMenu:l,onEditorFocus:c,onFileValidation:u,inputAcceptedFormats:f,...h})=>j(ule,{theme:Vt,children:j(fgt,{mode:t,showMenu:n,placeholder:a,onFileUpload:s,stickyOnMenu:l,onFileValidation:u,inputAcceptedFormats:f,children:j(ple,{children:j(ede,{children:j(aNt,{onFocus:c,onChange:o,defaultMarkdownValue:e,...h,children:He(ige,{className:["date-data_text-editor",r].join(" "),tabIndex:-1,children:[j(Hde,{toastOptions:oNt}),j(Sme,{ref:i})]})})})})})}),lNt=` +|(?![\\s\\S])))+`,"m"),alias:a,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(r)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:n})})(e)}SE.displayName="go";SE.aliases=[];function SE(e){e.register(Ws),e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}DE.displayName="ini";DE.aliases=[];function DE(e){e.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}EE.displayName="java";EE.aliases=[];function EE(e){e.register(Ws),function(t){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:i.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:i.inside}],keyword:n,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:i.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:i.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return n.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(e)}TE.displayName="regex";TE.aliases=[];function TE(e){(function(t){var n={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},r=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},a={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},o="(?:[^\\\\-]|"+r.source+")",s=RegExp(o+"-"+o),l={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:s,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":a,escape:r}},"special-escape":n,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":l}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:r,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":l}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(e)}q2.displayName="javascript";q2.aliases=["js"];function q2(e){e.register(Ws),e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}AE.displayName="json";AE.aliases=["webmanifest"];function AE(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}zE.displayName="kotlin";zE.aliases=["kt","kts"];function zE(e){e.register(Ws),function(t){t.languages.kotlin=t.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete t.languages.kotlin["class-name"];var n={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.kotlin}};t.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:n},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:n},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete t.languages.kotlin.string,t.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),t.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),t.languages.kt=t.languages.kotlin,t.languages.kts=t.languages.kotlin}(e)}FE.displayName="less";FE.aliases=[];function FE(e){e.register(e0),e.languages.less=e.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}$E.displayName="lua";$E.aliases=[];function $E(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}ME.displayName="makefile";ME.aliases=[];function ME(e){e.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}OE.displayName="yaml";OE.aliases=["yml"];function OE(e){(function(t){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+r.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+r.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function s(l,c){c=(c||"").replace(/m/g,"")+"m";var u=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return i}).replace(/<<value>>/g,function(){return l});return RegExp(u,c)}t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return i}).replace(/<<key>>/g,function(){return"(?:"+a+"|"+o+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:s(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:s(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:s(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:s(o),lookbehind:!0,greedy:!0},number:{pattern:s(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml})(e)}NE.displayName="markdown";NE.aliases=["md"];function NE(e){e.register(O1),function(t){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(s){return s=s.replace(/<inner>/g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+s+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+o+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+o+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(s){["url","bold","italic","strike","code-snippet"].forEach(function(l){s!==l&&(t.languages.markdown[s].inside.content.inside[l]=t.languages.markdown[l])})}),t.hooks.add("after-tokenize",function(s){if(s.language!=="markdown"&&s.language!=="md")return;function l(c){if(!(!c||typeof c=="string"))for(var u=0,f=c.length;u<f;u++){var h=c[u];if(h.type!=="code"){l(h.content);continue}var m=h.content[1],g=h.content[3];if(m&&g&&m.type==="code-language"&&g.type==="code-block"&&typeof m.content=="string"){var b=m.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");b=(/[a-z][\w-]*/i.exec(b)||[""])[0].toLowerCase();var C="language-"+b;g.alias?typeof g.alias=="string"?g.alias=[g.alias,C]:g.alias.push(C):g.alias=[C]}}}l(s.tokens)}),t.hooks.add("wrap",function(s){if(s.type==="code-block"){for(var l="",c=0,u=s.classes.length;c<u;c++){var f=s.classes[c],h=/language-(.+)/.exec(f);if(h){l=h[1];break}}var m=t.languages[l];if(m)s.content=t.highlight(s.content.value,m,l);else if(l&&l!=="none"&&t.plugins.autoloader){var g="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);s.attributes.id=g,t.plugins.autoloader.loadLanguages(l,function(){var b=document.getElementById(g);b&&(b.innerHTML=t.highlight(b.textContent,t.languages[l],l))})}}}),RegExp(t.languages.markup.tag.pattern.source,"gi"),t.languages.md=t.languages.markdown}(e)}LE.displayName="objectivec";LE.aliases=["objc"];function LE(e){e.register(M1),e.languages.objectivec=e.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}IE.displayName="perl";IE.aliases=[];function IE(e){(function(t){var n=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;t.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,n+/\s*/.source+n].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(e)}H2.displayName="markup-templating";H2.aliases=[];function H2(e){e.register(O1),function(t){function n(r,i){return"___"+r.toUpperCase()+i+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,i,a,o){if(r.language===i){var s=r.tokenStack=[];r.code=r.code.replace(a,function(l){if(typeof o=="function"&&!o(l))return l;for(var c=s.length,u;r.code.indexOf(u=n(i,c))!==-1;)++c;return s[c]=l,u}),r.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(r,i){if(r.language!==i||!r.tokenStack)return;r.grammar=t.languages[i];var a=0,o=Object.keys(r.tokenStack);function s(l){for(var c=0;c<l.length&&!(a>=o.length);c++){var u=l[c];if(typeof u=="string"||u.content&&typeof u.content=="string"){var f=o[a],h=r.tokenStack[f],m=typeof u=="string"?u:u.content,g=n(i,f),b=m.indexOf(g);if(b>-1){++a;var C=m.substring(0,b),w=new t.Token(i,t.tokenize(h,r.grammar),"language-"+i,h),k=m.substring(b+g.length),S=[];C&&S.push.apply(S,s([C])),S.push(w),k&&S.push.apply(S,s([k])),typeof u=="string"?l.splice.apply(l,[c,1].concat(S)):u.content=S}}else u.content&&s(u.content)}return l}s(r.tokens)}}})}(e)}BE.displayName="php";BE.aliases=[];function BE(e){e.register(H2),function(t){var n=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,a=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,o=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:n,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:a,punctuation:o};var s={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},l=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:s}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:s}}];t.languages.insertBefore("php","variable",{string:l,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:n,string:l,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:i,operator:a,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(c){if(/<\?/.test(c.code)){var u=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;t.languages["markup-templating"].buildPlaceholders(c,"php",u)}}),t.hooks.add("after-tokenize",function(c){t.languages["markup-templating"].tokenizePlaceholders(c,"php")})}(e)}RE.displayName="python";RE.aliases=["py"];function RE(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}PE.displayName="r";PE.aliases=[];function PE(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}jE.displayName="ruby";jE.aliases=["rb"];function jE(e){e.register(Ws),function(t){t.languages.ruby=t.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),t.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:t.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete t.languages.ruby.function;var r="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",i=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;t.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+i),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+i+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),t.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+r),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+r),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete t.languages.ruby.string,t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),t.languages.rb=t.languages.ruby}(e)}VE.displayName="rust";VE.aliases=[];function VE(e){(function(t){for(var n=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,r=0;r<2;r++)n=n.replace(/<self>/g,function(){return n});n=n.replace(/<self>/g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+n),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string})(e)}qE.displayName="sass";qE.aliases=[];function qE(e){e.register(e0),function(t){t.languages.sass=t.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete t.languages.sass.atrule;var n=/\$[-\w]+|#\{\$[-\w]+\}/,r=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];t.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:n,operator:r}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:n,operator:r,important:t.languages.sass.important}}}),delete t.languages.sass.property,delete t.languages.sass.important,t.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(e)}HE.displayName="scss";HE.aliases=[];function HE(e){e.register(e0),e.languages.scss=e.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}UE.displayName="sql";UE.aliases=[];function UE(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}WE.displayName="swift";WE.aliases=[];function WE(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=e.languages.swift})}GE.displayName="typescript";GE.aliases=["ts"];function GE(e){e.register(q2),function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var n=t.languages.extend("typescript",{});delete n["class-name"],t.languages.typescript["class-name"].inside=n,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n}}}}),t.languages.ts=t.languages.typescript}(e)}U2.displayName="basic";U2.aliases=[];function U2(e){e.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}KE.displayName="vbnet";KE.aliases=[];function KE(e){e.register(U2),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}class N1{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}N1.prototype.property={};N1.prototype.normal={};N1.prototype.space=null;function wX(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new N1(n,r,t)}function Pg(e){return e.toLowerCase()}class Co{constructor(t,n){this.property=t,this.attribute=n}}Co.prototype.space=null;Co.prototype.boolean=!1;Co.prototype.booleanish=!1;Co.prototype.overloadedBoolean=!1;Co.prototype.number=!1;Co.prototype.commaSeparated=!1;Co.prototype.spaceSeparated=!1;Co.prototype.commaOrSpaceSeparated=!1;Co.prototype.mustUseProperty=!1;Co.prototype.defined=!1;let lOt=0;const Wt=wf(),hr=wf(),vX=wf(),Ne=wf(),Ln=wf(),Kh=wf(),ha=wf();function wf(){return 2**++lOt}const L7=Object.freeze(Object.defineProperty({__proto__:null,boolean:Wt,booleanish:hr,commaOrSpaceSeparated:ha,commaSeparated:Kh,number:Ne,overloadedBoolean:vX,spaceSeparated:Ln},Symbol.toStringTag,{value:"Module"})),F5=Object.keys(L7);class YE extends Co{constructor(t,n,r,i){let a=-1;if(super(t,n),eB(this,"space",i),typeof r=="number")for(;++a<F5.length;){const o=F5[a];eB(this,F5[a],(r&L7[o])===L7[o])}}}YE.prototype.defined=!0;function eB(e,t,n){n&&(e[t]=n)}const cOt={}.hasOwnProperty;function t0(e){const t={},n={};let r;for(r in e.properties)if(cOt.call(e.properties,r)){const i=e.properties[r],a=new YE(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Pg(r)]=r,n[Pg(a.attribute)]=r}return new N1(t,n,e.space)}const xX=t0({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),CX=t0({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function SX(e,t){return t in e?e[t]:t}function DX(e,t){return SX(e,t.toLowerCase())}const EX=t0({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:DX,properties:{xmlns:null,xmlnsXLink:null}}),TX=t0({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:hr,ariaAutoComplete:null,ariaBusy:hr,ariaChecked:hr,ariaColCount:Ne,ariaColIndex:Ne,ariaColSpan:Ne,ariaControls:Ln,ariaCurrent:null,ariaDescribedBy:Ln,ariaDetails:null,ariaDisabled:hr,ariaDropEffect:Ln,ariaErrorMessage:null,ariaExpanded:hr,ariaFlowTo:Ln,ariaGrabbed:hr,ariaHasPopup:null,ariaHidden:hr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ln,ariaLevel:Ne,ariaLive:null,ariaModal:hr,ariaMultiLine:hr,ariaMultiSelectable:hr,ariaOrientation:null,ariaOwns:Ln,ariaPlaceholder:null,ariaPosInSet:Ne,ariaPressed:hr,ariaReadOnly:hr,ariaRelevant:null,ariaRequired:hr,ariaRoleDescription:Ln,ariaRowCount:Ne,ariaRowIndex:Ne,ariaRowSpan:Ne,ariaSelected:hr,ariaSetSize:Ne,ariaSort:null,ariaValueMax:Ne,ariaValueMin:Ne,ariaValueNow:Ne,ariaValueText:null,role:null}}),uOt=t0({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:DX,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Kh,acceptCharset:Ln,accessKey:Ln,action:null,allow:null,allowFullScreen:Wt,allowPaymentRequest:Wt,allowUserMedia:Wt,alt:null,as:null,async:Wt,autoCapitalize:null,autoComplete:Ln,autoFocus:Wt,autoPlay:Wt,capture:Wt,charSet:null,checked:Wt,cite:null,className:Ln,cols:Ne,colSpan:null,content:null,contentEditable:hr,controls:Wt,controlsList:Ln,coords:Ne|Kh,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Wt,defer:Wt,dir:null,dirName:null,disabled:Wt,download:vX,draggable:hr,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Wt,formTarget:null,headers:Ln,height:Ne,hidden:Wt,high:Ne,href:null,hrefLang:null,htmlFor:Ln,httpEquiv:Ln,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:Wt,itemId:null,itemProp:Ln,itemRef:Ln,itemScope:Wt,itemType:Ln,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Wt,low:Ne,manifest:null,max:null,maxLength:Ne,media:null,method:null,min:null,minLength:Ne,multiple:Wt,muted:Wt,name:null,nonce:null,noModule:Wt,noValidate:Wt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Wt,optimum:Ne,pattern:null,ping:Ln,placeholder:null,playsInline:Wt,poster:null,preload:null,readOnly:Wt,referrerPolicy:null,rel:Ln,required:Wt,reversed:Wt,rows:Ne,rowSpan:Ne,sandbox:Ln,scope:null,scoped:Wt,seamless:Wt,selected:Wt,shape:null,size:Ne,sizes:null,slot:null,span:Ne,spellCheck:hr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ne,step:null,style:null,tabIndex:Ne,target:null,title:null,translate:null,type:null,typeMustMatch:Wt,useMap:null,value:hr,width:Ne,wrap:null,align:null,aLink:null,archive:Ln,axis:null,background:null,bgColor:null,border:Ne,borderColor:null,bottomMargin:Ne,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Wt,declare:Wt,event:null,face:null,frame:null,frameBorder:null,hSpace:Ne,leftMargin:Ne,link:null,longDesc:null,lowSrc:null,marginHeight:Ne,marginWidth:Ne,noResize:Wt,noHref:Wt,noShade:Wt,noWrap:Wt,object:null,profile:null,prompt:null,rev:null,rightMargin:Ne,rules:null,scheme:null,scrolling:hr,standby:null,summary:null,text:null,topMargin:Ne,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ne,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Wt,disableRemotePlayback:Wt,prefix:null,property:null,results:Ne,security:null,unselectable:null}}),dOt=t0({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:SX,properties:{about:ha,accentHeight:Ne,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ne,amplitude:Ne,arabicForm:null,ascent:Ne,attributeName:null,attributeType:null,azimuth:Ne,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ne,by:null,calcMode:null,capHeight:Ne,className:Ln,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Ne,diffuseConstant:Ne,direction:null,display:null,dur:null,divisor:Ne,dominantBaseline:null,download:Wt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ne,enableBackground:null,end:null,event:null,exponent:Ne,externalResourcesRequired:null,fill:null,fillOpacity:Ne,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Kh,g2:Kh,glyphName:Kh,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ne,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ne,horizOriginX:Ne,horizOriginY:Ne,id:null,ideographic:Ne,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ne,k:Ne,k1:Ne,k2:Ne,k3:Ne,k4:Ne,kernelMatrix:ha,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ne,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ne,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Ne,overlineThickness:Ne,paintOrder:null,panose1:null,path:null,pathLength:Ne,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ln,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ne,pointsAtY:Ne,pointsAtZ:Ne,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ha,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ha,rev:ha,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ha,requiredFeatures:ha,requiredFonts:ha,requiredFormats:ha,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Ne,specularExponent:Ne,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ne,strikethroughThickness:Ne,string:null,stroke:null,strokeDashArray:ha,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ne,strokeOpacity:Ne,strokeWidth:null,style:null,surfaceScale:Ne,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ha,tabIndex:Ne,tableValues:null,target:null,targetX:Ne,targetY:Ne,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ha,to:null,transform:null,u1:null,u2:null,underlinePosition:Ne,underlineThickness:Ne,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ne,values:null,vAlphabetic:Ne,vMathematical:Ne,vectorEffect:null,vHanging:Ne,vIdeographic:Ne,version:null,vertAdvY:Ne,vertOriginX:Ne,vertOriginY:Ne,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ne,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),fOt=/^data[-\w.:]+$/i,tB=/-[a-z]/g,hOt=/[A-Z]/g;function pOt(e,t){const n=Pg(t);let r=t,i=Co;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&fOt.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(tB,gOt);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!tB.test(a)){let o=a.replace(hOt,mOt);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=YE}return new i(r,t)}function mOt(e){return"-"+e.toLowerCase()}function gOt(e){return e.charAt(1).toUpperCase()}const yOt=wX([CX,xX,EX,TX,uOt],"html");wX([CX,xX,EX,TX,dOt],"svg");const nB=/[#.]/g;function _Ot(e,t){const n=e||"",r={};let i=0,a,o;for(;i<n.length;){nB.lastIndex=i;const s=nB.exec(n),l=n.slice(i,s?s.index:n.length);l&&(a?a==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:o=l,i+=l.length),s&&(a=s[0],i++)}return{type:"element",tagName:o||t||"div",properties:r,children:[]}}function rB(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function iB(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const o=n.slice(i,r).trim();(o||!a)&&t.push(o),i=r+1,r=n.indexOf(",",i)}return t}const bOt=new Set(["menu","submit","reset","button"]),I7={}.hasOwnProperty;function kOt(e,t,n){const r=n&&COt(n);return function(a,o,...s){let l=-1,c;if(a==null)c={type:"root",children:[]},s.unshift(o);else if(c=_Ot(a,t),c.tagName=c.tagName.toLowerCase(),r&&I7.call(r,c.tagName)&&(c.tagName=r[c.tagName]),wOt(o,c.tagName)){let u;for(u in o)I7.call(o,u)&&vOt(e,c.properties,u,o[u])}else s.unshift(o);for(;++l<s.length;)B7(c.children,s[l]);return c.type==="element"&&c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}}function wOt(e,t){return e==null||typeof e!="object"||Array.isArray(e)?!1:t==="input"||!e.type||typeof e.type!="string"?!0:"children"in e&&Array.isArray(e.children)?!1:t==="button"?bOt.has(e.type.toLowerCase()):!("value"in e)}function vOt(e,t,n,r){const i=pOt(e,n);let a=-1,o;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;o=r}else typeof r=="boolean"?o=r:typeof r=="string"?i.spaceSeparated?o=rB(r):i.commaSeparated?o=iB(r):i.commaOrSpaceSeparated?o=rB(iB(r).join(" ")):o=aB(i,i.property,r):Array.isArray(r)?o=r.concat():o=i.property==="style"?xOt(r):String(r);if(Array.isArray(o)){const s=[];for(;++a<o.length;)s[a]=aB(i,i.property,o[a]);o=s}i.property==="className"&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[i.property]=o}}function B7(e,t){let n=-1;if(t!=null)if(typeof t=="string"||typeof t=="number")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++n<t.length;)B7(e,t[n]);else if(typeof t=="object"&&"type"in t)t.type==="root"?B7(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function aB(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Pg(n)===Pg(t)))return!0}return n}function xOt(e){const t=[];let n;for(n in e)I7.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}function COt(e){const t={};let n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}const SOt=kOt(yOt,"div"),DOt=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],oB={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function AX(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function EOt(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function TOt(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function sB(e){return TOt(e)||AX(e)}const Gf=String.fromCharCode,AOt=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function zOt(e,t={}){const n=typeof t.additional=="string"?t.additional.charCodeAt(0):t.additional,r=[];let i=0,a=-1,o="",s,l;t.position&&("start"in t.position||"indent"in t.position?(l=t.position.indent,s=t.position.start):s=t.position);let c=(s?s.line:0)||1,u=(s?s.column:0)||1,f=m(),h;for(i--;++i<=e.length;)if(h===10&&(u=(l?l[a]:0)||1),h=e.charCodeAt(i),h===38){const C=e.charCodeAt(i+1);if(C===9||C===10||C===12||C===32||C===38||C===60||Number.isNaN(C)||n&&C===n){o+=Gf(h),u++;continue}const w=i+1;let k=w,S=w,E;if(C===35){S=++k;const V=e.charCodeAt(S);V===88||V===120?(E="hexadecimal",S=++k):E="decimal"}else E="named";let A="",_="",T="";const $=E==="named"?sB:E==="decimal"?AX:EOt;for(S--;++S<=e.length;){const V=e.charCodeAt(S);if(!$(V))break;T+=Gf(V),E==="named"&&DOt.includes(T)&&(A=T,_=mg(T))}let R=e.charCodeAt(S)===59;if(R){S++;const V=E==="named"?mg(T):!1;V&&(A=T,_=V)}let O=1+S-w,G="";if(!(!R&&t.nonTerminated===!1))if(!T)E!=="named"&&g(4,O);else if(E==="named"){if(R&&!_)g(5,1);else if(A!==T&&(S=k+A.length,O=1+S-k,R=!1),!R){const V=A?1:3;if(t.attribute){const Z=e.charCodeAt(S);Z===61?(g(V,O),_=""):sB(Z)?_="":g(V,O)}else g(V,O)}G=_}else{R||g(2,O);let V=Number.parseInt(T,E==="hexadecimal"?16:10);if(FOt(V))g(7,O),G=Gf(65533);else if(V in oB)g(6,O),G=oB[V];else{let Z="";$Ot(V)&&g(6,O),V>65535&&(V-=65536,Z+=Gf(V>>>10|55296),V=56320|V&1023),G=Z+Gf(V)}}if(G){b(),f=m(),i=S-1,u+=S-w+1,r.push(G);const V=m();V.offset++,t.reference&&t.reference.call(t.referenceContext,G,{start:f,end:V},e.slice(w-1,S)),f=V}else T=e.slice(w-1,S),o+=T,u+=T.length,i=S-1}else h===10&&(c++,a++,u=0),Number.isNaN(h)?b():(o+=Gf(h),u++);return r.join("");function m(){return{line:c,column:u,offset:i+((s?s.offset:0)||0)}}function g(C,w){let k;t.warning&&(k=m(),k.column+=w,k.offset+=w,t.warning.call(t.warningContext,AOt[C],k,C))}function b(){o&&(r.push(o),t.text&&t.text.call(t.textContext,o,{start:f,end:m()}),o="")}}function FOt(e){return e>=55296&&e<=57343||e>1114111}function $Ot(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var MOt=0,T_={},zr={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++MOt}),e.__id},clone:function e(t,n){n=n||{};var r,i;switch(zr.util.type(t)){case"Object":if(i=zr.util.objId(t),n[i])return n[i];r={},n[i]=r;for(var a in t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=zr.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(o,s){r[s]=e(o,n)}),r);default:return t}}},languages:{plain:T_,plaintext:T_,text:T_,txt:T_,extend:function(e,t){var n=zr.util.clone(zr.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||zr.languages;var i=r[e],a={};for(var o in i)if(i.hasOwnProperty(o)){if(o==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(o)||(a[o]=i[o])}var l=r[e];return r[e]=a,zr.languages.DFS(zr.languages,function(c,u){u===l&&c!=e&&(this[c]=a)}),a},DFS:function e(t,n,r,i){i=i||{};var a=zr.util.objId;for(var o in t)if(t.hasOwnProperty(o)){n.call(t,o,t[o],r||o);var s=t[o],l=zr.util.type(s);l==="Object"&&!i[a(s)]?(i[a(s)]=!0,e(s,n,null,i)):l==="Array"&&!i[a(s)]&&(i[a(s)]=!0,e(s,n,o,i))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(zr.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=zr.tokenize(r.code,r.grammar),zr.hooks.run("after-tokenize",r),Wm.stringify(zr.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new OOt;return Yb(i,i.head,e),zX(e,i,t,i.head,0),LOt(i)},hooks:{all:{},add:function(e,t){var n=zr.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=zr.hooks.all[e];if(!(!n||!n.length))for(var r=0,i;i=n[r++];)i(t)}},Token:Wm};function Wm(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function lB(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function zX(e,t,n,r,i,a){for(var o in n)if(!(!n.hasOwnProperty(o)||!n[o])){var s=n[o];s=Array.isArray(s)?s:[s];for(var l=0;l<s.length;++l){if(a&&a.cause==o+","+l)return;var c=s[l],u=c.inside,f=!!c.lookbehind,h=!!c.greedy,m=c.alias;if(h&&!c.pattern.global){var g=c.pattern.toString().match(/[imsuy]*$/)[0];c.pattern=RegExp(c.pattern.source,g+"g")}for(var b=c.pattern||c,C=r.next,w=i;C!==t.tail&&!(a&&w>=a.reach);w+=C.value.length,C=C.next){var k=C.value;if(t.length>e.length)return;if(!(k instanceof Wm)){var S=1,E;if(h){if(E=lB(b,w,e,f),!E||E.index>=e.length)break;var $=E.index,A=E.index+E[0].length,_=w;for(_+=C.value.length;$>=_;)C=C.next,_+=C.value.length;if(_-=C.value.length,w=_,C.value instanceof Wm)continue;for(var T=C;T!==t.tail&&(_<A||typeof T.value=="string");T=T.next)S++,_+=T.value.length;S--,k=e.slice(w,_),E.index-=w}else if(E=lB(b,0,k,f),!E)continue;var $=E.index,R=E[0],O=k.slice(0,$),G=k.slice($+R.length),V=w+k.length;a&&V>a.reach&&(a.reach=V);var Z=C.prev;O&&(Z=Yb(t,Z,O),w+=O.length),NOt(t,Z,S);var W=new Wm(o,u?zr.tokenize(R,u):R,m,R);if(C=Yb(t,Z,W),G&&Yb(t,C,G),S>1){var Y={cause:o+","+l,reach:V};zX(e,t,n,C.prev,w,Y),a&&Y.reach>a.reach&&(a.reach=Y.reach)}}}}}}function OOt(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function Yb(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function NOt(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}function LOt(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}const FX=zr,n0={}.hasOwnProperty;function $X(){}$X.prototype=FX;const pt=new $X;pt.highlight=IOt;pt.register=BOt;pt.alias=ROt;pt.registered=POt;pt.listLanguages=jOt;pt.util.encode=VOt;pt.Token.stringify=R7;function IOt(e,t){if(typeof e!="string")throw new TypeError("Expected `string` for `value`, got `"+e+"`");let n,r;if(t&&typeof t=="object")n=t;else{if(r=t,typeof r!="string")throw new TypeError("Expected `string` for `name`, got `"+r+"`");if(n0.call(pt.languages,r))n=pt.languages[r];else throw new Error("Unknown language: `"+r+"` is not registered")}return{type:"root",children:FX.highlight.call(pt,e,n,r)}}function BOt(e){if(typeof e!="function"||!e.displayName)throw new Error("Expected `function` for `syntax`, got `"+e+"`");n0.call(pt.languages,e.displayName)||e(pt)}function ROt(e,t){const n=pt.languages;let r={};typeof e=="string"?t&&(r[e]=t):r=e;let i;for(i in r)if(n0.call(r,i)){const a=r[i],o=typeof a=="string"?[a]:a;let s=-1;for(;++s<o.length;)n[o[s]]=n[i]}}function POt(e){if(typeof e!="string")throw new TypeError("Expected `string` for `aliasOrLanguage`, got `"+e+"`");return n0.call(pt.languages,e)}function jOt(){const e=pt.languages,t=[];let n;for(n in e)n0.call(e,n)&&typeof e[n]=="object"&&t.push(n);return t}function R7(e,t){if(typeof e=="string")return{type:"text",value:e};if(Array.isArray(e)){const r=[];let i=-1;for(;++i<e.length;)e[i]!==""&&e[i]!==null&&e[i]!==void 0&&r.push(R7(e[i],t));return r}const n={type:e.type,content:R7(e.content,t),tag:"span",classes:["token",e.type],attributes:{},language:t};return e.alias&&n.classes.push(...typeof e.alias=="string"?[e.alias]:e.alias),pt.hooks.run("wrap",n),SOt(n.tag+"."+n.classes.join("."),qOt(n.attributes),n.content)}function VOt(e){return e}function qOt(e){let t;for(t in e)n0.call(e,t)&&(e[t]=zOt(e[t]));return e}pt.register(Ws);pt.register(M1);pt.register(V2);pt.register(wE);pt.register(vE);pt.register(xE);pt.register(O1);pt.register(e0);pt.register(CE);pt.register(SE);pt.register(DE);pt.register(EE);pt.register(TE);pt.register(q2);pt.register(AE);pt.register(zE);pt.register(FE);pt.register($E);pt.register(ME);pt.register(OE);pt.register(NE);pt.register(LE);pt.register(IE);pt.register(H2);pt.register(BE);pt.register(RE);pt.register(PE);pt.register(jE);pt.register(VE);pt.register(qE);pt.register(HE);pt.register(UE);pt.register(WE);pt.register(GE);pt.register(U2);pt.register(KE);const MX=(e,t=[])=>e.flatMap(n=>{var r;return n.type==="element"?MX(n.children,[...t,...((r=n.properties)==null?void 0:r.className)||[]]):[{text:n.value,className:t}]});function cB(e,t,n){const{highlight:r,listLanguages:i}=n,a=i(),o=[];return Rk(s=>s.type.name===t)(e).forEach(s=>{let l=s.pos+1;const{language:c}=s.node.attrs;if(!c||!a.includes(c)){console.warn("Unsupported language detected, this language has not been supported by current prism config: ",c);return}const u=r(s.node.textContent,c);MX(u.children).forEach(f=>{const h=l+f.text.length;if(f.className.length){const m=$r.inline(l,h,{class:f.className.join(" ")});o.push(m)}l=h})}),en.create(e,o)}const W2=Lr({configureRefractor:()=>{}},"prismConfig");W2.meta={package:"@milkdown/plugin-prism",displayName:"Ctx<prism>"};const OX=yr(e=>{const{configureRefractor:t}=e.get(W2.key),n="code_block";return new Bn({key:new Fn("MILKDOWN_PRISM"),state:{init:(r,{doc:i})=>{const a=t(pt);return cB(i,n,a??pt)},apply:(r,i,a,o)=>{var s,l;const c=o.selection.$head.parent.type.name===n,u=a.selection.$head.parent.type.name===n,f=Rk(m=>m.type.name===n)(a.doc),h=Rk(m=>m.type.name===n)(o.doc);return r.docChanged&&(c||u||f.length!==h.length||((s=f[0])==null?void 0:s.node.attrs.language)!==((l=h[0])==null?void 0:l.node.attrs.language)||r.steps.some(m=>{const g=m;return g.from!==void 0&&g.to!==void 0&&f.some(b=>b.pos>=g.from&&b.pos+b.node.nodeSize<=g.to)}))?cB(r.doc,n,pt):i.map(r.mapping,r.doc)}},props:{decorations(r){return this.getState(r)}}})});OX.meta={package:"@milkdown/plugin-prism",displayName:"Prose<prism>"};const HOt=[OX,W2],UOt=()=>F.useMemo(()=>[HOt,t=>()=>{t.update(W2.key,n=>({...n,configureRefractor:()=>pt}))}].flat(),[]);var ZE=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},pa=(e,t,n)=>(ZE(e,t,"read from private field"),n?n.call(e):t.get(e)),Ju=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Kf=(e,t,n,r)=>(ZE(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),WOt=(e,t,n)=>(ZE(e,t,"access private method"),n);const GOt=e=>{const t=Lr({},`${e}_SLASH_SPEC`),n=yr(i=>{const a=i.get(t.key);return new Bn({key:new Fn(`${e}_SLASH`),...a})}),r=[t,n];return r.key=t.key,r.pluginKey=n.key,t.meta={package:"@milkdown/plugin-slash",displayName:`Ctx<slashSpec>|${e}`},n.meta={package:"@milkdown/plugin-slash",displayName:`Prose<slash>|${e}`},r};var pl,Zb,Xb,Ah,Jb,Qb,P7,NX;class KOt{constructor(t){Ju(this,P7),Ju(this,pl,void 0),Ju(this,Zb,void 0),Ju(this,Xb,void 0),Ju(this,Ah,void 0),Ju(this,Jb,void 0),Ju(this,Qb,void 0),Kf(this,Qb,(n,r)=>{const{state:i,composing:a}=n,{selection:o,doc:s}=i,{ranges:l}=o,c=Math.min(...l.map(h=>h.$from.pos)),u=Math.max(...l.map(h=>h.$to.pos)),f=r&&r.doc.eq(s)&&r.selection.eq(o);if(pa(this,pl)??Kf(this,pl,Rp(n.dom,{trigger:"manual",placement:"bottom-start",interactive:!0,...pa(this,Zb),content:this.element})),!(a||f)){if(!pa(this,Jb).call(this,n,r)){this.hide();return}pa(this,pl).setProps({getReferenceClientRect:()=>uq(n,c,u)}),this.show()}}),this.update=(n,r)=>{TS(pa(this,Qb),pa(this,Xb))(n,r)},this.getContent=(n,r=i=>i.type.name==="paragraph")=>{const{selection:i}=n.state,{empty:a}=i,o=n.state.selection instanceof Nt,s=this.element.contains(document.activeElement),l=!n.hasFocus()&&!s,c=!n.editable,u=dq(r)(n.state.selection);if(!(l||c||!a||!o||!u))return u.node.textContent},this.destroy=()=>{var n;(n=pa(this,pl))==null||n.destroy()},this.show=()=>{var n;(n=pa(this,pl))==null||n.show()},this.hide=()=>{var n;(n=pa(this,pl))==null||n.hide()},this.getInstance=()=>pa(this,pl),this.element=t.content,Kf(this,Zb,t.tippyOptions??{}),Kf(this,Xb,t.debounce??200),Kf(this,Jb,t.shouldShow??WOt(this,P7,NX)),Kf(this,Ah,t.trigger??"/")}}pl=new WeakMap,Zb=new WeakMap,Xb=new WeakMap,Ah=new WeakMap,Jb=new WeakMap,Qb=new WeakMap,P7=new WeakSet,NX=function(e){const t=this.getContent(e);if(!t)return!1;const n=t.at(-1);return n?Array.isArray(pa(this,Ah))?pa(this,Ah).includes(n):pa(this,Ah)===n:!1};const YOt=({length:e,onEnter:t,onEscape:n,...r})=>{const[i,a]=F.useState(null),o=F.useRef([]);F.useEffect(()=>{e&&(o.current=Array.from({length:e},()=>F.createRef()))},[e]);const s=F.useCallback(u=>{u.preventDefault(),u.stopPropagation();const{length:f}=o.current;a(h=>typeof h!="number"||h===f-1?0:h+1)},[]),l=F.useCallback(u=>{u.preventDefault(),u.stopPropagation();const{length:f}=o.current;a(h=>typeof h!="number"?0:h===0?f-1:h-1)},[]),c=i?o.current[i]:null;return JW({Enter:F.useCallback(u=>t==null?void 0:t(u,c),[c,t]),Escape:n,options:r,ArrowUp:l,ArrowDown:s}),{keyboardListRefs:o,setActive:a,active:i}},ZOt=({tooltipRef:e})=>{const[t,n]=F.useState(!1),r=F.useRef(),{editor:i,loading:a}=li(),{view:o,prevState:s}=Fv(),{keyboardListRefs:l,setActive:c,active:u}=YOt({length:10,onMount:!1,onEscape:F.useCallback(()=>{var f;(f=r.current)==null||f.hide()},[]),onEnter:F.useCallback((f,h)=>{var m;h&&(f.preventDefault(),(m=h.current)==null||m.click())},[]),isBodyKeyDownActive:t});return F.useEffect(()=>{if(!(a||!(e!=null&&e.current)||!i||i.status!==fn.Created))return r.current??(r.current=new KOt({content:e.current,shouldShow:f=>{var _;const{selection:h,tr:m}=f.state,{empty:g,from:b,to:C}=h,w=h instanceof Nt,k=(_=e.current)==null?void 0:_.contains(document.activeElement),S=!f.hasFocus()&&!k,E=!f.editable;return S||E||!g||!w||b!==C?!1:m.doc.content.textBetween(b-1,C).includes("/")},tippyOptions:{arrow:!1,onMount:()=>{const[f]=l.current;f&&(c(0),n(!0))},onHide:()=>{c(null),n(!1)}}})),()=>{var f;(f=r.current)==null||f.destroy()}},[a,i,e,l,c]),F.useEffect(()=>{var f;(f=r.current)==null||f.update(o,s)}),{keyboardListRefs:l,activeItemIndex:u}},XOt=Ae.div.withConfig({displayName:"Hidden"})(["display:none;"]),JOt=()=>{const{colors:e}=Kl(),t=F.useRef(null),{editor:n,loading:r}=li(),{onCallCommand:i}=ec(),{keyboardListRefs:a,activeItemIndex:o}=ZOt({tooltipRef:t}),s=()=>{r||!n||n.status!==fn.Created||n.action(c=>{const u=c.get(ai),{state:f}=u,{selection:h}=f;u.dispatch(f.tr.delete(h.from-1,h.from))})},l=(c,u)=>{s(),i(c,u)};return j(XOt,{children:j("div",{ref:t,children:He(j2,{children:[j(er,{children:He(cs,{ref:a.current[0],color:"secondary",onClick:()=>l(eo.key,1),$isFocused:o===0,children:[j(ut,{icon:"title"}),"Title"]})}),j(er,{children:He(cs,{color:"secondary",ref:a.current[1],onClick:()=>l(eo.key,2),$isFocused:o===1,children:[j(ut,{icon:"subtitle"}),"Subtitle"]})}),j(er,{children:He(cs,{color:"secondary",ref:a.current[2],onClick:()=>l(a1.key),$isFocused:o===2,children:[j(ut,{icon:"paragraph"}),"Normal text"]})}),j(er,{children:j(f2,{editable:!1,onModalOpen:s,handler:({onOpen:c})=>He(cs,{onClick:c,color:"secondary",ref:a.current[3],$isFocused:o===3,children:[j(ut,{icon:"add_link"}),"Add link"]})})}),j(er,{children:j(bE,{onModalOpen:s,handler:({onOpen:c})=>He(cs,{onClick:c,color:"secondary",ref:a.current[4],$isFocused:o===4,children:[j(ut,{icon:"embed_image"}),"Add document"]}),onInsert:c=>i(s1.key,{src:c})})}),j(er,{children:He(cs,{color:"secondary",onClick:()=>l(jp.key),ref:a.current[5],$isFocused:o===5,children:[j(ut,{icon:"code_block"}),"Add code"]})}),j(er,{children:He(cs,{color:"secondary",onClick:()=>l(v1.key),ref:a.current[6],$isFocused:o===6,children:[j(ut,{icon:"create_table"}),"Add table"]})}),j(er,{children:He(cs,{color:"secondary",ref:a.current[7],onClick:()=>l(VD.key),$isFocused:o===7,children:[j(ut,{icon:"math"}),"Add math"]})}),j(er,{children:He(cs,{color:"secondary",onClick:()=>l($1.key),ref:a.current[8],$isFocused:o===8,children:[j(ut,{icon:"mermaid"}),"Add diagram"]})}),j(er,{children:j(kE,{onModalOpen:s,handler:({onOpen:c})=>He(cs,{onClick:c,color:"secondary",ref:a.current[9],$isFocused:o===9,children:[j(ut,{icon:"google",fill:e.white}),"Add Google doc"]})})})]})})})},cs=Ae(ya).withConfig({displayName:"FocusableDropdownButtonActionStyled"})(["",""],e=>e.$isFocused&&Tn(["background-color:",";"],t=>t.theme.colors.secondaryLightGrey)),uB=GOt("MILKDOWN"),QOt=()=>{const e=oS();return F.useMemo(()=>[uB,n=>()=>{n.set(uB.key,{view:e({component:JOt})})}].flat(),[e])},eNt=e=>new Promise(t=>{const n=new FileReader;n.addEventListener("load",()=>{t({alt:e.name,src:n.result})},!1),n.readAsDataURL(e)}),tNt=async(e,t)=>{const n=[];for(let i=0;i<e.length;i++){const a=e.item(i);a&&a.type.includes("image")&&n.push(a)}const{image:r}=t.nodes;if(!r)throw lV("image");return(await Promise.all(n.map(i=>eNt(i)))).map(({alt:i,src:a})=>r.createAndFill({src:a,alt:i}))},Yh=Lr({uploader:tNt,enableHtmlFileUploader:!1,uploadWidgetFactory:(e,t)=>{const n=document.createElement("span");return n.textContent="Upload in progress...",$r.widget(e,n,t)}},"uploadConfig");Yh.meta={package:"@milkdown/plugin-upload",displayName:"Ctx<uploadConfig>"};const LX=yr(e=>{const t=new Fn("MILKDOWN_UPLOAD"),n=(i,a)=>{var o;const s=t.getState(i);if(!s)return-1;const l=s.find(void 0,void 0,c=>c.id===a);return l.length?((o=l[0])==null?void 0:o.from)??-1:-1},r=(i,a,o)=>{var s;if(!o||o.length<=0)return!1;const l=Symbol("upload symbol"),c=e.get(Es),{tr:u}=i.state,f=a instanceof DragEvent?((s=i.posAtCoords({left:a.clientX,top:a.clientY}))==null?void 0:s.pos)??u.selection.from:u.selection.from;i.dispatch(u.setMeta(t,{add:{id:l,pos:f}}));const{uploader:h}=e.get(Yh.key);return h(o,c).then(m=>{const g=n(i.state,l);g<0||i.dispatch(i.state.tr.replaceWith(g,g,m).setMeta(t,{remove:{id:l}}))}).catch(m=>{console.error(m)}),!0};return new Bn({key:t,state:{init(){return en.empty},apply(i,a){const o=a.map(i.mapping,i.doc),s=i.getMeta(this);if(!s)return o;if(s.add){const{uploadWidgetFactory:l}=e.get(Yh.key),c=l(s.add.pos,{id:s.add.id});return o.add(i.doc,[c])}if(s.remove){const l=o.find(void 0,void 0,c=>c.id===s.remove.id);return o.remove(l)}return o}},props:{decorations(i){return this.getState(i)},handlePaste:(i,a)=>{var o,s;const{enableHtmlFileUploader:l}=e.get(Yh.key);return!(a instanceof ClipboardEvent)||!l&&(o=a.clipboardData)!=null&&o.getData("text/html")?!1:r(i,a,(s=a.clipboardData)==null?void 0:s.files)},handleDrop:(i,a)=>{var o;return a instanceof DragEvent?r(i,a,(o=a.dataTransfer)==null?void 0:o.files):!1}}})});LX.meta={package:"@milkdown/plugin-upload",displayName:"Prose<upload>"};const nNt=[Yh,LX],rNt=()=>{const{onErrorNotification:e}=Xv(),{onFileUpload:t,onFileValidation:n}=ta();return F.useCallback(async(i,a)=>{try{const o=[];for(let s=0;s<i.length;s++){const l=i.item(s);n&&!n(l)||o.push(l)}return await Promise.all(o.map(async s=>{const l=await t(s),c=s.name;return a.nodes.image.createAndFill({src:l,alt:c})}))}catch{return e("Something bad happened"),[]}},[t,e,n])},iNt=()=>{const e=$v(),t=rNt();return F.useMemo(()=>[nNt,r=>()=>{r.update(Yh.key,i=>({...i,uploader:t,uploadWidgetFactory:e({as:"div",component:()=>j(nG,{})})}))}].flat(),[e,t])},aNt=F.createContext({editor:null}),oNt=({onFocus:e,children:t,onChange:n,debounceChange:r,defaultMarkdownValue:i})=>{const a=E4t(),o=fxt(),s=iNt(),l=aOt(),c=QOt(),u=jvt(),f=UOt(),h=sOt(),m=XMt(),g=F4t({onChange:n,onFocus:e,debounceChange:r});Vvt();const b=gle(w=>Cme.make().config(k=>{k.set(pb,w),k.set(db,i)}).use(u).use(h).use(g).use(f).use(wpt).use(s).use(l).use(o).use(c).use(vpt).use(upt).use(Mq).use(m).use(a),[u,i,g,m,a,o,l,n,c,s,f]),C=F.useMemo(()=>({editor:b}),[b]);return j(aNt.Provider,{value:C,children:t})},sNt={error:{className:"error-toaster",icon:"🫠",style:{padding:`${ee(13)} ${ee(16)}`,color:Vt.colors.lightBlack,background:"#FFDDDD",maxWidth:"none",gap:`${ee(5)}`}},success:{className:"success-toaster",icon:"🙌",style:{padding:`${ee(13)} ${ee(16)}`,color:Vt.colors.white,background:Vt.colors.lightBlack,maxWidth:"none",gap:`${ee(5)}`}}},lNt=({data:e,mode:t,showMenu:n,className:r="",editorRef:i,placeholder:a,onDataChange:o,onFileUpload:s,stickyOnMenu:l,onEditorFocus:c,onFileValidation:u,inputAcceptedFormats:f,...h})=>j(dle,{theme:Vt,children:j(fgt,{mode:t,showMenu:n,placeholder:a,onFileUpload:s,stickyOnMenu:l,onFileValidation:u,inputAcceptedFormats:f,children:j(mle,{children:j(ede,{children:j(oNt,{onFocus:c,onChange:o,defaultMarkdownValue:e,...h,children:He(ige,{className:["date-data_text-editor",r].join(" "),tabIndex:-1,children:[j(Hde,{toastOptions:sNt}),j(Sme,{ref:i})]})})})})})}),cNt=` # Milkdown React Commonmark ![avatar](https://dogtowndogtraining.com/wp-content/uploads/2012/06/300x300-061-e1340955308953.jpg) @@ -724,4 +724,4 @@ Lorem ipsum dolor re arcu. Praesent lacus diam, laoreet et nisi sit amet, interd | Content Cell 1 | Content Cell 1 | Cell 3 | | Content Cell 2 | **Content** Cell 2 | Cell 3 | -`,cNt=()=>{const[e,t]=F.useState(""),n=F.useRef(null),r=F.useCallback(a=>{localStorage.setItem("milkdown/value",a)},[]),i=F.useMemo(()=>localStorage.getItem("milkdown/value")??lNt,[]);return He(dle,{children:[He("section",{children:[j("h2",{children:"Text will be there:"}),j("div",{children:e})]}),He(uNt,{children:[He("div",{children:[j("button",{onClick:()=>{var a;return(a=n.current)==null?void 0:a.reset()},children:"Reset state"}),j("button",{onClick:()=>{var a;return t(((a=n.current)==null?void 0:a.getValue())||"")},children:"Retrieve Editor's text"})]}),j(sNt,{data:i,onDataChange:r,mode:"active",editorRef:n,debounceChange:1e3})]})]})},uNt=Ae.div.withConfig({displayName:"AppContainerStyled"})(["display:flex;align-items:center;justify-content:center;flex-direction:column;gap:",";max-width:100vw;min-height:100vh;margin:0;background-color:#fff;*{box-sizing:border-box;}"],ee(100));$5.createRoot(document.getElementById("root")).render(j(cn.StrictMode,{children:j(cNt,{})}));export{x7t as $,$Z as A,DZ as B,Rs as C,qCt as D,BEt as E,OZ as F,azt as G,Ezt as H,WD as I,cY as J,T1 as K,g7t as L,fY as M,VNt as N,Bi as O,Qo as P,gxt as Q,Vi as R,ZNt as S,mE as T,HEt as U,ZEt as V,GD as W,Mc as X,$g as Y,JL as Z,St as _,zZ as a,iLt as a0,fzt as a1,Ea as a2,lY as a3,Mxt as a4,Szt as a5,iE as a6,z1 as a7,Tw as a8,VDt as a9,ft as aA,yt as aB,XD as aC,UNt as aD,KNt as aE,aI as aF,iI as aG,YNt as aH,GNt as aI,qNt as aJ,HNt as aK,JNt as aL,XNt as aM,WNt as aN,ape as aO,fxt as aP,HY as aa,Yp as ab,P9t as ac,HDt as ad,PDt as ae,YDt as af,SEt as ag,CDt as ah,XY as ai,F1 as aj,bDt as ak,Zp as al,Aw as am,kf as an,Ou as ao,NDt as ap,zI as aq,wEt as ar,QY as as,F7 as at,Ub as au,Rg as av,$$t as aw,ezt as ax,MZ as ay,A1 as az,AZ as b,Ql as c,Ig as d,ii as e,Iw as f,TZ as g,ms as h,KAt as i,oE as j,$zt as k,Qe as l,rf as m,YK as n,PCt as o,Czt as p,iZ as q,yzt as r,EZ as s,YAt as t,HAt as u,UY as v,zzt as w,Kb as x,qm as y,FZ as z}; +`,uNt=()=>{const[e,t]=F.useState(""),n=F.useRef(null),r=F.useCallback(a=>{localStorage.setItem("milkdown/value",a)},[]),i=F.useMemo(()=>localStorage.getItem("milkdown/value")??cNt,[]);return He(fle,{children:[He("section",{children:[j("h2",{children:"Text will be there:"}),j("div",{children:e})]}),He(dNt,{children:[He("div",{children:[j("button",{onClick:()=>{var a;return(a=n.current)==null?void 0:a.reset()},children:"Reset state"}),j("button",{onClick:()=>{var a;return t(((a=n.current)==null?void 0:a.getValue())||"")},children:"Retrieve Editor's text"})]}),j(lNt,{data:i,onDataChange:r,mode:"active",editorRef:n,debounceChange:1e3})]})]})},dNt=Ae.div.withConfig({displayName:"AppContainerStyled"})(["display:flex;align-items:center;justify-content:center;flex-direction:column;gap:",";max-width:100vw;min-height:100vh;margin:0;background-color:#fff;*{box-sizing:border-box;}"],ee(100));$5.createRoot(document.getElementById("root")).render(j(cn.StrictMode,{children:j(uNt,{})}));export{C7t as $,MZ as A,EZ as B,Rs as C,HCt as D,REt as E,NZ as F,ozt as G,Tzt as H,WD as I,uY as J,T1 as K,y7t as L,hY as M,qNt as N,Bi as O,Qo as P,yxt as Q,Vi as R,XNt as S,mE as T,UEt as U,XEt as V,GD as W,Mc as X,$g as Y,JL as Z,St as _,FZ as a,aLt as a0,hzt as a1,Ea as a2,cY as a3,Oxt as a4,Dzt as a5,iE as a6,z1 as a7,Tw as a8,qDt as a9,ft as aA,yt as aB,XD as aC,WNt as aD,YNt as aE,aI as aF,iI as aG,ZNt as aH,KNt as aI,HNt as aJ,UNt as aK,QNt as aL,JNt as aM,GNt as aN,ape as aO,hxt as aP,UY as aa,Yp as ab,j9t as ac,UDt as ad,jDt as ae,ZDt as af,DEt as ag,SDt as ah,JY as ai,F1 as aj,kDt as ak,Zp as al,Aw as am,kf as an,Ou as ao,LDt as ap,zI as aq,vEt as ar,eZ as as,F7 as at,Ub as au,Rg as av,M$t as aw,tzt as ax,OZ as ay,A1 as az,zZ as b,Ql as c,Ig as d,ii as e,Iw as f,AZ as g,ms as h,YAt as i,oE as j,Mzt as k,Qe as l,rf as m,ZK as n,jCt as o,Szt as p,aZ as q,_zt as r,TZ as s,ZAt as t,UAt as u,WY as v,Fzt as w,Kb as x,qm as y,$Z as z}; diff --git a/docs/assets/index-1e7f2254-829de93b.js b/docs/assets/index-1e7f2254-a4f10dcc.js similarity index 97% rename from docs/assets/index-1e7f2254-829de93b.js rename to docs/assets/index-1e7f2254-a4f10dcc.js index c0e1e1d2..f11e7ac4 100644 --- a/docs/assets/index-1e7f2254-829de93b.js +++ b/docs/assets/index-1e7f2254-a4f10dcc.js @@ -1 +1 @@ -import{b as k,a as v,m as D,G,l as j}from"./layout-15168dd5.js";import{i as A,u as M,s as _,a as H,b as V,p as B,c as q,d as U,e as W,f as Y,g as O,h as X}from"./edges-66ea8538-e5136c41.js";import{l as i,q as N,c as E,h as L}from"./index-b4f98efc.js";import{c as z}from"./createText-a49d2d2a-a6165332.js";var K=4;function Q(e){return k(e,K)}function y(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:Z(e),edges:I(e)};return v(e.graph())||(t.value=Q(e.graph())),t}function Z(e){return D(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),s={v:t};return v(n)||(s.value=n),v(r)||(s.parent=r),s})}function I(e){return D(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return v(t.name)||(r.name=t.name),v(n)||(r.value=n),r})}let f={},x={},T={};const tt=()=>{x={},T={},f={}},S=(e,t)=>(i.trace("In isDecendant",t," ",e," = ",x[t].includes(e)),!!x[t].includes(e)),et=(e,t)=>(i.info("Decendants of ",t," is ",x[t]),i.info("Edge is ",e),e.v===t||e.w===t?!1:x[t]?x[t].includes(e.v)||S(e.v,t)||S(e.w,t)||x[t].includes(e.w):(i.debug("Tilt, ",t,",not in decendants"),!1)),J=(e,t,n,r)=>{i.warn("Copying children of ",e,"root",r,"data",t.node(e),r);const s=t.children(e)||[];e!==r&&s.push(e),i.warn("Copying (nodes) clusterId",e,"nodes",s),s.forEach(a=>{if(t.children(a).length>0)J(a,t,n,r);else{const h=t.node(a);i.info("cp ",a," to ",r," with parent ",e),n.setNode(a,h),r!==t.parent(a)&&(i.warn("Setting parent",a,t.parent(a)),n.setParent(a,t.parent(a))),e!==r&&a!==e?(i.debug("Setting parent",a,e),n.setParent(a,e)):(i.info("In copy ",e,"root",r,"data",t.node(e),r),i.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==r,"node!==clusterId",a!==e));const l=t.edges(a);i.debug("Copying Edges",l),l.forEach(d=>{i.info("Edge",d);const w=t.edge(d.v,d.w,d.name);i.info("Edge data",w,r);try{et(d,r)?(i.info("Copying as ",d.v,d.w,w,d.name),n.setEdge(d.v,d.w,w,d.name),i.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):i.info("Skipping copy of edge ",d.v,"-->",d.w," rootId: ",r," clusterId:",e)}catch(g){i.error(g)}})}i.debug("Removing node",a),t.removeNode(a)})},p=(e,t)=>{const n=t.children(e);let r=[...n];for(const s of n)T[s]=e,r=[...r,...p(s,t)];return r},m=(e,t)=>{i.trace("Searching",e);const n=t.children(e);if(i.trace("Searching children of id ",e,n),n.length<1)return i.trace("This is a valid node",e),e;for(const r of n){const s=m(r,t);if(s)return i.trace("Found replacement for",e," => ",s),s}},b=e=>!f[e]||!f[e].externalConnections?e:f[e]?f[e].id:e,nt=(e,t)=>{if(!e||t>10){i.debug("Opting out, no graph ");return}else i.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(i.warn("Cluster identified",n," Replacement id in edges: ",m(n,e)),x[n]=p(n,e),f[n]={id:m(n,e),clusterData:e.node(n)})}),e.nodes().forEach(function(n){const r=e.children(n),s=e.edges();r.length>0?(i.debug("Cluster identified",n,x),s.forEach(a=>{if(a.v!==n&&a.w!==n){const h=S(a.v,n),l=S(a.w,n);h^l&&(i.warn("Edge: ",a," leaves cluster ",n),i.warn("Decendants of XXX ",n,": ",x[n]),f[n].externalConnections=!0)}})):i.debug("Not a cluster ",n,x)}),e.edges().forEach(function(n){const r=e.edge(n);i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let s=n.v,a=n.w;if(i.warn("Fix XXX",f,"ids:",n.v,n.w,"Translating: ",f[n.v]," --- ",f[n.w]),f[n.v]&&f[n.w]&&f[n.v]===f[n.w]){i.warn("Fixing and trixing link to self - removing XXX",n.v,n.w,n.name),i.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),s=b(n.v),a=b(n.w),e.removeEdge(n.v,n.w,n.name);const h=n.w+"---"+n.v;e.setNode(h,{domId:h,id:h,labelStyle:"",labelText:r.label,padding:0,shape:"labelRect",style:""});const l=JSON.parse(JSON.stringify(r)),d=JSON.parse(JSON.stringify(r));l.label="",l.arrowTypeEnd="none",d.label="",l.fromCluster=n.v,d.toCluster=n.v,e.setEdge(s,h,l,n.name+"-cyclic-special"),e.setEdge(h,a,d,n.name+"-cyclic-special")}else(f[n.v]||f[n.w])&&(i.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),s=b(n.v),a=b(n.w),e.removeEdge(n.v,n.w,n.name),s!==n.v&&(r.fromCluster=n.v),a!==n.w&&(r.toCluster=n.w),i.warn("Fix Replacing with XXX",s,a,n.name),e.setEdge(s,a,r,n.name))}),i.warn("Adjusted Graph",y(e)),R(e,0),i.trace(f)},R=(e,t)=>{if(i.warn("extractor - ",t,y(e),e.children("D")),t>10){i.error("Bailing out");return}let n=e.nodes(),r=!1;for(const s of n){const a=e.children(s);r=r||a.length>0}if(!r){i.debug("Done, no node has children",e.nodes());return}i.debug("Nodes = ",n,t);for(const s of n)if(i.debug("Extracting node",s,f,f[s]&&!f[s].externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",t),!f[s])i.debug("Not a cluster",s,t);else if(!f[s].externalConnections&&e.children(s)&&e.children(s).length>0){i.warn("Cluster without external connections, without a parent and with children",s,t);let h=e.graph().rankdir==="TB"?"LR":"TB";f[s]&&f[s].clusterData&&f[s].clusterData.dir&&(h=f[s].clusterData.dir,i.warn("Fixing dir",f[s].clusterData.dir,h));const l=new G({multigraph:!0,compound:!0}).setGraph({rankdir:h,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});i.warn("Old graph before copy",y(e)),J(s,e,l,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:f[s].clusterData,labelText:f[s].labelText,graph:l}),i.warn("New graph after copy node: (",s,")",y(l)),i.debug("Old graph after copy",y(e))}else i.warn("Cluster ** ",s," **not meeting the criteria !externalConnections:",!f[s].externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),t),i.debug(f);n=e.nodes(),i.warn("New list of nodes",n);for(const s of n){const a=e.node(s);i.warn(" Now next level",s,a),a.clusterNode&&R(a.graph,t+1)}},P=(e,t)=>{if(t.length===0)return[];let n=Object.assign(t);return t.forEach(r=>{const s=e.children(r),a=P(e,s);n=[...n,...a]}),n},it=e=>P(e,e.children()),st=(e,t)=>{i.info("Creating subgraph rect for ",t.id,t);const n=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),r=n.insert("rect",":first-child"),s=N(E().flowchart.htmlLabels),a=n.insert("g").attr("class","cluster-label"),h=t.labelType==="markdown"?z(a,t.labelText,{style:t.labelStyle,useHtmlLabels:s}):a.node().appendChild(O(t.labelText,t.labelStyle,void 0,!0));let l=h.getBBox();if(N(E().flowchart.htmlLabels)){const o=h.children[0],u=L(h);l=o.getBoundingClientRect(),u.attr("width",l.width),u.attr("height",l.height)}const d=0*t.padding,w=d/2,g=t.width<=l.width+d?l.width+d:t.width;t.width<=l.width+d?t.diff=(l.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,i.trace("Data ",t,JSON.stringify(t)),r.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-g/2).attr("y",t.y-t.height/2-w).attr("width",g).attr("height",t.height+d),s?a.attr("transform","translate("+(t.x-l.width/2)+", "+(t.y-t.height/2)+")"):a.attr("transform","translate("+t.x+", "+(t.y-t.height/2)+")");const c=r.node().getBBox();return t.width=c.width,t.height=c.height,t.intersect=function(o){return X(t,o)},n},rt=(e,t)=>{const n=e.insert("g").attr("class","note-cluster").attr("id",t.id),r=n.insert("rect",":first-child"),s=0*t.padding,a=s/2;r.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2-a).attr("width",t.width+s).attr("height",t.height+s).attr("fill","none");const h=r.node().getBBox();return t.width=h.width,t.height=h.height,t.intersect=function(l){return X(t,l)},n},at=(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),s=n.insert("g").attr("class","cluster-label"),a=n.append("rect"),h=s.node().appendChild(O(t.labelText,t.labelStyle,void 0,!0));let l=h.getBBox();if(N(E().flowchart.htmlLabels)){const o=h.children[0],u=L(h);l=o.getBoundingClientRect(),u.attr("width",l.width),u.attr("height",l.height)}l=h.getBBox();const d=0*t.padding,w=d/2,g=t.width<=l.width+t.padding?l.width+t.padding:t.width;t.width<=l.width+t.padding?t.diff=(l.width+t.padding*0-t.width)/2:t.diff=-t.padding/2,r.attr("class","outer").attr("x",t.x-g/2-w).attr("y",t.y-t.height/2-w).attr("width",g+d).attr("height",t.height+d),a.attr("class","inner").attr("x",t.x-g/2-w).attr("y",t.y-t.height/2-w+l.height-1).attr("width",g+d).attr("height",t.height+d-l.height-3),s.attr("transform","translate("+(t.x-l.width/2)+", "+(t.y-t.height/2-t.padding/3+(N(E().flowchart.htmlLabels)?5:3))+")");const c=r.node().getBBox();return t.height=c.height,t.intersect=function(o){return X(t,o)},n},ct=(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),s=0*t.padding,a=s/2;r.attr("class","divider").attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2).attr("width",t.width+s).attr("height",t.height+s);const h=r.node().getBBox();return t.width=h.width,t.height=h.height,t.diff=-t.padding/2,t.intersect=function(l){return X(t,l)},n},ot={rect:st,roundedWithTitle:at,noteGroup:rt,divider:ct};let F={};const lt=(e,t)=>{i.trace("Inserting cluster");const n=t.shape||"rect";F[t.id]=ot[n](e,t)},ft=()=>{F={}},$=async(e,t,n,r)=>{i.info("Graph in recursive render: XXX",y(t),r);const s=t.graph().rankdir;i.trace("Dir in recursive render - dir:",s);const a=e.insert("g").attr("class","root");t.nodes()?i.info("Recursive render XXX",t.nodes()):i.info("No nodes found for",t),t.edges().length>0&&i.trace("Recursive edges",t.edge(t.edges()[0]));const h=a.insert("g").attr("class","clusters"),l=a.insert("g").attr("class","edgePaths"),d=a.insert("g").attr("class","edgeLabels"),w=a.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(c){const o=t.node(c);if(r!==void 0){const u=JSON.parse(JSON.stringify(r.clusterData));i.info("Setting data for cluster XXX (",c,") ",u,r),t.setNode(r.id,u),t.parent(c)||(i.trace("Setting parent",c,r.id),t.setParent(c,r.id,u))}if(i.info("(Insert) Node XXX"+c+": "+JSON.stringify(t.node(c))),o&&o.clusterNode){i.info("Cluster identified",c,o.width,t.node(c));const u=await $(w,o.graph,n,t.node(c)),C=u.elem;M(o,C),o.diff=u.diff||0,i.info("Node bounds (abc123)",c,o,o.width,o.x,o.y),_(C,o),i.warn("Recursive render complete ",C,o)}else t.children(c).length>0?(i.info("Cluster - the non recursive path XXX",c,o.id,o,t),i.info(m(o.id,t)),f[o.id]={id:m(o.id,t),node:o}):(i.info("Node - the non recursive path",c,o.id,o),await H(w,t.node(c),s))})),t.edges().forEach(function(c){const o=t.edge(c.v,c.w,c.name);i.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(c)),i.info("Edge "+c.v+" -> "+c.w+": ",c," ",JSON.stringify(t.edge(c))),i.info("Fix",f,"ids:",c.v,c.w,"Translateing: ",f[c.v],f[c.w]),V(d,o)}),t.edges().forEach(function(c){i.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(c))}),i.info("#############################################"),i.info("### Layout ###"),i.info("#############################################"),i.info(t),j(t),i.info("Graph after layout:",y(t));let g=0;return it(t).forEach(function(c){const o=t.node(c);i.info("Position "+c+": "+JSON.stringify(t.node(c))),i.info("Position "+c+": ("+o.x,","+o.y,") width: ",o.width," height: ",o.height),o&&o.clusterNode?B(o):t.children(c).length>0?(lt(h,o),f[o.id].node=o):B(o)}),t.edges().forEach(function(c){const o=t.edge(c);i.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(o),o);const u=q(l,c,o,f,n,t);U(o,u)}),t.nodes().forEach(function(c){const o=t.node(c);i.info(c,o.type,o.diff),o.type==="group"&&(g=o.diff)}),{elem:a,diff:g}},gt=async(e,t,n,r,s)=>{A(e,n,r,s),W(),Y(),ft(),tt(),i.warn("Graph at first:",y(t)),nt(t),i.warn("Graph after:",y(t)),await $(e,t,r)};export{gt as r}; +import{b as k,a as v,m as D,G,l as j}from"./layout-c97c50ff.js";import{i as A,u as M,s as _,a as H,b as V,p as B,c as q,d as U,e as W,f as Y,g as O,h as X}from"./edges-66ea8538-e73fd07f.js";import{l as i,q as N,c as E,h as L}from"./index-0e08498d.js";import{c as z}from"./createText-a49d2d2a-b45cf165.js";var K=4;function Q(e){return k(e,K)}function y(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:Z(e),edges:I(e)};return v(e.graph())||(t.value=Q(e.graph())),t}function Z(e){return D(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),s={v:t};return v(n)||(s.value=n),v(r)||(s.parent=r),s})}function I(e){return D(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return v(t.name)||(r.name=t.name),v(n)||(r.value=n),r})}let f={},x={},T={};const tt=()=>{x={},T={},f={}},S=(e,t)=>(i.trace("In isDecendant",t," ",e," = ",x[t].includes(e)),!!x[t].includes(e)),et=(e,t)=>(i.info("Decendants of ",t," is ",x[t]),i.info("Edge is ",e),e.v===t||e.w===t?!1:x[t]?x[t].includes(e.v)||S(e.v,t)||S(e.w,t)||x[t].includes(e.w):(i.debug("Tilt, ",t,",not in decendants"),!1)),J=(e,t,n,r)=>{i.warn("Copying children of ",e,"root",r,"data",t.node(e),r);const s=t.children(e)||[];e!==r&&s.push(e),i.warn("Copying (nodes) clusterId",e,"nodes",s),s.forEach(a=>{if(t.children(a).length>0)J(a,t,n,r);else{const h=t.node(a);i.info("cp ",a," to ",r," with parent ",e),n.setNode(a,h),r!==t.parent(a)&&(i.warn("Setting parent",a,t.parent(a)),n.setParent(a,t.parent(a))),e!==r&&a!==e?(i.debug("Setting parent",a,e),n.setParent(a,e)):(i.info("In copy ",e,"root",r,"data",t.node(e),r),i.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==r,"node!==clusterId",a!==e));const l=t.edges(a);i.debug("Copying Edges",l),l.forEach(d=>{i.info("Edge",d);const w=t.edge(d.v,d.w,d.name);i.info("Edge data",w,r);try{et(d,r)?(i.info("Copying as ",d.v,d.w,w,d.name),n.setEdge(d.v,d.w,w,d.name),i.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):i.info("Skipping copy of edge ",d.v,"-->",d.w," rootId: ",r," clusterId:",e)}catch(g){i.error(g)}})}i.debug("Removing node",a),t.removeNode(a)})},p=(e,t)=>{const n=t.children(e);let r=[...n];for(const s of n)T[s]=e,r=[...r,...p(s,t)];return r},m=(e,t)=>{i.trace("Searching",e);const n=t.children(e);if(i.trace("Searching children of id ",e,n),n.length<1)return i.trace("This is a valid node",e),e;for(const r of n){const s=m(r,t);if(s)return i.trace("Found replacement for",e," => ",s),s}},b=e=>!f[e]||!f[e].externalConnections?e:f[e]?f[e].id:e,nt=(e,t)=>{if(!e||t>10){i.debug("Opting out, no graph ");return}else i.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(i.warn("Cluster identified",n," Replacement id in edges: ",m(n,e)),x[n]=p(n,e),f[n]={id:m(n,e),clusterData:e.node(n)})}),e.nodes().forEach(function(n){const r=e.children(n),s=e.edges();r.length>0?(i.debug("Cluster identified",n,x),s.forEach(a=>{if(a.v!==n&&a.w!==n){const h=S(a.v,n),l=S(a.w,n);h^l&&(i.warn("Edge: ",a," leaves cluster ",n),i.warn("Decendants of XXX ",n,": ",x[n]),f[n].externalConnections=!0)}})):i.debug("Not a cluster ",n,x)}),e.edges().forEach(function(n){const r=e.edge(n);i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let s=n.v,a=n.w;if(i.warn("Fix XXX",f,"ids:",n.v,n.w,"Translating: ",f[n.v]," --- ",f[n.w]),f[n.v]&&f[n.w]&&f[n.v]===f[n.w]){i.warn("Fixing and trixing link to self - removing XXX",n.v,n.w,n.name),i.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),s=b(n.v),a=b(n.w),e.removeEdge(n.v,n.w,n.name);const h=n.w+"---"+n.v;e.setNode(h,{domId:h,id:h,labelStyle:"",labelText:r.label,padding:0,shape:"labelRect",style:""});const l=JSON.parse(JSON.stringify(r)),d=JSON.parse(JSON.stringify(r));l.label="",l.arrowTypeEnd="none",d.label="",l.fromCluster=n.v,d.toCluster=n.v,e.setEdge(s,h,l,n.name+"-cyclic-special"),e.setEdge(h,a,d,n.name+"-cyclic-special")}else(f[n.v]||f[n.w])&&(i.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),s=b(n.v),a=b(n.w),e.removeEdge(n.v,n.w,n.name),s!==n.v&&(r.fromCluster=n.v),a!==n.w&&(r.toCluster=n.w),i.warn("Fix Replacing with XXX",s,a,n.name),e.setEdge(s,a,r,n.name))}),i.warn("Adjusted Graph",y(e)),R(e,0),i.trace(f)},R=(e,t)=>{if(i.warn("extractor - ",t,y(e),e.children("D")),t>10){i.error("Bailing out");return}let n=e.nodes(),r=!1;for(const s of n){const a=e.children(s);r=r||a.length>0}if(!r){i.debug("Done, no node has children",e.nodes());return}i.debug("Nodes = ",n,t);for(const s of n)if(i.debug("Extracting node",s,f,f[s]&&!f[s].externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",t),!f[s])i.debug("Not a cluster",s,t);else if(!f[s].externalConnections&&e.children(s)&&e.children(s).length>0){i.warn("Cluster without external connections, without a parent and with children",s,t);let h=e.graph().rankdir==="TB"?"LR":"TB";f[s]&&f[s].clusterData&&f[s].clusterData.dir&&(h=f[s].clusterData.dir,i.warn("Fixing dir",f[s].clusterData.dir,h));const l=new G({multigraph:!0,compound:!0}).setGraph({rankdir:h,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});i.warn("Old graph before copy",y(e)),J(s,e,l,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:f[s].clusterData,labelText:f[s].labelText,graph:l}),i.warn("New graph after copy node: (",s,")",y(l)),i.debug("Old graph after copy",y(e))}else i.warn("Cluster ** ",s," **not meeting the criteria !externalConnections:",!f[s].externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),t),i.debug(f);n=e.nodes(),i.warn("New list of nodes",n);for(const s of n){const a=e.node(s);i.warn(" Now next level",s,a),a.clusterNode&&R(a.graph,t+1)}},P=(e,t)=>{if(t.length===0)return[];let n=Object.assign(t);return t.forEach(r=>{const s=e.children(r),a=P(e,s);n=[...n,...a]}),n},it=e=>P(e,e.children()),st=(e,t)=>{i.info("Creating subgraph rect for ",t.id,t);const n=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),r=n.insert("rect",":first-child"),s=N(E().flowchart.htmlLabels),a=n.insert("g").attr("class","cluster-label"),h=t.labelType==="markdown"?z(a,t.labelText,{style:t.labelStyle,useHtmlLabels:s}):a.node().appendChild(O(t.labelText,t.labelStyle,void 0,!0));let l=h.getBBox();if(N(E().flowchart.htmlLabels)){const o=h.children[0],u=L(h);l=o.getBoundingClientRect(),u.attr("width",l.width),u.attr("height",l.height)}const d=0*t.padding,w=d/2,g=t.width<=l.width+d?l.width+d:t.width;t.width<=l.width+d?t.diff=(l.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,i.trace("Data ",t,JSON.stringify(t)),r.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-g/2).attr("y",t.y-t.height/2-w).attr("width",g).attr("height",t.height+d),s?a.attr("transform","translate("+(t.x-l.width/2)+", "+(t.y-t.height/2)+")"):a.attr("transform","translate("+t.x+", "+(t.y-t.height/2)+")");const c=r.node().getBBox();return t.width=c.width,t.height=c.height,t.intersect=function(o){return X(t,o)},n},rt=(e,t)=>{const n=e.insert("g").attr("class","note-cluster").attr("id",t.id),r=n.insert("rect",":first-child"),s=0*t.padding,a=s/2;r.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2-a).attr("width",t.width+s).attr("height",t.height+s).attr("fill","none");const h=r.node().getBBox();return t.width=h.width,t.height=h.height,t.intersect=function(l){return X(t,l)},n},at=(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),s=n.insert("g").attr("class","cluster-label"),a=n.append("rect"),h=s.node().appendChild(O(t.labelText,t.labelStyle,void 0,!0));let l=h.getBBox();if(N(E().flowchart.htmlLabels)){const o=h.children[0],u=L(h);l=o.getBoundingClientRect(),u.attr("width",l.width),u.attr("height",l.height)}l=h.getBBox();const d=0*t.padding,w=d/2,g=t.width<=l.width+t.padding?l.width+t.padding:t.width;t.width<=l.width+t.padding?t.diff=(l.width+t.padding*0-t.width)/2:t.diff=-t.padding/2,r.attr("class","outer").attr("x",t.x-g/2-w).attr("y",t.y-t.height/2-w).attr("width",g+d).attr("height",t.height+d),a.attr("class","inner").attr("x",t.x-g/2-w).attr("y",t.y-t.height/2-w+l.height-1).attr("width",g+d).attr("height",t.height+d-l.height-3),s.attr("transform","translate("+(t.x-l.width/2)+", "+(t.y-t.height/2-t.padding/3+(N(E().flowchart.htmlLabels)?5:3))+")");const c=r.node().getBBox();return t.height=c.height,t.intersect=function(o){return X(t,o)},n},ct=(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),s=0*t.padding,a=s/2;r.attr("class","divider").attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2).attr("width",t.width+s).attr("height",t.height+s);const h=r.node().getBBox();return t.width=h.width,t.height=h.height,t.diff=-t.padding/2,t.intersect=function(l){return X(t,l)},n},ot={rect:st,roundedWithTitle:at,noteGroup:rt,divider:ct};let F={};const lt=(e,t)=>{i.trace("Inserting cluster");const n=t.shape||"rect";F[t.id]=ot[n](e,t)},ft=()=>{F={}},$=async(e,t,n,r)=>{i.info("Graph in recursive render: XXX",y(t),r);const s=t.graph().rankdir;i.trace("Dir in recursive render - dir:",s);const a=e.insert("g").attr("class","root");t.nodes()?i.info("Recursive render XXX",t.nodes()):i.info("No nodes found for",t),t.edges().length>0&&i.trace("Recursive edges",t.edge(t.edges()[0]));const h=a.insert("g").attr("class","clusters"),l=a.insert("g").attr("class","edgePaths"),d=a.insert("g").attr("class","edgeLabels"),w=a.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(c){const o=t.node(c);if(r!==void 0){const u=JSON.parse(JSON.stringify(r.clusterData));i.info("Setting data for cluster XXX (",c,") ",u,r),t.setNode(r.id,u),t.parent(c)||(i.trace("Setting parent",c,r.id),t.setParent(c,r.id,u))}if(i.info("(Insert) Node XXX"+c+": "+JSON.stringify(t.node(c))),o&&o.clusterNode){i.info("Cluster identified",c,o.width,t.node(c));const u=await $(w,o.graph,n,t.node(c)),C=u.elem;M(o,C),o.diff=u.diff||0,i.info("Node bounds (abc123)",c,o,o.width,o.x,o.y),_(C,o),i.warn("Recursive render complete ",C,o)}else t.children(c).length>0?(i.info("Cluster - the non recursive path XXX",c,o.id,o,t),i.info(m(o.id,t)),f[o.id]={id:m(o.id,t),node:o}):(i.info("Node - the non recursive path",c,o.id,o),await H(w,t.node(c),s))})),t.edges().forEach(function(c){const o=t.edge(c.v,c.w,c.name);i.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(c)),i.info("Edge "+c.v+" -> "+c.w+": ",c," ",JSON.stringify(t.edge(c))),i.info("Fix",f,"ids:",c.v,c.w,"Translateing: ",f[c.v],f[c.w]),V(d,o)}),t.edges().forEach(function(c){i.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(c))}),i.info("#############################################"),i.info("### Layout ###"),i.info("#############################################"),i.info(t),j(t),i.info("Graph after layout:",y(t));let g=0;return it(t).forEach(function(c){const o=t.node(c);i.info("Position "+c+": "+JSON.stringify(t.node(c))),i.info("Position "+c+": ("+o.x,","+o.y,") width: ",o.width," height: ",o.height),o&&o.clusterNode?B(o):t.children(c).length>0?(lt(h,o),f[o.id].node=o):B(o)}),t.edges().forEach(function(c){const o=t.edge(c);i.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(o),o);const u=q(l,c,o,f,n,t);U(o,u)}),t.nodes().forEach(function(c){const o=t.node(c);i.info(c,o.type,o.diff),o.type==="group"&&(g=o.diff)}),{elem:a,diff:g}},gt=async(e,t,n,r,s)=>{A(e,n,r,s),W(),Y(),ft(),tt(),i.warn("Graph at first:",y(t)),nt(t),i.warn("Graph after:",y(t)),await $(e,t,r)};export{gt as r}; diff --git a/docs/assets/infoDiagram-f43c69c6-0ec89eea.js b/docs/assets/infoDiagram-f43c69c6-feae6ee1.js similarity index 99% rename from docs/assets/infoDiagram-f43c69c6-0ec89eea.js rename to docs/assets/infoDiagram-f43c69c6-feae6ee1.js index 0a3811dd..e7ad154d 100644 --- a/docs/assets/infoDiagram-f43c69c6-0ec89eea.js +++ b/docs/assets/infoDiagram-f43c69c6-feae6ee1.js @@ -1,4 +1,4 @@ -import{l as N,c as M,h as O}from"./index-b4f98efc.js";var $=function(){var c=function(h,t,e,n){for(e=e||{},n=h.length;n--;e[h[n]]=t);return e},f=[6,9,10],d={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,s,r,i,k){switch(i.length-1,r){case 1:return s;case 4:break;case 6:s.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},c(f,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},c(f,[2,3]),c(f,[2,4]),c(f,[2,5]),c(f,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=e,n}},parse:function(t){var e=this,n=[0],s=[],r=[null],i=[],k=this.table,L="",b=0,T=0,z=2,F=1,D=i.slice.call(arguments,1),o=Object.create(this.lexer),g={yy:{}};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&(g.yy[E]=this.yy[E]);o.setInput(t,g.yy),g.yy.lexer=o,g.yy.parser=this,typeof o.yylloc>"u"&&(o.yylloc={});var w=o.yylloc;i.push(w);var U=o.options&&o.options.ranges;typeof g.yy.parseError=="function"?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(){var u;return u=s.pop()||o.lex()||F,typeof u!="number"&&(u instanceof Array&&(s=u,u=s.pop()),u=e.symbols_[u]||u),u}for(var l,_,a,I,m={},v,y,j,S;;){if(_=n[n.length-1],this.defaultActions[_]?a=this.defaultActions[_]:((l===null||typeof l>"u")&&(l=Y()),a=k[_]&&k[_][l]),typeof a>"u"||!a.length||!a[0]){var A="";S=[];for(v in k[_])this.terminals_[v]&&v>z&&S.push("'"+this.terminals_[v]+"'");o.showPosition?A="Parse error on line "+(b+1)+`: +import{l as N,c as M,h as O}from"./index-0e08498d.js";var $=function(){var c=function(h,t,e,n){for(e=e||{},n=h.length;n--;e[h[n]]=t);return e},f=[6,9,10],d={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,s,r,i,k){switch(i.length-1,r){case 1:return s;case 4:break;case 6:s.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},c(f,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},c(f,[2,3]),c(f,[2,4]),c(f,[2,5]),c(f,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=e,n}},parse:function(t){var e=this,n=[0],s=[],r=[null],i=[],k=this.table,L="",b=0,T=0,z=2,F=1,D=i.slice.call(arguments,1),o=Object.create(this.lexer),g={yy:{}};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&(g.yy[E]=this.yy[E]);o.setInput(t,g.yy),g.yy.lexer=o,g.yy.parser=this,typeof o.yylloc>"u"&&(o.yylloc={});var w=o.yylloc;i.push(w);var U=o.options&&o.options.ranges;typeof g.yy.parseError=="function"?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(){var u;return u=s.pop()||o.lex()||F,typeof u!="number"&&(u instanceof Array&&(s=u,u=s.pop()),u=e.symbols_[u]||u),u}for(var l,_,a,I,m={},v,y,j,S;;){if(_=n[n.length-1],this.defaultActions[_]?a=this.defaultActions[_]:((l===null||typeof l>"u")&&(l=Y()),a=k[_]&&k[_][l]),typeof a>"u"||!a.length||!a[0]){var A="";S=[];for(v in k[_])this.terminals_[v]&&v>z&&S.push("'"+this.terminals_[v]+"'");o.showPosition?A="Parse error on line "+(b+1)+`: `+o.showPosition()+` Expecting `+S.join(", ")+", got '"+(this.terminals_[l]||l)+"'":A="Parse error on line "+(b+1)+": Unexpected "+(l==F?"end of input":"'"+(this.terminals_[l]||l)+"'"),this.parseError(A,{text:o.match,token:this.terminals_[l]||l,line:o.yylineno,loc:w,expected:S})}if(a[0]instanceof Array&&a.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+l);switch(a[0]){case 1:n.push(l),r.push(o.yytext),i.push(o.yylloc),n.push(a[1]),l=null,T=o.yyleng,L=o.yytext,b=o.yylineno,w=o.yylloc;break;case 2:if(y=this.productions_[a[1]][1],m.$=r[r.length-y],m._$={first_line:i[i.length-(y||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(y||1)].first_column,last_column:i[i.length-1].last_column},U&&(m._$.range=[i[i.length-(y||1)].range[0],i[i.length-1].range[1]]),I=this.performAction.apply(m,[L,T,b,g.yy,a[1],r,i].concat(D)),typeof I<"u")return I;y&&(n=n.slice(0,-1*y*2),r=r.slice(0,-1*y),i=i.slice(0,-1*y)),n.push(this.productions_[a[1]][0]),r.push(m.$),i.push(m._$),j=k[n[n.length-2]][n[n.length-1]],n.push(j);break;case 3:return!0}}return!0}},x=function(){var h={EOF:1,parseError:function(e,n){if(this.yy.parser)this.yy.parser.parseError(e,n);else throw new Error(e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);return e?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===s.length?this.yylloc.first_column:0)+s[s.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+` diff --git a/docs/assets/journeyDiagram-4f4351b8-eeb65947.js b/docs/assets/journeyDiagram-4f4351b8-d2c59943.js similarity index 99% rename from docs/assets/journeyDiagram-4f4351b8-eeb65947.js rename to docs/assets/journeyDiagram-4f4351b8-d2c59943.js index 16eeba25..b525ada8 100644 --- a/docs/assets/journeyDiagram-4f4351b8-eeb65947.js +++ b/docs/assets/journeyDiagram-4f4351b8-d2c59943.js @@ -1,4 +1,4 @@ -import{c as V,z as gt,A as mt,s as xt,g as _t,b as kt,a as bt,m as vt,B as wt,h as H,i as Tt}from"./index-b4f98efc.js";import{d as $t,f as St,a as Mt,g as ot}from"./svgDrawCommon-f26cad39-39fd75a0.js";import{a as it}from"./arc-12672da3.js";import"./path-53f90ab3.js";var Z=function(){var t=function(_,r,a,h){for(a=a||{},h=_.length;h--;a[_[h]]=r);return a},e=[1,2],s=[1,5],n=[6,9,11,17,18,20,22,23,24,26],i=[1,15],l=[1,16],c=[1,17],y=[1,18],u=[1,19],x=[1,20],g=[1,24],f=[4,6,9,11,17,18,20,22,23,24,26],d={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,taskName:24,taskData:25,open_directive:26,type_directive:27,arg_directive:28,close_directive:29,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",24:"taskName",25:"taskData",26:"open_directive",27:"type_directive",28:"arg_directive",29:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(r,a,h,p,m,o,R){var k=o.length-1;switch(m){case 1:return o[k-1];case 3:this.$=[];break;case 4:o[k-1].push(o[k]),this.$=o[k-1];break;case 5:case 6:this.$=o[k];break;case 7:case 8:this.$=[];break;case 11:p.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 12:this.$=o[k].trim(),p.setAccTitle(this.$);break;case 13:case 14:this.$=o[k].trim(),p.setAccDescription(this.$);break;case 15:p.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 16:p.addTask(o[k-1],o[k]),this.$="task";break;case 18:p.parseDirective("%%{","open_directive");break;case 19:p.parseDirective(o[k],"type_directive");break;case 20:o[k]=o[k].trim().replace(/'/g,'"'),p.parseDirective(o[k],"arg_directive");break;case 21:p.parseDirective("}%%","close_directive","journey");break}},table:[{3:1,4:e,7:3,12:4,26:s},{1:[3]},t(n,[2,3],{5:6}),{3:7,4:e,7:3,12:4,26:s},{13:8,27:[1,9]},{27:[2,18]},{6:[1,10],7:21,8:11,9:[1,12],10:13,11:[1,14],12:4,17:i,18:l,20:c,22:y,23:u,24:x,26:s},{1:[2,2]},{14:22,15:[1,23],29:g},t([15,29],[2,19]),t(n,[2,8],{1:[2,1]}),t(n,[2,4]),{7:21,10:25,12:4,17:i,18:l,20:c,22:y,23:u,24:x,26:s},t(n,[2,6]),t(n,[2,7]),t(n,[2,11]),{19:[1,26]},{21:[1,27]},t(n,[2,14]),t(n,[2,15]),{25:[1,28]},t(n,[2,17]),{11:[1,29]},{16:30,28:[1,31]},{11:[2,21]},t(n,[2,5]),t(n,[2,12]),t(n,[2,13]),t(n,[2,16]),t(f,[2,9]),{14:32,29:g},{29:[2,20]},{11:[1,33]},t(f,[2,10])],defaultActions:{5:[2,18],7:[2,2],24:[2,21],31:[2,20]},parseError:function(r,a){if(a.recoverable)this.trace(r);else{var h=new Error(r);throw h.hash=a,h}},parse:function(r){var a=this,h=[0],p=[],m=[null],o=[],R=this.table,k="",j=0,Q=0,yt=2,tt=1,dt=o.slice.call(arguments,1),v=Object.create(this.lexer),A={yy:{}};for(var D in this.yy)Object.prototype.hasOwnProperty.call(this.yy,D)&&(A.yy[D]=this.yy[D]);v.setInput(r,A.yy),A.yy.lexer=v,A.yy.parser=this,typeof v.yylloc>"u"&&(v.yylloc={});var W=v.yylloc;o.push(W);var pt=v.options&&v.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ft(){var E;return E=p.pop()||v.lex()||tt,typeof E!="number"&&(E instanceof Array&&(p=E,E=p.pop()),E=a.symbols_[E]||E),E}for(var w,I,$,X,F={},Y,M,et,q;;){if(I=h[h.length-1],this.defaultActions[I]?$=this.defaultActions[I]:((w===null||typeof w>"u")&&(w=ft()),$=R[I]&&R[I][w]),typeof $>"u"||!$.length||!$[0]){var G="";q=[];for(Y in R[I])this.terminals_[Y]&&Y>yt&&q.push("'"+this.terminals_[Y]+"'");v.showPosition?G="Parse error on line "+(j+1)+`: +import{c as V,z as gt,A as mt,s as xt,g as _t,b as kt,a as bt,m as vt,B as wt,h as H,i as Tt}from"./index-0e08498d.js";import{d as $t,f as St,a as Mt,g as ot}from"./svgDrawCommon-f26cad39-ad1bc4a5.js";import{a as it}from"./arc-2fa818f3.js";import"./path-53f90ab3.js";var Z=function(){var t=function(_,r,a,h){for(a=a||{},h=_.length;h--;a[_[h]]=r);return a},e=[1,2],s=[1,5],n=[6,9,11,17,18,20,22,23,24,26],i=[1,15],l=[1,16],c=[1,17],y=[1,18],u=[1,19],x=[1,20],g=[1,24],f=[4,6,9,11,17,18,20,22,23,24,26],d={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,taskName:24,taskData:25,open_directive:26,type_directive:27,arg_directive:28,close_directive:29,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",24:"taskName",25:"taskData",26:"open_directive",27:"type_directive",28:"arg_directive",29:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(r,a,h,p,m,o,R){var k=o.length-1;switch(m){case 1:return o[k-1];case 3:this.$=[];break;case 4:o[k-1].push(o[k]),this.$=o[k-1];break;case 5:case 6:this.$=o[k];break;case 7:case 8:this.$=[];break;case 11:p.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 12:this.$=o[k].trim(),p.setAccTitle(this.$);break;case 13:case 14:this.$=o[k].trim(),p.setAccDescription(this.$);break;case 15:p.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 16:p.addTask(o[k-1],o[k]),this.$="task";break;case 18:p.parseDirective("%%{","open_directive");break;case 19:p.parseDirective(o[k],"type_directive");break;case 20:o[k]=o[k].trim().replace(/'/g,'"'),p.parseDirective(o[k],"arg_directive");break;case 21:p.parseDirective("}%%","close_directive","journey");break}},table:[{3:1,4:e,7:3,12:4,26:s},{1:[3]},t(n,[2,3],{5:6}),{3:7,4:e,7:3,12:4,26:s},{13:8,27:[1,9]},{27:[2,18]},{6:[1,10],7:21,8:11,9:[1,12],10:13,11:[1,14],12:4,17:i,18:l,20:c,22:y,23:u,24:x,26:s},{1:[2,2]},{14:22,15:[1,23],29:g},t([15,29],[2,19]),t(n,[2,8],{1:[2,1]}),t(n,[2,4]),{7:21,10:25,12:4,17:i,18:l,20:c,22:y,23:u,24:x,26:s},t(n,[2,6]),t(n,[2,7]),t(n,[2,11]),{19:[1,26]},{21:[1,27]},t(n,[2,14]),t(n,[2,15]),{25:[1,28]},t(n,[2,17]),{11:[1,29]},{16:30,28:[1,31]},{11:[2,21]},t(n,[2,5]),t(n,[2,12]),t(n,[2,13]),t(n,[2,16]),t(f,[2,9]),{14:32,29:g},{29:[2,20]},{11:[1,33]},t(f,[2,10])],defaultActions:{5:[2,18],7:[2,2],24:[2,21],31:[2,20]},parseError:function(r,a){if(a.recoverable)this.trace(r);else{var h=new Error(r);throw h.hash=a,h}},parse:function(r){var a=this,h=[0],p=[],m=[null],o=[],R=this.table,k="",j=0,Q=0,yt=2,tt=1,dt=o.slice.call(arguments,1),v=Object.create(this.lexer),A={yy:{}};for(var D in this.yy)Object.prototype.hasOwnProperty.call(this.yy,D)&&(A.yy[D]=this.yy[D]);v.setInput(r,A.yy),A.yy.lexer=v,A.yy.parser=this,typeof v.yylloc>"u"&&(v.yylloc={});var W=v.yylloc;o.push(W);var pt=v.options&&v.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ft(){var E;return E=p.pop()||v.lex()||tt,typeof E!="number"&&(E instanceof Array&&(p=E,E=p.pop()),E=a.symbols_[E]||E),E}for(var w,I,$,X,F={},Y,M,et,q;;){if(I=h[h.length-1],this.defaultActions[I]?$=this.defaultActions[I]:((w===null||typeof w>"u")&&(w=ft()),$=R[I]&&R[I][w]),typeof $>"u"||!$.length||!$[0]){var G="";q=[];for(Y in R[I])this.terminals_[Y]&&Y>yt&&q.push("'"+this.terminals_[Y]+"'");v.showPosition?G="Parse error on line "+(j+1)+`: `+v.showPosition()+` Expecting `+q.join(", ")+", got '"+(this.terminals_[w]||w)+"'":G="Parse error on line "+(j+1)+": Unexpected "+(w==tt?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(G,{text:v.match,token:this.terminals_[w]||w,line:v.yylineno,loc:W,expected:q})}if($[0]instanceof Array&&$.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+w);switch($[0]){case 1:h.push(w),m.push(v.yytext),o.push(v.yylloc),h.push($[1]),w=null,Q=v.yyleng,k=v.yytext,j=v.yylineno,W=v.yylloc;break;case 2:if(M=this.productions_[$[1]][1],F.$=m[m.length-M],F._$={first_line:o[o.length-(M||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(M||1)].first_column,last_column:o[o.length-1].last_column},pt&&(F._$.range=[o[o.length-(M||1)].range[0],o[o.length-1].range[1]]),X=this.performAction.apply(F,[k,Q,j,A.yy,$[1],m,o].concat(dt)),typeof X<"u")return X;M&&(h=h.slice(0,-1*M*2),m=m.slice(0,-1*M),o=o.slice(0,-1*M)),h.push(this.productions_[$[1]][0]),m.push(F.$),o.push(F._$),et=R[h[h.length-2]][h[h.length-1]],h.push(et);break;case 3:return!0}}return!0}},T=function(){var _={EOF:1,parseError:function(a,h){if(this.yy.parser)this.yy.parser.parseError(a,h);else throw new Error(a)},setInput:function(r,a){return this.yy=a||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var a=r.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},unput:function(r){var a=r.length,h=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var p=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),h.length-1&&(this.yylineno-=h.length-1);var m=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:h?(h.length===p.length?this.yylloc.first_column:0)+p[p.length-h.length].length-h[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[m[0],m[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),a=new Array(r.length+1).join("-");return r+this.upcomingInput()+` diff --git a/docs/assets/layout-15168dd5.js b/docs/assets/layout-c97c50ff.js similarity index 99% rename from docs/assets/layout-15168dd5.js rename to docs/assets/layout-c97c50ff.js index 0ce543b3..a26413c1 100644 --- a/docs/assets/layout-15168dd5.js +++ b/docs/assets/layout-c97c50ff.js @@ -1 +1 @@ -import{a6 as M,a7 as He,a8 as $,a9 as _,aa as L,ab as Fr,ac as nn,ad as D,ae as X,af as Z,ag as Un,ah as Dr,ai as ke,aj as Gr,ak as Br,al as Yn,am as Ur,an as qe,ao as Hn,ap as V,aq as cn,ar as kn,as as Yr,v as Mn,at as Ln,au as se}from"./index-b4f98efc.js";var Hr="[object Symbol]";function R(n){return typeof n=="symbol"||M(n)&&He(n)==Hr}function H(n,e){for(var r=-1,t=n==null?0:n.length,i=Array(t);++r<t;)i[r]=e(n[r],r,n);return i}var kr=1/0,fe=$?$.prototype:void 0,de=fe?fe.toString:void 0;function Ke(n){if(typeof n=="string")return n;if(_(n))return H(n,Ke)+"";if(R(n))return de?de.call(n):"";var e=n+"";return e=="0"&&1/n==-kr?"-0":e}var qr=/\s/;function Kr(n){for(var e=n.length;e--&&qr.test(n.charAt(e)););return e}var Wr=/^\s+/;function Xr(n){return n&&n.slice(0,Kr(n)+1).replace(Wr,"")}var ce=0/0,Zr=/^[-+]0x[0-9a-f]+$/i,Vr=/^0b[01]+$/i,zr=/^0o[0-7]+$/i,Jr=parseInt;function jr(n){if(typeof n=="number")return n;if(R(n))return ce;if(L(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=L(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=Xr(n);var r=Vr.test(n);return r||zr.test(n)?Jr(n.slice(2),r?2:8):Zr.test(n)?ce:+n}var le=1/0,Qr=17976931348623157e292;function fn(n){if(!n)return n===0?n:0;if(n=jr(n),n===le||n===-le){var e=n<0?-1:1;return e*Qr}return n===n?n:0}function nt(n){var e=fn(n),r=e%1;return e===e?r?e-r:e:0}function G(n){return n}var he=Object.create,et=function(){function n(){}return function(e){if(!L(e))return{};if(he)return he(e);n.prototype=e;var r=new n;return n.prototype=void 0,r}}();const rt=et;function tt(n,e,r){switch(r.length){case 0:return n.call(e);case 1:return n.call(e,r[0]);case 2:return n.call(e,r[0],r[1]);case 3:return n.call(e,r[0],r[1],r[2])}return n.apply(e,r)}function it(){}function We(n,e){var r=-1,t=n.length;for(e||(e=Array(t));++r<t;)e[r]=n[r];return e}var at=800,ot=16,ut=Date.now;function st(n){var e=0,r=0;return function(){var t=ut(),i=ot-(t-r);if(r=t,i>0){if(++e>=at)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}function Y(n){return function(){return n}}var ft=function(){try{var n=Fr(Object,"defineProperty");return n({},"",{}),n}catch{}}();const ln=ft;var dt=ln?function(n,e){return ln(n,"toString",{configurable:!0,enumerable:!1,value:Y(e),writable:!0})}:G;const ct=dt;var lt=st(ct);const Xe=lt;function Ze(n,e){for(var r=-1,t=n==null?0:n.length;++r<t&&e(n[r],r,n)!==!1;);return n}function Ve(n,e,r,t){for(var i=n.length,a=r+(t?1:-1);t?a--:++a<i;)if(e(n[a],a,n))return a;return-1}function ht(n){return n!==n}function vt(n,e,r){for(var t=r-1,i=n.length;++t<i;)if(n[t]===e)return t;return-1}function gt(n,e,r){return e===e?vt(n,e,r):Ve(n,ht,r)}function pt(n,e){var r=n==null?0:n.length;return!!r&>(n,e,0)>-1}var bt=9007199254740991,wt=/^(?:0|[1-9]\d*)$/;function pn(n,e){var r=typeof n;return e=e??bt,!!e&&(r=="number"||r!="symbol"&&wt.test(n))&&n>-1&&n%1==0&&n<e}function bn(n,e,r){e=="__proto__"&&ln?ln(n,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[e]=r}var mt=Object.prototype,_t=mt.hasOwnProperty;function wn(n,e,r){var t=n[e];(!(_t.call(n,e)&&nn(t,r))||r===void 0&&!(e in n))&&bn(n,e,r)}function en(n,e,r,t){var i=!r;r||(r={});for(var a=-1,o=e.length;++a<o;){var u=e[a],s=t?t(r[u],n[u],u,r,n):void 0;s===void 0&&(s=n[u]),i?bn(r,u,s):wn(r,u,s)}return r}var ve=Math.max;function ze(n,e,r){return e=ve(e===void 0?n.length-1:e,0),function(){for(var t=arguments,i=-1,a=ve(t.length-e,0),o=Array(a);++i<a;)o[i]=t[e+i];i=-1;for(var u=Array(e+1);++i<e;)u[i]=t[i];return u[e]=r(o),tt(n,this,u)}}function mn(n,e){return Xe(ze(n,e,G),n+"")}function z(n,e,r){if(!L(r))return!1;var t=typeof e;return(t=="number"?D(r)&&pn(e,r.length):t=="string"&&e in r)?nn(r[e],n):!1}function Et(n){return mn(function(e,r){var t=-1,i=r.length,a=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(a=n.length>3&&typeof a=="function"?(i--,a):void 0,o&&z(r[0],r[1],o)&&(a=i<3?void 0:a,i=1),e=Object(e);++t<i;){var u=r[t];u&&n(e,u,t,a)}return e})}function yt(n,e){for(var r=-1,t=Array(n);++r<n;)t[r]=e(r);return t}var xt=Object.prototype,Tt=xt.hasOwnProperty;function Je(n,e){var r=_(n),t=!r&&X(n),i=!r&&!t&&Z(n),a=!r&&!t&&!i&&Un(n),o=r||t||i||a,u=o?yt(n.length,String):[],s=u.length;for(var f in n)(e||Tt.call(n,f))&&!(o&&(f=="length"||i&&(f=="offset"||f=="parent")||a&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||pn(f,s)))&&u.push(f);return u}function T(n){return D(n)?Je(n):Dr(n)}function Ot(n){var e=[];if(n!=null)for(var r in Object(n))e.push(r);return e}var Lt=Object.prototype,At=Lt.hasOwnProperty;function Pt(n){if(!L(n))return Ot(n);var e=ke(n),r=[];for(var t in n)t=="constructor"&&(e||!At.call(n,t))||r.push(t);return r}function B(n){return D(n)?Je(n,!0):Pt(n)}var Nt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$t=/^\w*$/;function qn(n,e){if(_(n))return!1;var r=typeof n;return r=="number"||r=="symbol"||r=="boolean"||n==null||R(n)?!0:$t.test(n)||!Nt.test(n)||e!=null&&n in Object(e)}var Ct=500;function It(n){var e=Gr(n,function(t){return r.size===Ct&&r.clear(),t}),r=e.cache;return e}var St=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mt=/\\(\\)?/g,Rt=It(function(n){var e=[];return n.charCodeAt(0)===46&&e.push(""),n.replace(St,function(r,t,i,a){e.push(i?a.replace(Mt,"$1"):t||r)}),e});const Ft=Rt;function je(n){return n==null?"":Ke(n)}function _n(n,e){return _(n)?n:qn(n,e)?[n]:Ft(je(n))}var Dt=1/0;function rn(n){if(typeof n=="string"||R(n))return n;var e=n+"";return e=="0"&&1/n==-Dt?"-0":e}function En(n,e){e=_n(e,n);for(var r=0,t=e.length;n!=null&&r<t;)n=n[rn(e[r++])];return r&&r==t?n:void 0}function Gt(n,e,r){var t=n==null?void 0:En(n,e);return t===void 0?r:t}function Kn(n,e){for(var r=-1,t=e.length,i=n.length;++r<t;)n[i+r]=e[r];return n}var ge=$?$.isConcatSpreadable:void 0;function Bt(n){return _(n)||X(n)||!!(ge&&n&&n[ge])}function yn(n,e,r,t,i){var a=-1,o=n.length;for(r||(r=Bt),i||(i=[]);++a<o;){var u=n[a];e>0&&r(u)?e>1?yn(u,e-1,r,t,i):Kn(i,u):t||(i[i.length]=u)}return i}function q(n){var e=n==null?0:n.length;return e?yn(n,1):[]}function Ut(n){return Xe(ze(n,void 0,q),n+"")}var Yt=Br(Object.getPrototypeOf,Object);const Wn=Yt;var Ht="[object Object]",kt=Function.prototype,qt=Object.prototype,Qe=kt.toString,Kt=qt.hasOwnProperty,Wt=Qe.call(Object);function Xt(n){if(!M(n)||He(n)!=Ht)return!1;var e=Wn(n);if(e===null)return!0;var r=Kt.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Qe.call(r)==Wt}function Zt(n,e,r,t){var i=-1,a=n==null?0:n.length;for(t&&a&&(r=n[++i]);++i<a;)r=e(r,n[i],i,n);return r}function Vt(){this.__data__=new Yn,this.size=0}function zt(n){var e=this.__data__,r=e.delete(n);return this.size=e.size,r}function Jt(n){return this.__data__.get(n)}function jt(n){return this.__data__.has(n)}var Qt=200;function ni(n,e){var r=this.__data__;if(r instanceof Yn){var t=r.__data__;if(!Ur||t.length<Qt-1)return t.push([n,e]),this.size=++r.size,this;r=this.__data__=new qe(t)}return r.set(n,e),this.size=r.size,this}function O(n){var e=this.__data__=new Yn(n);this.size=e.size}O.prototype.clear=Vt;O.prototype.delete=zt;O.prototype.get=Jt;O.prototype.has=jt;O.prototype.set=ni;function ei(n,e){return n&&en(e,T(e),n)}function ri(n,e){return n&&en(e,B(e),n)}var nr=typeof exports=="object"&&exports&&!exports.nodeType&&exports,pe=nr&&typeof module=="object"&&module&&!module.nodeType&&module,ti=pe&&pe.exports===nr,be=ti?Hn.Buffer:void 0,we=be?be.allocUnsafe:void 0;function er(n,e){if(e)return n.slice();var r=n.length,t=we?we(r):new n.constructor(r);return n.copy(t),t}function rr(n,e){for(var r=-1,t=n==null?0:n.length,i=0,a=[];++r<t;){var o=n[r];e(o,r,n)&&(a[i++]=o)}return a}function tr(){return[]}var ii=Object.prototype,ai=ii.propertyIsEnumerable,me=Object.getOwnPropertySymbols,oi=me?function(n){return n==null?[]:(n=Object(n),rr(me(n),function(e){return ai.call(n,e)}))}:tr;const Xn=oi;function ui(n,e){return en(n,Xn(n),e)}var si=Object.getOwnPropertySymbols,fi=si?function(n){for(var e=[];n;)Kn(e,Xn(n)),n=Wn(n);return e}:tr;const ir=fi;function di(n,e){return en(n,ir(n),e)}function ar(n,e,r){var t=e(n);return _(n)?t:Kn(t,r(n))}function Rn(n){return ar(n,T,Xn)}function ci(n){return ar(n,B,ir)}var li=Object.prototype,hi=li.hasOwnProperty;function vi(n){var e=n.length,r=new n.constructor(e);return e&&typeof n[0]=="string"&&hi.call(n,"index")&&(r.index=n.index,r.input=n.input),r}var gi=Hn.Uint8Array;const hn=gi;function Zn(n){var e=new n.constructor(n.byteLength);return new hn(e).set(new hn(n)),e}function pi(n,e){var r=e?Zn(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.byteLength)}var bi=/\w*$/;function wi(n){var e=new n.constructor(n.source,bi.exec(n));return e.lastIndex=n.lastIndex,e}var _e=$?$.prototype:void 0,Ee=_e?_e.valueOf:void 0;function mi(n){return Ee?Object(Ee.call(n)):{}}function or(n,e){var r=e?Zn(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}var _i="[object Boolean]",Ei="[object Date]",yi="[object Map]",xi="[object Number]",Ti="[object RegExp]",Oi="[object Set]",Li="[object String]",Ai="[object Symbol]",Pi="[object ArrayBuffer]",Ni="[object DataView]",$i="[object Float32Array]",Ci="[object Float64Array]",Ii="[object Int8Array]",Si="[object Int16Array]",Mi="[object Int32Array]",Ri="[object Uint8Array]",Fi="[object Uint8ClampedArray]",Di="[object Uint16Array]",Gi="[object Uint32Array]";function Bi(n,e,r){var t=n.constructor;switch(e){case Pi:return Zn(n);case _i:case Ei:return new t(+n);case Ni:return pi(n,r);case $i:case Ci:case Ii:case Si:case Mi:case Ri:case Fi:case Di:case Gi:return or(n,r);case yi:return new t;case xi:case Li:return new t(n);case Ti:return wi(n);case Oi:return new t;case Ai:return mi(n)}}function ur(n){return typeof n.constructor=="function"&&!ke(n)?rt(Wn(n)):{}}var Ui="[object Map]";function Yi(n){return M(n)&&V(n)==Ui}var ye=cn&&cn.isMap,Hi=ye?kn(ye):Yi;const ki=Hi;var qi="[object Set]";function Ki(n){return M(n)&&V(n)==qi}var xe=cn&&cn.isSet,Wi=xe?kn(xe):Ki;const Xi=Wi;var Zi=1,Vi=2,zi=4,sr="[object Arguments]",Ji="[object Array]",ji="[object Boolean]",Qi="[object Date]",na="[object Error]",fr="[object Function]",ea="[object GeneratorFunction]",ra="[object Map]",ta="[object Number]",dr="[object Object]",ia="[object RegExp]",aa="[object Set]",oa="[object String]",ua="[object Symbol]",sa="[object WeakMap]",fa="[object ArrayBuffer]",da="[object DataView]",ca="[object Float32Array]",la="[object Float64Array]",ha="[object Int8Array]",va="[object Int16Array]",ga="[object Int32Array]",pa="[object Uint8Array]",ba="[object Uint8ClampedArray]",wa="[object Uint16Array]",ma="[object Uint32Array]",w={};w[sr]=w[Ji]=w[fa]=w[da]=w[ji]=w[Qi]=w[ca]=w[la]=w[ha]=w[va]=w[ga]=w[ra]=w[ta]=w[dr]=w[ia]=w[aa]=w[oa]=w[ua]=w[pa]=w[ba]=w[wa]=w[ma]=!0;w[na]=w[fr]=w[sa]=!1;function dn(n,e,r,t,i,a){var o,u=e&Zi,s=e&Vi,f=e&zi;if(r&&(o=i?r(n,t,i,a):r(n)),o!==void 0)return o;if(!L(n))return n;var d=_(n);if(d){if(o=vi(n),!u)return We(n,o)}else{var l=V(n),h=l==fr||l==ea;if(Z(n))return er(n,u);if(l==dr||l==sr||h&&!i){if(o=s||h?{}:ur(n),!u)return s?di(n,ri(o,n)):ui(n,ei(o,n))}else{if(!w[l])return i?n:{};o=Bi(n,l,u)}}a||(a=new O);var g=a.get(n);if(g)return g;a.set(n,o),Xi(n)?n.forEach(function(m){o.add(dn(m,e,r,m,n,a))}):ki(n)&&n.forEach(function(m,E){o.set(E,dn(m,e,r,E,n,a))});var v=f?s?ci:Rn:s?B:T,p=d?void 0:v(n);return Ze(p||n,function(m,E){p&&(E=m,m=n[E]),wn(o,E,dn(m,e,r,E,n,a))}),o}var _a=1,Ea=4;function ya(n){return dn(n,_a|Ea)}var xa="__lodash_hash_undefined__";function Ta(n){return this.__data__.set(n,xa),this}function Oa(n){return this.__data__.has(n)}function J(n){var e=-1,r=n==null?0:n.length;for(this.__data__=new qe;++e<r;)this.add(n[e])}J.prototype.add=J.prototype.push=Ta;J.prototype.has=Oa;function La(n,e){for(var r=-1,t=n==null?0:n.length;++r<t;)if(e(n[r],r,n))return!0;return!1}function cr(n,e){return n.has(e)}var Aa=1,Pa=2;function lr(n,e,r,t,i,a){var o=r&Aa,u=n.length,s=e.length;if(u!=s&&!(o&&s>u))return!1;var f=a.get(n),d=a.get(e);if(f&&d)return f==e&&d==n;var l=-1,h=!0,g=r&Pa?new J:void 0;for(a.set(n,e),a.set(e,n);++l<u;){var v=n[l],p=e[l];if(t)var m=o?t(p,v,l,e,n,a):t(v,p,l,n,e,a);if(m!==void 0){if(m)continue;h=!1;break}if(g){if(!La(e,function(E,I){if(!cr(g,I)&&(v===E||i(v,E,r,t,a)))return g.push(I)})){h=!1;break}}else if(!(v===p||i(v,p,r,t,a))){h=!1;break}}return a.delete(n),a.delete(e),h}function Na(n){var e=-1,r=Array(n.size);return n.forEach(function(t,i){r[++e]=[i,t]}),r}function Vn(n){var e=-1,r=Array(n.size);return n.forEach(function(t){r[++e]=t}),r}var $a=1,Ca=2,Ia="[object Boolean]",Sa="[object Date]",Ma="[object Error]",Ra="[object Map]",Fa="[object Number]",Da="[object RegExp]",Ga="[object Set]",Ba="[object String]",Ua="[object Symbol]",Ya="[object ArrayBuffer]",Ha="[object DataView]",Te=$?$.prototype:void 0,An=Te?Te.valueOf:void 0;function ka(n,e,r,t,i,a,o){switch(r){case Ha:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case Ya:return!(n.byteLength!=e.byteLength||!a(new hn(n),new hn(e)));case Ia:case Sa:case Fa:return nn(+n,+e);case Ma:return n.name==e.name&&n.message==e.message;case Da:case Ba:return n==e+"";case Ra:var u=Na;case Ga:var s=t&$a;if(u||(u=Vn),n.size!=e.size&&!s)return!1;var f=o.get(n);if(f)return f==e;t|=Ca,o.set(n,e);var d=lr(u(n),u(e),t,i,a,o);return o.delete(n),d;case Ua:if(An)return An.call(n)==An.call(e)}return!1}var qa=1,Ka=Object.prototype,Wa=Ka.hasOwnProperty;function Xa(n,e,r,t,i,a){var o=r&qa,u=Rn(n),s=u.length,f=Rn(e),d=f.length;if(s!=d&&!o)return!1;for(var l=s;l--;){var h=u[l];if(!(o?h in e:Wa.call(e,h)))return!1}var g=a.get(n),v=a.get(e);if(g&&v)return g==e&&v==n;var p=!0;a.set(n,e),a.set(e,n);for(var m=o;++l<s;){h=u[l];var E=n[h],I=e[h];if(t)var ue=o?t(I,E,h,e,n,a):t(E,I,h,n,e,a);if(!(ue===void 0?E===I||i(E,I,r,t,a):ue)){p=!1;break}m||(m=h=="constructor")}if(p&&!m){var on=n.constructor,un=e.constructor;on!=un&&"constructor"in n&&"constructor"in e&&!(typeof on=="function"&&on instanceof on&&typeof un=="function"&&un instanceof un)&&(p=!1)}return a.delete(n),a.delete(e),p}var Za=1,Oe="[object Arguments]",Le="[object Array]",sn="[object Object]",Va=Object.prototype,Ae=Va.hasOwnProperty;function za(n,e,r,t,i,a){var o=_(n),u=_(e),s=o?Le:V(n),f=u?Le:V(e);s=s==Oe?sn:s,f=f==Oe?sn:f;var d=s==sn,l=f==sn,h=s==f;if(h&&Z(n)){if(!Z(e))return!1;o=!0,d=!1}if(h&&!d)return a||(a=new O),o||Un(n)?lr(n,e,r,t,i,a):ka(n,e,s,r,t,i,a);if(!(r&Za)){var g=d&&Ae.call(n,"__wrapped__"),v=l&&Ae.call(e,"__wrapped__");if(g||v){var p=g?n.value():n,m=v?e.value():e;return a||(a=new O),i(p,m,r,t,a)}}return h?(a||(a=new O),Xa(n,e,r,t,i,a)):!1}function zn(n,e,r,t,i){return n===e?!0:n==null||e==null||!M(n)&&!M(e)?n!==n&&e!==e:za(n,e,r,t,zn,i)}var Ja=1,ja=2;function Qa(n,e,r,t){var i=r.length,a=i,o=!t;if(n==null)return!a;for(n=Object(n);i--;){var u=r[i];if(o&&u[2]?u[1]!==n[u[0]]:!(u[0]in n))return!1}for(;++i<a;){u=r[i];var s=u[0],f=n[s],d=u[1];if(o&&u[2]){if(f===void 0&&!(s in n))return!1}else{var l=new O;if(t)var h=t(f,d,s,n,e,l);if(!(h===void 0?zn(d,f,Ja|ja,t,l):h))return!1}}return!0}function hr(n){return n===n&&!L(n)}function no(n){for(var e=T(n),r=e.length;r--;){var t=e[r],i=n[t];e[r]=[t,i,hr(i)]}return e}function vr(n,e){return function(r){return r==null?!1:r[n]===e&&(e!==void 0||n in Object(r))}}function eo(n){var e=no(n);return e.length==1&&e[0][2]?vr(e[0][0],e[0][1]):function(r){return r===n||Qa(r,n,e)}}function ro(n,e){return n!=null&&e in Object(n)}function gr(n,e,r){e=_n(e,n);for(var t=-1,i=e.length,a=!1;++t<i;){var o=rn(e[t]);if(!(a=n!=null&&r(n,o)))break;n=n[o]}return a||++t!=i?a:(i=n==null?0:n.length,!!i&&Yr(i)&&pn(o,i)&&(_(n)||X(n)))}function pr(n,e){return n!=null&&gr(n,e,ro)}var to=1,io=2;function ao(n,e){return qn(n)&&hr(e)?vr(rn(n),e):function(r){var t=Gt(r,n);return t===void 0&&t===e?pr(r,n):zn(e,t,to|io)}}function oo(n){return function(e){return e==null?void 0:e[n]}}function uo(n){return function(e){return En(e,n)}}function so(n){return qn(n)?oo(rn(n)):uo(n)}function C(n){return typeof n=="function"?n:n==null?G:typeof n=="object"?_(n)?ao(n[0],n[1]):eo(n):so(n)}function fo(n){return function(e,r,t){for(var i=-1,a=Object(e),o=t(e),u=o.length;u--;){var s=o[n?u:++i];if(r(a[s],s,a)===!1)break}return e}}var co=fo();const Jn=co;function jn(n,e){return n&&Jn(n,e,T)}function lo(n,e){return function(r,t){if(r==null)return r;if(!D(r))return n(r,t);for(var i=r.length,a=e?i:-1,o=Object(r);(e?a--:++a<i)&&t(o[a],a,o)!==!1;);return r}}var ho=lo(jn);const xn=ho;var vo=function(){return Hn.Date.now()};const Pe=vo;var br=Object.prototype,go=br.hasOwnProperty,po=mn(function(n,e){n=Object(n);var r=-1,t=e.length,i=t>2?e[2]:void 0;for(i&&z(e[0],e[1],i)&&(t=1);++r<t;)for(var a=e[r],o=B(a),u=-1,s=o.length;++u<s;){var f=o[u],d=n[f];(d===void 0||nn(d,br[f])&&!go.call(n,f))&&(n[f]=a[f])}return n});const bo=po;function Fn(n,e,r){(r!==void 0&&!nn(n[e],r)||r===void 0&&!(e in n))&&bn(n,e,r)}function wr(n){return M(n)&&D(n)}function Dn(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}function wo(n){return en(n,B(n))}function mo(n,e,r,t,i,a,o){var u=Dn(n,r),s=Dn(e,r),f=o.get(s);if(f){Fn(n,r,f);return}var d=a?a(u,s,r+"",n,e,o):void 0,l=d===void 0;if(l){var h=_(s),g=!h&&Z(s),v=!h&&!g&&Un(s);d=s,h||g||v?_(u)?d=u:wr(u)?d=We(u):g?(l=!1,d=er(s,!0)):v?(l=!1,d=or(s,!0)):d=[]:Xt(s)||X(s)?(d=u,X(u)?d=wo(u):(!L(u)||Mn(u))&&(d=ur(s))):l=!1}l&&(o.set(s,d),i(d,s,t,a,o),o.delete(s)),Fn(n,r,d)}function mr(n,e,r,t,i){n!==e&&Jn(e,function(a,o){if(i||(i=new O),L(a))mo(n,e,o,r,mr,t,i);else{var u=t?t(Dn(n,o),a,o+"",n,e,i):void 0;u===void 0&&(u=a),Fn(n,o,u)}},B)}function _o(n,e,r){for(var t=-1,i=n==null?0:n.length;++t<i;)if(r(e,n[t]))return!0;return!1}function vn(n){var e=n==null?0:n.length;return e?n[e-1]:void 0}function Qn(n){return typeof n=="function"?n:G}function c(n,e){var r=_(n)?Ze:xn;return r(n,Qn(e))}function Eo(n,e){var r=[];return xn(n,function(t,i,a){e(t,i,a)&&r.push(t)}),r}function P(n,e){var r=_(n)?rr:Eo;return r(n,C(e))}function yo(n){return function(e,r,t){var i=Object(e);if(!D(e)){var a=C(r);e=T(e),r=function(u){return a(i[u],u,i)}}var o=n(e,r,t);return o>-1?i[a?e[o]:o]:void 0}}var xo=Math.max;function To(n,e,r){var t=n==null?0:n.length;if(!t)return-1;var i=r==null?0:nt(r);return i<0&&(i=xo(t+i,0)),Ve(n,C(e),i)}var Oo=yo(To);const ne=Oo;function _r(n,e){var r=-1,t=D(n)?Array(n.length):[];return xn(n,function(i,a,o){t[++r]=e(i,a,o)}),t}function y(n,e){var r=_(n)?H:_r;return r(n,C(e))}function Lo(n,e){return n==null?n:Jn(n,Qn(e),B)}function Ao(n,e){return n&&jn(n,Qn(e))}function Po(n,e){return n>e}var No=Object.prototype,$o=No.hasOwnProperty;function Co(n,e){return n!=null&&$o.call(n,e)}function b(n,e){return n!=null&&gr(n,e,Co)}function Io(n,e){return H(e,function(r){return n[r]})}function N(n){return n==null?[]:Io(n,T(n))}function x(n){return n===void 0}function Er(n,e){return n<e}function Tn(n,e){var r={};return e=C(e),jn(n,function(t,i,a){bn(r,i,e(t,i,a))}),r}function ee(n,e,r){for(var t=-1,i=n.length;++t<i;){var a=n[t],o=e(a);if(o!=null&&(u===void 0?o===o&&!R(o):r(o,u)))var u=o,s=a}return s}function F(n){return n&&n.length?ee(n,G,Po):void 0}var So=Et(function(n,e,r){mr(n,e,r)});const Gn=So;function j(n){return n&&n.length?ee(n,G,Er):void 0}function re(n,e){return n&&n.length?ee(n,C(e),Er):void 0}function Mo(n,e,r,t){if(!L(n))return n;e=_n(e,n);for(var i=-1,a=e.length,o=a-1,u=n;u!=null&&++i<a;){var s=rn(e[i]),f=r;if(s==="__proto__"||s==="constructor"||s==="prototype")return n;if(i!=o){var d=u[s];f=t?t(d,s,u):void 0,f===void 0&&(f=L(d)?d:pn(e[i+1])?[]:{})}wn(u,s,f),u=u[s]}return n}function Ro(n,e,r){for(var t=-1,i=e.length,a={};++t<i;){var o=e[t],u=En(n,o);r(u,o)&&Mo(a,_n(o,n),u)}return a}function Fo(n,e){var r=n.length;for(n.sort(e);r--;)n[r]=n[r].value;return n}function Do(n,e){if(n!==e){var r=n!==void 0,t=n===null,i=n===n,a=R(n),o=e!==void 0,u=e===null,s=e===e,f=R(e);if(!u&&!f&&!a&&n>e||a&&o&&s&&!u&&!f||t&&o&&s||!r&&s||!i)return 1;if(!t&&!a&&!f&&n<e||f&&r&&i&&!t&&!a||u&&r&&i||!o&&i||!s)return-1}return 0}function Go(n,e,r){for(var t=-1,i=n.criteria,a=e.criteria,o=i.length,u=r.length;++t<o;){var s=Do(i[t],a[t]);if(s){if(t>=u)return s;var f=r[t];return s*(f=="desc"?-1:1)}}return n.index-e.index}function Bo(n,e,r){e.length?e=H(e,function(a){return _(a)?function(o){return En(o,a.length===1?a[0]:a)}:a}):e=[G];var t=-1;e=H(e,kn(C));var i=_r(n,function(a,o,u){var s=H(e,function(f){return f(a)});return{criteria:s,index:++t,value:a}});return Fo(i,function(a,o){return Go(a,o,r)})}function Uo(n,e){return Ro(n,e,function(r,t){return pr(n,t)})}var Yo=Ut(function(n,e){return n==null?{}:Uo(n,e)});const gn=Yo;var Ho=Math.ceil,ko=Math.max;function qo(n,e,r,t){for(var i=-1,a=ko(Ho((e-n)/(r||1)),0),o=Array(a);a--;)o[t?a:++i]=n,n+=r;return o}function Ko(n){return function(e,r,t){return t&&typeof t!="number"&&z(e,r,t)&&(r=t=void 0),e=fn(e),r===void 0?(r=e,e=0):r=fn(r),t=t===void 0?e<r?1:-1:fn(t),qo(e,r,t,n)}}var Wo=Ko();const k=Wo;function Xo(n,e,r,t,i){return i(n,function(a,o,u){r=t?(t=!1,a):e(r,a,o,u)}),r}function tn(n,e,r){var t=_(n)?Zt:Xo,i=arguments.length<3;return t(n,C(e),r,i,xn)}var Zo=mn(function(n,e){if(n==null)return[];var r=e.length;return r>1&&z(n,e[0],e[1])?e=[]:r>2&&z(e[0],e[1],e[2])&&(e=[e[0]]),Bo(n,yn(e,1),[])});const an=Zo;var Vo=1/0,zo=Ln&&1/Vn(new Ln([,-0]))[1]==Vo?function(n){return new Ln(n)}:it;const Jo=zo;var jo=200;function Qo(n,e,r){var t=-1,i=pt,a=n.length,o=!0,u=[],s=u;if(r)o=!1,i=_o;else if(a>=jo){var f=e?null:Jo(n);if(f)return Vn(f);o=!1,i=cr,s=new J}else s=e?[]:u;n:for(;++t<a;){var d=n[t],l=e?e(d):d;if(d=r||d!==0?d:0,o&&l===l){for(var h=s.length;h--;)if(s[h]===l)continue n;e&&s.push(l),u.push(d)}else i(s,l,r)||(s!==u&&s.push(l),u.push(d))}return u}var nu=mn(function(n){return Qo(yn(n,1,wr,!0))});const eu=nu;var ru=0;function te(n){var e=++ru;return je(n)+e}function tu(n,e,r){for(var t=-1,i=n.length,a=e.length,o={};++t<i;){var u=t<a?e[t]:void 0;r(o,n[t],u)}return o}function iu(n,e){return tu(n||[],e||[],wn)}var au="\0",S="\0",Ne="";class A{constructor(e={}){this._isDirected=b(e,"directed")?e.directed:!0,this._isMultigraph=b(e,"multigraph")?e.multigraph:!1,this._isCompound=b(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=Y(void 0),this._defaultEdgeLabelFn=Y(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[S]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return Mn(e)||(e=Y(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return T(this._nodes)}sources(){var e=this;return P(this.nodes(),function(r){return se(e._in[r])})}sinks(){var e=this;return P(this.nodes(),function(r){return se(e._out[r])})}setNodes(e,r){var t=arguments,i=this;return c(e,function(a){t.length>1?i.setNode(a,r):i.setNode(a)}),this}setNode(e,r){return b(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=r),this):(this._nodes[e]=arguments.length>1?r:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=S,this._children[e]={},this._children[S][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return b(this._nodes,e)}removeNode(e){var r=this;if(b(this._nodes,e)){var t=function(i){r.removeEdge(r._edgeObjs[i])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],c(this.children(e),function(i){r.setParent(i)}),delete this._children[e]),c(T(this._in[e]),t),delete this._in[e],delete this._preds[e],c(T(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(x(r))r=S;else{r+="";for(var t=r;!x(t);t=this.parent(t))if(t===e)throw new Error("Setting "+r+" as parent of "+e+" would create a cycle");this.setNode(r)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=r,this._children[r][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var r=this._parent[e];if(r!==S)return r}}children(e){if(x(e)&&(e=S),this._isCompound){var r=this._children[e];if(r)return T(r)}else{if(e===S)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var r=this._preds[e];if(r)return T(r)}successors(e){var r=this._sucs[e];if(r)return T(r)}neighbors(e){var r=this.predecessors(e);if(r)return eu(r,this.successors(e))}isLeaf(e){var r;return this.isDirected()?r=this.successors(e):r=this.neighbors(e),r.length===0}filterNodes(e){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var t=this;c(this._nodes,function(o,u){e(u)&&r.setNode(u,o)}),c(this._edgeObjs,function(o){r.hasNode(o.v)&&r.hasNode(o.w)&&r.setEdge(o,t.edge(o))});var i={};function a(o){var u=t.parent(o);return u===void 0||r.hasNode(u)?(i[o]=u,u):u in i?i[u]:a(u)}return this._isCompound&&c(r.nodes(),function(o){r.setParent(o,a(o))}),r}setDefaultEdgeLabel(e){return Mn(e)||(e=Y(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return N(this._edgeObjs)}setPath(e,r){var t=this,i=arguments;return tn(e,function(a,o){return i.length>1?t.setEdge(a,o,r):t.setEdge(a,o),o}),this}setEdge(){var e,r,t,i,a=!1,o=arguments[0];typeof o=="object"&&o!==null&&"v"in o?(e=o.v,r=o.w,t=o.name,arguments.length===2&&(i=arguments[1],a=!0)):(e=o,r=arguments[1],t=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),e=""+e,r=""+r,x(t)||(t=""+t);var u=W(this._isDirected,e,r,t);if(b(this._edgeLabels,u))return a&&(this._edgeLabels[u]=i),this;if(!x(t)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(r),this._edgeLabels[u]=a?i:this._defaultEdgeLabelFn(e,r,t);var s=ou(this._isDirected,e,r,t);return e=s.v,r=s.w,Object.freeze(s),this._edgeObjs[u]=s,$e(this._preds[r],e),$e(this._sucs[e],r),this._in[r][u]=s,this._out[e][u]=s,this._edgeCount++,this}edge(e,r,t){var i=arguments.length===1?Pn(this._isDirected,arguments[0]):W(this._isDirected,e,r,t);return this._edgeLabels[i]}hasEdge(e,r,t){var i=arguments.length===1?Pn(this._isDirected,arguments[0]):W(this._isDirected,e,r,t);return b(this._edgeLabels,i)}removeEdge(e,r,t){var i=arguments.length===1?Pn(this._isDirected,arguments[0]):W(this._isDirected,e,r,t),a=this._edgeObjs[i];return a&&(e=a.v,r=a.w,delete this._edgeLabels[i],delete this._edgeObjs[i],Ce(this._preds[r],e),Ce(this._sucs[e],r),delete this._in[r][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,r){var t=this._in[e];if(t){var i=N(t);return r?P(i,function(a){return a.v===r}):i}}outEdges(e,r){var t=this._out[e];if(t){var i=N(t);return r?P(i,function(a){return a.w===r}):i}}nodeEdges(e,r){var t=this.inEdges(e,r);if(t)return t.concat(this.outEdges(e,r))}}A.prototype._nodeCount=0;A.prototype._edgeCount=0;function $e(n,e){n[e]?n[e]++:n[e]=1}function Ce(n,e){--n[e]||delete n[e]}function W(n,e,r,t){var i=""+e,a=""+r;if(!n&&i>a){var o=i;i=a,a=o}return i+Ne+a+Ne+(x(t)?au:t)}function ou(n,e,r,t){var i=""+e,a=""+r;if(!n&&i>a){var o=i;i=a,a=o}var u={v:i,w:a};return t&&(u.name=t),u}function Pn(n,e){return W(n,e.v,e.w,e.name)}class uu{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,r=e._prev;if(r!==e)return Ie(r),r}enqueue(e){var r=this._sentinel;e._prev&&e._next&&Ie(e),e._next=r._next,r._next._prev=e,r._next=e,e._prev=r}toString(){for(var e=[],r=this._sentinel,t=r._prev;t!==r;)e.push(JSON.stringify(t,su)),t=t._prev;return"["+e.join(", ")+"]"}}function Ie(n){n._prev._next=n._next,n._next._prev=n._prev,delete n._next,delete n._prev}function su(n,e){if(n!=="_next"&&n!=="_prev")return e}var fu=Y(1);function du(n,e){if(n.nodeCount()<=1)return[];var r=lu(n,e||fu),t=cu(r.graph,r.buckets,r.zeroIdx);return q(y(t,function(i){return n.outEdges(i.v,i.w)}))}function cu(n,e,r){for(var t=[],i=e[e.length-1],a=e[0],o;n.nodeCount();){for(;o=a.dequeue();)Nn(n,e,r,o);for(;o=i.dequeue();)Nn(n,e,r,o);if(n.nodeCount()){for(var u=e.length-2;u>0;--u)if(o=e[u].dequeue(),o){t=t.concat(Nn(n,e,r,o,!0));break}}}return t}function Nn(n,e,r,t,i){var a=i?[]:void 0;return c(n.inEdges(t.v),function(o){var u=n.edge(o),s=n.node(o.v);i&&a.push({v:o.v,w:o.w}),s.out-=u,Bn(e,r,s)}),c(n.outEdges(t.v),function(o){var u=n.edge(o),s=o.w,f=n.node(s);f.in-=u,Bn(e,r,f)}),n.removeNode(t.v),a}function lu(n,e){var r=new A,t=0,i=0;c(n.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),c(n.edges(),function(u){var s=r.edge(u.v,u.w)||0,f=e(u),d=s+f;r.setEdge(u.v,u.w,d),i=Math.max(i,r.node(u.v).out+=f),t=Math.max(t,r.node(u.w).in+=f)});var a=k(i+t+3).map(function(){return new uu}),o=t+1;return c(r.nodes(),function(u){Bn(a,o,r.node(u))}),{graph:r,buckets:a,zeroIdx:o}}function Bn(n,e,r){r.out?r.in?n[r.out-r.in+e].enqueue(r):n[n.length-1].enqueue(r):n[0].enqueue(r)}function hu(n){var e=n.graph().acyclicer==="greedy"?du(n,r(n)):vu(n);c(e,function(t){var i=n.edge(t);n.removeEdge(t),i.forwardName=t.name,i.reversed=!0,n.setEdge(t.w,t.v,i,te("rev"))});function r(t){return function(i){return t.edge(i).weight}}}function vu(n){var e=[],r={},t={};function i(a){b(t,a)||(t[a]=!0,r[a]=!0,c(n.outEdges(a),function(o){b(r,o.w)?e.push(o):i(o.w)}),delete r[a])}return c(n.nodes(),i),e}function gu(n){c(n.edges(),function(e){var r=n.edge(e);if(r.reversed){n.removeEdge(e);var t=r.forwardName;delete r.reversed,delete r.forwardName,n.setEdge(e.w,e.v,r,t)}})}function K(n,e,r,t){var i;do i=te(t);while(n.hasNode(i));return r.dummy=e,n.setNode(i,r),i}function pu(n){var e=new A().setGraph(n.graph());return c(n.nodes(),function(r){e.setNode(r,n.node(r))}),c(n.edges(),function(r){var t=e.edge(r.v,r.w)||{weight:0,minlen:1},i=n.edge(r);e.setEdge(r.v,r.w,{weight:t.weight+i.weight,minlen:Math.max(t.minlen,i.minlen)})}),e}function yr(n){var e=new A({multigraph:n.isMultigraph()}).setGraph(n.graph());return c(n.nodes(),function(r){n.children(r).length||e.setNode(r,n.node(r))}),c(n.edges(),function(r){e.setEdge(r,n.edge(r))}),e}function Se(n,e){var r=n.x,t=n.y,i=e.x-r,a=e.y-t,o=n.width/2,u=n.height/2;if(!i&&!a)throw new Error("Not possible to find intersection inside of the rectangle");var s,f;return Math.abs(a)*o>Math.abs(i)*u?(a<0&&(u=-u),s=u*i/a,f=u):(i<0&&(o=-o),s=o,f=o*a/i),{x:r+s,y:t+f}}function On(n){var e=y(k(xr(n)+1),function(){return[]});return c(n.nodes(),function(r){var t=n.node(r),i=t.rank;x(i)||(e[i][t.order]=r)}),e}function bu(n){var e=j(y(n.nodes(),function(r){return n.node(r).rank}));c(n.nodes(),function(r){var t=n.node(r);b(t,"rank")&&(t.rank-=e)})}function wu(n){var e=j(y(n.nodes(),function(a){return n.node(a).rank})),r=[];c(n.nodes(),function(a){var o=n.node(a).rank-e;r[o]||(r[o]=[]),r[o].push(a)});var t=0,i=n.graph().nodeRankFactor;c(r,function(a,o){x(a)&&o%i!==0?--t:t&&c(a,function(u){n.node(u).rank+=t})})}function Me(n,e,r,t){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=t),K(n,"border",i,e)}function xr(n){return F(y(n.nodes(),function(e){var r=n.node(e).rank;if(!x(r))return r}))}function mu(n,e){var r={lhs:[],rhs:[]};return c(n,function(t){e(t)?r.lhs.push(t):r.rhs.push(t)}),r}function _u(n,e){var r=Pe();try{return e()}finally{console.log(n+" time: "+(Pe()-r)+"ms")}}function Eu(n,e){return e()}function yu(n){function e(r){var t=n.children(r),i=n.node(r);if(t.length&&c(t,e),b(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var a=i.minRank,o=i.maxRank+1;a<o;++a)Re(n,"borderLeft","_bl",r,i,a),Re(n,"borderRight","_br",r,i,a)}}c(n.children(),e)}function Re(n,e,r,t,i,a){var o={width:0,height:0,rank:a,borderType:e},u=i[e][a-1],s=K(n,"border",o,r);i[e][a]=s,n.setParent(s,t),u&&n.setEdge(u,s,{weight:1})}function xu(n){var e=n.graph().rankdir.toLowerCase();(e==="lr"||e==="rl")&&Tr(n)}function Tu(n){var e=n.graph().rankdir.toLowerCase();(e==="bt"||e==="rl")&&Ou(n),(e==="lr"||e==="rl")&&(Lu(n),Tr(n))}function Tr(n){c(n.nodes(),function(e){Fe(n.node(e))}),c(n.edges(),function(e){Fe(n.edge(e))})}function Fe(n){var e=n.width;n.width=n.height,n.height=e}function Ou(n){c(n.nodes(),function(e){$n(n.node(e))}),c(n.edges(),function(e){var r=n.edge(e);c(r.points,$n),b(r,"y")&&$n(r)})}function $n(n){n.y=-n.y}function Lu(n){c(n.nodes(),function(e){Cn(n.node(e))}),c(n.edges(),function(e){var r=n.edge(e);c(r.points,Cn),b(r,"x")&&Cn(r)})}function Cn(n){var e=n.x;n.x=n.y,n.y=e}function Au(n){n.graph().dummyChains=[],c(n.edges(),function(e){Pu(n,e)})}function Pu(n,e){var r=e.v,t=n.node(r).rank,i=e.w,a=n.node(i).rank,o=e.name,u=n.edge(e),s=u.labelRank;if(a!==t+1){n.removeEdge(e);var f,d,l;for(l=0,++t;t<a;++l,++t)u.points=[],d={width:0,height:0,edgeLabel:u,edgeObj:e,rank:t},f=K(n,"edge",d,"_d"),t===s&&(d.width=u.width,d.height=u.height,d.dummy="edge-label",d.labelpos=u.labelpos),n.setEdge(r,f,{weight:u.weight},o),l===0&&n.graph().dummyChains.push(f),r=f;n.setEdge(r,i,{weight:u.weight},o)}}function Nu(n){c(n.graph().dummyChains,function(e){var r=n.node(e),t=r.edgeLabel,i;for(n.setEdge(r.edgeObj,t);r.dummy;)i=n.successors(e)[0],n.removeNode(e),t.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height),e=i,r=n.node(e)})}function ie(n){var e={};function r(t){var i=n.node(t);if(b(e,t))return i.rank;e[t]=!0;var a=j(y(n.outEdges(t),function(o){return r(o.w)-n.edge(o).minlen}));return(a===Number.POSITIVE_INFINITY||a===void 0||a===null)&&(a=0),i.rank=a}c(n.sources(),r)}function Q(n,e){return n.node(e.w).rank-n.node(e.v).rank-n.edge(e).minlen}function Or(n){var e=new A({directed:!1}),r=n.nodes()[0],t=n.nodeCount();e.setNode(r,{});for(var i,a;$u(e,n)<t;)i=Cu(e,n),a=e.hasNode(i.v)?Q(n,i):-Q(n,i),Iu(e,n,a);return e}function $u(n,e){function r(t){c(e.nodeEdges(t),function(i){var a=i.v,o=t===a?i.w:a;!n.hasNode(o)&&!Q(e,i)&&(n.setNode(o,{}),n.setEdge(t,o,{}),r(o))})}return c(n.nodes(),r),n.nodeCount()}function Cu(n,e){return re(e.edges(),function(r){if(n.hasNode(r.v)!==n.hasNode(r.w))return Q(e,r)})}function Iu(n,e,r){c(n.nodes(),function(t){e.node(t).rank+=r})}function Su(){}Su.prototype=new Error;function Lr(n,e,r){_(e)||(e=[e]);var t=(n.isDirected()?n.successors:n.neighbors).bind(n),i=[],a={};return c(e,function(o){if(!n.hasNode(o))throw new Error("Graph does not have node: "+o);Ar(n,o,r==="post",a,t,i)}),i}function Ar(n,e,r,t,i,a){b(t,e)||(t[e]=!0,r||a.push(e),c(i(e),function(o){Ar(n,o,r,t,i,a)}),r&&a.push(e))}function Mu(n,e){return Lr(n,e,"post")}function Ru(n,e){return Lr(n,e,"pre")}U.initLowLimValues=oe;U.initCutValues=ae;U.calcCutValue=Pr;U.leaveEdge=$r;U.enterEdge=Cr;U.exchangeEdges=Ir;function U(n){n=pu(n),ie(n);var e=Or(n);oe(e),ae(e,n);for(var r,t;r=$r(e);)t=Cr(e,n,r),Ir(e,n,r,t)}function ae(n,e){var r=Mu(n,n.nodes());r=r.slice(0,r.length-1),c(r,function(t){Fu(n,e,t)})}function Fu(n,e,r){var t=n.node(r),i=t.parent;n.edge(r,i).cutvalue=Pr(n,e,r)}function Pr(n,e,r){var t=n.node(r),i=t.parent,a=!0,o=e.edge(r,i),u=0;return o||(a=!1,o=e.edge(i,r)),u=o.weight,c(e.nodeEdges(r),function(s){var f=s.v===r,d=f?s.w:s.v;if(d!==i){var l=f===a,h=e.edge(s).weight;if(u+=l?h:-h,Gu(n,r,d)){var g=n.edge(r,d).cutvalue;u+=l?-g:g}}}),u}function oe(n,e){arguments.length<2&&(e=n.nodes()[0]),Nr(n,{},1,e)}function Nr(n,e,r,t,i){var a=r,o=n.node(t);return e[t]=!0,c(n.neighbors(t),function(u){b(e,u)||(r=Nr(n,e,r,u,t))}),o.low=a,o.lim=r++,i?o.parent=i:delete o.parent,r}function $r(n){return ne(n.edges(),function(e){return n.edge(e).cutvalue<0})}function Cr(n,e,r){var t=r.v,i=r.w;e.hasEdge(t,i)||(t=r.w,i=r.v);var a=n.node(t),o=n.node(i),u=a,s=!1;a.lim>o.lim&&(u=o,s=!0);var f=P(e.edges(),function(d){return s===De(n,n.node(d.v),u)&&s!==De(n,n.node(d.w),u)});return re(f,function(d){return Q(e,d)})}function Ir(n,e,r,t){var i=r.v,a=r.w;n.removeEdge(i,a),n.setEdge(t.v,t.w,{}),oe(n),ae(n,e),Du(n,e)}function Du(n,e){var r=ne(n.nodes(),function(i){return!e.node(i).parent}),t=Ru(n,r);t=t.slice(1),c(t,function(i){var a=n.node(i).parent,o=e.edge(i,a),u=!1;o||(o=e.edge(a,i),u=!0),e.node(i).rank=e.node(a).rank+(u?o.minlen:-o.minlen)})}function Gu(n,e,r){return n.hasEdge(e,r)}function De(n,e,r){return r.low<=e.lim&&e.lim<=r.lim}function Bu(n){switch(n.graph().ranker){case"network-simplex":Ge(n);break;case"tight-tree":Yu(n);break;case"longest-path":Uu(n);break;default:Ge(n)}}var Uu=ie;function Yu(n){ie(n),Or(n)}function Ge(n){U(n)}function Hu(n){var e=K(n,"root",{},"_root"),r=ku(n),t=F(N(r))-1,i=2*t+1;n.graph().nestingRoot=e,c(n.edges(),function(o){n.edge(o).minlen*=i});var a=qu(n)+1;c(n.children(),function(o){Sr(n,e,i,a,t,r,o)}),n.graph().nodeRankFactor=i}function Sr(n,e,r,t,i,a,o){var u=n.children(o);if(!u.length){o!==e&&n.setEdge(e,o,{weight:0,minlen:r});return}var s=Me(n,"_bt"),f=Me(n,"_bb"),d=n.node(o);n.setParent(s,o),d.borderTop=s,n.setParent(f,o),d.borderBottom=f,c(u,function(l){Sr(n,e,r,t,i,a,l);var h=n.node(l),g=h.borderTop?h.borderTop:l,v=h.borderBottom?h.borderBottom:l,p=h.borderTop?t:2*t,m=g!==v?1:i-a[o]+1;n.setEdge(s,g,{weight:p,minlen:m,nestingEdge:!0}),n.setEdge(v,f,{weight:p,minlen:m,nestingEdge:!0})}),n.parent(o)||n.setEdge(e,s,{weight:0,minlen:i+a[o]})}function ku(n){var e={};function r(t,i){var a=n.children(t);a&&a.length&&c(a,function(o){r(o,i+1)}),e[t]=i}return c(n.children(),function(t){r(t,1)}),e}function qu(n){return tn(n.edges(),function(e,r){return e+n.edge(r).weight},0)}function Ku(n){var e=n.graph();n.removeNode(e.nestingRoot),delete e.nestingRoot,c(n.edges(),function(r){var t=n.edge(r);t.nestingEdge&&n.removeEdge(r)})}function Wu(n,e,r){var t={},i;c(r,function(a){for(var o=n.parent(a),u,s;o;){if(u=n.parent(o),u?(s=t[u],t[u]=o):(s=i,i=o),s&&s!==o){e.setEdge(s,o);return}o=u}})}function Xu(n,e,r){var t=Zu(n),i=new A({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(a){return n.node(a)});return c(n.nodes(),function(a){var o=n.node(a),u=n.parent(a);(o.rank===e||o.minRank<=e&&e<=o.maxRank)&&(i.setNode(a),i.setParent(a,u||t),c(n[r](a),function(s){var f=s.v===a?s.w:s.v,d=i.edge(f,a),l=x(d)?0:d.weight;i.setEdge(f,a,{weight:n.edge(s).weight+l})}),b(o,"minRank")&&i.setNode(a,{borderLeft:o.borderLeft[e],borderRight:o.borderRight[e]}))}),i}function Zu(n){for(var e;n.hasNode(e=te("_root")););return e}function Vu(n,e){for(var r=0,t=1;t<e.length;++t)r+=zu(n,e[t-1],e[t]);return r}function zu(n,e,r){for(var t=iu(r,y(r,function(f,d){return d})),i=q(y(e,function(f){return an(y(n.outEdges(f),function(d){return{pos:t[d.w],weight:n.edge(d).weight}}),"pos")})),a=1;a<r.length;)a<<=1;var o=2*a-1;a-=1;var u=y(new Array(o),function(){return 0}),s=0;return c(i.forEach(function(f){var d=f.pos+a;u[d]+=f.weight;for(var l=0;d>0;)d%2&&(l+=u[d+1]),d=d-1>>1,u[d]+=f.weight;s+=f.weight*l})),s}function Ju(n){var e={},r=P(n.nodes(),function(u){return!n.children(u).length}),t=F(y(r,function(u){return n.node(u).rank})),i=y(k(t+1),function(){return[]});function a(u){if(!b(e,u)){e[u]=!0;var s=n.node(u);i[s.rank].push(u),c(n.successors(u),a)}}var o=an(r,function(u){return n.node(u).rank});return c(o,a),i}function ju(n,e){return y(e,function(r){var t=n.inEdges(r);if(t.length){var i=tn(t,function(a,o){var u=n.edge(o),s=n.node(o.v);return{sum:a.sum+u.weight*s.order,weight:a.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:r}})}function Qu(n,e){var r={};c(n,function(i,a){var o=r[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:a};x(i.barycenter)||(o.barycenter=i.barycenter,o.weight=i.weight)}),c(e.edges(),function(i){var a=r[i.v],o=r[i.w];!x(a)&&!x(o)&&(o.indegree++,a.out.push(r[i.w]))});var t=P(r,function(i){return!i.indegree});return ns(t)}function ns(n){var e=[];function r(a){return function(o){o.merged||(x(o.barycenter)||x(a.barycenter)||o.barycenter>=a.barycenter)&&es(a,o)}}function t(a){return function(o){o.in.push(a),--o.indegree===0&&n.push(o)}}for(;n.length;){var i=n.pop();e.push(i),c(i.in.reverse(),r(i)),c(i.out,t(i))}return y(P(e,function(a){return!a.merged}),function(a){return gn(a,["vs","i","barycenter","weight"])})}function es(n,e){var r=0,t=0;n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.vs=e.vs.concat(n.vs),n.barycenter=r/t,n.weight=t,n.i=Math.min(e.i,n.i),e.merged=!0}function rs(n,e){var r=mu(n,function(d){return b(d,"barycenter")}),t=r.lhs,i=an(r.rhs,function(d){return-d.i}),a=[],o=0,u=0,s=0;t.sort(ts(!!e)),s=Be(a,i,s),c(t,function(d){s+=d.vs.length,a.push(d.vs),o+=d.barycenter*d.weight,u+=d.weight,s=Be(a,i,s)});var f={vs:q(a)};return u&&(f.barycenter=o/u,f.weight=u),f}function Be(n,e,r){for(var t;e.length&&(t=vn(e)).i<=r;)e.pop(),n.push(t.vs),r++;return r}function ts(n){return function(e,r){return e.barycenter<r.barycenter?-1:e.barycenter>r.barycenter?1:n?r.i-e.i:e.i-r.i}}function Mr(n,e,r,t){var i=n.children(e),a=n.node(e),o=a?a.borderLeft:void 0,u=a?a.borderRight:void 0,s={};o&&(i=P(i,function(v){return v!==o&&v!==u}));var f=ju(n,i);c(f,function(v){if(n.children(v.v).length){var p=Mr(n,v.v,r,t);s[v.v]=p,b(p,"barycenter")&&as(v,p)}});var d=Qu(f,r);is(d,s);var l=rs(d,t);if(o&&(l.vs=q([o,l.vs,u]),n.predecessors(o).length)){var h=n.node(n.predecessors(o)[0]),g=n.node(n.predecessors(u)[0]);b(l,"barycenter")||(l.barycenter=0,l.weight=0),l.barycenter=(l.barycenter*l.weight+h.order+g.order)/(l.weight+2),l.weight+=2}return l}function is(n,e){c(n,function(r){r.vs=q(r.vs.map(function(t){return e[t]?e[t].vs:t}))})}function as(n,e){x(n.barycenter)?(n.barycenter=e.barycenter,n.weight=e.weight):(n.barycenter=(n.barycenter*n.weight+e.barycenter*e.weight)/(n.weight+e.weight),n.weight+=e.weight)}function os(n){var e=xr(n),r=Ue(n,k(1,e+1),"inEdges"),t=Ue(n,k(e-1,-1,-1),"outEdges"),i=Ju(n);Ye(n,i);for(var a=Number.POSITIVE_INFINITY,o,u=0,s=0;s<4;++u,++s){us(u%2?r:t,u%4>=2),i=On(n);var f=Vu(n,i);f<a&&(s=0,o=ya(i),a=f)}Ye(n,o)}function Ue(n,e,r){return y(e,function(t){return Xu(n,t,r)})}function us(n,e){var r=new A;c(n,function(t){var i=t.graph().root,a=Mr(t,i,r,e);c(a.vs,function(o,u){t.node(o).order=u}),Wu(t,r,a.vs)})}function Ye(n,e){c(e,function(r){c(r,function(t,i){n.node(t).order=i})})}function ss(n){var e=ds(n);c(n.graph().dummyChains,function(r){for(var t=n.node(r),i=t.edgeObj,a=fs(n,e,i.v,i.w),o=a.path,u=a.lca,s=0,f=o[s],d=!0;r!==i.w;){if(t=n.node(r),d){for(;(f=o[s])!==u&&n.node(f).maxRank<t.rank;)s++;f===u&&(d=!1)}if(!d){for(;s<o.length-1&&n.node(f=o[s+1]).minRank<=t.rank;)s++;f=o[s]}n.setParent(r,f),r=n.successors(r)[0]}})}function fs(n,e,r,t){var i=[],a=[],o=Math.min(e[r].low,e[t].low),u=Math.max(e[r].lim,e[t].lim),s,f;s=r;do s=n.parent(s),i.push(s);while(s&&(e[s].low>o||u>e[s].lim));for(f=s,s=t;(s=n.parent(s))!==f;)a.push(s);return{path:i.concat(a.reverse()),lca:f}}function ds(n){var e={},r=0;function t(i){var a=r;c(n.children(i),t),e[i]={low:a,lim:r++}}return c(n.children(),t),e}function cs(n,e){var r={};function t(i,a){var o=0,u=0,s=i.length,f=vn(a);return c(a,function(d,l){var h=hs(n,d),g=h?n.node(h).order:s;(h||d===f)&&(c(a.slice(u,l+1),function(v){c(n.predecessors(v),function(p){var m=n.node(p),E=m.order;(E<o||g<E)&&!(m.dummy&&n.node(v).dummy)&&Rr(r,p,v)})}),u=l+1,o=g)}),a}return tn(e,t),r}function ls(n,e){var r={};function t(a,o,u,s,f){var d;c(k(o,u),function(l){d=a[l],n.node(d).dummy&&c(n.predecessors(d),function(h){var g=n.node(h);g.dummy&&(g.order<s||g.order>f)&&Rr(r,h,d)})})}function i(a,o){var u=-1,s,f=0;return c(o,function(d,l){if(n.node(d).dummy==="border"){var h=n.predecessors(d);h.length&&(s=n.node(h[0]).order,t(o,f,l,u,s),f=l,u=s)}t(o,f,o.length,s,a.length)}),o}return tn(e,i),r}function hs(n,e){if(n.node(e).dummy)return ne(n.predecessors(e),function(r){return n.node(r).dummy})}function Rr(n,e,r){if(e>r){var t=e;e=r,r=t}var i=n[e];i||(n[e]=i={}),i[r]=!0}function vs(n,e,r){if(e>r){var t=e;e=r,r=t}return b(n[e],r)}function gs(n,e,r,t){var i={},a={},o={};return c(e,function(u){c(u,function(s,f){i[s]=s,a[s]=s,o[s]=f})}),c(e,function(u){var s=-1;c(u,function(f){var d=t(f);if(d.length){d=an(d,function(p){return o[p]});for(var l=(d.length-1)/2,h=Math.floor(l),g=Math.ceil(l);h<=g;++h){var v=d[h];a[f]===f&&s<o[v]&&!vs(r,f,v)&&(a[v]=f,a[f]=i[f]=i[v],s=o[v])}}})}),{root:i,align:a}}function ps(n,e,r,t,i){var a={},o=bs(n,e,r,i),u=i?"borderLeft":"borderRight";function s(l,h){for(var g=o.nodes(),v=g.pop(),p={};v;)p[v]?l(v):(p[v]=!0,g.push(v),g=g.concat(h(v))),v=g.pop()}function f(l){a[l]=o.inEdges(l).reduce(function(h,g){return Math.max(h,a[g.v]+o.edge(g))},0)}function d(l){var h=o.outEdges(l).reduce(function(v,p){return Math.min(v,a[p.w]-o.edge(p))},Number.POSITIVE_INFINITY),g=n.node(l);h!==Number.POSITIVE_INFINITY&&g.borderType!==u&&(a[l]=Math.max(a[l],h))}return s(f,o.predecessors.bind(o)),s(d,o.successors.bind(o)),c(t,function(l){a[l]=a[r[l]]}),a}function bs(n,e,r,t){var i=new A,a=n.graph(),o=ys(a.nodesep,a.edgesep,t);return c(e,function(u){var s;c(u,function(f){var d=r[f];if(i.setNode(d),s){var l=r[s],h=i.edge(l,d);i.setEdge(l,d,Math.max(o(n,f,s),h||0))}s=f})}),i}function ws(n,e){return re(N(e),function(r){var t=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return Lo(r,function(a,o){var u=xs(n,o)/2;t=Math.max(a+u,t),i=Math.min(a-u,i)}),t-i})}function ms(n,e){var r=N(e),t=j(r),i=F(r);c(["u","d"],function(a){c(["l","r"],function(o){var u=a+o,s=n[u],f;if(s!==e){var d=N(s);f=o==="l"?t-j(d):i-F(d),f&&(n[u]=Tn(s,function(l){return l+f}))}})})}function _s(n,e){return Tn(n.ul,function(r,t){if(e)return n[e.toLowerCase()][t];var i=an(y(n,t));return(i[1]+i[2])/2})}function Es(n){var e=On(n),r=Gn(cs(n,e),ls(n,e)),t={},i;c(["u","d"],function(o){i=o==="u"?e:N(e).reverse(),c(["l","r"],function(u){u==="r"&&(i=y(i,function(l){return N(l).reverse()}));var s=(o==="u"?n.predecessors:n.successors).bind(n),f=gs(n,i,r,s),d=ps(n,i,f.root,f.align,u==="r");u==="r"&&(d=Tn(d,function(l){return-l})),t[o+u]=d})});var a=ws(n,t);return ms(t,a),_s(t,n.graph().align)}function ys(n,e,r){return function(t,i,a){var o=t.node(i),u=t.node(a),s=0,f;if(s+=o.width/2,b(o,"labelpos"))switch(o.labelpos.toLowerCase()){case"l":f=-o.width/2;break;case"r":f=o.width/2;break}if(f&&(s+=r?f:-f),f=0,s+=(o.dummy?e:n)/2,s+=(u.dummy?e:n)/2,s+=u.width/2,b(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":f=u.width/2;break;case"r":f=-u.width/2;break}return f&&(s+=r?f:-f),f=0,s}}function xs(n,e){return n.node(e).width}function Ts(n){n=yr(n),Os(n),Ao(Es(n),function(e,r){n.node(r).x=e})}function Os(n){var e=On(n),r=n.graph().ranksep,t=0;c(e,function(i){var a=F(y(i,function(o){return n.node(o).height}));c(i,function(o){n.node(o).y=t+a/2}),t+=a+r})}function zs(n,e){var r=e&&e.debugTiming?_u:Eu;r("layout",function(){var t=r(" buildLayoutGraph",function(){return Fs(n)});r(" runLayout",function(){Ls(t,r)}),r(" updateInputGraph",function(){As(n,t)})})}function Ls(n,e){e(" makeSpaceForEdgeLabels",function(){Ds(n)}),e(" removeSelfEdges",function(){Ws(n)}),e(" acyclic",function(){hu(n)}),e(" nestingGraph.run",function(){Hu(n)}),e(" rank",function(){Bu(yr(n))}),e(" injectEdgeLabelProxies",function(){Gs(n)}),e(" removeEmptyRanks",function(){wu(n)}),e(" nestingGraph.cleanup",function(){Ku(n)}),e(" normalizeRanks",function(){bu(n)}),e(" assignRankMinMax",function(){Bs(n)}),e(" removeEdgeLabelProxies",function(){Us(n)}),e(" normalize.run",function(){Au(n)}),e(" parentDummyChains",function(){ss(n)}),e(" addBorderSegments",function(){yu(n)}),e(" order",function(){os(n)}),e(" insertSelfEdges",function(){Xs(n)}),e(" adjustCoordinateSystem",function(){xu(n)}),e(" position",function(){Ts(n)}),e(" positionSelfEdges",function(){Zs(n)}),e(" removeBorderNodes",function(){Ks(n)}),e(" normalize.undo",function(){Nu(n)}),e(" fixupEdgeLabelCoords",function(){ks(n)}),e(" undoCoordinateSystem",function(){Tu(n)}),e(" translateGraph",function(){Ys(n)}),e(" assignNodeIntersects",function(){Hs(n)}),e(" reversePoints",function(){qs(n)}),e(" acyclic.undo",function(){gu(n)})}function As(n,e){c(n.nodes(),function(r){var t=n.node(r),i=e.node(r);t&&(t.x=i.x,t.y=i.y,e.children(r).length&&(t.width=i.width,t.height=i.height))}),c(n.edges(),function(r){var t=n.edge(r),i=e.edge(r);t.points=i.points,b(i,"x")&&(t.x=i.x,t.y=i.y)}),n.graph().width=e.graph().width,n.graph().height=e.graph().height}var Ps=["nodesep","edgesep","ranksep","marginx","marginy"],Ns={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},$s=["acyclicer","ranker","rankdir","align"],Cs=["width","height"],Is={width:0,height:0},Ss=["minlen","weight","width","height","labeloffset"],Ms={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Rs=["labelpos"];function Fs(n){var e=new A({multigraph:!0,compound:!0}),r=Sn(n.graph());return e.setGraph(Gn({},Ns,In(r,Ps),gn(r,$s))),c(n.nodes(),function(t){var i=Sn(n.node(t));e.setNode(t,bo(In(i,Cs),Is)),e.setParent(t,n.parent(t))}),c(n.edges(),function(t){var i=Sn(n.edge(t));e.setEdge(t,Gn({},Ms,In(i,Ss),gn(i,Rs)))}),e}function Ds(n){var e=n.graph();e.ranksep/=2,c(n.edges(),function(r){var t=n.edge(r);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(e.rankdir==="TB"||e.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function Gs(n){c(n.edges(),function(e){var r=n.edge(e);if(r.width&&r.height){var t=n.node(e.v),i=n.node(e.w),a={rank:(i.rank-t.rank)/2+t.rank,e};K(n,"edge-proxy",a,"_ep")}})}function Bs(n){var e=0;c(n.nodes(),function(r){var t=n.node(r);t.borderTop&&(t.minRank=n.node(t.borderTop).rank,t.maxRank=n.node(t.borderBottom).rank,e=F(e,t.maxRank))}),n.graph().maxRank=e}function Us(n){c(n.nodes(),function(e){var r=n.node(e);r.dummy==="edge-proxy"&&(n.edge(r.e).labelRank=r.rank,n.removeNode(e))})}function Ys(n){var e=Number.POSITIVE_INFINITY,r=0,t=Number.POSITIVE_INFINITY,i=0,a=n.graph(),o=a.marginx||0,u=a.marginy||0;function s(f){var d=f.x,l=f.y,h=f.width,g=f.height;e=Math.min(e,d-h/2),r=Math.max(r,d+h/2),t=Math.min(t,l-g/2),i=Math.max(i,l+g/2)}c(n.nodes(),function(f){s(n.node(f))}),c(n.edges(),function(f){var d=n.edge(f);b(d,"x")&&s(d)}),e-=o,t-=u,c(n.nodes(),function(f){var d=n.node(f);d.x-=e,d.y-=t}),c(n.edges(),function(f){var d=n.edge(f);c(d.points,function(l){l.x-=e,l.y-=t}),b(d,"x")&&(d.x-=e),b(d,"y")&&(d.y-=t)}),a.width=r-e+o,a.height=i-t+u}function Hs(n){c(n.edges(),function(e){var r=n.edge(e),t=n.node(e.v),i=n.node(e.w),a,o;r.points?(a=r.points[0],o=r.points[r.points.length-1]):(r.points=[],a=i,o=t),r.points.unshift(Se(t,a)),r.points.push(Se(i,o))})}function ks(n){c(n.edges(),function(e){var r=n.edge(e);if(b(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function qs(n){c(n.edges(),function(e){var r=n.edge(e);r.reversed&&r.points.reverse()})}function Ks(n){c(n.nodes(),function(e){if(n.children(e).length){var r=n.node(e),t=n.node(r.borderTop),i=n.node(r.borderBottom),a=n.node(vn(r.borderLeft)),o=n.node(vn(r.borderRight));r.width=Math.abs(o.x-a.x),r.height=Math.abs(i.y-t.y),r.x=a.x+r.width/2,r.y=t.y+r.height/2}}),c(n.nodes(),function(e){n.node(e).dummy==="border"&&n.removeNode(e)})}function Ws(n){c(n.edges(),function(e){if(e.v===e.w){var r=n.node(e.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e,label:n.edge(e)}),n.removeEdge(e)}})}function Xs(n){var e=On(n);c(e,function(r){var t=0;c(r,function(i,a){var o=n.node(i);o.order=a+t,c(o.selfEdges,function(u){K(n,"selfedge",{width:u.label.width,height:u.label.height,rank:o.rank,order:a+ ++t,e:u.e,label:u.label},"_se")}),delete o.selfEdges})})}function Zs(n){c(n.nodes(),function(e){var r=n.node(e);if(r.dummy==="selfedge"){var t=n.node(r.e.v),i=t.x+t.width/2,a=t.y,o=r.x-i,u=t.height/2;n.setEdge(r.e,r.label),n.removeNode(e),r.label.points=[{x:i+2*o/3,y:a-u},{x:i+5*o/6,y:a-u},{x:i+o,y:a},{x:i+5*o/6,y:a+u},{x:i+2*o/3,y:a+u}],r.label.x=r.x,r.label.y=r.y}})}function In(n,e){return Tn(gn(n,e),Number)}function Sn(n){var e={};return c(n,function(r,t){e[t.toLowerCase()]=r}),e}export{A as G,x as a,dn as b,bo as d,c as f,b as h,Xt as i,zs as l,y as m,gn as p,k as r,te as u}; +import{a6 as M,a7 as He,a8 as $,a9 as _,aa as L,ab as Fr,ac as nn,ad as D,ae as X,af as Z,ag as Un,ah as Dr,ai as ke,aj as Gr,ak as Br,al as Yn,am as Ur,an as qe,ao as Hn,ap as V,aq as cn,ar as kn,as as Yr,v as Mn,at as Ln,au as se}from"./index-0e08498d.js";var Hr="[object Symbol]";function R(n){return typeof n=="symbol"||M(n)&&He(n)==Hr}function H(n,e){for(var r=-1,t=n==null?0:n.length,i=Array(t);++r<t;)i[r]=e(n[r],r,n);return i}var kr=1/0,fe=$?$.prototype:void 0,de=fe?fe.toString:void 0;function Ke(n){if(typeof n=="string")return n;if(_(n))return H(n,Ke)+"";if(R(n))return de?de.call(n):"";var e=n+"";return e=="0"&&1/n==-kr?"-0":e}var qr=/\s/;function Kr(n){for(var e=n.length;e--&&qr.test(n.charAt(e)););return e}var Wr=/^\s+/;function Xr(n){return n&&n.slice(0,Kr(n)+1).replace(Wr,"")}var ce=0/0,Zr=/^[-+]0x[0-9a-f]+$/i,Vr=/^0b[01]+$/i,zr=/^0o[0-7]+$/i,Jr=parseInt;function jr(n){if(typeof n=="number")return n;if(R(n))return ce;if(L(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=L(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=Xr(n);var r=Vr.test(n);return r||zr.test(n)?Jr(n.slice(2),r?2:8):Zr.test(n)?ce:+n}var le=1/0,Qr=17976931348623157e292;function fn(n){if(!n)return n===0?n:0;if(n=jr(n),n===le||n===-le){var e=n<0?-1:1;return e*Qr}return n===n?n:0}function nt(n){var e=fn(n),r=e%1;return e===e?r?e-r:e:0}function G(n){return n}var he=Object.create,et=function(){function n(){}return function(e){if(!L(e))return{};if(he)return he(e);n.prototype=e;var r=new n;return n.prototype=void 0,r}}();const rt=et;function tt(n,e,r){switch(r.length){case 0:return n.call(e);case 1:return n.call(e,r[0]);case 2:return n.call(e,r[0],r[1]);case 3:return n.call(e,r[0],r[1],r[2])}return n.apply(e,r)}function it(){}function We(n,e){var r=-1,t=n.length;for(e||(e=Array(t));++r<t;)e[r]=n[r];return e}var at=800,ot=16,ut=Date.now;function st(n){var e=0,r=0;return function(){var t=ut(),i=ot-(t-r);if(r=t,i>0){if(++e>=at)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}function Y(n){return function(){return n}}var ft=function(){try{var n=Fr(Object,"defineProperty");return n({},"",{}),n}catch{}}();const ln=ft;var dt=ln?function(n,e){return ln(n,"toString",{configurable:!0,enumerable:!1,value:Y(e),writable:!0})}:G;const ct=dt;var lt=st(ct);const Xe=lt;function Ze(n,e){for(var r=-1,t=n==null?0:n.length;++r<t&&e(n[r],r,n)!==!1;);return n}function Ve(n,e,r,t){for(var i=n.length,a=r+(t?1:-1);t?a--:++a<i;)if(e(n[a],a,n))return a;return-1}function ht(n){return n!==n}function vt(n,e,r){for(var t=r-1,i=n.length;++t<i;)if(n[t]===e)return t;return-1}function gt(n,e,r){return e===e?vt(n,e,r):Ve(n,ht,r)}function pt(n,e){var r=n==null?0:n.length;return!!r&>(n,e,0)>-1}var bt=9007199254740991,wt=/^(?:0|[1-9]\d*)$/;function pn(n,e){var r=typeof n;return e=e??bt,!!e&&(r=="number"||r!="symbol"&&wt.test(n))&&n>-1&&n%1==0&&n<e}function bn(n,e,r){e=="__proto__"&&ln?ln(n,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[e]=r}var mt=Object.prototype,_t=mt.hasOwnProperty;function wn(n,e,r){var t=n[e];(!(_t.call(n,e)&&nn(t,r))||r===void 0&&!(e in n))&&bn(n,e,r)}function en(n,e,r,t){var i=!r;r||(r={});for(var a=-1,o=e.length;++a<o;){var u=e[a],s=t?t(r[u],n[u],u,r,n):void 0;s===void 0&&(s=n[u]),i?bn(r,u,s):wn(r,u,s)}return r}var ve=Math.max;function ze(n,e,r){return e=ve(e===void 0?n.length-1:e,0),function(){for(var t=arguments,i=-1,a=ve(t.length-e,0),o=Array(a);++i<a;)o[i]=t[e+i];i=-1;for(var u=Array(e+1);++i<e;)u[i]=t[i];return u[e]=r(o),tt(n,this,u)}}function mn(n,e){return Xe(ze(n,e,G),n+"")}function z(n,e,r){if(!L(r))return!1;var t=typeof e;return(t=="number"?D(r)&&pn(e,r.length):t=="string"&&e in r)?nn(r[e],n):!1}function Et(n){return mn(function(e,r){var t=-1,i=r.length,a=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(a=n.length>3&&typeof a=="function"?(i--,a):void 0,o&&z(r[0],r[1],o)&&(a=i<3?void 0:a,i=1),e=Object(e);++t<i;){var u=r[t];u&&n(e,u,t,a)}return e})}function yt(n,e){for(var r=-1,t=Array(n);++r<n;)t[r]=e(r);return t}var xt=Object.prototype,Tt=xt.hasOwnProperty;function Je(n,e){var r=_(n),t=!r&&X(n),i=!r&&!t&&Z(n),a=!r&&!t&&!i&&Un(n),o=r||t||i||a,u=o?yt(n.length,String):[],s=u.length;for(var f in n)(e||Tt.call(n,f))&&!(o&&(f=="length"||i&&(f=="offset"||f=="parent")||a&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||pn(f,s)))&&u.push(f);return u}function T(n){return D(n)?Je(n):Dr(n)}function Ot(n){var e=[];if(n!=null)for(var r in Object(n))e.push(r);return e}var Lt=Object.prototype,At=Lt.hasOwnProperty;function Pt(n){if(!L(n))return Ot(n);var e=ke(n),r=[];for(var t in n)t=="constructor"&&(e||!At.call(n,t))||r.push(t);return r}function B(n){return D(n)?Je(n,!0):Pt(n)}var Nt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$t=/^\w*$/;function qn(n,e){if(_(n))return!1;var r=typeof n;return r=="number"||r=="symbol"||r=="boolean"||n==null||R(n)?!0:$t.test(n)||!Nt.test(n)||e!=null&&n in Object(e)}var Ct=500;function It(n){var e=Gr(n,function(t){return r.size===Ct&&r.clear(),t}),r=e.cache;return e}var St=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mt=/\\(\\)?/g,Rt=It(function(n){var e=[];return n.charCodeAt(0)===46&&e.push(""),n.replace(St,function(r,t,i,a){e.push(i?a.replace(Mt,"$1"):t||r)}),e});const Ft=Rt;function je(n){return n==null?"":Ke(n)}function _n(n,e){return _(n)?n:qn(n,e)?[n]:Ft(je(n))}var Dt=1/0;function rn(n){if(typeof n=="string"||R(n))return n;var e=n+"";return e=="0"&&1/n==-Dt?"-0":e}function En(n,e){e=_n(e,n);for(var r=0,t=e.length;n!=null&&r<t;)n=n[rn(e[r++])];return r&&r==t?n:void 0}function Gt(n,e,r){var t=n==null?void 0:En(n,e);return t===void 0?r:t}function Kn(n,e){for(var r=-1,t=e.length,i=n.length;++r<t;)n[i+r]=e[r];return n}var ge=$?$.isConcatSpreadable:void 0;function Bt(n){return _(n)||X(n)||!!(ge&&n&&n[ge])}function yn(n,e,r,t,i){var a=-1,o=n.length;for(r||(r=Bt),i||(i=[]);++a<o;){var u=n[a];e>0&&r(u)?e>1?yn(u,e-1,r,t,i):Kn(i,u):t||(i[i.length]=u)}return i}function q(n){var e=n==null?0:n.length;return e?yn(n,1):[]}function Ut(n){return Xe(ze(n,void 0,q),n+"")}var Yt=Br(Object.getPrototypeOf,Object);const Wn=Yt;var Ht="[object Object]",kt=Function.prototype,qt=Object.prototype,Qe=kt.toString,Kt=qt.hasOwnProperty,Wt=Qe.call(Object);function Xt(n){if(!M(n)||He(n)!=Ht)return!1;var e=Wn(n);if(e===null)return!0;var r=Kt.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Qe.call(r)==Wt}function Zt(n,e,r,t){var i=-1,a=n==null?0:n.length;for(t&&a&&(r=n[++i]);++i<a;)r=e(r,n[i],i,n);return r}function Vt(){this.__data__=new Yn,this.size=0}function zt(n){var e=this.__data__,r=e.delete(n);return this.size=e.size,r}function Jt(n){return this.__data__.get(n)}function jt(n){return this.__data__.has(n)}var Qt=200;function ni(n,e){var r=this.__data__;if(r instanceof Yn){var t=r.__data__;if(!Ur||t.length<Qt-1)return t.push([n,e]),this.size=++r.size,this;r=this.__data__=new qe(t)}return r.set(n,e),this.size=r.size,this}function O(n){var e=this.__data__=new Yn(n);this.size=e.size}O.prototype.clear=Vt;O.prototype.delete=zt;O.prototype.get=Jt;O.prototype.has=jt;O.prototype.set=ni;function ei(n,e){return n&&en(e,T(e),n)}function ri(n,e){return n&&en(e,B(e),n)}var nr=typeof exports=="object"&&exports&&!exports.nodeType&&exports,pe=nr&&typeof module=="object"&&module&&!module.nodeType&&module,ti=pe&&pe.exports===nr,be=ti?Hn.Buffer:void 0,we=be?be.allocUnsafe:void 0;function er(n,e){if(e)return n.slice();var r=n.length,t=we?we(r):new n.constructor(r);return n.copy(t),t}function rr(n,e){for(var r=-1,t=n==null?0:n.length,i=0,a=[];++r<t;){var o=n[r];e(o,r,n)&&(a[i++]=o)}return a}function tr(){return[]}var ii=Object.prototype,ai=ii.propertyIsEnumerable,me=Object.getOwnPropertySymbols,oi=me?function(n){return n==null?[]:(n=Object(n),rr(me(n),function(e){return ai.call(n,e)}))}:tr;const Xn=oi;function ui(n,e){return en(n,Xn(n),e)}var si=Object.getOwnPropertySymbols,fi=si?function(n){for(var e=[];n;)Kn(e,Xn(n)),n=Wn(n);return e}:tr;const ir=fi;function di(n,e){return en(n,ir(n),e)}function ar(n,e,r){var t=e(n);return _(n)?t:Kn(t,r(n))}function Rn(n){return ar(n,T,Xn)}function ci(n){return ar(n,B,ir)}var li=Object.prototype,hi=li.hasOwnProperty;function vi(n){var e=n.length,r=new n.constructor(e);return e&&typeof n[0]=="string"&&hi.call(n,"index")&&(r.index=n.index,r.input=n.input),r}var gi=Hn.Uint8Array;const hn=gi;function Zn(n){var e=new n.constructor(n.byteLength);return new hn(e).set(new hn(n)),e}function pi(n,e){var r=e?Zn(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.byteLength)}var bi=/\w*$/;function wi(n){var e=new n.constructor(n.source,bi.exec(n));return e.lastIndex=n.lastIndex,e}var _e=$?$.prototype:void 0,Ee=_e?_e.valueOf:void 0;function mi(n){return Ee?Object(Ee.call(n)):{}}function or(n,e){var r=e?Zn(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}var _i="[object Boolean]",Ei="[object Date]",yi="[object Map]",xi="[object Number]",Ti="[object RegExp]",Oi="[object Set]",Li="[object String]",Ai="[object Symbol]",Pi="[object ArrayBuffer]",Ni="[object DataView]",$i="[object Float32Array]",Ci="[object Float64Array]",Ii="[object Int8Array]",Si="[object Int16Array]",Mi="[object Int32Array]",Ri="[object Uint8Array]",Fi="[object Uint8ClampedArray]",Di="[object Uint16Array]",Gi="[object Uint32Array]";function Bi(n,e,r){var t=n.constructor;switch(e){case Pi:return Zn(n);case _i:case Ei:return new t(+n);case Ni:return pi(n,r);case $i:case Ci:case Ii:case Si:case Mi:case Ri:case Fi:case Di:case Gi:return or(n,r);case yi:return new t;case xi:case Li:return new t(n);case Ti:return wi(n);case Oi:return new t;case Ai:return mi(n)}}function ur(n){return typeof n.constructor=="function"&&!ke(n)?rt(Wn(n)):{}}var Ui="[object Map]";function Yi(n){return M(n)&&V(n)==Ui}var ye=cn&&cn.isMap,Hi=ye?kn(ye):Yi;const ki=Hi;var qi="[object Set]";function Ki(n){return M(n)&&V(n)==qi}var xe=cn&&cn.isSet,Wi=xe?kn(xe):Ki;const Xi=Wi;var Zi=1,Vi=2,zi=4,sr="[object Arguments]",Ji="[object Array]",ji="[object Boolean]",Qi="[object Date]",na="[object Error]",fr="[object Function]",ea="[object GeneratorFunction]",ra="[object Map]",ta="[object Number]",dr="[object Object]",ia="[object RegExp]",aa="[object Set]",oa="[object String]",ua="[object Symbol]",sa="[object WeakMap]",fa="[object ArrayBuffer]",da="[object DataView]",ca="[object Float32Array]",la="[object Float64Array]",ha="[object Int8Array]",va="[object Int16Array]",ga="[object Int32Array]",pa="[object Uint8Array]",ba="[object Uint8ClampedArray]",wa="[object Uint16Array]",ma="[object Uint32Array]",w={};w[sr]=w[Ji]=w[fa]=w[da]=w[ji]=w[Qi]=w[ca]=w[la]=w[ha]=w[va]=w[ga]=w[ra]=w[ta]=w[dr]=w[ia]=w[aa]=w[oa]=w[ua]=w[pa]=w[ba]=w[wa]=w[ma]=!0;w[na]=w[fr]=w[sa]=!1;function dn(n,e,r,t,i,a){var o,u=e&Zi,s=e&Vi,f=e&zi;if(r&&(o=i?r(n,t,i,a):r(n)),o!==void 0)return o;if(!L(n))return n;var d=_(n);if(d){if(o=vi(n),!u)return We(n,o)}else{var l=V(n),h=l==fr||l==ea;if(Z(n))return er(n,u);if(l==dr||l==sr||h&&!i){if(o=s||h?{}:ur(n),!u)return s?di(n,ri(o,n)):ui(n,ei(o,n))}else{if(!w[l])return i?n:{};o=Bi(n,l,u)}}a||(a=new O);var g=a.get(n);if(g)return g;a.set(n,o),Xi(n)?n.forEach(function(m){o.add(dn(m,e,r,m,n,a))}):ki(n)&&n.forEach(function(m,E){o.set(E,dn(m,e,r,E,n,a))});var v=f?s?ci:Rn:s?B:T,p=d?void 0:v(n);return Ze(p||n,function(m,E){p&&(E=m,m=n[E]),wn(o,E,dn(m,e,r,E,n,a))}),o}var _a=1,Ea=4;function ya(n){return dn(n,_a|Ea)}var xa="__lodash_hash_undefined__";function Ta(n){return this.__data__.set(n,xa),this}function Oa(n){return this.__data__.has(n)}function J(n){var e=-1,r=n==null?0:n.length;for(this.__data__=new qe;++e<r;)this.add(n[e])}J.prototype.add=J.prototype.push=Ta;J.prototype.has=Oa;function La(n,e){for(var r=-1,t=n==null?0:n.length;++r<t;)if(e(n[r],r,n))return!0;return!1}function cr(n,e){return n.has(e)}var Aa=1,Pa=2;function lr(n,e,r,t,i,a){var o=r&Aa,u=n.length,s=e.length;if(u!=s&&!(o&&s>u))return!1;var f=a.get(n),d=a.get(e);if(f&&d)return f==e&&d==n;var l=-1,h=!0,g=r&Pa?new J:void 0;for(a.set(n,e),a.set(e,n);++l<u;){var v=n[l],p=e[l];if(t)var m=o?t(p,v,l,e,n,a):t(v,p,l,n,e,a);if(m!==void 0){if(m)continue;h=!1;break}if(g){if(!La(e,function(E,I){if(!cr(g,I)&&(v===E||i(v,E,r,t,a)))return g.push(I)})){h=!1;break}}else if(!(v===p||i(v,p,r,t,a))){h=!1;break}}return a.delete(n),a.delete(e),h}function Na(n){var e=-1,r=Array(n.size);return n.forEach(function(t,i){r[++e]=[i,t]}),r}function Vn(n){var e=-1,r=Array(n.size);return n.forEach(function(t){r[++e]=t}),r}var $a=1,Ca=2,Ia="[object Boolean]",Sa="[object Date]",Ma="[object Error]",Ra="[object Map]",Fa="[object Number]",Da="[object RegExp]",Ga="[object Set]",Ba="[object String]",Ua="[object Symbol]",Ya="[object ArrayBuffer]",Ha="[object DataView]",Te=$?$.prototype:void 0,An=Te?Te.valueOf:void 0;function ka(n,e,r,t,i,a,o){switch(r){case Ha:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case Ya:return!(n.byteLength!=e.byteLength||!a(new hn(n),new hn(e)));case Ia:case Sa:case Fa:return nn(+n,+e);case Ma:return n.name==e.name&&n.message==e.message;case Da:case Ba:return n==e+"";case Ra:var u=Na;case Ga:var s=t&$a;if(u||(u=Vn),n.size!=e.size&&!s)return!1;var f=o.get(n);if(f)return f==e;t|=Ca,o.set(n,e);var d=lr(u(n),u(e),t,i,a,o);return o.delete(n),d;case Ua:if(An)return An.call(n)==An.call(e)}return!1}var qa=1,Ka=Object.prototype,Wa=Ka.hasOwnProperty;function Xa(n,e,r,t,i,a){var o=r&qa,u=Rn(n),s=u.length,f=Rn(e),d=f.length;if(s!=d&&!o)return!1;for(var l=s;l--;){var h=u[l];if(!(o?h in e:Wa.call(e,h)))return!1}var g=a.get(n),v=a.get(e);if(g&&v)return g==e&&v==n;var p=!0;a.set(n,e),a.set(e,n);for(var m=o;++l<s;){h=u[l];var E=n[h],I=e[h];if(t)var ue=o?t(I,E,h,e,n,a):t(E,I,h,n,e,a);if(!(ue===void 0?E===I||i(E,I,r,t,a):ue)){p=!1;break}m||(m=h=="constructor")}if(p&&!m){var on=n.constructor,un=e.constructor;on!=un&&"constructor"in n&&"constructor"in e&&!(typeof on=="function"&&on instanceof on&&typeof un=="function"&&un instanceof un)&&(p=!1)}return a.delete(n),a.delete(e),p}var Za=1,Oe="[object Arguments]",Le="[object Array]",sn="[object Object]",Va=Object.prototype,Ae=Va.hasOwnProperty;function za(n,e,r,t,i,a){var o=_(n),u=_(e),s=o?Le:V(n),f=u?Le:V(e);s=s==Oe?sn:s,f=f==Oe?sn:f;var d=s==sn,l=f==sn,h=s==f;if(h&&Z(n)){if(!Z(e))return!1;o=!0,d=!1}if(h&&!d)return a||(a=new O),o||Un(n)?lr(n,e,r,t,i,a):ka(n,e,s,r,t,i,a);if(!(r&Za)){var g=d&&Ae.call(n,"__wrapped__"),v=l&&Ae.call(e,"__wrapped__");if(g||v){var p=g?n.value():n,m=v?e.value():e;return a||(a=new O),i(p,m,r,t,a)}}return h?(a||(a=new O),Xa(n,e,r,t,i,a)):!1}function zn(n,e,r,t,i){return n===e?!0:n==null||e==null||!M(n)&&!M(e)?n!==n&&e!==e:za(n,e,r,t,zn,i)}var Ja=1,ja=2;function Qa(n,e,r,t){var i=r.length,a=i,o=!t;if(n==null)return!a;for(n=Object(n);i--;){var u=r[i];if(o&&u[2]?u[1]!==n[u[0]]:!(u[0]in n))return!1}for(;++i<a;){u=r[i];var s=u[0],f=n[s],d=u[1];if(o&&u[2]){if(f===void 0&&!(s in n))return!1}else{var l=new O;if(t)var h=t(f,d,s,n,e,l);if(!(h===void 0?zn(d,f,Ja|ja,t,l):h))return!1}}return!0}function hr(n){return n===n&&!L(n)}function no(n){for(var e=T(n),r=e.length;r--;){var t=e[r],i=n[t];e[r]=[t,i,hr(i)]}return e}function vr(n,e){return function(r){return r==null?!1:r[n]===e&&(e!==void 0||n in Object(r))}}function eo(n){var e=no(n);return e.length==1&&e[0][2]?vr(e[0][0],e[0][1]):function(r){return r===n||Qa(r,n,e)}}function ro(n,e){return n!=null&&e in Object(n)}function gr(n,e,r){e=_n(e,n);for(var t=-1,i=e.length,a=!1;++t<i;){var o=rn(e[t]);if(!(a=n!=null&&r(n,o)))break;n=n[o]}return a||++t!=i?a:(i=n==null?0:n.length,!!i&&Yr(i)&&pn(o,i)&&(_(n)||X(n)))}function pr(n,e){return n!=null&&gr(n,e,ro)}var to=1,io=2;function ao(n,e){return qn(n)&&hr(e)?vr(rn(n),e):function(r){var t=Gt(r,n);return t===void 0&&t===e?pr(r,n):zn(e,t,to|io)}}function oo(n){return function(e){return e==null?void 0:e[n]}}function uo(n){return function(e){return En(e,n)}}function so(n){return qn(n)?oo(rn(n)):uo(n)}function C(n){return typeof n=="function"?n:n==null?G:typeof n=="object"?_(n)?ao(n[0],n[1]):eo(n):so(n)}function fo(n){return function(e,r,t){for(var i=-1,a=Object(e),o=t(e),u=o.length;u--;){var s=o[n?u:++i];if(r(a[s],s,a)===!1)break}return e}}var co=fo();const Jn=co;function jn(n,e){return n&&Jn(n,e,T)}function lo(n,e){return function(r,t){if(r==null)return r;if(!D(r))return n(r,t);for(var i=r.length,a=e?i:-1,o=Object(r);(e?a--:++a<i)&&t(o[a],a,o)!==!1;);return r}}var ho=lo(jn);const xn=ho;var vo=function(){return Hn.Date.now()};const Pe=vo;var br=Object.prototype,go=br.hasOwnProperty,po=mn(function(n,e){n=Object(n);var r=-1,t=e.length,i=t>2?e[2]:void 0;for(i&&z(e[0],e[1],i)&&(t=1);++r<t;)for(var a=e[r],o=B(a),u=-1,s=o.length;++u<s;){var f=o[u],d=n[f];(d===void 0||nn(d,br[f])&&!go.call(n,f))&&(n[f]=a[f])}return n});const bo=po;function Fn(n,e,r){(r!==void 0&&!nn(n[e],r)||r===void 0&&!(e in n))&&bn(n,e,r)}function wr(n){return M(n)&&D(n)}function Dn(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}function wo(n){return en(n,B(n))}function mo(n,e,r,t,i,a,o){var u=Dn(n,r),s=Dn(e,r),f=o.get(s);if(f){Fn(n,r,f);return}var d=a?a(u,s,r+"",n,e,o):void 0,l=d===void 0;if(l){var h=_(s),g=!h&&Z(s),v=!h&&!g&&Un(s);d=s,h||g||v?_(u)?d=u:wr(u)?d=We(u):g?(l=!1,d=er(s,!0)):v?(l=!1,d=or(s,!0)):d=[]:Xt(s)||X(s)?(d=u,X(u)?d=wo(u):(!L(u)||Mn(u))&&(d=ur(s))):l=!1}l&&(o.set(s,d),i(d,s,t,a,o),o.delete(s)),Fn(n,r,d)}function mr(n,e,r,t,i){n!==e&&Jn(e,function(a,o){if(i||(i=new O),L(a))mo(n,e,o,r,mr,t,i);else{var u=t?t(Dn(n,o),a,o+"",n,e,i):void 0;u===void 0&&(u=a),Fn(n,o,u)}},B)}function _o(n,e,r){for(var t=-1,i=n==null?0:n.length;++t<i;)if(r(e,n[t]))return!0;return!1}function vn(n){var e=n==null?0:n.length;return e?n[e-1]:void 0}function Qn(n){return typeof n=="function"?n:G}function c(n,e){var r=_(n)?Ze:xn;return r(n,Qn(e))}function Eo(n,e){var r=[];return xn(n,function(t,i,a){e(t,i,a)&&r.push(t)}),r}function P(n,e){var r=_(n)?rr:Eo;return r(n,C(e))}function yo(n){return function(e,r,t){var i=Object(e);if(!D(e)){var a=C(r);e=T(e),r=function(u){return a(i[u],u,i)}}var o=n(e,r,t);return o>-1?i[a?e[o]:o]:void 0}}var xo=Math.max;function To(n,e,r){var t=n==null?0:n.length;if(!t)return-1;var i=r==null?0:nt(r);return i<0&&(i=xo(t+i,0)),Ve(n,C(e),i)}var Oo=yo(To);const ne=Oo;function _r(n,e){var r=-1,t=D(n)?Array(n.length):[];return xn(n,function(i,a,o){t[++r]=e(i,a,o)}),t}function y(n,e){var r=_(n)?H:_r;return r(n,C(e))}function Lo(n,e){return n==null?n:Jn(n,Qn(e),B)}function Ao(n,e){return n&&jn(n,Qn(e))}function Po(n,e){return n>e}var No=Object.prototype,$o=No.hasOwnProperty;function Co(n,e){return n!=null&&$o.call(n,e)}function b(n,e){return n!=null&&gr(n,e,Co)}function Io(n,e){return H(e,function(r){return n[r]})}function N(n){return n==null?[]:Io(n,T(n))}function x(n){return n===void 0}function Er(n,e){return n<e}function Tn(n,e){var r={};return e=C(e),jn(n,function(t,i,a){bn(r,i,e(t,i,a))}),r}function ee(n,e,r){for(var t=-1,i=n.length;++t<i;){var a=n[t],o=e(a);if(o!=null&&(u===void 0?o===o&&!R(o):r(o,u)))var u=o,s=a}return s}function F(n){return n&&n.length?ee(n,G,Po):void 0}var So=Et(function(n,e,r){mr(n,e,r)});const Gn=So;function j(n){return n&&n.length?ee(n,G,Er):void 0}function re(n,e){return n&&n.length?ee(n,C(e),Er):void 0}function Mo(n,e,r,t){if(!L(n))return n;e=_n(e,n);for(var i=-1,a=e.length,o=a-1,u=n;u!=null&&++i<a;){var s=rn(e[i]),f=r;if(s==="__proto__"||s==="constructor"||s==="prototype")return n;if(i!=o){var d=u[s];f=t?t(d,s,u):void 0,f===void 0&&(f=L(d)?d:pn(e[i+1])?[]:{})}wn(u,s,f),u=u[s]}return n}function Ro(n,e,r){for(var t=-1,i=e.length,a={};++t<i;){var o=e[t],u=En(n,o);r(u,o)&&Mo(a,_n(o,n),u)}return a}function Fo(n,e){var r=n.length;for(n.sort(e);r--;)n[r]=n[r].value;return n}function Do(n,e){if(n!==e){var r=n!==void 0,t=n===null,i=n===n,a=R(n),o=e!==void 0,u=e===null,s=e===e,f=R(e);if(!u&&!f&&!a&&n>e||a&&o&&s&&!u&&!f||t&&o&&s||!r&&s||!i)return 1;if(!t&&!a&&!f&&n<e||f&&r&&i&&!t&&!a||u&&r&&i||!o&&i||!s)return-1}return 0}function Go(n,e,r){for(var t=-1,i=n.criteria,a=e.criteria,o=i.length,u=r.length;++t<o;){var s=Do(i[t],a[t]);if(s){if(t>=u)return s;var f=r[t];return s*(f=="desc"?-1:1)}}return n.index-e.index}function Bo(n,e,r){e.length?e=H(e,function(a){return _(a)?function(o){return En(o,a.length===1?a[0]:a)}:a}):e=[G];var t=-1;e=H(e,kn(C));var i=_r(n,function(a,o,u){var s=H(e,function(f){return f(a)});return{criteria:s,index:++t,value:a}});return Fo(i,function(a,o){return Go(a,o,r)})}function Uo(n,e){return Ro(n,e,function(r,t){return pr(n,t)})}var Yo=Ut(function(n,e){return n==null?{}:Uo(n,e)});const gn=Yo;var Ho=Math.ceil,ko=Math.max;function qo(n,e,r,t){for(var i=-1,a=ko(Ho((e-n)/(r||1)),0),o=Array(a);a--;)o[t?a:++i]=n,n+=r;return o}function Ko(n){return function(e,r,t){return t&&typeof t!="number"&&z(e,r,t)&&(r=t=void 0),e=fn(e),r===void 0?(r=e,e=0):r=fn(r),t=t===void 0?e<r?1:-1:fn(t),qo(e,r,t,n)}}var Wo=Ko();const k=Wo;function Xo(n,e,r,t,i){return i(n,function(a,o,u){r=t?(t=!1,a):e(r,a,o,u)}),r}function tn(n,e,r){var t=_(n)?Zt:Xo,i=arguments.length<3;return t(n,C(e),r,i,xn)}var Zo=mn(function(n,e){if(n==null)return[];var r=e.length;return r>1&&z(n,e[0],e[1])?e=[]:r>2&&z(e[0],e[1],e[2])&&(e=[e[0]]),Bo(n,yn(e,1),[])});const an=Zo;var Vo=1/0,zo=Ln&&1/Vn(new Ln([,-0]))[1]==Vo?function(n){return new Ln(n)}:it;const Jo=zo;var jo=200;function Qo(n,e,r){var t=-1,i=pt,a=n.length,o=!0,u=[],s=u;if(r)o=!1,i=_o;else if(a>=jo){var f=e?null:Jo(n);if(f)return Vn(f);o=!1,i=cr,s=new J}else s=e?[]:u;n:for(;++t<a;){var d=n[t],l=e?e(d):d;if(d=r||d!==0?d:0,o&&l===l){for(var h=s.length;h--;)if(s[h]===l)continue n;e&&s.push(l),u.push(d)}else i(s,l,r)||(s!==u&&s.push(l),u.push(d))}return u}var nu=mn(function(n){return Qo(yn(n,1,wr,!0))});const eu=nu;var ru=0;function te(n){var e=++ru;return je(n)+e}function tu(n,e,r){for(var t=-1,i=n.length,a=e.length,o={};++t<i;){var u=t<a?e[t]:void 0;r(o,n[t],u)}return o}function iu(n,e){return tu(n||[],e||[],wn)}var au="\0",S="\0",Ne="";class A{constructor(e={}){this._isDirected=b(e,"directed")?e.directed:!0,this._isMultigraph=b(e,"multigraph")?e.multigraph:!1,this._isCompound=b(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=Y(void 0),this._defaultEdgeLabelFn=Y(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[S]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return Mn(e)||(e=Y(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return T(this._nodes)}sources(){var e=this;return P(this.nodes(),function(r){return se(e._in[r])})}sinks(){var e=this;return P(this.nodes(),function(r){return se(e._out[r])})}setNodes(e,r){var t=arguments,i=this;return c(e,function(a){t.length>1?i.setNode(a,r):i.setNode(a)}),this}setNode(e,r){return b(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=r),this):(this._nodes[e]=arguments.length>1?r:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=S,this._children[e]={},this._children[S][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return b(this._nodes,e)}removeNode(e){var r=this;if(b(this._nodes,e)){var t=function(i){r.removeEdge(r._edgeObjs[i])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],c(this.children(e),function(i){r.setParent(i)}),delete this._children[e]),c(T(this._in[e]),t),delete this._in[e],delete this._preds[e],c(T(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(x(r))r=S;else{r+="";for(var t=r;!x(t);t=this.parent(t))if(t===e)throw new Error("Setting "+r+" as parent of "+e+" would create a cycle");this.setNode(r)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=r,this._children[r][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var r=this._parent[e];if(r!==S)return r}}children(e){if(x(e)&&(e=S),this._isCompound){var r=this._children[e];if(r)return T(r)}else{if(e===S)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var r=this._preds[e];if(r)return T(r)}successors(e){var r=this._sucs[e];if(r)return T(r)}neighbors(e){var r=this.predecessors(e);if(r)return eu(r,this.successors(e))}isLeaf(e){var r;return this.isDirected()?r=this.successors(e):r=this.neighbors(e),r.length===0}filterNodes(e){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var t=this;c(this._nodes,function(o,u){e(u)&&r.setNode(u,o)}),c(this._edgeObjs,function(o){r.hasNode(o.v)&&r.hasNode(o.w)&&r.setEdge(o,t.edge(o))});var i={};function a(o){var u=t.parent(o);return u===void 0||r.hasNode(u)?(i[o]=u,u):u in i?i[u]:a(u)}return this._isCompound&&c(r.nodes(),function(o){r.setParent(o,a(o))}),r}setDefaultEdgeLabel(e){return Mn(e)||(e=Y(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return N(this._edgeObjs)}setPath(e,r){var t=this,i=arguments;return tn(e,function(a,o){return i.length>1?t.setEdge(a,o,r):t.setEdge(a,o),o}),this}setEdge(){var e,r,t,i,a=!1,o=arguments[0];typeof o=="object"&&o!==null&&"v"in o?(e=o.v,r=o.w,t=o.name,arguments.length===2&&(i=arguments[1],a=!0)):(e=o,r=arguments[1],t=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),e=""+e,r=""+r,x(t)||(t=""+t);var u=W(this._isDirected,e,r,t);if(b(this._edgeLabels,u))return a&&(this._edgeLabels[u]=i),this;if(!x(t)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(r),this._edgeLabels[u]=a?i:this._defaultEdgeLabelFn(e,r,t);var s=ou(this._isDirected,e,r,t);return e=s.v,r=s.w,Object.freeze(s),this._edgeObjs[u]=s,$e(this._preds[r],e),$e(this._sucs[e],r),this._in[r][u]=s,this._out[e][u]=s,this._edgeCount++,this}edge(e,r,t){var i=arguments.length===1?Pn(this._isDirected,arguments[0]):W(this._isDirected,e,r,t);return this._edgeLabels[i]}hasEdge(e,r,t){var i=arguments.length===1?Pn(this._isDirected,arguments[0]):W(this._isDirected,e,r,t);return b(this._edgeLabels,i)}removeEdge(e,r,t){var i=arguments.length===1?Pn(this._isDirected,arguments[0]):W(this._isDirected,e,r,t),a=this._edgeObjs[i];return a&&(e=a.v,r=a.w,delete this._edgeLabels[i],delete this._edgeObjs[i],Ce(this._preds[r],e),Ce(this._sucs[e],r),delete this._in[r][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,r){var t=this._in[e];if(t){var i=N(t);return r?P(i,function(a){return a.v===r}):i}}outEdges(e,r){var t=this._out[e];if(t){var i=N(t);return r?P(i,function(a){return a.w===r}):i}}nodeEdges(e,r){var t=this.inEdges(e,r);if(t)return t.concat(this.outEdges(e,r))}}A.prototype._nodeCount=0;A.prototype._edgeCount=0;function $e(n,e){n[e]?n[e]++:n[e]=1}function Ce(n,e){--n[e]||delete n[e]}function W(n,e,r,t){var i=""+e,a=""+r;if(!n&&i>a){var o=i;i=a,a=o}return i+Ne+a+Ne+(x(t)?au:t)}function ou(n,e,r,t){var i=""+e,a=""+r;if(!n&&i>a){var o=i;i=a,a=o}var u={v:i,w:a};return t&&(u.name=t),u}function Pn(n,e){return W(n,e.v,e.w,e.name)}class uu{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,r=e._prev;if(r!==e)return Ie(r),r}enqueue(e){var r=this._sentinel;e._prev&&e._next&&Ie(e),e._next=r._next,r._next._prev=e,r._next=e,e._prev=r}toString(){for(var e=[],r=this._sentinel,t=r._prev;t!==r;)e.push(JSON.stringify(t,su)),t=t._prev;return"["+e.join(", ")+"]"}}function Ie(n){n._prev._next=n._next,n._next._prev=n._prev,delete n._next,delete n._prev}function su(n,e){if(n!=="_next"&&n!=="_prev")return e}var fu=Y(1);function du(n,e){if(n.nodeCount()<=1)return[];var r=lu(n,e||fu),t=cu(r.graph,r.buckets,r.zeroIdx);return q(y(t,function(i){return n.outEdges(i.v,i.w)}))}function cu(n,e,r){for(var t=[],i=e[e.length-1],a=e[0],o;n.nodeCount();){for(;o=a.dequeue();)Nn(n,e,r,o);for(;o=i.dequeue();)Nn(n,e,r,o);if(n.nodeCount()){for(var u=e.length-2;u>0;--u)if(o=e[u].dequeue(),o){t=t.concat(Nn(n,e,r,o,!0));break}}}return t}function Nn(n,e,r,t,i){var a=i?[]:void 0;return c(n.inEdges(t.v),function(o){var u=n.edge(o),s=n.node(o.v);i&&a.push({v:o.v,w:o.w}),s.out-=u,Bn(e,r,s)}),c(n.outEdges(t.v),function(o){var u=n.edge(o),s=o.w,f=n.node(s);f.in-=u,Bn(e,r,f)}),n.removeNode(t.v),a}function lu(n,e){var r=new A,t=0,i=0;c(n.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),c(n.edges(),function(u){var s=r.edge(u.v,u.w)||0,f=e(u),d=s+f;r.setEdge(u.v,u.w,d),i=Math.max(i,r.node(u.v).out+=f),t=Math.max(t,r.node(u.w).in+=f)});var a=k(i+t+3).map(function(){return new uu}),o=t+1;return c(r.nodes(),function(u){Bn(a,o,r.node(u))}),{graph:r,buckets:a,zeroIdx:o}}function Bn(n,e,r){r.out?r.in?n[r.out-r.in+e].enqueue(r):n[n.length-1].enqueue(r):n[0].enqueue(r)}function hu(n){var e=n.graph().acyclicer==="greedy"?du(n,r(n)):vu(n);c(e,function(t){var i=n.edge(t);n.removeEdge(t),i.forwardName=t.name,i.reversed=!0,n.setEdge(t.w,t.v,i,te("rev"))});function r(t){return function(i){return t.edge(i).weight}}}function vu(n){var e=[],r={},t={};function i(a){b(t,a)||(t[a]=!0,r[a]=!0,c(n.outEdges(a),function(o){b(r,o.w)?e.push(o):i(o.w)}),delete r[a])}return c(n.nodes(),i),e}function gu(n){c(n.edges(),function(e){var r=n.edge(e);if(r.reversed){n.removeEdge(e);var t=r.forwardName;delete r.reversed,delete r.forwardName,n.setEdge(e.w,e.v,r,t)}})}function K(n,e,r,t){var i;do i=te(t);while(n.hasNode(i));return r.dummy=e,n.setNode(i,r),i}function pu(n){var e=new A().setGraph(n.graph());return c(n.nodes(),function(r){e.setNode(r,n.node(r))}),c(n.edges(),function(r){var t=e.edge(r.v,r.w)||{weight:0,minlen:1},i=n.edge(r);e.setEdge(r.v,r.w,{weight:t.weight+i.weight,minlen:Math.max(t.minlen,i.minlen)})}),e}function yr(n){var e=new A({multigraph:n.isMultigraph()}).setGraph(n.graph());return c(n.nodes(),function(r){n.children(r).length||e.setNode(r,n.node(r))}),c(n.edges(),function(r){e.setEdge(r,n.edge(r))}),e}function Se(n,e){var r=n.x,t=n.y,i=e.x-r,a=e.y-t,o=n.width/2,u=n.height/2;if(!i&&!a)throw new Error("Not possible to find intersection inside of the rectangle");var s,f;return Math.abs(a)*o>Math.abs(i)*u?(a<0&&(u=-u),s=u*i/a,f=u):(i<0&&(o=-o),s=o,f=o*a/i),{x:r+s,y:t+f}}function On(n){var e=y(k(xr(n)+1),function(){return[]});return c(n.nodes(),function(r){var t=n.node(r),i=t.rank;x(i)||(e[i][t.order]=r)}),e}function bu(n){var e=j(y(n.nodes(),function(r){return n.node(r).rank}));c(n.nodes(),function(r){var t=n.node(r);b(t,"rank")&&(t.rank-=e)})}function wu(n){var e=j(y(n.nodes(),function(a){return n.node(a).rank})),r=[];c(n.nodes(),function(a){var o=n.node(a).rank-e;r[o]||(r[o]=[]),r[o].push(a)});var t=0,i=n.graph().nodeRankFactor;c(r,function(a,o){x(a)&&o%i!==0?--t:t&&c(a,function(u){n.node(u).rank+=t})})}function Me(n,e,r,t){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=t),K(n,"border",i,e)}function xr(n){return F(y(n.nodes(),function(e){var r=n.node(e).rank;if(!x(r))return r}))}function mu(n,e){var r={lhs:[],rhs:[]};return c(n,function(t){e(t)?r.lhs.push(t):r.rhs.push(t)}),r}function _u(n,e){var r=Pe();try{return e()}finally{console.log(n+" time: "+(Pe()-r)+"ms")}}function Eu(n,e){return e()}function yu(n){function e(r){var t=n.children(r),i=n.node(r);if(t.length&&c(t,e),b(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var a=i.minRank,o=i.maxRank+1;a<o;++a)Re(n,"borderLeft","_bl",r,i,a),Re(n,"borderRight","_br",r,i,a)}}c(n.children(),e)}function Re(n,e,r,t,i,a){var o={width:0,height:0,rank:a,borderType:e},u=i[e][a-1],s=K(n,"border",o,r);i[e][a]=s,n.setParent(s,t),u&&n.setEdge(u,s,{weight:1})}function xu(n){var e=n.graph().rankdir.toLowerCase();(e==="lr"||e==="rl")&&Tr(n)}function Tu(n){var e=n.graph().rankdir.toLowerCase();(e==="bt"||e==="rl")&&Ou(n),(e==="lr"||e==="rl")&&(Lu(n),Tr(n))}function Tr(n){c(n.nodes(),function(e){Fe(n.node(e))}),c(n.edges(),function(e){Fe(n.edge(e))})}function Fe(n){var e=n.width;n.width=n.height,n.height=e}function Ou(n){c(n.nodes(),function(e){$n(n.node(e))}),c(n.edges(),function(e){var r=n.edge(e);c(r.points,$n),b(r,"y")&&$n(r)})}function $n(n){n.y=-n.y}function Lu(n){c(n.nodes(),function(e){Cn(n.node(e))}),c(n.edges(),function(e){var r=n.edge(e);c(r.points,Cn),b(r,"x")&&Cn(r)})}function Cn(n){var e=n.x;n.x=n.y,n.y=e}function Au(n){n.graph().dummyChains=[],c(n.edges(),function(e){Pu(n,e)})}function Pu(n,e){var r=e.v,t=n.node(r).rank,i=e.w,a=n.node(i).rank,o=e.name,u=n.edge(e),s=u.labelRank;if(a!==t+1){n.removeEdge(e);var f,d,l;for(l=0,++t;t<a;++l,++t)u.points=[],d={width:0,height:0,edgeLabel:u,edgeObj:e,rank:t},f=K(n,"edge",d,"_d"),t===s&&(d.width=u.width,d.height=u.height,d.dummy="edge-label",d.labelpos=u.labelpos),n.setEdge(r,f,{weight:u.weight},o),l===0&&n.graph().dummyChains.push(f),r=f;n.setEdge(r,i,{weight:u.weight},o)}}function Nu(n){c(n.graph().dummyChains,function(e){var r=n.node(e),t=r.edgeLabel,i;for(n.setEdge(r.edgeObj,t);r.dummy;)i=n.successors(e)[0],n.removeNode(e),t.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height),e=i,r=n.node(e)})}function ie(n){var e={};function r(t){var i=n.node(t);if(b(e,t))return i.rank;e[t]=!0;var a=j(y(n.outEdges(t),function(o){return r(o.w)-n.edge(o).minlen}));return(a===Number.POSITIVE_INFINITY||a===void 0||a===null)&&(a=0),i.rank=a}c(n.sources(),r)}function Q(n,e){return n.node(e.w).rank-n.node(e.v).rank-n.edge(e).minlen}function Or(n){var e=new A({directed:!1}),r=n.nodes()[0],t=n.nodeCount();e.setNode(r,{});for(var i,a;$u(e,n)<t;)i=Cu(e,n),a=e.hasNode(i.v)?Q(n,i):-Q(n,i),Iu(e,n,a);return e}function $u(n,e){function r(t){c(e.nodeEdges(t),function(i){var a=i.v,o=t===a?i.w:a;!n.hasNode(o)&&!Q(e,i)&&(n.setNode(o,{}),n.setEdge(t,o,{}),r(o))})}return c(n.nodes(),r),n.nodeCount()}function Cu(n,e){return re(e.edges(),function(r){if(n.hasNode(r.v)!==n.hasNode(r.w))return Q(e,r)})}function Iu(n,e,r){c(n.nodes(),function(t){e.node(t).rank+=r})}function Su(){}Su.prototype=new Error;function Lr(n,e,r){_(e)||(e=[e]);var t=(n.isDirected()?n.successors:n.neighbors).bind(n),i=[],a={};return c(e,function(o){if(!n.hasNode(o))throw new Error("Graph does not have node: "+o);Ar(n,o,r==="post",a,t,i)}),i}function Ar(n,e,r,t,i,a){b(t,e)||(t[e]=!0,r||a.push(e),c(i(e),function(o){Ar(n,o,r,t,i,a)}),r&&a.push(e))}function Mu(n,e){return Lr(n,e,"post")}function Ru(n,e){return Lr(n,e,"pre")}U.initLowLimValues=oe;U.initCutValues=ae;U.calcCutValue=Pr;U.leaveEdge=$r;U.enterEdge=Cr;U.exchangeEdges=Ir;function U(n){n=pu(n),ie(n);var e=Or(n);oe(e),ae(e,n);for(var r,t;r=$r(e);)t=Cr(e,n,r),Ir(e,n,r,t)}function ae(n,e){var r=Mu(n,n.nodes());r=r.slice(0,r.length-1),c(r,function(t){Fu(n,e,t)})}function Fu(n,e,r){var t=n.node(r),i=t.parent;n.edge(r,i).cutvalue=Pr(n,e,r)}function Pr(n,e,r){var t=n.node(r),i=t.parent,a=!0,o=e.edge(r,i),u=0;return o||(a=!1,o=e.edge(i,r)),u=o.weight,c(e.nodeEdges(r),function(s){var f=s.v===r,d=f?s.w:s.v;if(d!==i){var l=f===a,h=e.edge(s).weight;if(u+=l?h:-h,Gu(n,r,d)){var g=n.edge(r,d).cutvalue;u+=l?-g:g}}}),u}function oe(n,e){arguments.length<2&&(e=n.nodes()[0]),Nr(n,{},1,e)}function Nr(n,e,r,t,i){var a=r,o=n.node(t);return e[t]=!0,c(n.neighbors(t),function(u){b(e,u)||(r=Nr(n,e,r,u,t))}),o.low=a,o.lim=r++,i?o.parent=i:delete o.parent,r}function $r(n){return ne(n.edges(),function(e){return n.edge(e).cutvalue<0})}function Cr(n,e,r){var t=r.v,i=r.w;e.hasEdge(t,i)||(t=r.w,i=r.v);var a=n.node(t),o=n.node(i),u=a,s=!1;a.lim>o.lim&&(u=o,s=!0);var f=P(e.edges(),function(d){return s===De(n,n.node(d.v),u)&&s!==De(n,n.node(d.w),u)});return re(f,function(d){return Q(e,d)})}function Ir(n,e,r,t){var i=r.v,a=r.w;n.removeEdge(i,a),n.setEdge(t.v,t.w,{}),oe(n),ae(n,e),Du(n,e)}function Du(n,e){var r=ne(n.nodes(),function(i){return!e.node(i).parent}),t=Ru(n,r);t=t.slice(1),c(t,function(i){var a=n.node(i).parent,o=e.edge(i,a),u=!1;o||(o=e.edge(a,i),u=!0),e.node(i).rank=e.node(a).rank+(u?o.minlen:-o.minlen)})}function Gu(n,e,r){return n.hasEdge(e,r)}function De(n,e,r){return r.low<=e.lim&&e.lim<=r.lim}function Bu(n){switch(n.graph().ranker){case"network-simplex":Ge(n);break;case"tight-tree":Yu(n);break;case"longest-path":Uu(n);break;default:Ge(n)}}var Uu=ie;function Yu(n){ie(n),Or(n)}function Ge(n){U(n)}function Hu(n){var e=K(n,"root",{},"_root"),r=ku(n),t=F(N(r))-1,i=2*t+1;n.graph().nestingRoot=e,c(n.edges(),function(o){n.edge(o).minlen*=i});var a=qu(n)+1;c(n.children(),function(o){Sr(n,e,i,a,t,r,o)}),n.graph().nodeRankFactor=i}function Sr(n,e,r,t,i,a,o){var u=n.children(o);if(!u.length){o!==e&&n.setEdge(e,o,{weight:0,minlen:r});return}var s=Me(n,"_bt"),f=Me(n,"_bb"),d=n.node(o);n.setParent(s,o),d.borderTop=s,n.setParent(f,o),d.borderBottom=f,c(u,function(l){Sr(n,e,r,t,i,a,l);var h=n.node(l),g=h.borderTop?h.borderTop:l,v=h.borderBottom?h.borderBottom:l,p=h.borderTop?t:2*t,m=g!==v?1:i-a[o]+1;n.setEdge(s,g,{weight:p,minlen:m,nestingEdge:!0}),n.setEdge(v,f,{weight:p,minlen:m,nestingEdge:!0})}),n.parent(o)||n.setEdge(e,s,{weight:0,minlen:i+a[o]})}function ku(n){var e={};function r(t,i){var a=n.children(t);a&&a.length&&c(a,function(o){r(o,i+1)}),e[t]=i}return c(n.children(),function(t){r(t,1)}),e}function qu(n){return tn(n.edges(),function(e,r){return e+n.edge(r).weight},0)}function Ku(n){var e=n.graph();n.removeNode(e.nestingRoot),delete e.nestingRoot,c(n.edges(),function(r){var t=n.edge(r);t.nestingEdge&&n.removeEdge(r)})}function Wu(n,e,r){var t={},i;c(r,function(a){for(var o=n.parent(a),u,s;o;){if(u=n.parent(o),u?(s=t[u],t[u]=o):(s=i,i=o),s&&s!==o){e.setEdge(s,o);return}o=u}})}function Xu(n,e,r){var t=Zu(n),i=new A({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(a){return n.node(a)});return c(n.nodes(),function(a){var o=n.node(a),u=n.parent(a);(o.rank===e||o.minRank<=e&&e<=o.maxRank)&&(i.setNode(a),i.setParent(a,u||t),c(n[r](a),function(s){var f=s.v===a?s.w:s.v,d=i.edge(f,a),l=x(d)?0:d.weight;i.setEdge(f,a,{weight:n.edge(s).weight+l})}),b(o,"minRank")&&i.setNode(a,{borderLeft:o.borderLeft[e],borderRight:o.borderRight[e]}))}),i}function Zu(n){for(var e;n.hasNode(e=te("_root")););return e}function Vu(n,e){for(var r=0,t=1;t<e.length;++t)r+=zu(n,e[t-1],e[t]);return r}function zu(n,e,r){for(var t=iu(r,y(r,function(f,d){return d})),i=q(y(e,function(f){return an(y(n.outEdges(f),function(d){return{pos:t[d.w],weight:n.edge(d).weight}}),"pos")})),a=1;a<r.length;)a<<=1;var o=2*a-1;a-=1;var u=y(new Array(o),function(){return 0}),s=0;return c(i.forEach(function(f){var d=f.pos+a;u[d]+=f.weight;for(var l=0;d>0;)d%2&&(l+=u[d+1]),d=d-1>>1,u[d]+=f.weight;s+=f.weight*l})),s}function Ju(n){var e={},r=P(n.nodes(),function(u){return!n.children(u).length}),t=F(y(r,function(u){return n.node(u).rank})),i=y(k(t+1),function(){return[]});function a(u){if(!b(e,u)){e[u]=!0;var s=n.node(u);i[s.rank].push(u),c(n.successors(u),a)}}var o=an(r,function(u){return n.node(u).rank});return c(o,a),i}function ju(n,e){return y(e,function(r){var t=n.inEdges(r);if(t.length){var i=tn(t,function(a,o){var u=n.edge(o),s=n.node(o.v);return{sum:a.sum+u.weight*s.order,weight:a.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:r}})}function Qu(n,e){var r={};c(n,function(i,a){var o=r[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:a};x(i.barycenter)||(o.barycenter=i.barycenter,o.weight=i.weight)}),c(e.edges(),function(i){var a=r[i.v],o=r[i.w];!x(a)&&!x(o)&&(o.indegree++,a.out.push(r[i.w]))});var t=P(r,function(i){return!i.indegree});return ns(t)}function ns(n){var e=[];function r(a){return function(o){o.merged||(x(o.barycenter)||x(a.barycenter)||o.barycenter>=a.barycenter)&&es(a,o)}}function t(a){return function(o){o.in.push(a),--o.indegree===0&&n.push(o)}}for(;n.length;){var i=n.pop();e.push(i),c(i.in.reverse(),r(i)),c(i.out,t(i))}return y(P(e,function(a){return!a.merged}),function(a){return gn(a,["vs","i","barycenter","weight"])})}function es(n,e){var r=0,t=0;n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.vs=e.vs.concat(n.vs),n.barycenter=r/t,n.weight=t,n.i=Math.min(e.i,n.i),e.merged=!0}function rs(n,e){var r=mu(n,function(d){return b(d,"barycenter")}),t=r.lhs,i=an(r.rhs,function(d){return-d.i}),a=[],o=0,u=0,s=0;t.sort(ts(!!e)),s=Be(a,i,s),c(t,function(d){s+=d.vs.length,a.push(d.vs),o+=d.barycenter*d.weight,u+=d.weight,s=Be(a,i,s)});var f={vs:q(a)};return u&&(f.barycenter=o/u,f.weight=u),f}function Be(n,e,r){for(var t;e.length&&(t=vn(e)).i<=r;)e.pop(),n.push(t.vs),r++;return r}function ts(n){return function(e,r){return e.barycenter<r.barycenter?-1:e.barycenter>r.barycenter?1:n?r.i-e.i:e.i-r.i}}function Mr(n,e,r,t){var i=n.children(e),a=n.node(e),o=a?a.borderLeft:void 0,u=a?a.borderRight:void 0,s={};o&&(i=P(i,function(v){return v!==o&&v!==u}));var f=ju(n,i);c(f,function(v){if(n.children(v.v).length){var p=Mr(n,v.v,r,t);s[v.v]=p,b(p,"barycenter")&&as(v,p)}});var d=Qu(f,r);is(d,s);var l=rs(d,t);if(o&&(l.vs=q([o,l.vs,u]),n.predecessors(o).length)){var h=n.node(n.predecessors(o)[0]),g=n.node(n.predecessors(u)[0]);b(l,"barycenter")||(l.barycenter=0,l.weight=0),l.barycenter=(l.barycenter*l.weight+h.order+g.order)/(l.weight+2),l.weight+=2}return l}function is(n,e){c(n,function(r){r.vs=q(r.vs.map(function(t){return e[t]?e[t].vs:t}))})}function as(n,e){x(n.barycenter)?(n.barycenter=e.barycenter,n.weight=e.weight):(n.barycenter=(n.barycenter*n.weight+e.barycenter*e.weight)/(n.weight+e.weight),n.weight+=e.weight)}function os(n){var e=xr(n),r=Ue(n,k(1,e+1),"inEdges"),t=Ue(n,k(e-1,-1,-1),"outEdges"),i=Ju(n);Ye(n,i);for(var a=Number.POSITIVE_INFINITY,o,u=0,s=0;s<4;++u,++s){us(u%2?r:t,u%4>=2),i=On(n);var f=Vu(n,i);f<a&&(s=0,o=ya(i),a=f)}Ye(n,o)}function Ue(n,e,r){return y(e,function(t){return Xu(n,t,r)})}function us(n,e){var r=new A;c(n,function(t){var i=t.graph().root,a=Mr(t,i,r,e);c(a.vs,function(o,u){t.node(o).order=u}),Wu(t,r,a.vs)})}function Ye(n,e){c(e,function(r){c(r,function(t,i){n.node(t).order=i})})}function ss(n){var e=ds(n);c(n.graph().dummyChains,function(r){for(var t=n.node(r),i=t.edgeObj,a=fs(n,e,i.v,i.w),o=a.path,u=a.lca,s=0,f=o[s],d=!0;r!==i.w;){if(t=n.node(r),d){for(;(f=o[s])!==u&&n.node(f).maxRank<t.rank;)s++;f===u&&(d=!1)}if(!d){for(;s<o.length-1&&n.node(f=o[s+1]).minRank<=t.rank;)s++;f=o[s]}n.setParent(r,f),r=n.successors(r)[0]}})}function fs(n,e,r,t){var i=[],a=[],o=Math.min(e[r].low,e[t].low),u=Math.max(e[r].lim,e[t].lim),s,f;s=r;do s=n.parent(s),i.push(s);while(s&&(e[s].low>o||u>e[s].lim));for(f=s,s=t;(s=n.parent(s))!==f;)a.push(s);return{path:i.concat(a.reverse()),lca:f}}function ds(n){var e={},r=0;function t(i){var a=r;c(n.children(i),t),e[i]={low:a,lim:r++}}return c(n.children(),t),e}function cs(n,e){var r={};function t(i,a){var o=0,u=0,s=i.length,f=vn(a);return c(a,function(d,l){var h=hs(n,d),g=h?n.node(h).order:s;(h||d===f)&&(c(a.slice(u,l+1),function(v){c(n.predecessors(v),function(p){var m=n.node(p),E=m.order;(E<o||g<E)&&!(m.dummy&&n.node(v).dummy)&&Rr(r,p,v)})}),u=l+1,o=g)}),a}return tn(e,t),r}function ls(n,e){var r={};function t(a,o,u,s,f){var d;c(k(o,u),function(l){d=a[l],n.node(d).dummy&&c(n.predecessors(d),function(h){var g=n.node(h);g.dummy&&(g.order<s||g.order>f)&&Rr(r,h,d)})})}function i(a,o){var u=-1,s,f=0;return c(o,function(d,l){if(n.node(d).dummy==="border"){var h=n.predecessors(d);h.length&&(s=n.node(h[0]).order,t(o,f,l,u,s),f=l,u=s)}t(o,f,o.length,s,a.length)}),o}return tn(e,i),r}function hs(n,e){if(n.node(e).dummy)return ne(n.predecessors(e),function(r){return n.node(r).dummy})}function Rr(n,e,r){if(e>r){var t=e;e=r,r=t}var i=n[e];i||(n[e]=i={}),i[r]=!0}function vs(n,e,r){if(e>r){var t=e;e=r,r=t}return b(n[e],r)}function gs(n,e,r,t){var i={},a={},o={};return c(e,function(u){c(u,function(s,f){i[s]=s,a[s]=s,o[s]=f})}),c(e,function(u){var s=-1;c(u,function(f){var d=t(f);if(d.length){d=an(d,function(p){return o[p]});for(var l=(d.length-1)/2,h=Math.floor(l),g=Math.ceil(l);h<=g;++h){var v=d[h];a[f]===f&&s<o[v]&&!vs(r,f,v)&&(a[v]=f,a[f]=i[f]=i[v],s=o[v])}}})}),{root:i,align:a}}function ps(n,e,r,t,i){var a={},o=bs(n,e,r,i),u=i?"borderLeft":"borderRight";function s(l,h){for(var g=o.nodes(),v=g.pop(),p={};v;)p[v]?l(v):(p[v]=!0,g.push(v),g=g.concat(h(v))),v=g.pop()}function f(l){a[l]=o.inEdges(l).reduce(function(h,g){return Math.max(h,a[g.v]+o.edge(g))},0)}function d(l){var h=o.outEdges(l).reduce(function(v,p){return Math.min(v,a[p.w]-o.edge(p))},Number.POSITIVE_INFINITY),g=n.node(l);h!==Number.POSITIVE_INFINITY&&g.borderType!==u&&(a[l]=Math.max(a[l],h))}return s(f,o.predecessors.bind(o)),s(d,o.successors.bind(o)),c(t,function(l){a[l]=a[r[l]]}),a}function bs(n,e,r,t){var i=new A,a=n.graph(),o=ys(a.nodesep,a.edgesep,t);return c(e,function(u){var s;c(u,function(f){var d=r[f];if(i.setNode(d),s){var l=r[s],h=i.edge(l,d);i.setEdge(l,d,Math.max(o(n,f,s),h||0))}s=f})}),i}function ws(n,e){return re(N(e),function(r){var t=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return Lo(r,function(a,o){var u=xs(n,o)/2;t=Math.max(a+u,t),i=Math.min(a-u,i)}),t-i})}function ms(n,e){var r=N(e),t=j(r),i=F(r);c(["u","d"],function(a){c(["l","r"],function(o){var u=a+o,s=n[u],f;if(s!==e){var d=N(s);f=o==="l"?t-j(d):i-F(d),f&&(n[u]=Tn(s,function(l){return l+f}))}})})}function _s(n,e){return Tn(n.ul,function(r,t){if(e)return n[e.toLowerCase()][t];var i=an(y(n,t));return(i[1]+i[2])/2})}function Es(n){var e=On(n),r=Gn(cs(n,e),ls(n,e)),t={},i;c(["u","d"],function(o){i=o==="u"?e:N(e).reverse(),c(["l","r"],function(u){u==="r"&&(i=y(i,function(l){return N(l).reverse()}));var s=(o==="u"?n.predecessors:n.successors).bind(n),f=gs(n,i,r,s),d=ps(n,i,f.root,f.align,u==="r");u==="r"&&(d=Tn(d,function(l){return-l})),t[o+u]=d})});var a=ws(n,t);return ms(t,a),_s(t,n.graph().align)}function ys(n,e,r){return function(t,i,a){var o=t.node(i),u=t.node(a),s=0,f;if(s+=o.width/2,b(o,"labelpos"))switch(o.labelpos.toLowerCase()){case"l":f=-o.width/2;break;case"r":f=o.width/2;break}if(f&&(s+=r?f:-f),f=0,s+=(o.dummy?e:n)/2,s+=(u.dummy?e:n)/2,s+=u.width/2,b(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":f=u.width/2;break;case"r":f=-u.width/2;break}return f&&(s+=r?f:-f),f=0,s}}function xs(n,e){return n.node(e).width}function Ts(n){n=yr(n),Os(n),Ao(Es(n),function(e,r){n.node(r).x=e})}function Os(n){var e=On(n),r=n.graph().ranksep,t=0;c(e,function(i){var a=F(y(i,function(o){return n.node(o).height}));c(i,function(o){n.node(o).y=t+a/2}),t+=a+r})}function zs(n,e){var r=e&&e.debugTiming?_u:Eu;r("layout",function(){var t=r(" buildLayoutGraph",function(){return Fs(n)});r(" runLayout",function(){Ls(t,r)}),r(" updateInputGraph",function(){As(n,t)})})}function Ls(n,e){e(" makeSpaceForEdgeLabels",function(){Ds(n)}),e(" removeSelfEdges",function(){Ws(n)}),e(" acyclic",function(){hu(n)}),e(" nestingGraph.run",function(){Hu(n)}),e(" rank",function(){Bu(yr(n))}),e(" injectEdgeLabelProxies",function(){Gs(n)}),e(" removeEmptyRanks",function(){wu(n)}),e(" nestingGraph.cleanup",function(){Ku(n)}),e(" normalizeRanks",function(){bu(n)}),e(" assignRankMinMax",function(){Bs(n)}),e(" removeEdgeLabelProxies",function(){Us(n)}),e(" normalize.run",function(){Au(n)}),e(" parentDummyChains",function(){ss(n)}),e(" addBorderSegments",function(){yu(n)}),e(" order",function(){os(n)}),e(" insertSelfEdges",function(){Xs(n)}),e(" adjustCoordinateSystem",function(){xu(n)}),e(" position",function(){Ts(n)}),e(" positionSelfEdges",function(){Zs(n)}),e(" removeBorderNodes",function(){Ks(n)}),e(" normalize.undo",function(){Nu(n)}),e(" fixupEdgeLabelCoords",function(){ks(n)}),e(" undoCoordinateSystem",function(){Tu(n)}),e(" translateGraph",function(){Ys(n)}),e(" assignNodeIntersects",function(){Hs(n)}),e(" reversePoints",function(){qs(n)}),e(" acyclic.undo",function(){gu(n)})}function As(n,e){c(n.nodes(),function(r){var t=n.node(r),i=e.node(r);t&&(t.x=i.x,t.y=i.y,e.children(r).length&&(t.width=i.width,t.height=i.height))}),c(n.edges(),function(r){var t=n.edge(r),i=e.edge(r);t.points=i.points,b(i,"x")&&(t.x=i.x,t.y=i.y)}),n.graph().width=e.graph().width,n.graph().height=e.graph().height}var Ps=["nodesep","edgesep","ranksep","marginx","marginy"],Ns={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},$s=["acyclicer","ranker","rankdir","align"],Cs=["width","height"],Is={width:0,height:0},Ss=["minlen","weight","width","height","labeloffset"],Ms={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Rs=["labelpos"];function Fs(n){var e=new A({multigraph:!0,compound:!0}),r=Sn(n.graph());return e.setGraph(Gn({},Ns,In(r,Ps),gn(r,$s))),c(n.nodes(),function(t){var i=Sn(n.node(t));e.setNode(t,bo(In(i,Cs),Is)),e.setParent(t,n.parent(t))}),c(n.edges(),function(t){var i=Sn(n.edge(t));e.setEdge(t,Gn({},Ms,In(i,Ss),gn(i,Rs)))}),e}function Ds(n){var e=n.graph();e.ranksep/=2,c(n.edges(),function(r){var t=n.edge(r);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(e.rankdir==="TB"||e.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function Gs(n){c(n.edges(),function(e){var r=n.edge(e);if(r.width&&r.height){var t=n.node(e.v),i=n.node(e.w),a={rank:(i.rank-t.rank)/2+t.rank,e};K(n,"edge-proxy",a,"_ep")}})}function Bs(n){var e=0;c(n.nodes(),function(r){var t=n.node(r);t.borderTop&&(t.minRank=n.node(t.borderTop).rank,t.maxRank=n.node(t.borderBottom).rank,e=F(e,t.maxRank))}),n.graph().maxRank=e}function Us(n){c(n.nodes(),function(e){var r=n.node(e);r.dummy==="edge-proxy"&&(n.edge(r.e).labelRank=r.rank,n.removeNode(e))})}function Ys(n){var e=Number.POSITIVE_INFINITY,r=0,t=Number.POSITIVE_INFINITY,i=0,a=n.graph(),o=a.marginx||0,u=a.marginy||0;function s(f){var d=f.x,l=f.y,h=f.width,g=f.height;e=Math.min(e,d-h/2),r=Math.max(r,d+h/2),t=Math.min(t,l-g/2),i=Math.max(i,l+g/2)}c(n.nodes(),function(f){s(n.node(f))}),c(n.edges(),function(f){var d=n.edge(f);b(d,"x")&&s(d)}),e-=o,t-=u,c(n.nodes(),function(f){var d=n.node(f);d.x-=e,d.y-=t}),c(n.edges(),function(f){var d=n.edge(f);c(d.points,function(l){l.x-=e,l.y-=t}),b(d,"x")&&(d.x-=e),b(d,"y")&&(d.y-=t)}),a.width=r-e+o,a.height=i-t+u}function Hs(n){c(n.edges(),function(e){var r=n.edge(e),t=n.node(e.v),i=n.node(e.w),a,o;r.points?(a=r.points[0],o=r.points[r.points.length-1]):(r.points=[],a=i,o=t),r.points.unshift(Se(t,a)),r.points.push(Se(i,o))})}function ks(n){c(n.edges(),function(e){var r=n.edge(e);if(b(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function qs(n){c(n.edges(),function(e){var r=n.edge(e);r.reversed&&r.points.reverse()})}function Ks(n){c(n.nodes(),function(e){if(n.children(e).length){var r=n.node(e),t=n.node(r.borderTop),i=n.node(r.borderBottom),a=n.node(vn(r.borderLeft)),o=n.node(vn(r.borderRight));r.width=Math.abs(o.x-a.x),r.height=Math.abs(i.y-t.y),r.x=a.x+r.width/2,r.y=t.y+r.height/2}}),c(n.nodes(),function(e){n.node(e).dummy==="border"&&n.removeNode(e)})}function Ws(n){c(n.edges(),function(e){if(e.v===e.w){var r=n.node(e.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e,label:n.edge(e)}),n.removeEdge(e)}})}function Xs(n){var e=On(n);c(e,function(r){var t=0;c(r,function(i,a){var o=n.node(i);o.order=a+t,c(o.selfEdges,function(u){K(n,"selfedge",{width:u.label.width,height:u.label.height,rank:o.rank,order:a+ ++t,e:u.e,label:u.label},"_se")}),delete o.selfEdges})})}function Zs(n){c(n.nodes(),function(e){var r=n.node(e);if(r.dummy==="selfedge"){var t=n.node(r.e.v),i=t.x+t.width/2,a=t.y,o=r.x-i,u=t.height/2;n.setEdge(r.e,r.label),n.removeNode(e),r.label.points=[{x:i+2*o/3,y:a-u},{x:i+5*o/6,y:a-u},{x:i+o,y:a},{x:i+5*o/6,y:a+u},{x:i+2*o/3,y:a+u}],r.label.x=r.x,r.label.y=r.y}})}function In(n,e){return Tn(gn(n,e),Number)}function Sn(n){var e={};return c(n,function(r,t){e[t.toLowerCase()]=r}),e}export{A as G,x as a,dn as b,bo as d,c as f,b as h,Xt as i,zs as l,y as m,gn as p,k as r,te as u}; diff --git a/docs/assets/line-bade02ca.js b/docs/assets/line-4c8e436d.js similarity index 93% rename from docs/assets/line-bade02ca.js rename to docs/assets/line-4c8e436d.js index 96d43a83..3dadfa90 100644 --- a/docs/assets/line-bade02ca.js +++ b/docs/assets/line-4c8e436d.js @@ -1 +1 @@ -import{a as h}from"./array-9f3ba611.js";import{w as d,c as o}from"./path-53f90ab3.js";import{o as v}from"./index-b4f98efc.js";function w(t){return t[0]}function b(t){return t[1]}function P(t,u){var s=o(!0),i=null,l=v,r=null,m=d(e);t=typeof t=="function"?t:t===void 0?w:o(t),u=typeof u=="function"?u:u===void 0?b:o(u);function e(n){var f,g=(n=h(n)).length,p,c=!1,a;for(i==null&&(r=l(a=m())),f=0;f<=g;++f)!(f<g&&s(p=n[f],f,n))===c&&((c=!c)?r.lineStart():r.lineEnd()),c&&r.point(+t(p,f,n),+u(p,f,n));if(a)return r=null,a+""||null}return e.x=function(n){return arguments.length?(t=typeof n=="function"?n:o(+n),e):t},e.y=function(n){return arguments.length?(u=typeof n=="function"?n:o(+n),e):u},e.defined=function(n){return arguments.length?(s=typeof n=="function"?n:o(!!n),e):s},e.curve=function(n){return arguments.length?(l=n,i!=null&&(r=l(i)),e):l},e.context=function(n){return arguments.length?(n==null?i=r=null:r=l(i=n),e):i},e}export{P as l}; +import{a as h}from"./array-9f3ba611.js";import{w as d,c as o}from"./path-53f90ab3.js";import{o as v}from"./index-0e08498d.js";function w(t){return t[0]}function b(t){return t[1]}function P(t,u){var s=o(!0),i=null,l=v,r=null,m=d(e);t=typeof t=="function"?t:t===void 0?w:o(t),u=typeof u=="function"?u:u===void 0?b:o(u);function e(n){var f,g=(n=h(n)).length,p,c=!1,a;for(i==null&&(r=l(a=m())),f=0;f<=g;++f)!(f<g&&s(p=n[f],f,n))===c&&((c=!c)?r.lineStart():r.lineEnd()),c&&r.point(+t(p,f,n),+u(p,f,n));if(a)return r=null,a+""||null}return e.x=function(n){return arguments.length?(t=typeof n=="function"?n:o(+n),e):t},e.y=function(n){return arguments.length?(u=typeof n=="function"?n:o(+n),e):u},e.defined=function(n){return arguments.length?(s=typeof n=="function"?n:o(!!n),e):s},e.curve=function(n){return arguments.length?(l=n,i!=null&&(r=l(i)),e):l},e.context=function(n){return arguments.length?(n==null?i=r=null:r=l(i=n),e):i},e}export{P as l}; diff --git a/docs/assets/linear-21c501a1.js b/docs/assets/linear-fb1e7037.js similarity index 99% rename from docs/assets/linear-21c501a1.js rename to docs/assets/linear-fb1e7037.js index e07bf139..0807714c 100644 --- a/docs/assets/linear-21c501a1.js +++ b/docs/assets/linear-fb1e7037.js @@ -1 +1 @@ -import{W as un,X as I,Y,Z,$ as fn}from"./index-b4f98efc.js";import{i as cn}from"./init-77b53fdd.js";function F(n,t){return n==null||t==null?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function hn(n,t){return n==null||t==null?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function _(n){let t,e,r;n.length!==2?(t=F,e=(u,c)=>F(n(u),c),r=(u,c)=>n(u)-c):(t=n===F||n===hn?n:mn,e=n,r=n);function i(u,c,o=0,l=u.length){if(o<l){if(t(c,c)!==0)return l;do{const h=o+l>>>1;e(u[h],c)<0?o=h+1:l=h}while(o<l)}return o}function f(u,c,o=0,l=u.length){if(o<l){if(t(c,c)!==0)return l;do{const h=o+l>>>1;e(u[h],c)<=0?o=h+1:l=h}while(o<l)}return o}function a(u,c,o=0,l=u.length){const h=i(u,c,o,l-1);return h>o&&r(u[h-1],c)>-r(u[h],c)?h-1:h}return{left:i,center:a,right:f}}function mn(){return 0}function sn(n){return n===null?NaN:+n}const ln=_(F),dn=ln.right;_(sn).center;const gn=dn,yn=Math.sqrt(50),Mn=Math.sqrt(10),pn=Math.sqrt(2);function R(n,t,e){const r=(t-n)/Math.max(0,e),i=Math.floor(Math.log10(r)),f=r/Math.pow(10,i),a=f>=yn?10:f>=Mn?5:f>=pn?2:1;let u,c,o;return i<0?(o=Math.pow(10,-i)/a,u=Math.round(n*o),c=Math.round(t*o),u/o<n&&++u,c/o>t&&--c,o=-o):(o=Math.pow(10,i)*a,u=Math.round(n/o),c=Math.round(t/o),u*o<n&&++u,c*o>t&&--c),c<u&&.5<=e&&e<2?R(n,t,e*2):[u,c,o]}function wn(n,t,e){if(t=+t,n=+n,e=+e,!(e>0))return[];if(n===t)return[n];const r=t<n,[i,f,a]=r?R(t,n,e):R(n,t,e);if(!(f>=i))return[];const u=f-i+1,c=new Array(u);if(r)if(a<0)for(let o=0;o<u;++o)c[o]=(f-o)/-a;else for(let o=0;o<u;++o)c[o]=(f-o)*a;else if(a<0)for(let o=0;o<u;++o)c[o]=(i+o)/-a;else for(let o=0;o<u;++o)c[o]=(i+o)*a;return c}function L(n,t,e){return t=+t,n=+n,e=+e,R(n,t,e)[2]}function Nn(n,t,e){t=+t,n=+n,e=+e;const r=t<n,i=r?L(t,n,e):L(n,t,e);return(r?-1:1)*(i<0?1/-i:i)}function kn(n,t){t||(t=[]);var e=n?Math.min(t.length,n.length):0,r=t.slice(),i;return function(f){for(i=0;i<e;++i)r[i]=n[i]*(1-f)+t[i]*f;return r}}function xn(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function An(n,t){var e=t?t.length:0,r=n?Math.min(e,n.length):0,i=new Array(r),f=new Array(e),a;for(a=0;a<r;++a)i[a]=C(n[a],t[a]);for(;a<e;++a)f[a]=t[a];return function(u){for(a=0;a<r;++a)f[a]=i[a](u);return f}}function vn(n,t){var e=new Date;return n=+n,t=+t,function(r){return e.setTime(n*(1-r)+t*r),e}}function Sn(n,t){var e={},r={},i;(n===null||typeof n!="object")&&(n={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in n?e[i]=C(n[i],t[i]):r[i]=t[i];return function(f){for(i in e)r[i]=e[i](f);return r}}function C(n,t){var e=typeof t,r;return t==null||e==="boolean"?un(t):(e==="number"?I:e==="string"?(r=Y(t))?(t=r,Z):fn:t instanceof Y?Z:t instanceof Date?vn:xn(t)?kn:Array.isArray(t)?An:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Sn:I)(n,t)}function bn(n,t){return n=+n,t=+t,function(e){return Math.round(n*(1-e)+t*e)}}function jn(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function E(n,t){if((e=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var e,r=n.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+n.slice(e+1)]}function v(n){return n=E(Math.abs(n)),n?n[1]:NaN}function Pn(n,t){return function(e,r){for(var i=e.length,f=[],a=0,u=n[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),f.push(e.substring(i-=u,i+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return f.reverse().join(t)}}function zn(n){return function(t){return t.replace(/[0-9]/g,function(e){return n[+e]})}}var $n=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function D(n){if(!(t=$n.exec(n)))throw new Error("invalid format: "+n);var t;return new X({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}D.prototype=X.prototype;function X(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}X.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Fn(n){n:for(var t=n.length,e=1,r=-1,i;e<t;++e)switch(n[e]){case".":r=i=e;break;case"0":r===0&&(r=e),i=e;break;default:if(!+n[e])break n;r>0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(i+1):n}var nn;function Rn(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1],f=i-(nn=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return f===a?r:f>a?r+new Array(f-a+1).join("0"):f>0?r.slice(0,f)+"."+r.slice(f):"0."+new Array(1-f).join("0")+E(n,Math.max(0,t+f-1))[0]}function U(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const W={"%":(n,t)=>(n*100).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:jn,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>U(n*100,t),r:U,s:Rn,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function H(n){return n}var J=Array.prototype.map,K=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function En(n){var t=n.grouping===void 0||n.thousands===void 0?H:Pn(J.call(n.grouping,Number),n.thousands+""),e=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",i=n.decimal===void 0?".":n.decimal+"",f=n.numerals===void 0?H:zn(J.call(n.numerals,String)),a=n.percent===void 0?"%":n.percent+"",u=n.minus===void 0?"−":n.minus+"",c=n.nan===void 0?"NaN":n.nan+"";function o(h){h=D(h);var s=h.fill,p=h.align,y=h.sign,S=h.symbol,k=h.zero,b=h.width,T=h.comma,w=h.precision,B=h.trim,d=h.type;d==="n"?(T=!0,d="g"):W[d]||(w===void 0&&(w=12),B=!0,d="g"),(k||s==="0"&&p==="=")&&(k=!0,s="0",p="=");var en=S==="$"?e:S==="#"&&/[boxX]/.test(d)?"0"+d.toLowerCase():"",on=S==="$"?r:/[%p]/.test(d)?a:"",G=W[d],an=/[defgprs%]/.test(d);w=w===void 0?6:/[gprs]/.test(d)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function O(m){var N=en,g=on,x,V,j;if(d==="c")g=G(m)+g,m="";else{m=+m;var P=m<0||1/m<0;if(m=isNaN(m)?c:G(Math.abs(m),w),B&&(m=Fn(m)),P&&+m==0&&y!=="+"&&(P=!1),N=(P?y==="("?y:u:y==="-"||y==="("?"":y)+N,g=(d==="s"?K[8+nn/3]:"")+g+(P&&y==="("?")":""),an){for(x=-1,V=m.length;++x<V;)if(j=m.charCodeAt(x),48>j||j>57){g=(j===46?i+m.slice(x+1):m.slice(x))+g,m=m.slice(0,x);break}}}T&&!k&&(m=t(m,1/0));var z=N.length+m.length+g.length,M=z<b?new Array(b-z+1).join(s):"";switch(T&&k&&(m=t(M+m,M.length?b-g.length:1/0),M=""),p){case"<":m=N+m+g+M;break;case"=":m=N+M+m+g;break;case"^":m=M.slice(0,z=M.length>>1)+N+m+g+M.slice(z);break;default:m=M+N+m+g;break}return f(m)}return O.toString=function(){return h+""},O}function l(h,s){var p=o((h=D(h),h.type="f",h)),y=Math.max(-8,Math.min(8,Math.floor(v(s)/3)))*3,S=Math.pow(10,-y),k=K[8+y/3];return function(b){return p(S*b)+k}}return{format:o,formatPrefix:l}}var $,tn,rn;Dn({thousands:",",grouping:[3],currency:["$",""]});function Dn(n){return $=En(n),tn=$.format,rn=$.formatPrefix,$}function Tn(n){return Math.max(0,-v(Math.abs(n)))}function In(n,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(v(t)/3)))*3-v(Math.abs(n)))}function Ln(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,v(t)-v(n))+1}function qn(n){return function(){return n}}function Cn(n){return+n}var Q=[0,1];function A(n){return n}function q(n,t){return(t-=n=+n)?function(e){return(e-n)/t}:qn(isNaN(t)?NaN:.5)}function Xn(n,t){var e;return n>t&&(e=n,n=t,t=e),function(r){return Math.max(n,Math.min(t,r))}}function Bn(n,t,e){var r=n[0],i=n[1],f=t[0],a=t[1];return i<r?(r=q(i,r),f=e(a,f)):(r=q(r,i),f=e(f,a)),function(u){return f(r(u))}}function Gn(n,t,e){var r=Math.min(n.length,t.length)-1,i=new Array(r),f=new Array(r),a=-1;for(n[r]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=q(n[a],n[a+1]),f[a]=e(t[a],t[a+1]);return function(u){var c=gn(n,u,1,r)-1;return f[c](i[c](u))}}function On(n,t){return t.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function Vn(){var n=Q,t=Q,e=C,r,i,f,a=A,u,c,o;function l(){var s=Math.min(n.length,t.length);return a!==A&&(a=Xn(n[0],n[s-1])),u=s>2?Gn:Bn,c=o=null,h}function h(s){return s==null||isNaN(s=+s)?f:(c||(c=u(n.map(r),t,e)))(r(a(s)))}return h.invert=function(s){return a(i((o||(o=u(t,n.map(r),I)))(s)))},h.domain=function(s){return arguments.length?(n=Array.from(s,Cn),l()):n.slice()},h.range=function(s){return arguments.length?(t=Array.from(s),l()):t.slice()},h.rangeRound=function(s){return t=Array.from(s),e=bn,l()},h.clamp=function(s){return arguments.length?(a=s?!0:A,l()):a!==A},h.interpolate=function(s){return arguments.length?(e=s,l()):e},h.unknown=function(s){return arguments.length?(f=s,h):f},function(s,p){return r=s,i=p,l()}}function Yn(){return Vn()(A,A)}function Zn(n,t,e,r){var i=Nn(n,t,e),f;switch(r=D(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(t));return r.precision==null&&!isNaN(f=In(i,a))&&(r.precision=f),rn(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(f=Ln(i,Math.max(Math.abs(n),Math.abs(t))))&&(r.precision=f-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(f=Tn(i))&&(r.precision=f-(r.type==="%")*2);break}}return tn(r)}function Un(n){var t=n.domain;return n.ticks=function(e){var r=t();return wn(r[0],r[r.length-1],e??10)},n.tickFormat=function(e,r){var i=t();return Zn(i[0],i[i.length-1],e??10,r)},n.nice=function(e){e==null&&(e=10);var r=t(),i=0,f=r.length-1,a=r[i],u=r[f],c,o,l=10;for(u<a&&(o=a,a=u,u=o,o=i,i=f,f=o);l-- >0;){if(o=L(a,u,e),o===c)return r[i]=a,r[f]=u,t(r);if(o>0)a=Math.floor(a/o)*o,u=Math.ceil(u/o)*o;else if(o<0)a=Math.ceil(a*o)/o,u=Math.floor(u*o)/o;else break;c=o}return n},n}function Wn(){var n=Yn();return n.copy=function(){return On(n,Wn())},cn.apply(n,arguments),Un(n)}export{On as a,_ as b,Yn as c,Wn as l,Nn as t}; +import{W as un,X as I,Y,Z,$ as fn}from"./index-0e08498d.js";import{i as cn}from"./init-77b53fdd.js";function F(n,t){return n==null||t==null?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function hn(n,t){return n==null||t==null?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function _(n){let t,e,r;n.length!==2?(t=F,e=(u,c)=>F(n(u),c),r=(u,c)=>n(u)-c):(t=n===F||n===hn?n:mn,e=n,r=n);function i(u,c,o=0,l=u.length){if(o<l){if(t(c,c)!==0)return l;do{const h=o+l>>>1;e(u[h],c)<0?o=h+1:l=h}while(o<l)}return o}function f(u,c,o=0,l=u.length){if(o<l){if(t(c,c)!==0)return l;do{const h=o+l>>>1;e(u[h],c)<=0?o=h+1:l=h}while(o<l)}return o}function a(u,c,o=0,l=u.length){const h=i(u,c,o,l-1);return h>o&&r(u[h-1],c)>-r(u[h],c)?h-1:h}return{left:i,center:a,right:f}}function mn(){return 0}function sn(n){return n===null?NaN:+n}const ln=_(F),dn=ln.right;_(sn).center;const gn=dn,yn=Math.sqrt(50),Mn=Math.sqrt(10),pn=Math.sqrt(2);function R(n,t,e){const r=(t-n)/Math.max(0,e),i=Math.floor(Math.log10(r)),f=r/Math.pow(10,i),a=f>=yn?10:f>=Mn?5:f>=pn?2:1;let u,c,o;return i<0?(o=Math.pow(10,-i)/a,u=Math.round(n*o),c=Math.round(t*o),u/o<n&&++u,c/o>t&&--c,o=-o):(o=Math.pow(10,i)*a,u=Math.round(n/o),c=Math.round(t/o),u*o<n&&++u,c*o>t&&--c),c<u&&.5<=e&&e<2?R(n,t,e*2):[u,c,o]}function wn(n,t,e){if(t=+t,n=+n,e=+e,!(e>0))return[];if(n===t)return[n];const r=t<n,[i,f,a]=r?R(t,n,e):R(n,t,e);if(!(f>=i))return[];const u=f-i+1,c=new Array(u);if(r)if(a<0)for(let o=0;o<u;++o)c[o]=(f-o)/-a;else for(let o=0;o<u;++o)c[o]=(f-o)*a;else if(a<0)for(let o=0;o<u;++o)c[o]=(i+o)/-a;else for(let o=0;o<u;++o)c[o]=(i+o)*a;return c}function L(n,t,e){return t=+t,n=+n,e=+e,R(n,t,e)[2]}function Nn(n,t,e){t=+t,n=+n,e=+e;const r=t<n,i=r?L(t,n,e):L(n,t,e);return(r?-1:1)*(i<0?1/-i:i)}function kn(n,t){t||(t=[]);var e=n?Math.min(t.length,n.length):0,r=t.slice(),i;return function(f){for(i=0;i<e;++i)r[i]=n[i]*(1-f)+t[i]*f;return r}}function xn(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function An(n,t){var e=t?t.length:0,r=n?Math.min(e,n.length):0,i=new Array(r),f=new Array(e),a;for(a=0;a<r;++a)i[a]=C(n[a],t[a]);for(;a<e;++a)f[a]=t[a];return function(u){for(a=0;a<r;++a)f[a]=i[a](u);return f}}function vn(n,t){var e=new Date;return n=+n,t=+t,function(r){return e.setTime(n*(1-r)+t*r),e}}function Sn(n,t){var e={},r={},i;(n===null||typeof n!="object")&&(n={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in n?e[i]=C(n[i],t[i]):r[i]=t[i];return function(f){for(i in e)r[i]=e[i](f);return r}}function C(n,t){var e=typeof t,r;return t==null||e==="boolean"?un(t):(e==="number"?I:e==="string"?(r=Y(t))?(t=r,Z):fn:t instanceof Y?Z:t instanceof Date?vn:xn(t)?kn:Array.isArray(t)?An:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Sn:I)(n,t)}function bn(n,t){return n=+n,t=+t,function(e){return Math.round(n*(1-e)+t*e)}}function jn(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function E(n,t){if((e=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var e,r=n.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+n.slice(e+1)]}function v(n){return n=E(Math.abs(n)),n?n[1]:NaN}function Pn(n,t){return function(e,r){for(var i=e.length,f=[],a=0,u=n[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),f.push(e.substring(i-=u,i+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return f.reverse().join(t)}}function zn(n){return function(t){return t.replace(/[0-9]/g,function(e){return n[+e]})}}var $n=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function D(n){if(!(t=$n.exec(n)))throw new Error("invalid format: "+n);var t;return new X({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}D.prototype=X.prototype;function X(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}X.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Fn(n){n:for(var t=n.length,e=1,r=-1,i;e<t;++e)switch(n[e]){case".":r=i=e;break;case"0":r===0&&(r=e),i=e;break;default:if(!+n[e])break n;r>0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(i+1):n}var nn;function Rn(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1],f=i-(nn=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return f===a?r:f>a?r+new Array(f-a+1).join("0"):f>0?r.slice(0,f)+"."+r.slice(f):"0."+new Array(1-f).join("0")+E(n,Math.max(0,t+f-1))[0]}function U(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const W={"%":(n,t)=>(n*100).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:jn,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>U(n*100,t),r:U,s:Rn,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function H(n){return n}var J=Array.prototype.map,K=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function En(n){var t=n.grouping===void 0||n.thousands===void 0?H:Pn(J.call(n.grouping,Number),n.thousands+""),e=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",i=n.decimal===void 0?".":n.decimal+"",f=n.numerals===void 0?H:zn(J.call(n.numerals,String)),a=n.percent===void 0?"%":n.percent+"",u=n.minus===void 0?"−":n.minus+"",c=n.nan===void 0?"NaN":n.nan+"";function o(h){h=D(h);var s=h.fill,p=h.align,y=h.sign,S=h.symbol,k=h.zero,b=h.width,T=h.comma,w=h.precision,B=h.trim,d=h.type;d==="n"?(T=!0,d="g"):W[d]||(w===void 0&&(w=12),B=!0,d="g"),(k||s==="0"&&p==="=")&&(k=!0,s="0",p="=");var en=S==="$"?e:S==="#"&&/[boxX]/.test(d)?"0"+d.toLowerCase():"",on=S==="$"?r:/[%p]/.test(d)?a:"",G=W[d],an=/[defgprs%]/.test(d);w=w===void 0?6:/[gprs]/.test(d)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function O(m){var N=en,g=on,x,V,j;if(d==="c")g=G(m)+g,m="";else{m=+m;var P=m<0||1/m<0;if(m=isNaN(m)?c:G(Math.abs(m),w),B&&(m=Fn(m)),P&&+m==0&&y!=="+"&&(P=!1),N=(P?y==="("?y:u:y==="-"||y==="("?"":y)+N,g=(d==="s"?K[8+nn/3]:"")+g+(P&&y==="("?")":""),an){for(x=-1,V=m.length;++x<V;)if(j=m.charCodeAt(x),48>j||j>57){g=(j===46?i+m.slice(x+1):m.slice(x))+g,m=m.slice(0,x);break}}}T&&!k&&(m=t(m,1/0));var z=N.length+m.length+g.length,M=z<b?new Array(b-z+1).join(s):"";switch(T&&k&&(m=t(M+m,M.length?b-g.length:1/0),M=""),p){case"<":m=N+m+g+M;break;case"=":m=N+M+m+g;break;case"^":m=M.slice(0,z=M.length>>1)+N+m+g+M.slice(z);break;default:m=M+N+m+g;break}return f(m)}return O.toString=function(){return h+""},O}function l(h,s){var p=o((h=D(h),h.type="f",h)),y=Math.max(-8,Math.min(8,Math.floor(v(s)/3)))*3,S=Math.pow(10,-y),k=K[8+y/3];return function(b){return p(S*b)+k}}return{format:o,formatPrefix:l}}var $,tn,rn;Dn({thousands:",",grouping:[3],currency:["$",""]});function Dn(n){return $=En(n),tn=$.format,rn=$.formatPrefix,$}function Tn(n){return Math.max(0,-v(Math.abs(n)))}function In(n,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(v(t)/3)))*3-v(Math.abs(n)))}function Ln(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,v(t)-v(n))+1}function qn(n){return function(){return n}}function Cn(n){return+n}var Q=[0,1];function A(n){return n}function q(n,t){return(t-=n=+n)?function(e){return(e-n)/t}:qn(isNaN(t)?NaN:.5)}function Xn(n,t){var e;return n>t&&(e=n,n=t,t=e),function(r){return Math.max(n,Math.min(t,r))}}function Bn(n,t,e){var r=n[0],i=n[1],f=t[0],a=t[1];return i<r?(r=q(i,r),f=e(a,f)):(r=q(r,i),f=e(f,a)),function(u){return f(r(u))}}function Gn(n,t,e){var r=Math.min(n.length,t.length)-1,i=new Array(r),f=new Array(r),a=-1;for(n[r]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=q(n[a],n[a+1]),f[a]=e(t[a],t[a+1]);return function(u){var c=gn(n,u,1,r)-1;return f[c](i[c](u))}}function On(n,t){return t.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function Vn(){var n=Q,t=Q,e=C,r,i,f,a=A,u,c,o;function l(){var s=Math.min(n.length,t.length);return a!==A&&(a=Xn(n[0],n[s-1])),u=s>2?Gn:Bn,c=o=null,h}function h(s){return s==null||isNaN(s=+s)?f:(c||(c=u(n.map(r),t,e)))(r(a(s)))}return h.invert=function(s){return a(i((o||(o=u(t,n.map(r),I)))(s)))},h.domain=function(s){return arguments.length?(n=Array.from(s,Cn),l()):n.slice()},h.range=function(s){return arguments.length?(t=Array.from(s),l()):t.slice()},h.rangeRound=function(s){return t=Array.from(s),e=bn,l()},h.clamp=function(s){return arguments.length?(a=s?!0:A,l()):a!==A},h.interpolate=function(s){return arguments.length?(e=s,l()):e},h.unknown=function(s){return arguments.length?(f=s,h):f},function(s,p){return r=s,i=p,l()}}function Yn(){return Vn()(A,A)}function Zn(n,t,e,r){var i=Nn(n,t,e),f;switch(r=D(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(t));return r.precision==null&&!isNaN(f=In(i,a))&&(r.precision=f),rn(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(f=Ln(i,Math.max(Math.abs(n),Math.abs(t))))&&(r.precision=f-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(f=Tn(i))&&(r.precision=f-(r.type==="%")*2);break}}return tn(r)}function Un(n){var t=n.domain;return n.ticks=function(e){var r=t();return wn(r[0],r[r.length-1],e??10)},n.tickFormat=function(e,r){var i=t();return Zn(i[0],i[i.length-1],e??10,r)},n.nice=function(e){e==null&&(e=10);var r=t(),i=0,f=r.length-1,a=r[i],u=r[f],c,o,l=10;for(u<a&&(o=a,a=u,u=o,o=i,i=f,f=o);l-- >0;){if(o=L(a,u,e),o===c)return r[i]=a,r[f]=u,t(r);if(o>0)a=Math.floor(a/o)*o,u=Math.ceil(u/o)*o;else if(o<0)a=Math.ceil(a*o)/o,u=Math.floor(u*o)/o;else break;c=o}return n},n}function Wn(){var n=Yn();return n.copy=function(){return On(n,Wn())},cn.apply(n,arguments),Un(n)}export{On as a,_ as b,Yn as c,Wn as l,Nn as t}; diff --git a/docs/assets/mindmap-definition-89ece3a3-4c37e8a6.js b/docs/assets/mindmap-definition-89ece3a3-cf3a3aea.js similarity index 99% rename from docs/assets/mindmap-definition-89ece3a3-4c37e8a6.js rename to docs/assets/mindmap-definition-89ece3a3-cf3a3aea.js index 5fad4d3c..8fab300f 100644 --- a/docs/assets/mindmap-definition-89ece3a3-4c37e8a6.js +++ b/docs/assets/mindmap-definition-89ece3a3-cf3a3aea.js @@ -1,4 +1,4 @@ -import{O as Ca,P as Vu,d as bp,c as nn,l as qr,h as ei,t as Ep,az as wp,aA as xp,aB as Tp}from"./index-b4f98efc.js";import{c as Cp}from"./createText-a49d2d2a-a6165332.js";var _u={exports:{}};(function(pe,fe){(function(ee,ce){pe.exports=ce()})(Ca,function(){function ee(t){"@babel/helpers - typeof";return ee=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ee(t)}function ce(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function H(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function O(t,e,r){return e&&H(t.prototype,e),r&&H(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function T(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function w(t,e){return S(t)||G(t,e)||U(t,e)||K()}function S(t){if(Array.isArray(t))return t}function G(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var a=[],n=!0,i=!1,s,o;try{for(r=r.call(t);!(n=(s=r.next()).done)&&(a.push(s.value),!(e&&a.length===e));n=!0);}catch(l){i=!0,o=l}finally{try{!n&&r.return!=null&&r.return()}finally{if(i)throw o}}return a}}function U(t,e){if(t){if(typeof t=="string")return P(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return P(t,e)}}function P(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=t[r];return a}function K(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +import{O as Ca,P as Vu,d as bp,c as nn,l as qr,h as ei,t as Ep,az as wp,aA as xp,aB as Tp}from"./index-0e08498d.js";import{c as Cp}from"./createText-a49d2d2a-b45cf165.js";var _u={exports:{}};(function(pe,fe){(function(ee,ce){pe.exports=ce()})(Ca,function(){function ee(t){"@babel/helpers - typeof";return ee=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ee(t)}function ce(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function H(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function O(t,e,r){return e&&H(t.prototype,e),r&&H(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function T(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function w(t,e){return S(t)||G(t,e)||U(t,e)||K()}function S(t){if(Array.isArray(t))return t}function G(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var a=[],n=!0,i=!1,s,o;try{for(r=r.call(t);!(n=(s=r.next()).done)&&(a.push(s.value),!(e&&a.length===e));n=!0);}catch(l){i=!0,o=l}finally{try{!n&&r.return!=null&&r.return()}finally{if(i)throw o}}return a}}function U(t,e){if(t){if(typeof t=="string")return P(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return P(t,e)}}function P(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=t[r];return a}function K(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var D=typeof window>"u"?null:window,V=D?D.navigator:null;D&&D.document;var _=ee(""),Q=ee({}),ne=ee(function(){}),oe=typeof HTMLElement>"u"?"undefined":ee(HTMLElement),J=function(e){return e&&e.instanceString&&Y(e.instanceString)?e.instanceString():null},j=function(e){return e!=null&&ee(e)==_},Y=function(e){return e!=null&&ee(e)===ne},te=function(e){return!de(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},L=function(e){return e!=null&&ee(e)===Q&&!te(e)&&e.constructor===Object},$=function(e){return e!=null&&ee(e)===Q},k=function(e){return e!=null&&ee(e)===ee(1)&&!isNaN(e)},q=function(e){return k(e)&&Math.floor(e)===e},he=function(e){if(oe!=="undefined")return e!=null&&e instanceof HTMLElement},de=function(e){return Ae(e)||Ne(e)},Ae=function(e){return J(e)==="collection"&&e._private.single},Ne=function(e){return J(e)==="collection"&&!e._private.single},_e=function(e){return J(e)==="core"},tt=function(e){return J(e)==="stylesheet"},ct=function(e){return J(e)==="event"},Pe=function(e){return e==null?!0:!!(e===""||e.match(/^\s+$/))},$e=function(e){return typeof HTMLElement>"u"?!1:e instanceof HTMLElement},Xe=function(e){return L(e)&&k(e.x1)&&k(e.x2)&&k(e.y1)&&k(e.y2)},rt=function(e){return $(e)&&Y(e.then)},lt=function(){return V&&V.userAgent.match(/msie|trident|edge/i)},nt=function(e,r){r||(r=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var i=[],s=0;s<arguments.length;s++)i.push(arguments[s]);return i.join("$")});var a=function n(){var i=this,s=arguments,o,l=r.apply(i,s),u=n.cache;return(o=u[l])||(o=u[l]=e.apply(i,s)),o};return a.cache={},a},je=nt(function(t){return t.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})}),pt=nt(function(t){return t.replace(/(-\w)/g,function(e){return e[1].toUpperCase()})}),Et=nt(function(t,e){return t+e[0].toUpperCase()+e.substring(1)},function(t,e){return t+"$"+e}),kt=function(e){return Pe(e)?e:e.charAt(0).toUpperCase()+e.substring(1)},vt="(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))",vr="rgb[a]?\\(("+vt+"[%]?)\\s*,\\s*("+vt+"[%]?)\\s*,\\s*("+vt+"[%]?)(?:\\s*,\\s*("+vt+"))?\\)",qt="rgb[a]?\\((?:"+vt+"[%]?)\\s*,\\s*(?:"+vt+"[%]?)\\s*,\\s*(?:"+vt+"[%]?)(?:\\s*,\\s*(?:"+vt+"))?\\)",on="hsl[a]?\\(("+vt+")\\s*,\\s*("+vt+"[%])\\s*,\\s*("+vt+"[%])(?:\\s*,\\s*("+vt+"))?\\)",Kr="hsl[a]?\\((?:"+vt+")\\s*,\\s*(?:"+vt+"[%])\\s*,\\s*(?:"+vt+"[%])(?:\\s*,\\s*(?:"+vt+"))?\\)",Da="\\#[0-9a-fA-F]{3}",jt="\\#[0-9a-fA-F]{6}",Ji=function(e,r){return e<r?-1:e>r?1:0},Ju=function(e,r){return-1*Ji(e,r)},Ue=Object.assign!=null?Object.assign.bind(Object):function(t){for(var e=arguments,r=1;r<e.length;r++){var a=e[r];if(a!=null)for(var n=Object.keys(a),i=0;i<n.length;i++){var s=n[i];t[s]=a[s]}}return t},ju=function(e){if(!(!(e.length===4||e.length===7)||e[0]!=="#")){var r=e.length===4,a,n,i,s=16;return r?(a=parseInt(e[1]+e[1],s),n=parseInt(e[2]+e[2],s),i=parseInt(e[3]+e[3],s)):(a=parseInt(e[1]+e[2],s),n=parseInt(e[3]+e[4],s),i=parseInt(e[5]+e[6],s)),[a,n,i]}},el=function(e){var r,a,n,i,s,o,l,u;function f(v,p,y){return y<0&&(y+=1),y>1&&(y-=1),y<1/6?v+(p-v)*6*y:y<1/2?p:y<2/3?v+(p-v)*(2/3-y)*6:v}var h=new RegExp("^"+on+"$").exec(e);if(h){if(a=parseInt(h[1]),a<0?a=(360- -1*a%360)%360:a>360&&(a=a%360),a/=360,n=parseFloat(h[2]),n<0||n>100||(n=n/100,i=parseFloat(h[3]),i<0||i>100)||(i=i/100,s=h[4],s!==void 0&&(s=parseFloat(s),s<0||s>1)))return;if(n===0)o=l=u=Math.round(i*255);else{var c=i<.5?i*(1+n):i+n-i*n,d=2*i-c;o=Math.round(255*f(d,c,a+1/3)),l=Math.round(255*f(d,c,a)),u=Math.round(255*f(d,c,a-1/3))}r=[o,l,u,s]}return r},tl=function(e){var r,a=new RegExp("^"+vr+"$").exec(e);if(a){r=[];for(var n=[],i=1;i<=3;i++){var s=a[i];if(s[s.length-1]==="%"&&(n[i]=!0),s=parseFloat(s),n[i]&&(s=s/100*255),s<0||s>255)return;r.push(Math.floor(s))}var o=n[1]||n[2]||n[3],l=n[1]&&n[2]&&n[3];if(o&&!l)return;var u=a[4];if(u!==void 0){if(u=parseFloat(u),u<0||u>1)return;r.push(u)}}return r},rl=function(e){return nl[e.toLowerCase()]},al=function(e){return(te(e)?e:null)||rl(e)||ju(e)||tl(e)||el(e)},nl={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},ji=function(e){for(var r=e.map,a=e.keys,n=a.length,i=0;i<n;i++){var s=a[i];if(L(s))throw Error("Tried to set map with object key");i<a.length-1?(r[s]==null&&(r[s]={}),r=r[s]):r[s]=e.value}},es=function(e){for(var r=e.map,a=e.keys,n=a.length,i=0;i<n;i++){var s=a[i];if(L(s))throw Error("Tried to get map with object key");if(r=r[s],r==null)return r}return r};function il(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Rr=il,Sa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Ca<"u"?Ca:typeof self<"u"?self:{};function sl(t,e){return e={exports:{}},t(e,e.exports),e.exports}var ol=typeof Sa=="object"&&Sa&&Sa.Object===Object&&Sa,ul=ol,ll=typeof self=="object"&&self&&self.Object===Object&&self,fl=ul||ll||Function("return this")(),un=fl,hl=function(){return un.Date.now()},ti=hl,cl=/\s/;function vl(t){for(var e=t.length;e--&&cl.test(t.charAt(e)););return e}var dl=vl,gl=/^\s+/;function pl(t){return t&&t.slice(0,dl(t)+1).replace(gl,"")}var yl=pl,ml=un.Symbol,Zr=ml,ts=Object.prototype,bl=ts.hasOwnProperty,El=ts.toString,La=Zr?Zr.toStringTag:void 0;function wl(t){var e=bl.call(t,La),r=t[La];try{t[La]=void 0;var a=!0}catch{}var n=El.call(t);return a&&(e?t[La]=r:delete t[La]),n}var xl=wl,Tl=Object.prototype,Cl=Tl.toString;function Dl(t){return Cl.call(t)}var Sl=Dl,Ll="[object Null]",Al="[object Undefined]",rs=Zr?Zr.toStringTag:void 0;function Ol(t){return t==null?t===void 0?Al:Ll:rs&&rs in Object(t)?xl(t):Sl(t)}var as=Ol;function Nl(t){return t!=null&&typeof t=="object"}var Ml=Nl,Il="[object Symbol]";function Rl(t){return typeof t=="symbol"||Ml(t)&&as(t)==Il}var Aa=Rl,ns=0/0,kl=/^[-+]0x[0-9a-f]+$/i,Pl=/^0b[01]+$/i,Bl=/^0o[0-7]+$/i,Fl=parseInt;function zl(t){if(typeof t=="number")return t;if(Aa(t))return ns;if(Rr(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Rr(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=yl(t);var r=Pl.test(t);return r||Bl.test(t)?Fl(t.slice(2),r?2:8):kl.test(t)?ns:+t}var is=zl,Gl="Expected a function",$l=Math.max,Vl=Math.min;function _l(t,e,r){var a,n,i,s,o,l,u=0,f=!1,h=!1,c=!0;if(typeof t!="function")throw new TypeError(Gl);e=is(e)||0,Rr(r)&&(f=!!r.leading,h="maxWait"in r,i=h?$l(is(r.maxWait)||0,e):i,c="trailing"in r?!!r.trailing:c);function d(A){var x=a,R=n;return a=n=void 0,u=A,s=t.apply(R,x),s}function v(A){return u=A,o=setTimeout(g,e),f?d(A):s}function p(A){var x=A-l,R=A-u,C=e-x;return h?Vl(C,i-R):C}function y(A){var x=A-l,R=A-u;return l===void 0||x>=e||x<0||h&&R>=i}function g(){var A=ti();if(y(A))return m(A);o=setTimeout(g,p(A))}function m(A){return o=void 0,c&&a?d(A):(a=n=void 0,s)}function b(){o!==void 0&&clearTimeout(o),u=0,a=l=n=o=void 0}function E(){return o===void 0?s:m(ti())}function M(){var A=ti(),x=y(A);if(a=arguments,n=this,l=A,x){if(o===void 0)return v(l);if(h)return clearTimeout(o),o=setTimeout(g,e),d(l)}return o===void 0&&(o=setTimeout(g,e)),s}return M.cancel=b,M.flush=E,M}var ln=_l,ri=D?D.performance:null,ss=ri&&ri.now?function(){return ri.now()}:function(){return Date.now()},Ul=function(){if(D){if(D.requestAnimationFrame)return function(t){D.requestAnimationFrame(t)};if(D.mozRequestAnimationFrame)return function(t){D.mozRequestAnimationFrame(t)};if(D.webkitRequestAnimationFrame)return function(t){D.webkitRequestAnimationFrame(t)};if(D.msRequestAnimationFrame)return function(t){D.msRequestAnimationFrame(t)}}return function(t){t&&setTimeout(function(){t(ss())},1e3/60)}}(),fn=function(e){return Ul(e)},dr=ss,Qr=9261,os=65599,Oa=5381,us=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qr,a=r,n;n=e.next(),!n.done;)a=a*os+n.value|0;return a},Na=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qr;return r*os+e|0},Ma=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Oa;return(r<<5)+r+e|0},Yl=function(e,r){return e*2097152+r},Er=function(e){return e[0]*2097152+e[1]},hn=function(e,r){return[Na(e[0],r[0]),Ma(e[1],r[1])]},Hl=function(e,r){var a={value:0,done:!1},n=0,i=e.length,s={next:function(){return n<i?a.value=e[n++]:a.done=!0,a}};return us(s,r)},kr=function(e,r){var a={value:0,done:!1},n=0,i=e.length,s={next:function(){return n<i?a.value=e.charCodeAt(n++):a.done=!0,a}};return us(s,r)},ls=function(){return Xl(arguments)},Xl=function(e){for(var r,a=0;a<e.length;a++){var n=e[a];a===0?r=kr(n):r=kr(n,r)}return r},fs=!0,ql=console.warn!=null,Wl=console.trace!=null,ai=Number.MAX_SAFE_INTEGER||9007199254740991,hs=function(){return!0},cn=function(){return!1},cs=function(){return 0},ni=function(){},xt=function(e){throw new Error(e)},vs=function(e){if(e!==void 0)fs=!!e;else return fs},ft=function(e){vs()&&(ql?console.warn(e):(console.log(e),Wl&&console.trace()))},Kl=function(e){return Ue({},e)},or=function(e){return e==null?e:te(e)?e.slice():L(e)?Kl(e):e},Zl=function(e){return e.slice()},ds=function(e,r){for(r=e="";e++<36;r+=e*51&52?(e^15?8^Math.random()*(e^20?16:4):4).toString(16):"-");return r},Ql={},gs=function(){return Ql},Lt=function(e){var r=Object.keys(e);return function(a){for(var n={},i=0;i<r.length;i++){var s=r[i],o=a==null?void 0:a[s];n[s]=o===void 0?e[s]:o}return n}},wr=function(e,r,a){for(var n=e.length-1;n>=0&&!(e[n]===r&&(e.splice(n,1),a));n--);},ii=function(e){e.splice(0,e.length)},Jl=function(e,r){for(var a=0;a<r.length;a++){var n=r[a];e.push(n)}},er=function(e,r,a){return a&&(r=Et(a,r)),e[r]},xr=function(e,r,a,n){a&&(r=Et(a,r)),e[r]=n},jl=function(){function t(){ce(this,t),this._obj={}}return O(t,[{key:"set",value:function(r,a){return this._obj[r]=a,this}},{key:"delete",value:function(r){return this._obj[r]=void 0,this}},{key:"clear",value:function(){this._obj={}}},{key:"has",value:function(r){return this._obj[r]!==void 0}},{key:"get",value:function(r){return this._obj[r]}}]),t}(),ur=typeof Map<"u"?Map:jl,ef="undefined",tf=function(){function t(e){if(ce(this,t),this._obj=Object.create(null),this.size=0,e!=null){var r;e.instanceString!=null&&e.instanceString()===this.instanceString()?r=e.toArray():r=e;for(var a=0;a<r.length;a++)this.add(r[a])}}return O(t,[{key:"instanceString",value:function(){return"set"}},{key:"add",value:function(r){var a=this._obj;a[r]!==1&&(a[r]=1,this.size++)}},{key:"delete",value:function(r){var a=this._obj;a[r]===1&&(a[r]=0,this.size--)}},{key:"clear",value:function(){this._obj=Object.create(null)}},{key:"has",value:function(r){return this._obj[r]===1}},{key:"toArray",value:function(){var r=this;return Object.keys(this._obj).filter(function(a){return r.has(a)})}},{key:"forEach",value:function(r,a){return this.toArray().forEach(r,a)}}]),t}(),Jr=(typeof Set>"u"?"undefined":ee(Set))!==ef?Set:tf,vn=function(e,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||r===void 0||!_e(e)){xt("An element must have a core reference and parameters set");return}var n=r.group;if(n==null&&(r.data&&r.data.source!=null&&r.data.target!=null?n="edges":n="nodes"),n!=="nodes"&&n!=="edges"){xt("An element must be of type `nodes` or `edges`; you specified `"+n+"`");return}this.length=1,this[0]=this;var i=this._private={cy:e,single:!0,data:r.data||{},position:r.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:n,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!r.selected,selectable:r.selectable===void 0?!0:!!r.selectable,locked:!!r.locked,grabbed:!1,grabbable:r.grabbable===void 0?!0:!!r.grabbable,pannable:r.pannable===void 0?n==="edges":!!r.pannable,active:!1,classes:new Jr,animation:{current:[],queue:[]},rscratch:{},scratch:r.scratch||{},edges:[],children:[],parent:r.parent&&r.parent.isNode()?r.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(i.position.x==null&&(i.position.x=0),i.position.y==null&&(i.position.y=0),r.renderedPosition){var s=r.renderedPosition,o=e.pan(),l=e.zoom();i.position={x:(s.x-o.x)/l,y:(s.y-o.y)/l}}var u=[];te(r.classes)?u=r.classes:j(r.classes)&&(u=r.classes.split(/\s+/));for(var f=0,h=u.length;f<h;f++){var c=u[f];!c||c===""||i.classes.add(c)}this.createEmitter();var d=r.style||r.css;d&&(ft("Setting a `style` bypass at element creation should be done only when absolutely necessary. Try to use the stylesheet instead."),this.style(d)),(a===void 0||a)&&this.restore()},ps=function(e){return e={bfs:e.bfs||!e.dfs,dfs:e.dfs||!e.bfs},function(a,n,i){var s;L(a)&&!de(a)&&(s=a,a=s.roots||s.root,n=s.visit,i=s.directed),i=arguments.length===2&&!Y(n)?n:i,n=Y(n)?n:function(){};for(var o=this._private.cy,l=a=j(a)?this.filter(a):a,u=[],f=[],h={},c={},d={},v=0,p,y=this.byGroup(),g=y.nodes,m=y.edges,b=0;b<l.length;b++){var E=l[b],M=E.id();E.isNode()&&(u.unshift(E),e.bfs&&(d[M]=!0,f.push(E)),c[M]=0)}for(var A=function(){var X=e.bfs?u.shift():u.pop(),B=X.id();if(e.dfs){if(d[B])return"continue";d[B]=!0,f.push(X)}var re=c[B],W=h[B],Z=W!=null?W.source():null,ie=W!=null?W.target():null,ue=W==null?void 0:X.same(Z)?ie[0]:Z[0],ge=void 0;if(ge=n(X,W,ue,v++,re),ge===!0)return p=X,"break";if(ge===!1)return"break";for(var se=X.connectedEdges().filter(function(ye){return(!i||ye.source().same(X))&&m.has(ye)}),ve=0;ve<se.length;ve++){var we=se[ve],Te=we.connectedNodes().filter(function(ye){return!ye.same(X)&&g.has(ye)}),Ee=Te.id();Te.length!==0&&!d[Ee]&&(Te=Te[0],u.push(Te),e.bfs&&(d[Ee]=!0,f.push(Te)),h[Ee]=we,c[Ee]=c[B]+1)}};u.length!==0;){var x=A();if(x!=="continue"&&x==="break")break}for(var R=o.collection(),C=0;C<f.length;C++){var F=f[C],z=h[F.id()];z!=null&&R.push(z),R.push(F)}return{path:o.collection(R),found:o.collection(p)}}},Ia={breadthFirstSearch:ps({bfs:!0}),depthFirstSearch:ps({dfs:!0})};Ia.bfs=Ia.breadthFirstSearch,Ia.dfs=Ia.depthFirstSearch;var rf=sl(function(t,e){(function(){var r,a,n,i,s,o,l,u,f,h,c,d,v,p,y;n=Math.floor,h=Math.min,a=function(g,m){return g<m?-1:g>m?1:0},f=function(g,m,b,E,M){var A;if(b==null&&(b=0),M==null&&(M=a),b<0)throw new Error("lo must be non-negative");for(E==null&&(E=g.length);b<E;)A=n((b+E)/2),M(m,g[A])<0?E=A:b=A+1;return[].splice.apply(g,[b,b-b].concat(m)),m},o=function(g,m,b){return b==null&&(b=a),g.push(m),p(g,0,g.length-1,b)},s=function(g,m){var b,E;return m==null&&(m=a),b=g.pop(),g.length?(E=g[0],g[0]=b,y(g,0,m)):E=b,E},u=function(g,m,b){var E;return b==null&&(b=a),E=g[0],g[0]=m,y(g,0,b),E},l=function(g,m,b){var E;return b==null&&(b=a),g.length&&b(g[0],m)<0&&(E=[g[0],m],m=E[0],g[0]=E[1],y(g,0,b)),m},i=function(g,m){var b,E,M,A,x,R;for(m==null&&(m=a),A=function(){R=[];for(var C=0,F=n(g.length/2);0<=F?C<F:C>F;0<=F?C++:C--)R.push(C);return R}.apply(this).reverse(),x=[],E=0,M=A.length;E<M;E++)b=A[E],x.push(y(g,b,m));return x},v=function(g,m,b){var E;if(b==null&&(b=a),E=g.indexOf(m),E!==-1)return p(g,0,E,b),y(g,E,b)},c=function(g,m,b){var E,M,A,x,R;if(b==null&&(b=a),M=g.slice(0,m),!M.length)return M;for(i(M,b),R=g.slice(m),A=0,x=R.length;A<x;A++)E=R[A],l(M,E,b);return M.sort(b).reverse()},d=function(g,m,b){var E,M,A,x,R,C,F,z,I;if(b==null&&(b=a),m*10<=g.length){if(A=g.slice(0,m).sort(b),!A.length)return A;for(M=A[A.length-1],F=g.slice(m),x=0,C=F.length;x<C;x++)E=F[x],b(E,M)<0&&(f(A,E,0,null,b),A.pop(),M=A[A.length-1]);return A}for(i(g,b),I=[],R=0,z=h(m,g.length);0<=z?R<z:R>z;0<=z?++R:--R)I.push(s(g,b));return I},p=function(g,m,b,E){var M,A,x;for(E==null&&(E=a),M=g[b];b>m;){if(x=b-1>>1,A=g[x],E(M,A)<0){g[b]=A,b=x;continue}break}return g[b]=M},y=function(g,m,b){var E,M,A,x,R;for(b==null&&(b=a),M=g.length,R=m,A=g[m],E=2*m+1;E<M;)x=E+1,x<M&&!(b(g[E],g[x])<0)&&(E=x),g[m]=g[E],m=E,E=2*m+1;return g[m]=A,p(g,R,m,b)},r=function(){g.push=o,g.pop=s,g.replace=u,g.pushpop=l,g.heapify=i,g.updateItem=v,g.nlargest=c,g.nsmallest=d;function g(m){this.cmp=m??a,this.nodes=[]}return g.prototype.push=function(m){return o(this.nodes,m,this.cmp)},g.prototype.pop=function(){return s(this.nodes,this.cmp)},g.prototype.peek=function(){return this.nodes[0]},g.prototype.contains=function(m){return this.nodes.indexOf(m)!==-1},g.prototype.replace=function(m){return u(this.nodes,m,this.cmp)},g.prototype.pushpop=function(m){return l(this.nodes,m,this.cmp)},g.prototype.heapify=function(){return i(this.nodes,this.cmp)},g.prototype.updateItem=function(m){return v(this.nodes,m,this.cmp)},g.prototype.clear=function(){return this.nodes=[]},g.prototype.empty=function(){return this.nodes.length===0},g.prototype.size=function(){return this.nodes.length},g.prototype.clone=function(){var m;return m=new g,m.nodes=this.nodes.slice(0),m},g.prototype.toArray=function(){return this.nodes.slice(0)},g.prototype.insert=g.prototype.push,g.prototype.top=g.prototype.peek,g.prototype.front=g.prototype.peek,g.prototype.has=g.prototype.contains,g.prototype.copy=g.prototype.clone,g}(),function(g,m){return t.exports=m()}(this,function(){return r})}).call(Sa)}),Ra=rf,af=Lt({root:null,weight:function(e){return 1},directed:!1}),nf={dijkstra:function(e){if(!L(e)){var r=arguments;e={root:r[0],weight:r[1],directed:r[2]}}var a=af(e),n=a.root,i=a.weight,s=a.directed,o=this,l=i,u=j(n)?this.filter(n)[0]:n[0],f={},h={},c={},d=this.byGroup(),v=d.nodes,p=d.edges;p.unmergeBy(function(re){return re.isLoop()});for(var y=function(W){return f[W.id()]},g=function(W,Z){f[W.id()]=Z,m.updateItem(W)},m=new Ra(function(re,W){return y(re)-y(W)}),b=0;b<v.length;b++){var E=v[b];f[E.id()]=E.same(u)?0:1/0,m.push(E)}for(var M=function(W,Z){for(var ie=(s?W.edgesTo(Z):W.edgesWith(Z)).intersect(p),ue=1/0,ge,se=0;se<ie.length;se++){var ve=ie[se],we=l(ve);(we<ue||!ge)&&(ue=we,ge=ve)}return{edge:ge,dist:ue}};m.size()>0;){var A=m.pop(),x=y(A),R=A.id();if(c[R]=x,x!==1/0)for(var C=A.neighborhood().intersect(v),F=0;F<C.length;F++){var z=C[F],I=z.id(),X=M(A,z),B=x+X.dist;B<y(z)&&(g(z,B),h[I]={node:A,edge:X.edge})}}return{distanceTo:function(W){var Z=j(W)?v.filter(W)[0]:W[0];return c[Z.id()]},pathTo:function(W){var Z=j(W)?v.filter(W)[0]:W[0],ie=[],ue=Z,ge=ue.id();if(Z.length>0)for(ie.unshift(Z);h[ge];){var se=h[ge];ie.unshift(se.edge),ie.unshift(se.node),ue=se.node,ge=ue.id()}return o.spawn(ie)}}}},sf={kruskal:function(e){e=e||function(b){return 1};for(var r=this.byGroup(),a=r.nodes,n=r.edges,i=a.length,s=new Array(i),o=a,l=function(E){for(var M=0;M<s.length;M++){var A=s[M];if(A.has(E))return M}},u=0;u<i;u++)s[u]=this.spawn(a[u]);for(var f=n.sort(function(b,E){return e(b)-e(E)}),h=0;h<f.length;h++){var c=f[h],d=c.source()[0],v=c.target()[0],p=l(d),y=l(v),g=s[p],m=s[y];p!==y&&(o.merge(c),g.merge(m),s.splice(y,1))}return o}},of=Lt({root:null,goal:null,weight:function(e){return 1},heuristic:function(e){return 0},directed:!1}),uf={aStar:function(e){var r=this.cy(),a=of(e),n=a.root,i=a.goal,s=a.heuristic,o=a.directed,l=a.weight;n=r.collection(n)[0],i=r.collection(i)[0];var u=n.id(),f=i.id(),h={},c={},d={},v=new Ra(function(ge,se){return c[ge.id()]-c[se.id()]}),p=new Jr,y={},g={},m=function(se,ve){v.push(se),p.add(ve)},b,E,M=function(){b=v.pop(),E=b.id(),p.delete(E)},A=function(se){return p.has(se)};m(n,u),h[u]=0,c[u]=s(n);for(var x=0;v.size()>0;){if(M(),x++,E===f){for(var R=[],C=i,F=f,z=g[F];R.unshift(C),z!=null&&R.unshift(z),C=y[F],C!=null;)F=C.id(),z=g[F];return{found:!0,distance:h[E],path:this.spawn(R),steps:x}}d[E]=!0;for(var I=b._private.edges,X=0;X<I.length;X++){var B=I[X];if(this.hasElementWithId(B.id())&&!(o&&B.data("source")!==E)){var re=B.source(),W=B.target(),Z=re.id()!==E?re:W,ie=Z.id();if(this.hasElementWithId(ie)&&!d[ie]){var ue=h[E]+l(B);if(!A(ie)){h[ie]=ue,c[ie]=ue+s(Z),m(Z,ie),y[ie]=b,g[ie]=B;continue}ue<h[ie]&&(h[ie]=ue,c[ie]=ue+s(Z),y[ie]=b,g[ie]=B)}}}}return{found:!1,distance:void 0,path:void 0,steps:x}}},lf=Lt({weight:function(e){return 1},directed:!1}),ff={floydWarshall:function(e){for(var r=this.cy(),a=lf(e),n=a.weight,i=a.directed,s=n,o=this.byGroup(),l=o.nodes,u=o.edges,f=l.length,h=f*f,c=function(we){return l.indexOf(we)},d=function(we){return l[we]},v=new Array(h),p=0;p<h;p++){var y=p%f,g=(p-y)/f;g===y?v[p]=0:v[p]=1/0}for(var m=new Array(h),b=new Array(h),E=0;E<u.length;E++){var M=u[E],A=M.source()[0],x=M.target()[0];if(A!==x){var R=c(A),C=c(x),F=R*f+C,z=s(M);if(v[F]>z&&(v[F]=z,m[F]=C,b[F]=M),!i){var I=C*f+R;!i&&v[I]>z&&(v[I]=z,m[I]=R,b[I]=M)}}}for(var X=0;X<f;X++)for(var B=0;B<f;B++)for(var re=B*f+X,W=0;W<f;W++){var Z=B*f+W,ie=X*f+W;v[re]+v[ie]<v[Z]&&(v[Z]=v[re]+v[ie],m[Z]=m[re])}var ue=function(we){return(j(we)?r.filter(we):we)[0]},ge=function(we){return c(ue(we))},se={distance:function(we,Te){var Ee=ge(we),ye=ge(Te);return v[Ee*f+ye]},path:function(we,Te){var Ee=ge(we),ye=ge(Te),ae=d(Ee);if(Ee===ye)return ae.collection();if(m[Ee*f+ye]==null)return r.collection();var xe=r.collection(),Ce=Ee,Oe;for(xe.merge(ae);Ee!==ye;)Ce=Ee,Ee=m[Ee*f+ye],Oe=b[Ce*f+Ee],xe.merge(Oe),xe.merge(d(Ee));return xe}};return se}},hf=Lt({weight:function(e){return 1},directed:!1,root:null}),cf={bellmanFord:function(e){var r=this,a=hf(e),n=a.weight,i=a.directed,s=a.root,o=n,l=this,u=this.cy(),f=this.byGroup(),h=f.edges,c=f.nodes,d=c.length,v=new ur,p=!1,y=[];s=u.collection(s)[0],h.unmergeBy(function(Fe){return Fe.isLoop()});for(var g=h.length,m=function(ke){var Ge=v.get(ke.id());return Ge||(Ge={},v.set(ke.id(),Ge)),Ge},b=function(ke){return(j(ke)?u.$(ke):ke)[0]},E=function(ke){return m(b(ke)).dist},M=function(ke){for(var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:s,et=b(ke),We=[],Ye=et;;){if(Ye==null)return r.spawn();var Se=m(Ye),N=Se.edge,le=Se.pred;if(We.unshift(Ye[0]),Ye.same(Ge)&&We.length>0)break;N!=null&&We.unshift(N),Ye=le}return l.spawn(We)},A=0;A<d;A++){var x=c[A],R=m(x);x.same(s)?R.dist=0:R.dist=1/0,R.pred=null,R.edge=null}for(var C=!1,F=function(ke,Ge,et,We,Ye,Se){var N=We.dist+Se;N<Ye.dist&&!et.same(We.edge)&&(Ye.dist=N,Ye.pred=ke,Ye.edge=et,C=!0)},z=1;z<d;z++){C=!1;for(var I=0;I<g;I++){var X=h[I],B=X.source(),re=X.target(),W=o(X),Z=m(B),ie=m(re);F(B,re,X,Z,ie,W),i||F(re,B,X,ie,Z,W)}if(!C)break}if(C)for(var ue=[],ge=0;ge<g;ge++){var se=h[ge],ve=se.source(),we=se.target(),Te=o(se),Ee=m(ve).dist,ye=m(we).dist;if(Ee+Te<ye||!i&&ye+Te<Ee)if(p||(ft("Graph contains a negative weight cycle for Bellman-Ford"),p=!0),e.findNegativeWeightCycles!==!1){var ae=[];Ee+Te<ye&&ae.push(ve),!i&&ye+Te<Ee&&ae.push(we);for(var xe=ae.length,Ce=0;Ce<xe;Ce++){var Oe=ae[Ce],Ie=[Oe];Ie.push(m(Oe).edge);for(var He=m(Oe).pred;Ie.indexOf(He)===-1;)Ie.push(He),Ie.push(m(He).edge),He=m(He).pred;Ie=Ie.slice(Ie.indexOf(He));for(var qe=Ie[0].id(),Re=0,Me=2;Me<Ie.length;Me+=2)Ie[Me].id()<qe&&(qe=Ie[Me].id(),Re=Me);Ie=Ie.slice(Re).concat(Ie.slice(0,Re)),Ie.push(Ie[0]);var Ve=Ie.map(function(Fe){return Fe.id()}).join(",");ue.indexOf(Ve)===-1&&(y.push(l.spawn(Ie)),ue.push(Ve))}}else break}return{distanceTo:E,pathTo:M,hasNegativeWeightCycle:p,negativeWeightCycles:y}}},vf=Math.sqrt(2),df=function(e,r,a){a.length===0&&xt("Karger-Stein must be run on a connected (sub)graph");for(var n=a[e],i=n[1],s=n[2],o=r[i],l=r[s],u=a,f=u.length-1;f>=0;f--){var h=u[f],c=h[1],d=h[2];(r[c]===o&&r[d]===l||r[c]===l&&r[d]===o)&&u.splice(f,1)}for(var v=0;v<u.length;v++){var p=u[v];p[1]===l?(u[v]=p.slice(),u[v][1]=o):p[2]===l&&(u[v]=p.slice(),u[v][2]=o)}for(var y=0;y<r.length;y++)r[y]===l&&(r[y]=o);return u},si=function(e,r,a,n){for(;a>n;){var i=Math.floor(Math.random()*r.length);r=df(i,e,r),a--}return r},gf={kargerStein:function(){var e=this,r=this.byGroup(),a=r.nodes,n=r.edges;n.unmergeBy(function(ie){return ie.isLoop()});var i=a.length,s=n.length,o=Math.ceil(Math.pow(Math.log(i)/Math.LN2,2)),l=Math.floor(i/vf);if(i<2){xt("At least 2 nodes are required for Karger-Stein algorithm");return}for(var u=[],f=0;f<s;f++){var h=n[f];u.push([f,a.indexOf(h.source()),a.indexOf(h.target())])}for(var c=1/0,d=[],v=new Array(i),p=new Array(i),y=new Array(i),g=function(ue,ge){for(var se=0;se<i;se++)ge[se]=ue[se]},m=0;m<=o;m++){for(var b=0;b<i;b++)p[b]=b;var E=si(p,u.slice(),i,l),M=E.slice();g(p,y);var A=si(p,E,l,2),x=si(y,M,l,2);A.length<=x.length&&A.length<c?(c=A.length,d=A,g(p,v)):x.length<=A.length&&x.length<c&&(c=x.length,d=x,g(y,v))}for(var R=this.spawn(d.map(function(ie){return n[ie[0]]})),C=this.spawn(),F=this.spawn(),z=v[0],I=0;I<v.length;I++){var X=v[I],B=a[I];X===z?C.merge(B):F.merge(B)}var re=function(ue){var ge=e.spawn();return ue.forEach(function(se){ge.merge(se),se.connectedEdges().forEach(function(ve){e.contains(ve)&&!R.contains(ve)&&ge.merge(ve)})}),ge},W=[re(C),re(F)],Z={cut:R,components:W,partition1:C,partition2:F};return Z}},pf=function(e){return{x:e.x,y:e.y}},dn=function(e,r,a){return{x:e.x*r+a.x,y:e.y*r+a.y}},ys=function(e,r,a){return{x:(e.x-a.x)/r,y:(e.y-a.y)/r}},jr=function(e){return{x:e[0],y:e[1]}},yf=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=1/0,i=r;i<a;i++){var s=e[i];isFinite(s)&&(n=Math.min(s,n))}return n},mf=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=-1/0,i=r;i<a;i++){var s=e[i];isFinite(s)&&(n=Math.max(s,n))}return n},bf=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=0,i=0,s=r;s<a;s++){var o=e[s];isFinite(o)&&(n+=o,i++)}return n/i},Ef=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;n?e=e.slice(r,a):(a<e.length&&e.splice(a,e.length-a),r>0&&e.splice(0,r));for(var o=0,l=e.length-1;l>=0;l--){var u=e[l];s?isFinite(u)||(e[l]=-1/0,o++):e.splice(l,1)}i&&e.sort(function(c,d){return c-d});var f=e.length,h=Math.floor(f/2);return f%2!==0?e[h+1+o]:(e[h-1+o]+e[h+o])/2},wf=function(e){return Math.PI*e/180},gn=function(e,r){return Math.atan2(r,e)-Math.PI/2},oi=Math.log2||function(t){return Math.log(t)/Math.log(2)},ms=function(e){return e>0?1:e<0?-1:0},Pr=function(e,r){return Math.sqrt(Br(e,r))},Br=function(e,r){var a=r.x-e.x,n=r.y-e.y;return a*a+n*n},xf=function(e){for(var r=e.length,a=0,n=0;n<r;n++)a+=e[n];for(var i=0;i<r;i++)e[i]=e[i]/a;return e},St=function(e,r,a,n){return(1-n)*(1-n)*e+2*(1-n)*n*r+n*n*a},ea=function(e,r,a,n){return{x:St(e.x,r.x,a.x,n),y:St(e.y,r.y,a.y,n)}},Tf=function(e,r,a,n){var i={x:r.x-e.x,y:r.y-e.y},s=Pr(e,r),o={x:i.x/s,y:i.y/s};return a=a??0,n=n??a*s,{x:e.x+o.x*n,y:e.y+o.y*n}},ka=function(e,r,a){return Math.max(e,Math.min(a,r))},Ut=function(e){if(e==null)return{x1:1/0,y1:1/0,x2:-1/0,y2:-1/0,w:0,h:0};if(e.x1!=null&&e.y1!=null){if(e.x2!=null&&e.y2!=null&&e.x2>=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(e.w!=null&&e.h!=null&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},Cf=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},Df=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},Sf=function(e,r){e.x1=Math.min(e.x1,r.x1),e.x2=Math.max(e.x2,r.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,r.y1),e.y2=Math.max(e.y2,r.y2),e.h=e.y2-e.y1},Lf=function(e,r,a){e.x1=Math.min(e.x1,r),e.x2=Math.max(e.x2,r),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,a),e.y2=Math.max(e.y2,a),e.h=e.y2-e.y1},pn=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=r,e.x2+=r,e.y1-=r,e.y2+=r,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},ui=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],a,n,i,s;if(r.length===1)a=n=i=s=r[0];else if(r.length===2)a=i=r[0],s=n=r[1];else if(r.length===4){var o=w(r,4);a=o[0],n=o[1],i=o[2],s=o[3]}return e.x1-=s,e.x2+=n,e.y1-=a,e.y2+=i,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},bs=function(e,r){e.x1=r.x1,e.y1=r.y1,e.x2=r.x2,e.y2=r.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},li=function(e,r){return!(e.x1>r.x2||r.x1>e.x2||e.x2<r.x1||r.x2<e.x1||e.y2<r.y1||r.y2<e.y1||e.y1>r.y2||r.y1>e.y2)},ta=function(e,r,a){return e.x1<=r&&r<=e.x2&&e.y1<=a&&a<=e.y2},Af=function(e,r){return ta(e,r.x,r.y)},Es=function(e,r){return ta(e,r.x1,r.y1)&&ta(e,r.x2,r.y2)},ws=function(e,r,a,n,i,s,o){var l=Fa(i,s),u=i/2,f=s/2,h;{var c=a-u+l-o,d=n-f-o,v=a+u-l+o,p=d;if(h=Tr(e,r,a,n,c,d,v,p,!1),h.length>0)return h}{var y=a+u+o,g=n-f+l-o,m=y,b=n+f-l+o;if(h=Tr(e,r,a,n,y,g,m,b,!1),h.length>0)return h}{var E=a-u+l-o,M=n+f+o,A=a+u-l+o,x=M;if(h=Tr(e,r,a,n,E,M,A,x,!1),h.length>0)return h}{var R=a-u-o,C=n-f+l-o,F=R,z=n+f-l+o;if(h=Tr(e,r,a,n,R,C,F,z,!1),h.length>0)return h}var I;{var X=a-u+l,B=n-f+l;if(I=Pa(e,r,a,n,X,B,l+o),I.length>0&&I[0]<=X&&I[1]<=B)return[I[0],I[1]]}{var re=a+u-l,W=n-f+l;if(I=Pa(e,r,a,n,re,W,l+o),I.length>0&&I[0]>=re&&I[1]<=W)return[I[0],I[1]]}{var Z=a+u-l,ie=n+f-l;if(I=Pa(e,r,a,n,Z,ie,l+o),I.length>0&&I[0]>=Z&&I[1]>=ie)return[I[0],I[1]]}{var ue=a-u+l,ge=n+f-l;if(I=Pa(e,r,a,n,ue,ge,l+o),I.length>0&&I[0]<=ue&&I[1]>=ge)return[I[0],I[1]]}return[]},Of=function(e,r,a,n,i,s,o){var l=o,u=Math.min(a,i),f=Math.max(a,i),h=Math.min(n,s),c=Math.max(n,s);return u-l<=e&&e<=f+l&&h-l<=r&&r<=c+l},Nf=function(e,r,a,n,i,s,o,l,u){var f={x1:Math.min(a,o,i)-u,x2:Math.max(a,o,i)+u,y1:Math.min(n,l,s)-u,y2:Math.max(n,l,s)+u};return!(e<f.x1||e>f.x2||r<f.y1||r>f.y2)},Mf=function(e,r,a,n){a-=n;var i=r*r-4*e*a;if(i<0)return[];var s=Math.sqrt(i),o=2*e,l=(-r+s)/o,u=(-r-s)/o;return[l,u]},If=function(e,r,a,n,i){var s=1e-5;e===0&&(e=s),r/=e,a/=e,n/=e;var o,l,u,f,h,c,d,v;if(l=(3*a-r*r)/9,u=-(27*n)+r*(9*a-2*(r*r)),u/=54,o=l*l*l+u*u,i[1]=0,d=r/3,o>0){h=u+Math.sqrt(o),h=h<0?-Math.pow(-h,1/3):Math.pow(h,1/3),c=u-Math.sqrt(o),c=c<0?-Math.pow(-c,1/3):Math.pow(c,1/3),i[0]=-d+h+c,d+=(h+c)/2,i[4]=i[2]=-d,d=Math.sqrt(3)*(-c+h)/2,i[3]=d,i[5]=-d;return}if(i[5]=i[3]=0,o===0){v=u<0?-Math.pow(-u,1/3):Math.pow(u,1/3),i[0]=-d+2*v,i[4]=i[2]=-(v+d);return}l=-l,f=l*l*l,f=Math.acos(u/Math.sqrt(f)),v=2*Math.sqrt(l),i[0]=-d+v*Math.cos(f/3),i[2]=-d+v*Math.cos((f+2*Math.PI)/3),i[4]=-d+v*Math.cos((f+4*Math.PI)/3)},Rf=function(e,r,a,n,i,s,o,l){var u=1*a*a-4*a*i+2*a*o+4*i*i-4*i*o+o*o+n*n-4*n*s+2*n*l+4*s*s-4*s*l+l*l,f=1*9*a*i-3*a*a-3*a*o-6*i*i+3*i*o+9*n*s-3*n*n-3*n*l-6*s*s+3*s*l,h=1*3*a*a-6*a*i+a*o-a*e+2*i*i+2*i*e-o*e+3*n*n-6*n*s+n*l-n*r+2*s*s+2*s*r-l*r,c=1*a*i-a*a+a*e-i*e+n*s-n*n+n*r-s*r,d=[];If(u,f,h,c,d);for(var v=1e-7,p=[],y=0;y<6;y+=2)Math.abs(d[y+1])<v&&d[y]>=0&&d[y]<=1&&p.push(d[y]);p.push(1),p.push(0);for(var g=-1,m,b,E,M=0;M<p.length;M++)m=Math.pow(1-p[M],2)*a+2*(1-p[M])*p[M]*i+p[M]*p[M]*o,b=Math.pow(1-p[M],2)*n+2*(1-p[M])*p[M]*s+p[M]*p[M]*l,E=Math.pow(m-e,2)+Math.pow(b-r,2),g>=0?E<g&&(g=E):g=E;return g},kf=function(e,r,a,n,i,s){var o=[e-a,r-n],l=[i-a,s-n],u=l[0]*l[0]+l[1]*l[1],f=o[0]*o[0]+o[1]*o[1],h=o[0]*l[0]+o[1]*l[1],c=h*h/u;return h<0?f:c>u?(e-i)*(e-i)+(r-s)*(r-s):f-c},Yt=function(e,r,a){for(var n,i,s,o,l,u=0,f=0;f<a.length/2;f++)if(n=a[f*2],i=a[f*2+1],f+1<a.length/2?(s=a[(f+1)*2],o=a[(f+1)*2+1]):(s=a[(f+1-a.length/2)*2],o=a[(f+1-a.length/2)*2+1]),!(n==e&&s==e))if(n>=e&&e>=s||n<=e&&e<=s)l=(e-n)/(s-n)*(o-i)+i,l>r&&u++;else continue;return u%2!==0},gr=function(e,r,a,n,i,s,o,l,u){var f=new Array(a.length),h;l[0]!=null?(h=Math.atan(l[1]/l[0]),l[0]<0?h=h+Math.PI/2:h=-h-Math.PI/2):h=l;for(var c=Math.cos(-h),d=Math.sin(-h),v=0;v<f.length/2;v++)f[v*2]=s/2*(a[v*2]*c-a[v*2+1]*d),f[v*2+1]=o/2*(a[v*2+1]*c+a[v*2]*d),f[v*2]+=n,f[v*2+1]+=i;var p;if(u>0){var y=Ts(f,-u);p=xs(y)}else p=f;return Yt(e,r,p)},Pf=function(e,r,a,n,i,s,o){for(var l=new Array(a.length),u=s/2,f=o/2,h=ci(s,o),c=h*h,d=0;d<a.length/4;d++){var v=void 0,p=void 0;d===0?v=a.length-2:v=d*4-2,p=d*4+2;var y=n+u*a[d*4],g=i+f*a[d*4+1],m=-a[v]*a[p]-a[v+1]*a[p+1],b=h/Math.tan(Math.acos(m)/2),E=y-b*a[v],M=g-b*a[v+1],A=y+b*a[p],x=g+b*a[p+1];l[d*4]=E,l[d*4+1]=M,l[d*4+2]=A,l[d*4+3]=x;var R=a[v+1],C=-a[v],F=R*a[p]+C*a[p+1];F<0&&(R*=-1,C*=-1);var z=E+R*h,I=M+C*h,X=Math.pow(z-e,2)+Math.pow(I-r,2);if(X<=c)return!0}return Yt(e,r,l)},xs=function(e){for(var r=new Array(e.length/2),a,n,i,s,o,l,u,f,h=0;h<e.length/4;h++){a=e[h*4],n=e[h*4+1],i=e[h*4+2],s=e[h*4+3],h<e.length/4-1?(o=e[(h+1)*4],l=e[(h+1)*4+1],u=e[(h+1)*4+2],f=e[(h+1)*4+3]):(o=e[0],l=e[1],u=e[2],f=e[3]);var c=Tr(a,n,i,s,o,l,u,f,!0);r[h*2]=c[0],r[h*2+1]=c[1]}return r},Ts=function(e,r){for(var a=new Array(e.length*2),n,i,s,o,l=0;l<e.length/2;l++){n=e[l*2],i=e[l*2+1],l<e.length/2-1?(s=e[(l+1)*2],o=e[(l+1)*2+1]):(s=e[0],o=e[1]);var u=o-i,f=-(s-n),h=Math.sqrt(u*u+f*f),c=u/h,d=f/h;a[l*4]=n+c*r,a[l*4+1]=i+d*r,a[l*4+2]=s+c*r,a[l*4+3]=o+d*r}return a},Bf=function(e,r,a,n,i,s){var o=a-e,l=n-r;o/=i,l/=s;var u=Math.sqrt(o*o+l*l),f=u-1;if(f<0)return[];var h=f/u;return[(a-e)*h+e,(n-r)*h+r]},Fr=function(e,r,a,n,i,s,o){return e-=i,r-=s,e/=a/2+o,r/=n/2+o,e*e+r*r<=1},Pa=function(e,r,a,n,i,s,o){var l=[a-e,n-r],u=[e-i,r-s],f=l[0]*l[0]+l[1]*l[1],h=2*(u[0]*l[0]+u[1]*l[1]),c=u[0]*u[0]+u[1]*u[1]-o*o,d=h*h-4*f*c;if(d<0)return[];var v=(-h+Math.sqrt(d))/(2*f),p=(-h-Math.sqrt(d))/(2*f),y=Math.min(v,p),g=Math.max(v,p),m=[];if(y>=0&&y<=1&&m.push(y),g>=0&&g<=1&&m.push(g),m.length===0)return[];var b=m[0]*l[0]+e,E=m[0]*l[1]+r;if(m.length>1){if(m[0]==m[1])return[b,E];var M=m[1]*l[0]+e,A=m[1]*l[1]+r;return[b,E,M,A]}else return[b,E]},fi=function(e,r,a){return r<=e&&e<=a||a<=e&&e<=r?e:e<=r&&r<=a||a<=r&&r<=e?r:a},Tr=function(e,r,a,n,i,s,o,l,u){var f=e-i,h=a-e,c=o-i,d=r-s,v=n-r,p=l-s,y=c*d-p*f,g=h*d-v*f,m=p*h-c*v;if(m!==0){var b=y/m,E=g/m,M=.001,A=0-M,x=1+M;return A<=b&&b<=x&&A<=E&&E<=x?[e+b*h,r+b*v]:u?[e+b*h,r+b*v]:[]}else return y===0||g===0?fi(e,a,o)===o?[o,l]:fi(e,a,i)===i?[i,s]:fi(i,o,a)===a?[a,n]:[]:[]},Ba=function(e,r,a,n,i,s,o,l){var u=[],f,h=new Array(a.length),c=!0;s==null&&(c=!1);var d;if(c){for(var v=0;v<h.length/2;v++)h[v*2]=a[v*2]*s+n,h[v*2+1]=a[v*2+1]*o+i;if(l>0){var p=Ts(h,-l);d=xs(p)}else d=h}else d=a;for(var y,g,m,b,E=0;E<d.length/2;E++)y=d[E*2],g=d[E*2+1],E<d.length/2-1?(m=d[(E+1)*2],b=d[(E+1)*2+1]):(m=d[0],b=d[1]),f=Tr(e,r,n,i,y,g,m,b),f.length!==0&&u.push(f[0],f[1]);return u},Ff=function(e,r,a,n,i,s,o,l){for(var u=[],f,h=new Array(a.length),c=s/2,d=o/2,v=ci(s,o),p=0;p<a.length/4;p++){var y=void 0,g=void 0;p===0?y=a.length-2:y=p*4-2,g=p*4+2;var m=n+c*a[p*4],b=i+d*a[p*4+1],E=-a[y]*a[g]-a[y+1]*a[g+1],M=v/Math.tan(Math.acos(E)/2),A=m-M*a[y],x=b-M*a[y+1],R=m+M*a[g],C=b+M*a[g+1];p===0?(h[a.length-2]=A,h[a.length-1]=x):(h[p*4-2]=A,h[p*4-1]=x),h[p*4]=R,h[p*4+1]=C;var F=a[y+1],z=-a[y],I=F*a[g]+z*a[g+1];I<0&&(F*=-1,z*=-1);var X=A+F*v,B=x+z*v;f=Pa(e,r,n,i,X,B,v),f.length!==0&&u.push(f[0],f[1])}for(var re=0;re<h.length/4;re++)f=Tr(e,r,n,i,h[re*4],h[re*4+1],h[re*4+2],h[re*4+3],!1),f.length!==0&&u.push(f[0],f[1]);if(u.length>2){for(var W=[u[0],u[1]],Z=Math.pow(W[0]-e,2)+Math.pow(W[1]-r,2),ie=1;ie<u.length/2;ie++){var ue=Math.pow(u[ie*2]-e,2)+Math.pow(u[ie*2+1]-r,2);ue<=Z&&(W[0]=u[ie*2],W[1]=u[ie*2+1],Z=ue)}return W}return u},yn=function(e,r,a){var n=[e[0]-r[0],e[1]-r[1]],i=Math.sqrt(n[0]*n[0]+n[1]*n[1]),s=(i-a)/i;return s<0&&(s=1e-5),[r[0]+s*n[0],r[1]+s*n[1]]},$t=function(e,r){var a=hi(e,r);return a=Cs(a),a},Cs=function(e){for(var r,a,n=e.length/2,i=1/0,s=1/0,o=-1/0,l=-1/0,u=0;u<n;u++)r=e[2*u],a=e[2*u+1],i=Math.min(i,r),o=Math.max(o,r),s=Math.min(s,a),l=Math.max(l,a);for(var f=2/(o-i),h=2/(l-s),c=0;c<n;c++)r=e[2*c]=e[2*c]*f,a=e[2*c+1]=e[2*c+1]*h,i=Math.min(i,r),o=Math.max(o,r),s=Math.min(s,a),l=Math.max(l,a);if(s<-1)for(var d=0;d<n;d++)a=e[2*d+1]=e[2*d+1]+(-1-s);return e},hi=function(e,r){var a=1/e*2*Math.PI,n=e%2===0?Math.PI/2+a/2:Math.PI/2;n+=r;for(var i=new Array(e*2),s,o=0;o<e;o++)s=o*a+n,i[2*o]=Math.cos(s),i[2*o+1]=Math.sin(-s);return i},Fa=function(e,r){return Math.min(e/4,r/4,8)},ci=function(e,r){return Math.min(e/10,r/10,8)},Ds=function(){return 8},zf=function(e,r,a){return[e-2*r+a,2*(r-e),e]},vi=function(e,r){return{heightOffset:Math.min(15,.05*r),widthOffset:Math.min(100,.25*e),ctrlPtOffsetPct:.05}},Gf=Lt({dampingFactor:.8,precision:1e-6,iterations:200,weight:function(e){return 1}}),$f={pageRank:function(e){for(var r=Gf(e),a=r.dampingFactor,n=r.precision,i=r.iterations,s=r.weight,o=this._private.cy,l=this.byGroup(),u=l.nodes,f=l.edges,h=u.length,c=h*h,d=f.length,v=new Array(c),p=new Array(h),y=(1-a)/h,g=0;g<h;g++){for(var m=0;m<h;m++){var b=g*h+m;v[b]=0}p[g]=0}for(var E=0;E<d;E++){var M=f[E],A=M.data("source"),x=M.data("target");if(A!==x){var R=u.indexOfId(A),C=u.indexOfId(x),F=s(M),z=C*h+R;v[z]+=F,p[R]+=F}}for(var I=1/h+y,X=0;X<h;X++)if(p[X]===0)for(var B=0;B<h;B++){var re=B*h+X;v[re]=I}else for(var W=0;W<h;W++){var Z=W*h+X;v[Z]=v[Z]/p[X]+y}for(var ie=new Array(h),ue=new Array(h),ge,se=0;se<h;se++)ie[se]=1;for(var ve=0;ve<i;ve++){for(var we=0;we<h;we++)ue[we]=0;for(var Te=0;Te<h;Te++)for(var Ee=0;Ee<h;Ee++){var ye=Te*h+Ee;ue[Te]+=v[ye]*ie[Ee]}xf(ue),ge=ie,ie=ue,ue=ge;for(var ae=0,xe=0;xe<h;xe++){var Ce=ge[xe]-ie[xe];ae+=Ce*Ce}if(ae<n)break}var Oe={rank:function(He){return He=o.collection(He)[0],ie[u.indexOf(He)]}};return Oe}},Ss=Lt({root:null,weight:function(e){return 1},directed:!1,alpha:0}),ra={degreeCentralityNormalized:function(e){e=Ss(e);var r=this.cy(),a=this.nodes(),n=a.length;if(e.directed){for(var f={},h={},c=0,d=0,v=0;v<n;v++){var p=a[v],y=p.id();e.root=p;var g=this.degreeCentrality(e);c<g.indegree&&(c=g.indegree),d<g.outdegree&&(d=g.outdegree),f[y]=g.indegree,h[y]=g.outdegree}return{indegree:function(b){return c==0?0:(j(b)&&(b=r.filter(b)),f[b.id()]/c)},outdegree:function(b){return d===0?0:(j(b)&&(b=r.filter(b)),h[b.id()]/d)}}}else{for(var i={},s=0,o=0;o<n;o++){var l=a[o];e.root=l;var u=this.degreeCentrality(e);s<u.degree&&(s=u.degree),i[l.id()]=u.degree}return{degree:function(b){return s===0?0:(j(b)&&(b=r.filter(b)),i[b.id()]/s)}}}},degreeCentrality:function(e){e=Ss(e);var r=this.cy(),a=this,n=e,i=n.root,s=n.weight,o=n.directed,l=n.alpha;if(i=r.collection(i)[0],o){for(var d=i.connectedEdges(),v=d.filter(function(A){return A.target().same(i)&&a.has(A)}),p=d.filter(function(A){return A.source().same(i)&&a.has(A)}),y=v.length,g=p.length,m=0,b=0,E=0;E<v.length;E++)m+=s(v[E]);for(var M=0;M<p.length;M++)b+=s(p[M]);return{indegree:Math.pow(y,1-l)*Math.pow(m,l),outdegree:Math.pow(g,1-l)*Math.pow(b,l)}}else{for(var u=i.connectedEdges().intersection(a),f=u.length,h=0,c=0;c<u.length;c++)h+=s(u[c]);return{degree:Math.pow(f,1-l)*Math.pow(h,l)}}}};ra.dc=ra.degreeCentrality,ra.dcn=ra.degreeCentralityNormalised=ra.degreeCentralityNormalized;var Ls=Lt({harmonic:!0,weight:function(){return 1},directed:!1,root:null}),aa={closenessCentralityNormalized:function(e){for(var r=Ls(e),a=r.harmonic,n=r.weight,i=r.directed,s=this.cy(),o={},l=0,u=this.nodes(),f=this.floydWarshall({weight:n,directed:i}),h=0;h<u.length;h++){for(var c=0,d=u[h],v=0;v<u.length;v++)if(h!==v){var p=f.distance(d,u[v]);a?c+=1/p:c+=p}a||(c=1/c),l<c&&(l=c),o[d.id()]=c}return{closeness:function(g){return l==0?0:(j(g)?g=s.filter(g)[0].id():g=g.id(),o[g]/l)}}},closenessCentrality:function(e){var r=Ls(e),a=r.root,n=r.weight,i=r.directed,s=r.harmonic;a=this.filter(a)[0];for(var o=this.dijkstra({root:a,weight:n,directed:i}),l=0,u=this.nodes(),f=0;f<u.length;f++){var h=u[f];if(!h.same(a)){var c=o.distanceTo(h);s?l+=1/c:l+=c}}return s?l:1/l}};aa.cc=aa.closenessCentrality,aa.ccn=aa.closenessCentralityNormalised=aa.closenessCentralityNormalized;var Vf=Lt({weight:null,directed:!1}),di={betweennessCentrality:function(e){for(var r=Vf(e),a=r.directed,n=r.weight,i=n!=null,s=this.cy(),o=this.nodes(),l={},u={},f=0,h={set:function(b,E){u[b]=E,E>f&&(f=E)},get:function(b){return u[b]}},c=0;c<o.length;c++){var d=o[c],v=d.id();a?l[v]=d.outgoers().nodes():l[v]=d.openNeighborhood().nodes(),h.set(v,0)}for(var p=function(b){for(var E=o[b].id(),M=[],A={},x={},R={},C=new Ra(function(Ee,ye){return R[Ee]-R[ye]}),F=0;F<o.length;F++){var z=o[F].id();A[z]=[],x[z]=0,R[z]=1/0}for(x[E]=1,R[E]=0,C.push(E);!C.empty();){var I=C.pop();if(M.push(I),i)for(var X=0;X<l[I].length;X++){var B=l[I][X],re=s.getElementById(I),W=void 0;re.edgesTo(B).length>0?W=re.edgesTo(B)[0]:W=B.edgesTo(re)[0];var Z=n(W);B=B.id(),R[B]>R[I]+Z&&(R[B]=R[I]+Z,C.nodes.indexOf(B)<0?C.push(B):C.updateItem(B),x[B]=0,A[B]=[]),R[B]==R[I]+Z&&(x[B]=x[B]+x[I],A[B].push(I))}else for(var ie=0;ie<l[I].length;ie++){var ue=l[I][ie].id();R[ue]==1/0&&(C.push(ue),R[ue]=R[I]+1),R[ue]==R[I]+1&&(x[ue]=x[ue]+x[I],A[ue].push(I))}}for(var ge={},se=0;se<o.length;se++)ge[o[se].id()]=0;for(;M.length>0;){for(var ve=M.pop(),we=0;we<A[ve].length;we++){var Te=A[ve][we];ge[Te]=ge[Te]+x[Te]/x[ve]*(1+ge[ve])}ve!=o[b].id()&&h.set(ve,h.get(ve)+ge[ve])}},y=0;y<o.length;y++)p(y);var g={betweenness:function(b){var E=s.collection(b).id();return h.get(E)},betweennessNormalized:function(b){if(f==0)return 0;var E=s.collection(b).id();return h.get(E)/f}};return g.betweennessNormalised=g.betweennessNormalized,g}};di.bc=di.betweennessCentrality;var _f=Lt({expandFactor:2,inflateFactor:2,multFactor:1,maxIterations:20,attributes:[function(t){return 1}]}),Uf=function(e){return _f(e)},Yf=function(e,r){for(var a=0,n=0;n<r.length;n++)a+=r[n](e);return a},Hf=function(e,r,a){for(var n=0;n<r;n++)e[n*r+n]=a},As=function(e,r){for(var a,n=0;n<r;n++){a=0;for(var i=0;i<r;i++)a+=e[i*r+n];for(var s=0;s<r;s++)e[s*r+n]=e[s*r+n]/a}},Xf=function(e,r,a){for(var n=new Array(a*a),i=0;i<a;i++){for(var s=0;s<a;s++)n[i*a+s]=0;for(var o=0;o<a;o++)for(var l=0;l<a;l++)n[i*a+l]+=e[i*a+o]*r[o*a+l]}return n},qf=function(e,r,a){for(var n=e.slice(0),i=1;i<a;i++)e=Xf(e,n,r);return e},Wf=function(e,r,a){for(var n=new Array(r*r),i=0;i<r*r;i++)n[i]=Math.pow(e[i],a);return As(n,r),n},Kf=function(e,r,a,n){for(var i=0;i<a;i++){var s=Math.round(e[i]*Math.pow(10,n))/Math.pow(10,n),o=Math.round(r[i]*Math.pow(10,n))/Math.pow(10,n);if(s!==o)return!1}return!0},Zf=function(e,r,a,n){for(var i=[],s=0;s<r;s++){for(var o=[],l=0;l<r;l++)Math.round(e[s*r+l]*1e3)/1e3>0&&o.push(a[l]);o.length!==0&&i.push(n.collection(o))}return i},Qf=function(e,r){for(var a=0;a<e.length;a++)if(!r[a]||e[a].id()!==r[a].id())return!1;return!0},Jf=function(e){for(var r=0;r<e.length;r++)for(var a=0;a<e.length;a++)r!=a&&Qf(e[r],e[a])&&e.splice(a,1);return e},Os=function(e){for(var r=this.nodes(),a=this.edges(),n=this.cy(),i=Uf(e),s={},o=0;o<r.length;o++)s[r[o].id()]=o;for(var l=r.length,u=l*l,f=new Array(u),h,c=0;c<u;c++)f[c]=0;for(var d=0;d<a.length;d++){var v=a[d],p=s[v.source().id()],y=s[v.target().id()],g=Yf(v,i.attributes);f[p*l+y]+=g,f[y*l+p]+=g}Hf(f,l,i.multFactor),As(f,l);for(var m=!0,b=0;m&&b<i.maxIterations;)m=!1,h=qf(f,l,i.expandFactor),f=Wf(h,l,i.inflateFactor),Kf(f,h,u,4)||(m=!0),b++;var E=Zf(f,l,r,n);return E=Jf(E),E},jf={markovClustering:Os,mcl:Os},eh=function(e){return e},Ns=function(e,r){return Math.abs(r-e)},Ms=function(e,r,a){return e+Ns(r,a)},Is=function(e,r,a){return e+Math.pow(a-r,2)},th=function(e){return Math.sqrt(e)},rh=function(e,r,a){return Math.max(e,Ns(r,a))},za=function(e,r,a,n,i){for(var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:eh,o=n,l,u,f=0;f<e;f++)l=r(f),u=a(f),o=i(o,l,u);return s(o)},na={euclidean:function(e,r,a){return e>=2?za(e,r,a,0,Is,th):za(e,r,a,0,Ms)},squaredEuclidean:function(e,r,a){return za(e,r,a,0,Is)},manhattan:function(e,r,a){return za(e,r,a,0,Ms)},max:function(e,r,a){return za(e,r,a,-1/0,rh)}};na["squared-euclidean"]=na.squaredEuclidean,na.squaredeuclidean=na.squaredEuclidean;function mn(t,e,r,a,n,i){var s;return Y(t)?s=t:s=na[t]||na.euclidean,e===0&&Y(t)?s(n,i):s(e,r,a,n,i)}var ah=Lt({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),gi=function(e){return ah(e)},bn=function(e,r,a,n,i){var s=i!=="kMedoids",o=s?function(h){return a[h]}:function(h){return n[h](a)},l=function(c){return n[c](r)},u=a,f=r;return mn(e,n.length,o,l,u,f)},pi=function(e,r,a){for(var n=a.length,i=new Array(n),s=new Array(n),o=new Array(r),l=null,u=0;u<n;u++)i[u]=e.min(a[u]).value,s[u]=e.max(a[u]).value;for(var f=0;f<r;f++){l=[];for(var h=0;h<n;h++)l[h]=Math.random()*(s[h]-i[h])+i[h];o[f]=l}return o},Rs=function(e,r,a,n,i){for(var s=1/0,o=0,l=0;l<r.length;l++){var u=bn(a,e,r[l],n,i);u<s&&(s=u,o=l)}return o},ks=function(e,r,a){for(var n=[],i=null,s=0;s<r.length;s++)i=r[s],a[i.id()]===e&&n.push(i);return n},nh=function(e,r,a){return Math.abs(r-e)<=a},ih=function(e,r,a){for(var n=0;n<e.length;n++)for(var i=0;i<e[n].length;i++){var s=Math.abs(e[n][i]-r[n][i]);if(s>a)return!1}return!0},sh=function(e,r,a){for(var n=0;n<a;n++)if(e===r[n])return!0;return!1},Ps=function(e,r){var a=new Array(r);if(e.length<50)for(var n=0;n<r;n++){for(var i=e[Math.floor(Math.random()*e.length)];sh(i,a,n);)i=e[Math.floor(Math.random()*e.length)];a[n]=i}else for(var s=0;s<r;s++)a[s]=e[Math.floor(Math.random()*e.length)];return a},Bs=function(e,r,a){for(var n=0,i=0;i<r.length;i++)n+=bn("manhattan",r[i],e,a,"kMedoids");return n},oh=function(e){var r=this.cy(),a=this.nodes(),n=null,i=gi(e),s=new Array(i.k),o={},l;i.testMode?typeof i.testCentroids=="number"?(i.testCentroids,l=pi(a,i.k,i.attributes)):ee(i.testCentroids)==="object"?l=i.testCentroids:l=pi(a,i.k,i.attributes):l=pi(a,i.k,i.attributes);for(var u=!0,f=0;u&&f<i.maxIterations;){for(var h=0;h<a.length;h++)n=a[h],o[n.id()]=Rs(n,l,i.distance,i.attributes,"kMeans");u=!1;for(var c=0;c<i.k;c++){var d=ks(c,a,o);if(d.length!==0){for(var v=i.attributes.length,p=l[c],y=new Array(v),g=new Array(v),m=0;m<v;m++){g[m]=0;for(var b=0;b<d.length;b++)n=d[b],g[m]+=i.attributes[m](n);y[m]=g[m]/d.length,nh(y[m],p[m],i.sensitivityThreshold)||(u=!0)}l[c]=y,s[c]=r.collection(d)}}f++}return s},uh=function(e){var r=this.cy(),a=this.nodes(),n=null,i=gi(e),s=new Array(i.k),o,l={},u,f=new Array(i.k);i.testMode?typeof i.testCentroids=="number"||(ee(i.testCentroids)==="object"?o=i.testCentroids:o=Ps(a,i.k)):o=Ps(a,i.k);for(var h=!0,c=0;h&&c<i.maxIterations;){for(var d=0;d<a.length;d++)n=a[d],l[n.id()]=Rs(n,o,i.distance,i.attributes,"kMedoids");h=!1;for(var v=0;v<o.length;v++){var p=ks(v,a,l);if(p.length!==0){f[v]=Bs(o[v],p,i.attributes);for(var y=0;y<p.length;y++)u=Bs(p[y],p,i.attributes),u<f[v]&&(f[v]=u,o[v]=p[y],h=!0);s[v]=r.collection(p)}}c++}return s},lh=function(e,r,a,n,i){for(var s,o,l=0;l<r.length;l++)for(var u=0;u<e.length;u++)n[l][u]=Math.pow(a[l][u],i.m);for(var f=0;f<e.length;f++)for(var h=0;h<i.attributes.length;h++){s=0,o=0;for(var c=0;c<r.length;c++)s+=n[c][f]*i.attributes[h](r[c]),o+=n[c][f];e[f][h]=s/o}},fh=function(e,r,a,n,i){for(var s=0;s<e.length;s++)r[s]=e[s].slice();for(var o,l,u,f=2/(i.m-1),h=0;h<a.length;h++)for(var c=0;c<n.length;c++){o=0;for(var d=0;d<a.length;d++)l=bn(i.distance,n[c],a[h],i.attributes,"cmeans"),u=bn(i.distance,n[c],a[d],i.attributes,"cmeans"),o+=Math.pow(l/u,f);e[c][h]=1/o}},hh=function(e,r,a,n){for(var i=new Array(a.k),s=0;s<i.length;s++)i[s]=[];for(var o,l,u=0;u<r.length;u++){o=-1/0,l=-1;for(var f=0;f<r[0].length;f++)r[u][f]>o&&(o=r[u][f],l=f);i[l].push(e[u])}for(var h=0;h<i.length;h++)i[h]=n.collection(i[h]);return i},Fs=function(e){var r=this.cy(),a=this.nodes(),n=gi(e),i,s,o,l,u;l=new Array(a.length);for(var f=0;f<a.length;f++)l[f]=new Array(n.k);o=new Array(a.length);for(var h=0;h<a.length;h++)o[h]=new Array(n.k);for(var c=0;c<a.length;c++){for(var d=0,v=0;v<n.k;v++)o[c][v]=Math.random(),d+=o[c][v];for(var p=0;p<n.k;p++)o[c][p]=o[c][p]/d}s=new Array(n.k);for(var y=0;y<n.k;y++)s[y]=new Array(n.attributes.length);u=new Array(a.length);for(var g=0;g<a.length;g++)u[g]=new Array(n.k);for(var m=!0,b=0;m&&b<n.maxIterations;)m=!1,lh(s,a,o,u,n),fh(o,l,s,a,n),ih(o,l,n.sensitivityThreshold)||(m=!0),b++;return i=hh(a,o,n,r),{clusters:i,degreeOfMembership:o}},ch={kMeans:oh,kMedoids:uh,fuzzyCMeans:Fs,fcm:Fs},vh=Lt({distance:"euclidean",linkage:"min",mode:"threshold",threshold:1/0,addDendrogram:!1,dendrogramDepth:0,attributes:[]}),dh={single:"min",complete:"max"},gh=function(e){var r=vh(e),a=dh[r.linkage];return a!=null&&(r.linkage=a),r},zs=function(e,r,a,n,i){for(var s=0,o=1/0,l,u=i.attributes,f=function(C,F){return mn(i.distance,u.length,function(z){return u[z](C)},function(z){return u[z](F)},C,F)},h=0;h<e.length;h++){var c=e[h].key,d=a[c][n[c]];d<o&&(s=c,o=d)}if(i.mode==="threshold"&&o>=i.threshold||i.mode==="dendrogram"&&e.length===1)return!1;var v=r[s],p=r[n[s]],y;i.mode==="dendrogram"?y={left:v,right:p,key:v.key}:y={value:v.value.concat(p.value),key:v.key},e[v.index]=y,e.splice(p.index,1),r[v.key]=y;for(var g=0;g<e.length;g++){var m=e[g];v.key===m.key?l=1/0:i.linkage==="min"?(l=a[v.key][m.key],a[v.key][m.key]>a[p.key][m.key]&&(l=a[p.key][m.key])):i.linkage==="max"?(l=a[v.key][m.key],a[v.key][m.key]<a[p.key][m.key]&&(l=a[p.key][m.key])):i.linkage==="mean"?l=(a[v.key][m.key]*v.size+a[p.key][m.key]*p.size)/(v.size+p.size):i.mode==="dendrogram"?l=f(m.value,v.value):l=f(m.value[0],v.value[0]),a[v.key][m.key]=a[m.key][v.key]=l}for(var b=0;b<e.length;b++){var E=e[b].key;if(n[E]===v.key||n[E]===p.key){for(var M=E,A=0;A<e.length;A++){var x=e[A].key;a[E][x]<a[E][M]&&(M=x)}n[E]=M}e[b].index=b}return v.key=p.key=v.index=p.index=null,!0},En=function t(e,r,a){e&&(e.value?r.push(e.value):(e.left&&t(e.left,r),e.right&&t(e.right,r)))},ph=function t(e,r){if(!e)return"";if(e.left&&e.right){var a=t(e.left,r),n=t(e.right,r),i=r.add({group:"nodes",data:{id:a+","+n}});return r.add({group:"edges",data:{source:a,target:i.id()}}),r.add({group:"edges",data:{source:n,target:i.id()}}),i.id()}else if(e.value)return e.value.id()},yh=function t(e,r,a){if(!e)return[];var n=[],i=[],s=[];return r===0?(e.left&&En(e.left,n),e.right&&En(e.right,i),s=n.concat(i),[a.collection(s)]):r===1?e.value?[a.collection(e.value)]:(e.left&&En(e.left,n),e.right&&En(e.right,i),[a.collection(n),a.collection(i)]):e.value?[a.collection(e.value)]:(e.left&&(n=t(e.left,r-1,a)),e.right&&(i=t(e.right,r-1,a)),n.concat(i))},Gs=function(e){for(var r=this.cy(),a=this.nodes(),n=gh(e),i=n.attributes,s=function(b,E){return mn(n.distance,i.length,function(M){return i[M](b)},function(M){return i[M](E)},b,E)},o=[],l=[],u=[],f=[],h=0;h<a.length;h++){var c={value:n.mode==="dendrogram"?a[h]:[a[h]],key:h,index:h};o[h]=c,f[h]=c,l[h]=[],u[h]=0}for(var d=0;d<o.length;d++)for(var v=0;v<=d;v++){var p=void 0;n.mode==="dendrogram"?p=d===v?1/0:s(o[d].value,o[v].value):p=d===v?1/0:s(o[d].value[0],o[v].value[0]),l[d][v]=p,l[v][d]=p,p<l[d][u[d]]&&(u[d]=v)}for(var y=zs(o,f,l,u,n);y;)y=zs(o,f,l,u,n);var g;return n.mode==="dendrogram"?(g=yh(o[0],n.dendrogramDepth,r),n.addDendrogram&&ph(o[0],r)):(g=new Array(o.length),o.forEach(function(m,b){m.key=m.index=null,g[b]=r.collection(m.value)})),g},mh={hierarchicalClustering:Gs,hca:Gs},bh=Lt({distance:"euclidean",preference:"median",damping:.8,maxIterations:1e3,minIterations:100,attributes:[]}),Eh=function(e){var r=e.damping,a=e.preference;.5<=r&&r<1||xt("Damping must range on [0.5, 1). Got: ".concat(r));var n=["median","mean","min","max"];return n.some(function(i){return i===a})||k(a)||xt("Preference must be one of [".concat(n.map(function(i){return"'".concat(i,"'")}).join(", "),"] or a number. Got: ").concat(a)),bh(e)},wh=function(e,r,a,n){var i=function(o,l){return n[l](o)};return-mn(e,n.length,function(s){return i(r,s)},function(s){return i(a,s)},r,a)},xh=function(e,r){var a=null;return r==="median"?a=Ef(e):r==="mean"?a=bf(e):r==="min"?a=yf(e):r==="max"?a=mf(e):a=r,a},Th=function(e,r,a){for(var n=[],i=0;i<e;i++)r[i*e+i]+a[i*e+i]>0&&n.push(i);return n},$s=function(e,r,a){for(var n=[],i=0;i<e;i++){for(var s=-1,o=-1/0,l=0;l<a.length;l++){var u=a[l];r[i*e+u]>o&&(s=u,o=r[i*e+u])}s>0&&n.push(s)}for(var f=0;f<a.length;f++)n[a[f]]=a[f];return n},Ch=function(e,r,a){for(var n=$s(e,r,a),i=0;i<a.length;i++){for(var s=[],o=0;o<n.length;o++)n[o]===a[i]&&s.push(o);for(var l=-1,u=-1/0,f=0;f<s.length;f++){for(var h=0,c=0;c<s.length;c++)h+=r[s[c]*e+s[f]];h>u&&(l=f,u=h)}a[i]=s[l]}return n=$s(e,r,a),n},Vs=function(e){for(var r=this.cy(),a=this.nodes(),n=Eh(e),i={},s=0;s<a.length;s++)i[a[s].id()]=s;var o,l,u,f,h,c;o=a.length,l=o*o,u=new Array(l);for(var d=0;d<l;d++)u[d]=-1/0;for(var v=0;v<o;v++)for(var p=0;p<o;p++)v!==p&&(u[v*o+p]=wh(n.distance,a[v],a[p],n.attributes));f=xh(u,n.preference);for(var y=0;y<o;y++)u[y*o+y]=f;h=new Array(l);for(var g=0;g<l;g++)h[g]=0;c=new Array(l);for(var m=0;m<l;m++)c[m]=0;for(var b=new Array(o),E=new Array(o),M=new Array(o),A=0;A<o;A++)b[A]=0,E[A]=0,M[A]=0;for(var x=new Array(o*n.minIterations),R=0;R<x.length;R++)x[R]=0;var C;for(C=0;C<n.maxIterations;C++){for(var F=0;F<o;F++){for(var z=-1/0,I=-1/0,X=-1,B=0,re=0;re<o;re++)b[re]=h[F*o+re],B=c[F*o+re]+u[F*o+re],B>=z?(I=z,z=B,X=re):B>I&&(I=B);for(var W=0;W<o;W++)h[F*o+W]=(1-n.damping)*(u[F*o+W]-z)+n.damping*b[W];h[F*o+X]=(1-n.damping)*(u[F*o+X]-I)+n.damping*b[X]}for(var Z=0;Z<o;Z++){for(var ie=0,ue=0;ue<o;ue++)b[ue]=c[ue*o+Z],E[ue]=Math.max(0,h[ue*o+Z]),ie+=E[ue];ie-=E[Z],E[Z]=h[Z*o+Z],ie+=E[Z];for(var ge=0;ge<o;ge++)c[ge*o+Z]=(1-n.damping)*Math.min(0,ie-E[ge])+n.damping*b[ge];c[Z*o+Z]=(1-n.damping)*(ie-E[Z])+n.damping*b[Z]}for(var se=0,ve=0;ve<o;ve++){var we=c[ve*o+ve]+h[ve*o+ve]>0?1:0;x[C%n.minIterations*o+ve]=we,se+=we}if(se>0&&(C>=n.minIterations-1||C==n.maxIterations-1)){for(var Te=0,Ee=0;Ee<o;Ee++){M[Ee]=0;for(var ye=0;ye<n.minIterations;ye++)M[Ee]+=x[ye*o+Ee];(M[Ee]===0||M[Ee]===n.minIterations)&&Te++}if(Te===o)break}}for(var ae=Th(o,h,c),xe=Ch(o,u,ae),Ce={},Oe=0;Oe<ae.length;Oe++)Ce[ae[Oe]]=[];for(var Ie=0;Ie<a.length;Ie++){var He=i[a[Ie].id()],qe=xe[He];qe!=null&&Ce[qe].push(a[Ie])}for(var Re=new Array(ae.length),Me=0;Me<ae.length;Me++)Re[Me]=r.collection(Ce[ae[Me]]);return Re},Dh={affinityPropagation:Vs,ap:Vs},Sh=Lt({root:void 0,directed:!1}),Lh={hierholzer:function(e){if(!L(e)){var r=arguments;e={root:r[0],directed:r[1]}}var a=Sh(e),n=a.root,i=a.directed,s=this,o=!1,l,u,f;n&&(f=j(n)?this.filter(n)[0].id():n[0].id());var h={},c={};i?s.forEach(function(m){var b=m.id();if(m.isNode()){var E=m.indegree(!0),M=m.outdegree(!0),A=E-M,x=M-E;A==1?l?o=!0:l=b:x==1?u?o=!0:u=b:(x>1||A>1)&&(o=!0),h[b]=[],m.outgoers().forEach(function(R){R.isEdge()&&h[b].push(R.id())})}else c[b]=[void 0,m.target().id()]}):s.forEach(function(m){var b=m.id();if(m.isNode()){var E=m.degree(!0);E%2&&(l?u?o=!0:u=b:l=b),h[b]=[],m.connectedEdges().forEach(function(M){return h[b].push(M.id())})}else c[b]=[m.source().id(),m.target().id()]});var d={found:!1,trail:void 0};if(o)return d;if(u&&l)if(i){if(f&&u!=f)return d;f=u}else{if(f&&u!=f&&l!=f)return d;f||(f=u)}else f||(f=s[0].id());var v=function(b){for(var E=b,M=[b],A,x,R;h[E].length;)A=h[E].shift(),x=c[A][0],R=c[A][1],E!=R?(h[R]=h[R].filter(function(C){return C!=A}),E=R):!i&&E!=x&&(h[x]=h[x].filter(function(C){return C!=A}),E=x),M.unshift(A),M.unshift(E);return M},p=[],y=[];for(y=v(f);y.length!=1;)h[y[0]].length==0?(p.unshift(s.getElementById(y.shift())),p.unshift(s.getElementById(y.shift()))):y=v(y.shift()).concat(y);p.unshift(s.getElementById(y.shift()));for(var g in h)if(h[g].length)return d;return d.found=!0,d.trail=this.spawn(p,!0),d}},wn=function(){var e=this,r={},a=0,n=0,i=[],s=[],o={},l=function(c,d){for(var v=s.length-1,p=[],y=e.spawn();s[v].x!=c||s[v].y!=d;)p.push(s.pop().edge),v--;p.push(s.pop().edge),p.forEach(function(g){var m=g.connectedNodes().intersection(e);y.merge(g),m.forEach(function(b){var E=b.id(),M=b.connectedEdges().intersection(e);y.merge(b),r[E].cutVertex?y.merge(M.filter(function(A){return A.isLoop()})):y.merge(M)})}),i.push(y)},u=function h(c,d,v){c===v&&(n+=1),r[d]={id:a,low:a++,cutVertex:!1};var p=e.getElementById(d).connectedEdges().intersection(e);if(p.size()===0)i.push(e.spawn(e.getElementById(d)));else{var y,g,m,b;p.forEach(function(E){y=E.source().id(),g=E.target().id(),m=y===d?g:y,m!==v&&(b=E.id(),o[b]||(o[b]=!0,s.push({x:d,y:m,edge:E})),m in r?r[d].low=Math.min(r[d].low,r[m].id):(h(c,m,d),r[d].low=Math.min(r[d].low,r[m].low),r[d].id<=r[m].low&&(r[d].cutVertex=!0,l(d,m))))})}};e.forEach(function(h){if(h.isNode()){var c=h.id();c in r||(n=0,u(c,c),r[c].cutVertex=n>1)}});var f=Object.keys(r).filter(function(h){return r[h].cutVertex}).map(function(h){return e.getElementById(h)});return{cut:e.spawn(f),components:i}},Ah={hopcroftTarjanBiconnected:wn,htbc:wn,htb:wn,hopcroftTarjanBiconnectedComponents:wn},xn=function(){var e=this,r={},a=0,n=[],i=[],s=e.spawn(e),o=function l(u){i.push(u),r[u]={index:a,low:a++,explored:!1};var f=e.getElementById(u).connectedEdges().intersection(e);if(f.forEach(function(p){var y=p.target().id();y!==u&&(y in r||l(y),r[y].explored||(r[u].low=Math.min(r[u].low,r[y].low)))}),r[u].index===r[u].low){for(var h=e.spawn();;){var c=i.pop();if(h.merge(e.getElementById(c)),r[c].low=r[u].index,r[c].explored=!0,c===u)break}var d=h.edgesWith(h),v=h.merge(d);n.push(v),s=s.difference(v)}};return e.forEach(function(l){if(l.isNode()){var u=l.id();u in r||o(u)}}),{cut:s,components:n}},Oh={tarjanStronglyConnected:xn,tsc:xn,tscc:xn,tarjanStronglyConnectedComponents:xn},_s={};[Ia,nf,sf,uf,ff,cf,gf,$f,ra,aa,di,jf,ch,mh,Dh,Lh,Ah,Oh].forEach(function(t){Ue(_s,t)});/*! Embeddable Minimum Strictly-Compliant Promises/A+ 1.1.1 Thenable Copyright (c) 2013-2014 Ralf S. Engelschall (http://engelschall.com) diff --git a/docs/assets/pieDiagram-c8640b32-9bf366e0.js b/docs/assets/pieDiagram-c8640b32-44e9bed5.js similarity index 99% rename from docs/assets/pieDiagram-c8640b32-9bf366e0.js rename to docs/assets/pieDiagram-c8640b32-44e9bed5.js index eb3ceda2..4c7e65cd 100644 --- a/docs/assets/pieDiagram-c8640b32-9bf366e0.js +++ b/docs/assets/pieDiagram-c8640b32-44e9bed5.js @@ -1,4 +1,4 @@ -import{S as it,c as U,s as gt,g as dt,z as mt,A as _t,a as vt,b as bt,m as kt,j as xt,l as Y,B as St,h as nt,i as wt,T as At}from"./index-b4f98efc.js";import{i as Et}from"./init-77b53fdd.js";import{a as Dt}from"./array-9f3ba611.js";import{c as z}from"./path-53f90ab3.js";import{a as lt}from"./arc-12672da3.js";class ct extends Map{constructor(s,l=It){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:l}}),s!=null)for(const[o,p]of s)this.set(o,p)}get(s){return super.get(ot(this,s))}has(s){return super.has(ot(this,s))}set(s,l){return super.set($t(this,s),l)}delete(s){return super.delete(Tt(this,s))}}function ot({_intern:t,_key:s},l){const o=s(l);return t.has(o)?t.get(o):l}function $t({_intern:t,_key:s},l){const o=s(l);return t.has(o)?t.get(o):(t.set(o,l),l)}function Tt({_intern:t,_key:s},l){const o=s(l);return t.has(o)&&(l=t.get(o),t.delete(o)),l}function It(t){return t!==null&&typeof t=="object"?t.valueOf():t}const ht=Symbol("implicit");function ut(){var t=new ct,s=[],l=[],o=ht;function p(g){let h=t.get(g);if(h===void 0){if(o!==ht)return o;t.set(g,h=s.push(g)-1)}return l[h%l.length]}return p.domain=function(g){if(!arguments.length)return s.slice();s=[],t=new ct;for(const h of g)t.has(h)||t.set(h,s.push(h)-1);return p},p.range=function(g){return arguments.length?(l=Array.from(g),p):l.slice()},p.unknown=function(g){return arguments.length?(o=g,p):o},p.copy=function(){return ut(s,l).unknown(o)},Et.apply(p,arguments),p}function Vt(t,s){return s<t?-1:s>t?1:s>=t?0:NaN}function Pt(t){return t}function Ot(){var t=Pt,s=Vt,l=null,o=z(0),p=z(it),g=z(0);function h(c){var d,y=(c=Dt(c)).length,w,L,N=0,x=new Array(y),A=new Array(y),T=+o.apply(this,arguments),D=Math.min(it,Math.max(-it,p.apply(this,arguments)-T)),W,C=Math.min(Math.abs(D)/y,g.apply(this,arguments)),I=C*(D<0?-1:1),v;for(d=0;d<y;++d)(v=A[x[d]=d]=+t(c[d],d,c))>0&&(N+=v);for(s!=null?x.sort(function(E,b){return s(A[E],A[b])}):l!=null&&x.sort(function(E,b){return l(c[E],c[b])}),d=0,L=N?(D-y*I)/N:0;d<y;++d,T=W)w=x[d],v=A[w],W=T+(v>0?v*L:0)+I,A[w]={data:c[w],index:d,value:v,startAngle:T,endAngle:W,padAngle:C};return A}return h.value=function(c){return arguments.length?(t=typeof c=="function"?c:z(+c),h):t},h.sortValues=function(c){return arguments.length?(s=c,l=null,h):s},h.sort=function(c){return arguments.length?(l=c,s=null,h):l},h.startAngle=function(c){return arguments.length?(o=typeof c=="function"?c:z(+c),h):o},h.endAngle=function(c){return arguments.length?(p=typeof c=="function"?c:z(+c),h):p},h.padAngle=function(c){return arguments.length?(g=typeof c=="function"?c:z(+c),h):g},h}var rt=function(){var t=function(b,e,i,a){for(i=i||{},a=b.length;a--;i[b[a]]=e);return i},s=[1,4],l=[1,5],o=[1,6],p=[1,7],g=[1,9],h=[1,11,13,15,17,19,20,26,27,28,29],c=[2,5],d=[1,6,11,13,15,17,19,20,26,27,28,29],y=[26,27,28],w=[2,8],L=[1,18],N=[1,19],x=[1,20],A=[1,21],T=[1,22],D=[1,23],W=[1,28],C=[6,26,27,28,29],I={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,showData:8,line:9,statement:10,txt:11,value:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,openDirective:21,typeDirective:22,closeDirective:23,":":24,argDirective:25,NEWLINE:26,";":27,EOF:28,open_directive:29,type_directive:30,arg_directive:31,close_directive:32,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",8:"showData",11:"txt",12:"value",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",24:":",26:"NEWLINE",27:";",28:"EOF",29:"open_directive",30:"type_directive",31:"arg_directive",32:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,3],[7,0],[7,2],[9,2],[10,0],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,1],[5,3],[5,5],[4,1],[4,1],[4,1],[21,1],[22,1],[25,1],[23,1]],performAction:function(e,i,a,n,u,r,f){var m=r.length-1;switch(u){case 4:n.setShowData(!0);break;case 7:this.$=r[m-1];break;case 9:n.addSection(r[m-1],n.cleanupValue(r[m]));break;case 10:this.$=r[m].trim(),n.setDiagramTitle(this.$);break;case 11:this.$=r[m].trim(),n.setAccTitle(this.$);break;case 12:case 13:this.$=r[m].trim(),n.setAccDescription(this.$);break;case 14:n.addSection(r[m].substr(8)),this.$=r[m].substr(8);break;case 21:n.parseDirective("%%{","open_directive");break;case 22:n.parseDirective(r[m],"type_directive");break;case 23:r[m]=r[m].trim().replace(/'/g,'"'),n.parseDirective(r[m],"arg_directive");break;case 24:n.parseDirective("}%%","close_directive","pie");break}},table:[{3:1,4:2,5:3,6:s,21:8,26:l,27:o,28:p,29:g},{1:[3]},{3:10,4:2,5:3,6:s,21:8,26:l,27:o,28:p,29:g},{3:11,4:2,5:3,6:s,21:8,26:l,27:o,28:p,29:g},t(h,c,{7:12,8:[1,13]}),t(d,[2,18]),t(d,[2,19]),t(d,[2,20]),{22:14,30:[1,15]},{30:[2,21]},{1:[2,1]},{1:[2,2]},t(y,w,{21:8,9:16,10:17,5:24,1:[2,3],11:L,13:N,15:x,17:A,19:T,20:D,29:g}),t(h,c,{7:25}),{23:26,24:[1,27],32:W},t([24,32],[2,22]),t(h,[2,6]),{4:29,26:l,27:o,28:p},{12:[1,30]},{14:[1,31]},{16:[1,32]},{18:[1,33]},t(y,[2,13]),t(y,[2,14]),t(y,[2,15]),t(y,w,{21:8,9:16,10:17,5:24,1:[2,4],11:L,13:N,15:x,17:A,19:T,20:D,29:g}),t(C,[2,16]),{25:34,31:[1,35]},t(C,[2,24]),t(h,[2,7]),t(y,[2,9]),t(y,[2,10]),t(y,[2,11]),t(y,[2,12]),{23:36,32:W},{32:[2,23]},t(C,[2,17])],defaultActions:{9:[2,21],10:[2,1],11:[2,2],35:[2,23]},parseError:function(e,i){if(i.recoverable)this.trace(e);else{var a=new Error(e);throw a.hash=i,a}},parse:function(e){var i=this,a=[0],n=[],u=[null],r=[],f=this.table,m="",F=0,q=0,Q=2,G=1,ft=r.slice.call(arguments,1),_=Object.create(this.lexer),M={yy:{}};for(var X in this.yy)Object.prototype.hasOwnProperty.call(this.yy,X)&&(M.yy[X]=this.yy[X]);_.setInput(e,M.yy),M.yy.lexer=_,M.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Z=_.yylloc;r.push(Z);var pt=_.options&&_.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function yt(){var P;return P=n.pop()||_.lex()||G,typeof P!="number"&&(P instanceof Array&&(n=P,P=n.pop()),P=i.symbols_[P]||P),P}for(var k,j,S,tt,R={},H,V,at,J;;){if(j=a[a.length-1],this.defaultActions[j]?S=this.defaultActions[j]:((k===null||typeof k>"u")&&(k=yt()),S=f[j]&&f[j][k]),typeof S>"u"||!S.length||!S[0]){var et="";J=[];for(H in f[j])this.terminals_[H]&&H>Q&&J.push("'"+this.terminals_[H]+"'");_.showPosition?et="Parse error on line "+(F+1)+`: +import{S as it,c as U,s as gt,g as dt,z as mt,A as _t,a as vt,b as bt,m as kt,j as xt,l as Y,B as St,h as nt,i as wt,T as At}from"./index-0e08498d.js";import{i as Et}from"./init-77b53fdd.js";import{a as Dt}from"./array-9f3ba611.js";import{c as z}from"./path-53f90ab3.js";import{a as lt}from"./arc-2fa818f3.js";class ct extends Map{constructor(s,l=It){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:l}}),s!=null)for(const[o,p]of s)this.set(o,p)}get(s){return super.get(ot(this,s))}has(s){return super.has(ot(this,s))}set(s,l){return super.set($t(this,s),l)}delete(s){return super.delete(Tt(this,s))}}function ot({_intern:t,_key:s},l){const o=s(l);return t.has(o)?t.get(o):l}function $t({_intern:t,_key:s},l){const o=s(l);return t.has(o)?t.get(o):(t.set(o,l),l)}function Tt({_intern:t,_key:s},l){const o=s(l);return t.has(o)&&(l=t.get(o),t.delete(o)),l}function It(t){return t!==null&&typeof t=="object"?t.valueOf():t}const ht=Symbol("implicit");function ut(){var t=new ct,s=[],l=[],o=ht;function p(g){let h=t.get(g);if(h===void 0){if(o!==ht)return o;t.set(g,h=s.push(g)-1)}return l[h%l.length]}return p.domain=function(g){if(!arguments.length)return s.slice();s=[],t=new ct;for(const h of g)t.has(h)||t.set(h,s.push(h)-1);return p},p.range=function(g){return arguments.length?(l=Array.from(g),p):l.slice()},p.unknown=function(g){return arguments.length?(o=g,p):o},p.copy=function(){return ut(s,l).unknown(o)},Et.apply(p,arguments),p}function Vt(t,s){return s<t?-1:s>t?1:s>=t?0:NaN}function Pt(t){return t}function Ot(){var t=Pt,s=Vt,l=null,o=z(0),p=z(it),g=z(0);function h(c){var d,y=(c=Dt(c)).length,w,L,N=0,x=new Array(y),A=new Array(y),T=+o.apply(this,arguments),D=Math.min(it,Math.max(-it,p.apply(this,arguments)-T)),W,C=Math.min(Math.abs(D)/y,g.apply(this,arguments)),I=C*(D<0?-1:1),v;for(d=0;d<y;++d)(v=A[x[d]=d]=+t(c[d],d,c))>0&&(N+=v);for(s!=null?x.sort(function(E,b){return s(A[E],A[b])}):l!=null&&x.sort(function(E,b){return l(c[E],c[b])}),d=0,L=N?(D-y*I)/N:0;d<y;++d,T=W)w=x[d],v=A[w],W=T+(v>0?v*L:0)+I,A[w]={data:c[w],index:d,value:v,startAngle:T,endAngle:W,padAngle:C};return A}return h.value=function(c){return arguments.length?(t=typeof c=="function"?c:z(+c),h):t},h.sortValues=function(c){return arguments.length?(s=c,l=null,h):s},h.sort=function(c){return arguments.length?(l=c,s=null,h):l},h.startAngle=function(c){return arguments.length?(o=typeof c=="function"?c:z(+c),h):o},h.endAngle=function(c){return arguments.length?(p=typeof c=="function"?c:z(+c),h):p},h.padAngle=function(c){return arguments.length?(g=typeof c=="function"?c:z(+c),h):g},h}var rt=function(){var t=function(b,e,i,a){for(i=i||{},a=b.length;a--;i[b[a]]=e);return i},s=[1,4],l=[1,5],o=[1,6],p=[1,7],g=[1,9],h=[1,11,13,15,17,19,20,26,27,28,29],c=[2,5],d=[1,6,11,13,15,17,19,20,26,27,28,29],y=[26,27,28],w=[2,8],L=[1,18],N=[1,19],x=[1,20],A=[1,21],T=[1,22],D=[1,23],W=[1,28],C=[6,26,27,28,29],I={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,showData:8,line:9,statement:10,txt:11,value:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,openDirective:21,typeDirective:22,closeDirective:23,":":24,argDirective:25,NEWLINE:26,";":27,EOF:28,open_directive:29,type_directive:30,arg_directive:31,close_directive:32,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",8:"showData",11:"txt",12:"value",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",24:":",26:"NEWLINE",27:";",28:"EOF",29:"open_directive",30:"type_directive",31:"arg_directive",32:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,3],[7,0],[7,2],[9,2],[10,0],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,1],[5,3],[5,5],[4,1],[4,1],[4,1],[21,1],[22,1],[25,1],[23,1]],performAction:function(e,i,a,n,u,r,f){var m=r.length-1;switch(u){case 4:n.setShowData(!0);break;case 7:this.$=r[m-1];break;case 9:n.addSection(r[m-1],n.cleanupValue(r[m]));break;case 10:this.$=r[m].trim(),n.setDiagramTitle(this.$);break;case 11:this.$=r[m].trim(),n.setAccTitle(this.$);break;case 12:case 13:this.$=r[m].trim(),n.setAccDescription(this.$);break;case 14:n.addSection(r[m].substr(8)),this.$=r[m].substr(8);break;case 21:n.parseDirective("%%{","open_directive");break;case 22:n.parseDirective(r[m],"type_directive");break;case 23:r[m]=r[m].trim().replace(/'/g,'"'),n.parseDirective(r[m],"arg_directive");break;case 24:n.parseDirective("}%%","close_directive","pie");break}},table:[{3:1,4:2,5:3,6:s,21:8,26:l,27:o,28:p,29:g},{1:[3]},{3:10,4:2,5:3,6:s,21:8,26:l,27:o,28:p,29:g},{3:11,4:2,5:3,6:s,21:8,26:l,27:o,28:p,29:g},t(h,c,{7:12,8:[1,13]}),t(d,[2,18]),t(d,[2,19]),t(d,[2,20]),{22:14,30:[1,15]},{30:[2,21]},{1:[2,1]},{1:[2,2]},t(y,w,{21:8,9:16,10:17,5:24,1:[2,3],11:L,13:N,15:x,17:A,19:T,20:D,29:g}),t(h,c,{7:25}),{23:26,24:[1,27],32:W},t([24,32],[2,22]),t(h,[2,6]),{4:29,26:l,27:o,28:p},{12:[1,30]},{14:[1,31]},{16:[1,32]},{18:[1,33]},t(y,[2,13]),t(y,[2,14]),t(y,[2,15]),t(y,w,{21:8,9:16,10:17,5:24,1:[2,4],11:L,13:N,15:x,17:A,19:T,20:D,29:g}),t(C,[2,16]),{25:34,31:[1,35]},t(C,[2,24]),t(h,[2,7]),t(y,[2,9]),t(y,[2,10]),t(y,[2,11]),t(y,[2,12]),{23:36,32:W},{32:[2,23]},t(C,[2,17])],defaultActions:{9:[2,21],10:[2,1],11:[2,2],35:[2,23]},parseError:function(e,i){if(i.recoverable)this.trace(e);else{var a=new Error(e);throw a.hash=i,a}},parse:function(e){var i=this,a=[0],n=[],u=[null],r=[],f=this.table,m="",F=0,q=0,Q=2,G=1,ft=r.slice.call(arguments,1),_=Object.create(this.lexer),M={yy:{}};for(var X in this.yy)Object.prototype.hasOwnProperty.call(this.yy,X)&&(M.yy[X]=this.yy[X]);_.setInput(e,M.yy),M.yy.lexer=_,M.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Z=_.yylloc;r.push(Z);var pt=_.options&&_.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function yt(){var P;return P=n.pop()||_.lex()||G,typeof P!="number"&&(P instanceof Array&&(n=P,P=n.pop()),P=i.symbols_[P]||P),P}for(var k,j,S,tt,R={},H,V,at,J;;){if(j=a[a.length-1],this.defaultActions[j]?S=this.defaultActions[j]:((k===null||typeof k>"u")&&(k=yt()),S=f[j]&&f[j][k]),typeof S>"u"||!S.length||!S[0]){var et="";J=[];for(H in f[j])this.terminals_[H]&&H>Q&&J.push("'"+this.terminals_[H]+"'");_.showPosition?et="Parse error on line "+(F+1)+`: `+_.showPosition()+` Expecting `+J.join(", ")+", got '"+(this.terminals_[k]||k)+"'":et="Parse error on line "+(F+1)+": Unexpected "+(k==G?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(et,{text:_.match,token:this.terminals_[k]||k,line:_.yylineno,loc:Z,expected:J})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+j+", token: "+k);switch(S[0]){case 1:a.push(k),u.push(_.yytext),r.push(_.yylloc),a.push(S[1]),k=null,q=_.yyleng,m=_.yytext,F=_.yylineno,Z=_.yylloc;break;case 2:if(V=this.productions_[S[1]][1],R.$=u[u.length-V],R._$={first_line:r[r.length-(V||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(V||1)].first_column,last_column:r[r.length-1].last_column},pt&&(R._$.range=[r[r.length-(V||1)].range[0],r[r.length-1].range[1]]),tt=this.performAction.apply(R,[m,q,F,M.yy,S[1],u,r].concat(ft)),typeof tt<"u")return tt;V&&(a=a.slice(0,-1*V*2),u=u.slice(0,-1*V),r=r.slice(0,-1*V)),a.push(this.productions_[S[1]][0]),u.push(R.$),r.push(R._$),at=f[a[a.length-2]][a[a.length-1]],a.push(at);break;case 3:return!0}}return!0}},v=function(){var b={EOF:1,parseError:function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);else throw new Error(i)},setInput:function(e,i){return this.yy=i||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var i=e.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var i=e.length,a=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===n.length?this.yylloc.first_column:0)+n[n.length-a.length].length-a[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),i=new Array(e.length+1).join("-");return e+this.upcomingInput()+` diff --git a/docs/assets/quadrantDiagram-f7a9076b-df541aaf.js b/docs/assets/quadrantDiagram-f7a9076b-21d1c0d8.js similarity index 99% rename from docs/assets/quadrantDiagram-f7a9076b-df541aaf.js rename to docs/assets/quadrantDiagram-f7a9076b-21d1c0d8.js index 6e13f2af..c23daa2c 100644 --- a/docs/assets/quadrantDiagram-f7a9076b-df541aaf.js +++ b/docs/assets/quadrantDiagram-f7a9076b-21d1c0d8.js @@ -1,4 +1,4 @@ -import{U as Dt,c as _t,V as I,l as ct,s as zt,g as Et,z as It,A as vt,a as Bt,b as Vt,m as wt,B as Rt,h as yt,i as Wt,d as Nt}from"./index-b4f98efc.js";import{l as St}from"./linear-21c501a1.js";import"./init-77b53fdd.js";var qt=function(){var e=function(K,n,r,d){for(r=r||{},d=K.length;d--;r[K[d]]=n);return r},a=[1,3],c=[1,5],f=[1,6],g=[1,7],x=[1,8],h=[1,10],p=[1,5,14,16,18,20,21,26,28,29,30,31,32,38,39,40,41,47,48,50,51,52,53,54,55,56,57,58,59,60],s=[1,5,7,14,16,18,20,21,26,28,29,30,31,32,38,39,40,41,47,48,50,51,52,53,54,55,56,57,58,59,60],l=[38,39,40],y=[2,8],B=[1,19],W=[1,23],L=[1,24],C=[1,25],N=[1,26],M=[1,27],X=[1,29],D=[1,30],it=[1,31],at=[1,32],nt=[1,33],rt=[1,34],Q=[1,37],U=[1,38],T=[1,39],_=[1,40],t=[1,41],m=[1,42],b=[1,43],A=[1,44],S=[1,45],v=[1,46],k=[1,47],F=[1,48],P=[1,49],Tt=[1,52],O=[1,67],Y=[1,68],z=[5,23,27,38,39,40,50,51,52,53,54,55,56,57,58,59,60,61],ht=[5,7,38,39,40,41],dt={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,directive:6,QUADRANT:7,document:8,line:9,statement:10,axisDetails:11,quadrantDetails:12,points:13,title:14,title_value:15,acc_title:16,acc_title_value:17,acc_descr:18,acc_descr_value:19,acc_descr_multiline_value:20,section:21,text:22,point_start:23,point_x:24,point_y:25,"X-AXIS":26,"AXIS-TEXT-DELIMITER":27,"Y-AXIS":28,QUADRANT_1:29,QUADRANT_2:30,QUADRANT_3:31,QUADRANT_4:32,openDirective:33,typeDirective:34,closeDirective:35,":":36,argDirective:37,NEWLINE:38,SEMI:39,EOF:40,open_directive:41,type_directive:42,arg_directive:43,close_directive:44,alphaNumToken:45,textNoTagsToken:46,STR:47,MD_STR:48,alphaNum:49,PUNCTUATION:50,AMP:51,NUM:52,ALPHA:53,COMMA:54,PLUS:55,EQUALS:56,MULT:57,DOT:58,BRKT:59,UNDERSCORE:60,MINUS:61,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",7:"QUADRANT",14:"title",15:"title_value",16:"acc_title",17:"acc_title_value",18:"acc_descr",19:"acc_descr_value",20:"acc_descr_multiline_value",21:"section",23:"point_start",24:"point_x",25:"point_y",26:"X-AXIS",27:"AXIS-TEXT-DELIMITER",28:"Y-AXIS",29:"QUADRANT_1",30:"QUADRANT_2",31:"QUADRANT_3",32:"QUADRANT_4",36:":",38:"NEWLINE",39:"SEMI",40:"EOF",41:"open_directive",42:"type_directive",43:"arg_directive",44:"close_directive",47:"STR",48:"MD_STR",50:"PUNCTUATION",51:"AMP",52:"NUM",53:"ALPHA",54:"COMMA",55:"PLUS",56:"EQUALS",57:"MULT",58:"DOT",59:"BRKT",60:"UNDERSCORE",61:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[10,0],[10,2],[10,1],[10,1],[10,1],[10,2],[10,2],[10,2],[10,1],[10,1],[10,1],[13,4],[11,4],[11,3],[11,2],[11,4],[11,3],[11,2],[12,2],[12,2],[12,2],[12,2],[6,3],[6,5],[4,1],[4,1],[4,1],[33,1],[34,1],[37,1],[35,1],[22,1],[22,2],[22,1],[22,1],[49,1],[49,2],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[46,1],[46,1],[46,1]],performAction:function(n,r,d,o,q,i,et){var u=i.length-1;switch(q){case 13:this.$=i[u].trim(),o.setDiagramTitle(this.$);break;case 14:this.$=i[u].trim(),o.setAccTitle(this.$);break;case 15:case 16:this.$=i[u].trim(),o.setAccDescription(this.$);break;case 17:o.addSection(i[u].substr(8)),this.$=i[u].substr(8);break;case 19:o.addPoint(i[u-3],i[u-1],i[u]);break;case 20:o.setXAxisLeftText(i[u-2]),o.setXAxisRightText(i[u]);break;case 21:i[u-1].text+=" ⟶ ",o.setXAxisLeftText(i[u-1]);break;case 22:o.setXAxisLeftText(i[u]);break;case 23:o.setYAxisBottomText(i[u-2]),o.setYAxisTopText(i[u]);break;case 24:i[u-1].text+=" ⟶ ",o.setYAxisBottomText(i[u-1]);break;case 25:o.setYAxisBottomText(i[u]);break;case 26:o.setQuadrant1Text(i[u]);break;case 27:o.setQuadrant2Text(i[u]);break;case 28:o.setQuadrant3Text(i[u]);break;case 29:o.setQuadrant4Text(i[u]);break;case 35:o.parseDirective("%%{","open_directive");break;case 36:o.parseDirective(i[u],"type_directive");break;case 37:i[u]=i[u].trim().replace(/'/g,'"'),o.parseDirective(i[u],"arg_directive");break;case 38:o.parseDirective("}%%","close_directive","quadrantChart");break;case 39:this.$={text:i[u],type:"text"};break;case 40:this.$={text:i[u-1].text+""+i[u],type:i[u-1].type};break;case 41:this.$={text:i[u],type:"text"};break;case 42:this.$={text:i[u],type:"markdown"};break;case 43:this.$=i[u];break;case 44:this.$=i[u-1]+""+i[u];break}},table:[{3:1,4:2,5:a,6:4,7:c,33:9,38:f,39:g,40:x,41:h},{1:[3]},{3:11,4:2,5:a,6:4,7:c,33:9,38:f,39:g,40:x,41:h},{3:12,4:2,5:a,6:4,7:c,33:9,38:f,39:g,40:x,41:h},{3:13,4:2,5:a,6:4,7:c,33:9,38:f,39:g,40:x,41:h},e(p,[2,5],{8:14}),e(s,[2,32]),e(s,[2,33]),e(s,[2,34]),{34:15,42:[1,16]},{42:[2,35]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(l,y,{33:9,9:17,10:18,11:20,12:21,13:22,6:28,22:35,45:36,1:[2,4],5:B,14:W,16:L,18:C,20:N,21:M,26:X,28:D,29:it,30:at,31:nt,32:rt,41:h,47:Q,48:U,50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P}),{35:50,36:[1,51],44:Tt},e([36,44],[2,36]),e(p,[2,6]),{4:53,38:f,39:g,40:x},e(l,y,{33:9,11:20,12:21,13:22,6:28,22:35,45:36,10:54,5:B,14:W,16:L,18:C,20:N,21:M,26:X,28:D,29:it,30:at,31:nt,32:rt,41:h,47:Q,48:U,50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P}),e(l,[2,10]),e(l,[2,11]),e(l,[2,12]),{15:[1,55]},{17:[1,56]},{19:[1,57]},e(l,[2,16]),e(l,[2,17]),e(l,[2,18]),{22:58,45:36,47:Q,48:U,50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P},{22:59,45:36,47:Q,48:U,50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P},{22:60,45:36,47:Q,48:U,50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P},{22:61,45:36,47:Q,48:U,50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P},{22:62,45:36,47:Q,48:U,50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P},{22:63,45:36,47:Q,48:U,50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P},{5:O,23:[1,64],45:66,46:65,50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P,61:Y},e(z,[2,39]),e(z,[2,41]),e(z,[2,42]),e(z,[2,45]),e(z,[2,46]),e(z,[2,47]),e(z,[2,48]),e(z,[2,49]),e(z,[2,50]),e(z,[2,51]),e(z,[2,52]),e(z,[2,53]),e(z,[2,54]),e(z,[2,55]),e(ht,[2,30]),{37:69,43:[1,70]},e(ht,[2,38]),e(p,[2,7]),e(l,[2,9]),e(l,[2,13]),e(l,[2,14]),e(l,[2,15]),e(l,[2,22],{46:65,45:66,5:O,27:[1,71],50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P,61:Y}),e(l,[2,25],{46:65,45:66,5:O,27:[1,72],50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P,61:Y}),e(l,[2,26],{46:65,45:66,5:O,50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P,61:Y}),e(l,[2,27],{46:65,45:66,5:O,50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P,61:Y}),e(l,[2,28],{46:65,45:66,5:O,50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P,61:Y}),e(l,[2,29],{46:65,45:66,5:O,50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P,61:Y}),{24:[1,73]},e(z,[2,40]),e(z,[2,56]),e(z,[2,57]),e(z,[2,58]),{35:74,44:Tt},{44:[2,37]},e(l,[2,21],{45:36,22:75,47:Q,48:U,50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P}),e(l,[2,24],{45:36,22:76,47:Q,48:U,50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P}),{25:[1,77]},e(ht,[2,31]),e(l,[2,20],{46:65,45:66,5:O,50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P,61:Y}),e(l,[2,23],{46:65,45:66,5:O,50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P,61:Y}),e(l,[2,19])],defaultActions:{10:[2,35],11:[2,1],12:[2,2],13:[2,3],70:[2,37]},parseError:function(n,r){if(r.recoverable)this.trace(n);else{var d=new Error(n);throw d.hash=r,d}},parse:function(n){var r=this,d=[0],o=[],q=[null],i=[],et=this.table,u="",st=0,mt=0,Ft=2,bt=1,Pt=i.slice.call(arguments,1),E=Object.create(this.lexer),Z={yy:{}};for(var xt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xt)&&(Z.yy[xt]=this.yy[xt]);E.setInput(n,Z.yy),Z.yy.lexer=E,Z.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var ft=E.yylloc;i.push(ft);var Lt=E.options&&E.options.ranges;typeof Z.yy.parseError=="function"?this.parseError=Z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ct(){var G;return G=o.pop()||E.lex()||bt,typeof G!="number"&&(G instanceof Array&&(o=G,G=o.pop()),G=r.symbols_[G]||G),G}for(var R,J,H,gt,tt={},lt,j,At,ot;;){if(J=d[d.length-1],this.defaultActions[J]?H=this.defaultActions[J]:((R===null||typeof R>"u")&&(R=Ct()),H=et[J]&&et[J][R]),typeof H>"u"||!H.length||!H[0]){var pt="";ot=[];for(lt in et[J])this.terminals_[lt]&<>Ft&&ot.push("'"+this.terminals_[lt]+"'");E.showPosition?pt="Parse error on line "+(st+1)+`: +import{U as Dt,c as _t,V as I,l as ct,s as zt,g as Et,z as It,A as vt,a as Bt,b as Vt,m as wt,B as Rt,h as yt,i as Wt,d as Nt}from"./index-0e08498d.js";import{l as St}from"./linear-fb1e7037.js";import"./init-77b53fdd.js";var qt=function(){var e=function(K,n,r,d){for(r=r||{},d=K.length;d--;r[K[d]]=n);return r},a=[1,3],c=[1,5],f=[1,6],g=[1,7],x=[1,8],h=[1,10],p=[1,5,14,16,18,20,21,26,28,29,30,31,32,38,39,40,41,47,48,50,51,52,53,54,55,56,57,58,59,60],s=[1,5,7,14,16,18,20,21,26,28,29,30,31,32,38,39,40,41,47,48,50,51,52,53,54,55,56,57,58,59,60],l=[38,39,40],y=[2,8],B=[1,19],W=[1,23],L=[1,24],C=[1,25],N=[1,26],M=[1,27],X=[1,29],D=[1,30],it=[1,31],at=[1,32],nt=[1,33],rt=[1,34],Q=[1,37],U=[1,38],T=[1,39],_=[1,40],t=[1,41],m=[1,42],b=[1,43],A=[1,44],S=[1,45],v=[1,46],k=[1,47],F=[1,48],P=[1,49],Tt=[1,52],O=[1,67],Y=[1,68],z=[5,23,27,38,39,40,50,51,52,53,54,55,56,57,58,59,60,61],ht=[5,7,38,39,40,41],dt={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,directive:6,QUADRANT:7,document:8,line:9,statement:10,axisDetails:11,quadrantDetails:12,points:13,title:14,title_value:15,acc_title:16,acc_title_value:17,acc_descr:18,acc_descr_value:19,acc_descr_multiline_value:20,section:21,text:22,point_start:23,point_x:24,point_y:25,"X-AXIS":26,"AXIS-TEXT-DELIMITER":27,"Y-AXIS":28,QUADRANT_1:29,QUADRANT_2:30,QUADRANT_3:31,QUADRANT_4:32,openDirective:33,typeDirective:34,closeDirective:35,":":36,argDirective:37,NEWLINE:38,SEMI:39,EOF:40,open_directive:41,type_directive:42,arg_directive:43,close_directive:44,alphaNumToken:45,textNoTagsToken:46,STR:47,MD_STR:48,alphaNum:49,PUNCTUATION:50,AMP:51,NUM:52,ALPHA:53,COMMA:54,PLUS:55,EQUALS:56,MULT:57,DOT:58,BRKT:59,UNDERSCORE:60,MINUS:61,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",7:"QUADRANT",14:"title",15:"title_value",16:"acc_title",17:"acc_title_value",18:"acc_descr",19:"acc_descr_value",20:"acc_descr_multiline_value",21:"section",23:"point_start",24:"point_x",25:"point_y",26:"X-AXIS",27:"AXIS-TEXT-DELIMITER",28:"Y-AXIS",29:"QUADRANT_1",30:"QUADRANT_2",31:"QUADRANT_3",32:"QUADRANT_4",36:":",38:"NEWLINE",39:"SEMI",40:"EOF",41:"open_directive",42:"type_directive",43:"arg_directive",44:"close_directive",47:"STR",48:"MD_STR",50:"PUNCTUATION",51:"AMP",52:"NUM",53:"ALPHA",54:"COMMA",55:"PLUS",56:"EQUALS",57:"MULT",58:"DOT",59:"BRKT",60:"UNDERSCORE",61:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[10,0],[10,2],[10,1],[10,1],[10,1],[10,2],[10,2],[10,2],[10,1],[10,1],[10,1],[13,4],[11,4],[11,3],[11,2],[11,4],[11,3],[11,2],[12,2],[12,2],[12,2],[12,2],[6,3],[6,5],[4,1],[4,1],[4,1],[33,1],[34,1],[37,1],[35,1],[22,1],[22,2],[22,1],[22,1],[49,1],[49,2],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[46,1],[46,1],[46,1]],performAction:function(n,r,d,o,q,i,et){var u=i.length-1;switch(q){case 13:this.$=i[u].trim(),o.setDiagramTitle(this.$);break;case 14:this.$=i[u].trim(),o.setAccTitle(this.$);break;case 15:case 16:this.$=i[u].trim(),o.setAccDescription(this.$);break;case 17:o.addSection(i[u].substr(8)),this.$=i[u].substr(8);break;case 19:o.addPoint(i[u-3],i[u-1],i[u]);break;case 20:o.setXAxisLeftText(i[u-2]),o.setXAxisRightText(i[u]);break;case 21:i[u-1].text+=" ⟶ ",o.setXAxisLeftText(i[u-1]);break;case 22:o.setXAxisLeftText(i[u]);break;case 23:o.setYAxisBottomText(i[u-2]),o.setYAxisTopText(i[u]);break;case 24:i[u-1].text+=" ⟶ ",o.setYAxisBottomText(i[u-1]);break;case 25:o.setYAxisBottomText(i[u]);break;case 26:o.setQuadrant1Text(i[u]);break;case 27:o.setQuadrant2Text(i[u]);break;case 28:o.setQuadrant3Text(i[u]);break;case 29:o.setQuadrant4Text(i[u]);break;case 35:o.parseDirective("%%{","open_directive");break;case 36:o.parseDirective(i[u],"type_directive");break;case 37:i[u]=i[u].trim().replace(/'/g,'"'),o.parseDirective(i[u],"arg_directive");break;case 38:o.parseDirective("}%%","close_directive","quadrantChart");break;case 39:this.$={text:i[u],type:"text"};break;case 40:this.$={text:i[u-1].text+""+i[u],type:i[u-1].type};break;case 41:this.$={text:i[u],type:"text"};break;case 42:this.$={text:i[u],type:"markdown"};break;case 43:this.$=i[u];break;case 44:this.$=i[u-1]+""+i[u];break}},table:[{3:1,4:2,5:a,6:4,7:c,33:9,38:f,39:g,40:x,41:h},{1:[3]},{3:11,4:2,5:a,6:4,7:c,33:9,38:f,39:g,40:x,41:h},{3:12,4:2,5:a,6:4,7:c,33:9,38:f,39:g,40:x,41:h},{3:13,4:2,5:a,6:4,7:c,33:9,38:f,39:g,40:x,41:h},e(p,[2,5],{8:14}),e(s,[2,32]),e(s,[2,33]),e(s,[2,34]),{34:15,42:[1,16]},{42:[2,35]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(l,y,{33:9,9:17,10:18,11:20,12:21,13:22,6:28,22:35,45:36,1:[2,4],5:B,14:W,16:L,18:C,20:N,21:M,26:X,28:D,29:it,30:at,31:nt,32:rt,41:h,47:Q,48:U,50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P}),{35:50,36:[1,51],44:Tt},e([36,44],[2,36]),e(p,[2,6]),{4:53,38:f,39:g,40:x},e(l,y,{33:9,11:20,12:21,13:22,6:28,22:35,45:36,10:54,5:B,14:W,16:L,18:C,20:N,21:M,26:X,28:D,29:it,30:at,31:nt,32:rt,41:h,47:Q,48:U,50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P}),e(l,[2,10]),e(l,[2,11]),e(l,[2,12]),{15:[1,55]},{17:[1,56]},{19:[1,57]},e(l,[2,16]),e(l,[2,17]),e(l,[2,18]),{22:58,45:36,47:Q,48:U,50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P},{22:59,45:36,47:Q,48:U,50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P},{22:60,45:36,47:Q,48:U,50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P},{22:61,45:36,47:Q,48:U,50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P},{22:62,45:36,47:Q,48:U,50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P},{22:63,45:36,47:Q,48:U,50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P},{5:O,23:[1,64],45:66,46:65,50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P,61:Y},e(z,[2,39]),e(z,[2,41]),e(z,[2,42]),e(z,[2,45]),e(z,[2,46]),e(z,[2,47]),e(z,[2,48]),e(z,[2,49]),e(z,[2,50]),e(z,[2,51]),e(z,[2,52]),e(z,[2,53]),e(z,[2,54]),e(z,[2,55]),e(ht,[2,30]),{37:69,43:[1,70]},e(ht,[2,38]),e(p,[2,7]),e(l,[2,9]),e(l,[2,13]),e(l,[2,14]),e(l,[2,15]),e(l,[2,22],{46:65,45:66,5:O,27:[1,71],50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P,61:Y}),e(l,[2,25],{46:65,45:66,5:O,27:[1,72],50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P,61:Y}),e(l,[2,26],{46:65,45:66,5:O,50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P,61:Y}),e(l,[2,27],{46:65,45:66,5:O,50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P,61:Y}),e(l,[2,28],{46:65,45:66,5:O,50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P,61:Y}),e(l,[2,29],{46:65,45:66,5:O,50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P,61:Y}),{24:[1,73]},e(z,[2,40]),e(z,[2,56]),e(z,[2,57]),e(z,[2,58]),{35:74,44:Tt},{44:[2,37]},e(l,[2,21],{45:36,22:75,47:Q,48:U,50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P}),e(l,[2,24],{45:36,22:76,47:Q,48:U,50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P}),{25:[1,77]},e(ht,[2,31]),e(l,[2,20],{46:65,45:66,5:O,50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P,61:Y}),e(l,[2,23],{46:65,45:66,5:O,50:T,51:_,52:t,53:m,54:b,55:A,56:S,57:v,58:k,59:F,60:P,61:Y}),e(l,[2,19])],defaultActions:{10:[2,35],11:[2,1],12:[2,2],13:[2,3],70:[2,37]},parseError:function(n,r){if(r.recoverable)this.trace(n);else{var d=new Error(n);throw d.hash=r,d}},parse:function(n){var r=this,d=[0],o=[],q=[null],i=[],et=this.table,u="",st=0,mt=0,Ft=2,bt=1,Pt=i.slice.call(arguments,1),E=Object.create(this.lexer),Z={yy:{}};for(var xt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xt)&&(Z.yy[xt]=this.yy[xt]);E.setInput(n,Z.yy),Z.yy.lexer=E,Z.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var ft=E.yylloc;i.push(ft);var Lt=E.options&&E.options.ranges;typeof Z.yy.parseError=="function"?this.parseError=Z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ct(){var G;return G=o.pop()||E.lex()||bt,typeof G!="number"&&(G instanceof Array&&(o=G,G=o.pop()),G=r.symbols_[G]||G),G}for(var R,J,H,gt,tt={},lt,j,At,ot;;){if(J=d[d.length-1],this.defaultActions[J]?H=this.defaultActions[J]:((R===null||typeof R>"u")&&(R=Ct()),H=et[J]&&et[J][R]),typeof H>"u"||!H.length||!H[0]){var pt="";ot=[];for(lt in et[J])this.terminals_[lt]&<>Ft&&ot.push("'"+this.terminals_[lt]+"'");E.showPosition?pt="Parse error on line "+(st+1)+`: `+E.showPosition()+` Expecting `+ot.join(", ")+", got '"+(this.terminals_[R]||R)+"'":pt="Parse error on line "+(st+1)+": Unexpected "+(R==bt?"end of input":"'"+(this.terminals_[R]||R)+"'"),this.parseError(pt,{text:E.match,token:this.terminals_[R]||R,line:E.yylineno,loc:ft,expected:ot})}if(H[0]instanceof Array&&H.length>1)throw new Error("Parse Error: multiple actions possible at state: "+J+", token: "+R);switch(H[0]){case 1:d.push(R),q.push(E.yytext),i.push(E.yylloc),d.push(H[1]),R=null,mt=E.yyleng,u=E.yytext,st=E.yylineno,ft=E.yylloc;break;case 2:if(j=this.productions_[H[1]][1],tt.$=q[q.length-j],tt._$={first_line:i[i.length-(j||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(j||1)].first_column,last_column:i[i.length-1].last_column},Lt&&(tt._$.range=[i[i.length-(j||1)].range[0],i[i.length-1].range[1]]),gt=this.performAction.apply(tt,[u,mt,st,Z.yy,H[1],q,i].concat(Pt)),typeof gt<"u")return gt;j&&(d=d.slice(0,-1*j*2),q=q.slice(0,-1*j),i=i.slice(0,-1*j)),d.push(this.productions_[H[1]][0]),q.push(tt.$),i.push(tt._$),At=et[d[d.length-2]][d[d.length-1]],d.push(At);break;case 3:return!0}}return!0}},kt=function(){var K={EOF:1,parseError:function(r,d){if(this.yy.parser)this.yy.parser.parseError(r,d);else throw new Error(r)},setInput:function(n,r){return this.yy=r||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var r=n.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var r=n.length,d=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),d.length-1&&(this.yylineno-=d.length-1);var q=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:d?(d.length===o.length?this.yylloc.first_column:0)+o[o.length-d.length].length-d[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[q[0],q[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var n=this.pastInput(),r=new Array(n.length+1).join("-");return n+this.upcomingInput()+` diff --git a/docs/assets/requirementDiagram-429b9d18-d6b86776.js b/docs/assets/requirementDiagram-429b9d18-dcacaeb3.js similarity index 99% rename from docs/assets/requirementDiagram-429b9d18-d6b86776.js rename to docs/assets/requirementDiagram-429b9d18-dcacaeb3.js index 033382d8..7b4b61bd 100644 --- a/docs/assets/requirementDiagram-429b9d18-d6b86776.js +++ b/docs/assets/requirementDiagram-429b9d18-dcacaeb3.js @@ -1,4 +1,4 @@ -import{c as ve,s as Fe,g as Me,b as Pe,a as Ye,m as Ue,l as xe,B as Be,h as oe,i as Qe,j as Te}from"./index-b4f98efc.js";import{G as He,l as We}from"./layout-15168dd5.js";import{l as Ke}from"./line-bade02ca.js";import"./array-9f3ba611.js";import"./path-53f90ab3.js";var he=function(){var e=function(q,r,s,l){for(s=s||{},l=q.length;l--;s[q[l]]=r);return s},t=[1,3],a=[1,5],c=[1,6],d=[1,7],u=[1,8],p=[5,6,8,14,16,18,19,40,41,42,43,44,45,53,71,72],h=[1,22],o=[2,13],g=[1,26],R=[1,27],v=[1,28],S=[1,29],T=[1,30],x=[1,31],A=[1,24],N=[1,32],w=[1,33],pe=[1,36],F=[71,72],_e=[5,8,14,16,18,19,40,41,42,43,44,45,53,60,62,71,72],fe=[1,56],ye=[1,57],ge=[1,58],Ee=[1,59],Re=[1,60],me=[1,61],Ie=[1,62],O=[62,63],M=[1,74],P=[1,70],Y=[1,71],U=[1,72],B=[1,73],Q=[1,75],j=[1,79],X=[1,80],J=[1,77],Z=[1,78],m=[5,8,14,16,18,19,40,41,42,43,44,45,53,71,72],re={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,openDirective:9,typeDirective:10,closeDirective:11,":":12,argDirective:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,requirementDef:23,elementDef:24,relationshipDef:25,requirementType:26,requirementName:27,STRUCT_START:28,requirementBody:29,ID:30,COLONSEP:31,id:32,TEXT:33,text:34,RISK:35,riskLevel:36,VERIFYMTHD:37,verifyType:38,STRUCT_STOP:39,REQUIREMENT:40,FUNCTIONAL_REQUIREMENT:41,INTERFACE_REQUIREMENT:42,PERFORMANCE_REQUIREMENT:43,PHYSICAL_REQUIREMENT:44,DESIGN_CONSTRAINT:45,LOW_RISK:46,MED_RISK:47,HIGH_RISK:48,VERIFY_ANALYSIS:49,VERIFY_DEMONSTRATION:50,VERIFY_INSPECTION:51,VERIFY_TEST:52,ELEMENT:53,elementName:54,elementBody:55,TYPE:56,type:57,DOCREF:58,ref:59,END_ARROW_L:60,relationship:61,LINE:62,END_ARROW_R:63,CONTAINS:64,COPIES:65,DERIVES:66,SATISFIES:67,VERIFIES:68,REFINES:69,TRACES:70,unqString:71,qString:72,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",12:":",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",28:"STRUCT_START",30:"ID",31:"COLONSEP",33:"TEXT",35:"RISK",37:"VERIFYMTHD",39:"STRUCT_STOP",40:"REQUIREMENT",41:"FUNCTIONAL_REQUIREMENT",42:"INTERFACE_REQUIREMENT",43:"PERFORMANCE_REQUIREMENT",44:"PHYSICAL_REQUIREMENT",45:"DESIGN_CONSTRAINT",46:"LOW_RISK",47:"MED_RISK",48:"HIGH_RISK",49:"VERIFY_ANALYSIS",50:"VERIFY_DEMONSTRATION",51:"VERIFY_INSPECTION",52:"VERIFY_TEST",53:"ELEMENT",56:"TYPE",58:"DOCREF",60:"END_ARROW_L",62:"LINE",63:"END_ARROW_R",64:"CONTAINS",65:"COPIES",66:"DERIVES",67:"SATISFIES",68:"VERIFIES",69:"REFINES",70:"TRACES",71:"unqString",72:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,3],[4,5],[4,2],[4,2],[4,1],[9,1],[10,1],[13,1],[11,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[23,5],[29,5],[29,5],[29,5],[29,5],[29,2],[29,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[36,1],[36,1],[36,1],[38,1],[38,1],[38,1],[38,1],[24,5],[55,5],[55,5],[55,2],[55,1],[25,5],[25,5],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[27,1],[27,1],[32,1],[32,1],[34,1],[34,1],[54,1],[54,1],[57,1],[57,1],[59,1],[59,1]],performAction:function(r,s,l,i,f,n,K){var _=n.length-1;switch(f){case 6:this.$=n[_].trim(),i.setAccTitle(this.$);break;case 7:case 8:this.$=n[_].trim(),i.setAccDescription(this.$);break;case 9:i.parseDirective("%%{","open_directive");break;case 10:i.parseDirective(n[_],"type_directive");break;case 11:n[_]=n[_].trim().replace(/'/g,'"'),i.parseDirective(n[_],"arg_directive");break;case 12:i.parseDirective("}%%","close_directive","pie");break;case 13:this.$=[];break;case 19:i.addRequirement(n[_-3],n[_-4]);break;case 20:i.setNewReqId(n[_-2]);break;case 21:i.setNewReqText(n[_-2]);break;case 22:i.setNewReqRisk(n[_-2]);break;case 23:i.setNewReqVerifyMethod(n[_-2]);break;case 26:this.$=i.RequirementType.REQUIREMENT;break;case 27:this.$=i.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 28:this.$=i.RequirementType.INTERFACE_REQUIREMENT;break;case 29:this.$=i.RequirementType.PERFORMANCE_REQUIREMENT;break;case 30:this.$=i.RequirementType.PHYSICAL_REQUIREMENT;break;case 31:this.$=i.RequirementType.DESIGN_CONSTRAINT;break;case 32:this.$=i.RiskLevel.LOW_RISK;break;case 33:this.$=i.RiskLevel.MED_RISK;break;case 34:this.$=i.RiskLevel.HIGH_RISK;break;case 35:this.$=i.VerifyType.VERIFY_ANALYSIS;break;case 36:this.$=i.VerifyType.VERIFY_DEMONSTRATION;break;case 37:this.$=i.VerifyType.VERIFY_INSPECTION;break;case 38:this.$=i.VerifyType.VERIFY_TEST;break;case 39:i.addElement(n[_-3]);break;case 40:i.setNewElementType(n[_-2]);break;case 41:i.setNewElementDocRef(n[_-2]);break;case 44:i.addRelationship(n[_-2],n[_],n[_-4]);break;case 45:i.addRelationship(n[_-2],n[_-4],n[_]);break;case 46:this.$=i.Relationships.CONTAINS;break;case 47:this.$=i.Relationships.COPIES;break;case 48:this.$=i.Relationships.DERIVES;break;case 49:this.$=i.Relationships.SATISFIES;break;case 50:this.$=i.Relationships.VERIFIES;break;case 51:this.$=i.Relationships.REFINES;break;case 52:this.$=i.Relationships.TRACES;break}},table:[{3:1,4:2,6:t,9:4,14:a,16:c,18:d,19:u},{1:[3]},{3:10,4:2,5:[1,9],6:t,9:4,14:a,16:c,18:d,19:u},{5:[1,11]},{10:12,20:[1,13]},{15:[1,14]},{17:[1,15]},e(p,[2,8]),{20:[2,9]},{3:16,4:2,6:t,9:4,14:a,16:c,18:d,19:u},{1:[2,2]},{4:21,5:h,7:17,8:o,9:4,14:a,16:c,18:d,19:u,23:18,24:19,25:20,26:23,32:25,40:g,41:R,42:v,43:S,44:T,45:x,53:A,71:N,72:w},{11:34,12:[1,35],22:pe},e([12,22],[2,10]),e(p,[2,6]),e(p,[2,7]),{1:[2,1]},{8:[1,37]},{4:21,5:h,7:38,8:o,9:4,14:a,16:c,18:d,19:u,23:18,24:19,25:20,26:23,32:25,40:g,41:R,42:v,43:S,44:T,45:x,53:A,71:N,72:w},{4:21,5:h,7:39,8:o,9:4,14:a,16:c,18:d,19:u,23:18,24:19,25:20,26:23,32:25,40:g,41:R,42:v,43:S,44:T,45:x,53:A,71:N,72:w},{4:21,5:h,7:40,8:o,9:4,14:a,16:c,18:d,19:u,23:18,24:19,25:20,26:23,32:25,40:g,41:R,42:v,43:S,44:T,45:x,53:A,71:N,72:w},{4:21,5:h,7:41,8:o,9:4,14:a,16:c,18:d,19:u,23:18,24:19,25:20,26:23,32:25,40:g,41:R,42:v,43:S,44:T,45:x,53:A,71:N,72:w},{4:21,5:h,7:42,8:o,9:4,14:a,16:c,18:d,19:u,23:18,24:19,25:20,26:23,32:25,40:g,41:R,42:v,43:S,44:T,45:x,53:A,71:N,72:w},{27:43,71:[1,44],72:[1,45]},{54:46,71:[1,47],72:[1,48]},{60:[1,49],62:[1,50]},e(F,[2,26]),e(F,[2,27]),e(F,[2,28]),e(F,[2,29]),e(F,[2,30]),e(F,[2,31]),e(_e,[2,55]),e(_e,[2,56]),e(p,[2,4]),{13:51,21:[1,52]},e(p,[2,12]),{1:[2,3]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{8:[2,17]},{8:[2,18]},{28:[1,53]},{28:[2,53]},{28:[2,54]},{28:[1,54]},{28:[2,59]},{28:[2,60]},{61:55,64:fe,65:ye,66:ge,67:Ee,68:Re,69:me,70:Ie},{61:63,64:fe,65:ye,66:ge,67:Ee,68:Re,69:me,70:Ie},{11:64,22:pe},{22:[2,11]},{5:[1,65]},{5:[1,66]},{62:[1,67]},e(O,[2,46]),e(O,[2,47]),e(O,[2,48]),e(O,[2,49]),e(O,[2,50]),e(O,[2,51]),e(O,[2,52]),{63:[1,68]},e(p,[2,5]),{5:M,29:69,30:P,33:Y,35:U,37:B,39:Q},{5:j,39:X,55:76,56:J,58:Z},{32:81,71:N,72:w},{32:82,71:N,72:w},e(m,[2,19]),{31:[1,83]},{31:[1,84]},{31:[1,85]},{31:[1,86]},{5:M,29:87,30:P,33:Y,35:U,37:B,39:Q},e(m,[2,25]),e(m,[2,39]),{31:[1,88]},{31:[1,89]},{5:j,39:X,55:90,56:J,58:Z},e(m,[2,43]),e(m,[2,44]),e(m,[2,45]),{32:91,71:N,72:w},{34:92,71:[1,93],72:[1,94]},{36:95,46:[1,96],47:[1,97],48:[1,98]},{38:99,49:[1,100],50:[1,101],51:[1,102],52:[1,103]},e(m,[2,24]),{57:104,71:[1,105],72:[1,106]},{59:107,71:[1,108],72:[1,109]},e(m,[2,42]),{5:[1,110]},{5:[1,111]},{5:[2,57]},{5:[2,58]},{5:[1,112]},{5:[2,32]},{5:[2,33]},{5:[2,34]},{5:[1,113]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[2,38]},{5:[1,114]},{5:[2,61]},{5:[2,62]},{5:[1,115]},{5:[2,63]},{5:[2,64]},{5:M,29:116,30:P,33:Y,35:U,37:B,39:Q},{5:M,29:117,30:P,33:Y,35:U,37:B,39:Q},{5:M,29:118,30:P,33:Y,35:U,37:B,39:Q},{5:M,29:119,30:P,33:Y,35:U,37:B,39:Q},{5:j,39:X,55:120,56:J,58:Z},{5:j,39:X,55:121,56:J,58:Z},e(m,[2,20]),e(m,[2,21]),e(m,[2,22]),e(m,[2,23]),e(m,[2,40]),e(m,[2,41])],defaultActions:{8:[2,9],10:[2,2],16:[2,1],37:[2,3],38:[2,14],39:[2,15],40:[2,16],41:[2,17],42:[2,18],44:[2,53],45:[2,54],47:[2,59],48:[2,60],52:[2,11],93:[2,57],94:[2,58],96:[2,32],97:[2,33],98:[2,34],100:[2,35],101:[2,36],102:[2,37],103:[2,38],105:[2,61],106:[2,62],108:[2,63],109:[2,64]},parseError:function(r,s){if(s.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=s,l}},parse:function(r){var s=this,l=[0],i=[],f=[null],n=[],K=this.table,_="",ee=0,be=0,Le=2,ke=1,Oe=n.slice.call(arguments,1),E=Object.create(this.lexer),C={yy:{}};for(var se in this.yy)Object.prototype.hasOwnProperty.call(this.yy,se)&&(C.yy[se]=this.yy[se]);E.setInput(r,C.yy),C.yy.lexer=E,C.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var ae=E.yylloc;n.push(ae);var Ce=E.options&&E.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function De(){var $;return $=i.pop()||E.lex()||ke,typeof $!="number"&&($ instanceof Array&&(i=$,$=i.pop()),$=s.symbols_[$]||$),$}for(var I,D,k,le,H={},te,V,Se,ie;;){if(D=l[l.length-1],this.defaultActions[D]?k=this.defaultActions[D]:((I===null||typeof I>"u")&&(I=De()),k=K[D]&&K[D][I]),typeof k>"u"||!k.length||!k[0]){var ce="";ie=[];for(te in K[D])this.terminals_[te]&&te>Le&&ie.push("'"+this.terminals_[te]+"'");E.showPosition?ce="Parse error on line "+(ee+1)+`: +import{c as ve,s as Fe,g as Me,b as Pe,a as Ye,m as Ue,l as xe,B as Be,h as oe,i as Qe,j as Te}from"./index-0e08498d.js";import{G as He,l as We}from"./layout-c97c50ff.js";import{l as Ke}from"./line-4c8e436d.js";import"./array-9f3ba611.js";import"./path-53f90ab3.js";var he=function(){var e=function(q,r,s,l){for(s=s||{},l=q.length;l--;s[q[l]]=r);return s},t=[1,3],a=[1,5],c=[1,6],d=[1,7],u=[1,8],p=[5,6,8,14,16,18,19,40,41,42,43,44,45,53,71,72],h=[1,22],o=[2,13],g=[1,26],R=[1,27],v=[1,28],S=[1,29],T=[1,30],x=[1,31],A=[1,24],N=[1,32],w=[1,33],pe=[1,36],F=[71,72],_e=[5,8,14,16,18,19,40,41,42,43,44,45,53,60,62,71,72],fe=[1,56],ye=[1,57],ge=[1,58],Ee=[1,59],Re=[1,60],me=[1,61],Ie=[1,62],O=[62,63],M=[1,74],P=[1,70],Y=[1,71],U=[1,72],B=[1,73],Q=[1,75],j=[1,79],X=[1,80],J=[1,77],Z=[1,78],m=[5,8,14,16,18,19,40,41,42,43,44,45,53,71,72],re={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,openDirective:9,typeDirective:10,closeDirective:11,":":12,argDirective:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,requirementDef:23,elementDef:24,relationshipDef:25,requirementType:26,requirementName:27,STRUCT_START:28,requirementBody:29,ID:30,COLONSEP:31,id:32,TEXT:33,text:34,RISK:35,riskLevel:36,VERIFYMTHD:37,verifyType:38,STRUCT_STOP:39,REQUIREMENT:40,FUNCTIONAL_REQUIREMENT:41,INTERFACE_REQUIREMENT:42,PERFORMANCE_REQUIREMENT:43,PHYSICAL_REQUIREMENT:44,DESIGN_CONSTRAINT:45,LOW_RISK:46,MED_RISK:47,HIGH_RISK:48,VERIFY_ANALYSIS:49,VERIFY_DEMONSTRATION:50,VERIFY_INSPECTION:51,VERIFY_TEST:52,ELEMENT:53,elementName:54,elementBody:55,TYPE:56,type:57,DOCREF:58,ref:59,END_ARROW_L:60,relationship:61,LINE:62,END_ARROW_R:63,CONTAINS:64,COPIES:65,DERIVES:66,SATISFIES:67,VERIFIES:68,REFINES:69,TRACES:70,unqString:71,qString:72,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",12:":",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",28:"STRUCT_START",30:"ID",31:"COLONSEP",33:"TEXT",35:"RISK",37:"VERIFYMTHD",39:"STRUCT_STOP",40:"REQUIREMENT",41:"FUNCTIONAL_REQUIREMENT",42:"INTERFACE_REQUIREMENT",43:"PERFORMANCE_REQUIREMENT",44:"PHYSICAL_REQUIREMENT",45:"DESIGN_CONSTRAINT",46:"LOW_RISK",47:"MED_RISK",48:"HIGH_RISK",49:"VERIFY_ANALYSIS",50:"VERIFY_DEMONSTRATION",51:"VERIFY_INSPECTION",52:"VERIFY_TEST",53:"ELEMENT",56:"TYPE",58:"DOCREF",60:"END_ARROW_L",62:"LINE",63:"END_ARROW_R",64:"CONTAINS",65:"COPIES",66:"DERIVES",67:"SATISFIES",68:"VERIFIES",69:"REFINES",70:"TRACES",71:"unqString",72:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,3],[4,5],[4,2],[4,2],[4,1],[9,1],[10,1],[13,1],[11,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[23,5],[29,5],[29,5],[29,5],[29,5],[29,2],[29,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[36,1],[36,1],[36,1],[38,1],[38,1],[38,1],[38,1],[24,5],[55,5],[55,5],[55,2],[55,1],[25,5],[25,5],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[27,1],[27,1],[32,1],[32,1],[34,1],[34,1],[54,1],[54,1],[57,1],[57,1],[59,1],[59,1]],performAction:function(r,s,l,i,f,n,K){var _=n.length-1;switch(f){case 6:this.$=n[_].trim(),i.setAccTitle(this.$);break;case 7:case 8:this.$=n[_].trim(),i.setAccDescription(this.$);break;case 9:i.parseDirective("%%{","open_directive");break;case 10:i.parseDirective(n[_],"type_directive");break;case 11:n[_]=n[_].trim().replace(/'/g,'"'),i.parseDirective(n[_],"arg_directive");break;case 12:i.parseDirective("}%%","close_directive","pie");break;case 13:this.$=[];break;case 19:i.addRequirement(n[_-3],n[_-4]);break;case 20:i.setNewReqId(n[_-2]);break;case 21:i.setNewReqText(n[_-2]);break;case 22:i.setNewReqRisk(n[_-2]);break;case 23:i.setNewReqVerifyMethod(n[_-2]);break;case 26:this.$=i.RequirementType.REQUIREMENT;break;case 27:this.$=i.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 28:this.$=i.RequirementType.INTERFACE_REQUIREMENT;break;case 29:this.$=i.RequirementType.PERFORMANCE_REQUIREMENT;break;case 30:this.$=i.RequirementType.PHYSICAL_REQUIREMENT;break;case 31:this.$=i.RequirementType.DESIGN_CONSTRAINT;break;case 32:this.$=i.RiskLevel.LOW_RISK;break;case 33:this.$=i.RiskLevel.MED_RISK;break;case 34:this.$=i.RiskLevel.HIGH_RISK;break;case 35:this.$=i.VerifyType.VERIFY_ANALYSIS;break;case 36:this.$=i.VerifyType.VERIFY_DEMONSTRATION;break;case 37:this.$=i.VerifyType.VERIFY_INSPECTION;break;case 38:this.$=i.VerifyType.VERIFY_TEST;break;case 39:i.addElement(n[_-3]);break;case 40:i.setNewElementType(n[_-2]);break;case 41:i.setNewElementDocRef(n[_-2]);break;case 44:i.addRelationship(n[_-2],n[_],n[_-4]);break;case 45:i.addRelationship(n[_-2],n[_-4],n[_]);break;case 46:this.$=i.Relationships.CONTAINS;break;case 47:this.$=i.Relationships.COPIES;break;case 48:this.$=i.Relationships.DERIVES;break;case 49:this.$=i.Relationships.SATISFIES;break;case 50:this.$=i.Relationships.VERIFIES;break;case 51:this.$=i.Relationships.REFINES;break;case 52:this.$=i.Relationships.TRACES;break}},table:[{3:1,4:2,6:t,9:4,14:a,16:c,18:d,19:u},{1:[3]},{3:10,4:2,5:[1,9],6:t,9:4,14:a,16:c,18:d,19:u},{5:[1,11]},{10:12,20:[1,13]},{15:[1,14]},{17:[1,15]},e(p,[2,8]),{20:[2,9]},{3:16,4:2,6:t,9:4,14:a,16:c,18:d,19:u},{1:[2,2]},{4:21,5:h,7:17,8:o,9:4,14:a,16:c,18:d,19:u,23:18,24:19,25:20,26:23,32:25,40:g,41:R,42:v,43:S,44:T,45:x,53:A,71:N,72:w},{11:34,12:[1,35],22:pe},e([12,22],[2,10]),e(p,[2,6]),e(p,[2,7]),{1:[2,1]},{8:[1,37]},{4:21,5:h,7:38,8:o,9:4,14:a,16:c,18:d,19:u,23:18,24:19,25:20,26:23,32:25,40:g,41:R,42:v,43:S,44:T,45:x,53:A,71:N,72:w},{4:21,5:h,7:39,8:o,9:4,14:a,16:c,18:d,19:u,23:18,24:19,25:20,26:23,32:25,40:g,41:R,42:v,43:S,44:T,45:x,53:A,71:N,72:w},{4:21,5:h,7:40,8:o,9:4,14:a,16:c,18:d,19:u,23:18,24:19,25:20,26:23,32:25,40:g,41:R,42:v,43:S,44:T,45:x,53:A,71:N,72:w},{4:21,5:h,7:41,8:o,9:4,14:a,16:c,18:d,19:u,23:18,24:19,25:20,26:23,32:25,40:g,41:R,42:v,43:S,44:T,45:x,53:A,71:N,72:w},{4:21,5:h,7:42,8:o,9:4,14:a,16:c,18:d,19:u,23:18,24:19,25:20,26:23,32:25,40:g,41:R,42:v,43:S,44:T,45:x,53:A,71:N,72:w},{27:43,71:[1,44],72:[1,45]},{54:46,71:[1,47],72:[1,48]},{60:[1,49],62:[1,50]},e(F,[2,26]),e(F,[2,27]),e(F,[2,28]),e(F,[2,29]),e(F,[2,30]),e(F,[2,31]),e(_e,[2,55]),e(_e,[2,56]),e(p,[2,4]),{13:51,21:[1,52]},e(p,[2,12]),{1:[2,3]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{8:[2,17]},{8:[2,18]},{28:[1,53]},{28:[2,53]},{28:[2,54]},{28:[1,54]},{28:[2,59]},{28:[2,60]},{61:55,64:fe,65:ye,66:ge,67:Ee,68:Re,69:me,70:Ie},{61:63,64:fe,65:ye,66:ge,67:Ee,68:Re,69:me,70:Ie},{11:64,22:pe},{22:[2,11]},{5:[1,65]},{5:[1,66]},{62:[1,67]},e(O,[2,46]),e(O,[2,47]),e(O,[2,48]),e(O,[2,49]),e(O,[2,50]),e(O,[2,51]),e(O,[2,52]),{63:[1,68]},e(p,[2,5]),{5:M,29:69,30:P,33:Y,35:U,37:B,39:Q},{5:j,39:X,55:76,56:J,58:Z},{32:81,71:N,72:w},{32:82,71:N,72:w},e(m,[2,19]),{31:[1,83]},{31:[1,84]},{31:[1,85]},{31:[1,86]},{5:M,29:87,30:P,33:Y,35:U,37:B,39:Q},e(m,[2,25]),e(m,[2,39]),{31:[1,88]},{31:[1,89]},{5:j,39:X,55:90,56:J,58:Z},e(m,[2,43]),e(m,[2,44]),e(m,[2,45]),{32:91,71:N,72:w},{34:92,71:[1,93],72:[1,94]},{36:95,46:[1,96],47:[1,97],48:[1,98]},{38:99,49:[1,100],50:[1,101],51:[1,102],52:[1,103]},e(m,[2,24]),{57:104,71:[1,105],72:[1,106]},{59:107,71:[1,108],72:[1,109]},e(m,[2,42]),{5:[1,110]},{5:[1,111]},{5:[2,57]},{5:[2,58]},{5:[1,112]},{5:[2,32]},{5:[2,33]},{5:[2,34]},{5:[1,113]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[2,38]},{5:[1,114]},{5:[2,61]},{5:[2,62]},{5:[1,115]},{5:[2,63]},{5:[2,64]},{5:M,29:116,30:P,33:Y,35:U,37:B,39:Q},{5:M,29:117,30:P,33:Y,35:U,37:B,39:Q},{5:M,29:118,30:P,33:Y,35:U,37:B,39:Q},{5:M,29:119,30:P,33:Y,35:U,37:B,39:Q},{5:j,39:X,55:120,56:J,58:Z},{5:j,39:X,55:121,56:J,58:Z},e(m,[2,20]),e(m,[2,21]),e(m,[2,22]),e(m,[2,23]),e(m,[2,40]),e(m,[2,41])],defaultActions:{8:[2,9],10:[2,2],16:[2,1],37:[2,3],38:[2,14],39:[2,15],40:[2,16],41:[2,17],42:[2,18],44:[2,53],45:[2,54],47:[2,59],48:[2,60],52:[2,11],93:[2,57],94:[2,58],96:[2,32],97:[2,33],98:[2,34],100:[2,35],101:[2,36],102:[2,37],103:[2,38],105:[2,61],106:[2,62],108:[2,63],109:[2,64]},parseError:function(r,s){if(s.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=s,l}},parse:function(r){var s=this,l=[0],i=[],f=[null],n=[],K=this.table,_="",ee=0,be=0,Le=2,ke=1,Oe=n.slice.call(arguments,1),E=Object.create(this.lexer),C={yy:{}};for(var se in this.yy)Object.prototype.hasOwnProperty.call(this.yy,se)&&(C.yy[se]=this.yy[se]);E.setInput(r,C.yy),C.yy.lexer=E,C.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var ae=E.yylloc;n.push(ae);var Ce=E.options&&E.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function De(){var $;return $=i.pop()||E.lex()||ke,typeof $!="number"&&($ instanceof Array&&(i=$,$=i.pop()),$=s.symbols_[$]||$),$}for(var I,D,k,le,H={},te,V,Se,ie;;){if(D=l[l.length-1],this.defaultActions[D]?k=this.defaultActions[D]:((I===null||typeof I>"u")&&(I=De()),k=K[D]&&K[D][I]),typeof k>"u"||!k.length||!k[0]){var ce="";ie=[];for(te in K[D])this.terminals_[te]&&te>Le&&ie.push("'"+this.terminals_[te]+"'");E.showPosition?ce="Parse error on line "+(ee+1)+`: `+E.showPosition()+` Expecting `+ie.join(", ")+", got '"+(this.terminals_[I]||I)+"'":ce="Parse error on line "+(ee+1)+": Unexpected "+(I==ke?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(ce,{text:E.match,token:this.terminals_[I]||I,line:E.yylineno,loc:ae,expected:ie})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+D+", token: "+I);switch(k[0]){case 1:l.push(I),f.push(E.yytext),n.push(E.yylloc),l.push(k[1]),I=null,be=E.yyleng,_=E.yytext,ee=E.yylineno,ae=E.yylloc;break;case 2:if(V=this.productions_[k[1]][1],H.$=f[f.length-V],H._$={first_line:n[n.length-(V||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(V||1)].first_column,last_column:n[n.length-1].last_column},Ce&&(H._$.range=[n[n.length-(V||1)].range[0],n[n.length-1].range[1]]),le=this.performAction.apply(H,[_,be,ee,C.yy,k[1],f,n].concat(Oe)),typeof le<"u")return le;V&&(l=l.slice(0,-1*V*2),f=f.slice(0,-1*V),n=n.slice(0,-1*V)),l.push(this.productions_[k[1]][0]),f.push(H.$),n.push(H._$),Se=K[l[l.length-2]][l[l.length-1]],l.push(Se);break;case 3:return!0}}return!0}},qe=function(){var q={EOF:1,parseError:function(s,l){if(this.yy.parser)this.yy.parser.parseError(s,l);else throw new Error(s)},setInput:function(r,s){return this.yy=s||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var s=r.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},unput:function(r){var s=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===i.length?this.yylloc.first_column:0)+i[i.length-l.length].length-l[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),s=new Array(r.length+1).join("-");return r+this.upcomingInput()+` diff --git a/docs/assets/selectAll-73b48e14.js b/docs/assets/selectAll-ad8aa736.js similarity index 67% rename from docs/assets/selectAll-73b48e14.js rename to docs/assets/selectAll-ad8aa736.js index ad021a4b..7bf7670a 100644 --- a/docs/assets/selectAll-73b48e14.js +++ b/docs/assets/selectAll-ad8aa736.js @@ -1 +1 @@ -import{a2 as t,a3 as n,a4 as o}from"./index-b4f98efc.js";function r(e){return typeof e=="string"?new t([document.querySelectorAll(e)],[document.documentElement]):new t([o(e)],n)}export{r as s}; +import{a2 as t,a3 as n,a4 as o}from"./index-0e08498d.js";function r(e){return typeof e=="string"?new t([document.querySelectorAll(e)],[document.documentElement]):new t([o(e)],n)}export{r as s}; diff --git a/docs/assets/sequenceDiagram-9506b40c-1ccc68e8.js b/docs/assets/sequenceDiagram-9506b40c-b277b1e6.js similarity index 99% rename from docs/assets/sequenceDiagram-9506b40c-1ccc68e8.js rename to docs/assets/sequenceDiagram-9506b40c-b277b1e6.js index e41a8a88..a8911b7f 100644 --- a/docs/assets/sequenceDiagram-9506b40c-1ccc68e8.js +++ b/docs/assets/sequenceDiagram-9506b40c-b277b1e6.js @@ -1,4 +1,4 @@ -import{g as me,A as ve,z as we,c as lt,s as te,b as _e,a as ke,m as Pe,B as Le,l as K,d as Lt,j as w,e as Ie,h as Pt,i as Ne,x as C,n as ee,T as ie,a0 as Ae,a1 as Se}from"./index-b4f98efc.js";import{d as Me,a as Re,g as It,b as De,c as Ve,e as zt}from"./svgDrawCommon-f26cad39-39fd75a0.js";import{s as Ce}from"./selectAll-73b48e14.js";var Bt=function(){var t=function(ot,b,_,P){for(_=_||{},P=ot.length;P--;_[ot[P]]=b);return _},e=[1,2],r=[1,3],i=[1,5],s=[1,7],n=[2,5],c=[1,15],l=[1,17],p=[1,19],d=[1,21],T=[1,22],y=[1,23],u=[1,29],x=[1,30],m=[1,31],L=[1,32],A=[1,33],M=[1,34],I=[1,35],Y=[1,36],V=[1,37],H=[1,38],G=[1,39],W=[1,40],O=[1,41],X=[1,43],F=[1,44],q=[1,46],U=[1,47],J=[1,48],Z=[1,49],v=[1,50],E=[1,51],j=[1,54],k=[1,4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,49,51,52,53,54,55,57,58,63,64,65,66,74,84],N=[4,5,21,55,57],vt=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,49,51,55,57,58,63,64,65,66,74,84],Gt=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,49,51,54,55,57,58,63,64,65,66,74,84],St=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,49,51,53,55,57,58,63,64,65,66,74,84],Xt=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,49,51,52,55,57,58,63,64,65,66,74,84],rt=[72,73,74],it=[1,128],Jt=[1,4,5,7,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,49,51,52,53,54,55,57,58,63,64,65,66,74,84],Mt={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,directive:6,SD:7,document:8,line:9,statement:10,box_section:11,box_line:12,participant_statement:13,openDirective:14,typeDirective:15,closeDirective:16,":":17,argDirective:18,box:19,restOfLine:20,end:21,signal:22,autonumber:23,NUM:24,off:25,activate:26,actor:27,deactivate:28,note_statement:29,links_statement:30,link_statement:31,properties_statement:32,details_statement:33,title:34,legacy_title:35,acc_title:36,acc_title_value:37,acc_descr:38,acc_descr_value:39,acc_descr_multiline_value:40,loop:41,rect:42,opt:43,alt:44,else_sections:45,par:46,par_sections:47,par_over:48,critical:49,option_sections:50,break:51,option:52,and:53,else:54,participant:55,AS:56,participant_actor:57,note:58,placement:59,text2:60,over:61,actor_pair:62,links:63,link:64,properties:65,details:66,spaceList:67,",":68,left_of:69,right_of:70,signaltype:71,"+":72,"-":73,ACTOR:74,SOLID_OPEN_ARROW:75,DOTTED_OPEN_ARROW:76,SOLID_ARROW:77,DOTTED_ARROW:78,SOLID_CROSS:79,DOTTED_CROSS:80,SOLID_POINT:81,DOTTED_POINT:82,TXT:83,open_directive:84,type_directive:85,arg_directive:86,close_directive:87,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",7:"SD",17:":",19:"box",20:"restOfLine",21:"end",23:"autonumber",24:"NUM",25:"off",26:"activate",28:"deactivate",34:"title",35:"legacy_title",36:"acc_title",37:"acc_title_value",38:"acc_descr",39:"acc_descr_value",40:"acc_descr_multiline_value",41:"loop",42:"rect",43:"opt",44:"alt",46:"par",48:"par_over",49:"critical",51:"break",52:"option",53:"and",54:"else",55:"participant",56:"AS",57:"participant_actor",58:"note",61:"over",63:"links",64:"link",65:"properties",66:"details",68:",",69:"left_of",70:"right_of",72:"+",73:"-",74:"ACTOR",75:"SOLID_OPEN_ARROW",76:"DOTTED_OPEN_ARROW",77:"SOLID_ARROW",78:"DOTTED_ARROW",79:"SOLID_CROSS",80:"DOTTED_CROSS",81:"SOLID_POINT",82:"DOTTED_POINT",83:"TXT",84:"open_directive",85:"type_directive",86:"arg_directive",87:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[11,0],[11,2],[12,2],[12,1],[12,1],[6,4],[6,6],[10,1],[10,4],[10,2],[10,4],[10,3],[10,3],[10,2],[10,3],[10,3],[10,2],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,2],[10,2],[10,1],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[50,1],[50,4],[47,1],[47,4],[45,1],[45,4],[13,5],[13,3],[13,5],[13,3],[29,4],[29,4],[30,3],[31,3],[32,3],[33,3],[67,2],[67,1],[62,3],[62,1],[59,1],[59,1],[22,5],[22,5],[22,4],[27,1],[71,1],[71,1],[71,1],[71,1],[71,1],[71,1],[71,1],[71,1],[60,1],[14,1],[15,1],[18,1],[16,1]],performAction:function(b,_,P,g,S,o,yt){var h=o.length-1;switch(S){case 4:return g.apply(o[h]),o[h];case 5:case 10:this.$=[];break;case 6:case 11:o[h-1].push(o[h]),this.$=o[h-1];break;case 7:case 8:case 12:case 13:this.$=o[h];break;case 9:case 14:this.$=[];break;case 18:o[h-1].unshift({type:"boxStart",boxData:g.parseBoxData(o[h-2])}),o[h-1].push({type:"boxEnd",boxText:o[h-2]}),this.$=o[h-1];break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(o[h-2]),sequenceIndexStep:Number(o[h-1]),sequenceVisible:!0,signalType:g.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceIndex:Number(o[h-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:g.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:g.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:g.LINETYPE.AUTONUMBER};break;case 24:this.$={type:"activeStart",signalType:g.LINETYPE.ACTIVE_START,actor:o[h-1]};break;case 25:this.$={type:"activeEnd",signalType:g.LINETYPE.ACTIVE_END,actor:o[h-1]};break;case 31:g.setDiagramTitle(o[h].substring(6)),this.$=o[h].substring(6);break;case 32:g.setDiagramTitle(o[h].substring(7)),this.$=o[h].substring(7);break;case 33:this.$=o[h].trim(),g.setAccTitle(this.$);break;case 34:case 35:this.$=o[h].trim(),g.setAccDescription(this.$);break;case 36:o[h-1].unshift({type:"loopStart",loopText:g.parseMessage(o[h-2]),signalType:g.LINETYPE.LOOP_START}),o[h-1].push({type:"loopEnd",loopText:o[h-2],signalType:g.LINETYPE.LOOP_END}),this.$=o[h-1];break;case 37:o[h-1].unshift({type:"rectStart",color:g.parseMessage(o[h-2]),signalType:g.LINETYPE.RECT_START}),o[h-1].push({type:"rectEnd",color:g.parseMessage(o[h-2]),signalType:g.LINETYPE.RECT_END}),this.$=o[h-1];break;case 38:o[h-1].unshift({type:"optStart",optText:g.parseMessage(o[h-2]),signalType:g.LINETYPE.OPT_START}),o[h-1].push({type:"optEnd",optText:g.parseMessage(o[h-2]),signalType:g.LINETYPE.OPT_END}),this.$=o[h-1];break;case 39:o[h-1].unshift({type:"altStart",altText:g.parseMessage(o[h-2]),signalType:g.LINETYPE.ALT_START}),o[h-1].push({type:"altEnd",signalType:g.LINETYPE.ALT_END}),this.$=o[h-1];break;case 40:o[h-1].unshift({type:"parStart",parText:g.parseMessage(o[h-2]),signalType:g.LINETYPE.PAR_START}),o[h-1].push({type:"parEnd",signalType:g.LINETYPE.PAR_END}),this.$=o[h-1];break;case 41:o[h-1].unshift({type:"parStart",parText:g.parseMessage(o[h-2]),signalType:g.LINETYPE.PAR_OVER_START}),o[h-1].push({type:"parEnd",signalType:g.LINETYPE.PAR_END}),this.$=o[h-1];break;case 42:o[h-1].unshift({type:"criticalStart",criticalText:g.parseMessage(o[h-2]),signalType:g.LINETYPE.CRITICAL_START}),o[h-1].push({type:"criticalEnd",signalType:g.LINETYPE.CRITICAL_END}),this.$=o[h-1];break;case 43:o[h-1].unshift({type:"breakStart",breakText:g.parseMessage(o[h-2]),signalType:g.LINETYPE.BREAK_START}),o[h-1].push({type:"breakEnd",optText:g.parseMessage(o[h-2]),signalType:g.LINETYPE.BREAK_END}),this.$=o[h-1];break;case 46:this.$=o[h-3].concat([{type:"option",optionText:g.parseMessage(o[h-1]),signalType:g.LINETYPE.CRITICAL_OPTION},o[h]]);break;case 48:this.$=o[h-3].concat([{type:"and",parText:g.parseMessage(o[h-1]),signalType:g.LINETYPE.PAR_AND},o[h]]);break;case 50:this.$=o[h-3].concat([{type:"else",altText:g.parseMessage(o[h-1]),signalType:g.LINETYPE.ALT_ELSE},o[h]]);break;case 51:o[h-3].type="addParticipant",o[h-3].description=g.parseMessage(o[h-1]),this.$=o[h-3];break;case 52:o[h-1].type="addParticipant",this.$=o[h-1];break;case 53:o[h-3].type="addActor",o[h-3].description=g.parseMessage(o[h-1]),this.$=o[h-3];break;case 54:o[h-1].type="addActor",this.$=o[h-1];break;case 55:this.$=[o[h-1],{type:"addNote",placement:o[h-2],actor:o[h-1].actor,text:o[h]}];break;case 56:o[h-2]=[].concat(o[h-1],o[h-1]).slice(0,2),o[h-2][0]=o[h-2][0].actor,o[h-2][1]=o[h-2][1].actor,this.$=[o[h-1],{type:"addNote",placement:g.PLACEMENT.OVER,actor:o[h-2].slice(0,2),text:o[h]}];break;case 57:this.$=[o[h-1],{type:"addLinks",actor:o[h-1].actor,text:o[h]}];break;case 58:this.$=[o[h-1],{type:"addALink",actor:o[h-1].actor,text:o[h]}];break;case 59:this.$=[o[h-1],{type:"addProperties",actor:o[h-1].actor,text:o[h]}];break;case 60:this.$=[o[h-1],{type:"addDetails",actor:o[h-1].actor,text:o[h]}];break;case 63:this.$=[o[h-2],o[h]];break;case 64:this.$=o[h];break;case 65:this.$=g.PLACEMENT.LEFTOF;break;case 66:this.$=g.PLACEMENT.RIGHTOF;break;case 67:this.$=[o[h-4],o[h-1],{type:"addMessage",from:o[h-4].actor,to:o[h-1].actor,signalType:o[h-3],msg:o[h]},{type:"activeStart",signalType:g.LINETYPE.ACTIVE_START,actor:o[h-1]}];break;case 68:this.$=[o[h-4],o[h-1],{type:"addMessage",from:o[h-4].actor,to:o[h-1].actor,signalType:o[h-3],msg:o[h]},{type:"activeEnd",signalType:g.LINETYPE.ACTIVE_END,actor:o[h-4]}];break;case 69:this.$=[o[h-3],o[h-1],{type:"addMessage",from:o[h-3].actor,to:o[h-1].actor,signalType:o[h-2],msg:o[h]}];break;case 70:this.$={type:"addParticipant",actor:o[h]};break;case 71:this.$=g.LINETYPE.SOLID_OPEN;break;case 72:this.$=g.LINETYPE.DOTTED_OPEN;break;case 73:this.$=g.LINETYPE.SOLID;break;case 74:this.$=g.LINETYPE.DOTTED;break;case 75:this.$=g.LINETYPE.SOLID_CROSS;break;case 76:this.$=g.LINETYPE.DOTTED_CROSS;break;case 77:this.$=g.LINETYPE.SOLID_POINT;break;case 78:this.$=g.LINETYPE.DOTTED_POINT;break;case 79:this.$=g.parseMessage(o[h].trim().substring(1));break;case 80:g.parseDirective("%%{","open_directive");break;case 81:g.parseDirective(o[h],"type_directive");break;case 82:o[h]=o[h].trim().replace(/'/g,'"'),g.parseDirective(o[h],"arg_directive");break;case 83:g.parseDirective("}%%","close_directive","sequence");break}},table:[{3:1,4:e,5:r,6:4,7:i,14:6,84:s},{1:[3]},{3:8,4:e,5:r,6:4,7:i,14:6,84:s},{3:9,4:e,5:r,6:4,7:i,14:6,84:s},{3:10,4:e,5:r,6:4,7:i,14:6,84:s},t([1,4,5,19,23,26,28,34,35,36,38,40,41,42,43,44,46,48,49,51,55,57,58,63,64,65,66,74,84],n,{8:11}),{15:12,85:[1,13]},{85:[2,80]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:c,5:l,6:42,9:14,10:16,13:18,14:6,19:p,22:20,23:d,26:T,27:45,28:y,29:24,30:25,31:26,32:27,33:28,34:u,35:x,36:m,38:L,40:A,41:M,42:I,43:Y,44:V,46:H,48:G,49:W,51:O,55:X,57:F,58:q,63:U,64:J,65:Z,66:v,74:E,84:s},{16:52,17:[1,53],87:j},t([17,87],[2,81]),t(k,[2,6]),{6:42,10:55,13:18,14:6,19:p,22:20,23:d,26:T,27:45,28:y,29:24,30:25,31:26,32:27,33:28,34:u,35:x,36:m,38:L,40:A,41:M,42:I,43:Y,44:V,46:H,48:G,49:W,51:O,55:X,57:F,58:q,63:U,64:J,65:Z,66:v,74:E,84:s},t(k,[2,8]),t(k,[2,9]),t(k,[2,17]),{20:[1,56]},{5:[1,57]},{5:[1,60],24:[1,58],25:[1,59]},{27:61,74:E},{27:62,74:E},{5:[1,63]},{5:[1,64]},{5:[1,65]},{5:[1,66]},{5:[1,67]},t(k,[2,31]),t(k,[2,32]),{37:[1,68]},{39:[1,69]},t(k,[2,35]),{20:[1,70]},{20:[1,71]},{20:[1,72]},{20:[1,73]},{20:[1,74]},{20:[1,75]},{20:[1,76]},{20:[1,77]},t(k,[2,44]),{27:78,74:E},{27:79,74:E},{71:80,75:[1,81],76:[1,82],77:[1,83],78:[1,84],79:[1,85],80:[1,86],81:[1,87],82:[1,88]},{59:89,61:[1,90],69:[1,91],70:[1,92]},{27:93,74:E},{27:94,74:E},{27:95,74:E},{27:96,74:E},t([5,56,68,75,76,77,78,79,80,81,82,83],[2,70]),{5:[1,97]},{18:98,86:[1,99]},{5:[2,83]},t(k,[2,7]),t(N,[2,10],{11:100}),t(k,[2,19]),{5:[1,102],24:[1,101]},{5:[1,103]},t(k,[2,23]),{5:[1,104]},{5:[1,105]},t(k,[2,26]),t(k,[2,27]),t(k,[2,28]),t(k,[2,29]),t(k,[2,30]),t(k,[2,33]),t(k,[2,34]),t(vt,n,{8:106}),t(vt,n,{8:107}),t(vt,n,{8:108}),t(Gt,n,{45:109,8:110}),t(St,n,{47:111,8:112}),t(St,n,{8:112,47:113}),t(Xt,n,{50:114,8:115}),t(vt,n,{8:116}),{5:[1,118],56:[1,117]},{5:[1,120],56:[1,119]},{27:123,72:[1,121],73:[1,122],74:E},t(rt,[2,71]),t(rt,[2,72]),t(rt,[2,73]),t(rt,[2,74]),t(rt,[2,75]),t(rt,[2,76]),t(rt,[2,77]),t(rt,[2,78]),{27:124,74:E},{27:126,62:125,74:E},{74:[2,65]},{74:[2,66]},{60:127,83:it},{60:129,83:it},{60:130,83:it},{60:131,83:it},t(Jt,[2,15]),{16:132,87:j},{87:[2,82]},{4:[1,135],5:[1,137],12:134,13:136,21:[1,133],55:X,57:F},{5:[1,138]},t(k,[2,21]),t(k,[2,22]),t(k,[2,24]),t(k,[2,25]),{4:c,5:l,6:42,9:14,10:16,13:18,14:6,19:p,21:[1,139],22:20,23:d,26:T,27:45,28:y,29:24,30:25,31:26,32:27,33:28,34:u,35:x,36:m,38:L,40:A,41:M,42:I,43:Y,44:V,46:H,48:G,49:W,51:O,55:X,57:F,58:q,63:U,64:J,65:Z,66:v,74:E,84:s},{4:c,5:l,6:42,9:14,10:16,13:18,14:6,19:p,21:[1,140],22:20,23:d,26:T,27:45,28:y,29:24,30:25,31:26,32:27,33:28,34:u,35:x,36:m,38:L,40:A,41:M,42:I,43:Y,44:V,46:H,48:G,49:W,51:O,55:X,57:F,58:q,63:U,64:J,65:Z,66:v,74:E,84:s},{4:c,5:l,6:42,9:14,10:16,13:18,14:6,19:p,21:[1,141],22:20,23:d,26:T,27:45,28:y,29:24,30:25,31:26,32:27,33:28,34:u,35:x,36:m,38:L,40:A,41:M,42:I,43:Y,44:V,46:H,48:G,49:W,51:O,55:X,57:F,58:q,63:U,64:J,65:Z,66:v,74:E,84:s},{21:[1,142]},{4:c,5:l,6:42,9:14,10:16,13:18,14:6,19:p,21:[2,49],22:20,23:d,26:T,27:45,28:y,29:24,30:25,31:26,32:27,33:28,34:u,35:x,36:m,38:L,40:A,41:M,42:I,43:Y,44:V,46:H,48:G,49:W,51:O,54:[1,143],55:X,57:F,58:q,63:U,64:J,65:Z,66:v,74:E,84:s},{21:[1,144]},{4:c,5:l,6:42,9:14,10:16,13:18,14:6,19:p,21:[2,47],22:20,23:d,26:T,27:45,28:y,29:24,30:25,31:26,32:27,33:28,34:u,35:x,36:m,38:L,40:A,41:M,42:I,43:Y,44:V,46:H,48:G,49:W,51:O,53:[1,145],55:X,57:F,58:q,63:U,64:J,65:Z,66:v,74:E,84:s},{21:[1,146]},{21:[1,147]},{4:c,5:l,6:42,9:14,10:16,13:18,14:6,19:p,21:[2,45],22:20,23:d,26:T,27:45,28:y,29:24,30:25,31:26,32:27,33:28,34:u,35:x,36:m,38:L,40:A,41:M,42:I,43:Y,44:V,46:H,48:G,49:W,51:O,52:[1,148],55:X,57:F,58:q,63:U,64:J,65:Z,66:v,74:E,84:s},{4:c,5:l,6:42,9:14,10:16,13:18,14:6,19:p,21:[1,149],22:20,23:d,26:T,27:45,28:y,29:24,30:25,31:26,32:27,33:28,34:u,35:x,36:m,38:L,40:A,41:M,42:I,43:Y,44:V,46:H,48:G,49:W,51:O,55:X,57:F,58:q,63:U,64:J,65:Z,66:v,74:E,84:s},{20:[1,150]},t(k,[2,52]),{20:[1,151]},t(k,[2,54]),{27:152,74:E},{27:153,74:E},{60:154,83:it},{60:155,83:it},{60:156,83:it},{68:[1,157],83:[2,64]},{5:[2,57]},{5:[2,79]},{5:[2,58]},{5:[2,59]},{5:[2,60]},{5:[1,158]},t(k,[2,18]),t(N,[2,11]),{13:159,55:X,57:F},t(N,[2,13]),t(N,[2,14]),t(k,[2,20]),t(k,[2,36]),t(k,[2,37]),t(k,[2,38]),t(k,[2,39]),{20:[1,160]},t(k,[2,40]),{20:[1,161]},t(k,[2,41]),t(k,[2,42]),{20:[1,162]},t(k,[2,43]),{5:[1,163]},{5:[1,164]},{60:165,83:it},{60:166,83:it},{5:[2,69]},{5:[2,55]},{5:[2,56]},{27:167,74:E},t(Jt,[2,16]),t(N,[2,12]),t(Gt,n,{8:110,45:168}),t(St,n,{8:112,47:169}),t(Xt,n,{8:115,50:170}),t(k,[2,51]),t(k,[2,53]),{5:[2,67]},{5:[2,68]},{83:[2,63]},{21:[2,50]},{21:[2,48]},{21:[2,46]}],defaultActions:{7:[2,80],8:[2,1],9:[2,2],10:[2,3],54:[2,83],91:[2,65],92:[2,66],99:[2,82],127:[2,57],128:[2,79],129:[2,58],130:[2,59],131:[2,60],154:[2,69],155:[2,55],156:[2,56],165:[2,67],166:[2,68],167:[2,63],168:[2,50],169:[2,48],170:[2,46]},parseError:function(b,_){if(_.recoverable)this.trace(b);else{var P=new Error(b);throw P.hash=_,P}},parse:function(b){var _=this,P=[0],g=[],S=[null],o=[],yt=this.table,h="",wt=0,Zt=0,Te=2,Qt=1,ye=o.slice.call(arguments,1),B=Object.create(this.lexer),ht={yy:{}};for(var Dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Dt)&&(ht.yy[Dt]=this.yy[Dt]);B.setInput(b,ht.yy),ht.yy.lexer=B,ht.yy.parser=this,typeof B.yylloc>"u"&&(B.yylloc={});var Vt=B.yylloc;o.push(Vt);var Ee=B.options&&B.options.ranges;typeof ht.yy.parseError=="function"?this.parseError=ht.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function be(){var nt;return nt=g.pop()||B.lex()||Qt,typeof nt!="number"&&(nt instanceof Array&&(g=nt,nt=g.pop()),nt=_.symbols_[nt]||nt),nt}for(var z,dt,Q,Ct,ft={},_t,st,jt,kt;;){if(dt=P[P.length-1],this.defaultActions[dt]?Q=this.defaultActions[dt]:((z===null||typeof z>"u")&&(z=be()),Q=yt[dt]&&yt[dt][z]),typeof Q>"u"||!Q.length||!Q[0]){var Ot="";kt=[];for(_t in yt[dt])this.terminals_[_t]&&_t>Te&&kt.push("'"+this.terminals_[_t]+"'");B.showPosition?Ot="Parse error on line "+(wt+1)+`: +import{g as me,A as ve,z as we,c as lt,s as te,b as _e,a as ke,m as Pe,B as Le,l as K,d as Lt,j as w,e as Ie,h as Pt,i as Ne,x as C,n as ee,T as ie,a0 as Ae,a1 as Se}from"./index-0e08498d.js";import{d as Me,a as Re,g as It,b as De,c as Ve,e as zt}from"./svgDrawCommon-f26cad39-ad1bc4a5.js";import{s as Ce}from"./selectAll-ad8aa736.js";var Bt=function(){var t=function(ot,b,_,P){for(_=_||{},P=ot.length;P--;_[ot[P]]=b);return _},e=[1,2],r=[1,3],i=[1,5],s=[1,7],n=[2,5],c=[1,15],l=[1,17],p=[1,19],d=[1,21],T=[1,22],y=[1,23],u=[1,29],x=[1,30],m=[1,31],L=[1,32],A=[1,33],M=[1,34],I=[1,35],Y=[1,36],V=[1,37],H=[1,38],G=[1,39],W=[1,40],O=[1,41],X=[1,43],F=[1,44],q=[1,46],U=[1,47],J=[1,48],Z=[1,49],v=[1,50],E=[1,51],j=[1,54],k=[1,4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,49,51,52,53,54,55,57,58,63,64,65,66,74,84],N=[4,5,21,55,57],vt=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,49,51,55,57,58,63,64,65,66,74,84],Gt=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,49,51,54,55,57,58,63,64,65,66,74,84],St=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,49,51,53,55,57,58,63,64,65,66,74,84],Xt=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,49,51,52,55,57,58,63,64,65,66,74,84],rt=[72,73,74],it=[1,128],Jt=[1,4,5,7,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,49,51,52,53,54,55,57,58,63,64,65,66,74,84],Mt={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,directive:6,SD:7,document:8,line:9,statement:10,box_section:11,box_line:12,participant_statement:13,openDirective:14,typeDirective:15,closeDirective:16,":":17,argDirective:18,box:19,restOfLine:20,end:21,signal:22,autonumber:23,NUM:24,off:25,activate:26,actor:27,deactivate:28,note_statement:29,links_statement:30,link_statement:31,properties_statement:32,details_statement:33,title:34,legacy_title:35,acc_title:36,acc_title_value:37,acc_descr:38,acc_descr_value:39,acc_descr_multiline_value:40,loop:41,rect:42,opt:43,alt:44,else_sections:45,par:46,par_sections:47,par_over:48,critical:49,option_sections:50,break:51,option:52,and:53,else:54,participant:55,AS:56,participant_actor:57,note:58,placement:59,text2:60,over:61,actor_pair:62,links:63,link:64,properties:65,details:66,spaceList:67,",":68,left_of:69,right_of:70,signaltype:71,"+":72,"-":73,ACTOR:74,SOLID_OPEN_ARROW:75,DOTTED_OPEN_ARROW:76,SOLID_ARROW:77,DOTTED_ARROW:78,SOLID_CROSS:79,DOTTED_CROSS:80,SOLID_POINT:81,DOTTED_POINT:82,TXT:83,open_directive:84,type_directive:85,arg_directive:86,close_directive:87,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",7:"SD",17:":",19:"box",20:"restOfLine",21:"end",23:"autonumber",24:"NUM",25:"off",26:"activate",28:"deactivate",34:"title",35:"legacy_title",36:"acc_title",37:"acc_title_value",38:"acc_descr",39:"acc_descr_value",40:"acc_descr_multiline_value",41:"loop",42:"rect",43:"opt",44:"alt",46:"par",48:"par_over",49:"critical",51:"break",52:"option",53:"and",54:"else",55:"participant",56:"AS",57:"participant_actor",58:"note",61:"over",63:"links",64:"link",65:"properties",66:"details",68:",",69:"left_of",70:"right_of",72:"+",73:"-",74:"ACTOR",75:"SOLID_OPEN_ARROW",76:"DOTTED_OPEN_ARROW",77:"SOLID_ARROW",78:"DOTTED_ARROW",79:"SOLID_CROSS",80:"DOTTED_CROSS",81:"SOLID_POINT",82:"DOTTED_POINT",83:"TXT",84:"open_directive",85:"type_directive",86:"arg_directive",87:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[11,0],[11,2],[12,2],[12,1],[12,1],[6,4],[6,6],[10,1],[10,4],[10,2],[10,4],[10,3],[10,3],[10,2],[10,3],[10,3],[10,2],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,2],[10,2],[10,1],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[50,1],[50,4],[47,1],[47,4],[45,1],[45,4],[13,5],[13,3],[13,5],[13,3],[29,4],[29,4],[30,3],[31,3],[32,3],[33,3],[67,2],[67,1],[62,3],[62,1],[59,1],[59,1],[22,5],[22,5],[22,4],[27,1],[71,1],[71,1],[71,1],[71,1],[71,1],[71,1],[71,1],[71,1],[60,1],[14,1],[15,1],[18,1],[16,1]],performAction:function(b,_,P,g,S,o,yt){var h=o.length-1;switch(S){case 4:return g.apply(o[h]),o[h];case 5:case 10:this.$=[];break;case 6:case 11:o[h-1].push(o[h]),this.$=o[h-1];break;case 7:case 8:case 12:case 13:this.$=o[h];break;case 9:case 14:this.$=[];break;case 18:o[h-1].unshift({type:"boxStart",boxData:g.parseBoxData(o[h-2])}),o[h-1].push({type:"boxEnd",boxText:o[h-2]}),this.$=o[h-1];break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(o[h-2]),sequenceIndexStep:Number(o[h-1]),sequenceVisible:!0,signalType:g.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceIndex:Number(o[h-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:g.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:g.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:g.LINETYPE.AUTONUMBER};break;case 24:this.$={type:"activeStart",signalType:g.LINETYPE.ACTIVE_START,actor:o[h-1]};break;case 25:this.$={type:"activeEnd",signalType:g.LINETYPE.ACTIVE_END,actor:o[h-1]};break;case 31:g.setDiagramTitle(o[h].substring(6)),this.$=o[h].substring(6);break;case 32:g.setDiagramTitle(o[h].substring(7)),this.$=o[h].substring(7);break;case 33:this.$=o[h].trim(),g.setAccTitle(this.$);break;case 34:case 35:this.$=o[h].trim(),g.setAccDescription(this.$);break;case 36:o[h-1].unshift({type:"loopStart",loopText:g.parseMessage(o[h-2]),signalType:g.LINETYPE.LOOP_START}),o[h-1].push({type:"loopEnd",loopText:o[h-2],signalType:g.LINETYPE.LOOP_END}),this.$=o[h-1];break;case 37:o[h-1].unshift({type:"rectStart",color:g.parseMessage(o[h-2]),signalType:g.LINETYPE.RECT_START}),o[h-1].push({type:"rectEnd",color:g.parseMessage(o[h-2]),signalType:g.LINETYPE.RECT_END}),this.$=o[h-1];break;case 38:o[h-1].unshift({type:"optStart",optText:g.parseMessage(o[h-2]),signalType:g.LINETYPE.OPT_START}),o[h-1].push({type:"optEnd",optText:g.parseMessage(o[h-2]),signalType:g.LINETYPE.OPT_END}),this.$=o[h-1];break;case 39:o[h-1].unshift({type:"altStart",altText:g.parseMessage(o[h-2]),signalType:g.LINETYPE.ALT_START}),o[h-1].push({type:"altEnd",signalType:g.LINETYPE.ALT_END}),this.$=o[h-1];break;case 40:o[h-1].unshift({type:"parStart",parText:g.parseMessage(o[h-2]),signalType:g.LINETYPE.PAR_START}),o[h-1].push({type:"parEnd",signalType:g.LINETYPE.PAR_END}),this.$=o[h-1];break;case 41:o[h-1].unshift({type:"parStart",parText:g.parseMessage(o[h-2]),signalType:g.LINETYPE.PAR_OVER_START}),o[h-1].push({type:"parEnd",signalType:g.LINETYPE.PAR_END}),this.$=o[h-1];break;case 42:o[h-1].unshift({type:"criticalStart",criticalText:g.parseMessage(o[h-2]),signalType:g.LINETYPE.CRITICAL_START}),o[h-1].push({type:"criticalEnd",signalType:g.LINETYPE.CRITICAL_END}),this.$=o[h-1];break;case 43:o[h-1].unshift({type:"breakStart",breakText:g.parseMessage(o[h-2]),signalType:g.LINETYPE.BREAK_START}),o[h-1].push({type:"breakEnd",optText:g.parseMessage(o[h-2]),signalType:g.LINETYPE.BREAK_END}),this.$=o[h-1];break;case 46:this.$=o[h-3].concat([{type:"option",optionText:g.parseMessage(o[h-1]),signalType:g.LINETYPE.CRITICAL_OPTION},o[h]]);break;case 48:this.$=o[h-3].concat([{type:"and",parText:g.parseMessage(o[h-1]),signalType:g.LINETYPE.PAR_AND},o[h]]);break;case 50:this.$=o[h-3].concat([{type:"else",altText:g.parseMessage(o[h-1]),signalType:g.LINETYPE.ALT_ELSE},o[h]]);break;case 51:o[h-3].type="addParticipant",o[h-3].description=g.parseMessage(o[h-1]),this.$=o[h-3];break;case 52:o[h-1].type="addParticipant",this.$=o[h-1];break;case 53:o[h-3].type="addActor",o[h-3].description=g.parseMessage(o[h-1]),this.$=o[h-3];break;case 54:o[h-1].type="addActor",this.$=o[h-1];break;case 55:this.$=[o[h-1],{type:"addNote",placement:o[h-2],actor:o[h-1].actor,text:o[h]}];break;case 56:o[h-2]=[].concat(o[h-1],o[h-1]).slice(0,2),o[h-2][0]=o[h-2][0].actor,o[h-2][1]=o[h-2][1].actor,this.$=[o[h-1],{type:"addNote",placement:g.PLACEMENT.OVER,actor:o[h-2].slice(0,2),text:o[h]}];break;case 57:this.$=[o[h-1],{type:"addLinks",actor:o[h-1].actor,text:o[h]}];break;case 58:this.$=[o[h-1],{type:"addALink",actor:o[h-1].actor,text:o[h]}];break;case 59:this.$=[o[h-1],{type:"addProperties",actor:o[h-1].actor,text:o[h]}];break;case 60:this.$=[o[h-1],{type:"addDetails",actor:o[h-1].actor,text:o[h]}];break;case 63:this.$=[o[h-2],o[h]];break;case 64:this.$=o[h];break;case 65:this.$=g.PLACEMENT.LEFTOF;break;case 66:this.$=g.PLACEMENT.RIGHTOF;break;case 67:this.$=[o[h-4],o[h-1],{type:"addMessage",from:o[h-4].actor,to:o[h-1].actor,signalType:o[h-3],msg:o[h]},{type:"activeStart",signalType:g.LINETYPE.ACTIVE_START,actor:o[h-1]}];break;case 68:this.$=[o[h-4],o[h-1],{type:"addMessage",from:o[h-4].actor,to:o[h-1].actor,signalType:o[h-3],msg:o[h]},{type:"activeEnd",signalType:g.LINETYPE.ACTIVE_END,actor:o[h-4]}];break;case 69:this.$=[o[h-3],o[h-1],{type:"addMessage",from:o[h-3].actor,to:o[h-1].actor,signalType:o[h-2],msg:o[h]}];break;case 70:this.$={type:"addParticipant",actor:o[h]};break;case 71:this.$=g.LINETYPE.SOLID_OPEN;break;case 72:this.$=g.LINETYPE.DOTTED_OPEN;break;case 73:this.$=g.LINETYPE.SOLID;break;case 74:this.$=g.LINETYPE.DOTTED;break;case 75:this.$=g.LINETYPE.SOLID_CROSS;break;case 76:this.$=g.LINETYPE.DOTTED_CROSS;break;case 77:this.$=g.LINETYPE.SOLID_POINT;break;case 78:this.$=g.LINETYPE.DOTTED_POINT;break;case 79:this.$=g.parseMessage(o[h].trim().substring(1));break;case 80:g.parseDirective("%%{","open_directive");break;case 81:g.parseDirective(o[h],"type_directive");break;case 82:o[h]=o[h].trim().replace(/'/g,'"'),g.parseDirective(o[h],"arg_directive");break;case 83:g.parseDirective("}%%","close_directive","sequence");break}},table:[{3:1,4:e,5:r,6:4,7:i,14:6,84:s},{1:[3]},{3:8,4:e,5:r,6:4,7:i,14:6,84:s},{3:9,4:e,5:r,6:4,7:i,14:6,84:s},{3:10,4:e,5:r,6:4,7:i,14:6,84:s},t([1,4,5,19,23,26,28,34,35,36,38,40,41,42,43,44,46,48,49,51,55,57,58,63,64,65,66,74,84],n,{8:11}),{15:12,85:[1,13]},{85:[2,80]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:c,5:l,6:42,9:14,10:16,13:18,14:6,19:p,22:20,23:d,26:T,27:45,28:y,29:24,30:25,31:26,32:27,33:28,34:u,35:x,36:m,38:L,40:A,41:M,42:I,43:Y,44:V,46:H,48:G,49:W,51:O,55:X,57:F,58:q,63:U,64:J,65:Z,66:v,74:E,84:s},{16:52,17:[1,53],87:j},t([17,87],[2,81]),t(k,[2,6]),{6:42,10:55,13:18,14:6,19:p,22:20,23:d,26:T,27:45,28:y,29:24,30:25,31:26,32:27,33:28,34:u,35:x,36:m,38:L,40:A,41:M,42:I,43:Y,44:V,46:H,48:G,49:W,51:O,55:X,57:F,58:q,63:U,64:J,65:Z,66:v,74:E,84:s},t(k,[2,8]),t(k,[2,9]),t(k,[2,17]),{20:[1,56]},{5:[1,57]},{5:[1,60],24:[1,58],25:[1,59]},{27:61,74:E},{27:62,74:E},{5:[1,63]},{5:[1,64]},{5:[1,65]},{5:[1,66]},{5:[1,67]},t(k,[2,31]),t(k,[2,32]),{37:[1,68]},{39:[1,69]},t(k,[2,35]),{20:[1,70]},{20:[1,71]},{20:[1,72]},{20:[1,73]},{20:[1,74]},{20:[1,75]},{20:[1,76]},{20:[1,77]},t(k,[2,44]),{27:78,74:E},{27:79,74:E},{71:80,75:[1,81],76:[1,82],77:[1,83],78:[1,84],79:[1,85],80:[1,86],81:[1,87],82:[1,88]},{59:89,61:[1,90],69:[1,91],70:[1,92]},{27:93,74:E},{27:94,74:E},{27:95,74:E},{27:96,74:E},t([5,56,68,75,76,77,78,79,80,81,82,83],[2,70]),{5:[1,97]},{18:98,86:[1,99]},{5:[2,83]},t(k,[2,7]),t(N,[2,10],{11:100}),t(k,[2,19]),{5:[1,102],24:[1,101]},{5:[1,103]},t(k,[2,23]),{5:[1,104]},{5:[1,105]},t(k,[2,26]),t(k,[2,27]),t(k,[2,28]),t(k,[2,29]),t(k,[2,30]),t(k,[2,33]),t(k,[2,34]),t(vt,n,{8:106}),t(vt,n,{8:107}),t(vt,n,{8:108}),t(Gt,n,{45:109,8:110}),t(St,n,{47:111,8:112}),t(St,n,{8:112,47:113}),t(Xt,n,{50:114,8:115}),t(vt,n,{8:116}),{5:[1,118],56:[1,117]},{5:[1,120],56:[1,119]},{27:123,72:[1,121],73:[1,122],74:E},t(rt,[2,71]),t(rt,[2,72]),t(rt,[2,73]),t(rt,[2,74]),t(rt,[2,75]),t(rt,[2,76]),t(rt,[2,77]),t(rt,[2,78]),{27:124,74:E},{27:126,62:125,74:E},{74:[2,65]},{74:[2,66]},{60:127,83:it},{60:129,83:it},{60:130,83:it},{60:131,83:it},t(Jt,[2,15]),{16:132,87:j},{87:[2,82]},{4:[1,135],5:[1,137],12:134,13:136,21:[1,133],55:X,57:F},{5:[1,138]},t(k,[2,21]),t(k,[2,22]),t(k,[2,24]),t(k,[2,25]),{4:c,5:l,6:42,9:14,10:16,13:18,14:6,19:p,21:[1,139],22:20,23:d,26:T,27:45,28:y,29:24,30:25,31:26,32:27,33:28,34:u,35:x,36:m,38:L,40:A,41:M,42:I,43:Y,44:V,46:H,48:G,49:W,51:O,55:X,57:F,58:q,63:U,64:J,65:Z,66:v,74:E,84:s},{4:c,5:l,6:42,9:14,10:16,13:18,14:6,19:p,21:[1,140],22:20,23:d,26:T,27:45,28:y,29:24,30:25,31:26,32:27,33:28,34:u,35:x,36:m,38:L,40:A,41:M,42:I,43:Y,44:V,46:H,48:G,49:W,51:O,55:X,57:F,58:q,63:U,64:J,65:Z,66:v,74:E,84:s},{4:c,5:l,6:42,9:14,10:16,13:18,14:6,19:p,21:[1,141],22:20,23:d,26:T,27:45,28:y,29:24,30:25,31:26,32:27,33:28,34:u,35:x,36:m,38:L,40:A,41:M,42:I,43:Y,44:V,46:H,48:G,49:W,51:O,55:X,57:F,58:q,63:U,64:J,65:Z,66:v,74:E,84:s},{21:[1,142]},{4:c,5:l,6:42,9:14,10:16,13:18,14:6,19:p,21:[2,49],22:20,23:d,26:T,27:45,28:y,29:24,30:25,31:26,32:27,33:28,34:u,35:x,36:m,38:L,40:A,41:M,42:I,43:Y,44:V,46:H,48:G,49:W,51:O,54:[1,143],55:X,57:F,58:q,63:U,64:J,65:Z,66:v,74:E,84:s},{21:[1,144]},{4:c,5:l,6:42,9:14,10:16,13:18,14:6,19:p,21:[2,47],22:20,23:d,26:T,27:45,28:y,29:24,30:25,31:26,32:27,33:28,34:u,35:x,36:m,38:L,40:A,41:M,42:I,43:Y,44:V,46:H,48:G,49:W,51:O,53:[1,145],55:X,57:F,58:q,63:U,64:J,65:Z,66:v,74:E,84:s},{21:[1,146]},{21:[1,147]},{4:c,5:l,6:42,9:14,10:16,13:18,14:6,19:p,21:[2,45],22:20,23:d,26:T,27:45,28:y,29:24,30:25,31:26,32:27,33:28,34:u,35:x,36:m,38:L,40:A,41:M,42:I,43:Y,44:V,46:H,48:G,49:W,51:O,52:[1,148],55:X,57:F,58:q,63:U,64:J,65:Z,66:v,74:E,84:s},{4:c,5:l,6:42,9:14,10:16,13:18,14:6,19:p,21:[1,149],22:20,23:d,26:T,27:45,28:y,29:24,30:25,31:26,32:27,33:28,34:u,35:x,36:m,38:L,40:A,41:M,42:I,43:Y,44:V,46:H,48:G,49:W,51:O,55:X,57:F,58:q,63:U,64:J,65:Z,66:v,74:E,84:s},{20:[1,150]},t(k,[2,52]),{20:[1,151]},t(k,[2,54]),{27:152,74:E},{27:153,74:E},{60:154,83:it},{60:155,83:it},{60:156,83:it},{68:[1,157],83:[2,64]},{5:[2,57]},{5:[2,79]},{5:[2,58]},{5:[2,59]},{5:[2,60]},{5:[1,158]},t(k,[2,18]),t(N,[2,11]),{13:159,55:X,57:F},t(N,[2,13]),t(N,[2,14]),t(k,[2,20]),t(k,[2,36]),t(k,[2,37]),t(k,[2,38]),t(k,[2,39]),{20:[1,160]},t(k,[2,40]),{20:[1,161]},t(k,[2,41]),t(k,[2,42]),{20:[1,162]},t(k,[2,43]),{5:[1,163]},{5:[1,164]},{60:165,83:it},{60:166,83:it},{5:[2,69]},{5:[2,55]},{5:[2,56]},{27:167,74:E},t(Jt,[2,16]),t(N,[2,12]),t(Gt,n,{8:110,45:168}),t(St,n,{8:112,47:169}),t(Xt,n,{8:115,50:170}),t(k,[2,51]),t(k,[2,53]),{5:[2,67]},{5:[2,68]},{83:[2,63]},{21:[2,50]},{21:[2,48]},{21:[2,46]}],defaultActions:{7:[2,80],8:[2,1],9:[2,2],10:[2,3],54:[2,83],91:[2,65],92:[2,66],99:[2,82],127:[2,57],128:[2,79],129:[2,58],130:[2,59],131:[2,60],154:[2,69],155:[2,55],156:[2,56],165:[2,67],166:[2,68],167:[2,63],168:[2,50],169:[2,48],170:[2,46]},parseError:function(b,_){if(_.recoverable)this.trace(b);else{var P=new Error(b);throw P.hash=_,P}},parse:function(b){var _=this,P=[0],g=[],S=[null],o=[],yt=this.table,h="",wt=0,Zt=0,Te=2,Qt=1,ye=o.slice.call(arguments,1),B=Object.create(this.lexer),ht={yy:{}};for(var Dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Dt)&&(ht.yy[Dt]=this.yy[Dt]);B.setInput(b,ht.yy),ht.yy.lexer=B,ht.yy.parser=this,typeof B.yylloc>"u"&&(B.yylloc={});var Vt=B.yylloc;o.push(Vt);var Ee=B.options&&B.options.ranges;typeof ht.yy.parseError=="function"?this.parseError=ht.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function be(){var nt;return nt=g.pop()||B.lex()||Qt,typeof nt!="number"&&(nt instanceof Array&&(g=nt,nt=g.pop()),nt=_.symbols_[nt]||nt),nt}for(var z,dt,Q,Ct,ft={},_t,st,jt,kt;;){if(dt=P[P.length-1],this.defaultActions[dt]?Q=this.defaultActions[dt]:((z===null||typeof z>"u")&&(z=be()),Q=yt[dt]&&yt[dt][z]),typeof Q>"u"||!Q.length||!Q[0]){var Ot="";kt=[];for(_t in yt[dt])this.terminals_[_t]&&_t>Te&&kt.push("'"+this.terminals_[_t]+"'");B.showPosition?Ot="Parse error on line "+(wt+1)+`: `+B.showPosition()+` Expecting `+kt.join(", ")+", got '"+(this.terminals_[z]||z)+"'":Ot="Parse error on line "+(wt+1)+": Unexpected "+(z==Qt?"end of input":"'"+(this.terminals_[z]||z)+"'"),this.parseError(Ot,{text:B.match,token:this.terminals_[z]||z,line:B.yylineno,loc:Vt,expected:kt})}if(Q[0]instanceof Array&&Q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+dt+", token: "+z);switch(Q[0]){case 1:P.push(z),S.push(B.yytext),o.push(B.yylloc),P.push(Q[1]),z=null,Zt=B.yyleng,h=B.yytext,wt=B.yylineno,Vt=B.yylloc;break;case 2:if(st=this.productions_[Q[1]][1],ft.$=S[S.length-st],ft._$={first_line:o[o.length-(st||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(st||1)].first_column,last_column:o[o.length-1].last_column},Ee&&(ft._$.range=[o[o.length-(st||1)].range[0],o[o.length-1].range[1]]),Ct=this.performAction.apply(ft,[h,Zt,wt,ht.yy,Q[1],S,o].concat(ye)),typeof Ct<"u")return Ct;st&&(P=P.slice(0,-1*st*2),S=S.slice(0,-1*st),o=o.slice(0,-1*st)),P.push(this.productions_[Q[1]][0]),S.push(ft.$),o.push(ft._$),jt=yt[P[P.length-2]][P[P.length-1]],P.push(jt);break;case 3:return!0}}return!0}},xe=function(){var ot={EOF:1,parseError:function(_,P){if(this.yy.parser)this.yy.parser.parseError(_,P);else throw new Error(_)},setInput:function(b,_){return this.yy=_||this.yy||{},this._input=b,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var b=this._input[0];this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b;var _=b.match(/(?:\r\n?|\n).*/g);return _?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),b},unput:function(b){var _=b.length,P=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-_),this.offset-=_;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),P.length-1&&(this.yylineno-=P.length-1);var S=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:P?(P.length===g.length?this.yylloc.first_column:0)+g[g.length-P.length].length-P[0].length:this.yylloc.first_column-_},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-_]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(b){this.unput(this.match.slice(b))},pastInput:function(){var b=this.matched.substr(0,this.matched.length-this.match.length);return(b.length>20?"...":"")+b.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var b=this.match;return b.length<20&&(b+=this._input.substr(0,20-b.length)),(b.substr(0,20)+(b.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var b=this.pastInput(),_=new Array(b.length+1).join("-");return b+this.upcomingInput()+` diff --git a/docs/assets/stateDiagram-0dc7ce84-2fcd1e17.js b/docs/assets/stateDiagram-0dc7ce84-3f345ece.js similarity index 98% rename from docs/assets/stateDiagram-0dc7ce84-2fcd1e17.js rename to docs/assets/stateDiagram-0dc7ce84-3f345ece.js index 73416cae..1eaed5f2 100644 --- a/docs/assets/stateDiagram-0dc7ce84-2fcd1e17.js +++ b/docs/assets/stateDiagram-0dc7ce84-3f345ece.js @@ -1 +1 @@ -import{p as R,d as N,s as W}from"./styles-b820c189-b659880f.js";import{c as t,h as H,l as b,i as v,j as L,D as U,x as C}from"./index-b4f98efc.js";import{G as A,l as F}from"./layout-15168dd5.js";import{l as $}from"./line-bade02ca.js";import"./array-9f3ba611.js";import"./path-53f90ab3.js";const O=e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),X=e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),J=(e,i)=>{const o=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),c=o.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c.width+2*t().state.padding).attr("height",c.height+2*t().state.padding).attr("rx",t().state.radius),o},Y=(e,i)=>{const o=function(d,m,f){const S=d.append("tspan").attr("x",2*t().state.padding).text(m);f||S.attr("dy",t().state.textHeight)},s=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),g=s.height,p=e.append("text").attr("x",t().state.padding).attr("y",g+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,r=!0;i.descriptions.forEach(function(d){a||(o(p,d,r),r=!1),a=!1});const w=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+g+t().state.dividerMargin/2).attr("y2",t().state.padding+g+t().state.dividerMargin/2).attr("class","descr-divider"),x=p.node().getBBox(),l=Math.max(x.width,s.width);return w.attr("x2",l+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",l+2*t().state.padding).attr("height",x.height+g+2*t().state.padding).attr("rx",t().state.radius),e},I=(e,i,o)=>{const c=t().state.padding,s=2*t().state.padding,g=e.node().getBBox(),p=g.width,a=g.x,r=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),x=r.node().getBBox().width+s;let l=Math.max(x,p);l===p&&(l=l+s);let d;const m=e.node().getBBox();i.doc,d=a-c,x>p&&(d=(p-l)/2+c),Math.abs(a-m.x)<c&&x>p&&(d=a-(x-p)/2);const f=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",d).attr("y",f).attr("class",o?"alt-composit":"composit").attr("width",l).attr("height",m.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),r.attr("x",d+c),x<=p&&r.attr("x",a+(l-s)/2-x/2+c),e.insert("rect",":first-child").attr("x",d).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",l).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",d).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",l).attr("height",m.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},_=e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),q=(e,i)=>{let o=t().state.forkWidth,c=t().state.forkHeight;if(i.parentId){let s=o;o=c,c=s}return e.append("rect").style("stroke","black").style("fill","black").attr("width",o).attr("height",c).attr("x",t().state.padding).attr("y",t().state.padding)},D=(e,i,o,c)=>{let s=0;const g=c.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let p=e.replace(/\r\n/g,"<br/>");p=p.replace(/\n/g,"<br/>");const a=p.split(L.lineBreakRegex);let r=1.25*t().state.noteMargin;for(const w of a){const x=w.trim();if(x.length>0){const l=g.append("tspan");if(l.text(x),r===0){const d=l.node().getBBox();r+=d.height}s+=r,l.attr("x",i+t().state.noteMargin),l.attr("y",o+s+1.25*t().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:s}},Z=(e,i)=>{i.attr("class","state-note");const o=i.append("rect").attr("x",0).attr("y",t().state.padding),c=i.append("g"),{textWidth:s,textHeight:g}=D(e,0,0,c);return o.attr("height",g+2*t().state.noteMargin),o.attr("width",s+t().state.noteMargin*2),o},T=function(e,i){const o=i.id,c={id:o,label:i.id,width:0,height:0},s=e.append("g").attr("id",o).attr("class","stateGroup");i.type==="start"&&O(s),i.type==="end"&&_(s),(i.type==="fork"||i.type==="join")&&q(s,i),i.type==="note"&&Z(i.note.text,s),i.type==="divider"&&X(s),i.type==="default"&&i.descriptions.length===0&&J(s,i),i.type==="default"&&i.descriptions.length>0&&Y(s,i);const g=s.node().getBBox();return c.width=g.width+2*t().state.padding,c.height=g.height+2*t().state.padding,c};let G=0;const j=function(e,i,o){const c=function(r){switch(r){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}};i.points=i.points.filter(r=>!Number.isNaN(r.y));const s=i.points,g=$().x(function(r){return r.x}).y(function(r){return r.y}).curve(U),p=e.append("path").attr("d",g(s)).attr("id","edge"+G).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),p.attr("marker-end","url("+a+"#"+c(N.relationType.DEPENDENCY)+"End)"),o.title!==void 0){const r=e.append("g").attr("class","stateLabel"),{x:w,y:x}=C.calcLabelPosition(i.points),l=L.getRows(o.title);let d=0;const m=[];let f=0,S=0;for(let u=0;u<=l.length;u++){const h=r.append("text").attr("text-anchor","middle").text(l[u]).attr("x",w).attr("y",x+d),y=h.node().getBBox();f=Math.max(f,y.width),S=Math.min(S,y.x),b.info(y.x,w,x+d),d===0&&(d=h.node().getBBox().height,b.info("Title height",d,x)),m.push(h)}let k=d*l.length;if(l.length>1){const u=(l.length-1)*d*.5;m.forEach((h,y)=>h.attr("y",x+y*d-u)),k=d*l.length}const n=r.node().getBBox();r.insert("rect",":first-child").attr("class","box").attr("x",w-f/2-t().state.padding/2).attr("y",x-k/2-t().state.padding/2-3.5).attr("width",f+t().state.padding).attr("height",k+t().state.padding),b.info(n)}G++};let B;const z={},K=function(){},Q=function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},V=function(e,i,o,c){B=t().state;const s=t().securityLevel;let g;s==="sandbox"&&(g=H("#i"+i));const p=s==="sandbox"?H(g.nodes()[0].contentDocument.body):H("body"),a=s==="sandbox"?g.nodes()[0].contentDocument:document;b.debug("Rendering diagram "+e);const r=p.select(`[id='${i}']`);Q(r),new A({multigraph:!0,compound:!0,rankdir:"RL"}).setDefaultEdgeLabel(function(){return{}});const x=c.db.getRootDoc();P(x,r,void 0,!1,p,a,c);const l=B.padding,d=r.node().getBBox(),m=d.width+l*2,f=d.height+l*2,S=m*1.75;v(r,f,S,B.useMaxWidth),r.attr("viewBox",`${d.x-B.padding} ${d.y-B.padding} `+m+" "+f)},tt=e=>e?e.length*B.fontSizeFactor:1,P=(e,i,o,c,s,g,p)=>{const a=new A({compound:!0,multigraph:!0});let r,w=!0;for(r=0;r<e.length;r++)if(e[r].stmt==="relation"){w=!1;break}o?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:w?1:B.edgeLengthFactor,nodeSep:w?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:w?1:B.edgeLengthFactor,nodeSep:w?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}}),p.db.extract(e);const x=p.db.getStates(),l=p.db.getRelations(),d=Object.keys(x);for(const n of d){const u=x[n];o&&(u.parentId=o);let h;if(u.doc){let y=i.append("g").attr("id",u.id).attr("class","stateGroup");h=P(u.doc,y,u.id,!c,s,g,p);{y=I(y,u,c);let E=y.node().getBBox();h.width=E.width,h.height=E.height+B.padding/2,z[u.id]={y:B.compositTitleSize}}}else h=T(i,u);if(u.note){const y={descriptions:[],id:u.id+"-note",note:u.note,type:"note"},E=T(i,y);u.note.position==="left of"?(a.setNode(h.id+"-note",E),a.setNode(h.id,h)):(a.setNode(h.id,h),a.setNode(h.id+"-note",E)),a.setParent(h.id,h.id+"-group"),a.setParent(h.id+"-note",h.id+"-group")}else a.setNode(h.id,h)}b.debug("Count=",a.nodeCount(),a);let m=0;l.forEach(function(n){m++,b.debug("Setting edge",n),a.setEdge(n.id1,n.id2,{relation:n,width:tt(n.title),height:B.labelHeight*L.getRows(n.title).length,labelpos:"c"},"id"+m)}),F(a),b.debug("Graph after layout",a.nodes());const f=i.node();a.nodes().forEach(function(n){n!==void 0&&a.node(n)!==void 0?(b.warn("Node "+n+": "+JSON.stringify(a.node(n))),s.select("#"+f.id+" #"+n).attr("transform","translate("+(a.node(n).x-a.node(n).width/2)+","+(a.node(n).y+(z[n]?z[n].y:0)-a.node(n).height/2)+" )"),s.select("#"+f.id+" #"+n).attr("data-x-shift",a.node(n).x-a.node(n).width/2),g.querySelectorAll("#"+f.id+" #"+n+" .divider").forEach(h=>{const y=h.parentElement;let E=0,M=0;y&&(y.parentElement&&(E=y.parentElement.getBBox().width),M=parseInt(y.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",E-M-8)})):b.debug("No Node "+n+": "+JSON.stringify(a.node(n)))});let S=f.getBBox();a.edges().forEach(function(n){n!==void 0&&a.edge(n)!==void 0&&(b.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(a.edge(n))),j(i,a.edge(n),a.edge(n).relation))}),S=f.getBBox();const k={id:o||"root",label:o||"root",width:0,height:0};return k.width=S.width+2*B.padding,k.height=S.height+2*B.padding,b.debug("Doc rendered",k,a),k},et={setConf:K,draw:V},dt={parser:R,db:N,renderer:et,styles:W,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,N.clear()}};export{dt as diagram}; +import{p as R,d as N,s as W}from"./styles-b820c189-3143e8ba.js";import{c as t,h as H,l as b,i as v,j as L,D as U,x as C}from"./index-0e08498d.js";import{G as A,l as F}from"./layout-c97c50ff.js";import{l as $}from"./line-4c8e436d.js";import"./array-9f3ba611.js";import"./path-53f90ab3.js";const O=e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),X=e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),J=(e,i)=>{const o=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),c=o.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c.width+2*t().state.padding).attr("height",c.height+2*t().state.padding).attr("rx",t().state.radius),o},Y=(e,i)=>{const o=function(d,m,f){const S=d.append("tspan").attr("x",2*t().state.padding).text(m);f||S.attr("dy",t().state.textHeight)},s=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),g=s.height,p=e.append("text").attr("x",t().state.padding).attr("y",g+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,r=!0;i.descriptions.forEach(function(d){a||(o(p,d,r),r=!1),a=!1});const w=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+g+t().state.dividerMargin/2).attr("y2",t().state.padding+g+t().state.dividerMargin/2).attr("class","descr-divider"),x=p.node().getBBox(),l=Math.max(x.width,s.width);return w.attr("x2",l+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",l+2*t().state.padding).attr("height",x.height+g+2*t().state.padding).attr("rx",t().state.radius),e},I=(e,i,o)=>{const c=t().state.padding,s=2*t().state.padding,g=e.node().getBBox(),p=g.width,a=g.x,r=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),x=r.node().getBBox().width+s;let l=Math.max(x,p);l===p&&(l=l+s);let d;const m=e.node().getBBox();i.doc,d=a-c,x>p&&(d=(p-l)/2+c),Math.abs(a-m.x)<c&&x>p&&(d=a-(x-p)/2);const f=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",d).attr("y",f).attr("class",o?"alt-composit":"composit").attr("width",l).attr("height",m.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),r.attr("x",d+c),x<=p&&r.attr("x",a+(l-s)/2-x/2+c),e.insert("rect",":first-child").attr("x",d).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",l).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",d).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",l).attr("height",m.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},_=e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),q=(e,i)=>{let o=t().state.forkWidth,c=t().state.forkHeight;if(i.parentId){let s=o;o=c,c=s}return e.append("rect").style("stroke","black").style("fill","black").attr("width",o).attr("height",c).attr("x",t().state.padding).attr("y",t().state.padding)},D=(e,i,o,c)=>{let s=0;const g=c.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let p=e.replace(/\r\n/g,"<br/>");p=p.replace(/\n/g,"<br/>");const a=p.split(L.lineBreakRegex);let r=1.25*t().state.noteMargin;for(const w of a){const x=w.trim();if(x.length>0){const l=g.append("tspan");if(l.text(x),r===0){const d=l.node().getBBox();r+=d.height}s+=r,l.attr("x",i+t().state.noteMargin),l.attr("y",o+s+1.25*t().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:s}},Z=(e,i)=>{i.attr("class","state-note");const o=i.append("rect").attr("x",0).attr("y",t().state.padding),c=i.append("g"),{textWidth:s,textHeight:g}=D(e,0,0,c);return o.attr("height",g+2*t().state.noteMargin),o.attr("width",s+t().state.noteMargin*2),o},T=function(e,i){const o=i.id,c={id:o,label:i.id,width:0,height:0},s=e.append("g").attr("id",o).attr("class","stateGroup");i.type==="start"&&O(s),i.type==="end"&&_(s),(i.type==="fork"||i.type==="join")&&q(s,i),i.type==="note"&&Z(i.note.text,s),i.type==="divider"&&X(s),i.type==="default"&&i.descriptions.length===0&&J(s,i),i.type==="default"&&i.descriptions.length>0&&Y(s,i);const g=s.node().getBBox();return c.width=g.width+2*t().state.padding,c.height=g.height+2*t().state.padding,c};let G=0;const j=function(e,i,o){const c=function(r){switch(r){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}};i.points=i.points.filter(r=>!Number.isNaN(r.y));const s=i.points,g=$().x(function(r){return r.x}).y(function(r){return r.y}).curve(U),p=e.append("path").attr("d",g(s)).attr("id","edge"+G).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),p.attr("marker-end","url("+a+"#"+c(N.relationType.DEPENDENCY)+"End)"),o.title!==void 0){const r=e.append("g").attr("class","stateLabel"),{x:w,y:x}=C.calcLabelPosition(i.points),l=L.getRows(o.title);let d=0;const m=[];let f=0,S=0;for(let u=0;u<=l.length;u++){const h=r.append("text").attr("text-anchor","middle").text(l[u]).attr("x",w).attr("y",x+d),y=h.node().getBBox();f=Math.max(f,y.width),S=Math.min(S,y.x),b.info(y.x,w,x+d),d===0&&(d=h.node().getBBox().height,b.info("Title height",d,x)),m.push(h)}let k=d*l.length;if(l.length>1){const u=(l.length-1)*d*.5;m.forEach((h,y)=>h.attr("y",x+y*d-u)),k=d*l.length}const n=r.node().getBBox();r.insert("rect",":first-child").attr("class","box").attr("x",w-f/2-t().state.padding/2).attr("y",x-k/2-t().state.padding/2-3.5).attr("width",f+t().state.padding).attr("height",k+t().state.padding),b.info(n)}G++};let B;const z={},K=function(){},Q=function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},V=function(e,i,o,c){B=t().state;const s=t().securityLevel;let g;s==="sandbox"&&(g=H("#i"+i));const p=s==="sandbox"?H(g.nodes()[0].contentDocument.body):H("body"),a=s==="sandbox"?g.nodes()[0].contentDocument:document;b.debug("Rendering diagram "+e);const r=p.select(`[id='${i}']`);Q(r),new A({multigraph:!0,compound:!0,rankdir:"RL"}).setDefaultEdgeLabel(function(){return{}});const x=c.db.getRootDoc();P(x,r,void 0,!1,p,a,c);const l=B.padding,d=r.node().getBBox(),m=d.width+l*2,f=d.height+l*2,S=m*1.75;v(r,f,S,B.useMaxWidth),r.attr("viewBox",`${d.x-B.padding} ${d.y-B.padding} `+m+" "+f)},tt=e=>e?e.length*B.fontSizeFactor:1,P=(e,i,o,c,s,g,p)=>{const a=new A({compound:!0,multigraph:!0});let r,w=!0;for(r=0;r<e.length;r++)if(e[r].stmt==="relation"){w=!1;break}o?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:w?1:B.edgeLengthFactor,nodeSep:w?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:w?1:B.edgeLengthFactor,nodeSep:w?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}}),p.db.extract(e);const x=p.db.getStates(),l=p.db.getRelations(),d=Object.keys(x);for(const n of d){const u=x[n];o&&(u.parentId=o);let h;if(u.doc){let y=i.append("g").attr("id",u.id).attr("class","stateGroup");h=P(u.doc,y,u.id,!c,s,g,p);{y=I(y,u,c);let E=y.node().getBBox();h.width=E.width,h.height=E.height+B.padding/2,z[u.id]={y:B.compositTitleSize}}}else h=T(i,u);if(u.note){const y={descriptions:[],id:u.id+"-note",note:u.note,type:"note"},E=T(i,y);u.note.position==="left of"?(a.setNode(h.id+"-note",E),a.setNode(h.id,h)):(a.setNode(h.id,h),a.setNode(h.id+"-note",E)),a.setParent(h.id,h.id+"-group"),a.setParent(h.id+"-note",h.id+"-group")}else a.setNode(h.id,h)}b.debug("Count=",a.nodeCount(),a);let m=0;l.forEach(function(n){m++,b.debug("Setting edge",n),a.setEdge(n.id1,n.id2,{relation:n,width:tt(n.title),height:B.labelHeight*L.getRows(n.title).length,labelpos:"c"},"id"+m)}),F(a),b.debug("Graph after layout",a.nodes());const f=i.node();a.nodes().forEach(function(n){n!==void 0&&a.node(n)!==void 0?(b.warn("Node "+n+": "+JSON.stringify(a.node(n))),s.select("#"+f.id+" #"+n).attr("transform","translate("+(a.node(n).x-a.node(n).width/2)+","+(a.node(n).y+(z[n]?z[n].y:0)-a.node(n).height/2)+" )"),s.select("#"+f.id+" #"+n).attr("data-x-shift",a.node(n).x-a.node(n).width/2),g.querySelectorAll("#"+f.id+" #"+n+" .divider").forEach(h=>{const y=h.parentElement;let E=0,M=0;y&&(y.parentElement&&(E=y.parentElement.getBBox().width),M=parseInt(y.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",E-M-8)})):b.debug("No Node "+n+": "+JSON.stringify(a.node(n)))});let S=f.getBBox();a.edges().forEach(function(n){n!==void 0&&a.edge(n)!==void 0&&(b.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(a.edge(n))),j(i,a.edge(n),a.edge(n).relation))}),S=f.getBBox();const k={id:o||"root",label:o||"root",width:0,height:0};return k.width=S.width+2*B.padding,k.height=S.height+2*B.padding,b.debug("Doc rendered",k,a),k},et={setConf:K,draw:V},dt={parser:R,db:N,renderer:et,styles:W,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,N.clear()}};export{dt as diagram}; diff --git a/docs/assets/stateDiagram-v2-e65458cd-bf96709f.js b/docs/assets/stateDiagram-v2-e65458cd-2ae324e1.js similarity index 92% rename from docs/assets/stateDiagram-v2-e65458cd-bf96709f.js rename to docs/assets/stateDiagram-v2-e65458cd-2ae324e1.js index af8077f3..1460cf96 100644 --- a/docs/assets/stateDiagram-v2-e65458cd-bf96709f.js +++ b/docs/assets/stateDiagram-v2-e65458cd-2ae324e1.js @@ -1 +1 @@ -import{p as Q,d as B,s as X,D as H,a as Z,S as j,b as F,c as I}from"./styles-b820c189-b659880f.js";import{G as tt}from"./layout-15168dd5.js";import{l,c as g,h as x,x as et,i as ot,j as w}from"./index-b4f98efc.js";import{r as st}from"./index-1e7f2254-829de93b.js";import"./edges-66ea8538-e5136c41.js";import"./createText-a49d2d2a-a6165332.js";import"./svgDraw-95adee0a-796bbfe8.js";import"./line-bade02ca.js";import"./array-9f3ba611.js";import"./path-53f90ab3.js";const A="rect",C="rectWithTitle",nt="start",ct="end",it="divider",rt="roundedWithTitle",lt="note",at="noteGroup",_="statediagram",dt="state",Et=`${_}-${dt}`,U="transition",St="note",Tt="note-edge",pt=`${U} ${Tt}`,_t=`${_}-${St}`,ut="cluster",Dt=`${_}-${ut}`,ft="cluster-alt",bt=`${_}-${ft}`,V="parent",Y="note",ht="state",N="----",At=`${N}${Y}`,M=`${N}${V}`,W="fill:none",z="fill: #333",m="c",q="text",K="normal";let y={},E=0;const yt=function(t){const n=Object.keys(t);for(const e of n)t[e]},gt=function(t,n){l.trace("Extracting classes"),n.db.clear();try{return n.parser.parse(t),n.db.extract(n.db.getRootDocV2()),n.db.getClasses()}catch(e){return e}};function $t(t){return t==null?"":t.classes?t.classes.join(" "):""}function R(t="",n=0,e="",c=N){const i=e!==null&&e.length>0?`${c}${e}`:"";return`${ht}-${t}${i}-${n}`}const h=(t,n,e,c,i,r)=>{const o=e.id,u=$t(c[o]);if(o!=="root"){let T=A;e.start===!0&&(T=nt),e.start===!1&&(T=ct),e.type!==H&&(T=e.type),y[o]||(y[o]={id:o,shape:T,description:w.sanitizeText(o,g()),classes:`${u} ${Et}`});const s=y[o];e.description&&(Array.isArray(s.description)?(s.shape=C,s.description.push(e.description)):s.description.length>0?(s.shape=C,s.description===o?s.description=[e.description]:s.description=[s.description,e.description]):(s.shape=A,s.description=e.description),s.description=w.sanitizeTextOrArray(s.description,g())),s.description.length===1&&s.shape===C&&(s.shape=A),!s.type&&e.doc&&(l.info("Setting cluster for ",o,G(e)),s.type="group",s.dir=G(e),s.shape=e.type===Z?it:rt,s.classes=s.classes+" "+Dt+" "+(r?bt:""));const p={labelStyle:"",shape:s.shape,labelText:s.description,classes:s.classes,style:"",id:o,dir:s.dir,domId:R(o,E),type:s.type,padding:15};if(p.centerLabel=!0,e.note){const a={labelStyle:"",shape:lt,labelText:e.note.text,classes:_t,style:"",id:o+At+"-"+E,domId:R(o,E,Y),type:s.type,padding:15},d={labelStyle:"",shape:at,labelText:e.note.text,classes:s.classes,style:"",id:o+M,domId:R(o,E,V),type:"group",padding:0};E++;const D=o+M;t.setNode(D,d),t.setNode(a.id,a),t.setNode(o,p),t.setParent(o,D),t.setParent(a.id,D);let S=o,f=a.id;e.note.position==="left of"&&(S=a.id,f=o),t.setEdge(S,f,{arrowhead:"none",arrowType:"",style:W,labelStyle:"",classes:pt,arrowheadStyle:z,labelpos:m,labelType:q,thickness:K})}else t.setNode(o,p)}n&&n.id!=="root"&&(l.trace("Setting node ",o," to be child of its parent ",n.id),t.setParent(o,n.id)),e.doc&&(l.trace("Adding nodes children "),xt(t,e,e.doc,c,i,!r))},xt=(t,n,e,c,i,r)=>{l.trace("items",e),e.forEach(o=>{switch(o.stmt){case F:h(t,n,o,c,i,r);break;case H:h(t,n,o,c,i,r);break;case j:{h(t,n,o.state1,c,i,r),h(t,n,o.state2,c,i,r);const u={id:"edge"+E,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:W,labelStyle:"",label:w.sanitizeText(o.description,g()),arrowheadStyle:z,labelpos:m,labelType:q,thickness:K,classes:U};t.setEdge(o.state1.id,o.state2.id,u,E),E++}break}})},G=(t,n=I)=>{let e=n;if(t.doc)for(let c=0;c<t.doc.length;c++){const i=t.doc[c];i.stmt==="dir"&&(e=i.value)}return e},Ct=async function(t,n,e,c){l.info("Drawing state diagram (v2)",n),y={},c.db.getDirection();const{securityLevel:i,state:r}=g(),o=r.nodeSpacing||50,u=r.rankSpacing||50;l.info(c.db.getRootDocV2()),c.db.extract(c.db.getRootDocV2()),l.info(c.db.getRootDocV2());const T=c.db.getStates(),s=new tt({multigraph:!0,compound:!0}).setGraph({rankdir:G(c.db.getRootDocV2()),nodesep:o,ranksep:u,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});h(s,void 0,c.db.getRootDocV2(),T,c.db,!0);let p;i==="sandbox"&&(p=x("#i"+n));const a=i==="sandbox"?x(p.nodes()[0].contentDocument.body):x("body"),d=a.select(`[id="${n}"]`),D=a.select("#"+n+" g");await st(D,s,["barb"],_,n);const S=8;et.insertTitle(d,"statediagramTitleText",r.titleTopMargin,c.db.getDiagramTitle());const f=d.node().getBBox(),L=f.width+S*2,P=f.height+S*2;d.attr("class",_);const k=d.node().getBBox();ot(d,P,L,r.useMaxWidth);const v=`${k.x-S} ${k.y-S} ${L} ${P}`;l.debug(`viewBox ${v}`),d.attr("viewBox",v);const J=document.querySelectorAll('[id="'+n+'"] .edgeLabel .label');for(const $ of J){const O=$.getBBox(),b=document.createElementNS("http://www.w3.org/2000/svg",A);b.setAttribute("rx",0),b.setAttribute("ry",0),b.setAttribute("width",O.width),b.setAttribute("height",O.height),$.insertBefore(b,$.firstChild)}},Rt={setConf:yt,getClasses:gt,draw:Ct},Ht={parser:Q,db:B,renderer:Rt,styles:X,init:t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,B.clear()}};export{Ht as diagram}; +import{p as Q,d as B,s as X,D as H,a as Z,S as j,b as F,c as I}from"./styles-b820c189-3143e8ba.js";import{G as tt}from"./layout-c97c50ff.js";import{l,c as g,h as x,x as et,i as ot,j as w}from"./index-0e08498d.js";import{r as st}from"./index-1e7f2254-a4f10dcc.js";import"./edges-66ea8538-e73fd07f.js";import"./createText-a49d2d2a-b45cf165.js";import"./svgDraw-95adee0a-c0e4fe11.js";import"./line-4c8e436d.js";import"./array-9f3ba611.js";import"./path-53f90ab3.js";const A="rect",C="rectWithTitle",nt="start",ct="end",it="divider",rt="roundedWithTitle",lt="note",at="noteGroup",_="statediagram",dt="state",Et=`${_}-${dt}`,U="transition",St="note",Tt="note-edge",pt=`${U} ${Tt}`,_t=`${_}-${St}`,ut="cluster",Dt=`${_}-${ut}`,ft="cluster-alt",bt=`${_}-${ft}`,V="parent",Y="note",ht="state",N="----",At=`${N}${Y}`,M=`${N}${V}`,W="fill:none",z="fill: #333",m="c",q="text",K="normal";let y={},E=0;const yt=function(t){const n=Object.keys(t);for(const e of n)t[e]},gt=function(t,n){l.trace("Extracting classes"),n.db.clear();try{return n.parser.parse(t),n.db.extract(n.db.getRootDocV2()),n.db.getClasses()}catch(e){return e}};function $t(t){return t==null?"":t.classes?t.classes.join(" "):""}function R(t="",n=0,e="",c=N){const i=e!==null&&e.length>0?`${c}${e}`:"";return`${ht}-${t}${i}-${n}`}const h=(t,n,e,c,i,r)=>{const o=e.id,u=$t(c[o]);if(o!=="root"){let T=A;e.start===!0&&(T=nt),e.start===!1&&(T=ct),e.type!==H&&(T=e.type),y[o]||(y[o]={id:o,shape:T,description:w.sanitizeText(o,g()),classes:`${u} ${Et}`});const s=y[o];e.description&&(Array.isArray(s.description)?(s.shape=C,s.description.push(e.description)):s.description.length>0?(s.shape=C,s.description===o?s.description=[e.description]:s.description=[s.description,e.description]):(s.shape=A,s.description=e.description),s.description=w.sanitizeTextOrArray(s.description,g())),s.description.length===1&&s.shape===C&&(s.shape=A),!s.type&&e.doc&&(l.info("Setting cluster for ",o,G(e)),s.type="group",s.dir=G(e),s.shape=e.type===Z?it:rt,s.classes=s.classes+" "+Dt+" "+(r?bt:""));const p={labelStyle:"",shape:s.shape,labelText:s.description,classes:s.classes,style:"",id:o,dir:s.dir,domId:R(o,E),type:s.type,padding:15};if(p.centerLabel=!0,e.note){const a={labelStyle:"",shape:lt,labelText:e.note.text,classes:_t,style:"",id:o+At+"-"+E,domId:R(o,E,Y),type:s.type,padding:15},d={labelStyle:"",shape:at,labelText:e.note.text,classes:s.classes,style:"",id:o+M,domId:R(o,E,V),type:"group",padding:0};E++;const D=o+M;t.setNode(D,d),t.setNode(a.id,a),t.setNode(o,p),t.setParent(o,D),t.setParent(a.id,D);let S=o,f=a.id;e.note.position==="left of"&&(S=a.id,f=o),t.setEdge(S,f,{arrowhead:"none",arrowType:"",style:W,labelStyle:"",classes:pt,arrowheadStyle:z,labelpos:m,labelType:q,thickness:K})}else t.setNode(o,p)}n&&n.id!=="root"&&(l.trace("Setting node ",o," to be child of its parent ",n.id),t.setParent(o,n.id)),e.doc&&(l.trace("Adding nodes children "),xt(t,e,e.doc,c,i,!r))},xt=(t,n,e,c,i,r)=>{l.trace("items",e),e.forEach(o=>{switch(o.stmt){case F:h(t,n,o,c,i,r);break;case H:h(t,n,o,c,i,r);break;case j:{h(t,n,o.state1,c,i,r),h(t,n,o.state2,c,i,r);const u={id:"edge"+E,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:W,labelStyle:"",label:w.sanitizeText(o.description,g()),arrowheadStyle:z,labelpos:m,labelType:q,thickness:K,classes:U};t.setEdge(o.state1.id,o.state2.id,u,E),E++}break}})},G=(t,n=I)=>{let e=n;if(t.doc)for(let c=0;c<t.doc.length;c++){const i=t.doc[c];i.stmt==="dir"&&(e=i.value)}return e},Ct=async function(t,n,e,c){l.info("Drawing state diagram (v2)",n),y={},c.db.getDirection();const{securityLevel:i,state:r}=g(),o=r.nodeSpacing||50,u=r.rankSpacing||50;l.info(c.db.getRootDocV2()),c.db.extract(c.db.getRootDocV2()),l.info(c.db.getRootDocV2());const T=c.db.getStates(),s=new tt({multigraph:!0,compound:!0}).setGraph({rankdir:G(c.db.getRootDocV2()),nodesep:o,ranksep:u,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});h(s,void 0,c.db.getRootDocV2(),T,c.db,!0);let p;i==="sandbox"&&(p=x("#i"+n));const a=i==="sandbox"?x(p.nodes()[0].contentDocument.body):x("body"),d=a.select(`[id="${n}"]`),D=a.select("#"+n+" g");await st(D,s,["barb"],_,n);const S=8;et.insertTitle(d,"statediagramTitleText",r.titleTopMargin,c.db.getDiagramTitle());const f=d.node().getBBox(),L=f.width+S*2,P=f.height+S*2;d.attr("class",_);const k=d.node().getBBox();ot(d,P,L,r.useMaxWidth);const v=`${k.x-S} ${k.y-S} ${L} ${P}`;l.debug(`viewBox ${v}`),d.attr("viewBox",v);const J=document.querySelectorAll('[id="'+n+'"] .edgeLabel .label');for(const $ of J){const O=$.getBBox(),b=document.createElementNS("http://www.w3.org/2000/svg",A);b.setAttribute("rx",0),b.setAttribute("ry",0),b.setAttribute("width",O.width),b.setAttribute("height",O.height),$.insertBefore(b,$.firstChild)}},Rt={setConf:yt,getClasses:gt,draw:Ct},Ht={parser:Q,db:B,renderer:Rt,styles:X,init:t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,B.clear()}};export{Ht as diagram}; diff --git a/docs/assets/styles-7882abfe-cae0a94a.js b/docs/assets/styles-7882abfe-849890ab.js similarity index 97% rename from docs/assets/styles-7882abfe-cae0a94a.js rename to docs/assets/styles-7882abfe-849890ab.js index 6f575acf..43b9c912 100644 --- a/docs/assets/styles-7882abfe-cae0a94a.js +++ b/docs/assets/styles-7882abfe-849890ab.js @@ -1,4 +1,4 @@ -import{i as V,G as q}from"./layout-15168dd5.js";import{_ as M,C as R,v as F,p as N,l as u,q as U,c as C,j as I,r as $,o as E,h as _,x as H,t as W,y as X}from"./index-b4f98efc.js";import{f as J}from"./flowDb-9e6c6aac-a25cd141.js";import{r as K}from"./index-1e7f2254-829de93b.js";import{s as Q}from"./selectAll-73b48e14.js";const Y=(e,l)=>M.lang.round(R.parse(e)[l]),Z=Y;function be(e,l){return!!e.children(l).length}function fe(e){return L(e.v)+":"+L(e.w)+":"+L(e.name)}var j=/:/g;function L(e){return e?String(e).replace(j,"\\:"):""}function O(e,l){l&&e.attr("style",l)}function ue(e,l,c){l&&e.attr("class",l).attr("class",c+" "+e.attr("class"))}function we(e,l){var c=l.graph();if(V(c)){var a=c.transition;if(F(a))return a(e)}return e}function ee(e,l){var c=e.append("foreignObject").attr("width","100000"),a=c.append("xhtml:div");a.attr("xmlns","http://www.w3.org/1999/xhtml");var i=l.label;switch(typeof i){case"function":a.insert(i);break;case"object":a.insert(function(){return i});break;default:a.html(i)}O(a,l.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap");var d=a.node().getBoundingClientRect();return c.attr("width",d.width).attr("height",d.height),c}const G={},te=function(e){const l=Object.keys(e);for(const c of l)G[c]=e[c]},z=function(e,l,c,a,i,d){const w=a.select(`[id="${c}"]`);Object.keys(e).forEach(function(p){const r=e[p];let g="default";r.classes.length>0&&(g=r.classes.join(" ")),g=g+" flowchart-label";const h=N(r.styles);let t=r.text!==void 0?r.text:r.id,s;if(u.info("vertex",r,r.labelType),r.labelType==="markdown")u.info("vertex",r,r.labelType);else if(U(C().flowchart.htmlLabels)){const m={label:t.replace(/fa[blrs]?:fa-[\w-]+/g,k=>`<i class='${k.replace(":"," ")}'></i>`)};s=ee(w,m).node(),s.parentNode.removeChild(s)}else{const m=i.createElementNS("http://www.w3.org/2000/svg","text");m.setAttribute("style",h.labelStyle.replace("color:","fill:"));const k=t.split(I.lineBreakRegex);for(const T of k){const v=i.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),v.setAttribute("dy","1em"),v.setAttribute("x","1"),v.textContent=T,m.appendChild(v)}s=m}let b=0,o="";switch(r.type){case"round":b=5,o="rect";break;case"square":o="rect";break;case"diamond":o="question";break;case"hexagon":o="hexagon";break;case"odd":o="rect_left_inv_arrow";break;case"lean_right":o="lean_right";break;case"lean_left":o="lean_left";break;case"trapezoid":o="trapezoid";break;case"inv_trapezoid":o="inv_trapezoid";break;case"odd_right":o="rect_left_inv_arrow";break;case"circle":o="circle";break;case"ellipse":o="ellipse";break;case"stadium":o="stadium";break;case"subroutine":o="subroutine";break;case"cylinder":o="cylinder";break;case"group":o="rect";break;case"doublecircle":o="doublecircle";break;default:o="rect"}l.setNode(r.id,{labelStyle:h.labelStyle,shape:o,labelText:t,labelType:r.labelType,rx:b,ry:b,class:g,style:h.style,id:r.id,link:r.link,linkTarget:r.linkTarget,tooltip:d.db.getTooltip(r.id)||"",domId:d.db.lookUpDomId(r.id),haveCallback:r.haveCallback,width:r.type==="group"?500:void 0,dir:r.dir,type:r.type,props:r.props,padding:C().flowchart.padding}),u.info("setNode",{labelStyle:h.labelStyle,labelType:r.labelType,shape:o,labelText:t,rx:b,ry:b,class:g,style:h.style,id:r.id,domId:d.db.lookUpDomId(r.id),width:r.type==="group"?500:void 0,type:r.type,dir:r.dir,props:r.props,padding:C().flowchart.padding})})},P=function(e,l,c){u.info("abc78 edges = ",e);let a=0,i={},d,w;if(e.defaultStyle!==void 0){const n=N(e.defaultStyle);d=n.style,w=n.labelStyle}e.forEach(function(n){a++;const p="L-"+n.start+"-"+n.end;i[p]===void 0?(i[p]=0,u.info("abc78 new entry",p,i[p])):(i[p]++,u.info("abc78 new entry",p,i[p]));let r=p+"-"+i[p];u.info("abc78 new link id to be used is",p,r,i[p]);const g="LS-"+n.start,h="LE-"+n.end,t={style:"",labelStyle:""};switch(t.minlen=n.length||1,n.type==="arrow_open"?t.arrowhead="none":t.arrowhead="normal",t.arrowTypeStart="arrow_open",t.arrowTypeEnd="arrow_open",n.type){case"double_arrow_cross":t.arrowTypeStart="arrow_cross";case"arrow_cross":t.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":t.arrowTypeStart="arrow_point";case"arrow_point":t.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":t.arrowTypeStart="arrow_circle";case"arrow_circle":t.arrowTypeEnd="arrow_circle";break}let s="",b="";switch(n.stroke){case"normal":s="fill:none;",d!==void 0&&(s=d),w!==void 0&&(b=w),t.thickness="normal",t.pattern="solid";break;case"dotted":t.thickness="normal",t.pattern="dotted",t.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":t.thickness="thick",t.pattern="solid",t.style="stroke-width: 3.5px;fill:none;";break;case"invisible":t.thickness="invisible",t.pattern="solid",t.style="stroke-width: 0;fill:none;";break}if(n.style!==void 0){const o=N(n.style);s=o.style,b=o.labelStyle}t.style=t.style+=s,t.labelStyle=t.labelStyle+=b,n.interpolate!==void 0?t.curve=$(n.interpolate,E):e.defaultInterpolate!==void 0?t.curve=$(e.defaultInterpolate,E):t.curve=$(G.curve,E),n.text===void 0?n.style!==void 0&&(t.arrowheadStyle="fill: #333"):(t.arrowheadStyle="fill: #333",t.labelpos="c"),t.labelType=n.labelType,t.label=n.text.replace(I.lineBreakRegex,` +import{i as V,G as q}from"./layout-c97c50ff.js";import{_ as M,C as R,v as F,p as N,l as u,q as U,c as C,j as I,r as $,o as E,h as _,x as H,t as W,y as X}from"./index-0e08498d.js";import{f as J}from"./flowDb-9e6c6aac-32de2878.js";import{r as K}from"./index-1e7f2254-a4f10dcc.js";import{s as Q}from"./selectAll-ad8aa736.js";const Y=(e,l)=>M.lang.round(R.parse(e)[l]),Z=Y;function be(e,l){return!!e.children(l).length}function fe(e){return L(e.v)+":"+L(e.w)+":"+L(e.name)}var j=/:/g;function L(e){return e?String(e).replace(j,"\\:"):""}function O(e,l){l&&e.attr("style",l)}function ue(e,l,c){l&&e.attr("class",l).attr("class",c+" "+e.attr("class"))}function we(e,l){var c=l.graph();if(V(c)){var a=c.transition;if(F(a))return a(e)}return e}function ee(e,l){var c=e.append("foreignObject").attr("width","100000"),a=c.append("xhtml:div");a.attr("xmlns","http://www.w3.org/1999/xhtml");var i=l.label;switch(typeof i){case"function":a.insert(i);break;case"object":a.insert(function(){return i});break;default:a.html(i)}O(a,l.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap");var d=a.node().getBoundingClientRect();return c.attr("width",d.width).attr("height",d.height),c}const G={},te=function(e){const l=Object.keys(e);for(const c of l)G[c]=e[c]},z=function(e,l,c,a,i,d){const w=a.select(`[id="${c}"]`);Object.keys(e).forEach(function(p){const r=e[p];let g="default";r.classes.length>0&&(g=r.classes.join(" ")),g=g+" flowchart-label";const h=N(r.styles);let t=r.text!==void 0?r.text:r.id,s;if(u.info("vertex",r,r.labelType),r.labelType==="markdown")u.info("vertex",r,r.labelType);else if(U(C().flowchart.htmlLabels)){const m={label:t.replace(/fa[blrs]?:fa-[\w-]+/g,k=>`<i class='${k.replace(":"," ")}'></i>`)};s=ee(w,m).node(),s.parentNode.removeChild(s)}else{const m=i.createElementNS("http://www.w3.org/2000/svg","text");m.setAttribute("style",h.labelStyle.replace("color:","fill:"));const k=t.split(I.lineBreakRegex);for(const T of k){const v=i.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),v.setAttribute("dy","1em"),v.setAttribute("x","1"),v.textContent=T,m.appendChild(v)}s=m}let b=0,o="";switch(r.type){case"round":b=5,o="rect";break;case"square":o="rect";break;case"diamond":o="question";break;case"hexagon":o="hexagon";break;case"odd":o="rect_left_inv_arrow";break;case"lean_right":o="lean_right";break;case"lean_left":o="lean_left";break;case"trapezoid":o="trapezoid";break;case"inv_trapezoid":o="inv_trapezoid";break;case"odd_right":o="rect_left_inv_arrow";break;case"circle":o="circle";break;case"ellipse":o="ellipse";break;case"stadium":o="stadium";break;case"subroutine":o="subroutine";break;case"cylinder":o="cylinder";break;case"group":o="rect";break;case"doublecircle":o="doublecircle";break;default:o="rect"}l.setNode(r.id,{labelStyle:h.labelStyle,shape:o,labelText:t,labelType:r.labelType,rx:b,ry:b,class:g,style:h.style,id:r.id,link:r.link,linkTarget:r.linkTarget,tooltip:d.db.getTooltip(r.id)||"",domId:d.db.lookUpDomId(r.id),haveCallback:r.haveCallback,width:r.type==="group"?500:void 0,dir:r.dir,type:r.type,props:r.props,padding:C().flowchart.padding}),u.info("setNode",{labelStyle:h.labelStyle,labelType:r.labelType,shape:o,labelText:t,rx:b,ry:b,class:g,style:h.style,id:r.id,domId:d.db.lookUpDomId(r.id),width:r.type==="group"?500:void 0,type:r.type,dir:r.dir,props:r.props,padding:C().flowchart.padding})})},P=function(e,l,c){u.info("abc78 edges = ",e);let a=0,i={},d,w;if(e.defaultStyle!==void 0){const n=N(e.defaultStyle);d=n.style,w=n.labelStyle}e.forEach(function(n){a++;const p="L-"+n.start+"-"+n.end;i[p]===void 0?(i[p]=0,u.info("abc78 new entry",p,i[p])):(i[p]++,u.info("abc78 new entry",p,i[p]));let r=p+"-"+i[p];u.info("abc78 new link id to be used is",p,r,i[p]);const g="LS-"+n.start,h="LE-"+n.end,t={style:"",labelStyle:""};switch(t.minlen=n.length||1,n.type==="arrow_open"?t.arrowhead="none":t.arrowhead="normal",t.arrowTypeStart="arrow_open",t.arrowTypeEnd="arrow_open",n.type){case"double_arrow_cross":t.arrowTypeStart="arrow_cross";case"arrow_cross":t.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":t.arrowTypeStart="arrow_point";case"arrow_point":t.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":t.arrowTypeStart="arrow_circle";case"arrow_circle":t.arrowTypeEnd="arrow_circle";break}let s="",b="";switch(n.stroke){case"normal":s="fill:none;",d!==void 0&&(s=d),w!==void 0&&(b=w),t.thickness="normal",t.pattern="solid";break;case"dotted":t.thickness="normal",t.pattern="dotted",t.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":t.thickness="thick",t.pattern="solid",t.style="stroke-width: 3.5px;fill:none;";break;case"invisible":t.thickness="invisible",t.pattern="solid",t.style="stroke-width: 0;fill:none;";break}if(n.style!==void 0){const o=N(n.style);s=o.style,b=o.labelStyle}t.style=t.style+=s,t.labelStyle=t.labelStyle+=b,n.interpolate!==void 0?t.curve=$(n.interpolate,E):e.defaultInterpolate!==void 0?t.curve=$(e.defaultInterpolate,E):t.curve=$(G.curve,E),n.text===void 0?n.style!==void 0&&(t.arrowheadStyle="fill: #333"):(t.arrowheadStyle="fill: #333",t.labelpos="c"),t.labelType=n.labelType,t.label=n.text.replace(I.lineBreakRegex,` `),n.style===void 0&&(t.style=t.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),t.labelStyle=t.labelStyle.replace("color:","fill:"),t.id=r,t.classes="flowchart-link "+g+" "+h,l.setEdge(n.start,n.end,t,a)})},re=function(e,l){u.info("Extracting classes"),l.db.clear();try{return l.parse(e),l.db.getClasses()}catch{return}},le=async function(e,l,c,a){u.info("Drawing flowchart"),a.db.clear(),J.setGen("gen-2"),a.parser.parse(e);let i=a.db.getDirection();i===void 0&&(i="TD");const{securityLevel:d,flowchart:w}=C(),n=w.nodeSpacing||50,p=w.rankSpacing||50;let r;d==="sandbox"&&(r=_("#i"+l));const g=d==="sandbox"?_(r.nodes()[0].contentDocument.body):_("body"),h=d==="sandbox"?r.nodes()[0].contentDocument:document,t=new q({multigraph:!0,compound:!0}).setGraph({rankdir:i,nodesep:n,ranksep:p,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let s;const b=a.db.getSubGraphs();u.info("Subgraphs - ",b);for(let f=b.length-1;f>=0;f--)s=b[f],u.info("Subgraph - ",s),a.db.addVertex(s.id,{text:s.title,type:s.labelType},"group",void 0,s.classes,s.dir);const o=a.db.getVertices(),m=a.db.getEdges();u.info("Edges",m);let k=0;for(k=b.length-1;k>=0;k--){s=b[k],Q("cluster").append("text");for(let f=0;f<s.nodes.length;f++)u.info("Setting up subgraphs",s.nodes[f],s.id),t.setParent(s.nodes[f],s.id)}z(o,t,l,g,h,a),P(m,t);const T=g.select(`[id="${l}"]`),v=g.select("#"+l+" g");if(await K(v,t,["point","circle","cross"],"flowchart",l),H.insertTitle(T,"flowchartTitleText",w.titleTopMargin,a.db.getDiagramTitle()),W(t,T,w.diagramPadding,w.useMaxWidth),a.db.indexNodes("subGraph"+k),!w.htmlLabels){const f=h.querySelectorAll('[id="'+l+'"] .edgeLabel .label');for(const x of f){const S=x.getBBox(),y=h.createElementNS("http://www.w3.org/2000/svg","rect");y.setAttribute("rx",0),y.setAttribute("ry",0),y.setAttribute("width",S.width),y.setAttribute("height",S.height),x.insertBefore(y,x.firstChild)}}Object.keys(o).forEach(function(f){const x=o[f];if(x.link){const S=_("#"+l+' [id="'+f+'"]');if(S){const y=h.createElementNS("http://www.w3.org/2000/svg","a");y.setAttributeNS("http://www.w3.org/2000/svg","class",x.classes.join(" ")),y.setAttributeNS("http://www.w3.org/2000/svg","href",x.link),y.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),d==="sandbox"?y.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):x.linkTarget&&y.setAttributeNS("http://www.w3.org/2000/svg","target",x.linkTarget);const A=S.insert(function(){return y},":first-child"),B=S.select(".label-container");B&&A.append(function(){return B.node()});const D=S.select(".label");D&&A.append(function(){return D.node()})}}})},he={setConf:te,addVertices:z,addEdges:P,getClasses:re,draw:le},ae=(e,l)=>{const c=Z,a=c(e,"r"),i=c(e,"g"),d=c(e,"b");return X(a,i,d,l)},oe=e=>`.label { font-family: ${e.fontFamily}; color: ${e.nodeTextColor||e.textColor}; diff --git a/docs/assets/styles-a893c203-00f093d8.js b/docs/assets/styles-a893c203-67b644c0.js similarity index 99% rename from docs/assets/styles-a893c203-00f093d8.js rename to docs/assets/styles-a893c203-67b644c0.js index 82c6c841..81f7a502 100644 --- a/docs/assets/styles-a893c203-00f093d8.js +++ b/docs/assets/styles-a893c203-67b644c0.js @@ -1,4 +1,4 @@ -import{s as He,g as We,a as qe,b as Je,c as R,z as Ze,A as $e,m as et,B as tt,l as st,j as De,x as Ve,h as M}from"./index-b4f98efc.js";var Be=function(){var e=function(v,n,r,c){for(r=r||{},c=v.length;c--;r[v[c]]=n);return r},u=[1,34],l=[1,35],o=[1,36],h=[1,37],F=[1,9],m=[1,8],_=[1,19],D=[1,20],z=[1,21],Y=[1,40],L=[1,41],K=[1,27],j=[1,25],Q=[1,26],X=[1,32],H=[1,33],W=[1,28],q=[1,29],J=[1,30],Z=[1,31],f=[1,45],d=[1,42],E=[1,43],C=[1,44],k=[1,46],pe=[1,24],a=[1,16,24],$=[1,60],ee=[1,61],te=[1,62],se=[1,63],ie=[1,64],fe=[1,65],de=[1,66],ue=[1,16,24,52],Ne=[1,77],w=[1,16,24,27,28,36,50,52,55,68,69,70,71,72,73,74,79,81],ne=[1,16,24,27,28,34,36,50,52,55,59,68,69,70,71,72,73,74,79,81,94,96,97,98,99],Le=[1,86],re=[28,94,96,97,98,99],V=[28,73,74,94,96,97,98,99],Ie=[28,68,69,70,71,72,94,96,97,98,99],Ee=[1,99],Ce=[1,16,24,50,52,55],ae=[1,16,24,36],xe=[8,9,10,11,19,23,44,46,48,53,57,58,60,61,63,65,75,76,78,82,94,96,97,98,99],ge={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,statements:6,direction:7,direction_tb:8,direction_bt:9,direction_rl:10,direction_lr:11,graphConfig:12,openDirective:13,typeDirective:14,closeDirective:15,NEWLINE:16,":":17,argDirective:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,CLASS_DIAGRAM:23,EOF:24,statement:25,classLabel:26,SQS:27,STR:28,SQE:29,namespaceName:30,alphaNumToken:31,className:32,classLiteralName:33,GENERICTYPE:34,relationStatement:35,LABEL:36,namespaceStatement:37,classStatement:38,methodStatement:39,annotationStatement:40,clickStatement:41,cssClassStatement:42,noteStatement:43,acc_title:44,acc_title_value:45,acc_descr:46,acc_descr_value:47,acc_descr_multiline_value:48,namespaceIdentifier:49,STRUCT_START:50,classStatements:51,STRUCT_STOP:52,NAMESPACE:53,classIdentifier:54,STYLE_SEPARATOR:55,members:56,CLASS:57,ANNOTATION_START:58,ANNOTATION_END:59,MEMBER:60,SEPARATOR:61,relation:62,NOTE_FOR:63,noteText:64,NOTE:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,CSSCLASS:82,commentToken:83,textToken:84,graphCodeTokens:85,textNoTagsToken:86,TAGSTART:87,TAGEND:88,"==":89,"--":90,PCT:91,DEFAULT:92,SPACE:93,MINUS:94,keywords:95,UNICODE_TEXT:96,NUM:97,ALPHA:98,BQUOTE_STR:99,$accept:0,$end:1},terminals_:{2:"error",8:"direction_tb",9:"direction_bt",10:"direction_rl",11:"direction_lr",16:"NEWLINE",17:":",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",23:"CLASS_DIAGRAM",24:"EOF",27:"SQS",28:"STR",29:"SQE",34:"GENERICTYPE",36:"LABEL",44:"acc_title",45:"acc_title_value",46:"acc_descr",47:"acc_descr_value",48:"acc_descr_multiline_value",50:"STRUCT_START",52:"STRUCT_STOP",53:"NAMESPACE",55:"STYLE_SEPARATOR",57:"CLASS",58:"ANNOTATION_START",59:"ANNOTATION_END",60:"MEMBER",61:"SEPARATOR",63:"NOTE_FOR",65:"NOTE",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"CSSCLASS",85:"graphCodeTokens",87:"TAGSTART",88:"TAGEND",89:"==",90:"--",91:"PCT",92:"DEFAULT",93:"SPACE",94:"MINUS",95:"keywords",96:"UNICODE_TEXT",97:"NUM",98:"ALPHA",99:"BQUOTE_STR"},productions_:[0,[3,1],[3,2],[3,1],[7,1],[7,1],[7,1],[7,1],[4,1],[5,4],[5,6],[13,1],[14,1],[18,1],[15,1],[12,4],[6,1],[6,2],[6,3],[26,3],[30,1],[30,2],[32,1],[32,1],[32,2],[32,2],[32,2],[25,1],[25,2],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,2],[25,2],[25,1],[37,4],[37,5],[49,2],[51,1],[51,2],[51,3],[38,1],[38,3],[38,4],[38,6],[54,2],[54,3],[40,4],[56,1],[56,2],[39,1],[39,2],[39,1],[39,1],[35,3],[35,4],[35,4],[35,5],[43,3],[43,2],[62,3],[62,2],[62,2],[62,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[41,3],[41,4],[41,3],[41,4],[41,4],[41,5],[41,3],[41,4],[41,4],[41,5],[41,3],[41,4],[41,4],[41,5],[42,3],[83,1],[83,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[86,1],[86,1],[86,1],[86,1],[31,1],[31,1],[31,1],[31,1],[33,1],[64,1]],performAction:function(n,r,c,i,A,t,G){var s=t.length-1;switch(A){case 4:i.setDirection("TB");break;case 5:i.setDirection("BT");break;case 6:i.setDirection("RL");break;case 7:i.setDirection("LR");break;case 11:i.parseDirective("%%{","open_directive");break;case 12:i.parseDirective(t[s],"type_directive");break;case 13:t[s]=t[s].trim().replace(/'/g,'"'),i.parseDirective(t[s],"arg_directive");break;case 14:i.parseDirective("}%%","close_directive","class");break;case 19:this.$=t[s-1];break;case 20:case 22:case 23:this.$=t[s];break;case 21:case 24:this.$=t[s-1]+t[s];break;case 25:case 26:this.$=t[s-1]+"~"+t[s]+"~";break;case 27:i.addRelation(t[s]);break;case 28:t[s-1].title=i.cleanupLabel(t[s]),i.addRelation(t[s-1]);break;case 37:this.$=t[s].trim(),i.setAccTitle(this.$);break;case 38:case 39:this.$=t[s].trim(),i.setAccDescription(this.$);break;case 40:i.addClassesToNamespace(t[s-3],t[s-1]);break;case 41:i.addClassesToNamespace(t[s-4],t[s-1]);break;case 42:this.$=t[s],i.addNamespace(t[s]);break;case 43:this.$=[t[s]];break;case 44:this.$=[t[s-1]];break;case 45:t[s].unshift(t[s-2]),this.$=t[s];break;case 47:i.setCssClass(t[s-2],t[s]);break;case 48:i.addMembers(t[s-3],t[s-1]);break;case 49:i.setCssClass(t[s-5],t[s-3]),i.addMembers(t[s-5],t[s-1]);break;case 50:this.$=t[s],i.addClass(t[s]);break;case 51:this.$=t[s-1],i.addClass(t[s-1]),i.setClassLabel(t[s-1],t[s]);break;case 52:i.addAnnotation(t[s],t[s-2]);break;case 53:this.$=[t[s]];break;case 54:t[s].push(t[s-1]),this.$=t[s];break;case 55:break;case 56:i.addMember(t[s-1],i.cleanupLabel(t[s]));break;case 57:break;case 58:break;case 59:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 60:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 61:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 62:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 63:i.addNote(t[s],t[s-1]);break;case 64:i.addNote(t[s]);break;case 65:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 66:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 67:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 68:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 69:this.$=i.relationType.AGGREGATION;break;case 70:this.$=i.relationType.EXTENSION;break;case 71:this.$=i.relationType.COMPOSITION;break;case 72:this.$=i.relationType.DEPENDENCY;break;case 73:this.$=i.relationType.LOLLIPOP;break;case 74:this.$=i.lineType.LINE;break;case 75:this.$=i.lineType.DOTTED_LINE;break;case 76:case 82:this.$=t[s-2],i.setClickEvent(t[s-1],t[s]);break;case 77:case 83:this.$=t[s-3],i.setClickEvent(t[s-2],t[s-1]),i.setTooltip(t[s-2],t[s]);break;case 78:case 86:this.$=t[s-2],i.setLink(t[s-1],t[s]);break;case 79:this.$=t[s-3],i.setLink(t[s-2],t[s-1],t[s]);break;case 80:case 88:this.$=t[s-3],i.setLink(t[s-2],t[s-1]),i.setTooltip(t[s-2],t[s]);break;case 81:case 89:this.$=t[s-4],i.setLink(t[s-3],t[s-2],t[s]),i.setTooltip(t[s-3],t[s-1]);break;case 84:this.$=t[s-3],i.setClickEvent(t[s-2],t[s-1],t[s]);break;case 85:this.$=t[s-4],i.setClickEvent(t[s-3],t[s-2],t[s-1]),i.setTooltip(t[s-3],t[s]);break;case 87:this.$=t[s-3],i.setLink(t[s-2],t[s-1],t[s]);break;case 90:i.setCssClass(t[s-1],t[s]);break}},table:[{3:1,4:2,5:3,6:4,7:18,8:u,9:l,10:o,11:h,12:5,13:6,19:F,23:m,25:7,31:38,32:22,33:39,35:10,37:11,38:12,39:13,40:14,41:15,42:16,43:17,44:_,46:D,48:z,49:23,53:Y,54:24,57:L,58:K,60:j,61:Q,63:X,65:H,75:W,76:q,78:J,82:Z,94:f,96:d,97:E,98:C,99:k},{1:[3]},{1:[2,1]},{3:47,4:2,5:3,6:4,7:18,8:u,9:l,10:o,11:h,12:5,13:6,19:F,23:m,25:7,31:38,32:22,33:39,35:10,37:11,38:12,39:13,40:14,41:15,42:16,43:17,44:_,46:D,48:z,49:23,53:Y,54:24,57:L,58:K,60:j,61:Q,63:X,65:H,75:W,76:q,78:J,82:Z,94:f,96:d,97:E,98:C,99:k},{1:[2,3]},{1:[2,8]},{14:48,20:[1,49]},e(pe,[2,16],{16:[1,50]}),{16:[1,51]},{20:[2,11]},e(a,[2,27],{36:[1,52]}),e(a,[2,29]),e(a,[2,30]),e(a,[2,31]),e(a,[2,32]),e(a,[2,33]),e(a,[2,34]),e(a,[2,35]),e(a,[2,36]),{45:[1,53]},{47:[1,54]},e(a,[2,39]),e(a,[2,55],{62:55,66:58,67:59,28:[1,56],36:[1,57],68:$,69:ee,70:te,71:se,72:ie,73:fe,74:de}),{50:[1,67]},e(ue,[2,46],{50:[1,69],55:[1,68]}),e(a,[2,57]),e(a,[2,58]),{31:70,94:f,96:d,97:E,98:C},{31:38,32:71,33:39,94:f,96:d,97:E,98:C,99:k},{31:38,32:72,33:39,94:f,96:d,97:E,98:C,99:k},{31:38,32:73,33:39,94:f,96:d,97:E,98:C,99:k},{28:[1,74]},{31:38,32:75,33:39,94:f,96:d,97:E,98:C,99:k},{28:Ne,64:76},e(a,[2,4]),e(a,[2,5]),e(a,[2,6]),e(a,[2,7]),e(w,[2,22],{31:38,33:39,32:78,34:[1,79],94:f,96:d,97:E,98:C,99:k}),e(w,[2,23],{34:[1,80]}),{30:81,31:82,94:f,96:d,97:E,98:C},{31:38,32:83,33:39,94:f,96:d,97:E,98:C,99:k},e(ne,[2,104]),e(ne,[2,105]),e(ne,[2,106]),e(ne,[2,107]),e([1,16,24,27,28,34,36,50,52,55,68,69,70,71,72,73,74,79,81],[2,108]),{1:[2,2]},{15:84,17:[1,85],22:Le},e([17,22],[2,12]),e(pe,[2,17],{25:7,35:10,37:11,38:12,39:13,40:14,41:15,42:16,43:17,7:18,32:22,49:23,54:24,31:38,33:39,6:87,8:u,9:l,10:o,11:h,44:_,46:D,48:z,53:Y,57:L,58:K,60:j,61:Q,63:X,65:H,75:W,76:q,78:J,82:Z,94:f,96:d,97:E,98:C,99:k}),{6:88,7:18,8:u,9:l,10:o,11:h,25:7,31:38,32:22,33:39,35:10,37:11,38:12,39:13,40:14,41:15,42:16,43:17,44:_,46:D,48:z,49:23,53:Y,54:24,57:L,58:K,60:j,61:Q,63:X,65:H,75:W,76:q,78:J,82:Z,94:f,96:d,97:E,98:C,99:k},e(a,[2,28]),e(a,[2,37]),e(a,[2,38]),{28:[1,90],31:38,32:89,33:39,94:f,96:d,97:E,98:C,99:k},{62:91,66:58,67:59,68:$,69:ee,70:te,71:se,72:ie,73:fe,74:de},e(a,[2,56]),{67:92,73:fe,74:de},e(re,[2,68],{66:93,68:$,69:ee,70:te,71:se,72:ie}),e(V,[2,69]),e(V,[2,70]),e(V,[2,71]),e(V,[2,72]),e(V,[2,73]),e(Ie,[2,74]),e(Ie,[2,75]),{16:[1,95],38:96,51:94,54:24,57:L},{31:97,94:f,96:d,97:E,98:C},{56:98,60:Ee},{59:[1,100]},{28:[1,101]},{28:[1,102]},{79:[1,103],81:[1,104]},{31:105,94:f,96:d,97:E,98:C},{28:Ne,64:106},e(a,[2,64]),e(a,[2,109]),e(w,[2,24]),e(w,[2,25]),e(w,[2,26]),{50:[2,42]},{30:107,31:82,50:[2,20],94:f,96:d,97:E,98:C},e(Ce,[2,50],{26:108,27:[1,109]}),{16:[1,110]},{18:111,21:[1,112]},{16:[2,14]},e(pe,[2,18]),{24:[1,113]},e(ae,[2,59]),{31:38,32:114,33:39,94:f,96:d,97:E,98:C,99:k},{28:[1,116],31:38,32:115,33:39,94:f,96:d,97:E,98:C,99:k},e(re,[2,67],{66:117,68:$,69:ee,70:te,71:se,72:ie}),e(re,[2,66]),{52:[1,118]},{38:96,51:119,54:24,57:L},{16:[1,120],52:[2,43]},e(ue,[2,47],{50:[1,121]}),{52:[1,122]},{52:[2,53],56:123,60:Ee},{31:38,32:124,33:39,94:f,96:d,97:E,98:C,99:k},e(a,[2,76],{28:[1,125]}),e(a,[2,78],{28:[1,127],77:[1,126]}),e(a,[2,82],{28:[1,128],80:[1,129]}),e(a,[2,86],{28:[1,131],77:[1,130]}),e(a,[2,90]),e(a,[2,63]),{50:[2,21]},e(Ce,[2,51]),{28:[1,132]},e(xe,[2,9]),{15:133,22:Le},{22:[2,13]},{1:[2,15]},e(ae,[2,61]),e(ae,[2,60]),{31:38,32:134,33:39,94:f,96:d,97:E,98:C,99:k},e(re,[2,65]),e(a,[2,40]),{52:[1,135]},{38:96,51:136,52:[2,44],54:24,57:L},{56:137,60:Ee},e(ue,[2,48]),{52:[2,54]},e(a,[2,52]),e(a,[2,77]),e(a,[2,79]),e(a,[2,80],{77:[1,138]}),e(a,[2,83]),e(a,[2,84],{28:[1,139]}),e(a,[2,87]),e(a,[2,88],{77:[1,140]}),{29:[1,141]},{16:[1,142]},e(ae,[2,62]),e(a,[2,41]),{52:[2,45]},{52:[1,143]},e(a,[2,81]),e(a,[2,85]),e(a,[2,89]),e(Ce,[2,19]),e(xe,[2,10]),e(ue,[2,49])],defaultActions:{2:[2,1],4:[2,3],5:[2,8],9:[2,11],47:[2,2],81:[2,42],86:[2,14],107:[2,21],112:[2,13],113:[2,15],123:[2,54],136:[2,45]},parseError:function(n,r){if(r.recoverable)this.trace(n);else{var c=new Error(n);throw c.hash=r,c}},parse:function(n){var r=this,c=[0],i=[],A=[null],t=[],G=this.table,s="",ce=0,Oe=0,Ke=2,Re=1,je=t.slice.call(arguments,1),g=Object.create(this.lexer),I={yy:{}};for(var ke in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ke)&&(I.yy[ke]=this.yy[ke]);g.setInput(n,I.yy),I.yy.lexer=g,I.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var Fe=g.yylloc;t.push(Fe);var Qe=g.options&&g.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Xe(){var y;return y=i.pop()||g.lex()||Re,typeof y!="number"&&(y instanceof Array&&(i=y,y=i.pop()),y=r.symbols_[y]||y),y}for(var b,x,B,be,O={},le,T,Pe,oe;;){if(x=c[c.length-1],this.defaultActions[x]?B=this.defaultActions[x]:((b===null||typeof b>"u")&&(b=Xe()),B=G[x]&&G[x][b]),typeof B>"u"||!B.length||!B[0]){var _e="";oe=[];for(le in G[x])this.terminals_[le]&&le>Ke&&oe.push("'"+this.terminals_[le]+"'");g.showPosition?_e="Parse error on line "+(ce+1)+`: +import{s as He,g as We,a as qe,b as Je,c as R,z as Ze,A as $e,m as et,B as tt,l as st,j as De,x as Ve,h as M}from"./index-0e08498d.js";var Be=function(){var e=function(v,n,r,c){for(r=r||{},c=v.length;c--;r[v[c]]=n);return r},u=[1,34],l=[1,35],o=[1,36],h=[1,37],F=[1,9],m=[1,8],_=[1,19],D=[1,20],z=[1,21],Y=[1,40],L=[1,41],K=[1,27],j=[1,25],Q=[1,26],X=[1,32],H=[1,33],W=[1,28],q=[1,29],J=[1,30],Z=[1,31],f=[1,45],d=[1,42],E=[1,43],C=[1,44],k=[1,46],pe=[1,24],a=[1,16,24],$=[1,60],ee=[1,61],te=[1,62],se=[1,63],ie=[1,64],fe=[1,65],de=[1,66],ue=[1,16,24,52],Ne=[1,77],w=[1,16,24,27,28,36,50,52,55,68,69,70,71,72,73,74,79,81],ne=[1,16,24,27,28,34,36,50,52,55,59,68,69,70,71,72,73,74,79,81,94,96,97,98,99],Le=[1,86],re=[28,94,96,97,98,99],V=[28,73,74,94,96,97,98,99],Ie=[28,68,69,70,71,72,94,96,97,98,99],Ee=[1,99],Ce=[1,16,24,50,52,55],ae=[1,16,24,36],xe=[8,9,10,11,19,23,44,46,48,53,57,58,60,61,63,65,75,76,78,82,94,96,97,98,99],ge={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,statements:6,direction:7,direction_tb:8,direction_bt:9,direction_rl:10,direction_lr:11,graphConfig:12,openDirective:13,typeDirective:14,closeDirective:15,NEWLINE:16,":":17,argDirective:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,CLASS_DIAGRAM:23,EOF:24,statement:25,classLabel:26,SQS:27,STR:28,SQE:29,namespaceName:30,alphaNumToken:31,className:32,classLiteralName:33,GENERICTYPE:34,relationStatement:35,LABEL:36,namespaceStatement:37,classStatement:38,methodStatement:39,annotationStatement:40,clickStatement:41,cssClassStatement:42,noteStatement:43,acc_title:44,acc_title_value:45,acc_descr:46,acc_descr_value:47,acc_descr_multiline_value:48,namespaceIdentifier:49,STRUCT_START:50,classStatements:51,STRUCT_STOP:52,NAMESPACE:53,classIdentifier:54,STYLE_SEPARATOR:55,members:56,CLASS:57,ANNOTATION_START:58,ANNOTATION_END:59,MEMBER:60,SEPARATOR:61,relation:62,NOTE_FOR:63,noteText:64,NOTE:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,CSSCLASS:82,commentToken:83,textToken:84,graphCodeTokens:85,textNoTagsToken:86,TAGSTART:87,TAGEND:88,"==":89,"--":90,PCT:91,DEFAULT:92,SPACE:93,MINUS:94,keywords:95,UNICODE_TEXT:96,NUM:97,ALPHA:98,BQUOTE_STR:99,$accept:0,$end:1},terminals_:{2:"error",8:"direction_tb",9:"direction_bt",10:"direction_rl",11:"direction_lr",16:"NEWLINE",17:":",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",23:"CLASS_DIAGRAM",24:"EOF",27:"SQS",28:"STR",29:"SQE",34:"GENERICTYPE",36:"LABEL",44:"acc_title",45:"acc_title_value",46:"acc_descr",47:"acc_descr_value",48:"acc_descr_multiline_value",50:"STRUCT_START",52:"STRUCT_STOP",53:"NAMESPACE",55:"STYLE_SEPARATOR",57:"CLASS",58:"ANNOTATION_START",59:"ANNOTATION_END",60:"MEMBER",61:"SEPARATOR",63:"NOTE_FOR",65:"NOTE",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"CSSCLASS",85:"graphCodeTokens",87:"TAGSTART",88:"TAGEND",89:"==",90:"--",91:"PCT",92:"DEFAULT",93:"SPACE",94:"MINUS",95:"keywords",96:"UNICODE_TEXT",97:"NUM",98:"ALPHA",99:"BQUOTE_STR"},productions_:[0,[3,1],[3,2],[3,1],[7,1],[7,1],[7,1],[7,1],[4,1],[5,4],[5,6],[13,1],[14,1],[18,1],[15,1],[12,4],[6,1],[6,2],[6,3],[26,3],[30,1],[30,2],[32,1],[32,1],[32,2],[32,2],[32,2],[25,1],[25,2],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,2],[25,2],[25,1],[37,4],[37,5],[49,2],[51,1],[51,2],[51,3],[38,1],[38,3],[38,4],[38,6],[54,2],[54,3],[40,4],[56,1],[56,2],[39,1],[39,2],[39,1],[39,1],[35,3],[35,4],[35,4],[35,5],[43,3],[43,2],[62,3],[62,2],[62,2],[62,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[41,3],[41,4],[41,3],[41,4],[41,4],[41,5],[41,3],[41,4],[41,4],[41,5],[41,3],[41,4],[41,4],[41,5],[42,3],[83,1],[83,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[86,1],[86,1],[86,1],[86,1],[31,1],[31,1],[31,1],[31,1],[33,1],[64,1]],performAction:function(n,r,c,i,A,t,G){var s=t.length-1;switch(A){case 4:i.setDirection("TB");break;case 5:i.setDirection("BT");break;case 6:i.setDirection("RL");break;case 7:i.setDirection("LR");break;case 11:i.parseDirective("%%{","open_directive");break;case 12:i.parseDirective(t[s],"type_directive");break;case 13:t[s]=t[s].trim().replace(/'/g,'"'),i.parseDirective(t[s],"arg_directive");break;case 14:i.parseDirective("}%%","close_directive","class");break;case 19:this.$=t[s-1];break;case 20:case 22:case 23:this.$=t[s];break;case 21:case 24:this.$=t[s-1]+t[s];break;case 25:case 26:this.$=t[s-1]+"~"+t[s]+"~";break;case 27:i.addRelation(t[s]);break;case 28:t[s-1].title=i.cleanupLabel(t[s]),i.addRelation(t[s-1]);break;case 37:this.$=t[s].trim(),i.setAccTitle(this.$);break;case 38:case 39:this.$=t[s].trim(),i.setAccDescription(this.$);break;case 40:i.addClassesToNamespace(t[s-3],t[s-1]);break;case 41:i.addClassesToNamespace(t[s-4],t[s-1]);break;case 42:this.$=t[s],i.addNamespace(t[s]);break;case 43:this.$=[t[s]];break;case 44:this.$=[t[s-1]];break;case 45:t[s].unshift(t[s-2]),this.$=t[s];break;case 47:i.setCssClass(t[s-2],t[s]);break;case 48:i.addMembers(t[s-3],t[s-1]);break;case 49:i.setCssClass(t[s-5],t[s-3]),i.addMembers(t[s-5],t[s-1]);break;case 50:this.$=t[s],i.addClass(t[s]);break;case 51:this.$=t[s-1],i.addClass(t[s-1]),i.setClassLabel(t[s-1],t[s]);break;case 52:i.addAnnotation(t[s],t[s-2]);break;case 53:this.$=[t[s]];break;case 54:t[s].push(t[s-1]),this.$=t[s];break;case 55:break;case 56:i.addMember(t[s-1],i.cleanupLabel(t[s]));break;case 57:break;case 58:break;case 59:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 60:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 61:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 62:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 63:i.addNote(t[s],t[s-1]);break;case 64:i.addNote(t[s]);break;case 65:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 66:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 67:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 68:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 69:this.$=i.relationType.AGGREGATION;break;case 70:this.$=i.relationType.EXTENSION;break;case 71:this.$=i.relationType.COMPOSITION;break;case 72:this.$=i.relationType.DEPENDENCY;break;case 73:this.$=i.relationType.LOLLIPOP;break;case 74:this.$=i.lineType.LINE;break;case 75:this.$=i.lineType.DOTTED_LINE;break;case 76:case 82:this.$=t[s-2],i.setClickEvent(t[s-1],t[s]);break;case 77:case 83:this.$=t[s-3],i.setClickEvent(t[s-2],t[s-1]),i.setTooltip(t[s-2],t[s]);break;case 78:case 86:this.$=t[s-2],i.setLink(t[s-1],t[s]);break;case 79:this.$=t[s-3],i.setLink(t[s-2],t[s-1],t[s]);break;case 80:case 88:this.$=t[s-3],i.setLink(t[s-2],t[s-1]),i.setTooltip(t[s-2],t[s]);break;case 81:case 89:this.$=t[s-4],i.setLink(t[s-3],t[s-2],t[s]),i.setTooltip(t[s-3],t[s-1]);break;case 84:this.$=t[s-3],i.setClickEvent(t[s-2],t[s-1],t[s]);break;case 85:this.$=t[s-4],i.setClickEvent(t[s-3],t[s-2],t[s-1]),i.setTooltip(t[s-3],t[s]);break;case 87:this.$=t[s-3],i.setLink(t[s-2],t[s-1],t[s]);break;case 90:i.setCssClass(t[s-1],t[s]);break}},table:[{3:1,4:2,5:3,6:4,7:18,8:u,9:l,10:o,11:h,12:5,13:6,19:F,23:m,25:7,31:38,32:22,33:39,35:10,37:11,38:12,39:13,40:14,41:15,42:16,43:17,44:_,46:D,48:z,49:23,53:Y,54:24,57:L,58:K,60:j,61:Q,63:X,65:H,75:W,76:q,78:J,82:Z,94:f,96:d,97:E,98:C,99:k},{1:[3]},{1:[2,1]},{3:47,4:2,5:3,6:4,7:18,8:u,9:l,10:o,11:h,12:5,13:6,19:F,23:m,25:7,31:38,32:22,33:39,35:10,37:11,38:12,39:13,40:14,41:15,42:16,43:17,44:_,46:D,48:z,49:23,53:Y,54:24,57:L,58:K,60:j,61:Q,63:X,65:H,75:W,76:q,78:J,82:Z,94:f,96:d,97:E,98:C,99:k},{1:[2,3]},{1:[2,8]},{14:48,20:[1,49]},e(pe,[2,16],{16:[1,50]}),{16:[1,51]},{20:[2,11]},e(a,[2,27],{36:[1,52]}),e(a,[2,29]),e(a,[2,30]),e(a,[2,31]),e(a,[2,32]),e(a,[2,33]),e(a,[2,34]),e(a,[2,35]),e(a,[2,36]),{45:[1,53]},{47:[1,54]},e(a,[2,39]),e(a,[2,55],{62:55,66:58,67:59,28:[1,56],36:[1,57],68:$,69:ee,70:te,71:se,72:ie,73:fe,74:de}),{50:[1,67]},e(ue,[2,46],{50:[1,69],55:[1,68]}),e(a,[2,57]),e(a,[2,58]),{31:70,94:f,96:d,97:E,98:C},{31:38,32:71,33:39,94:f,96:d,97:E,98:C,99:k},{31:38,32:72,33:39,94:f,96:d,97:E,98:C,99:k},{31:38,32:73,33:39,94:f,96:d,97:E,98:C,99:k},{28:[1,74]},{31:38,32:75,33:39,94:f,96:d,97:E,98:C,99:k},{28:Ne,64:76},e(a,[2,4]),e(a,[2,5]),e(a,[2,6]),e(a,[2,7]),e(w,[2,22],{31:38,33:39,32:78,34:[1,79],94:f,96:d,97:E,98:C,99:k}),e(w,[2,23],{34:[1,80]}),{30:81,31:82,94:f,96:d,97:E,98:C},{31:38,32:83,33:39,94:f,96:d,97:E,98:C,99:k},e(ne,[2,104]),e(ne,[2,105]),e(ne,[2,106]),e(ne,[2,107]),e([1,16,24,27,28,34,36,50,52,55,68,69,70,71,72,73,74,79,81],[2,108]),{1:[2,2]},{15:84,17:[1,85],22:Le},e([17,22],[2,12]),e(pe,[2,17],{25:7,35:10,37:11,38:12,39:13,40:14,41:15,42:16,43:17,7:18,32:22,49:23,54:24,31:38,33:39,6:87,8:u,9:l,10:o,11:h,44:_,46:D,48:z,53:Y,57:L,58:K,60:j,61:Q,63:X,65:H,75:W,76:q,78:J,82:Z,94:f,96:d,97:E,98:C,99:k}),{6:88,7:18,8:u,9:l,10:o,11:h,25:7,31:38,32:22,33:39,35:10,37:11,38:12,39:13,40:14,41:15,42:16,43:17,44:_,46:D,48:z,49:23,53:Y,54:24,57:L,58:K,60:j,61:Q,63:X,65:H,75:W,76:q,78:J,82:Z,94:f,96:d,97:E,98:C,99:k},e(a,[2,28]),e(a,[2,37]),e(a,[2,38]),{28:[1,90],31:38,32:89,33:39,94:f,96:d,97:E,98:C,99:k},{62:91,66:58,67:59,68:$,69:ee,70:te,71:se,72:ie,73:fe,74:de},e(a,[2,56]),{67:92,73:fe,74:de},e(re,[2,68],{66:93,68:$,69:ee,70:te,71:se,72:ie}),e(V,[2,69]),e(V,[2,70]),e(V,[2,71]),e(V,[2,72]),e(V,[2,73]),e(Ie,[2,74]),e(Ie,[2,75]),{16:[1,95],38:96,51:94,54:24,57:L},{31:97,94:f,96:d,97:E,98:C},{56:98,60:Ee},{59:[1,100]},{28:[1,101]},{28:[1,102]},{79:[1,103],81:[1,104]},{31:105,94:f,96:d,97:E,98:C},{28:Ne,64:106},e(a,[2,64]),e(a,[2,109]),e(w,[2,24]),e(w,[2,25]),e(w,[2,26]),{50:[2,42]},{30:107,31:82,50:[2,20],94:f,96:d,97:E,98:C},e(Ce,[2,50],{26:108,27:[1,109]}),{16:[1,110]},{18:111,21:[1,112]},{16:[2,14]},e(pe,[2,18]),{24:[1,113]},e(ae,[2,59]),{31:38,32:114,33:39,94:f,96:d,97:E,98:C,99:k},{28:[1,116],31:38,32:115,33:39,94:f,96:d,97:E,98:C,99:k},e(re,[2,67],{66:117,68:$,69:ee,70:te,71:se,72:ie}),e(re,[2,66]),{52:[1,118]},{38:96,51:119,54:24,57:L},{16:[1,120],52:[2,43]},e(ue,[2,47],{50:[1,121]}),{52:[1,122]},{52:[2,53],56:123,60:Ee},{31:38,32:124,33:39,94:f,96:d,97:E,98:C,99:k},e(a,[2,76],{28:[1,125]}),e(a,[2,78],{28:[1,127],77:[1,126]}),e(a,[2,82],{28:[1,128],80:[1,129]}),e(a,[2,86],{28:[1,131],77:[1,130]}),e(a,[2,90]),e(a,[2,63]),{50:[2,21]},e(Ce,[2,51]),{28:[1,132]},e(xe,[2,9]),{15:133,22:Le},{22:[2,13]},{1:[2,15]},e(ae,[2,61]),e(ae,[2,60]),{31:38,32:134,33:39,94:f,96:d,97:E,98:C,99:k},e(re,[2,65]),e(a,[2,40]),{52:[1,135]},{38:96,51:136,52:[2,44],54:24,57:L},{56:137,60:Ee},e(ue,[2,48]),{52:[2,54]},e(a,[2,52]),e(a,[2,77]),e(a,[2,79]),e(a,[2,80],{77:[1,138]}),e(a,[2,83]),e(a,[2,84],{28:[1,139]}),e(a,[2,87]),e(a,[2,88],{77:[1,140]}),{29:[1,141]},{16:[1,142]},e(ae,[2,62]),e(a,[2,41]),{52:[2,45]},{52:[1,143]},e(a,[2,81]),e(a,[2,85]),e(a,[2,89]),e(Ce,[2,19]),e(xe,[2,10]),e(ue,[2,49])],defaultActions:{2:[2,1],4:[2,3],5:[2,8],9:[2,11],47:[2,2],81:[2,42],86:[2,14],107:[2,21],112:[2,13],113:[2,15],123:[2,54],136:[2,45]},parseError:function(n,r){if(r.recoverable)this.trace(n);else{var c=new Error(n);throw c.hash=r,c}},parse:function(n){var r=this,c=[0],i=[],A=[null],t=[],G=this.table,s="",ce=0,Oe=0,Ke=2,Re=1,je=t.slice.call(arguments,1),g=Object.create(this.lexer),I={yy:{}};for(var ke in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ke)&&(I.yy[ke]=this.yy[ke]);g.setInput(n,I.yy),I.yy.lexer=g,I.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var Fe=g.yylloc;t.push(Fe);var Qe=g.options&&g.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Xe(){var y;return y=i.pop()||g.lex()||Re,typeof y!="number"&&(y instanceof Array&&(i=y,y=i.pop()),y=r.symbols_[y]||y),y}for(var b,x,B,be,O={},le,T,Pe,oe;;){if(x=c[c.length-1],this.defaultActions[x]?B=this.defaultActions[x]:((b===null||typeof b>"u")&&(b=Xe()),B=G[x]&&G[x][b]),typeof B>"u"||!B.length||!B[0]){var _e="";oe=[];for(le in G[x])this.terminals_[le]&&le>Ke&&oe.push("'"+this.terminals_[le]+"'");g.showPosition?_e="Parse error on line "+(ce+1)+`: `+g.showPosition()+` Expecting `+oe.join(", ")+", got '"+(this.terminals_[b]||b)+"'":_e="Parse error on line "+(ce+1)+": Unexpected "+(b==Re?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(_e,{text:g.match,token:this.terminals_[b]||b,line:g.yylineno,loc:Fe,expected:oe})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+b);switch(B[0]){case 1:c.push(b),A.push(g.yytext),t.push(g.yylloc),c.push(B[1]),b=null,Oe=g.yyleng,s=g.yytext,ce=g.yylineno,Fe=g.yylloc;break;case 2:if(T=this.productions_[B[1]][1],O.$=A[A.length-T],O._$={first_line:t[t.length-(T||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(T||1)].first_column,last_column:t[t.length-1].last_column},Qe&&(O._$.range=[t[t.length-(T||1)].range[0],t[t.length-1].range[1]]),be=this.performAction.apply(O,[s,Oe,ce,I.yy,B[1],A,t].concat(je)),typeof be<"u")return be;T&&(c=c.slice(0,-1*T*2),A=A.slice(0,-1*T),t=t.slice(0,-1*T)),c.push(this.productions_[B[1]][0]),A.push(O.$),t.push(O._$),Pe=G[c[c.length-2]][c[c.length-1]],c.push(Pe);break;case 3:return!0}}return!0}},Ye=function(){var v={EOF:1,parseError:function(r,c){if(this.yy.parser)this.yy.parser.parseError(r,c);else throw new Error(r)},setInput:function(n,r){return this.yy=r||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var r=n.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var r=n.length,c=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var A=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===i.length?this.yylloc.first_column:0)+i[i.length-c.length].length-c[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[A[0],A[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var n=this.pastInput(),r=new Array(n.length+1).join("-");return n+this.upcomingInput()+` diff --git a/docs/assets/styles-b820c189-b659880f.js b/docs/assets/styles-b820c189-3143e8ba.js similarity index 99% rename from docs/assets/styles-b820c189-b659880f.js rename to docs/assets/styles-b820c189-3143e8ba.js index 04aa1bd6..149c5533 100644 --- a/docs/assets/styles-b820c189-b659880f.js +++ b/docs/assets/styles-b820c189-3143e8ba.js @@ -1,4 +1,4 @@ -import{c as Y,g as Ht,s as Xt,a as Kt,b as Wt,z as Jt,A as qt,m as Qt,l as v,j as ht,B as Zt,a5 as te}from"./index-b4f98efc.js";var mt=function(){var t=function(D,r,a,i){for(a=a||{},i=D.length;i--;a[D[i]]=r);return a},s=[1,2],n=[1,3],h=[1,5],u=[1,7],f=[2,5],p=[1,15],x=[1,17],d=[1,21],k=[1,22],T=[1,23],G=[1,24],R=[1,37],j=[1,25],U=[1,26],z=[1,27],M=[1,28],H=[1,29],X=[1,32],K=[1,33],W=[1,34],J=[1,35],q=[1,36],Q=[1,39],Z=[1,40],tt=[1,41],et=[1,42],w=[1,38],Ct=[1,45],o=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],st=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],ut=[1,4,5,7,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],At=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],dt={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,directive:6,SD:7,document:8,line:9,statement:10,classDefStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,classDef:38,CLASSDEF_ID:39,CLASSDEF_STYLEOPTS:40,DEFAULT:41,class:42,CLASSENTITY_IDS:43,STYLECLASS:44,openDirective:45,typeDirective:46,closeDirective:47,":":48,argDirective:49,direction_tb:50,direction_bt:51,direction_rl:52,direction_lr:53,eol:54,";":55,EDGE_STATE:56,STYLE_SEPARATOR:57,left_of:58,right_of:59,open_directive:60,type_directive:61,arg_directive:62,close_directive:63,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",7:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"classDef",39:"CLASSDEF_ID",40:"CLASSDEF_STYLEOPTS",41:"DEFAULT",42:"class",43:"CLASSENTITY_IDS",44:"STYLECLASS",48:":",50:"direction_tb",51:"direction_bt",52:"direction_rl",53:"direction_lr",55:";",56:"EDGE_STATE",57:"STYLE_SEPARATOR",58:"left_of",59:"right_of",60:"open_directive",61:"type_directive",62:"arg_directive",63:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[10,1],[10,1],[10,1],[10,2],[10,3],[10,4],[10,1],[10,2],[10,1],[10,4],[10,3],[10,6],[10,1],[10,1],[10,1],[10,1],[10,4],[10,4],[10,1],[10,1],[10,2],[10,2],[10,1],[11,3],[11,3],[12,3],[6,3],[6,5],[32,1],[32,1],[32,1],[32,1],[54,1],[54,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1],[45,1],[46,1],[49,1],[47,1]],performAction:function(r,a,i,l,y,e,B){var c=e.length-1;switch(y){case 4:return l.setRootDoc(e[c]),e[c];case 5:this.$=[];break;case 6:e[c]!="nl"&&(e[c-1].push(e[c]),this.$=e[c-1]);break;case 7:case 8:this.$=e[c];break;case 9:this.$="nl";break;case 12:this.$=e[c];break;case 13:const $=e[c-1];$.description=l.trimColon(e[c]),this.$=$;break;case 14:this.$={stmt:"relation",state1:e[c-2],state2:e[c]};break;case 15:const pt=l.trimColon(e[c]);this.$={stmt:"relation",state1:e[c-3],state2:e[c-1],description:pt};break;case 19:this.$={stmt:"state",id:e[c-3],type:"default",description:"",doc:e[c-1]};break;case 20:var C=e[c],O=e[c-2].trim();if(e[c].match(":")){var it=e[c].split(":");C=it[0],O=[O,it[1]]}this.$={stmt:"state",id:C,type:"default",description:O};break;case 21:this.$={stmt:"state",id:e[c-3],type:"default",description:e[c-5],doc:e[c-1]};break;case 22:this.$={stmt:"state",id:e[c],type:"fork"};break;case 23:this.$={stmt:"state",id:e[c],type:"join"};break;case 24:this.$={stmt:"state",id:e[c],type:"choice"};break;case 25:this.$={stmt:"state",id:l.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:e[c-1].trim(),note:{position:e[c-2].trim(),text:e[c].trim()}};break;case 30:this.$=e[c].trim(),l.setAccTitle(this.$);break;case 31:case 32:this.$=e[c].trim(),l.setAccDescription(this.$);break;case 33:case 34:this.$={stmt:"classDef",id:e[c-1].trim(),classes:e[c].trim()};break;case 35:this.$={stmt:"applyClass",id:e[c-1].trim(),styleClass:e[c].trim()};break;case 38:l.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:l.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:l.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:l.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:e[c].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:e[c-2].trim(),classes:[e[c].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:e[c-2].trim(),classes:[e[c].trim()],type:"default",description:""};break;case 50:l.parseDirective("%%{","open_directive");break;case 51:l.parseDirective(e[c],"type_directive");break;case 52:e[c]=e[c].trim().replace(/'/g,'"'),l.parseDirective(e[c],"arg_directive");break;case 53:l.parseDirective("}%%","close_directive","state");break}},table:[{3:1,4:s,5:n,6:4,7:h,45:6,60:u},{1:[3]},{3:8,4:s,5:n,6:4,7:h,45:6,60:u},{3:9,4:s,5:n,6:4,7:h,45:6,60:u},{3:10,4:s,5:n,6:4,7:h,45:6,60:u},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],f,{8:11}),{46:12,61:[1,13]},{61:[2,50]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:p,5:x,6:30,9:14,10:16,11:18,12:19,13:20,16:d,17:k,19:T,22:G,24:R,25:j,26:U,27:z,28:M,29:H,32:31,33:X,35:K,37:W,38:J,42:q,45:6,50:Q,51:Z,52:tt,53:et,56:w,60:u},{47:43,48:[1,44],63:Ct},t([48,63],[2,51]),t(o,[2,6]),{6:30,10:46,11:18,12:19,13:20,16:d,17:k,19:T,22:G,24:R,25:j,26:U,27:z,28:M,29:H,32:31,33:X,35:K,37:W,38:J,42:q,45:6,50:Q,51:Z,52:tt,53:et,56:w,60:u},t(o,[2,8]),t(o,[2,9]),t(o,[2,10]),t(o,[2,11]),t(o,[2,12],{14:[1,47],15:[1,48]}),t(o,[2,16]),{18:[1,49]},t(o,[2,18],{20:[1,50]}),{23:[1,51]},t(o,[2,22]),t(o,[2,23]),t(o,[2,24]),t(o,[2,25]),{30:52,31:[1,53],58:[1,54],59:[1,55]},t(o,[2,28]),t(o,[2,29]),{34:[1,56]},{36:[1,57]},t(o,[2,32]),{39:[1,58],41:[1,59]},{43:[1,60]},t(st,[2,44],{57:[1,61]}),t(st,[2,45],{57:[1,62]}),t(o,[2,38]),t(o,[2,39]),t(o,[2,40]),t(o,[2,41]),t(ut,[2,36]),{49:63,62:[1,64]},t(ut,[2,53]),t(o,[2,7]),t(o,[2,13]),{13:65,24:R,56:w},t(o,[2,17]),t(At,f,{8:66}),{24:[1,67]},{24:[1,68]},{23:[1,69]},{24:[2,48]},{24:[2,49]},t(o,[2,30]),t(o,[2,31]),{40:[1,70]},{40:[1,71]},{44:[1,72]},{24:[1,73]},{24:[1,74]},{47:75,63:Ct},{63:[2,52]},t(o,[2,14],{14:[1,76]}),{4:p,5:x,6:30,9:14,10:16,11:18,12:19,13:20,16:d,17:k,19:T,21:[1,77],22:G,24:R,25:j,26:U,27:z,28:M,29:H,32:31,33:X,35:K,37:W,38:J,42:q,45:6,50:Q,51:Z,52:tt,53:et,56:w,60:u},t(o,[2,20],{20:[1,78]}),{31:[1,79]},{24:[1,80]},t(o,[2,33]),t(o,[2,34]),t(o,[2,35]),t(st,[2,46]),t(st,[2,47]),t(ut,[2,37]),t(o,[2,15]),t(o,[2,19]),t(At,f,{8:81}),t(o,[2,26]),t(o,[2,27]),{4:p,5:x,6:30,9:14,10:16,11:18,12:19,13:20,16:d,17:k,19:T,21:[1,82],22:G,24:R,25:j,26:U,27:z,28:M,29:H,32:31,33:X,35:K,37:W,38:J,42:q,45:6,50:Q,51:Z,52:tt,53:et,56:w,60:u},t(o,[2,21])],defaultActions:{7:[2,50],8:[2,1],9:[2,2],10:[2,3],54:[2,48],55:[2,49],64:[2,52]},parseError:function(r,a){if(a.recoverable)this.trace(r);else{var i=new Error(r);throw i.hash=a,i}},parse:function(r){var a=this,i=[0],l=[],y=[null],e=[],B=this.table,c="",C=0,O=0,it=2,$=1,pt=e.slice.call(arguments,1),S=Object.create(this.lexer),A={yy:{}};for(var yt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,yt)&&(A.yy[yt]=this.yy[yt]);S.setInput(r,A.yy),A.yy.lexer=S,A.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var St=S.yylloc;e.push(St);var zt=S.options&&S.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Mt(){var E;return E=l.pop()||S.lex()||$,typeof E!="number"&&(E instanceof Array&&(l=E,E=l.pop()),E=a.symbols_[E]||E),E}for(var _,L,m,gt,N={},rt,b,Lt,nt;;){if(L=i[i.length-1],this.defaultActions[L]?m=this.defaultActions[L]:((_===null||typeof _>"u")&&(_=Mt()),m=B[L]&&B[L][_]),typeof m>"u"||!m.length||!m[0]){var _t="";nt=[];for(rt in B[L])this.terminals_[rt]&&rt>it&&nt.push("'"+this.terminals_[rt]+"'");S.showPosition?_t="Parse error on line "+(C+1)+`: +import{c as Y,g as Ht,s as Xt,a as Kt,b as Wt,z as Jt,A as qt,m as Qt,l as v,j as ht,B as Zt,a5 as te}from"./index-0e08498d.js";var mt=function(){var t=function(D,r,a,i){for(a=a||{},i=D.length;i--;a[D[i]]=r);return a},s=[1,2],n=[1,3],h=[1,5],u=[1,7],f=[2,5],p=[1,15],x=[1,17],d=[1,21],k=[1,22],T=[1,23],G=[1,24],R=[1,37],j=[1,25],U=[1,26],z=[1,27],M=[1,28],H=[1,29],X=[1,32],K=[1,33],W=[1,34],J=[1,35],q=[1,36],Q=[1,39],Z=[1,40],tt=[1,41],et=[1,42],w=[1,38],Ct=[1,45],o=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],st=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],ut=[1,4,5,7,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],At=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],dt={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,directive:6,SD:7,document:8,line:9,statement:10,classDefStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,classDef:38,CLASSDEF_ID:39,CLASSDEF_STYLEOPTS:40,DEFAULT:41,class:42,CLASSENTITY_IDS:43,STYLECLASS:44,openDirective:45,typeDirective:46,closeDirective:47,":":48,argDirective:49,direction_tb:50,direction_bt:51,direction_rl:52,direction_lr:53,eol:54,";":55,EDGE_STATE:56,STYLE_SEPARATOR:57,left_of:58,right_of:59,open_directive:60,type_directive:61,arg_directive:62,close_directive:63,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",7:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"classDef",39:"CLASSDEF_ID",40:"CLASSDEF_STYLEOPTS",41:"DEFAULT",42:"class",43:"CLASSENTITY_IDS",44:"STYLECLASS",48:":",50:"direction_tb",51:"direction_bt",52:"direction_rl",53:"direction_lr",55:";",56:"EDGE_STATE",57:"STYLE_SEPARATOR",58:"left_of",59:"right_of",60:"open_directive",61:"type_directive",62:"arg_directive",63:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[10,1],[10,1],[10,1],[10,2],[10,3],[10,4],[10,1],[10,2],[10,1],[10,4],[10,3],[10,6],[10,1],[10,1],[10,1],[10,1],[10,4],[10,4],[10,1],[10,1],[10,2],[10,2],[10,1],[11,3],[11,3],[12,3],[6,3],[6,5],[32,1],[32,1],[32,1],[32,1],[54,1],[54,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1],[45,1],[46,1],[49,1],[47,1]],performAction:function(r,a,i,l,y,e,B){var c=e.length-1;switch(y){case 4:return l.setRootDoc(e[c]),e[c];case 5:this.$=[];break;case 6:e[c]!="nl"&&(e[c-1].push(e[c]),this.$=e[c-1]);break;case 7:case 8:this.$=e[c];break;case 9:this.$="nl";break;case 12:this.$=e[c];break;case 13:const $=e[c-1];$.description=l.trimColon(e[c]),this.$=$;break;case 14:this.$={stmt:"relation",state1:e[c-2],state2:e[c]};break;case 15:const pt=l.trimColon(e[c]);this.$={stmt:"relation",state1:e[c-3],state2:e[c-1],description:pt};break;case 19:this.$={stmt:"state",id:e[c-3],type:"default",description:"",doc:e[c-1]};break;case 20:var C=e[c],O=e[c-2].trim();if(e[c].match(":")){var it=e[c].split(":");C=it[0],O=[O,it[1]]}this.$={stmt:"state",id:C,type:"default",description:O};break;case 21:this.$={stmt:"state",id:e[c-3],type:"default",description:e[c-5],doc:e[c-1]};break;case 22:this.$={stmt:"state",id:e[c],type:"fork"};break;case 23:this.$={stmt:"state",id:e[c],type:"join"};break;case 24:this.$={stmt:"state",id:e[c],type:"choice"};break;case 25:this.$={stmt:"state",id:l.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:e[c-1].trim(),note:{position:e[c-2].trim(),text:e[c].trim()}};break;case 30:this.$=e[c].trim(),l.setAccTitle(this.$);break;case 31:case 32:this.$=e[c].trim(),l.setAccDescription(this.$);break;case 33:case 34:this.$={stmt:"classDef",id:e[c-1].trim(),classes:e[c].trim()};break;case 35:this.$={stmt:"applyClass",id:e[c-1].trim(),styleClass:e[c].trim()};break;case 38:l.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:l.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:l.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:l.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:e[c].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:e[c-2].trim(),classes:[e[c].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:e[c-2].trim(),classes:[e[c].trim()],type:"default",description:""};break;case 50:l.parseDirective("%%{","open_directive");break;case 51:l.parseDirective(e[c],"type_directive");break;case 52:e[c]=e[c].trim().replace(/'/g,'"'),l.parseDirective(e[c],"arg_directive");break;case 53:l.parseDirective("}%%","close_directive","state");break}},table:[{3:1,4:s,5:n,6:4,7:h,45:6,60:u},{1:[3]},{3:8,4:s,5:n,6:4,7:h,45:6,60:u},{3:9,4:s,5:n,6:4,7:h,45:6,60:u},{3:10,4:s,5:n,6:4,7:h,45:6,60:u},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],f,{8:11}),{46:12,61:[1,13]},{61:[2,50]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:p,5:x,6:30,9:14,10:16,11:18,12:19,13:20,16:d,17:k,19:T,22:G,24:R,25:j,26:U,27:z,28:M,29:H,32:31,33:X,35:K,37:W,38:J,42:q,45:6,50:Q,51:Z,52:tt,53:et,56:w,60:u},{47:43,48:[1,44],63:Ct},t([48,63],[2,51]),t(o,[2,6]),{6:30,10:46,11:18,12:19,13:20,16:d,17:k,19:T,22:G,24:R,25:j,26:U,27:z,28:M,29:H,32:31,33:X,35:K,37:W,38:J,42:q,45:6,50:Q,51:Z,52:tt,53:et,56:w,60:u},t(o,[2,8]),t(o,[2,9]),t(o,[2,10]),t(o,[2,11]),t(o,[2,12],{14:[1,47],15:[1,48]}),t(o,[2,16]),{18:[1,49]},t(o,[2,18],{20:[1,50]}),{23:[1,51]},t(o,[2,22]),t(o,[2,23]),t(o,[2,24]),t(o,[2,25]),{30:52,31:[1,53],58:[1,54],59:[1,55]},t(o,[2,28]),t(o,[2,29]),{34:[1,56]},{36:[1,57]},t(o,[2,32]),{39:[1,58],41:[1,59]},{43:[1,60]},t(st,[2,44],{57:[1,61]}),t(st,[2,45],{57:[1,62]}),t(o,[2,38]),t(o,[2,39]),t(o,[2,40]),t(o,[2,41]),t(ut,[2,36]),{49:63,62:[1,64]},t(ut,[2,53]),t(o,[2,7]),t(o,[2,13]),{13:65,24:R,56:w},t(o,[2,17]),t(At,f,{8:66}),{24:[1,67]},{24:[1,68]},{23:[1,69]},{24:[2,48]},{24:[2,49]},t(o,[2,30]),t(o,[2,31]),{40:[1,70]},{40:[1,71]},{44:[1,72]},{24:[1,73]},{24:[1,74]},{47:75,63:Ct},{63:[2,52]},t(o,[2,14],{14:[1,76]}),{4:p,5:x,6:30,9:14,10:16,11:18,12:19,13:20,16:d,17:k,19:T,21:[1,77],22:G,24:R,25:j,26:U,27:z,28:M,29:H,32:31,33:X,35:K,37:W,38:J,42:q,45:6,50:Q,51:Z,52:tt,53:et,56:w,60:u},t(o,[2,20],{20:[1,78]}),{31:[1,79]},{24:[1,80]},t(o,[2,33]),t(o,[2,34]),t(o,[2,35]),t(st,[2,46]),t(st,[2,47]),t(ut,[2,37]),t(o,[2,15]),t(o,[2,19]),t(At,f,{8:81}),t(o,[2,26]),t(o,[2,27]),{4:p,5:x,6:30,9:14,10:16,11:18,12:19,13:20,16:d,17:k,19:T,21:[1,82],22:G,24:R,25:j,26:U,27:z,28:M,29:H,32:31,33:X,35:K,37:W,38:J,42:q,45:6,50:Q,51:Z,52:tt,53:et,56:w,60:u},t(o,[2,21])],defaultActions:{7:[2,50],8:[2,1],9:[2,2],10:[2,3],54:[2,48],55:[2,49],64:[2,52]},parseError:function(r,a){if(a.recoverable)this.trace(r);else{var i=new Error(r);throw i.hash=a,i}},parse:function(r){var a=this,i=[0],l=[],y=[null],e=[],B=this.table,c="",C=0,O=0,it=2,$=1,pt=e.slice.call(arguments,1),S=Object.create(this.lexer),A={yy:{}};for(var yt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,yt)&&(A.yy[yt]=this.yy[yt]);S.setInput(r,A.yy),A.yy.lexer=S,A.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var St=S.yylloc;e.push(St);var zt=S.options&&S.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Mt(){var E;return E=l.pop()||S.lex()||$,typeof E!="number"&&(E instanceof Array&&(l=E,E=l.pop()),E=a.symbols_[E]||E),E}for(var _,L,m,gt,N={},rt,b,Lt,nt;;){if(L=i[i.length-1],this.defaultActions[L]?m=this.defaultActions[L]:((_===null||typeof _>"u")&&(_=Mt()),m=B[L]&&B[L][_]),typeof m>"u"||!m.length||!m[0]){var _t="";nt=[];for(rt in B[L])this.terminals_[rt]&&rt>it&&nt.push("'"+this.terminals_[rt]+"'");S.showPosition?_t="Parse error on line "+(C+1)+`: `+S.showPosition()+` Expecting `+nt.join(", ")+", got '"+(this.terminals_[_]||_)+"'":_t="Parse error on line "+(C+1)+": Unexpected "+(_==$?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(_t,{text:S.match,token:this.terminals_[_]||_,line:S.yylineno,loc:St,expected:nt})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+_);switch(m[0]){case 1:i.push(_),y.push(S.yytext),e.push(S.yylloc),i.push(m[1]),_=null,O=S.yyleng,c=S.yytext,C=S.yylineno,St=S.yylloc;break;case 2:if(b=this.productions_[m[1]][1],N.$=y[y.length-b],N._$={first_line:e[e.length-(b||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(b||1)].first_column,last_column:e[e.length-1].last_column},zt&&(N._$.range=[e[e.length-(b||1)].range[0],e[e.length-1].range[1]]),gt=this.performAction.apply(N,[c,O,C,A.yy,m[1],y,e].concat(pt)),typeof gt<"u")return gt;b&&(i=i.slice(0,-1*b*2),y=y.slice(0,-1*b),e=e.slice(0,-1*b)),i.push(this.productions_[m[1]][0]),y.push(N.$),e.push(N._$),Lt=B[i[i.length-2]][i[i.length-1]],i.push(Lt);break;case 3:return!0}}return!0}},Ut=function(){var D={EOF:1,parseError:function(a,i){if(this.yy.parser)this.yy.parser.parseError(a,i);else throw new Error(a)},setInput:function(r,a){return this.yy=a||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var a=r.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},unput:function(r){var a=r.length,i=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var y=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===l.length?this.yylloc.first_column:0)+l[l.length-i.length].length-i[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),a=new Array(r.length+1).join("-");return r+this.upcomingInput()+` diff --git a/docs/assets/svgDraw-95adee0a-796bbfe8.js b/docs/assets/svgDraw-95adee0a-c0e4fe11.js similarity index 97% rename from docs/assets/svgDraw-95adee0a-796bbfe8.js rename to docs/assets/svgDraw-95adee0a-c0e4fe11.js index 70d2d3fc..89d0dc98 100644 --- a/docs/assets/svgDraw-95adee0a-796bbfe8.js +++ b/docs/assets/svgDraw-95adee0a-c0e4fe11.js @@ -1,2 +1,2 @@ -import{D as k,x as v,l as B,E as N}from"./index-b4f98efc.js";import{l as I}from"./line-bade02ca.js";let E=0;const O=function(i,e,t,a,r){const o=function(d){switch(d){case r.db.relationType.AGGREGATION:return"aggregation";case r.db.relationType.EXTENSION:return"extension";case r.db.relationType.COMPOSITION:return"composition";case r.db.relationType.DEPENDENCY:return"dependency";case r.db.relationType.LOLLIPOP:return"lollipop"}};e.points=e.points.filter(d=>!Number.isNaN(d.y));const l=e.points,g=I().x(function(d){return d.x}).y(function(d){return d.y}).curve(k),s=i.append("path").attr("d",g(l)).attr("id","edge"+E).attr("class","relation");let p="";a.arrowMarkerAbsolute&&(p=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,p=p.replace(/\(/g,"\\("),p=p.replace(/\)/g,"\\)")),t.relation.lineType==1&&s.attr("class","relation dashed-line"),t.relation.lineType==10&&s.attr("class","relation dotted-line"),t.relation.type1!=="none"&&s.attr("marker-start","url("+p+"#"+o(t.relation.type1)+"Start)"),t.relation.type2!=="none"&&s.attr("marker-end","url("+p+"#"+o(t.relation.type2)+"End)");let h,n;const c=e.points.length;let b=v.calcLabelPosition(e.points);h=b.x,n=b.y;let x,m,f,T;if(c%2!==0&&c>1){let d=v.calcCardinalityPosition(t.relation.type1!=="none",e.points,e.points[0]),w=v.calcCardinalityPosition(t.relation.type2!=="none",e.points,e.points[c-1]);B.debug("cardinality_1_point "+JSON.stringify(d)),B.debug("cardinality_2_point "+JSON.stringify(w)),x=d.x,m=d.y,f=w.x,T=w.y}if(t.title!==void 0){const d=i.append("g").attr("class","classLabel"),w=d.append("text").attr("class","label").attr("x",h).attr("y",n).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=w;const y=w.node().getBBox();d.insert("rect",":first-child").attr("class","box").attr("x",y.x-a.padding/2).attr("y",y.y-a.padding/2).attr("width",y.width+a.padding).attr("height",y.height+a.padding)}B.info("Rendering relation "+JSON.stringify(t)),t.relationTitle1!==void 0&&t.relationTitle1!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",x).attr("y",m).attr("fill","black").attr("font-size","6").text(t.relationTitle1),t.relationTitle2!==void 0&&t.relationTitle2!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",f).attr("y",T).attr("fill","black").attr("font-size","6").text(t.relationTitle2),E++},P=function(i,e,t,a){B.debug("Rendering class ",e,t);const r=e.id,o={id:r,label:e.id,width:0,height:0},l=i.append("g").attr("id",a.db.lookUpDomId(r)).attr("class","classGroup");let g;e.link?g=l.append("svg:a").attr("xlink:href",e.link).attr("target",e.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):g=l.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let s=!0;e.annotations.forEach(function(u){const H=g.append("tspan").text("«"+u+"»");s||H.attr("dy",t.textHeight),s=!1});let p=C(e);const h=g.append("tspan").text(p).attr("class","title");s||h.attr("dy",t.textHeight);const n=g.node().getBBox().height,c=l.append("line").attr("x1",0).attr("y1",t.padding+n+t.dividerMargin/2).attr("y2",t.padding+n+t.dividerMargin/2),b=l.append("text").attr("x",t.padding).attr("y",n+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");s=!0,e.members.forEach(function(u){S(b,u,s,t),s=!1});const x=b.node().getBBox(),m=l.append("line").attr("x1",0).attr("y1",t.padding+n+t.dividerMargin+x.height).attr("y2",t.padding+n+t.dividerMargin+x.height),f=l.append("text").attr("x",t.padding).attr("y",n+2*t.dividerMargin+x.height+t.textHeight).attr("fill","white").attr("class","classText");s=!0,e.methods.forEach(function(u){S(f,u,s,t),s=!1});const T=l.node().getBBox();var d=" ";e.cssClasses.length>0&&(d=d+e.cssClasses.join(" "));const y=l.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",T.width+2*t.padding).attr("height",T.height+t.padding+.5*t.dividerMargin).attr("class",d).node().getBBox().width;return g.node().childNodes.forEach(function(u){u.setAttribute("x",(y-u.getBBox().width)/2)}),e.tooltip&&g.insert("title").text(e.tooltip),c.attr("x2",y),m.attr("x2",y),o.width=y,o.height=T.height+t.padding+.5*t.dividerMargin,o},C=function(i){let e=i.id;return i.type&&(e+="<"+i.type+">"),e},A=function(i,e,t,a){B.debug("Rendering note ",e,t);const r=e.id,o={id:r,text:e.text,width:0,height:0},l=i.append("g").attr("id",r).attr("class","classGroup");let g=l.append("text").attr("y",t.textHeight+t.padding).attr("x",0);const s=JSON.parse(`"${e.text}"`).split(` +import{D as k,x as v,l as B,E as N}from"./index-0e08498d.js";import{l as I}from"./line-4c8e436d.js";let E=0;const O=function(i,e,t,a,r){const o=function(d){switch(d){case r.db.relationType.AGGREGATION:return"aggregation";case r.db.relationType.EXTENSION:return"extension";case r.db.relationType.COMPOSITION:return"composition";case r.db.relationType.DEPENDENCY:return"dependency";case r.db.relationType.LOLLIPOP:return"lollipop"}};e.points=e.points.filter(d=>!Number.isNaN(d.y));const l=e.points,g=I().x(function(d){return d.x}).y(function(d){return d.y}).curve(k),s=i.append("path").attr("d",g(l)).attr("id","edge"+E).attr("class","relation");let p="";a.arrowMarkerAbsolute&&(p=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,p=p.replace(/\(/g,"\\("),p=p.replace(/\)/g,"\\)")),t.relation.lineType==1&&s.attr("class","relation dashed-line"),t.relation.lineType==10&&s.attr("class","relation dotted-line"),t.relation.type1!=="none"&&s.attr("marker-start","url("+p+"#"+o(t.relation.type1)+"Start)"),t.relation.type2!=="none"&&s.attr("marker-end","url("+p+"#"+o(t.relation.type2)+"End)");let h,n;const c=e.points.length;let b=v.calcLabelPosition(e.points);h=b.x,n=b.y;let x,m,f,T;if(c%2!==0&&c>1){let d=v.calcCardinalityPosition(t.relation.type1!=="none",e.points,e.points[0]),w=v.calcCardinalityPosition(t.relation.type2!=="none",e.points,e.points[c-1]);B.debug("cardinality_1_point "+JSON.stringify(d)),B.debug("cardinality_2_point "+JSON.stringify(w)),x=d.x,m=d.y,f=w.x,T=w.y}if(t.title!==void 0){const d=i.append("g").attr("class","classLabel"),w=d.append("text").attr("class","label").attr("x",h).attr("y",n).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=w;const y=w.node().getBBox();d.insert("rect",":first-child").attr("class","box").attr("x",y.x-a.padding/2).attr("y",y.y-a.padding/2).attr("width",y.width+a.padding).attr("height",y.height+a.padding)}B.info("Rendering relation "+JSON.stringify(t)),t.relationTitle1!==void 0&&t.relationTitle1!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",x).attr("y",m).attr("fill","black").attr("font-size","6").text(t.relationTitle1),t.relationTitle2!==void 0&&t.relationTitle2!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",f).attr("y",T).attr("fill","black").attr("font-size","6").text(t.relationTitle2),E++},P=function(i,e,t,a){B.debug("Rendering class ",e,t);const r=e.id,o={id:r,label:e.id,width:0,height:0},l=i.append("g").attr("id",a.db.lookUpDomId(r)).attr("class","classGroup");let g;e.link?g=l.append("svg:a").attr("xlink:href",e.link).attr("target",e.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):g=l.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let s=!0;e.annotations.forEach(function(u){const H=g.append("tspan").text("«"+u+"»");s||H.attr("dy",t.textHeight),s=!1});let p=C(e);const h=g.append("tspan").text(p).attr("class","title");s||h.attr("dy",t.textHeight);const n=g.node().getBBox().height,c=l.append("line").attr("x1",0).attr("y1",t.padding+n+t.dividerMargin/2).attr("y2",t.padding+n+t.dividerMargin/2),b=l.append("text").attr("x",t.padding).attr("y",n+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");s=!0,e.members.forEach(function(u){S(b,u,s,t),s=!1});const x=b.node().getBBox(),m=l.append("line").attr("x1",0).attr("y1",t.padding+n+t.dividerMargin+x.height).attr("y2",t.padding+n+t.dividerMargin+x.height),f=l.append("text").attr("x",t.padding).attr("y",n+2*t.dividerMargin+x.height+t.textHeight).attr("fill","white").attr("class","classText");s=!0,e.methods.forEach(function(u){S(f,u,s,t),s=!1});const T=l.node().getBBox();var d=" ";e.cssClasses.length>0&&(d=d+e.cssClasses.join(" "));const y=l.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",T.width+2*t.padding).attr("height",T.height+t.padding+.5*t.dividerMargin).attr("class",d).node().getBBox().width;return g.node().childNodes.forEach(function(u){u.setAttribute("x",(y-u.getBBox().width)/2)}),e.tooltip&&g.insert("title").text(e.tooltip),c.attr("x2",y),m.attr("x2",y),o.width=y,o.height=T.height+t.padding+.5*t.dividerMargin,o},C=function(i){let e=i.id;return i.type&&(e+="<"+i.type+">"),e},A=function(i,e,t,a){B.debug("Rendering note ",e,t);const r=e.id,o={id:r,text:e.text,width:0,height:0},l=i.append("g").attr("id",r).attr("class","classGroup");let g=l.append("text").attr("y",t.textHeight+t.padding).attr("x",0);const s=JSON.parse(`"${e.text}"`).split(` `);s.forEach(function(c){B.debug(`Adding line: ${c}`),g.append("tspan").text(c).attr("class","title").attr("dy",t.textHeight)});const p=l.node().getBBox(),n=l.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",p.width+2*t.padding).attr("height",p.height+s.length*t.textHeight+t.padding+.5*t.dividerMargin).node().getBBox().width;return g.node().childNodes.forEach(function(c){c.setAttribute("x",(n-c.getBBox().width)/2)}),o.width=n,o.height=p.height+s.length*t.textHeight+t.padding+.5*t.dividerMargin,o},M=function(i){let e="",t="",a="",r="",o=i.substring(0,1),l=i.substring(i.length-1,i.length);o.match(/[#+~-]/)&&(r=o);let g=/[\s\w)~]/;l.match(g)||(t=_(l));const s=r===""?0:1;let p=t===""?i.length:i.length-1;i=i.substring(s,p);const h=i.indexOf("("),n=i.indexOf(")");if(h>1&&n>h&&n<=i.length){let b=i.substring(0,h).trim();const x=i.substring(h+1,n);if(e=r+b+"("+N(x.trim())+")",n<i.length){let m=i.substring(n+1,n+2);t===""&&!m.match(g)?(t=_(m),a=i.substring(n+2).trim()):a=i.substring(n+1).trim(),a!==""&&(a.charAt(0)===":"&&(a=a.substring(1).trim()),a=" : "+N(a),e+=a)}}else e=r+N(i);return{displayText:e,cssStyle:t}},S=function(i,e,t,a){let r=M(e);const o=i.append("tspan").attr("x",a.padding).text(r.displayText);r.cssStyle!==""&&o.attr("style",r.cssStyle),t||o.attr("dy",a.textHeight)},_=function(i){switch(i){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}},R={getClassTitleString:C,drawClass:P,drawEdge:O,drawNote:A,parseMember:M};export{M as p,R as s}; diff --git a/docs/assets/svgDrawCommon-f26cad39-39fd75a0.js b/docs/assets/svgDrawCommon-f26cad39-ad1bc4a5.js similarity index 95% rename from docs/assets/svgDrawCommon-f26cad39-39fd75a0.js rename to docs/assets/svgDrawCommon-f26cad39-ad1bc4a5.js index 91aafe38..1e8817c5 100644 --- a/docs/assets/svgDrawCommon-f26cad39-39fd75a0.js +++ b/docs/assets/svgDrawCommon-f26cad39-ad1bc4a5.js @@ -1 +1 @@ -import{n as a}from"./index-b4f98efc.js";const l=function(e,t){const r=e.append("rect");if(r.attr("x",t.x),r.attr("y",t.y),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("width",t.width),r.attr("height",t.height),r.attr("rx",t.rx),r.attr("ry",t.ry),t.attrs!=="undefined"&&t.attrs!==null)for(let n in t.attrs)r.attr(n,t.attrs[n]);return t.class!=="undefined"&&r.attr("class",t.class),r},c=function(e,t){l(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"}).lower()},x=function(e,t){const r=t.text.replace(/<br\s*\/?>/gi," "),n=e.append("text");n.attr("x",t.x),n.attr("y",t.y),n.attr("class","legend"),n.style("text-anchor",t.anchor),t.class!==void 0&&n.attr("class",t.class);const s=n.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(r),n},d=function(e,t,r,n){const s=e.append("image");s.attr("x",t),s.attr("y",r);var i=a(n);s.attr("xlink:href",i)},f=function(e,t,r,n){const s=e.append("use");s.attr("x",t),s.attr("y",r);const i=a(n);s.attr("xlink:href","#"+i)},h=function(){return{x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}},g=function(){return{x:0,y:0,width:100,height:100,fill:void 0,anchor:void 0,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}};export{c as a,f as b,d as c,l as d,g as e,x as f,h as g}; +import{n as a}from"./index-0e08498d.js";const l=function(e,t){const r=e.append("rect");if(r.attr("x",t.x),r.attr("y",t.y),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("width",t.width),r.attr("height",t.height),r.attr("rx",t.rx),r.attr("ry",t.ry),t.attrs!=="undefined"&&t.attrs!==null)for(let n in t.attrs)r.attr(n,t.attrs[n]);return t.class!=="undefined"&&r.attr("class",t.class),r},c=function(e,t){l(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"}).lower()},x=function(e,t){const r=t.text.replace(/<br\s*\/?>/gi," "),n=e.append("text");n.attr("x",t.x),n.attr("y",t.y),n.attr("class","legend"),n.style("text-anchor",t.anchor),t.class!==void 0&&n.attr("class",t.class);const s=n.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(r),n},d=function(e,t,r,n){const s=e.append("image");s.attr("x",t),s.attr("y",r);var i=a(n);s.attr("xlink:href",i)},f=function(e,t,r,n){const s=e.append("use");s.attr("x",t),s.attr("y",r);const i=a(n);s.attr("xlink:href","#"+i)},h=function(){return{x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}},g=function(){return{x:0,y:0,width:100,height:100,fill:void 0,anchor:void 0,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}};export{c as a,f as b,d as c,l as d,g as e,x as f,h as g}; diff --git a/docs/assets/timeline-definition-46a17596-78fef503.js b/docs/assets/timeline-definition-46a17596-bdc62e5d.js similarity index 99% rename from docs/assets/timeline-definition-46a17596-78fef503.js rename to docs/assets/timeline-definition-46a17596-bdc62e5d.js index 844b1a70..e4810573 100644 --- a/docs/assets/timeline-definition-46a17596-78fef503.js +++ b/docs/assets/timeline-definition-46a17596-bdc62e5d.js @@ -1,4 +1,4 @@ -import{ax as bt,ay as vt,B as kt,c as wt,l as I,h as U,t as St,az as Et,aA as Tt,aB as It}from"./index-b4f98efc.js";import{a as it}from"./arc-12672da3.js";import"./path-53f90ab3.js";var Y=function(){var n=function(b,r,a,h){for(a=a||{},h=b.length;h--;a[b[h]]=r);return a},t=[1,2],e=[1,5],s=[6,9,11,17,18,20,22,23,26,27,28],i=[1,15],o=[1,16],l=[1,17],g=[1,18],d=[1,19],y=[1,23],x=[1,24],w=[1,27],v=[4,6,9,11,17,18,20,22,23,26,27,28],_={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,period_statement:24,event_statement:25,period:26,event:27,open_directive:28,type_directive:29,arg_directive:30,close_directive:31,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",26:"period",27:"event",28:"open_directive",29:"type_directive",30:"arg_directive",31:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[24,1],[25,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(r,a,h,u,f,c,T){var m=c.length-1;switch(f){case 1:return c[m-1];case 3:this.$=[];break;case 4:c[m-1].push(c[m]),this.$=c[m-1];break;case 5:case 6:this.$=c[m];break;case 7:case 8:this.$=[];break;case 11:u.getCommonDb().setDiagramTitle(c[m].substr(6)),this.$=c[m].substr(6);break;case 12:this.$=c[m].trim(),u.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=c[m].trim(),u.getCommonDb().setAccDescription(this.$);break;case 15:u.addSection(c[m].substr(8)),this.$=c[m].substr(8);break;case 19:u.addTask(c[m],0,""),this.$=c[m];break;case 20:u.addEvent(c[m].substr(2)),this.$=c[m];break;case 21:u.parseDirective("%%{","open_directive");break;case 22:u.parseDirective(c[m],"type_directive");break;case 23:c[m]=c[m].trim().replace(/'/g,'"'),u.parseDirective(c[m],"arg_directive");break;case 24:u.parseDirective("}%%","close_directive","timeline");break}},table:[{3:1,4:t,7:3,12:4,28:e},{1:[3]},n(s,[2,3],{5:6}),{3:7,4:t,7:3,12:4,28:e},{13:8,29:[1,9]},{29:[2,21]},{6:[1,10],7:22,8:11,9:[1,12],10:13,11:[1,14],12:4,17:i,18:o,20:l,22:g,23:d,24:20,25:21,26:y,27:x,28:e},{1:[2,2]},{14:25,15:[1,26],31:w},n([15,31],[2,22]),n(s,[2,8],{1:[2,1]}),n(s,[2,4]),{7:22,10:28,12:4,17:i,18:o,20:l,22:g,23:d,24:20,25:21,26:y,27:x,28:e},n(s,[2,6]),n(s,[2,7]),n(s,[2,11]),{19:[1,29]},{21:[1,30]},n(s,[2,14]),n(s,[2,15]),n(s,[2,16]),n(s,[2,17]),n(s,[2,18]),n(s,[2,19]),n(s,[2,20]),{11:[1,31]},{16:32,30:[1,33]},{11:[2,24]},n(s,[2,5]),n(s,[2,12]),n(s,[2,13]),n(v,[2,9]),{14:34,31:w},{31:[2,23]},{11:[1,35]},n(v,[2,10])],defaultActions:{5:[2,21],7:[2,2],27:[2,24],33:[2,23]},parseError:function(r,a){if(a.recoverable)this.trace(r);else{var h=new Error(r);throw h.hash=a,h}},parse:function(r){var a=this,h=[0],u=[],f=[null],c=[],T=this.table,m="",M=0,z=0,j=2,K=1,H=c.slice.call(arguments,1),p=Object.create(this.lexer),E={yy:{}};for(var L in this.yy)Object.prototype.hasOwnProperty.call(this.yy,L)&&(E.yy[L]=this.yy[L]);p.setInput(r,E.yy),E.yy.lexer=p,E.yy.parser=this,typeof p.yylloc>"u"&&(p.yylloc={});var C=p.yylloc;c.push(C);var V=p.options&&p.options.ranges;typeof E.yy.parseError=="function"?this.parseError=E.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function et(){var P;return P=u.pop()||p.lex()||K,typeof P!="number"&&(P instanceof Array&&(u=P,P=u.pop()),P=a.symbols_[P]||P),P}for(var k,R,$,Q,W={},G,A,nt,q;;){if(R=h[h.length-1],this.defaultActions[R]?$=this.defaultActions[R]:((k===null||typeof k>"u")&&(k=et()),$=T[R]&&T[R][k]),typeof $>"u"||!$.length||!$[0]){var X="";q=[];for(G in T[R])this.terminals_[G]&&G>j&&q.push("'"+this.terminals_[G]+"'");p.showPosition?X="Parse error on line "+(M+1)+`: +import{ax as bt,ay as vt,B as kt,c as wt,l as I,h as U,t as St,az as Et,aA as Tt,aB as It}from"./index-0e08498d.js";import{a as it}from"./arc-2fa818f3.js";import"./path-53f90ab3.js";var Y=function(){var n=function(b,r,a,h){for(a=a||{},h=b.length;h--;a[b[h]]=r);return a},t=[1,2],e=[1,5],s=[6,9,11,17,18,20,22,23,26,27,28],i=[1,15],o=[1,16],l=[1,17],g=[1,18],d=[1,19],y=[1,23],x=[1,24],w=[1,27],v=[4,6,9,11,17,18,20,22,23,26,27,28],_={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,period_statement:24,event_statement:25,period:26,event:27,open_directive:28,type_directive:29,arg_directive:30,close_directive:31,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",26:"period",27:"event",28:"open_directive",29:"type_directive",30:"arg_directive",31:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[24,1],[25,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(r,a,h,u,f,c,T){var m=c.length-1;switch(f){case 1:return c[m-1];case 3:this.$=[];break;case 4:c[m-1].push(c[m]),this.$=c[m-1];break;case 5:case 6:this.$=c[m];break;case 7:case 8:this.$=[];break;case 11:u.getCommonDb().setDiagramTitle(c[m].substr(6)),this.$=c[m].substr(6);break;case 12:this.$=c[m].trim(),u.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=c[m].trim(),u.getCommonDb().setAccDescription(this.$);break;case 15:u.addSection(c[m].substr(8)),this.$=c[m].substr(8);break;case 19:u.addTask(c[m],0,""),this.$=c[m];break;case 20:u.addEvent(c[m].substr(2)),this.$=c[m];break;case 21:u.parseDirective("%%{","open_directive");break;case 22:u.parseDirective(c[m],"type_directive");break;case 23:c[m]=c[m].trim().replace(/'/g,'"'),u.parseDirective(c[m],"arg_directive");break;case 24:u.parseDirective("}%%","close_directive","timeline");break}},table:[{3:1,4:t,7:3,12:4,28:e},{1:[3]},n(s,[2,3],{5:6}),{3:7,4:t,7:3,12:4,28:e},{13:8,29:[1,9]},{29:[2,21]},{6:[1,10],7:22,8:11,9:[1,12],10:13,11:[1,14],12:4,17:i,18:o,20:l,22:g,23:d,24:20,25:21,26:y,27:x,28:e},{1:[2,2]},{14:25,15:[1,26],31:w},n([15,31],[2,22]),n(s,[2,8],{1:[2,1]}),n(s,[2,4]),{7:22,10:28,12:4,17:i,18:o,20:l,22:g,23:d,24:20,25:21,26:y,27:x,28:e},n(s,[2,6]),n(s,[2,7]),n(s,[2,11]),{19:[1,29]},{21:[1,30]},n(s,[2,14]),n(s,[2,15]),n(s,[2,16]),n(s,[2,17]),n(s,[2,18]),n(s,[2,19]),n(s,[2,20]),{11:[1,31]},{16:32,30:[1,33]},{11:[2,24]},n(s,[2,5]),n(s,[2,12]),n(s,[2,13]),n(v,[2,9]),{14:34,31:w},{31:[2,23]},{11:[1,35]},n(v,[2,10])],defaultActions:{5:[2,21],7:[2,2],27:[2,24],33:[2,23]},parseError:function(r,a){if(a.recoverable)this.trace(r);else{var h=new Error(r);throw h.hash=a,h}},parse:function(r){var a=this,h=[0],u=[],f=[null],c=[],T=this.table,m="",M=0,z=0,j=2,K=1,H=c.slice.call(arguments,1),p=Object.create(this.lexer),E={yy:{}};for(var L in this.yy)Object.prototype.hasOwnProperty.call(this.yy,L)&&(E.yy[L]=this.yy[L]);p.setInput(r,E.yy),E.yy.lexer=p,E.yy.parser=this,typeof p.yylloc>"u"&&(p.yylloc={});var C=p.yylloc;c.push(C);var V=p.options&&p.options.ranges;typeof E.yy.parseError=="function"?this.parseError=E.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function et(){var P;return P=u.pop()||p.lex()||K,typeof P!="number"&&(P instanceof Array&&(u=P,P=u.pop()),P=a.symbols_[P]||P),P}for(var k,R,$,Q,W={},G,A,nt,q;;){if(R=h[h.length-1],this.defaultActions[R]?$=this.defaultActions[R]:((k===null||typeof k>"u")&&(k=et()),$=T[R]&&T[R][k]),typeof $>"u"||!$.length||!$[0]){var X="";q=[];for(G in T[R])this.terminals_[G]&&G>j&&q.push("'"+this.terminals_[G]+"'");p.showPosition?X="Parse error on line "+(M+1)+`: `+p.showPosition()+` Expecting `+q.join(", ")+", got '"+(this.terminals_[k]||k)+"'":X="Parse error on line "+(M+1)+": Unexpected "+(k==K?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(X,{text:p.match,token:this.terminals_[k]||k,line:p.yylineno,loc:C,expected:q})}if($[0]instanceof Array&&$.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+k);switch($[0]){case 1:h.push(k),f.push(p.yytext),c.push(p.yylloc),h.push($[1]),k=null,z=p.yyleng,m=p.yytext,M=p.yylineno,C=p.yylloc;break;case 2:if(A=this.productions_[$[1]][1],W.$=f[f.length-A],W._$={first_line:c[c.length-(A||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(A||1)].first_column,last_column:c[c.length-1].last_column},V&&(W._$.range=[c[c.length-(A||1)].range[0],c[c.length-1].range[1]]),Q=this.performAction.apply(W,[m,z,M,E.yy,$[1],f,c].concat(H)),typeof Q<"u")return Q;A&&(h=h.slice(0,-1*A*2),f=f.slice(0,-1*A),c=c.slice(0,-1*A)),h.push(this.productions_[$[1]][0]),f.push(W.$),c.push(W._$),nt=T[h[h.length-2]][h[h.length-1]],h.push(nt);break;case 3:return!0}}return!0}},S=function(){var b={EOF:1,parseError:function(a,h){if(this.yy.parser)this.yy.parser.parseError(a,h);else throw new Error(a)},setInput:function(r,a){return this.yy=a||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var a=r.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},unput:function(r){var a=r.length,h=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),h.length-1&&(this.yylineno-=h.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:h?(h.length===u.length?this.yylloc.first_column:0)+u[u.length-h.length].length-h[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),a=new Array(r.length+1).join("-");return r+this.upcomingInput()+` diff --git a/docs/index.html b/docs/index.html index c17f72e1..a2a4a2b1 100644 --- a/docs/index.html +++ b/docs/index.html @@ -4,7 +4,7 @@ <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Vite + React + TS - + diff --git a/package.json b/package.json index d29d0dc5..17874702 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "altos-text-editor", "private": false, - "version": "0.1.8", + "version": "0.2.0", "type": "module", "files": [ "dist" diff --git a/src/lib/packages/Editor.tsx b/src/lib/packages/Editor.tsx index df067714..7cfe8e74 100644 --- a/src/lib/packages/Editor.tsx +++ b/src/lib/packages/Editor.tsx @@ -1,9 +1,7 @@ import { EditorStatus, editorViewCtx, serializerCtx } from '@milkdown/core'; -import { Milkdown as MilkdownEditor } from '@milkdown/react'; +import { Milkdown as MilkdownEditor, useInstance } from '@milkdown/react'; import { forwardRef, useImperativeHandle } from 'react'; -import { useMilkdownInstance } from '../hooks/useMilkdownInstance'; - export type EditorRef = { reset: () => void; getValue: () => string | undefined; @@ -12,10 +10,11 @@ export type EditorRef = { type EditorProps = {}; export const Editor = forwardRef((props, ref) => { - const { editor, loading } = useMilkdownInstance(); + const [loading, getEditor] = useInstance(); useImperativeHandle(ref, () => ({ reset: () => { + const editor = getEditor(); if (loading || !editor || editor.status !== EditorStatus.Created) { return; } @@ -27,6 +26,7 @@ export const Editor = forwardRef((props, ref) => { }); }, getValue: () => { + const editor = getEditor(); if (loading || !editor || editor.status !== EditorStatus.Created) { return undefined; } diff --git a/src/lib/packages/EditorContext/EditorContextProvider.tsx b/src/lib/packages/EditorContext/EditorContextProvider.tsx index ddd7e729..1afc8034 100644 --- a/src/lib/packages/EditorContext/EditorContextProvider.tsx +++ b/src/lib/packages/EditorContext/EditorContextProvider.tsx @@ -13,6 +13,7 @@ import { useEditor, UseEditorReturn } from '@milkdown/react'; import { createContext, useMemo } from 'react'; import { useCommonmarkPlugin } from './hooks/useCommonmarkPlugin/useCommonmarkPlugin'; +import { useEditorViewPlugin } from './hooks/useEditorViewPlugin'; import { useGfmPlugin } from './hooks/useGfmPlugin/useGfmPlugin'; import { useListenerPlugin } from './hooks/useListenerPlugin'; import { useMathPlugin } from './hooks/useMathPlugin'; @@ -22,7 +23,6 @@ import { usePlaceholderPlugin } from './hooks/usePlaceholderPlugin'; import { usePrismPlugin } from './hooks/usePrismPlugin'; import { useSlashPlugin } from './hooks/useSlashPlugin'; import { useUploadPlugin } from './hooks/useUploadPlugin/useUploadPlugin'; -import { useTextEditorContext } from '../../components/TextEditorContext/useTextEditoContext'; type EditorContextData = { editor: UseEditorReturn | null; @@ -47,8 +47,6 @@ export const EditorContextProvider: React.FC = ({ debounceChange, defaultMarkdownValue, }) => { - const { mode } = useTextEditorContext(); - const gfmPlugin = useGfmPlugin(); const mathPlugin = useMathPlugin(); const uploadPlugin = useUploadPlugin(); @@ -64,16 +62,14 @@ export const EditorContextProvider: React.FC = ({ debounceChange, }); + useEditorViewPlugin(); + const editor = useEditor( root => MilkdownEditor.make() .config(ctx => { ctx.set(rootCtx, root); ctx.set(defaultValueCtx, defaultMarkdownValue); - ctx.update(editorViewOptionsCtx, prev => ({ - ...prev, - editable: () => mode === 'active', - })); }) .use(commonmarkPlugin) .use(placeholderPlugin) @@ -90,7 +86,6 @@ export const EditorContextProvider: React.FC = ({ .use(menuBarPlugin) .use(gfmPlugin), [ - mode, commonmarkPlugin, defaultMarkdownValue, listenerPlugin, diff --git a/src/lib/packages/EditorContext/hooks/useEditorViewPlugin.tsx b/src/lib/packages/EditorContext/hooks/useEditorViewPlugin.tsx new file mode 100644 index 00000000..51f26bc5 --- /dev/null +++ b/src/lib/packages/EditorContext/hooks/useEditorViewPlugin.tsx @@ -0,0 +1,36 @@ +import { EditorStatus, editorViewOptionsCtx } from '@milkdown/core'; +import { Ctx } from '@milkdown/ctx'; +import { useEffect } from 'react'; + +import { useTextEditorContext } from '../../../components/TextEditorContext/useTextEditoContext'; +import { useMilkdownInstance } from '../../../hooks/useMilkdownInstance'; + +export const useEditorViewPlugin = () => { + const { loading, editor } = useMilkdownInstance(); + const { mode } = useTextEditorContext(); + + useEffect(() => { + const effect = async () => { + if (loading || !editor || editor.status !== EditorStatus.Created) { + return; + } + + editor.use( + [ + (ctx: Ctx) => () => { + ctx.update(editorViewOptionsCtx, prev => ({ + ...prev, + editable: () => mode === 'active', + })); + }, + ].flat() + ); + + await editor.create(); + }; + + requestAnimationFrame(() => { + effect(); + }); + }, [loading, editor, mode]); +};