@gkd-kit/inspect 0.0.1721662707331 → 0.0.1721829514872
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ActionCard.vue_vue_type_script_setup_true_lang-z9yy5QAX.js → ActionCard.vue_vue_type_script_setup_true_lang-DiVBjzEo.js} +2 -2
- package/dist/assets/{ActionCard.vue_vue_type_script_setup_true_lang-z9yy5QAX.js.map → ActionCard.vue_vue_type_script_setup_true_lang-DiVBjzEo.js.map} +1 -1
- package/dist/assets/{DevicePage-Bb7CESPL.js → DevicePage-317XManT.js} +2 -2
- package/dist/assets/{DevicePage-Bb7CESPL.js.map → DevicePage-317XManT.js.map} +1 -1
- package/dist/assets/{HomePage-BrCtg4eZ.js → HomePage-BDCWVEjb.js} +2 -2
- package/dist/assets/{HomePage-BrCtg4eZ.js.map → HomePage-BDCWVEjb.js.map} +1 -1
- package/dist/assets/{ImportPage-DE9bvvtg.js → ImportPage-BI6pqRT0.js} +2 -2
- package/dist/assets/{ImportPage-DE9bvvtg.js.map → ImportPage-BI6pqRT0.js.map} +1 -1
- package/dist/assets/{PreviewSharePage-CJlbvKoC.js → PreviewSharePage-C_-BwaFv.js} +2 -2
- package/dist/assets/{PreviewSharePage-CJlbvKoC.js.map → PreviewSharePage-C_-BwaFv.js.map} +1 -1
- package/dist/assets/SnapshotPage-DDCF0qWk.js +276 -0
- package/dist/assets/SnapshotPage-DDCF0qWk.js.map +1 -0
- package/dist/assets/{TrackGraph-4OjNujBe.js → TrackGraph-DMf_nshl.js} +2 -2
- package/dist/assets/{TrackGraph-4OjNujBe.js.map → TrackGraph-DMf_nshl.js.map} +1 -1
- package/dist/assets/{_404Page-BEsifbc2.js → _404Page-DNkzggCH.js} +2 -2
- package/dist/assets/{_404Page-BEsifbc2.js.map → _404Page-DNkzggCH.js.map} +1 -1
- package/dist/assets/{dayjs.min-5mDxtwl2.js → dayjs.min-FjvppOpR.js} +2 -2
- package/dist/assets/{dayjs.min-5mDxtwl2.js.map → dayjs.min-FjvppOpR.js.map} +1 -1
- package/dist/assets/{error-CZBl6FmP.js → error-DW0ELLtx.js} +2 -2
- package/dist/assets/{error-CZBl6FmP.js.map → error-DW0ELLtx.js.map} +1 -1
- package/dist/assets/{export-B7OHz6Tz.js → export-DxnsGetT.js} +2 -2
- package/dist/assets/{export-B7OHz6Tz.js.map → export-DxnsGetT.js.map} +1 -1
- package/dist/assets/{fetch-San3MKem.js → fetch-DLv8MBQZ.js} +2 -2
- package/dist/assets/{fetch-San3MKem.js.map → fetch-DLv8MBQZ.js.map} +1 -1
- package/dist/assets/{import-2o8Zrpqb.js → import-BFJKAtQX.js} +2 -2
- package/dist/assets/{import-2o8Zrpqb.js.map → import-BFJKAtQX.js.map} +1 -1
- package/dist/assets/{index-BiLoGqVH.js → index-BZn-Szo9.js} +2 -2
- package/dist/assets/{index-BiLoGqVH.js.map → index-BZn-Szo9.js.map} +1 -1
- package/dist/assets/{index-8cdB5Umv.js → index-BtfiSPlB.js} +4 -4
- package/dist/assets/{index-8cdB5Umv.js.map → index-BtfiSPlB.js.map} +1 -1
- package/dist/assets/{index-CxUtCrvD.js → index-Ccme0oJI.js} +2 -2
- package/dist/assets/{index-CxUtCrvD.js.map → index-Ccme0oJI.js.map} +1 -1
- package/dist/assets/{table-Dv6j_ltQ.js → table-BHNhftJW.js} +2 -2
- package/dist/assets/{table-Dv6j_ltQ.js.map → table-BHNhftJW.js.map} +1 -1
- package/dist/index.html +3 -3
- package/package.json +2 -2
- package/dist/assets/SnapshotPage-Di7Av_Yl.js +0 -276
- package/dist/assets/SnapshotPage-Di7Av_Yl.js.map +0 -1
|
@@ -1,276 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1721662707331/files/dist/assets/TrackGraph-4OjNujBe.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1721662707331/files/dist/assets/index-8cdB5Umv.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1721662707331/files/dist/assets/index-DEAqsSIR.css","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1721662707331/files/dist/assets/dayjs.min-5mDxtwl2.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1721662707331/files/dist/assets/index-CxUtCrvD.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1721662707331/files/dist/assets/fetch-San3MKem.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{h as Mt,v as M,a as G,g as Ln,e as V,f as Y,b as Nt,u as Ma,$ as Gd,a0 as Al,a1 as Jd,a2 as La,d as Tl,r as ve,m as rt,l as va,j as Vi,q as Pl,a3 as Rl,y as ye,a4 as Xd,t as yt,a5 as Uc,a6 as Wc,a7 as Hc,a8 as Yd,a9 as Le,aa as vi,ab as Zd,ac as Qu,ad as Vc,ae as t1,af as Vn,ag as e1,ah as n1,ai as r1,c as i1,aj as a1,ak as o1,n as ms,N as s1,x as l1,W as u1,al as gs,am as c1,Q as Oa,an as f1,p as Qc,i as h1,B as Fi,T as Ar,ao as ys,o as fa,ap as Gu,aq as Ju,ar as pa,A as ne,R as Ml,as as co,at as pe,K as R,au as Gc,C as Ie,F as I,G as Tr,P as je,av as qs,aw as oi,ax as d1,I as at,E as T,D as Z,ay as ma,O as Dt,M as be,az as fo,X as Jc,aA as Bi,H as Xc,aB as Yc,V as v1,L as Gn,aC as bs,aD as p1,_ as _1,aE as Xu,aF as m1,aG as g1,Z as Yu,aH as y1,aI as b1,J as w1}from"./index-8cdB5Umv.js";import{_ as k1}from"./ActionCard.vue_vue_type_script_setup_true_lang-z9yy5QAX.js";import{f as As,c as Xn,b as si,m as Sn,a as Zc,l as Zu,g as C1}from"./fetch-San3MKem.js";import{h as Di,C as x1,e as S1,c as $1,d as E1,V as N1,f as tc,i as ec,j as Qn,k as I1,l as q1,m as nc,n as ga,b as Ts,o as rc,p as A1,N as T1,g as Jn,q as P1,r as ic,s as ac,t as R1}from"./dayjs.min-5mDxtwl2.js";import{a as Yn,r as M1,N as L1,l as O1}from"./index-CxUtCrvD.js";import{u as tf,a as j1}from"./index-BiLoGqVH.js";import{e as z1,a as oc}from"./error-CZBl6FmP.js";import{e as F1,f as D1,g as B1}from"./export-B7OHz6Tz.js";import"./index-CE_5kTG8.js";function ef(t){return typeof t=="string"?`s-${t}`:`n-${t}`}const K1=Mt({name:"ChevronLeft",render(){return M("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M("path",{d:"M10.3536 3.14645C10.5488 3.34171 10.5488 3.65829 10.3536 3.85355L6.20711 8L10.3536 12.1464C10.5488 12.3417 10.5488 12.6583 10.3536 12.8536C10.1583 13.0488 9.84171 13.0488 9.64645 12.8536L5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L9.64645 3.14645C9.84171 2.95118 10.1583 2.95118 10.3536 3.14645Z",fill:"currentColor"}))}}),U1=Mt({name:"Switcher",render(){return M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},M("path",{d:"M12 8l10 8l-10 8z"}))}}),zt="0!important",nf="-1px!important";function Oi(t){return Y(t+"-type",[V("& +",[G("button",{},[Y(t+"-type",[Nt("border",{borderLeftWidth:zt}),Nt("state-border",{left:nf})])])])])}function ji(t){return Y(t+"-type",[V("& +",[G("button",[Y(t+"-type",[Nt("border",{borderTopWidth:zt}),Nt("state-border",{top:nf})])])])])}const W1=G("button-group",`
|
|
3
|
-
flex-wrap: nowrap;
|
|
4
|
-
display: inline-flex;
|
|
5
|
-
position: relative;
|
|
6
|
-
`,[Ln("vertical",{flexDirection:"row"},[Ln("rtl",[G("button",[V("&:first-child:not(:last-child)",`
|
|
7
|
-
margin-right: ${zt};
|
|
8
|
-
border-top-right-radius: ${zt};
|
|
9
|
-
border-bottom-right-radius: ${zt};
|
|
10
|
-
`),V("&:last-child:not(:first-child)",`
|
|
11
|
-
margin-left: ${zt};
|
|
12
|
-
border-top-left-radius: ${zt};
|
|
13
|
-
border-bottom-left-radius: ${zt};
|
|
14
|
-
`),V("&:not(:first-child):not(:last-child)",`
|
|
15
|
-
margin-left: ${zt};
|
|
16
|
-
margin-right: ${zt};
|
|
17
|
-
border-radius: ${zt};
|
|
18
|
-
`),Oi("default"),Y("ghost",[Oi("primary"),Oi("info"),Oi("success"),Oi("warning"),Oi("error")])])])]),Y("vertical",{flexDirection:"column"},[G("button",[V("&:first-child:not(:last-child)",`
|
|
19
|
-
margin-bottom: ${zt};
|
|
20
|
-
margin-left: ${zt};
|
|
21
|
-
margin-right: ${zt};
|
|
22
|
-
border-bottom-left-radius: ${zt};
|
|
23
|
-
border-bottom-right-radius: ${zt};
|
|
24
|
-
`),V("&:last-child:not(:first-child)",`
|
|
25
|
-
margin-top: ${zt};
|
|
26
|
-
margin-left: ${zt};
|
|
27
|
-
margin-right: ${zt};
|
|
28
|
-
border-top-left-radius: ${zt};
|
|
29
|
-
border-top-right-radius: ${zt};
|
|
30
|
-
`),V("&:not(:first-child):not(:last-child)",`
|
|
31
|
-
margin: ${zt};
|
|
32
|
-
border-radius: ${zt};
|
|
33
|
-
`),ji("default"),Y("ghost",[ji("primary"),ji("info"),ji("success"),ji("warning"),ji("error")])])])]),H1={size:{type:String,default:void 0},vertical:Boolean},V1=Mt({name:"ButtonGroup",props:H1,setup(t){const{mergedClsPrefixRef:e,mergedRtlRef:n}=Ma(t);return Gd("-button-group",W1,e),Al(Jd,t),{rtlEnabled:La("ButtonGroup",n,e),mergedClsPrefix:e}},render(){const{mergedClsPrefix:t}=this;return M("div",{class:[`${t}-button-group`,this.rtlEnabled&&`${t}-button-group--rtl`,this.vertical&&`${t}-button-group--vertical`],role:"group"},this.$slots)}}),Q1=t=>{const{fontWeight:e,textColor1:n,textColor2:r,textColorDisabled:a,dividerColor:o,fontSize:s}=t;return{titleFontSize:s,titleFontWeight:e,dividerColor:o,titleTextColor:n,titleTextColorDisabled:a,fontSize:s,textColor:r,arrowColor:r,arrowColorDisabled:a,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}},G1={name:"Collapse",common:Tl,self:Q1},J1=G("collapse","width: 100%;",[G("collapse-item",`
|
|
34
|
-
font-size: var(--n-font-size);
|
|
35
|
-
color: var(--n-text-color);
|
|
36
|
-
transition:
|
|
37
|
-
color .3s var(--n-bezier),
|
|
38
|
-
border-color .3s var(--n-bezier);
|
|
39
|
-
margin: var(--n-item-margin);
|
|
40
|
-
`,[Y("disabled",[Nt("header","cursor: not-allowed;",[Nt("header-main",`
|
|
41
|
-
color: var(--n-title-text-color-disabled);
|
|
42
|
-
`),G("collapse-item-arrow",`
|
|
43
|
-
color: var(--n-arrow-color-disabled);
|
|
44
|
-
`)])]),G("collapse-item","margin-left: 32px;"),V("&:first-child","margin-top: 0;"),V("&:first-child >",[Nt("header","padding-top: 0;")]),Y("left-arrow-placement",[Nt("header",[G("collapse-item-arrow","margin-right: 4px;")])]),Y("right-arrow-placement",[Nt("header",[G("collapse-item-arrow","margin-left: 4px;")])]),Nt("content-wrapper",[Nt("content-inner","padding-top: 16px;"),As({duration:"0.15s"})]),Y("active",[Nt("header",[Y("active",[G("collapse-item-arrow","transform: rotate(90deg);")])])]),V("&:not(:first-child)","border-top: 1px solid var(--n-divider-color);"),Ln("disabled",[Y("trigger-area-main",[Nt("header",[Nt("header-main","cursor: pointer;"),G("collapse-item-arrow","cursor: default;")])]),Y("trigger-area-arrow",[Nt("header",[G("collapse-item-arrow","cursor: pointer;")])]),Y("trigger-area-extra",[Nt("header",[Nt("header-extra","cursor: pointer;")])])]),Nt("header",`
|
|
45
|
-
font-size: var(--n-title-font-size);
|
|
46
|
-
display: flex;
|
|
47
|
-
flex-wrap: nowrap;
|
|
48
|
-
align-items: center;
|
|
49
|
-
transition: color .3s var(--n-bezier);
|
|
50
|
-
position: relative;
|
|
51
|
-
padding: var(--n-title-padding);
|
|
52
|
-
color: var(--n-title-text-color);
|
|
53
|
-
`,[Nt("header-main",`
|
|
54
|
-
display: flex;
|
|
55
|
-
flex-wrap: nowrap;
|
|
56
|
-
align-items: center;
|
|
57
|
-
font-weight: var(--n-title-font-weight);
|
|
58
|
-
transition: color .3s var(--n-bezier);
|
|
59
|
-
flex: 1;
|
|
60
|
-
color: var(--n-title-text-color);
|
|
61
|
-
`),Nt("header-extra",`
|
|
62
|
-
display: flex;
|
|
63
|
-
align-items: center;
|
|
64
|
-
transition: color .3s var(--n-bezier);
|
|
65
|
-
color: var(--n-text-color);
|
|
66
|
-
`),G("collapse-item-arrow",`
|
|
67
|
-
display: flex;
|
|
68
|
-
transition:
|
|
69
|
-
transform .15s var(--n-bezier),
|
|
70
|
-
color .3s var(--n-bezier);
|
|
71
|
-
font-size: 18px;
|
|
72
|
-
color: var(--n-arrow-color);
|
|
73
|
-
`)])])]),X1=Object.assign(Object.assign({},Vi.props),{defaultExpandedNames:{type:[Array,String],default:null},expandedNames:[Array,String],arrowPlacement:{type:String,default:"left"},accordion:{type:Boolean,default:!1},displayDirective:{type:String,default:"if"},triggerAreas:{type:Array,default:()=>["main","extra","arrow"]},onItemHeaderClick:[Function,Array],"onUpdate:expandedNames":[Function,Array],onUpdateExpandedNames:[Function,Array],onExpandedNamesChange:{type:[Function,Array],validator:()=>!0,default:void 0}}),rf=Rl("n-collapse"),Y1=Mt({name:"Collapse",props:X1,setup(t,{slots:e}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:a}=Ma(t),o=ve(t.defaultExpandedNames),s=rt(()=>t.expandedNames),l=va(s,o),c=Vi("Collapse","-collapse",J1,G1,t,n);function f(m){const{"onUpdate:expandedNames":g,onUpdateExpandedNames:p,onExpandedNamesChange:C}=t;p&&ye(p,m),g&&ye(g,m),C&&ye(C,m),o.value=m}function h(m){const{onItemHeaderClick:g}=t;g&&ye(g,m)}function d(m,g,p){const{accordion:C}=t,{value:k}=l;if(C)m?(f([g]),h({name:g,expanded:!0,event:p})):(f([]),h({name:g,expanded:!1,event:p}));else if(!Array.isArray(k))f([g]),h({name:g,expanded:!0,event:p});else{const x=k.slice(),N=x.findIndex(F=>g===F);~N?(x.splice(N,1),f(x),h({name:g,expanded:!1,event:p})):(x.push(g),f(x),h({name:g,expanded:!0,event:p}))}}Al(rf,{props:t,mergedClsPrefixRef:n,expandedNamesRef:l,slots:e,toggleItem:d});const v=La("Collapse",a,n),y=rt(()=>{const{common:{cubicBezierEaseInOut:m},self:{titleFontWeight:g,dividerColor:p,titlePadding:C,titleTextColor:k,titleTextColorDisabled:x,textColor:N,arrowColor:F,fontSize:Q,titleFontSize:H,arrowColorDisabled:st,itemMargin:dt}}=c.value;return{"--n-font-size":Q,"--n-bezier":m,"--n-text-color":N,"--n-divider-color":p,"--n-title-padding":C,"--n-title-font-size":H,"--n-title-text-color":k,"--n-title-text-color-disabled":x,"--n-title-font-weight":g,"--n-arrow-color":F,"--n-arrow-color-disabled":st,"--n-item-margin":dt}}),_=r?Pl("collapse",void 0,y,t):void 0;return{rtlEnabled:v,mergedTheme:c,mergedClsPrefix:n,cssVars:r?void 0:y,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender}},render(){var t;return(t=this.onRender)===null||t===void 0||t.call(this),M("div",{class:[`${this.mergedClsPrefix}-collapse`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse--rtl`,this.themeClass],style:this.cssVars},this.$slots)}}),Z1=Mt({name:"CollapseItemContent",props:{displayDirective:{type:String,required:!0},show:Boolean,clsPrefix:{type:String,required:!0}},setup(t){return{onceTrue:Xd(yt(t,"show"))}},render(){return M(Hc,null,{default:()=>{const{show:t,displayDirective:e,onceTrue:n,clsPrefix:r}=this,a=e==="show"&&n,o=M("div",{class:`${r}-collapse-item__content-wrapper`},M("div",{class:`${r}-collapse-item__content-inner`},this.$slots));return a?Uc(o,[[Wc,t]]):t?o:null}})}}),tv={title:String,name:[String,Number],disabled:Boolean,displayDirective:String},ev=Mt({name:"CollapseItem",props:tv,setup(t){const{mergedRtlRef:e}=Ma(t),n=Yd(),r=Le(()=>{var d;return(d=t.name)!==null&&d!==void 0?d:n}),a=vi(rf);a||Zd("collapse-item","`n-collapse-item` must be placed inside `n-collapse`.");const{expandedNamesRef:o,props:s,mergedClsPrefixRef:l,slots:c}=a,f=rt(()=>{const{value:d}=o;if(Array.isArray(d)){const{value:v}=r;return!~d.findIndex(y=>y===v)}else if(d){const{value:v}=r;return v!==d}return!0});return{rtlEnabled:La("Collapse",e,l),collapseSlots:c,randomName:n,mergedClsPrefix:l,collapsed:f,triggerAreas:yt(s,"triggerAreas"),mergedDisplayDirective:rt(()=>{const{displayDirective:d}=t;return d||s.displayDirective}),arrowPlacement:rt(()=>s.arrowPlacement),handleClick(d){let v="main";Di(d,"arrow")&&(v="arrow"),Di(d,"extra")&&(v="extra"),s.triggerAreas.includes(v)&&a&&!t.disabled&&a.toggleItem(f.value,r.value,d)}}},render(){const{collapseSlots:t,$slots:e,arrowPlacement:n,collapsed:r,mergedDisplayDirective:a,mergedClsPrefix:o,disabled:s,triggerAreas:l}=this,c=Qu(e.header,{collapsed:r},()=>[this.title]),f=e["header-extra"]||t["header-extra"],h=e.arrow||t.arrow;return M("div",{class:[`${o}-collapse-item`,`${o}-collapse-item--${n}-arrow-placement`,s&&`${o}-collapse-item--disabled`,!r&&`${o}-collapse-item--active`,l.map(d=>`${o}-collapse-item--trigger-area-${d}`)]},M("div",{class:[`${o}-collapse-item__header`,!r&&`${o}-collapse-item__header--active`]},M("div",{class:`${o}-collapse-item__header-main`,onClick:this.handleClick},n==="right"&&c,M("div",{class:`${o}-collapse-item-arrow`,key:this.rtlEnabled?0:1,"data-arrow":!0},Qu(h,{collapsed:r},()=>{var d;return[M(Vc,{clsPrefix:o},{default:(d=t.expandIcon)!==null&&d!==void 0?d:()=>this.rtlEnabled?M(K1,null):M(x1,null)})]})),n==="left"&&c),t1(f,{collapsed:r},d=>M("div",{class:`${o}-collapse-item__header-extra`,onClick:this.handleClick,"data-extra":!0},d))),M(Z1,{clsPrefix:o,displayDirective:a,show:!r},e))}}),nv={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"},rv=t=>{const{dividerColor:e,cardColor:n,modalColor:r,popoverColor:a,tableHeaderColor:o,tableColorStriped:s,textColor1:l,textColor2:c,borderRadius:f,fontWeightStrong:h,lineHeight:d,fontSizeSmall:v,fontSizeMedium:y,fontSizeLarge:_}=t;return Object.assign(Object.assign({},nv),{fontSizeSmall:v,fontSizeMedium:y,fontSizeLarge:_,lineHeight:d,borderRadius:f,borderColor:Vn(n,e),borderColorModal:Vn(r,e),borderColorPopover:Vn(a,e),tdColor:n,tdColorModal:r,tdColorPopover:a,tdColorStriped:Vn(n,s),tdColorStripedModal:Vn(r,s),tdColorStripedPopover:Vn(a,s),thColor:Vn(n,o),thColorModal:Vn(r,o),thColorPopover:Vn(a,o),thTextColor:l,tdTextColor:c,thFontWeight:h})},iv={name:"Table",common:Tl,self:rv},av=t=>{const{borderRadiusSmall:e,dividerColor:n,hoverColor:r,pressedColor:a,primaryColor:o,textColor3:s,textColor2:l,textColorDisabled:c,fontSize:f}=t;return{fontSize:f,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:e,nodeColorHover:r,nodeColorPressed:a,nodeColorActive:i1(o,{alpha:.1}),arrowColor:s,nodeTextColor:l,nodeTextColorDisabled:c,loadingColor:o,dropMarkColor:o,lineColor:n}},ov=e1({name:"Tree",common:Tl,peers:{Checkbox:n1,Scrollbar:r1,Empty:S1},self:av}),sv=V([G("table",`
|
|
74
|
-
font-size: var(--n-font-size);
|
|
75
|
-
font-variant-numeric: tabular-nums;
|
|
76
|
-
line-height: var(--n-line-height);
|
|
77
|
-
width: 100%;
|
|
78
|
-
border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;
|
|
79
|
-
text-align: left;
|
|
80
|
-
border-collapse: separate;
|
|
81
|
-
border-spacing: 0;
|
|
82
|
-
overflow: hidden;
|
|
83
|
-
background-color: var(--n-td-color);
|
|
84
|
-
border-color: var(--n-merged-border-color);
|
|
85
|
-
transition:
|
|
86
|
-
background-color .3s var(--n-bezier),
|
|
87
|
-
border-color .3s var(--n-bezier),
|
|
88
|
-
color .3s var(--n-bezier);
|
|
89
|
-
--n-merged-border-color: var(--n-border-color);
|
|
90
|
-
`,[V("th",`
|
|
91
|
-
white-space: nowrap;
|
|
92
|
-
transition:
|
|
93
|
-
background-color .3s var(--n-bezier),
|
|
94
|
-
border-color .3s var(--n-bezier),
|
|
95
|
-
color .3s var(--n-bezier);
|
|
96
|
-
text-align: inherit;
|
|
97
|
-
padding: var(--n-th-padding);
|
|
98
|
-
vertical-align: inherit;
|
|
99
|
-
text-transform: none;
|
|
100
|
-
border: 0px solid var(--n-merged-border-color);
|
|
101
|
-
font-weight: var(--n-th-font-weight);
|
|
102
|
-
color: var(--n-th-text-color);
|
|
103
|
-
background-color: var(--n-th-color);
|
|
104
|
-
border-bottom: 1px solid var(--n-merged-border-color);
|
|
105
|
-
border-right: 1px solid var(--n-merged-border-color);
|
|
106
|
-
`,[V("&:last-child",`
|
|
107
|
-
border-right: 0px solid var(--n-merged-border-color);
|
|
108
|
-
`)]),V("td",`
|
|
109
|
-
transition:
|
|
110
|
-
background-color .3s var(--n-bezier),
|
|
111
|
-
border-color .3s var(--n-bezier),
|
|
112
|
-
color .3s var(--n-bezier);
|
|
113
|
-
padding: var(--n-td-padding);
|
|
114
|
-
color: var(--n-td-text-color);
|
|
115
|
-
background-color: var(--n-td-color);
|
|
116
|
-
border: 0px solid var(--n-merged-border-color);
|
|
117
|
-
border-right: 1px solid var(--n-merged-border-color);
|
|
118
|
-
border-bottom: 1px solid var(--n-merged-border-color);
|
|
119
|
-
`,[V("&:last-child",`
|
|
120
|
-
border-right: 0px solid var(--n-merged-border-color);
|
|
121
|
-
`)]),Y("bordered",`
|
|
122
|
-
border: 1px solid var(--n-merged-border-color);
|
|
123
|
-
border-radius: var(--n-border-radius);
|
|
124
|
-
`,[V("tr",[V("&:last-child",[V("td",`
|
|
125
|
-
border-bottom: 0 solid var(--n-merged-border-color);
|
|
126
|
-
`)])])]),Y("single-line",[V("th",`
|
|
127
|
-
border-right: 0px solid var(--n-merged-border-color);
|
|
128
|
-
`),V("td",`
|
|
129
|
-
border-right: 0px solid var(--n-merged-border-color);
|
|
130
|
-
`)]),Y("single-column",[V("tr",[V("&:not(:last-child)",[V("td",`
|
|
131
|
-
border-bottom: 0px solid var(--n-merged-border-color);
|
|
132
|
-
`)])])]),Y("striped",[V("tr:nth-of-type(even)",[V("td","background-color: var(--n-td-color-striped)")])]),Ln("bottom-bordered",[V("tr",[V("&:last-child",[V("td",`
|
|
133
|
-
border-bottom: 0px solid var(--n-merged-border-color);
|
|
134
|
-
`)])])])]),a1(G("table",`
|
|
135
|
-
background-color: var(--n-td-color-modal);
|
|
136
|
-
--n-merged-border-color: var(--n-border-color-modal);
|
|
137
|
-
`,[V("th",`
|
|
138
|
-
background-color: var(--n-th-color-modal);
|
|
139
|
-
`),V("td",`
|
|
140
|
-
background-color: var(--n-td-color-modal);
|
|
141
|
-
`)])),o1(G("table",`
|
|
142
|
-
background-color: var(--n-td-color-popover);
|
|
143
|
-
--n-merged-border-color: var(--n-border-color-popover);
|
|
144
|
-
`,[V("th",`
|
|
145
|
-
background-color: var(--n-th-color-popover);
|
|
146
|
-
`),V("td",`
|
|
147
|
-
background-color: var(--n-td-color-popover);
|
|
148
|
-
`)]))]),lv=Object.assign(Object.assign({},Vi.props),{bordered:{type:Boolean,default:!0},bottomBordered:{type:Boolean,default:!0},singleLine:{type:Boolean,default:!0},striped:Boolean,singleColumn:Boolean,size:{type:String,default:"medium"}}),uv=Mt({name:"Table",props:lv,setup(t){const{mergedClsPrefixRef:e,inlineThemeDisabled:n,mergedRtlRef:r}=Ma(t),a=Vi("Table","-table",sv,iv,t,e),o=La("Table",r,e),s=rt(()=>{const{size:c}=t,{self:{borderColor:f,tdColor:h,tdColorModal:d,tdColorPopover:v,thColor:y,thColorModal:_,thColorPopover:m,thTextColor:g,tdTextColor:p,borderRadius:C,thFontWeight:k,lineHeight:x,borderColorModal:N,borderColorPopover:F,tdColorStriped:Q,tdColorStripedModal:H,tdColorStripedPopover:st,[ms("fontSize",c)]:dt,[ms("tdPadding",c)]:Lt,[ms("thPadding",c)]:Ot},common:{cubicBezierEaseInOut:ue}}=a.value;return{"--n-bezier":ue,"--n-td-color":h,"--n-td-color-modal":d,"--n-td-color-popover":v,"--n-td-text-color":p,"--n-border-color":f,"--n-border-color-modal":N,"--n-border-color-popover":F,"--n-border-radius":C,"--n-font-size":dt,"--n-th-color":y,"--n-th-color-modal":_,"--n-th-color-popover":m,"--n-th-font-weight":k,"--n-th-text-color":g,"--n-line-height":x,"--n-td-padding":Lt,"--n-th-padding":Ot,"--n-td-color-striped":Q,"--n-td-color-striped-modal":H,"--n-td-color-striped-popover":st}}),l=n?Pl("table",rt(()=>t.size[0]),s,t):void 0;return{rtlEnabled:o,mergedClsPrefix:e,cssVars:n?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var t;const{mergedClsPrefix:e}=this;return(t=this.onRender)===null||t===void 0||t.call(this),M("table",{class:[`${e}-table`,this.themeClass,{[`${e}-table--rtl`]:this.rtlEnabled,[`${e}-table--bottom-bordered`]:this.bottomBordered,[`${e}-table--bordered`]:this.bordered,[`${e}-table--single-line`]:this.singleLine,[`${e}-table--single-column`]:this.singleColumn,[`${e}-table--striped`]:this.striped}],style:this.cssVars},this.$slots)}}),cv=Mt({name:"Tr",render(){return M("tr",null,this.$slots)}}),sc=Mt({name:"Td",render(){return M("td",null,this.$slots)}}),fv=Mt({name:"Tbody",render(){return M("tbody",null,this.$slots)}}),af=Rl("n-tree-select"),ja=Rl("n-tree"),hv=Mt({name:"NTreeSwitcher",props:{clsPrefix:{type:String,required:!0},indent:{type:Number,required:!0},expanded:Boolean,selected:Boolean,hide:Boolean,loading:Boolean,onClick:Function,tmNode:{type:Object,required:!0}},setup(t){const{renderSwitcherIconRef:e}=vi(ja,null);return()=>{const{clsPrefix:n,expanded:r,hide:a,indent:o,onClick:s}=t;return M("span",{"data-switcher":!0,class:[`${n}-tree-node-switcher`,r&&`${n}-tree-node-switcher--expanded`,a&&`${n}-tree-node-switcher--hide`],style:{width:`${o}px`},onClick:s},M("div",{class:`${n}-tree-node-switcher__icon`},M(s1,null,{default:()=>{if(t.loading)return M(l1,{clsPrefix:n,key:"loading",radius:85,strokeWidth:20});const{value:l}=e;return l?l({expanded:t.expanded,selected:t.selected,option:t.tmNode.rawNode}):M(Vc,{clsPrefix:n,key:"switcher"},{default:()=>M(U1,null)})}})))}}}),dv=Mt({name:"NTreeNodeCheckbox",props:{clsPrefix:{type:String,required:!0},indent:{type:Number,required:!0},right:Boolean,focusable:Boolean,disabled:Boolean,checked:Boolean,indeterminate:Boolean,onCheck:Function},setup(t){const e=vi(ja);function n(a){const{onCheck:o}=t;o&&o(a)}function r(a){n(a)}return{handleUpdateValue:r,mergedTheme:e.mergedThemeRef}},render(){const{clsPrefix:t,mergedTheme:e,checked:n,indeterminate:r,disabled:a,focusable:o,indent:s,handleUpdateValue:l}=this;return M("span",{class:[`${t}-tree-node-checkbox`,this.right&&`${t}-tree-node-checkbox--right`],style:{width:`${s}px`},"data-checkbox":!0},M(u1,{focusable:o,disabled:a,theme:e.peers.Checkbox,themeOverrides:e.peerOverrides.Checkbox,checked:n,indeterminate:r,onUpdateChecked:l}))}}),vv=Mt({name:"TreeNodeContent",props:{clsPrefix:{type:String,required:!0},disabled:Boolean,checked:Boolean,selected:Boolean,onClick:Function,onDragstart:Function,tmNode:{type:Object,required:!0},nodeProps:Object},setup(t){const{renderLabelRef:e,renderPrefixRef:n,renderSuffixRef:r,labelFieldRef:a}=vi(ja),o=ve(null);function s(c){const{onClick:f}=t;f&&f(c)}function l(c){s(c)}return{selfRef:o,renderLabel:e,renderPrefix:n,renderSuffix:r,labelField:a,handleClick:l}},render(){const{clsPrefix:t,labelField:e,nodeProps:n,checked:r=!1,selected:a=!1,renderLabel:o,renderPrefix:s,renderSuffix:l,handleClick:c,onDragstart:f,tmNode:{rawNode:h,rawNode:{prefix:d,suffix:v,[e]:y}}}=this;return M("span",Object.assign({},n,{ref:"selfRef",class:[`${t}-tree-node-content`,n==null?void 0:n.class],onClick:c,draggable:f===void 0?void 0:!0,onDragstart:f}),s||d?M("div",{class:`${t}-tree-node-content__prefix`},s?s({option:h,selected:a,checked:r}):gs(d)):null,M("div",{class:`${t}-tree-node-content__text`},o?o({option:h,selected:a,checked:r}):gs(y)),l||v?M("div",{class:`${t}-tree-node-content__suffix`},l?l({option:h,selected:a,checked:r}):gs(v)):null)}});function lc({position:t,offsetLevel:e,indent:n,el:r}){const a={position:"absolute",boxSizing:"border-box",right:0};if(t==="inside")a.left=0,a.top=0,a.bottom=0,a.borderRadius="inherit",a.boxShadow="inset 0 0 0 2px var(--n-drop-mark-color)";else{const o=t==="before"?"top":"bottom";a[o]=0,a.left=`${r.offsetLeft+6-e*n}px`,a.height="2px",a.backgroundColor="var(--n-drop-mark-color)",a.transformOrigin=o,a.borderRadius="1px",a.transform=t==="before"?"translateY(-4px)":"translateY(4px)"}return M("div",{style:a})}function pv({dropPosition:t,node:e}){return e.isLeaf===!1||e.children?!0:t!=="inside"}function _v(t){return rt(()=>t.leafOnly?"child":t.checkStrategy)}function qr(t,e){return!!t.rawNode[e]}function of(t,e,n,r){t==null||t.forEach(a=>{n(a),of(a[e],e,n,r),r(a)})}function mv(t,e,n,r,a){const o=new Set,s=new Set,l=[];return of(t,r,c=>{if(l.push(c),a(e,c)){s.add(c[n]);for(let f=l.length-2;f>=0;--f)if(!o.has(l[f][n]))o.add(l[f][n]);else return}},()=>{l.pop()}),{expandedKeys:Array.from(o),highlightKeySet:s}}if(c1&&Image){const t=new Image;t.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}function gv(t,e,n,r,a){const o=new Set,s=new Set,l=new Set,c=[],f=[],h=[];function d(y){y.forEach(_=>{if(h.push(_),e(n,_)){o.add(_[r]),l.add(_[r]);for(let g=h.length-2;g>=0;--g){const p=h[g][r];if(!s.has(p))s.add(p),o.has(p)&&o.delete(p);else break}}const m=_[a];m&&d(m),h.pop()})}d(t);function v(y,_){y.forEach(m=>{const g=m[r],p=o.has(g),C=s.has(g);if(!p&&!C)return;const k=m[a];if(k)if(p)_.push(m);else{c.push(g);const x=Object.assign(Object.assign({},m),{[a]:[]});_.push(x),v(k,x[a])}else _.push(m)})}return v(t,f),{filteredTree:f,highlightKeySet:l,expandedKeys:c}}const sf=Mt({name:"TreeNode",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(t){const e=vi(ja),{droppingNodeParentRef:n,droppingMouseNodeRef:r,draggingNodeRef:a,droppingPositionRef:o,droppingOffsetLevelRef:s,nodePropsRef:l,indentRef:c,blockLineRef:f,checkboxPlacementRef:h,checkOnClickRef:d,disabledFieldRef:v,showLineRef:y,renderSwitcherIconRef:_,overrideDefaultNodeClickBehaviorRef:m}=e,g=Le(()=>!!t.tmNode.rawNode.checkboxDisabled),p=Le(()=>qr(t.tmNode,v.value)),C=Le(()=>e.disabledRef.value||p.value),k=rt(()=>{const{value:P}=l;if(P)return P({option:t.tmNode.rawNode})}),x=ve(null),N={value:null};Oa(()=>{N.value=x.value.$el});function F(){const P=()=>{const{tmNode:lt}=t;if(!lt.isLeaf&&!lt.shallowLoaded){if(!e.loadingKeysRef.value.has(lt.key))e.loadingKeysRef.value.add(lt.key);else return;const{onLoadRef:{value:mt}}=e;mt&&mt(lt.rawNode).then(Gt=>{Gt!==!1&&e.handleSwitcherClick(lt)}).finally(()=>{e.loadingKeysRef.value.delete(lt.key)})}else e.handleSwitcherClick(lt)};_.value?setTimeout(P,0):P()}const Q=Le(()=>!p.value&&e.selectableRef.value&&(e.internalTreeSelect?e.mergedCheckStrategyRef.value!=="child"||e.multipleRef.value&&e.cascadeRef.value||t.tmNode.isLeaf:!0)),H=Le(()=>e.checkableRef.value&&(e.cascadeRef.value||e.mergedCheckStrategyRef.value!=="child"||t.tmNode.isLeaf)),st=Le(()=>e.displayedCheckedKeysRef.value.includes(t.tmNode.key)),dt=Le(()=>{const{value:P}=H;if(!P)return!1;const{value:lt}=d,{tmNode:mt}=t;return typeof lt=="boolean"?!mt.disabled&<:lt(t.tmNode.rawNode)});function Lt(P){const{value:lt}=e.expandOnClickRef,{value:mt}=Q,{value:Gt}=dt;if(!mt&&!lt&&!Gt||Di(P,"checkbox")||Di(P,"switcher"))return;const{tmNode:$e}=t;mt&&e.handleSelect($e),lt&&!$e.isLeaf&&F(),Gt&&te(!st.value)}function Ot(P){var lt,mt;if(!(Di(P,"checkbox")||Di(P,"switcher"))){if(!C.value){const Gt=m.value;let $e=!1;if(Gt)switch(Gt({option:t.tmNode.rawNode})){case"toggleCheck":$e=!0,te(!st.value);break;case"toggleSelect":$e=!0,e.handleSelect(t.tmNode);break;case"toggleExpand":$e=!0,F(),$e=!0;break;case"none":$e=!0,$e=!0;return}$e||Lt(P)}(mt=(lt=k.value)===null||lt===void 0?void 0:lt.onClick)===null||mt===void 0||mt.call(lt,P)}}function ue(P){f.value||Ot(P)}function _t(P){f.value&&Ot(P)}function te(P){e.handleCheck(t.tmNode,P)}function ce(P){e.handleDragStart({event:P,node:t.tmNode})}function on(P){P.currentTarget===P.target&&e.handleDragEnter({event:P,node:t.tmNode})}function Qt(P){P.preventDefault(),e.handleDragOver({event:P,node:t.tmNode})}function Se(P){e.handleDragEnd({event:P,node:t.tmNode})}function Cn(P){P.currentTarget===P.target&&e.handleDragLeave({event:P,node:t.tmNode})}function Pn(P){P.preventDefault(),o.value!==null&&e.handleDrop({event:P,node:t.tmNode,dropPosition:o.value})}const Nr=rt(()=>{const{clsPrefix:P}=t,{value:lt}=c;if(y.value){const mt=[];let Gt=t.tmNode.parent;for(;Gt;)Gt.isLastChild?mt.push(M("div",{class:`${P}-tree-node-indent`},M("div",{style:{width:`${lt}px`}}))):mt.push(M("div",{class:[`${P}-tree-node-indent`,`${P}-tree-node-indent--show-line`]},M("div",{style:{width:`${lt}px`}}))),Gt=Gt.parent;return mt.reverse()}else return f1(t.tmNode.level,M("div",{class:`${t.clsPrefix}-tree-node-indent`},M("div",{style:{width:`${lt}px`}})))});return{showDropMark:Le(()=>{const{value:P}=a;if(!P)return;const{value:lt}=o;if(!lt)return;const{value:mt}=r;if(!mt)return;const{tmNode:Gt}=t;return Gt.key===mt.key}),showDropMarkAsParent:Le(()=>{const{value:P}=n;if(!P)return!1;const{tmNode:lt}=t,{value:mt}=o;return mt==="before"||mt==="after"?P.key===lt.key:!1}),pending:Le(()=>e.pendingNodeKeyRef.value===t.tmNode.key),loading:Le(()=>e.loadingKeysRef.value.has(t.tmNode.key)),highlight:Le(()=>{var P;return(P=e.highlightKeySetRef.value)===null||P===void 0?void 0:P.has(t.tmNode.key)}),checked:st,indeterminate:Le(()=>e.displayedIndeterminateKeysRef.value.includes(t.tmNode.key)),selected:Le(()=>e.mergedSelectedKeysRef.value.includes(t.tmNode.key)),expanded:Le(()=>e.mergedExpandedKeysRef.value.includes(t.tmNode.key)),disabled:C,checkable:H,mergedCheckOnClick:dt,checkboxDisabled:g,selectable:Q,expandOnClick:e.expandOnClickRef,internalScrollable:e.internalScrollableRef,draggable:e.draggableRef,blockLine:f,nodeProps:k,checkboxFocusable:e.internalCheckboxFocusableRef,droppingPosition:o,droppingOffsetLevel:s,indent:c,checkboxPlacement:h,showLine:y,contentInstRef:x,contentElRef:N,indentNodes:Nr,handleCheck:te,handleDrop:Pn,handleDragStart:ce,handleDragEnter:on,handleDragOver:Qt,handleDragEnd:Se,handleDragLeave:Cn,handleLineClick:_t,handleContentClick:ue,handleSwitcherClick:F}},render(){const{tmNode:t,clsPrefix:e,checkable:n,expandOnClick:r,selectable:a,selected:o,checked:s,highlight:l,draggable:c,blockLine:f,indent:h,indentNodes:d,disabled:v,pending:y,internalScrollable:_,nodeProps:m,checkboxPlacement:g}=this,p=c&&!v?{onDragenter:this.handleDragEnter,onDragleave:this.handleDragLeave,onDragend:this.handleDragEnd,onDrop:this.handleDrop,onDragover:this.handleDragOver}:void 0,C=_?ef(t.key):void 0,k=g==="right",x=n?M(dv,{indent:h,right:k,focusable:this.checkboxFocusable,disabled:v||this.checkboxDisabled,clsPrefix:e,checked:this.checked,indeterminate:this.indeterminate,onCheck:this.handleCheck}):null;return M("div",Object.assign({class:`${e}-tree-node-wrapper`},p),M("div",Object.assign({},f?m:void 0,{class:[`${e}-tree-node`,{[`${e}-tree-node--selected`]:o,[`${e}-tree-node--checkable`]:n,[`${e}-tree-node--highlight`]:l,[`${e}-tree-node--pending`]:y,[`${e}-tree-node--disabled`]:v,[`${e}-tree-node--selectable`]:a,[`${e}-tree-node--clickable`]:a||r||this.mergedCheckOnClick},m==null?void 0:m.class],"data-key":C,draggable:c&&f,onClick:this.handleLineClick,onDragstart:c&&f&&!v?this.handleDragStart:void 0}),d,t.isLeaf&&this.showLine?M("div",{class:[`${e}-tree-node-indent`,`${e}-tree-node-indent--show-line`,t.isLeaf&&`${e}-tree-node-indent--is-leaf`,t.isLastChild&&`${e}-tree-node-indent--last-child`]},M("div",{style:{width:`${h}px`}})):M(hv,{clsPrefix:e,expanded:this.expanded,selected:o,loading:this.loading,hide:t.isLeaf,tmNode:this.tmNode,indent:h,onClick:this.handleSwitcherClick}),k?null:x,M(vv,{ref:"contentInstRef",clsPrefix:e,checked:s,selected:o,onClick:this.handleContentClick,nodeProps:f?void 0:m,onDragstart:c&&!f&&!v?this.handleDragStart:void 0,tmNode:t}),c?this.showDropMark?lc({el:this.contentElRef.value,position:this.droppingPosition,offsetLevel:this.droppingOffsetLevel,indent:h}):this.showDropMarkAsParent?lc({el:this.contentElRef.value,position:"inside",offsetLevel:this.droppingOffsetLevel,indent:h}):null:null,k?x:null))}});function yv({props:t,fNodesRef:e,mergedExpandedKeysRef:n,mergedSelectedKeysRef:r,mergedCheckedKeysRef:a,handleCheck:o,handleSelect:s,handleSwitcherClick:l}){const{value:c}=r,f=vi(af,null),h=f?f.pendingNodeKeyRef:ve(c.length?c[c.length-1]:null);function d(v){var y;if(!t.keyboard)return{enterBehavior:null};const{value:_}=h;let m=null;if(_===null){if((v.key==="ArrowDown"||v.key==="ArrowUp")&&v.preventDefault(),["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(v.key)&&_===null){const{value:g}=e;let p=0;for(;p<g.length;){if(!g[p].disabled){h.value=g[p].key;break}p+=1}}}else{const{value:g}=e;let p=g.findIndex(C=>C.key===_);if(!~p)return{enterBehavior:null};if(v.key==="Enter"){const C=g[p];switch(m=((y=t.overrideDefaultNodeClickBehavior)===null||y===void 0?void 0:y.call(t,{option:C.rawNode}))||null,m){case"toggleCheck":o(C,!a.value.includes(C.key));break;case"toggleSelect":s(C);break;case"toggleExpand":l(C);break;case"none":break;case"default":default:m="default",s(C)}}else if(v.key==="ArrowDown")for(v.preventDefault(),p+=1;p<g.length;){if(!g[p].disabled){h.value=g[p].key;break}p+=1}else if(v.key==="ArrowUp")for(v.preventDefault(),p-=1;p>=0;){if(!g[p].disabled){h.value=g[p].key;break}p-=1}else if(v.key==="ArrowLeft"){const C=g[p];if(C.isLeaf||!n.value.includes(_)){const k=C.getParent();k&&(h.value=k.key)}else l(C)}else if(v.key==="ArrowRight"){const C=g[p];if(C.isLeaf)return{enterBehavior:null};if(!n.value.includes(_))l(C);else for(p+=1;p<g.length;){if(!g[p].disabled){h.value=g[p].key;break}p+=1}}}return{enterBehavior:m}}return{pendingNodeKeyRef:h,handleKeydown:d}}const bv=Mt({name:"TreeMotionWrapper",props:{clsPrefix:{type:String,required:!0},height:Number,nodes:{type:Array,required:!0},mode:{type:String,required:!0},onAfterEnter:{type:Function,required:!0}},render(){const{clsPrefix:t}=this;return M(Hc,{onAfterEnter:this.onAfterEnter,appear:!0,reverse:this.mode==="collapse"},{default:()=>M("div",{class:[`${t}-tree-motion-wrapper`,`${t}-tree-motion-wrapper--${this.mode}`],style:{height:Qc(this.height)}},this.nodes.map(e=>M(sf,{clsPrefix:t,tmNode:e})))})}}),ws=h1(),wv=G("tree",`
|
|
149
|
-
font-size: var(--n-font-size);
|
|
150
|
-
outline: none;
|
|
151
|
-
`,[V("ul, li",`
|
|
152
|
-
margin: 0;
|
|
153
|
-
padding: 0;
|
|
154
|
-
list-style: none;
|
|
155
|
-
`),V(">",[G("tree-node",[V("&:first-child","margin-top: 0;")])]),G("tree-motion-wrapper",[Y("expand",[As({duration:"0.2s"})]),Y("collapse",[As({duration:"0.2s",reverse:!0})])]),G("tree-node-wrapper",`
|
|
156
|
-
box-sizing: border-box;
|
|
157
|
-
padding: var(--n-node-wrapper-padding);
|
|
158
|
-
`),G("tree-node",`
|
|
159
|
-
transform: translate3d(0,0,0);
|
|
160
|
-
position: relative;
|
|
161
|
-
display: flex;
|
|
162
|
-
border-radius: var(--n-node-border-radius);
|
|
163
|
-
transition: background-color .3s var(--n-bezier);
|
|
164
|
-
`,[Y("highlight",[G("tree-node-content",[Nt("text","border-bottom-color: var(--n-node-text-color-disabled);")])]),Y("disabled",[G("tree-node-content",`
|
|
165
|
-
color: var(--n-node-text-color-disabled);
|
|
166
|
-
cursor: not-allowed;
|
|
167
|
-
`)]),Ln("disabled",[Y("clickable",[G("tree-node-content",`
|
|
168
|
-
cursor: pointer;
|
|
169
|
-
`)])])]),Y("block-node",[G("tree-node-content",`
|
|
170
|
-
flex: 1;
|
|
171
|
-
min-width: 0;
|
|
172
|
-
`)]),Ln("block-line",[G("tree-node",[Ln("disabled",[G("tree-node-content",[V("&:hover","background: var(--n-node-color-hover);")]),Y("selectable",[G("tree-node-content",[V("&:active","background: var(--n-node-color-pressed);")])]),Y("pending",[G("tree-node-content",`
|
|
173
|
-
background: var(--n-node-color-hover);
|
|
174
|
-
`)]),Y("selected",[G("tree-node-content","background: var(--n-node-color-active);")])]),Y("selected",[G("tree-node-content","background: var(--n-node-color-active);")])])]),Y("block-line",[G("tree-node",[Ln("disabled",[V("&:hover","background: var(--n-node-color-hover);"),Y("pending",`
|
|
175
|
-
background: var(--n-node-color-hover);
|
|
176
|
-
`),Y("selectable",[Ln("selected",[V("&:active","background: var(--n-node-color-pressed);")])]),Y("selected","background: var(--n-node-color-active);")]),Y("selected","background: var(--n-node-color-active);"),Y("disabled",`
|
|
177
|
-
cursor: not-allowed;
|
|
178
|
-
`)])]),G("tree-node-indent",`
|
|
179
|
-
flex-grow: 0;
|
|
180
|
-
flex-shrink: 0;
|
|
181
|
-
`,[Y("show-line","position: relative",[V("&::before",`
|
|
182
|
-
position: absolute;
|
|
183
|
-
left: 50%;
|
|
184
|
-
border-left: 1px solid var(--n-line-color);
|
|
185
|
-
transition: border-color .3s var(--n-bezier);
|
|
186
|
-
transform: translate(-50%);
|
|
187
|
-
content: "";
|
|
188
|
-
top: var(--n-line-offset-top);
|
|
189
|
-
bottom: var(--n-line-offset-bottom);
|
|
190
|
-
`),Y("last-child",[V("&::before",`
|
|
191
|
-
bottom: 50%;
|
|
192
|
-
`)]),Y("is-leaf",[V("&::after",`
|
|
193
|
-
position: absolute;
|
|
194
|
-
content: "";
|
|
195
|
-
left: calc(50% + 0.5px);
|
|
196
|
-
right: 0;
|
|
197
|
-
bottom: 50%;
|
|
198
|
-
transition: border-color .3s var(--n-bezier);
|
|
199
|
-
border-bottom: 1px solid var(--n-line-color);
|
|
200
|
-
`)])]),Ln("show-line","height: 0;")]),G("tree-node-switcher",`
|
|
201
|
-
cursor: pointer;
|
|
202
|
-
display: inline-flex;
|
|
203
|
-
flex-shrink: 0;
|
|
204
|
-
height: var(--n-node-content-height);
|
|
205
|
-
align-items: center;
|
|
206
|
-
justify-content: center;
|
|
207
|
-
transition: transform .15s var(--n-bezier);
|
|
208
|
-
vertical-align: bottom;
|
|
209
|
-
`,[Nt("icon",`
|
|
210
|
-
position: relative;
|
|
211
|
-
height: 14px;
|
|
212
|
-
width: 14px;
|
|
213
|
-
display: flex;
|
|
214
|
-
color: var(--n-arrow-color);
|
|
215
|
-
transition: color .3s var(--n-bezier);
|
|
216
|
-
font-size: 14px;
|
|
217
|
-
`,[G("icon",[ws]),G("base-loading",`
|
|
218
|
-
color: var(--n-loading-color);
|
|
219
|
-
position: absolute;
|
|
220
|
-
left: 0;
|
|
221
|
-
top: 0;
|
|
222
|
-
right: 0;
|
|
223
|
-
bottom: 0;
|
|
224
|
-
`,[ws]),G("base-icon",[ws])]),Y("hide","visibility: hidden;"),Y("expanded","transform: rotate(90deg);")]),G("tree-node-checkbox",`
|
|
225
|
-
display: inline-flex;
|
|
226
|
-
height: var(--n-node-content-height);
|
|
227
|
-
vertical-align: bottom;
|
|
228
|
-
align-items: center;
|
|
229
|
-
justify-content: center;
|
|
230
|
-
`),G("tree-node-content",`
|
|
231
|
-
user-select: none;
|
|
232
|
-
position: relative;
|
|
233
|
-
display: inline-flex;
|
|
234
|
-
align-items: center;
|
|
235
|
-
min-height: var(--n-node-content-height);
|
|
236
|
-
box-sizing: border-box;
|
|
237
|
-
line-height: var(--n-line-height);
|
|
238
|
-
vertical-align: bottom;
|
|
239
|
-
padding: 0 6px 0 4px;
|
|
240
|
-
cursor: default;
|
|
241
|
-
border-radius: var(--n-node-border-radius);
|
|
242
|
-
color: var(--n-node-text-color);
|
|
243
|
-
transition:
|
|
244
|
-
color .3s var(--n-bezier),
|
|
245
|
-
background-color .3s var(--n-bezier),
|
|
246
|
-
border-color .3s var(--n-bezier);
|
|
247
|
-
`,[V("&:last-child","margin-bottom: 0;"),Nt("prefix",`
|
|
248
|
-
display: inline-flex;
|
|
249
|
-
margin-right: 8px;
|
|
250
|
-
`),Nt("text",`
|
|
251
|
-
border-bottom: 1px solid #0000;
|
|
252
|
-
transition: border-color .3s var(--n-bezier);
|
|
253
|
-
flex-grow: 1;
|
|
254
|
-
max-width: 100%;
|
|
255
|
-
`),Nt("suffix",`
|
|
256
|
-
display: inline-flex;
|
|
257
|
-
`)]),Nt("empty","margin: auto;")]);var kv=function(t,e,n,r){function a(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(h){try{f(r.next(h))}catch(d){s(d)}}function c(h){try{f(r.throw(h))}catch(d){s(d)}}function f(h){h.done?o(h.value):a(h.value).then(l,c)}f((r=r.apply(t,[])).next())})};function Cv(t,e,n,r){return{getIsGroup(){return!1},getKey(o){return o[t]},getChildren:r||(o=>o[e]),getDisabled(o){return!!(o[n]||o.checkboxDisabled)}}}const xv={allowCheckingNotLoaded:Boolean,filter:Function,defaultExpandAll:Boolean,expandedKeys:Array,keyField:{type:String,default:"key"},labelField:{type:String,default:"label"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandedKeys:{type:Array,default:()=>[]},indeterminateKeys:Array,renderSwitcherIcon:Function,onUpdateIndeterminateKeys:[Function,Array],"onUpdate:indeterminateKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],"onUpdate:expandedKeys":[Function,Array],overrideDefaultNodeClickBehavior:Function},Sv=Object.assign(Object.assign(Object.assign(Object.assign({},Vi.props),{accordion:Boolean,showIrrelevantNodes:{type:Boolean,default:!0},data:{type:Array,default:()=>[]},expandOnDragenter:{type:Boolean,default:!0},expandOnClick:Boolean,checkOnClick:{type:[Boolean,Function],default:!1},cancelable:{type:Boolean,default:!0},checkable:Boolean,draggable:Boolean,blockNode:Boolean,blockLine:Boolean,showLine:Boolean,disabled:Boolean,checkedKeys:Array,defaultCheckedKeys:{type:Array,default:()=>[]},selectedKeys:Array,defaultSelectedKeys:{type:Array,default:()=>[]},multiple:Boolean,pattern:{type:String,default:""},onLoad:Function,cascade:Boolean,selectable:{type:Boolean,default:!0},scrollbarProps:Object,indent:{type:Number,default:24},allowDrop:{type:Function,default:pv},animated:{type:Boolean,default:!0},checkboxPlacement:{type:String,default:"left"},virtualScroll:Boolean,watchProps:Array,renderLabel:Function,renderPrefix:Function,renderSuffix:Function,nodeProps:Function,keyboard:{type:Boolean,default:!0},getChildren:Function,onDragenter:[Function,Array],onDragleave:[Function,Array],onDragend:[Function,Array],onDragstart:[Function,Array],onDragover:[Function,Array],onDrop:[Function,Array],onUpdateCheckedKeys:[Function,Array],"onUpdate:checkedKeys":[Function,Array],onUpdateSelectedKeys:[Function,Array],"onUpdate:selectedKeys":[Function,Array]}),xv),{internalTreeSelect:Boolean,internalScrollable:Boolean,internalScrollablePadding:String,internalRenderEmpty:Function,internalHighlightKeySet:Object,internalUnifySelectCheck:Boolean,internalCheckboxFocusable:{type:Boolean,default:!0},internalFocusable:{type:Boolean,default:!0},checkStrategy:{type:String,default:"all"},leafOnly:Boolean}),$v=Mt({name:"Tree",props:Sv,setup(t){const{mergedClsPrefixRef:e,inlineThemeDisabled:n,mergedRtlRef:r}=Ma(t),a=La("Tree",r,e),o=Vi("Tree","-tree",wv,ov,t,e),s=ve(null),l=ve(null),c=ve(null);function f(){var b;return(b=c.value)===null||b===void 0?void 0:b.listElRef}function h(){var b;return(b=c.value)===null||b===void 0?void 0:b.itemsElRef}const d=rt(()=>{const{filter:b}=t;if(b)return b;const{labelField:$}=t;return(q,O)=>{if(!q.length)return!0;const z=O[$];return typeof z=="string"?z.toLowerCase().includes(q.toLowerCase()):!1}}),v=rt(()=>{const{pattern:b}=t;return b?!b.length||!d.value?{filteredTree:t.data,highlightKeySet:null,expandedKeys:void 0}:gv(t.data,d.value,b,t.keyField,t.childrenField):{filteredTree:t.data,highlightKeySet:null,expandedKeys:void 0}}),y=rt(()=>$1(t.showIrrelevantNodes?t.data:v.value.filteredTree,Cv(t.keyField,t.childrenField,t.disabledField,t.getChildren))),_=vi(af,null),m=t.internalTreeSelect?_.dataTreeMate:y,{watchProps:g}=t,p=ve([]);g!=null&&g.includes("defaultCheckedKeys")?Fi(()=>{p.value=t.defaultCheckedKeys}):p.value=t.defaultCheckedKeys;const C=yt(t,"checkedKeys"),k=va(C,p),x=rt(()=>m.value.getCheckedKeys(k.value,{cascade:t.cascade,allowNotLoaded:t.allowCheckingNotLoaded})),N=_v(t),F=rt(()=>x.value.checkedKeys),Q=rt(()=>{const{indeterminateKeys:b}=t;return b!==void 0?b:x.value.indeterminateKeys}),H=ve([]);g!=null&&g.includes("defaultSelectedKeys")?Fi(()=>{H.value=t.defaultSelectedKeys}):H.value=t.defaultSelectedKeys;const st=yt(t,"selectedKeys"),dt=va(st,H),Lt=ve([]),Ot=b=>{Lt.value=t.defaultExpandAll?m.value.getNonLeafKeys():b===void 0?t.defaultExpandedKeys:b};g!=null&&g.includes("defaultExpandedKeys")?Fi(()=>{Ot(void 0)}):Fi(()=>{Ot(t.defaultExpandedKeys)});const ue=yt(t,"expandedKeys"),_t=va(ue,Lt),te=rt(()=>y.value.getFlattenedNodes(_t.value)),{pendingNodeKeyRef:ce,handleKeydown:on}=yv({props:t,mergedCheckedKeysRef:k,mergedSelectedKeysRef:dt,fNodesRef:te,mergedExpandedKeysRef:_t,handleCheck:vs,handleSelect:ps,handleSwitcherClick:Ku});let Qt=null,Se=null;const Cn=ve(new Set),Pn=rt(()=>t.internalHighlightKeySet||v.value.highlightKeySet),Nr=va(Pn,Cn),P=ve(new Set),lt=rt(()=>_t.value.filter(b=>!P.value.has(b)));let mt=0;const Gt=ve(null),$e=ve(null),Ei=ve(null),Ni=ve(null),Ii=ve(0),us=rt(()=>{const{value:b}=$e;return b?b.parent:null});let la=!1;Ar(yt(t,"data"),()=>{la=!0,pa(()=>{la=!1}),P.value.clear(),ce.value=null,ca()},{deep:!1});let ua=!1;const Jr=()=>{ua=!0,pa(()=>{ua=!1})};let Xr;Ar(yt(t,"pattern"),(b,$)=>{if(t.showIrrelevantNodes)if(Xr=void 0,b){const{expandedKeys:q,highlightKeySet:O}=mv(t.data,t.pattern,t.keyField,t.childrenField,d.value);Cn.value=O,Jr(),Ai(q,sn(q),{node:null,action:"filter"})}else Cn.value=new Set;else if(!b.length)Xr!==void 0&&(Jr(),Ai(Xr,sn(Xr),{node:null,action:"filter"}));else{$.length||(Xr=_t.value);const{expandedKeys:q}=v.value;q!==void 0&&(Jr(),Ai(q,sn(q),{node:null,action:"filter"}))}});function ao(b){return kv(this,void 0,void 0,function*(){const{onLoad:$}=t;if(!$){yield Promise.resolve();return}const{value:q}=P;if(!q.has(b.key)){q.add(b.key);try{(yield $(b.rawNode))===!1&&Ti()}catch(O){console.error(O),Ti()}q.delete(b.key)}})}Fi(()=>{var b;const{value:$}=y;if(!$)return;const{getNode:q}=$;(b=_t.value)===null||b===void 0||b.forEach(O=>{const z=q(O);z&&!z.shallowLoaded&&ao(z)})});const Ir=ve(!1),Rn=ve([]);Ar(lt,(b,$)=>{if(!t.animated||ua){pa(qi);return}if(la)return;const q=fa(o.value.self.nodeHeight),O=new Set($);let z=null,jt=null;for(const St of b)if(!O.has(St)){if(z!==null)return;z=St}const Xe=new Set(b);for(const St of $)if(!Xe.has(St)){if(jt!==null)return;jt=St}if(z===null&&jt===null)return;const{virtualScroll:ln}=t,Ri=(ln?c.value.listElRef:s.value).offsetHeight,Mi=Math.ceil(Ri/q)+1;let pn;if(z!==null&&(pn=$),jt!==null&&(pn===void 0?pn=b:pn=pn.filter(St=>St!==jt)),Ir.value=!0,Rn.value=y.value.getFlattenedNodes(pn),z!==null){const St=Rn.value.findIndex(_n=>_n.key===z);if(~St){const _n=Rn.value[St].children;if(_n){const xn=tc(_n,b);Rn.value.splice(St+1,0,{__motion:!0,mode:"expand",height:ln?xn.length*q:void 0,nodes:ln?xn.slice(0,Mi):xn})}}}if(jt!==null){const St=Rn.value.findIndex(_n=>_n.key===jt);if(~St){const _n=Rn.value[St].children;if(!_n)return;Ir.value=!0;const xn=tc(_n,b);Rn.value.splice(St+1,0,{__motion:!0,mode:"collapse",height:ln?xn.length*q:void 0,nodes:ln?xn.slice(0,Mi):xn})}}});const cs=rt(()=>E1(te.value)),fs=rt(()=>Ir.value?Rn.value:te.value);function qi(){const{value:b}=l;b&&b.sync()}function hs(){Ir.value=!1,t.virtualScroll&&pa(qi)}function sn(b){const{getNode:$}=m.value;return b.map(q=>{var O;return((O=$(q))===null||O===void 0?void 0:O.rawNode)||null})}function Ai(b,$,q){const{"onUpdate:expandedKeys":O,onUpdateExpandedKeys:z}=t;Lt.value=b,O&&ye(O,b,$,q),z&&ye(z,b,$,q)}function Bu(b,$,q){const{"onUpdate:checkedKeys":O,onUpdateCheckedKeys:z}=t;p.value=b,z&&ye(z,b,$,q),O&&ye(O,b,$,q)}function Nd(b,$){const{"onUpdate:indeterminateKeys":q,onUpdateIndeterminateKeys:O}=t;q&&ye(q,b,$),O&&ye(O,b,$)}function ds(b,$,q){const{"onUpdate:selectedKeys":O,onUpdateSelectedKeys:z}=t;H.value=b,z&&ye(z,b,$,q),O&&ye(O,b,$,q)}function Id(b){const{onDragenter:$}=t;$&&ye($,b)}function qd(b){const{onDragleave:$}=t;$&&ye($,b)}function Ad(b){const{onDragend:$}=t;$&&ye($,b)}function Td(b){const{onDragstart:$}=t;$&&ye($,b)}function Pd(b){const{onDragover:$}=t;$&&ye($,b)}function Rd(b){const{onDrop:$}=t;$&&ye($,b)}function ca(){Md(),Yr()}function Md(){Gt.value=null}function Yr(){Ii.value=0,$e.value=null,Ei.value=null,Ni.value=null,Ti()}function Ti(){Qt&&(window.clearTimeout(Qt),Qt=null),Se=null}function vs(b,$){if(t.disabled||qr(b,t.disabledField))return;if(t.internalUnifySelectCheck&&!t.multiple){ps(b);return}const q=$?"check":"uncheck",{checkedKeys:O,indeterminateKeys:z}=m.value[q](b.key,F.value,{cascade:t.cascade,checkStrategy:N.value,allowNotLoaded:t.allowCheckingNotLoaded});Bu(O,sn(O),{node:b.rawNode,action:q}),Nd(z,sn(z))}function Ld(b){if(t.disabled)return;const{key:$}=b,{value:q}=_t,O=q.findIndex(z=>z===$);if(~O){const z=Array.from(q);z.splice(O,1),Ai(z,sn(z),{node:b.rawNode,action:"collapse"})}else{const z=y.value.getNode($);if(!z||z.isLeaf)return;let jt;if(t.accordion){const Xe=new Set(b.siblings.map(({key:ln})=>ln));jt=q.filter(ln=>!Xe.has(ln)),jt.push($)}else jt=q.concat($);Ai(jt,sn(jt),{node:b.rawNode,action:"expand"})}}function Ku(b){t.disabled||Ir.value||Ld(b)}function ps(b){if(!(t.disabled||!t.selectable)){if(ce.value=b.key,t.internalUnifySelectCheck){const{value:{checkedKeys:$,indeterminateKeys:q}}=x;t.multiple?vs(b,!($.includes(b.key)||q.includes(b.key))):Bu([b.key],sn([b.key]),{node:b.rawNode,action:"check"})}if(t.multiple){const $=Array.from(dt.value),q=$.findIndex(O=>O===b.key);~q?t.cancelable&&$.splice(q,1):~q||$.push(b.key),ds($,sn($),{node:b.rawNode,action:~q?"unselect":"select"})}else dt.value.includes(b.key)?t.cancelable&&ds([],[],{node:b.rawNode,action:"unselect"}):ds([b.key],sn([b.key]),{node:b.rawNode,action:"select"})}}function Od(b){if(Qt&&(window.clearTimeout(Qt),Qt=null),b.isLeaf)return;Se=b.key;const $=()=>{if(Se!==b.key)return;const{value:q}=Ei;if(q&&q.key===b.key&&!_t.value.includes(b.key)){const O=_t.value.concat(b.key);Ai(O,sn(O),{node:b.rawNode,action:"expand"})}Qt=null,Se=null};b.shallowLoaded?Qt=window.setTimeout(()=>{$()},1e3):Qt=window.setTimeout(()=>{ao(b).then(()=>{$()})},1e3)}function jd({event:b,node:$}){!t.draggable||t.disabled||qr($,t.disabledField)||(Uu({event:b,node:$},!1),Id({event:b,node:$.rawNode}))}function zd({event:b,node:$}){!t.draggable||t.disabled||qr($,t.disabledField)||qd({event:b,node:$.rawNode})}function Fd(b){b.target===b.currentTarget&&Yr()}function Dd({event:b,node:$}){ca(),!(!t.draggable||t.disabled||qr($,t.disabledField))&&Ad({event:b,node:$.rawNode})}function Bd({event:b,node:$}){!t.draggable||t.disabled||qr($,t.disabledField)||(mt=b.clientX,Gt.value=$,Td({event:b,node:$.rawNode}))}function Uu({event:b,node:$},q=!0){var O;if(!t.draggable||t.disabled||qr($,t.disabledField))return;const{value:z}=Gt;if(!z)return;const{allowDrop:jt,indent:Xe}=t;q&&Pd({event:b,node:$.rawNode});const ln=b.currentTarget,{height:Ri,top:Mi}=ln.getBoundingClientRect(),pn=b.clientY-Mi;let St;jt({node:$.rawNode,dropPosition:"inside",phase:"drag"})?pn<=8?St="before":pn>=Ri-8?St="after":St="inside":pn<=Ri/2?St="before":St="after";const{value:xn}=cs;let kt,Ee;const Li=xn($.key);if(Li===null){Yr();return}let oo=!1;St==="inside"?(kt=$,Ee="inside"):St==="before"?$.isFirstChild?(kt=$,Ee="before"):(kt=te.value[Li-1],Ee="after"):(kt=$,Ee="after"),!kt.isLeaf&&_t.value.includes(kt.key)&&(oo=!0,Ee==="after"&&(kt=te.value[Li+1],kt?Ee="before":(kt=$,Ee="inside")));const Hu=kt;if(Ei.value=Hu,!oo&&z.isLastChild&&z.key===kt.key&&(Ee="after"),Ee==="after"){let Vu=mt-b.clientX,_s=0;for(;Vu>=Xe/2&&kt.parent!==null&&kt.isLastChild&&_s<1;)Vu-=Xe,_s+=1,kt=kt.parent;Ii.value=_s}else Ii.value=0;if((z.contains(kt)||Ee==="inside"&&((O=z.parent)===null||O===void 0?void 0:O.key)===kt.key)&&!(z.key===Hu.key&&z.key===kt.key)){Yr();return}if(!jt({node:kt.rawNode,dropPosition:Ee,phase:"drag"})){Yr();return}if(z.key===kt.key)Ti();else if(Se!==kt.key)if(Ee==="inside"){if(t.expandOnDragenter){if(Od(kt),!kt.shallowLoaded&&Se!==kt.key){ca();return}}else if(!kt.shallowLoaded){ca();return}}else Ti();else Ee!=="inside"&&Ti();Ni.value=Ee,$e.value=kt}function Kd({event:b,node:$,dropPosition:q}){if(!t.draggable||t.disabled||qr($,t.disabledField))return;const{value:O}=Gt,{value:z}=$e,{value:jt}=Ni;if(!(!O||!z||!jt)&&t.allowDrop({node:z.rawNode,dropPosition:jt,phase:"drag"})&&O.key!==z.key){if(jt==="before"){const Xe=O.getNext({includeDisabled:!0});if(Xe&&Xe.key===z.key){Yr();return}}if(jt==="after"){const Xe=O.getPrev({includeDisabled:!0});if(Xe&&Xe.key===z.key){Yr();return}}Rd({event:b,node:z.rawNode,dragNode:O.rawNode,dropPosition:q}),ca()}}function Ud(){qi()}function Wd(){qi()}function Hd(b){var $;if(t.virtualScroll||t.internalScrollable){const{value:q}=l;if(!(($=q==null?void 0:q.containerRef)===null||$===void 0)&&$.contains(b.relatedTarget))return;ce.value=null}else{const{value:q}=s;if(q!=null&&q.contains(b.relatedTarget))return;ce.value=null}}Ar(ce,b=>{var $,q;if(b!==null){if(t.virtualScroll)($=c.value)===null||$===void 0||$.scrollTo({key:b});else if(t.internalScrollable){const{value:O}=l;if(O===null)return;const z=(q=O.contentRef)===null||q===void 0?void 0:q.querySelector(`[data-key="${ef(b)}"]`);if(!z)return;O.scrollTo({el:z})}}}),Al(ja,{loadingKeysRef:P,highlightKeySetRef:Nr,displayedCheckedKeysRef:F,displayedIndeterminateKeysRef:Q,mergedSelectedKeysRef:dt,mergedExpandedKeysRef:_t,mergedThemeRef:o,mergedCheckStrategyRef:N,nodePropsRef:yt(t,"nodeProps"),disabledRef:yt(t,"disabled"),checkableRef:yt(t,"checkable"),selectableRef:yt(t,"selectable"),expandOnClickRef:yt(t,"expandOnClick"),onLoadRef:yt(t,"onLoad"),draggableRef:yt(t,"draggable"),blockLineRef:yt(t,"blockLine"),indentRef:yt(t,"indent"),cascadeRef:yt(t,"cascade"),checkOnClickRef:yt(t,"checkOnClick"),checkboxPlacementRef:t.checkboxPlacement,droppingMouseNodeRef:Ei,droppingNodeParentRef:us,draggingNodeRef:Gt,droppingPositionRef:Ni,droppingOffsetLevelRef:Ii,fNodesRef:te,pendingNodeKeyRef:ce,showLineRef:yt(t,"showLine"),disabledFieldRef:yt(t,"disabledField"),internalScrollableRef:yt(t,"internalScrollable"),internalCheckboxFocusableRef:yt(t,"internalCheckboxFocusable"),internalTreeSelect:t.internalTreeSelect,renderLabelRef:yt(t,"renderLabel"),renderPrefixRef:yt(t,"renderPrefix"),renderSuffixRef:yt(t,"renderSuffix"),renderSwitcherIconRef:yt(t,"renderSwitcherIcon"),labelFieldRef:yt(t,"labelField"),multipleRef:yt(t,"multiple"),overrideDefaultNodeClickBehaviorRef:yt(t,"overrideDefaultNodeClickBehavior"),handleSwitcherClick:Ku,handleDragEnd:Dd,handleDragEnter:jd,handleDragLeave:zd,handleDragStart:Bd,handleDrop:Kd,handleDragOver:Uu,handleSelect:ps,handleCheck:vs});function Vd(b,$){var q,O;typeof b=="number"?(q=c.value)===null||q===void 0||q.scrollTo(b,$||0):(O=c.value)===null||O===void 0||O.scrollTo(b)}const Qd={handleKeydown:on,scrollTo:Vd,getCheckedData:()=>{if(!t.checkable)return{keys:[],options:[]};const{checkedKeys:b}=x.value;return{keys:b,options:sn(b)}},getIndeterminateData:()=>{if(!t.checkable)return{keys:[],options:[]};const{indeterminateKeys:b}=x.value;return{keys:b,options:sn(b)}}},Wu=rt(()=>{const{common:{cubicBezierEaseInOut:b},self:{fontSize:$,nodeBorderRadius:q,nodeColorHover:O,nodeColorPressed:z,nodeColorActive:jt,arrowColor:Xe,loadingColor:ln,nodeTextColor:Ri,nodeTextColorDisabled:Mi,dropMarkColor:pn,nodeWrapperPadding:St,nodeHeight:_n,lineHeight:xn,lineColor:kt}}=o.value,Ee=ys(St,"top"),Li=ys(St,"bottom"),oo=Qc(fa(_n)-fa(Ee)-fa(Li));return{"--n-arrow-color":Xe,"--n-loading-color":ln,"--n-bezier":b,"--n-font-size":$,"--n-node-border-radius":q,"--n-node-color-active":jt,"--n-node-color-hover":O,"--n-node-color-pressed":z,"--n-node-text-color":Ri,"--n-node-text-color-disabled":Mi,"--n-drop-mark-color":pn,"--n-node-wrapper-padding":St,"--n-line-offset-top":`-${Ee}`,"--n-line-offset-bottom":`-${Li}`,"--n-node-content-height":oo,"--n-line-height":xn,"--n-line-color":kt}}),Pi=n?Pl("tree",void 0,Wu,t):void 0;return Object.assign(Object.assign({},Qd),{mergedClsPrefix:e,mergedTheme:o,rtlEnabled:a,fNodes:fs,aip:Ir,selfElRef:s,virtualListInstRef:c,scrollbarInstRef:l,handleFocusout:Hd,handleDragLeaveTree:Fd,handleScroll:Ud,getScrollContainer:f,getScrollContent:h,handleAfterEnter:hs,handleResize:Wd,cssVars:n?void 0:Wu,themeClass:Pi==null?void 0:Pi.themeClass,onRender:Pi==null?void 0:Pi.onRender})},render(){var t;const{fNodes:e,internalRenderEmpty:n}=this;if(!e.length&&n)return n();const{mergedClsPrefix:r,blockNode:a,blockLine:o,draggable:s,disabled:l,internalFocusable:c,checkable:f,handleKeydown:h,rtlEnabled:d,handleFocusout:v,scrollbarProps:y}=this,_=c&&!l,m=_?"0":void 0,g=[`${r}-tree`,d&&`${r}-tree--rtl`,f&&`${r}-tree--checkable`,(o||a)&&`${r}-tree--block-node`,o&&`${r}-tree--block-line`],p=k=>"__motion"in k?M(bv,{height:k.height,nodes:k.nodes,clsPrefix:r,mode:k.mode,onAfterEnter:this.handleAfterEnter}):M(sf,{key:k.key,tmNode:k,clsPrefix:r});if(this.virtualScroll){const{mergedTheme:k,internalScrollablePadding:x}=this,N=ys(x||"0");return M(Ju,Object.assign({},y,{ref:"scrollbarInstRef",onDragleave:s?this.handleDragLeaveTree:void 0,container:this.getScrollContainer,content:this.getScrollContent,class:g,theme:k.peers.Scrollbar,themeOverrides:k.peerOverrides.Scrollbar,tabindex:m,onKeydown:_?h:void 0,onFocusout:_?v:void 0}),{default:()=>{var F;return(F=this.onRender)===null||F===void 0||F.call(this),e.length?M(N1,{ref:"virtualListInstRef",items:this.fNodes,itemSize:fa(k.self.nodeHeight),ignoreItemResize:this.aip,paddingTop:N.top,paddingBottom:N.bottom,class:this.themeClass,style:[this.cssVars,{paddingLeft:N.left,paddingRight:N.right}],onScroll:this.handleScroll,onResize:this.handleResize,showScrollbar:!1,itemResizable:!0},{default:({item:Q})=>p(Q)}):Gu(this.$slots.empty,()=>[M(ec,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})])}})}const{internalScrollable:C}=this;return g.push(this.themeClass),(t=this.onRender)===null||t===void 0||t.call(this),C?M(Ju,Object.assign({},y,{class:g,tabindex:m,onKeydown:_?h:void 0,onFocusout:_?v:void 0,style:this.cssVars,contentStyle:{padding:this.internalScrollablePadding}}),{default:()=>M("div",{onDragleave:s?this.handleDragLeaveTree:void 0,ref:"selfElRef"},this.fNodes.map(p))}):M("div",{class:g,tabindex:m,ref:"selfElRef",style:this.cssVars,onKeydown:_?h:void 0,onFocusout:_?v:void 0,onDragleave:s?this.handleDragLeaveTree:void 0},e.length?e.map(p):Gu(this.$slots.empty,()=>[M(ec,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]))}}),uc=t=>{const e=ne(),n={x:0,y:0},r=Ml({...n});let a;const o=h=>{a&&h.preventDefault()},s=h=>{a=h,n.x=r.x,n.y=r.y},l=h=>{if(!a||!e.value)return;const d=h.clientX-a.clientX,v=h.clientY-a.clientY;t(d)&&(r.x=n.x+d),r.y=n.y+v},c=()=>{a=void 0},f=()=>{if(!e.value||!a)return;c();const{top:h,bottom:d,left:v,right:y}=e.value.getBoundingClientRect();(y<0||v>window.innerWidth||d<0||h>window.innerHeight)&&(r.x=n.x,r.y=n.y)};return Oa(()=>{window.addEventListener("pointermove",l),window.addEventListener("pointerup",f),document.addEventListener("selectstart",o)}),co(()=>{window.removeEventListener("pointermove",l),window.removeEventListener("pointerup",f),document.removeEventListener("selectstart",o),c()}),Ar(e,(h,d)=>{h&&(h.addEventListener("pointerdown",s),h.addEventListener("pointerup",c)),d&&(d.removeEventListener("pointerdown",s),d.removeEventListener("pointerup",c))}),co(()=>{e.value&&(e.value.removeEventListener("pointerdown",s),e.value.removeEventListener("pointerup",c))}),{target:e,offset:r}},cc="transition-top,bottom,left,right-500",Ll=Mt({__name:"DraggableCard",props:{initialValue:{default:()=>({})},minWidth:{},sizeDraggable:{type:Boolean},disabled:{type:Boolean}},setup(t){var C,k;const e=t,n=e.initialValue.left!==void 0,r=e.initialValue.top!==void 0,a={x:(C=n?e.initialValue.left:e.initialValue.right)!=null?C:0,y:(k=r?e.initialValue.top:e.initialValue.bottom)!=null?k:0},o=uc(x=>{const N=(e.initialValue.width||0)+s.offset.x+-o.offset.x-x;return(e.minWidth||0)<N}),s=uc(x=>{const N=(e.initialValue.width||0)+s.offset.x+x-o.offset.x;return(e.minWidth||0)<N}),l=Ml({...a}),c=rt(()=>{const x=(e.initialValue.width||0)+s.offset.x-o.offset.x,N=e.initialValue.width?`width:${x}px;`:"",F=r?`top:${l.y}px;`:`bottom:${l.y}px;`;return n?`left:${l.x-o.offset.x}px;`+F+N:`right:${l.x-s.offset.x}px;`+F+N});let f;const h=x=>{f=x,a.x=l.x,a.y=l.y},d=x=>{if(!_.value||!f)return;const N=x.clientX-f.clientX,F=x.clientY-f.clientY;l.x=a.x+(n?N:-N),l.y=a.y+(r?F:-F)},v=()=>{f=void 0},y=ne(),_=ne(),m=x=>{f&&x.preventDefault()},g=()=>{if(!_.value||!f)return;v();const{top:x,bottom:N,left:F,right:Q}=_.value.getBoundingClientRect();if(Q<0||F>window.innerWidth||N<0||x>window.innerHeight){l.x=a.x,l.y=a.y;const H=y.value;H&&(H.classList.add(cc),setTimeout(()=>{H.classList.remove(cc)},550))}};Oa(()=>{window.addEventListener("pointermove",d),window.addEventListener("pointerup",g),document.addEventListener("selectstart",m)}),co(()=>{window.removeEventListener("pointermove",d),window.removeEventListener("pointerup",g),document.removeEventListener("selectstart",m),v()}),Ar(_,(x,N)=>{x&&(x.addEventListener("pointerdown",h),x.addEventListener("pointerup",v)),N&&(N.removeEventListener("pointerdown",h),N.removeEventListener("pointerup",v))}),co(()=>{_.value&&(_.value.removeEventListener("pointerdown",h),_.value.removeEventListener("pointerup",v))});const p=x=>{x instanceof HTMLElement?_.value=x:_.value=void 0};return(x,N)=>(at(),pe(d1,{to:"#app",disabled:x.disabled},[R("div",{fixed:"",ref_key:"box",ref:y,style:qs([x.$attrs.style,c.value]),class:oi(x.$attrs.class)},[Gc(x.$slots,"default",{onRef:p}),x.sizeDraggable?(at(),Ie(Tr,{key:0},[R("div",{ref:I(o).target,absolute:"","right-full":"","top-0":"","bottom-0":"","w-5px":"","cursor-ew-resize":""},null,512),R("div",{ref:I(s).target,absolute:"","left-full":"","top-0":"","bottom-0":"","w-5px":"","cursor-ew-resize":""},null,512)],64)):je("",!0)],6)],8,["disabled"]))}}),Ev=R("th",null,"Name",-1),Nv=R("th",null,"Value",-1),Iv=[Ev,Nv],qv={key:0,flex:"","justify-between":"","items-center":""},Av={key:0,viewBox:"0 0 28 28"},Tv=R("path",{d:"M15 8a1 1 0 1 1-2 0a1 1 0 0 1 2 0zm-1.75 3.75v7.5a.75.75 0 0 0 1.5 0v-7.5a.75.75 0 0 0-1.5 0zM2 14C2 7.373 7.373 2 14 2s12 5.373 12 12s-5.373 12-12 12S2 20.627 2 14zM14 3.5C8.201 3.5 3.5 8.201 3.5 14S8.201 24.5 14 24.5S24.5 19.799 24.5 14S19.799 3.5 14 3.5z",fill:"currentColor"},null,-1),Pv=[Tv],Rv={key:1,viewBox:"0 0 1024 1024"},Mv=R("path",{d:"M722.500267 330.888533l-273.408 273.408-147.729067-147.729066a42.018133 42.018133 0 1 0-59.426133 59.426133l177.425066 177.493333a41.984 41.984 0 0 0 59.426134 0L781.9264 390.314667a42.001067 42.001067 0 0 0-59.392-59.426134h-0.034133zM78.506667 783.496533a508.279467 508.279467 0 0 0 319.0784 226.986667C530.773333 1041.066667 667.886933 1017.924267 783.701333 945.390933a508.279467 508.279467 0 0 0 226.986667-319.0784 508.279467 508.279467 0 0 0-65.058133-386.116266C848.554667 85.367467 681.710933 0.341333 511.214933 0.341333a508.6208 508.6208 0 0 0-270.813866 77.960534A36.864 36.864 0 0 0 279.552 140.629333C484.113067 12.288 755.029333 74.581333 883.268267 279.278933a434.9952 434.9952 0 0 1 55.739733 330.5472 435.029333 435.029333 0 0 1-194.3552 273.134934 435.746133 435.746133 0 0 1-330.581333 55.773866A435.165867 435.165867 0 0 1 140.936533 744.379733a436.770133 436.770133 0 0 1-5.666133-456.055466 36.829867 36.829867 0 0 0-63.317333-37.546667A510.1568 510.1568 0 0 0 78.506667 783.530667v-0.034134z",fill:"currentColor"},null,-1),Lv=[Mv],Ov=Mt({__name:"AttrCard",props:{focusNode:{}},setup(t){const e=t,n={_id:{desc:"虚拟属性(真机不可用):生成快照访问节点顺序",type:"info"},_pid:{desc:"虚拟属性(真机不可用):父节点的 _id",type:"info"},depth:{desc:"使用此属性在某些应用上可能造成无限节点错误",type:"info"},id:{desc:"可快速查找",type:"quickFind",show(){return(e.focusNode.quickFind||e.focusNode.idQf)&&e.focusNode.attr.id}},vid:{desc:"可快速查找",type:"quickFind",show(){return(e.focusNode.quickFind||e.focusNode.idQf)&&e.focusNode.attr.vid}},text:{desc:"可快速查找",type:"quickFind",show(){return(e.focusNode.quickFind||e.focusNode.textQf)&&e.focusNode.attr.text}}},r=["text","desc"],a=rt(()=>Object.entries(e.focusNode.attr).map(([o,s])=>{var f,h,d;const l=(f=n[o])==null?void 0:f.show,c={name:o,value:s,desc:JSON.stringify(s),tip:!l||l()?n[o]:void 0};return r.includes(o)?[c,{name:o+".length",value:(h=s==null?void 0:s.length)!=null?h:null,desc:JSON.stringify((d=s==null?void 0:s.length)!=null?d:null),tip:void 0}]:c}).flat());return(o,s)=>(at(),pe(Ll,{initialValue:{top:40,right:10},class:"box-shadow-dim"},{default:T(({onRef:l})=>[Z(I(uv),{size:"small",striped:"",singleLine:!1,class:"gkd_code",themeOverrides:{thPaddingSmall:"1px 3px",tdPaddingSmall:"1px 3px"}},{default:T(()=>[R("thead",null,[R("tr",{ref:l,"cursor-move":""},Iv,512)]),Z(I(fv),null,{default:T(()=>[(at(!0),Ie(Tr,null,ma(a.value,c=>(at(),pe(I(cv),{key:c.name},{default:T(()=>[Z(I(sc),{onClick:f=>I(Xn)(`${c.name}=${c.desc}`)},{default:T(()=>[c.tip?(at(),Ie("div",qv,[R("div",null,Dt(c.name),1),Z(I(Qn),null,{trigger:T(()=>[Z(I(Yn),{size:"16"},{default:T(()=>[c.tip.type=="info"?(at(),Ie("svg",Av,Pv)):c.tip.type=="quickFind"?(at(),Ie("svg",Rv,Lv)):je("",!0)]),_:2},1024)]),default:T(()=>[be(" "+Dt(c.tip.desc),1)]),_:2},1024)])):(at(),Ie(Tr,{key:1},[be(Dt(c.name),1)],64))]),_:2},1032,["onClick"]),Z(I(sc),null,{default:T(()=>[Z(I(I1),{class:oi(["w-[calc(var(--gkd-width)*0.12)]",{"text-left direction-rtl":c.name=="id","opacity-50":c.value===null}])},{default:T(()=>[be(Dt(c.desc),1)]),_:2},1032,["class"])]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:2},1024)]),_:1}))}}),jv={flex:"","flex-col":"",relative:"","h-full":""},zv=["src"],Fv=R("div",{absolute:"","left-0":"","top-0":"","bottom-0":"","right-0":"","b-solid":"","b-1px":"","b-red":""},null,-1),Dv=[Fv],Bv={class:"left-[calc(100%+4px)]",absolute:"","top-0":"","overflow-hidden":"","z-1":"","bg-white":"","h-200px":"","w-200px":"","border-1px":"","border-indigo-600":"","border-dashed":""},Kv=["src"],Uv={absolute:"","left-2px":"","top-2px":"","p-1px":"","z-1":"","text-13px":"",class:"leading-[1] bg-[rgba(256,256,256,0.7)]"},Wv={key:0,absolute:"","left-2px":"","bottom-2px":"","p-1px":"","z-1":"","text-12px":"",class:"leading-[1] bg-[rgba(256,256,256,0.7)]",flex:"","flex-col":"","flex-items-center":""},Hv=R("div",{class:"top-[calc(50%-1px)] bg-[length:10px_1px]",absolute:"","left-0":"","right-0":"","h-1px":"","bg-repeat-x":"","mix-blend-difference":"",style:{"background-image":`linear-gradient(
|
|
258
|
-
to left,
|
|
259
|
-
transparent 0%,
|
|
260
|
-
transparent 50%,
|
|
261
|
-
#fff 50%,
|
|
262
|
-
#fff 100%
|
|
263
|
-
)`,"background-position-x":"1.5px"}},null,-1),Vv=R("div",{class:"left-[calc(50%-1px)] bg-[length:1px_10px]",absolute:"","top-0":"","bottom-0":"","w-1px":"","bg-repeat-y":"","mix-blend-difference":"",style:{"background-image":`linear-gradient(
|
|
264
|
-
to top,
|
|
265
|
-
transparent 0%,
|
|
266
|
-
transparent 50%,
|
|
267
|
-
#fff 50%,
|
|
268
|
-
#fff 100%
|
|
269
|
-
)`,"background-position-y":"1.5px"}},null,-1),Qv=Mt({__name:"ScreenshotCard",props:{url:{},snapshot:{},rootNode:{},focusNode:{},onUpdateFocusNode:{type:Function,default:si},onUpdateFocusNodes:{type:Function,default:si}},setup(t){const e=t,n=tf(),r=M1(rt(()=>(n.width.value,n.height.value,Math.random())),300),a=ne(),o=ne(0),s=_=>{if(!e.rootNode)return;const m=a.value;if(!m)return;const g=m.getBoundingClientRect(),p=g.width/m.naturalWidth*m.naturalHeight,C=(g.height-p)/2,k=(_.clientX-g.left)/g.width*m.naturalWidth,x=(_.clientY-g.top-C)/p*m.naturalHeight,N=q1(e.snapshot.nodes,k,x);N.length!==0&&(N.length===1?e.onUpdateFocusNode(N[0]):(e.onUpdateFocusNode(N[0]),e.onUpdateFocusNodes({nodes:N,position:{x:k,y:x}})))},l=_=>`${_*100}%`,c=rt(()=>{var C;r.value,o.value;const _=a.value,m=(C=e.focusNode)==null?void 0:C.attr;if(!e.focusNode||!_||!m)return"";const g=_.getBoundingClientRect(),p=g.width/_.naturalWidth*_.naturalHeight;return{left:`calc(${l(m.left/_.naturalWidth)} - 2px)`,width:`calc(${l((m.right-m.left)/_.naturalWidth)} + 2px)`,top:`calc(${l((m.top/_.naturalHeight*p+(g.height-p)/2)/g.height)} - 2px)`,height:`calc(${l((m.bottom-m.top)/_.naturalHeight*p/g.height)} + 2px)`}}),f=ne(!1),h=ne({ox:0,oy:0}),d=rt(()=>{var p;const _=(p=e.focusNode)==null?void 0:p.attr;if(!_)return;const{ox:m,oy:g}=h.value;return{left:m-_.left,right:_.right-m,top:g-_.top,bottom:_.bottom-g}}),v=_=>{const m=a.value;if(!m)return;const g=m.getBoundingClientRect(),p=g.width/m.naturalWidth*m.naturalHeight,C=(g.height-p)/2,k=(_.clientX-g.left)/g.width*m.naturalWidth,x=(_.clientY-g.top-C)/p*m.naturalHeight;h.value={ox:k,oy:x},y.value={left:-(k-.1*m.naturalWidth)/m.naturalWidth*1e3+"px",top:-(x-.1*m.naturalWidth)/m.naturalWidth*1e3+"px"}},y=ne({left:"0",top:"0"});return(_,m)=>(at(),Ie("div",jv,[R("img",{ref_key:"imgRef",ref:a,src:_.url,onClick:s,"cursor-crosshair":"","h-full":"","object-contain":"",class:"max-w-[calc(var(--gkd-width)*0.35)]",onMouseover:m[0]||(m[0]=g=>f.value=!0),onMouseleave:m[1]||(m[1]=g=>f.value=!1),onMousemove:v,onLoad:m[2]||(m[2]=g=>o.value=Date.now())},null,40,zv),R("div",{style:qs(c.value),absolute:"","pointer-events-none":"","transition-all-300":"","b-1px":"","b-blue":"","b-solid":""},Dv,4),Uc(R("div",Bv,[R("img",{src:_.url,"object-contain":"",absolute:"","left-0":"","top-0":"",style:qs(y.value),"w-1000px":""},null,12,Kv),R("div",Uv,Dt(`${h.value.ox.toFixed(0)},${h.value.oy.toFixed(0)}`),1),d.value?(at(),Ie("div",Wv,[R("div",null,Dt(d.value.top.toFixed(0)),1),R("div",null,Dt(d.value.left.toFixed(0)+","+d.value.right.toFixed(0)),1),R("div",null,Dt(d.value.bottom.toFixed(0)),1)])):je("",!0),Hv,Vv],512),[[Wc,f.value]])]))}});typeof Math.imul>"u"&&(Math.imul=function(e,n){return(e&4294901760)*(n&65535)+(e&65535)*(n|0)|0});typeof ArrayBuffer.isView>"u"&&(ArrayBuffer.isView=function(t){return t!=null&&t.__proto__!=null&&t.__proto__.__proto__===Int8Array.prototype.__proto__});typeof Array.prototype.fill>"u"&&Object.defineProperty(Array.prototype,"fill",{value:function(t){if(this==null)throw new TypeError("this is null or not defined");for(var e=Object(this),n=e.length>>>0,r=arguments[1],a=r>>0,o=a<0?Math.max(n+a,0):Math.min(a,n),s=arguments[2],l=s===void 0?n:s>>0,c=l<0?Math.max(n+l,0):Math.min(l,n);o<c;)e[o]=t,o++;return e}});[Int8Array,Int16Array,Uint16Array,Int32Array,Float32Array,Float64Array].forEach(function(t){typeof t.prototype.fill>"u"&&Object.defineProperty(t.prototype,"fill",{value:Array.prototype.fill})});typeof Math.clz32>"u"&&(Math.clz32=function(t,e){return function(n){var r=n>>>0;return r===0?32:31-(t(r)/e|0)|0}}(Math.log,Math.LN2));typeof String.prototype.endsWith>"u"&&Object.defineProperty(String.prototype,"endsWith",{value:function(t,e){var n=this.toString();(e===void 0||e>n.length)&&(e=n.length),e-=t.length;var r=n.indexOf(t,e);return r!==-1&&r===e}});typeof String.prototype.startsWith>"u"&&Object.defineProperty(String.prototype,"startsWith",{value:function(t,e){return e=e||0,this.lastIndexOf(t,e)===e}});var gt=Math.imul,Gv=ArrayBuffer.isView,lf=Math.clz32;Ke(Ol,"CharSequence");Ke(za,"Comparable");w(ho,"Number");it(jl,"Unit");w(Dl);w(Ul);me(yf);w(nt,"Char",u,u,[za]);Ke($t,"Collection");function uf(){return Mp(this)}Ke(Un,"List",u,u,[$t]);Ke(_r,"Entry");Ke(mr,"Map");Ke(Ur,"Set",u,u,[$t]);me(Cp);w(gr,"Enum",u,u,[za]);me(bf);w(ht,"Long",u,ho,[ho,za]);w(Co);w(Os,"JsArrayView",Os,Array);it(Yf,"Digit");w(br,"AbstractCollection",u,u,[$t]);w(Fn,"AbstractMutableCollection",u,br,[br,$t]);w(pi,"IteratorImpl");w(Ka,"ListIteratorImpl",u,pi);w(_e,"AbstractMutableList",u,Fn,[Fn,Un,$t]);w(Er,"SubList",u,_e);w(yn,"AbstractMap",u,u,[mr]);w(mo,"AbstractMutableMap",u,yn,[yn,mr]);w(yr,"AbstractMutableSet",u,Fn,[Fn,Ur,$t]);me(nh);w(Ht,"ArrayList",Rt,_e,[_e,Un,$t]);w(Dn,"HashMap",z_,mo,[mo,mr]);w(bn,"HashMapEntrySetBase",u,yr,[Ur,$t,yr]);w(Zl,"HashMapEntrySet",u,bn);w(qn,"HashSet",B_,yr,[yr,Ur,$t]);me(hh);w(Wr,"Itr");w(ou,"KeysItr",u,Wr);w(Ha,"EntriesItr",u,Wr);w(_i,"EntryRef",u,u,[_r]);function Jv(t){var e;t:{var n;if(et(t,$t)?n=t.l():n=!1,n){e=!0;break t}for(var r=t.h();r.i();){var a=r.j(),o=a,s;if(o!=null&&et(o,_r)?s=this.e6(o):s=!1,!s){e=!1;break t}}e=!0}return e}Ke(dh,"InternalMap");w(ke,"InternalHashMap",eu,u,[dh]);w(Va,"LinkedHashMap",vh,Dn,[Dn,mr]);w(Hr,"LinkedHashSet",su,qn,[qn,Ur,$t]);Ke(oa,"Continuation");w($a,"InterceptedCoroutine",u,u,[oa]);w(Re,"CoroutineImpl",u,$a,[$a,oa]);it(Xi,"CompletedContinuation",u,u,[oa]);w(lu,u,u,Re);w(wn,"Exception",mh,Error);w(Ue,"RuntimeException",xh,wn);w(mi,"IllegalArgumentException",bh,Ue);w(Yi,"IndexOutOfBoundsException",uu,Ue);w(Zi,"IllegalStateException",kh,Ue);w(ta,"UnsupportedOperationException",gi,Ue);w(ea,"NoSuchElementException",Ce,Ue);w(na,"Error",$h,Error);w(bi,"NumberFormatException",Eh,mi);w(ra,"ArithmeticException",Ih,Ue);w(Io,"ConcurrentModificationException",cu,Ue);w(qo,"NullPointerException",fu,Ue);w(Ao,"NoWhenBranchMatchedException",hu,Ue);w(To,"ClassCastException",du,Ue);Ke(Na,"KClass");w(dn,"KClassImpl",u,u,[Na]);it(wi,"NothingKClassImpl",u,dn);w(Hi,"ErrorKClass",Hi,u,[Na]);w(At,"PrimitiveKClassImpl",u,dn);w(go,"SimpleKClassImpl",u,dn);Ke(Po,"KProperty1");Ke(vu,"KProperty0");it(Vt,"PrimitiveClasses");w(kn,"StringBuilder",_u,u,[Ol]);me(jh);w(Ga,"Regex");w(mu,"sam$kotlin_Comparator$0");me(Vr);me(dm);me(Mo);w(Wn,"ArrayAsCollection",u,u,[$t]);it(se,"EmptyList",u,u,[Un]);it(ki,"EmptyIterator");w(ei,"IndexedValue");w(Oo,"IntIterator");w(Xa,"CharIterator");w(wr,"SequenceScope",u,u,u,[1]);w(kr,"SequenceBuilderIterator",kr,wr,[wr,oa],[1]);w(wu);w(jo);w(ku,"TransformingSequence");w(zo);w(Cu,"FilteringSequence");w(Fo);w(xu,"IndexingSequence");Ke(xi,"DropTakeSequence");w(Do);w(li,"TakeSequence",u,u,[xi]);w(Bo);w(Su,"TakeWhileSequence");w(Ko);w(ni,"DropSequence",u,u,[xi]);w(Uo);w($u,"DropWhileSequence");it(Za,"EmptySequence",u,u,[xi]);w(Ho);w(Br,"SubSequence",u,u,[xi]);it(Hn,"EmptySet",u,u,[Ur]);it(Gh,"Key");Ke(Im,"ContinuationInterceptor");it(to,"EmptyCoroutineContext");w(uo,"CoroutineSingletons",u,gr);me(Zh);w(Kn,"IntProgression");w(Kr,"IntRange",u,Kn);me(td);w(Sr,"CharProgression");w(xr,"CharRange",u,Sr);w(Qo,"IntProgressionIterator",u,Oo);w(Go,"CharProgressionIterator",u,Xa);me(Nu);me(Mm);w(no,"UnsafeLazyImpl");it(ld,"UNINITIALIZED_VALUE");me(Km);w($r,"Failure");w(el,"NotImplementedError",el,na);w(In,"Pair");function Ol(){}function za(){}function ho(){}function jl(){}i(jl).toString=function(){return"kotlin.Unit"};var ut;function zl(t){switch(t.length){case 0:return ia();case 1:return Ba(t[0]);default:return Fl(t)}}function Ps(t,e){return ff(t,e)>=0}function Xv(t){return t.length===0?Ci():new Dl(t)}function cf(t,e,n,r,a,o,s){return e=e===u?", ":e,n=n===u?"":n,r=r===u?"":r,a=a===u?-1:a,o=o===u?"...":o,s=s===u?null:s,Zv(t,_u(),e,n,r,a,o,s).toString()}function Fl(t){return Ua(wm(t))}function Yv(t){var e;switch(t.length){case 0:throw Qa("Array is empty.");case 1:e=t[0];break;default:throw Pt("Array has more than one element.")}return e}function ff(t,e){if(e==null){var n=0,r=t.length-1|0;if(n<=r)do{var a=n;if(n=n+1|0,t[a]==null)return a}while(n<=r)}else{var o=0,s=t.length-1|0;if(o<=s)do{var l=o;if(o=o+1|0,E(e,t[l]))return l}while(o<=s)}return-1}function Zv(t,e,n,r,a,o,s,l){n=n===u?", ":n,r=r===u?"":r,a=a===u?"":a,o=o===u?-1:o,s=s===u?"...":s,l=l===u?null:l,e.e(r);var c=0,f=0,h=t.length;t:for(;f<h;){var d=t[f];if(f=f+1|0,c=c+1|0,c>1&&e.e(n),o<0||c<=o)nd(e,d,l);else break t}return o>=0&&c>o&&e.e(s),e.e(a),e}function tp(t){return t.length-1|0}function ep(t,e){if(e==null){var n=t.length-1|0;if(0<=n)do{var r=n;if(n=n+-1|0,t[r]==null)return r}while(0<=n)}else{var a=t.length-1|0;if(0<=a)do{var o=a;if(a=a+-1|0,E(e,t[o]))return o}while(0<=a)}return-1}function np(t,e){for(var n=0,r=t.length;n<r;){var a=t[n];n=n+1|0,e.f(a)}return e}function Dl(t){this.g_1=t}i(Dl).h=function(){return kf(this.g_1)};function En(t,e,n,r,a,o,s){return e=e===u?", ":e,n=n===u?"":n,r=r===u?"":r,a=a===u?-1:a,o=o===u?"...":o,s=s===u?null:s,rp(t,_u(),e,n,r,a,o,s).toString()}function rp(t,e,n,r,a,o,s,l){n=n===u?", ":n,r=r===u?"":r,a=a===u?"":a,o=o===u?-1:o,s=s===u?"...":s,l=l===u?null:l,e.e(r);var c=0,f=t.h();t:for(;f.i();){var h=f.j();if(c=c+1|0,c>1&&e.e(n),o<0||c<=o)nd(e,h,l);else break t}return o>=0&&c>o&&e.e(s),e.e(a),e}function hf(t){return t.l()?null:t.k(0)}function Ki(t){if(t.l())throw Qa("List is empty.");return t.k(0)}function ip(t){return vf(sp(t))}function ap(t){return new Ul(t)}function op(t){return t.l()?null:t.k(t.m()-1|0)}function df(t,e){if(et(e,$t)){var n=Ui(t.m()+e.m()|0);return n.q(t),n.q(e),n}else{var r=Ua(t);return Lo(r,e),r}}function ya(t){if(t.l())throw Qa("List is empty.");return t.k(Ja(t))}function Bl(t){return Ua(t)}function Kl(t,e){if(et(t,$t)){if(t.m()<=1)return vf(t);var n=gn(t),r=Ji(n)?n:S();return y_(r,e),Jl(r)}var a=pf(t);return E_(a,e),a}function vf(t){if(et(t,$t)){var e;switch(t.m()){case 0:e=ia();break;case 1:var n;et(t,Un)?n=t.k(0):n=t.h().j(),e=Ba(n);break;default:e=Bl(t);break}return e}return gm(pf(t))}function sp(t){var e;return et(t,$t)?e=l0(t):e=vo(t,su()),e}function pf(t){return et(t,$t)?Bl(t):vo(t,Rt())}function vo(t,e){for(var n=t.h();n.i();){var r=n.j();e.f(r)}return e}function lp(t){if(et(t,$t)){var e;switch(t.m()){case 0:e=Eu();break;case 1:var n;et(t,Un)?n=t.k(0):n=t.h().j(),e=th(n);break;default:e=vo(t,f0(t.m()));break}return e}return Em(vo(t,su()))}function Ul(t){this.r_1=t}i(Ul).h=function(){return this.r_1.h()};function up(t,e){return ed.s(t,e,-1)}function ba(t,e){return t>e?e:t}function po(t,e){return t<e?e:t}function Wl(t){return dp(t,Rt())}function Hl(t,e){var n=new xu(t),r=new Cu(n,!0,vp(e));return new ku(r,pp)}function _f(t,e){if(!(e>=0)){var n="Requested element count "+e+" is less than zero.";throw Pt(j(n))}var r;return e===0?r=Ci():et(t,xi)?r=t.t(e):r=new li(t,e),r}function cp(t,e){return new Su(t,e)}function fp(t,e){var n;return et(t,xi)?n=t.u(e):n=new ni(t,e),n}function hp(t,e){return new $u(t,e)}function mf(t){var e=t.h();return e.i()?e.j():null}function gf(t){var e=t.h();if(!e.i())return ia();var n=e.j();if(!e.i())return Ba(n);var r=Rt();for(r.f(n);e.i();)r.f(e.j());return r}function dp(t,e){for(var n=t.h();n.i();){var r=n.j();e.f(r)}return e}function vp(t){return function(e){return t(e.v_1,e.w_1)}}function pp(t){return t.w_1}function Ze(t,e){return 0<=e&&e<=(A(t)-1|0)?L(t,e):null}function fc(t,e){if(!(e>=0)){var n="Requested character count "+e+" is less than zero.";throw Pt(j(n))}return un(t,ba(e,A(t)),A(t))}function _p(t){return mp(t,Ui(A(t)))}function mp(t,e){for(var n=0;n<A(t);){var r=L(t,n);n=n+1|0,e.f(new nt(r))}return e}function gp(t){var e=t&65535;return e}function ee(t,e){return t-e|0}function yp(t,e){return ee(t.x_1,e instanceof nt?e.x_1:S())}function ha(t,e){return t-e|0}function Zr(t,e){return new xr(t,e)}function ze(t){return t}function Kt(t){return String.fromCharCode(t)}function bp(t,e){return e instanceof nt?t===e.x_1:!1}function wp(t){return t}function yf(){Rs=this,this.y_1=0,this.z_1=65535,this.a1_1=55296,this.b1_1=56319,this.c1_1=56320,this.d1_1=57343,this.e1_1=55296,this.f1_1=57343,this.g1_1=2,this.h1_1=16}var Rs;function kp(){return Rs==null&&new yf,Rs}function nt(t){kp(),this.x_1=t}i(nt).i1=function(t){return ee(this.x_1,t)};i(nt).d=function(t){return yp(this,t)};i(nt).toString=function(){return Kt(this.x_1)};i(nt).equals=function(t){return bp(this.x_1,t)};i(nt).hashCode=function(){return wp(this.x_1)};function Un(){}function $t(){}function _r(){}function mr(){}function Ur(){}function Cp(){}function gr(t,e){this.v1_1=t,this.w1_1=e}i(gr).x1=function(t){return qf(this.w1_1,t.w1_1)};i(gr).d=function(t){return this.x1(t instanceof gr?t:S())};i(gr).equals=function(t){return this===t};i(gr).hashCode=function(){return Kp(this)};i(gr).toString=function(){return this.v1_1};function Tt(t){var e=t==null?null:j(t);return e==null?"null":e}function bf(){Ms=this,this.y1_1=new ht(0,-2147483648),this.z1_1=new ht(-1,2147483647),this.a2_1=8,this.b2_1=64}var Ms;function xp(){return Ms==null&&new bf,Ms}function ht(t,e){xp(),ho.call(this),this.c2_1=t,this.d2_1=e}i(ht).e2=function(t){return So(this,t)};i(ht).d=function(t){return this.e2(t instanceof ht?t:S())};i(ht).f2=function(t){return _o(this,t)};i(ht).g2=function(t){return Zp(this,t)};i(ht).h2=function(){return this.i2().f2(new ht(1,0))};i(ht).i2=function(){return new ht(~this.c2_1,~this.d2_1)};i(ht).j2=function(){return this.c2_1};i(ht).k2=function(){return Ca(this)};i(ht).toString=function(){return zs(this,10)};i(ht).equals=function(t){var e;return t instanceof ht?e=$n(this,t):e=!1,e};i(ht).hashCode=function(){return n_(this)};i(ht).valueOf=function(){return this.k2()};function wf(t){for(var e=1,n=[],r=0,a=t.length;r<a;){var o=t[r];r=r+1|0;var s=e,l=o.prototype.$imask$,c=l==null?o.$imask$:l;c!=null&&(n.push(c),s=c.length);var f=o.$metadata$.iid,h;f==null?h=null:h=Sp(f);var d=h;d!=null&&(n.push(d),s=Math.max(s,d.length)),s>e&&(e=s)}return $p(e,n)}function Sp(t){var e=t>>5,n=new Int32Array(e+1|0),r=t&31,a=1<<r;return n[e]=n[e]|a,n}function $p(t,e){for(var n=0,r=new Int32Array(t);n<t;){for(var a=n,o=0,s=0,l=e.length;s<l;){var c=e[s];s=s+1|0,a<c.length&&(o=o|c[a])}r[a]=o,n=n+1|0}return r}function Ep(t,e){var n=e>>5;if(n>t.length)return!1;var r=e&31,a=1<<r;return!!(t[n]&a)}function Zn(t,e){var n=0,r=t.length-1|0;if(n<=r)do{var a=n;n=n+1|0,t[a]=e}while(a!==r);return t}function kf(t){return new Co(t)}function Np(t){var e="CharArray",n=new Uint16Array(t);return n.$type$=e,n}function Co(t){this.m2_1=t,this.l2_1=0}i(Co).i=function(){return this.l2_1!==this.m2_1.length};i(Co).j=function(){var t;if(this.l2_1!==this.m2_1.length){var e=this.l2_1;this.l2_1=e+1|0,t=this.m2_1[e]}else throw Qa(""+this.l2_1);return t};function ks(){return Qi(),Cf}var Cf;function xf(){return Qi(),Sf}var Sf;function Ls(){return Qi(),$f}var $f;function Ef(){return Qi(),Nf}var Nf;function Ip(){return Qi(),If}var If;function qp(t){return Qi(),(t|0)===t?zf(t):(xf()[0]=t,gt(Ls()[Ip()],31)+Ls()[Ef()]|0)}var hc;function Qi(){hc||(hc=!0,Cf=new ArrayBuffer(8),Sf=new Float64Array(ks()),new Float32Array(ks()),$f=new Int32Array(ks()),xf()[0]=-1,Nf=Ls()[0]!==0?1:0,If=1-Ef()|0)}function L(t,e){var n;if(Vl(t)){var r=t.charCodeAt(e),a,o=0;if(r<ze(o))a=!0;else{var s=65535;a=r>ze(s)}if(a)throw Pt("Invalid Char code: "+r);n=Sa(r)}else n=t.b(e);return n}function Vl(t){return typeof t=="string"}function A(t){var e;return Vl(t)?e=t.length:e=t.a(),e}function un(t,e,n){var r;return Vl(t)?r=t.substring(e,n):r=t.c(e,n),r}function Ap(t,e){var n=t,r=e;if(n===r)return!0;if(n==null||r==null||!Df(r)||n.length!=r.length)return!1;var a=0,o=n.length;if(a<o)do{var s=a;if(a=a+1|0,!E(n[s],r[s]))return!1}while(a<o);return!0}function Tp(t){var e=t;if(e==null)return 0;var n=1,r=0,a=e.length;if(r<a)do{var o=r;r=r+1|0,n=gt(n,31)+ot(e[o])|0}while(r<a);return n}function Pp(t){return cf(t,", ","[","]",u,u,Rp)}function Rp(t){return j(t)}function Mp(t){var e=Op(t),n=jp(t),r=zp(),a=Fp(),o=Dp();return Lp(e,n,r,a,o)}function Lp(t,e,n,r,a){var o=J(i(Os));return new Proxy(o,{get:function(s,l,c){if(l==="length")return t();var f=typeof l,h=f==="string"||f==="number"?+l:void 0;return isNaN(h)?s[l]:e(h)},has:function(s,l){return!isNaN(l)&&l<t()},set:function(s,l,c){if(l==="length"){var f=t(),h=d==="string"||d==="number"?+l:void 0;if(isNaN(h))throw new RangeError("invalid array length");return h<f?r(f-h):a(h-f),!0}var d=typeof l,v=d==="string"||d==="number"?+l:void 0;return isNaN(v)?!1:(n(v,c),!0)}})}function Ql(){throw gi()}function Os(){Array.call(this)}function Op(t){return function(){return t.m()}}function jp(t){return function(e){return t.k(e)}}function zp(){var t=function(){return Ql(),ut};return t.callableName="UNSUPPORTED_OPERATION",t}function Fp(){var t=function(){return Ql(),ut};return t.callableName="UNSUPPORTED_OPERATION",t}function Dp(){var t=function(){return Ql(),ut};return t.callableName="UNSUPPORTED_OPERATION",t}function qf(t,e){var n;switch(typeof t){case"number":var r;typeof e=="number"?r=dc(t,e):e instanceof ht?r=dc(t,e.k2()):r=vc(t,e),n=r;break;case"string":case"boolean":n=vc(t,e);break;default:n=Bp(t,e);break}return n}function dc(t,e){var n;if(t<e)n=-1;else if(t>e)n=1;else if(t===e){var r;if(t!==0)r=0;else{var a=1/t,o;a===1/e?o=0:a<0?o=-1:o=1,r=o}n=r}else t!==t?n=e!==e?0:1:n=-1;return n}function vc(t,e){return t<e?-1:t>e?1:0}function Bp(t,e){return t.d(e)}function Kp(t){return js(t)}function js(t){if(!("kotlinHashCodeValue$"in t)){var e=Af(),n=new Object;n.value=e,n.enumerable=!1,Object.defineProperty(t,"kotlinHashCodeValue$",n)}return t.kotlinHashCodeValue$}function Af(){return Math.random()*4294967296|0}function J(t){return t=t===u?null:t,Object.create(t)}function K(t,e,n,r){return Object.defineProperty(t,e,{configurable:!0,get:n,set:r})}function E(t,e){if(t==null)return e==null;if(e==null)return!1;if(typeof t=="object"&&typeof t.equals=="function")return t.equals(e);if(t!==t)return e!==e;if(typeof t=="number"&&typeof e=="number"){var n;if(t===e){var r;if(t!==0)r=!0;else{var a=1/t;r=a===1/e}n=r}else n=!1;return n}return t===e}function ot(t){if(t==null)return 0;var e=typeof t,n;switch(e){case"object":n=typeof t.hashCode=="function"?t.hashCode():js(t);break;case"function":n=js(t);break;case"number":n=qp(t);break;case"boolean":n=wa(t);break;case"string":n=Qe(String(t));break;case"bigint":n=Up(t);break;case"symbol":n=Wp(t);break;default:n=function(){throw new Error("Unexpected typeof `"+e+"`")}();break}return n}function j(t){var e;return t==null?e="null":Df(t)?e="[...]":typeof t.toString!="function"?e=Hp(t):e=t.toString(),e}function wa(t){return t?1231:1237}function Qe(t){var e=0,n=t.length,r=0,a=n-1|0;if(r<=a)do{var o=r;r=r+1|0;var s=t.charCodeAt(o);e=gt(e,31)+s|0}while(o!==a);return e}function Up(t){for(var e=BigInt(32),n=BigInt(4294967295),r=t<0?-t:t,a=0,o=t<0?-1:1;r!=0;){var s=Number(r&n);a=gt(31,a)+s|0,r=r>>e}return gt(a,o)}function Wp(t){var e=Vp(t)?Qp():Gp(),n=e.get(t);if(n!==u)return n;var r=Af();return e.set(t,r),r}function Hp(t){return Object.prototype.toString.call(t)}function Vp(t){return Symbol.keyFor(t)!=u}function Qp(){return Cs===u&&(Cs=new Map),Cs}function Gp(){return xs===u&&(xs=new WeakMap),xs}var Cs,xs;function B(t,e){Error.captureStackTrace!=null?Error.captureStackTrace(t,e):t.stack=new Error().stack}function i(t){return t.prototype}function xo(t,e,n){Error.call(t),Jp(t,e,n)}function Jp(t,e,n){var r=Xf(Object.getPrototypeOf(t));if(!(r&1)){var a;if(e==null){var o;if(e!==null){var s=null;o=s==null?u:s}else o=u;a=o}else a=e;t.message=a}r&2||(t.cause=n),t.name=Object.getPrototypeOf(t).constructor.name}function Pe(t){var e;return t==null?Xp():e=t,e}function Xp(){throw fu()}function Nn(){throw hu()}function S(){throw du()}function er(){return Et(),Tf}var Tf;function so(){return Et(),Pf}var Pf;function pc(){return Et(),Rf}var Rf;function Yp(){return Et(),Mf}var Mf;function On(){return Et(),Lf}var Lf;function _c(){return Et(),Of}var Of;function So(t,e){if(Et(),$n(t,e))return 0;var n=mn(t),r=mn(e);return n&&!r?-1:!n&&r?1:mn(ka(t,e))?-1:1}function _o(t,e){Et();var n=t.d2_1>>>16|0,r=t.d2_1&65535,a=t.c2_1>>>16|0,o=t.c2_1&65535,s=e.d2_1>>>16|0,l=e.d2_1&65535,c=e.c2_1>>>16|0,f=e.c2_1&65535,h=0,d=0,v=0,y=0;return y=y+(o+f|0)|0,v=v+(y>>>16|0)|0,y=y&65535,v=v+(a+c|0)|0,d=d+(v>>>16|0)|0,v=v&65535,d=d+(r+l|0)|0,h=h+(d>>>16|0)|0,d=d&65535,h=h+(n+s|0)|0,h=h&65535,new ht(v<<16|y,h<<16|d)}function ka(t,e){return Et(),_o(t,e.h2())}function Pr(t,e){if(Et(),ti(t))return er();if(ti(e))return er();if($n(t,On()))return mc(e)?On():er();if($n(e,On()))return mc(t)?On():er();if(mn(t)){var n;return mn(e)?n=Pr(Ye(t),Ye(e)):n=Ye(Pr(Ye(t),e)),n}else if(mn(e))return Ye(Pr(t,Ye(e)));if(gc(t,_c())&&gc(e,_c()))return xa(Ca(t)*Ca(e));var r=t.d2_1>>>16|0,a=t.d2_1&65535,o=t.c2_1>>>16|0,s=t.c2_1&65535,l=e.d2_1>>>16|0,c=e.d2_1&65535,f=e.c2_1>>>16|0,h=e.c2_1&65535,d=0,v=0,y=0,_=0;return _=_+gt(s,h)|0,y=y+(_>>>16|0)|0,_=_&65535,y=y+gt(o,h)|0,v=v+(y>>>16|0)|0,y=y&65535,y=y+gt(s,f)|0,v=v+(y>>>16|0)|0,y=y&65535,v=v+gt(a,h)|0,d=d+(v>>>16|0)|0,v=v&65535,v=v+gt(o,f)|0,d=d+(v>>>16|0)|0,v=v&65535,v=v+gt(s,c)|0,d=d+(v>>>16|0)|0,v=v&65535,d=d+(((gt(r,h)+gt(a,f)|0)+gt(o,c)|0)+gt(s,l)|0)|0,d=d&65535,new ht(y<<16|_,d<<16|v)}function Zp(t,e){if(Et(),ti(e))throw gh("division by zero");if(ti(t))return er();if($n(t,On())){if($n(e,so())||$n(e,pc()))return On();if($n(e,On()))return so();var n=e_(t,1),r=t_(n.g2(e),1);if($n(r,er()))return mn(e)?so():pc();var a=ka(t,Pr(e,r));return _o(r,a.g2(e))}else if($n(e,On()))return er();if(mn(t)){var o;return mn(e)?o=Ye(t).g2(Ye(e)):o=Ye(Ye(t).g2(e)),o}else if(mn(e))return Ye(t.g2(Ye(e)));for(var s=er(),l=t;i_(l,e);){for(var c=Ca(l)/Ca(e),f=Math.max(1,Math.floor(c)),h=Math.ceil(Math.log(f)/Math.LN2),d=h<=48?1:Math.pow(2,h-48),v=xa(f),y=Pr(v,e);mn(y)||r_(y,l);)f=f-d,v=xa(f),y=Pr(v,e);ti(v)&&(v=so()),s=_o(s,v),l=ka(l,y)}return s}function t_(t,e){Et();var n=e&63;return new ht(t.c2_1<<n,t.d2_1<<n|(t.c2_1>>>(32-n|0)|0))}function e_(t,e){Et();var n=e&63;return new ht(t.c2_1>>>n|0|t.d2_1<<(32-n|0),t.d2_1>>n)}function Ca(t){return Et(),t.d2_1*4294967296+a_(t)}function zs(t,e){if(Et(),ti(t))return"0";if(mn(t))if($n(t,On())){var n=_a(e),r=t.g2(n),a=ka(Pr(r,n),t).j2(),o=zs(r,e);return o+a.toString(e)}else return"-"+zs(Ye(t),e);for(var s=9,l=xa(Math.pow(e,s)),c=t,f="";;){var h=c.g2(l),d=ka(c,Pr(h,l)).j2(),v=d.toString(e);if(c=h,ti(c))return v+f;for(;v.length<s;)v="0"+v;f=v+f}}function $n(t,e){return Et(),t.d2_1===e.d2_1&&t.c2_1===e.c2_1}function n_(t){return Et(),t.c2_1^t.d2_1}function _a(t){return Et(),new ht(t,t<0?-1:0)}function mn(t){return Et(),t.d2_1<0}function ti(t){return Et(),t.d2_1===0&&t.c2_1===0}function mc(t){return Et(),(t.c2_1&1)===1}function Ye(t){return Et(),t.h2()}function gc(t,e){return Et(),So(t,e)<0}function xa(t){if(Et(),S_(t))return er();if(t<=-9223372036854776e3)return On();if(t+1>=9223372036854776e3)return Yp();if(t<0)return Ye(xa(-t));var e=4294967296,n=t%e|0,r=t/e|0;return new ht(n,r)}function r_(t,e){return Et(),So(t,e)>0}function i_(t,e){return Et(),So(t,e)>=0}function a_(t){return Et(),t.c2_1>=0?t.c2_1:4294967296+t.c2_1}var yc;function Et(){yc||(yc=!0,Tf=_a(0),Pf=_a(1),Rf=_a(-1),Mf=new ht(-1,2147483647),Lf=new ht(0,-2147483648),Of=_a(16777216))}function jf(t,e,n,r,a,o){var s=u,l=t==="interface"?o_():u;return{kind:t,simpleName:e,associatedObjectKey:r,associatedObjects:a,suspendArity:o,$kClass$:s,defaultConstructor:n,iid:l}}function o_(){return da===u&&(da=0),da=da+1|0,da}var da;function Gl(t,e,n,r,a,o,s,l,c){a!=null&&(e.prototype=Object.create(a.prototype),e.prototype.constructor=e);var f=jf(t,n,r,l,c,s);if(e.$metadata$=f,o!=null){var h=E(f.iid,u)?e.prototype:e;h.$imask$=wf(o)}}function w(t,e,n,r,a,o,s,l){var c="class";Gl(c,t,e,n,r,a,o,s,l)}function it(t,e,n,r,a,o,s,l){var c="object";Gl(c,t,e,n,r,a,o,s,l)}function Ke(t,e,n,r,a,o,s,l){var c="interface";Gl(c,t,e,n,r,a,o,s,l)}function Fa(t,e,n,r){w(t,"Lambda",u,e,n,r,u,u)}function me(t,e,n,r){it(t,"Companion",u,e,n,r,u,u)}function s_(t,e,n,r,a){return jf("class",t,e,n,r,a)}function tr(t){var e=t.length,n=Array(e),r=0,a=e-1|0;if(r<=a)do{var o=r;r=r+1|0;var s=t[o];s!=null&&Ji(s)?n[o]=s:n[o]=[].slice.call(s)}while(o!==a);return[].concat.apply([],n)}function zf(t){var e;return t instanceof ht?e=t.j2():e=l_(t),e}function l_(t){var e;return t>2147483647?e=2147483647:t<-2147483648?e=-2147483648:e=t|0,e}function u_(t){return t<<16>>16}function Sa(t){var e=zf(t),n=u_(e);return gp(n)}function c_(t,e){return new Kr(t,e)}function f_(){return Gi(),Ff}var Ff;function zi(){return Gi(),s_(u,u,u,u,u)}function Da(t,e,n,r,a){return Gi(),r.get=r,r.set=a,r.callableName=t,h_(r,d_(e,a),v_(r,n))}function h_(t,e,n){return Gi(),t.$metadata$=e,t.constructor=t,t.$imask$=n,t}function d_(t,e){return Gi(),f_()[t][e==null?0:1]}function v_(t,e){Gi();var n=t.$imask$,r;if(n==null){var a=[e];r=wf(a)}else r=n;return r}var bc;function Gi(){if(!bc){bc=!0;var t=[zi(),zi()],e=[zi(),zi()];Ff=[t,e,[zi(),zi()]]}}function Df(t){return $o(t)||Gv(t)}function $o(t){return Array.isArray(t)}function et(t,e){return p_(t,e.$metadata$.iid)}function p_(t,e){var n=t.$imask$,r;if(n==null)return!1;r=n;var a=r;return Ep(a,e)}function Ji(t){var e;return $o(t)?e=!t.$type$:e=!1,e}function Bf(t){var e;return typeof t=="number"?e=!0:e=t instanceof ht,e}function __(t){var e=typeof t;return e==="string"||e==="boolean"||Bf(t)||et(t,za)}function de(t){return typeof t=="string"||et(t,Ol)}function Kf(t){return $o(t)&&t.$type$==="BooleanArray"}function Uf(t){return t instanceof Int8Array}function Wf(t){return t instanceof Int16Array}function Hf(t){var e;return t instanceof Uint16Array?e=t.$type$==="CharArray":e=!1,e}function Vf(t){return t instanceof Int32Array}function Qf(t){return t instanceof Float32Array}function Gf(t){return $o(t)&&t.$type$==="LongArray"}function Jf(t){return t instanceof Float64Array}function Xf(t){var e=t.constructor,n=e==null?null:e.$metadata$,r=n==null?null:n.errorInfo;if(r!=null)return r;var a=0;if(wc(t,"message")&&(a=a|1),wc(t,"cause")&&(a=a|2),a!==3){var o=m_(t);o!=Error.prototype&&(a=a|Xf(o))}return n!=null&&(n.errorInfo=a),a}function wc(t,e){return t.hasOwnProperty(e)}function m_(t){return Object.getPrototypeOf(t)}var u;function g_(t,e,n,r){n=n===u?0:n,r=r===u?t.length:r,vn.o2(n,r,t.length),t.fill(e,n,r)}function Fs(t,e){return Ap(t,e)}function Ds(t){return Tp(t)}function Jl(t){return new Ht(t)}function y_(t,e){t.length>1&&rh(t,e)}function b_(t,e){if(!(e>=0)){var n="Invalid new array size: "+e+".";throw Pt(j(n))}return A0(t,new Int32Array(e))}function w_(t,e){if(!(e>=0)){var n="Invalid new array size: "+e+".";throw Pt(j(n))}return T0(t,e,null)}function Xl(t){var e=(t.m()/2|0)-1|0;if(e<0)return ut;var n=Ja(t),r=0;if(r<=e)do{var a=r;r=r+1|0;var o=t.k(a);t.p2(a,t.k(n)),t.p2(n,o),n=n-1|0}while(a!==e)}function k_(t){var e=ze(t),n=C_(kc().q2_1,e),r=e-kc().q2_1[n]|0;return r<10?r:-1}function C_(t,e){for(var n=0,r=t.length-1|0,a=-1,o=0;n<=r;)if(a=(n+r|0)/2|0,o=t[a],e>o)n=a+1|0;else{if(e===o)return a;r=a-1|0}return a-(e<o?1:0)|0}function Yf(){Bs=this;var t=this;t.q2_1=new Int32Array([48,1632,1776,1984,2406,2534,2662,2790,2918,3046,3174,3302,3430,3558,3664,3792,3872,4160,4240,6112,6160,6470,6608,6784,6800,6992,7088,7232,7248,42528,43216,43264,43472,43504,43600,44016,65296])}var Bs;function kc(){return Bs==null&&new Yf,Bs}function x_(t){var e=ze(t);return(9<=e?e<=13:!1)||(28<=e?e<=32:!1)||e===160||e>4096&&(e===5760||(8192<=e?e<=8202:!1)||e===8232||e===8233||e===8239||e===8287||e===12288)}function S_(t){return t!==t}function $_(t){var e;return t===0?e=0:e=1<<(31-lf(t)|0),e}function Zf(t){return pm(t)}function Ba(t){return mm([t])}function gn(t){var e;return t.toArray!==void 0?e=t.toArray():e=Zf(t),e}function Eo(t){return t<0&&km(),t}function E_(t,e){N_(t,e)}function th(t){return $m([t])}function N_(t,e){if(t.m()<=1)return ut;var n=gn(t);rh(n,e);var r=0,a=n.length;if(r<a)do{var o=r;r=r+1|0,t.p2(o,n[o])}while(r<a)}function Fn(){br.call(this)}i(Fn).q=function(t){this.r2();for(var e=!1,n=t.h();n.i();){var r=n.j();this.f(r)&&(e=!0)}return e};i(Fn).toJSON=function(){return this.toArray()};i(Fn).r2=function(){};function pi(t){this.u2_1=t,this.s2_1=0,this.t2_1=-1}i(pi).i=function(){return this.s2_1<this.u2_1.m()};i(pi).j=function(){if(!this.i())throw Ce();var t=this,e=this.s2_1;return this.s2_1=e+1|0,t.t2_1=e,this.u2_1.k(this.t2_1)};i(pi).v2=function(){if(this.t2_1===-1){var t="Call next() or previous() before removing element from the iterator.";throw Dr(j(t))}this.u2_1.x2(this.t2_1),this.s2_1=this.t2_1,this.t2_1=-1};function Ka(t,e){this.b3_1=t,pi.call(this,t),vn.c3(e,this.b3_1.m()),this.s2_1=e}i(Ka).d3=function(){return this.s2_1>0};i(Ka).e3=function(){return this.s2_1};i(Ka).f3=function(){if(!this.d3())throw Ce();var t=this;return this.s2_1=this.s2_1-1|0,t.t2_1=this.s2_1,this.b3_1.k(this.t2_1)};function Er(t,e,n){_e.call(this),this.h3_1=t,this.i3_1=e,this.j3_1=0,vn.o2(this.i3_1,n,this.h3_1.m()),this.j3_1=n-this.i3_1|0}i(Er).k3=function(t,e){vn.c3(t,this.j3_1),this.h3_1.k3(this.i3_1+t|0,e),this.j3_1=this.j3_1+1|0};i(Er).k=function(t){return vn.l3(t,this.j3_1),this.h3_1.k(this.i3_1+t|0)};i(Er).x2=function(t){vn.l3(t,this.j3_1);var e=this.h3_1.x2(this.i3_1+t|0);return this.j3_1=this.j3_1-1|0,e};i(Er).p2=function(t,e){return vn.l3(t,this.j3_1),this.h3_1.p2(this.i3_1+t|0,e)};i(Er).m3=function(t,e){this.h3_1.m3(this.i3_1+t|0,this.i3_1+e|0),this.j3_1=this.j3_1-(e-t|0)|0};i(Er).m=function(){return this.j3_1};i(Er).r2=function(){return this.h3_1.r2()};function _e(){Fn.call(this),this.w2_1=0}i(_e).f=function(t){return this.r2(),this.k3(this.m(),t),!0};i(_e).n3=function(){this.r2(),this.m3(0,this.m())};i(_e).h=function(){return new pi(this)};i(_e).j1=function(t){return this.l1(t)>=0};i(_e).l1=function(t){var e;t:{for(var n=0,r=this.h();r.i();){var a=r.j();if(E(a,t)){e=n;break t}n=n+1|0}e=-1}return e};i(_e).m1=function(t){var e;t:{for(var n=this.o1(this.m());n.d3();){var r=n.f3();if(E(r,t)){e=n.e3();break t}}e=-1}return e};i(_e).n1=function(){return this.o1(0)};i(_e).o1=function(t){return new Ka(this,t)};i(_e).p1=function(t,e){return new Er(this,t,e)};i(_e).m3=function(t,e){var n=this.o1(t),r=e-t|0,a=0;if(a<r)do a=a+1|0,n.j(),n.v2();while(a<r)};i(_e).equals=function(t){return t===this?!0:t!=null&&et(t,Un)?vn.o3(this,t):!1};i(_e).hashCode=function(){return vn.p3(this)};function mo(){yn.call(this),this.s3_1=null,this.t3_1=null}function yr(){Fn.call(this)}i(yr).equals=function(t){return t===this?!0:t!=null&&et(t,Ur)?yu.y3(this,t):!1};i(yr).hashCode=function(){return yu.z3(this)};function eh(t){if(!(t>=0)){var e="capacity must be non-negative.";throw Pt(j(e))}return Zn(Array(t),null)}function Cc(t,e,n){t.fill(null,e,n)}function xc(t,e){return w_(t,e)}function nh(){Ks=this;var t=this,e=Ui(0);e.p_1=!0,t.a4_1=e}var Ks;function I_(){return Ks==null&&new nh,Ks}function q_(t){var e=[];return Ht.call(t,e),t}function Rt(){return q_(J(i(Ht)))}function A_(t,e){var n=[];if(Ht.call(e,n),!(t>=0)){var r="Negative initial capacity: "+t;throw Pt(j(r))}return e}function Ui(t){return A_(t,J(i(Ht)))}function T_(t,e){var n=gn(t);return Ht.call(e,n),e}function Ua(t){return T_(t,J(i(Ht)))}function P_(t,e){var n=t.m();return t.o_1.length=t.m()+e|0,n}function Yl(t,e){return vn.l3(e,t.m()),e}function R_(t,e){return vn.c3(e,t.m()),e}function Ht(t){I_(),_e.call(this),this.o_1=t,this.p_1=!1}i(Ht).m=function(){return this.o_1.length};i(Ht).k=function(t){var e=this.o_1[Yl(this,t)];return e==null||e!=null?e:S()};i(Ht).p2=function(t,e){this.r2(),Yl(this,t);var n=this.o_1[t];this.o_1[t]=e;var r=n;return r==null||r!=null?r:S()};i(Ht).f=function(t){return this.r2(),this.o_1.push(t),this.w2_1=this.w2_1+1|0,!0};i(Ht).k3=function(t,e){this.r2(),this.o_1.splice(R_(this,t),0,e),this.w2_1=this.w2_1+1|0};i(Ht).q=function(t){if(this.r2(),t.l())return!1;for(var e=P_(this,t.m()),n=0,r=t.h();r.i();){var a=r.j(),o=n;n=o+1|0;var s=Eo(o);this.o_1[e+s|0]=a}return this.w2_1=this.w2_1+1|0,!0};i(Ht).x2=function(t){this.r2(),Yl(this,t),this.w2_1=this.w2_1+1|0;var e;return t===Ja(this)?e=this.o_1.pop():e=this.o_1.splice(t,1)[0],e};i(Ht).m3=function(t,e){this.r2(),this.w2_1=this.w2_1+1|0,this.o_1.splice(t,e-t|0)};i(Ht).n3=function(){this.r2();var t=this;t.o_1=[],this.w2_1=this.w2_1+1|0};i(Ht).l1=function(t){return ff(this.o_1,t)};i(Ht).m1=function(t){return ep(this.o_1,t)};i(Ht).toString=function(){return Pp(this.o_1)};i(Ht).b4=function(){return[].slice.call(this.o_1)};i(Ht).toArray=function(){return this.b4()};i(Ht).r2=function(){if(this.p_1)throw gi()};var lo;function rh(t,e){if(M_()){var n=O_(e);t.sort(n)}else L_(t,0,tp(t),e)}function M_(){var t=lo;if(t!=null)return t;lo=!1;var e=[],n=0;if(n<600)do{var r=n;n=n+1|0,e.push(r)}while(n<600);var a=j_;e.sort(a);var o=1,s=e.length;if(o<s)do{var l=o;o=o+1|0;var c=e[l-1|0],f=e[l];if((c&3)===(f&3)&&c>=f)return!1}while(o<s);return lo=!0,!0}function L_(t,e,n,r){var a=t.length,o=Zn(Array(a),null),s=Us(t,o,e,n,r);if(s!==t){var l=e;if(l<=n)do{var c=l;l=l+1|0,t[c]=s[c]}while(c!==n)}}function Us(t,e,n,r,a){if(n===r)return t;var o=(n+r|0)/2|0,s=Us(t,e,n,o,a),l=Us(t,e,o+1|0,r,a),c=s===e?t:e,f=n,h=o+1|0,d=n;if(d<=r)do{var v=d;if(d=d+1|0,f<=o&&h<=r){var y=s[f],_=l[h];a.compare(y,_)<=0?(c[v]=y,f=f+1|0):(c[v]=_,h=h+1|0)}else f<=o?(c[v]=s[f],f=f+1|0):(c[v]=l[h],h=h+1|0)}while(v!==r);return c}function O_(t){return function(e,n){return t.compare(e,n)}}function j_(t,e){return(t&3)-(e&3)|0}function ih(t,e){return mo.call(e),Dn.call(e),e.g4_1=t,e}function ah(t){return ih(eu(),t),t}function z_(){return ah(J(i(Dn)))}function F_(t,e,n){return ih(ch(t,e),n),n}function D_(t,e){return F_(t,1,e),e}i(Dn).s1=function(t){return this.g4_1.i4(t)};i(Dn).u1=function(){var t=this.h4_1,e;if(t==null){var n=new Zl(this.g4_1);this.h4_1=n,e=n}else e=t;return e};i(Dn).t1=function(t){return this.g4_1.t1(t)};i(Dn).u3=function(t,e){return this.g4_1.u3(t,e)};i(Dn).m=function(){return this.g4_1.m()};function Dn(){this.h4_1=null}function Zl(t){bn.call(this,t)}i(Zl).h=function(){return this.k4_1.l4()};function bn(t){yr.call(this),this.k4_1=t}i(bn).m=function(){return this.k4_1.m()};i(bn).l=function(){return this.k4_1.m()===0};i(bn).m4=function(t){return this.k4_1.o4(t)};i(bn).j1=function(t){return t!=null&&et(t,_r)?this.m4(t!=null&&et(t,_r)?t:S()):!1};i(bn).n4=function(t){throw gi()};i(bn).f=function(t){return this.n4(t!=null&&et(t,_r)?t:S())};i(bn).q=function(t){throw gi()};i(bn).k1=function(t){return this.k4_1.p4(t)};i(bn).r2=function(){return this.k4_1.q4()};function tu(t,e){return yr.call(e),qn.call(e),e.r4_1=t,e}function oh(t){return tu(eu(),t),t}function B_(){return oh(J(i(qn)))}function K_(t,e){tu(V_(t.m()),e);for(var n=t.h();n.i();){var r=n.j();e.r4_1.u3(r,!0)}return e}function sh(t,e,n){return tu(ch(t,e),n),n}function U_(t,e){return sh(t,1,e),e}function W_(t){return U_(t,J(i(qn)))}i(qn).f=function(t){return this.r4_1.u3(t,!0)==null};i(qn).j1=function(t){return this.r4_1.i4(t)};i(qn).l=function(){return this.r4_1.m()===0};i(qn).h=function(){return this.r4_1.s4()};i(qn).m=function(){return this.r4_1.m()};function qn(){}function lh(t,e){return $_(gt(po(e,1),3))}function uh(t,e){return lf(e)+1|0}function H_(t){return nu(8,t),t}function eu(){return H_(J(i(ke)))}function nu(t,e){return ke.call(e,eh(t),null,new Int32Array(t),new Int32Array(lh(Wa,t)),2,0),e}function V_(t){return nu(t,J(i(ke)))}function Q_(t,e,n){return nu(t,n),n}function ch(t,e){return Q_(t,e,J(i(ke)))}function Wi(t){return t.t4_1.length}function jn(t){return t.w4_1.length}function fh(t){t.a5_1=t.a5_1+1|0}function G_(t,e){J_(t,e)?iu(t,jn(t)):X_(t,t.y4_1+e|0)}function J_(t,e){var n=Wi(t)-t.y4_1|0,r=t.y4_1-t.m()|0;return n<e&&(r+n|0)>=e&&r>=(Wi(t)/4|0)}function X_(t,e){if(e<0)throw Sh("too many elements");if(e>Wi(t)){var n=vn.d5(Wi(t),e);t.t4_1=xc(t.t4_1,n);var r=t,a=t.u4_1;r.u4_1=a==null?null:xc(a,n),t.v4_1=b_(t.v4_1,n);var o=lh(Wa,n);o>jn(t)&&iu(t,o)}}function Y_(t){var e=t.u4_1;if(e!=null)return e;var n=eh(Wi(t));return t.u4_1=n,n}function ru(t,e){return e==null?0:gt(ot(e),-1640531527)>>>t.z4_1|0}function Z_(t){for(var e=0,n=0,r=t.u4_1;e<t.y4_1;)t.v4_1[e]>=0&&(t.t4_1[n]=t.t4_1[e],r!=null&&(r[n]=r[e]),n=n+1|0),e=e+1|0;Cc(t.t4_1,n,t.y4_1),r==null||Cc(r,n,t.y4_1),t.y4_1=n}function iu(t,e){fh(t),t.y4_1>t.b5_1&&Z_(t),e!==jn(t)?(t.w4_1=new Int32Array(e),t.z4_1=uh(Wa,e)):g_(t.w4_1,0,0,jn(t));for(var n=0;n<t.y4_1;){var r=n;if(n=r+1|0,!t0(t,r))throw Dr("This cannot happen with fixed magic multiplier and grow-only hash array. Have object hashCodes changed?")}}function t0(t,e){for(var n=ru(t,t.t4_1[e]),r=t.x4_1;;){var a=t.w4_1[n];if(a===0)return t.w4_1[n]=e+1|0,t.v4_1[e]=n,!0;if(r=r-1|0,r<0)return!1;var o=n;n=o-1|0,o===0&&(n=jn(t)-1|0)}}function au(t,e){for(var n=ru(t,e),r=t.x4_1;;){var a=t.w4_1[n];if(a===0)return-1;if(a>0&&E(t.t4_1[a-1|0],e))return a-1|0;if(r=r-1|0,r<0)return-1;var o=n;n=o-1|0,o===0&&(n=jn(t)-1|0)}}function e0(t,e){t.q4();t:for(;;)for(var n=ru(t,e),r=ba(gt(t.x4_1,2),jn(t)/2|0),a=0;;){var o=t.w4_1[n];if(o<=0){if(t.y4_1>=Wi(t)){G_(t,1);continue t}var s=t.y4_1;t.y4_1=s+1|0;var l=s;return t.t4_1[l]=e,t.v4_1[l]=n,t.w4_1[n]=l+1|0,t.b5_1=t.b5_1+1|0,fh(t),a>t.x4_1&&(t.x4_1=a),l}if(E(t.t4_1[o-1|0],e))return-o|0;if(a=a+1|0,a>r){iu(t,gt(jn(t),2));continue t}var c=n;n=c-1|0,c===0&&(n=jn(t)-1|0)}}function n0(t,e){return t.b5_1===e.m()&&t.p4(e.u1())}function hh(){this.e5_1=-1640531527,this.f5_1=8,this.g5_1=2,this.h5_1=-1}var Wa;function Wr(t){this.i5_1=t,this.j5_1=0,this.k5_1=-1,this.l5_1=this.i5_1.a5_1,this.m5()}i(Wr).m5=function(){for(;this.j5_1<this.i5_1.y4_1&&this.i5_1.v4_1[this.j5_1]<0;)this.j5_1=this.j5_1+1|0};i(Wr).i=function(){return this.j5_1<this.i5_1.y4_1};i(Wr).n5=function(){if(this.i5_1.a5_1!==this.l5_1)throw cu()};function ou(t){Wr.call(this,t)}i(ou).j=function(){if(this.n5(),this.j5_1>=this.i5_1.y4_1)throw Ce();var t=this,e=this.j5_1;this.j5_1=e+1|0,t.k5_1=e;var n=this.i5_1.t4_1[this.k5_1];return this.m5(),n};function Ha(t){Wr.call(this,t)}i(Ha).j=function(){if(this.n5(),this.j5_1>=this.i5_1.y4_1)throw Ce();var t=this,e=this.j5_1;this.j5_1=e+1|0,t.k5_1=e;var n=new _i(this.i5_1,this.k5_1);return this.m5(),n};i(Ha).w5=function(){if(this.j5_1>=this.i5_1.y4_1)throw Ce();var t=this,e=this.j5_1;this.j5_1=e+1|0,t.k5_1=e;var n=this.i5_1.t4_1[this.k5_1],r=n==null?null:ot(n),a=r==null?0:r,o=Pe(this.i5_1.u4_1)[this.k5_1],s=o==null?null:ot(o),l=a^(s==null?0:s);return this.m5(),l};i(Ha).x5=function(t){if(this.j5_1>=this.i5_1.y4_1)throw Ce();var e=this,n=this.j5_1;this.j5_1=n+1|0,e.k5_1=n;var r=this.i5_1.t4_1[this.k5_1];E(r,this.i5_1)?t.a6("(this Map)"):t.z5(r),t.b6(61);var a=Pe(this.i5_1.u4_1)[this.k5_1];E(a,this.i5_1)?t.a6("(this Map)"):t.z5(a),this.m5()};function _i(t,e){this.c6_1=t,this.d6_1=e}i(_i).q1=function(){return this.c6_1.t4_1[this.d6_1]};i(_i).r1=function(){return Pe(this.c6_1.u4_1)[this.d6_1]};i(_i).equals=function(t){var e,n;return t!=null&&et(t,_r)?n=E(t.q1(),this.q1()):n=!1,n?e=E(t.r1(),this.r1()):e=!1,e};i(_i).hashCode=function(){var t=this.q1(),e=t==null?null:ot(t),n=e==null?0:e,r=this.r1(),a=r==null?null:ot(r);return n^(a==null?0:a)};i(_i).toString=function(){return Tt(this.q1())+"="+Tt(this.r1())};function ke(t,e,n,r,a,o){this.t4_1=t,this.u4_1=e,this.v4_1=n,this.w4_1=r,this.x4_1=a,this.y4_1=o,this.z4_1=uh(Wa,jn(this)),this.a5_1=0,this.b5_1=0,this.c5_1=!1}i(ke).m=function(){return this.b5_1};i(ke).t1=function(t){var e=au(this,t);return e<0?null:Pe(this.u4_1)[e]};i(ke).i4=function(t){return au(this,t)>=0};i(ke).u3=function(t,e){var n=e0(this,t),r=Y_(this);if(n<0){var a=r[(-n|0)-1|0];return r[(-n|0)-1|0]=e,a}else return r[n]=e,null};i(ke).equals=function(t){var e;if(t===this)e=!0;else{var n;t!=null&&et(t,mr)?n=n0(this,t):n=!1,e=n}return e};i(ke).hashCode=function(){for(var t=0,e=this.l4();e.i();)t=t+e.w5()|0;return t};i(ke).toString=function(){var t=Rh(2+gt(this.b5_1,3)|0);t.a6("{");for(var e=0,n=this.l4();n.i();)e>0&&t.a6(", "),n.x5(t),e=e+1|0;return t.a6("}"),t.toString()};i(ke).q4=function(){if(this.c5_1)throw gi()};i(ke).o4=function(t){var e=au(this,t.q1());return e<0?!1:E(Pe(this.u4_1)[e],t.r1())};i(ke).e6=function(t){return this.o4(et(t,_r)?t:S())};i(ke).s4=function(){return new ou(this)};i(ke).l4=function(){return new Ha(this)};function dh(){}function r0(t){return ah(t),Va.call(t),t}function vh(){return r0(J(i(Va)))}function i0(t,e){return D_(t,e),Va.call(e),e}function a0(t){return i0(t,J(i(Va)))}function Va(){}function o0(t){return oh(t),Hr.call(t),t}function su(){return o0(J(i(Hr)))}function s0(t,e){return K_(t,e),Hr.call(e),e}function l0(t){return s0(t,J(i(Hr)))}function u0(t,e,n){return sh(t,e,n),Hr.call(n),n}function c0(t,e){return u0(t,1,e),e}function f0(t){return c0(t,J(i(Hr)))}i(Hr).r2=function(){return this.r4_1.q4()};function Hr(){}function Re(t){$a.call(this),this.h6_1=t,this.i6_1=0,this.j6_1=0,this.k6_1=null,this.l6_1=null,this.m6_1=null;var e=this,n=this.h6_1;e.n6_1=n==null?null:n.o6()}i(Re).o6=function(){return Pe(this.n6_1)};i(Re).p6=function(t){var e=this,n;if(Dm(t))n=null;else{var r=t;n=r==null||r!=null?r:S()}for(var a=n,o=Bm(t);;){var s=e;o==null?s.k6_1=a:(s.i6_1=s.j6_1,s.l6_1=o);try{var l=s.q6();if(l===Cr())return ut;a=l,o=null}catch(_){var c=_;a=null,o=c}s.s6();var f=Pe(s.h6_1);if(f instanceof Re)e=f;else{if(o!=null){var h=Pe(o),d=Um(h);f.t6(d)}else{var v=a,y=v;f.t6(y)}return ut}}};i(Re).t6=function(t){return this.p6(t)};function Xi(){}i(Xi).o6=function(){var t="This continuation is already complete";throw Dr(j(t))};i(Xi).p6=function(t){var e="This continuation is already complete";throw Dr(j(e))};i(Xi).t6=function(t){return this.p6(t)};i(Xi).toString=function(){return"This continuation is already complete"};var ph;function $a(){this.r6_1=null}i($a).s6=function(){var t=this.r6_1;t!=null&&t!==this&&Pe(this.o6().u6(Jh)).v6(t),this.r6_1=ph};function h0(t,e,n){return new lu(n,t,e,n)}function lu(t,e,n,r){this.e7_1=e,this.f7_1=n,this.g7_1=r,Re.call(this,et(t,oa)?t:S())}i(lu).q6=function(){if(this.l6_1!=null)throw this.l6_1;var t=this.e7_1;return typeof t=="function"?t(this.f7_1,this.g7_1):this.e7_1.h7(this.f7_1,this.g7_1)};function _h(t){return xo(t),wn.call(t),t}function mh(){var t=_h(J(i(wn)));return B(t,mh),t}function No(t,e){return xo(e,t),wn.call(e),e}function gh(t){var e=No(t,J(i(wn)));return B(e,gh),e}function wn(){B(this,wn)}function yh(t){return An(t),mi.call(t),t}function bh(){var t=yh(J(i(mi)));return B(t,bh),t}function wh(t,e){return yi(t,e),mi.call(e),e}function Pt(t){var e=wh(t,J(i(mi)));return B(e,Pt),e}function mi(){B(this,mi)}function d0(t){return An(t),Yi.call(t),t}function uu(){var t=d0(J(i(Yi)));return B(t,uu),t}function v0(t,e){return yi(t,e),Yi.call(e),e}function Bn(t){var e=v0(t,J(i(Yi)));return B(e,Bn),e}function Yi(){B(this,Yi)}function p0(t){return An(t),Zi.call(t),t}function kh(){var t=p0(J(i(Zi)));return B(t,kh),t}function _0(t,e){return yi(t,e),Zi.call(e),e}function Dr(t){var e=_0(t,J(i(Zi)));return B(e,Dr),e}function Zi(){B(this,Zi)}function m0(t){return An(t),ta.call(t),t}function gi(){var t=m0(J(i(ta)));return B(t,gi),t}function g0(t,e){return yi(t,e),ta.call(e),e}function Ch(t){var e=g0(t,J(i(ta)));return B(e,Ch),e}function ta(){B(this,ta)}function An(t){return _h(t),Ue.call(t),t}function xh(){var t=An(J(i(Ue)));return B(t,xh),t}function yi(t,e){return No(t,e),Ue.call(e),e}function Sh(t){var e=yi(t,J(i(Ue)));return B(e,Sh),e}function Ue(){B(this,Ue)}function y0(t){return An(t),ea.call(t),t}function Ce(){var t=y0(J(i(ea)));return B(t,Ce),t}function b0(t,e){return yi(t,e),ea.call(e),e}function Qa(t){var e=b0(t,J(i(ea)));return B(e,Qa),e}function ea(){B(this,ea)}function w0(t){return xo(t),na.call(t),t}function $h(){var t=w0(J(i(na)));return B(t,$h),t}function k0(t,e){return xo(e,t),na.call(e),e}function na(){B(this,na)}function C0(t){return yh(t),bi.call(t),t}function Eh(){var t=C0(J(i(bi)));return B(t,Eh),t}function x0(t,e){return wh(t,e),bi.call(e),e}function Nh(t){var e=x0(t,J(i(bi)));return B(e,Nh),e}function bi(){B(this,bi)}function S0(t){return An(t),ra.call(t),t}function Ih(){var t=S0(J(i(ra)));return B(t,Ih),t}function $0(t,e){return yi(t,e),ra.call(e),e}function qh(t){var e=$0(t,J(i(ra)));return B(e,qh),e}function ra(){B(this,ra)}function E0(t){return An(t),Io.call(t),t}function cu(){var t=E0(J(i(Io)));return B(t,cu),t}function Io(){B(this,Io)}function N0(t){return An(t),qo.call(t),t}function fu(){var t=N0(J(i(qo)));return B(t,fu),t}function qo(){B(this,qo)}function I0(t){return An(t),Ao.call(t),t}function hu(){var t=I0(J(i(Ao)));return B(t,hu),t}function Ao(){B(this,Ao)}function q0(t){return An(t),To.call(t),t}function du(){var t=q0(J(i(To)));return B(t,du),t}function To(){B(this,To)}function Ea(t){return new no(t)}function A0(t,e){for(var n=t.length,r=e.length,a=0,o=e;a<n&&a<r;){var s=a,l=a;a=l+1|0,o[s]=t[l]}return e}function T0(t,e,n){var r=t.slice(0,e);t.$type$!==void 0&&(r.$type$=t.$type$);var a=t.length;if(e>a)for(r.length=e;a<e;){var o=a;a=o+1|0,r[o]=n}return r}function Na(){}function dn(t){this.l7_1=t}i(dn).m7=function(){return this.l7_1};i(dn).equals=function(t){var e;return t instanceof wi||t instanceof Hi?e=!1:t instanceof dn?e=E(this.m7(),t.m7()):e=!1,e};i(dn).hashCode=function(){var t=this.k7(),e=t==null?null:Qe(t);return e==null?0:e};i(dn).toString=function(){return"class "+this.k7()};function wi(){Ws=this,dn.call(this,Object),this.o7_1="Nothing"}i(wi).k7=function(){return this.o7_1};i(wi).m7=function(){throw Ch("There's no native JS class for Nothing type")};i(wi).equals=function(t){return t===this};i(wi).hashCode=function(){return 0};var Ws;function Ah(){return Ws==null&&new wi,Ws}function Hi(){}i(Hi).equals=function(t){return t===this};i(Hi).hashCode=function(){return 0};function At(t,e,n){dn.call(this,t),this.q7_1=e,this.r7_1=n}i(At).equals=function(t){return t instanceof At?i(dn).equals.call(this,t)&&this.q7_1===t.q7_1:!1};i(At).k7=function(){return this.q7_1};function go(t){dn.call(this,t);var e=this,n=t.$metadata$;e.t7_1=n==null?null:n.simpleName}i(go).k7=function(){return this.t7_1};function Po(){}function vu(){}function Sc(){return Z0(),Th}var Th;function P0(t){return t!=null}function R0(t){return Bf(t)}function M0(t){return t!=null?typeof t=="boolean":!1}function L0(t){return t!=null?typeof t=="number":!1}function O0(t){return t!=null?typeof t=="number":!1}function j0(t){return t!=null?typeof t=="number":!1}function z0(t){return t!=null?typeof t=="number":!1}function F0(t){return t!=null?typeof t=="number":!1}function D0(t){return t!=null?Ji(t):!1}function B0(t){return t!=null?typeof t=="string":!1}function K0(t){return t instanceof Error}function U0(t){return t!=null?Kf(t):!1}function W0(t){return t!=null?Hf(t):!1}function H0(t){return t!=null?Uf(t):!1}function V0(t){return t!=null?Wf(t):!1}function Q0(t){return t!=null?Vf(t):!1}function G0(t){return t!=null?Gf(t):!1}function J0(t){return t!=null?Qf(t):!1}function X0(t){return t!=null?Jf(t):!1}function Y0(t){return function(e){var n;return typeof e=="function"?n=e.length===t:n=!1,n}}function Vt(){Hs=this;var t=this,e=Object;t.anyClass=new At(e,"Any",P0);var n=this,r=Number;n.numberClass=new At(r,"Number",R0),this.nothingClass=Ah();var a=this,o=Boolean;a.booleanClass=new At(o,"Boolean",M0);var s=this,l=Number;s.byteClass=new At(l,"Byte",L0);var c=this,f=Number;c.shortClass=new At(f,"Short",O0);var h=this,d=Number;h.intClass=new At(d,"Int",j0);var v=this,y=Number;v.floatClass=new At(y,"Float",z0);var _=this,m=Number;_.doubleClass=new At(m,"Double",F0);var g=this,p=Array;g.arrayClass=new At(p,"Array",D0);var C=this,k=String;C.stringClass=new At(k,"String",B0);var x=this,N=Error;x.throwableClass=new At(N,"Throwable",K0);var F=this,Q=Array;F.booleanArrayClass=new At(Q,"BooleanArray",U0);var H=this,st=Uint16Array;H.charArrayClass=new At(st,"CharArray",W0);var dt=this,Lt=Int8Array;dt.byteArrayClass=new At(Lt,"ByteArray",H0);var Ot=this,ue=Int16Array;Ot.shortArrayClass=new At(ue,"ShortArray",V0);var _t=this,te=Int32Array;_t.intArrayClass=new At(te,"IntArray",Q0);var ce=this,on=Array;ce.longArrayClass=new At(on,"LongArray",G0);var Qt=this,Se=Float32Array;Qt.floatArrayClass=new At(Se,"FloatArray",J0);var Cn=this,Pn=Float64Array;Cn.doubleArrayClass=new At(Pn,"DoubleArray",X0)}i(Vt).u7=function(){return this.anyClass};i(Vt).v7=function(){return this.numberClass};i(Vt).w7=function(){return this.nothingClass};i(Vt).x7=function(){return this.booleanClass};i(Vt).y7=function(){return this.byteClass};i(Vt).z7=function(){return this.shortClass};i(Vt).a8=function(){return this.intClass};i(Vt).b8=function(){return this.floatClass};i(Vt).c8=function(){return this.doubleClass};i(Vt).d8=function(){return this.arrayClass};i(Vt).e8=function(){return this.stringClass};i(Vt).f8=function(){return this.throwableClass};i(Vt).g8=function(){return this.booleanArrayClass};i(Vt).h8=function(){return this.charArrayClass};i(Vt).i8=function(){return this.byteArrayClass};i(Vt).j8=function(){return this.shortArrayClass};i(Vt).k8=function(){return this.intArrayClass};i(Vt).l8=function(){return this.longArrayClass};i(Vt).m8=function(){return this.floatArrayClass};i(Vt).n8=function(){return this.doubleArrayClass};i(Vt).functionClass=function(t){var e=Sc()[t],n;if(e==null){var r=Function,a="Function"+t,o=new At(r,a,Y0(t));Sc()[t]=o,n=o}else n=e;return n};var Hs;function Ne(){return Hs==null&&new Vt,Hs}var $c;function Z0(){$c||($c=!0,Th=Zn(Array(0),null))}function tm(t){var e;return Array.isArray(t)?e=em(t):e=pu(t),e}function em(t){var e;switch(t.length){case 1:e=pu(t[0]);break;case 0:e=Ah();break;default:e=new Hi;break}return e}function pu(t){if(t===String)return Ne().stringClass;var e=t.$metadata$,n;if(e!=null){var r;if(e.$kClass$==null){var a=new go(t);e.$kClass$=a,r=a}else r=e.$kClass$;n=r}else n=new go(t);return n}function yo(t){var e;switch(typeof t){case"string":e=Ne().stringClass;break;case"number":var n;(t|0)===t?n=Ne().intClass:n=Ne().doubleClass,e=n;break;case"boolean":e=Ne().booleanClass;break;case"function":var r=Ne();e=r.functionClass(t.length);break;default:var a;if(Kf(t))a=Ne().booleanArrayClass;else if(Hf(t))a=Ne().charArrayClass;else if(Uf(t))a=Ne().byteArrayClass;else if(Wf(t))a=Ne().shortArrayClass;else if(Vf(t))a=Ne().intArrayClass;else if(Gf(t))a=Ne().longArrayClass;else if(Qf(t))a=Ne().floatArrayClass;else if(Jf(t))a=Ne().doubleArrayClass;else if(et(t,Na))a=tm(Na);else if(Ji(t))a=Ne().arrayClass;else{var o=Object.getPrototypeOf(t).constructor,s;if(o===Object)s=Ne().anyClass;else if(o===Error)s=Ne().throwableClass;else{var l=o;s=pu(l)}a=s}e=a;break}return e}function Ph(t){t.lastIndex=0}function nm(t,e){return Mh(e),e}function Rh(t){return nm(t,J(i(kn)))}function Mh(t){return kn.call(t,""),t}function _u(){return Mh(J(i(kn)))}function kn(t){this.y5_1=t!==void 0?t:""}i(kn).a=function(){return this.y5_1.length};i(kn).b=function(t){var e=this.y5_1,n;if(0<=t&&t<=(A(e)-1|0))n=L(e,t);else throw Bn("index: "+t+", length: "+this.a()+"}");return n};i(kn).c=function(t,e){return this.y5_1.substring(t,e)};i(kn).b6=function(t){return this.y5_1=this.y5_1+Kt(t),this};i(kn).e=function(t){return this.y5_1=this.y5_1+Tt(t),this};i(kn).z5=function(t){return this.y5_1=this.y5_1+Tt(t),this};i(kn).a6=function(t){var e=this,n=this.y5_1;return e.y5_1=n+(t==null?"null":t),this};i(kn).toString=function(){return this.y5_1};function Ec(t){var e=Kt(t).toUpperCase();return e.length>1?t:L(e,0)}function Lh(t){return x_(t)}function Nc(t,e){return t.toString(Oh(e))}function Oh(t){if(!(2<=t&&t<=36))throw Pt("radix "+t+" was not in valid range 2..36");return t}function rm(t){var e=id(t),n;return e==null?ad(t):n=e,n}function Ic(t,e){var n=Iu(t,e),r;return n==null?ad(t):r=n,r}function im(t,e){var n=ee(t,48)>=0&&ee(t,57)<=0?ha(t,48):ee(t,65)>=0&&ee(t,90)<=0?ha(t,65)+10|0:ee(t,97)>=0&&ee(t,122)<=0?ha(t,97)+10|0:ee(t,128)<0?-1:ee(t,65313)>=0&&ee(t,65338)<=0?ha(t,65313)+10|0:ee(t,65345)>=0&&ee(t,65370)<=0?ha(t,65345)+10|0:k_(t);return n>=e?-1:n}function am(t,e){return Ga.call(e,t,Eu()),e}function om(t){return am(t,J(i(Ga)))}function jh(){Vs=this,this.o8_1=new RegExp("[\\\\^$*+?.()|[\\]{}]","g"),this.p8_1=new RegExp("[\\\\$]","g"),this.q8_1=new RegExp("\\$","g")}var Vs;function sm(){return Vs==null&&new jh,Vs}function Ga(t,e){sm(),this.r8_1=t,this.s8_1=lp(e),this.t8_1=new RegExp(t,lm(e,"gu")),this.u8_1=null,this.v8_1=null}i(Ga).w8=function(t){Ph(this.t8_1);var e=this.t8_1.exec(j(t));return e!=null&&e.index===0&&this.t8_1.lastIndex===A(t)};i(Ga).toString=function(){return this.t8_1.toString()};function lm(t,e){return En(t,"",e,u,u,u,um)}function um(t){return t.z8_1}function cm(t,e){return Fm(t,e)}function mu(t){this.a9_1=t}i(mu).b9=function(t,e){return this.a9_1(t,e)};i(mu).compare=function(t,e){return this.b9(t,e)};function gu(t,e,n){return n=n===u?!1:n,n?Ro(t,0,e,0,e.length,n):t.startsWith(e,0)}function zh(t,e,n){return n=n===u?!1:n,n?Ro(t,t.length-e.length|0,e,0,e.length,n):t.endsWith(e)}function fm(t,e,n,r){return r=r===u?!1:r,r?Ro(t,n,e,0,e.length,r):t.startsWith(e,n)}function Ro(t,e,n,r,a,o){return o=o===u?!1:o,eo(t,e,n,r,a,o)}function hm(t){return function(e){return e===t?"(this Collection)":Tt(e)}}function br(){}i(br).j1=function(t){var e;t:{var n;if(et(this,$t)?n=this.l():n=!1,n){e=!1;break t}for(var r=this.h();r.i();){var a=r.j();if(E(a,t)){e=!0;break t}}e=!1}return e};i(br).k1=function(t){var e;t:{var n;if(et(t,$t)?n=t.l():n=!1,n){e=!0;break t}for(var r=t.h();r.i();){var a=r.j();if(!this.j1(a)){e=!1;break t}}e=!0}return e};i(br).l=function(){return this.m()===0};i(br).toString=function(){return En(this,", ","[","]",u,u,hm(this))};i(br).toArray=function(){return Zf(this)};function Vr(){this.n2_1=2147483639}i(Vr).l3=function(t,e){if(t<0||t>=e)throw Bn("index: "+t+", size: "+e)};i(Vr).c3=function(t,e){if(t<0||t>e)throw Bn("index: "+t+", size: "+e)};i(Vr).o2=function(t,e,n){if(t<0||e>n)throw Bn("fromIndex: "+t+", toIndex: "+e+", size: "+n);if(t>e)throw Pt("fromIndex: "+t+" > toIndex: "+e)};i(Vr).d5=function(t,e){var n=t+(t>>1)|0;return(n-e|0)<0&&(n=e),(n-2147483639|0)>0&&(n=e>2147483639?2147483647:2147483639),n};i(Vr).p3=function(t){for(var e=1,n=t.h();n.i();){var r=n.j(),a=gt(31,e),o=r==null?null:ot(r);e=a+(o==null?0:o)|0}return e};i(Vr).o3=function(t,e){if(t.m()!==e.m())return!1;for(var n=e.h(),r=t.h();r.i();){var a=r.j(),o=n.j();if(!E(a,o))return!1}return!0};var vn;function qc(t,e){return e===t?"(this Map)":Tt(e)}function Fh(t,e){var n;t:{for(var r=t.u1().h();r.i();){var a=r.j();if(E(a.q1(),e)){n=a;break t}}n=null}return n}function dm(){}function vm(t){return function(e){return t.c9(e)}}function yn(){this.v3_1=null,this.w3_1=null}i(yn).s1=function(t){return Fh(this,t)!=null};i(yn).x3=function(t){if(!(t!=null&&et(t,_r)))return!1;var e=t.q1(),n=t.r1(),r=(et(this,mr)?this:S()).t1(e);if(!E(n,r))return!1;var a;return r==null?a=!(et(this,mr)?this:S()).s1(e):a=!1,!a};i(yn).equals=function(t){if(t===this)return!0;if(!(t!=null&&et(t,mr))||this.m()!==t.m())return!1;var e;t:{var n=t.u1(),r;if(et(n,$t)?r=n.l():r=!1,r){e=!0;break t}for(var a=n.h();a.i();){var o=a.j();if(!this.x3(o)){e=!1;break t}}e=!0}return e};i(yn).t1=function(t){var e=Fh(this,t);return e==null?null:e.r1()};i(yn).hashCode=function(){return ot(this.u1())};i(yn).m=function(){return this.u1().m()};i(yn).toString=function(){var t=this.u1();return En(t,", ","{","}",u,u,vm(this))};i(yn).c9=function(t){return qc(this,t.q1())+"="+qc(this,t.r1())};function Mo(){}i(Mo).z3=function(t){for(var e=0,n=t.h();n.i();){var r=n.j(),a=e,o=r==null?null:ot(r);e=a+(o==null?0:o)|0}return e};i(Mo).y3=function(t,e){return t.m()!==e.m()?!1:t.k1(e)};var yu;function pm(t){if(t.l())return[];for(var e=t.m(),n=Zn(Array(e),null),r=t.h(),a=0;r.i();){var o=a;a=o+1|0,n[o]=r.j()}return n}function bu(t){return t.length>0?Jl(t):ia()}function Dh(t){return t.length===0?Rt():Ua(new Wn(t,!0))}function ia(){return ym()}function Ja(t){return t.m()-1|0}function _m(t,e,n,r){n=n===u?0:n,r=r===u?t.m():r,bm(t.m(),n,r);for(var a=n,o=r-1|0;a<=o;){var s=(a+o|0)>>>1|0,l=t.k(s),c=Vo(l,e);if(c<0)a=s+1|0;else if(c>0)o=s-1|0;else return s}return-(a+1|0)|0}function mm(t){return t.length===0?Rt():Ua(new Wn(t,!0))}function gm(t){switch(t.m()){case 0:return ia();case 1:return Ba(t.k(0));default:return t}}function Wn(t,e){this.d9_1=t,this.e9_1=e}i(Wn).m=function(){return this.d9_1.length};i(Wn).l=function(){return this.d9_1.length===0};i(Wn).f9=function(t){return Ps(this.d9_1,t)};i(Wn).g9=function(t){var e;t:{var n;if(et(t,$t)?n=t.l():n=!1,n){e=!0;break t}for(var r=t.h();r.i();){var a=r.j();if(!this.f9(a)){e=!1;break t}}e=!0}return e};i(Wn).k1=function(t){return this.g9(t)};i(Wn).h=function(){return kf(this.d9_1)};function se(){Qs=this,this.h9_1=new ht(-1478467534,-1720727600)}i(se).equals=function(t){var e;return t!=null&&et(t,Un)?e=t.l():e=!1,e};i(se).hashCode=function(){return 1};i(se).toString=function(){return"[]"};i(se).m=function(){return 0};i(se).l=function(){return!0};i(se).i9=function(t){return!1};i(se).j1=function(t){return!1};i(se).j9=function(t){return t.l()};i(se).k1=function(t){return this.j9(t)};i(se).k=function(t){throw Bn("Empty list doesn't contain element at index "+t+".")};i(se).k9=function(t){return-1};i(se).l1=function(t){return-1};i(se).l9=function(t){return-1};i(se).m1=function(t){return-1};i(se).h=function(){return aa};i(se).n1=function(){return aa};i(se).o1=function(t){if(t!==0)throw Bn("Index: "+t);return aa};i(se).p1=function(t,e){if(t===0&&e===0)return this;throw Bn("fromIndex: "+t+", toIndex: "+e)};var Qs;function ym(){return Qs==null&&new se,Qs}function bm(t,e,n){if(e>n)throw Pt("fromIndex ("+e+") is greater than toIndex ("+n+").");if(e<0)throw Bn("fromIndex ("+e+") is less than zero.");if(n>t)throw Bn("toIndex ("+n+") is greater than size ("+t+").")}function ki(){}i(ki).i=function(){return!1};i(ki).d3=function(){return!1};i(ki).e3=function(){return 0};i(ki).j=function(){throw Ce()};i(ki).f3=function(){throw Ce()};var aa;function wm(t){return new Wn(t,!1)}function km(){throw qh("Index overflow has happened.")}function ei(t,e){this.v_1=t,this.w_1=e}i(ei).toString=function(){return"IndexedValue(index="+this.v_1+", value="+Tt(this.w_1)+")"};i(ei).hashCode=function(){var t=this.v_1;return t=gt(t,31)+(this.w_1==null?0:ot(this.w_1))|0,t};i(ei).equals=function(t){if(this===t)return!0;if(!(t instanceof ei))return!1;var e=t instanceof ei?t:S();return!(this.v_1!==e.v_1||!E(this.w_1,e.w_1))};function Gs(t,e){var n;return et(t,$t)?n=t.m():n=e,n}function Cm(t,e){return t.q(Jl(e))}function Lo(t,e){if(et(e,$t))return t.q(e);for(var n=!1,r=e.h();r.i();){var a=r.j();t.f(a)&&(n=!0)}return n}function Oo(){}i(Oo).j=function(){return this.m9()};function Xa(){}i(Xa).n9=function(){return this.o9()};i(Xa).j=function(){return new nt(this.n9())};function Ya(t){return new wu(t)}function wr(){}function xm(t){var e=new kr;return e.t9_1=h0(t,e,e),e}function Sm(t){if(t.i())return t.j();throw Ce()}function Bh(t){switch(t.q9_1){case 4:return Ce();case 5:return Dr("Iterator has failed.");default:return Dr("Unexpected state of the iterator: "+t.q9_1)}}function kr(){wr.call(this),this.q9_1=0,this.r9_1=null,this.s9_1=null,this.t9_1=null}i(kr).i=function(){for(;;){switch(this.q9_1){case 0:break;case 1:if(Pe(this.s9_1).i())return this.q9_1=2,!0;this.s9_1=null;break;case 4:return!1;case 3:case 2:return!0;default:throw Bh(this)}this.q9_1=5;var t=Pe(this.t9_1);this.t9_1=null;var e=ut;t.t6(e)}};i(kr).j=function(){switch(this.q9_1){case 0:case 1:return Sm(this);case 2:return this.q9_1=1,Pe(this.s9_1).j();case 3:this.q9_1=0;var t=this.r9_1,e=t==null||t!=null?t:S();return this.r9_1=null,e;default:throw Bh(this)}};i(kr).p9=function(t,e){return this.r9_1=t,this.q9_1=3,this.t9_1=e,Cr()};i(kr).u9=function(t){Wm(t);var e=t;e==null||e!=null||S(),this.q9_1=4};i(kr).t6=function(t){return this.u9(t)};i(kr).o6=function(){return qm()};function wu(t){this.v9_1=t}i(wu).h=function(){return xm(this.v9_1)};function Ci(){return Wo}function jo(t){this.x9_1=t,this.w9_1=t.y9_1.h()}i(jo).j=function(){return this.x9_1.z9_1(this.w9_1.j())};i(jo).i=function(){return this.w9_1.i()};function ku(t,e){this.y9_1=t,this.z9_1=e}i(ku).h=function(){return new jo(this)};function Kh(t){for(;t.aa_1.i();){var e=t.aa_1.j();if(t.da_1.ga_1(e)===t.da_1.fa_1)return t.ca_1=e,t.ba_1=1,ut}t.ba_1=0}function zo(t){this.da_1=t,this.aa_1=t.ea_1.h(),this.ba_1=-1,this.ca_1=null}i(zo).j=function(){if(this.ba_1===-1&&Kh(this),this.ba_1===0)throw Ce();var t=this.ca_1;return this.ca_1=null,this.ba_1=-1,t==null||t!=null?t:S()};i(zo).i=function(){return this.ba_1===-1&&Kh(this),this.ba_1===1};function Cu(t,e,n){e=e===u?!0:e,this.ea_1=t,this.fa_1=e,this.ga_1=n}i(Cu).h=function(){return new zo(this)};function Fo(t){this.ha_1=t.ja_1.h(),this.ia_1=0}i(Fo).j=function(){var t=this.ia_1;return this.ia_1=t+1|0,new ei(Eo(t),this.ha_1.j())};i(Fo).i=function(){return this.ha_1.i()};function xu(t){this.ja_1=t}i(xu).h=function(){return new Fo(this)};function xi(){}function Do(t){this.ka_1=t.na_1,this.la_1=t.ma_1.h()}i(Do).j=function(){if(this.ka_1===0)throw Ce();return this.ka_1=this.ka_1-1|0,this.la_1.j()};i(Do).i=function(){return this.ka_1>0&&this.la_1.i()};function li(t,e){if(this.ma_1=t,this.na_1=e,!(this.na_1>=0)){var n="count must be non-negative, but was "+this.na_1+".";throw Pt(j(n))}}i(li).u=function(t){return t>=this.na_1?Ci():new Br(this.ma_1,t,this.na_1)};i(li).t=function(t){return t>=this.na_1?this:new li(this.ma_1,t)};i(li).h=function(){return new Do(this)};function Uh(t){if(t.oa_1.i()){var e=t.oa_1.j();if(t.ra_1.ta_1(e))return t.pa_1=1,t.qa_1=e,ut}t.pa_1=0}function Bo(t){this.ra_1=t,this.oa_1=t.sa_1.h(),this.pa_1=-1,this.qa_1=null}i(Bo).j=function(){if(this.pa_1===-1&&Uh(this),this.pa_1===0)throw Ce();var t=this.qa_1,e=t==null||t!=null?t:S();return this.qa_1=null,this.pa_1=-1,e};i(Bo).i=function(){return this.pa_1===-1&&Uh(this),this.pa_1===1};function Su(t,e){this.sa_1=t,this.ta_1=e}i(Su).h=function(){return new Bo(this)};function Wh(t){for(;t.va_1>0&&t.ua_1.i();)t.ua_1.j(),t.va_1=t.va_1-1|0}function Ko(t){this.ua_1=t.wa_1.h(),this.va_1=t.xa_1}i(Ko).j=function(){return Wh(this),this.ua_1.j()};i(Ko).i=function(){return Wh(this),this.ua_1.i()};function ni(t,e){if(this.wa_1=t,this.xa_1=e,!(this.xa_1>=0)){var n="count must be non-negative, but was "+this.xa_1+".";throw Pt(j(n))}}i(ni).u=function(t){var e=this.xa_1+t|0;return e<0?new ni(this,t):new ni(this.wa_1,e)};i(ni).t=function(t){var e=this.xa_1+t|0;return e<0?new li(this,t):new Br(this.wa_1,this.xa_1,e)};i(ni).h=function(){return new Ko(this)};function Hh(t){for(;t.ya_1.i();){var e=t.ya_1.j();if(!t.bb_1.db_1(e))return t.ab_1=e,t.za_1=1,ut}t.za_1=0}function Uo(t){this.bb_1=t,this.ya_1=t.cb_1.h(),this.za_1=-1,this.ab_1=null}i(Uo).j=function(){if(this.za_1===-1&&Hh(this),this.za_1===1){var t=this.ab_1,e=t==null||t!=null?t:S();return this.ab_1=null,this.za_1=0,e}return this.ya_1.j()};i(Uo).i=function(){return this.za_1===-1&&Hh(this),this.za_1===1||this.ya_1.i()};function $u(t,e){this.cb_1=t,this.db_1=e}i($u).h=function(){return new Uo(this)};function Za(){}i(Za).h=function(){return aa};i(Za).u=function(t){return Wo};i(Za).t=function(t){return Wo};var Wo;function Vh(t){for(;t.fb_1<t.gb_1.ib_1&&t.eb_1.i();)t.eb_1.j(),t.fb_1=t.fb_1+1|0}function Qh(t){return t.jb_1-t.ib_1|0}function Ho(t){this.gb_1=t,this.eb_1=t.hb_1.h(),this.fb_1=0}i(Ho).i=function(){return Vh(this),this.fb_1<this.gb_1.jb_1&&this.eb_1.i()};i(Ho).j=function(){if(Vh(this),this.fb_1>=this.gb_1.jb_1)throw Ce();return this.fb_1=this.fb_1+1|0,this.eb_1.j()};function Br(t,e,n){if(this.hb_1=t,this.ib_1=e,this.jb_1=n,!(this.ib_1>=0)){var r="startIndex should be non-negative, but is "+this.ib_1;throw Pt(j(r))}if(!(this.jb_1>=0)){var a="endIndex should be non-negative, but is "+this.jb_1;throw Pt(j(a))}if(!(this.jb_1>=this.ib_1)){var o="endIndex should be not less than startIndex, but was "+this.jb_1+" < "+this.ib_1;throw Pt(j(o))}}i(Br).u=function(t){return t>=Qh(this)?Ci():new Br(this.hb_1,this.ib_1+t|0,this.jb_1)};i(Br).t=function(t){return t>=Qh(this)?this:new Br(this.hb_1,this.ib_1,this.ib_1+t|0)};i(Br).h=function(){return new Ho(this)};function Eu(){return Nm()}function $m(t){return np(t,W_(t.length))}function Em(t){switch(t.m()){case 0:return Eu();case 1:return th(t.h().j());default:return t}}function Hn(){Js=this,this.kb_1=new ht(1993859828,793161749)}i(Hn).equals=function(t){var e;return t!=null&&et(t,Ur)?e=t.l():e=!1,e};i(Hn).hashCode=function(){return 0};i(Hn).toString=function(){return"[]"};i(Hn).m=function(){return 0};i(Hn).l=function(){return!0};i(Hn).j9=function(t){return t.l()};i(Hn).k1=function(t){return this.j9(t)};i(Hn).h=function(){return aa};var Js;function Nm(){return Js==null&&new Hn,Js}function Vo(t,e){return t===e?0:t==null?-1:e==null?1:qf(t!=null&&__(t)?t:S(),e)}function oa(){}function Gh(){}var Jh;function Im(){}function to(){Xs=this,this.lb_1=new ht(0,0)}i(to).u6=function(t){return null};i(to).hashCode=function(){return 0};i(to).toString=function(){return"EmptyCoroutineContext"};var Xs;function qm(){return Xs==null&&new to,Xs}function Cr(){return Tm()}var Xh,Ac;function Am(){if(Ac)return ut;Ac=!0,Xh=new uo("COROUTINE_SUSPENDED",0),new uo("UNDECIDED",1),new uo("RESUMED",2)}function uo(t,e){gr.call(this,t,e)}function Tm(){return Am(),Xh}function Yh(t,e,n){var r;if(n>0)r=t>=e?e:e-Tc(e,t,n)|0;else if(n<0)r=t<=e?e:e+Tc(t,e,-n|0)|0;else throw Pt("Step is zero.");return r}function Tc(t,e,n){return Ss(Ss(t,n)-Ss(e,n)|0,n)}function Ss(t,e){var n=t%e|0;return n>=0?n:n+e|0}function Zh(){Ys=this,this.mb_1=new Kr(1,0)}var Ys;function Pm(){return Ys==null&&new Zh,Ys}function Kr(t,e){Pm(),Kn.call(this,t,e,1)}i(Kr).l=function(){return this.qb_1>this.rb_1};i(Kr).equals=function(t){var e;return t instanceof Kr?e=this.l()&&t.l()||this.qb_1===t.qb_1&&this.rb_1===t.rb_1:e=!1,e};i(Kr).hashCode=function(){return this.l()?-1:gt(31,this.qb_1)+this.rb_1|0};i(Kr).toString=function(){return""+this.qb_1+".."+this.rb_1};function td(){Zs=this,this.tb_1=new xr(1,0)}var Zs;function Rm(){return Zs==null&&new td,Zs}function xr(t,e){Rm(),Sr.call(this,t,e,1)}i(xr).xb=function(t){return ee(this.yb_1,t)<=0&&ee(t,this.zb_1)<=0};i(xr).l=function(){return ee(this.yb_1,this.zb_1)>0};i(xr).equals=function(t){var e;return t instanceof xr?e=this.l()&&t.l()||this.yb_1===t.yb_1&&this.zb_1===t.zb_1:e=!1,e};i(xr).hashCode=function(){var t;if(this.l())t=-1;else{var e=this.yb_1,n=ze(e),r=gt(31,n),a=this.zb_1;t=r+ze(a)|0}return t};i(xr).toString=function(){return Kt(this.yb_1)+".."+Kt(this.zb_1)};function Qo(t,e,n){Oo.call(this),this.bc_1=n,this.cc_1=e,this.dc_1=this.bc_1>0?t<=e:t>=e,this.ec_1=this.dc_1?t:this.cc_1}i(Qo).i=function(){return this.dc_1};i(Qo).m9=function(){var t=this.ec_1;if(t===this.cc_1){if(!this.dc_1)throw Ce();this.dc_1=!1}else this.ec_1=this.ec_1+this.bc_1|0;return t};function Go(t,e,n){Xa.call(this),this.fc_1=n;var r=this;r.gc_1=ze(e),this.hc_1=this.fc_1>0?ee(t,e)<=0:ee(t,e)>=0;var a=this,o;this.hc_1?o=ze(t):o=this.gc_1,a.ic_1=o}i(Go).i=function(){return this.hc_1};i(Go).o9=function(){var t=this.ic_1;if(t===this.gc_1){if(!this.hc_1)throw Ce();this.hc_1=!1}else this.ic_1=this.ic_1+this.fc_1|0;return Sa(t)};function Nu(){}i(Nu).s=function(t,e,n){return new Kn(t,e,n)};var ed;function Kn(t,e,n){if(n===0)throw Pt("Step must be non-zero.");if(n===-2147483648)throw Pt("Step must be greater than Int.MIN_VALUE to avoid overflow on negation.");this.qb_1=t,this.rb_1=Yh(t,e,n),this.sb_1=n}i(Kn).h=function(){return new Qo(this.qb_1,this.rb_1,this.sb_1)};i(Kn).l=function(){return this.sb_1>0?this.qb_1>this.rb_1:this.qb_1<this.rb_1};i(Kn).equals=function(t){var e;return t instanceof Kn?e=this.l()&&t.l()||this.qb_1===t.qb_1&&this.rb_1===t.rb_1&&this.sb_1===t.sb_1:e=!1,e};i(Kn).hashCode=function(){return this.l()?-1:gt(31,gt(31,this.qb_1)+this.rb_1|0)+this.sb_1|0};i(Kn).toString=function(){return this.sb_1>0?""+this.qb_1+".."+this.rb_1+" step "+this.sb_1:""+this.qb_1+" downTo "+this.rb_1+" step "+(-this.sb_1|0)};function Mm(){}function Sr(t,e,n){if(n===0)throw Pt("Step must be non-zero.");if(n===-2147483648)throw Pt("Step must be greater than Int.MIN_VALUE to avoid overflow on negation.");this.yb_1=t;var r=this,a=ze(t),o=ze(e);r.zb_1=Sa(Yh(a,o,n)),this.ac_1=n}i(Sr).h=function(){return new Go(this.yb_1,this.zb_1,this.ac_1)};i(Sr).l=function(){return this.ac_1>0?ee(this.yb_1,this.zb_1)>0:ee(this.yb_1,this.zb_1)<0};i(Sr).equals=function(t){var e;return t instanceof Sr?e=this.l()&&t.l()||this.yb_1===t.yb_1&&this.zb_1===t.zb_1&&this.ac_1===t.ac_1:e=!1,e};i(Sr).hashCode=function(){var t;if(this.l())t=-1;else{var e=this.yb_1,n=ze(e),r=gt(31,n),a=this.zb_1,o=ze(a);t=gt(31,r+o|0)+this.ac_1|0}return t};i(Sr).toString=function(){return this.ac_1>0?Kt(this.yb_1)+".."+Kt(this.zb_1)+" step "+this.ac_1:Kt(this.yb_1)+" downTo "+Kt(this.zb_1)+" step "+(-this.ac_1|0)};function nd(t,e,n){n!=null?t.e(n(e)):e==null||de(e)?t.e(e):e instanceof nt?t.b6(e.x_1):t.e(Tt(e))}function rd(t,e,n){if(n=n===u?!1:n,t===e)return!0;if(!n)return!1;var r=Ec(t),a=Ec(e),o;if(r===a)o=!0;else{var s=Kt(r).toLowerCase(),l=L(s,0),c=Kt(a).toLowerCase();o=l===L(c,0)}return o}function id(t){return Iu(t,10)}function Iu(t,e){Oh(e);var n=t.length;if(n===0)return null;var r,a,o,s=L(t,0);if(ee(s,48)<0){if(n===1)return null;if(r=1,s===45)a=!0,o=-2147483648;else if(s===43)a=!1,o=-2147483647;else return null}else r=0,a=!1,o=-2147483647;var l=-59652323,c=l,f=0,h=r;if(h<n)do{var d=h;h=h+1|0;var v=im(L(t,d),e);if(v<0)return null;if(f<c)if(c===l){if(c=o/e|0,f<c)return null}else return null;if(f=gt(f,e),f<(o+v|0))return null;f=f-v|0}while(h<n);return a?f:-f|0}function ad(t){throw Nh("Invalid number format: '"+t+"'")}function qu(t,e,n){n=n===u?!1:n;var r,a;return n?a=!1:a=typeof t=="string",a?r=typeof e=="string":r=!1,r?gu(t,e):eo(t,0,e,0,A(e),n)}function Au(t,e,n){n=n===u?!1:n;var r;return typeof e=="string"?r=tl(t,e,u,n)>=0:r=od(t,e,0,A(t),n)>=0,r}function Jo(t,e,n){n=n===u?!1:n;var r,a;return n?a=!1:a=typeof t=="string",a?r=typeof e=="string":r=!1,r?zh(t,e):eo(t,A(t)-A(e)|0,e,0,A(e),n)}function Lm(t){var e;t:{for(var n=0;n<A(t);){var r=L(t,n);if(n=n+1|0,!Lh(r)){e=!1;break t}}e=!0}return e}function Ge(t,e,n){return n=n===u?!1:n,jm(t,e,u,n)>=0}function Xo(t,e,n,r){r=r===u?!1:r;var a,o;return r?o=!1:o=typeof t=="string",o?a=typeof e=="string":a=!1,a?fm(t,e,n):eo(t,n,e,0,A(e),r)}function tl(t,e,n,r){n=n===u?0:n,r=r===u?!1:r;var a,o;return r?o=!0:o=typeof t!="string",o?a=od(t,e,n,A(t),r):a=t.indexOf(e,n),a}function eo(t,e,n,r,a,o){if(r<0||e<0||e>(A(t)-a|0)||r>(A(n)-a|0))return!1;var s=0;if(s<a)do{var l=s;if(s=s+1|0,!rd(L(t,e+l|0),L(n,r+l|0),o))return!1}while(s<a);return!0}function od(t,e,n,r,a,o){o=o===u?!1:o;var s=o?up(ba(n,sd(t)),po(r,0)):c_(po(n,0),ba(r,A(t))),l;if(typeof t=="string"?l=typeof e=="string":l=!1,l){var c=s.qb_1,f=s.rb_1,h=s.sb_1;if(h>0&&c<=f||h<0&&f<=c)do{var d=c;if(c=c+h|0,Ro(e,0,t,d,A(e),a))return d}while(d!==f)}else{var v=s.qb_1,y=s.rb_1,_=s.sb_1;if(_>0&&v<=y||_<0&&y<=v)do{var m=v;if(v=v+_|0,eo(e,0,t,m,A(e),a))return m}while(m!==y)}return-1}function Om(t){var e=0,n=A(t)-1|0,r=!1;t:for(;e<=n;){var a=r?n:e,o=Lh(L(t,a));if(!r)o?e=e+1|0:r=!0;else if(o)n=n-1|0;else break t}return un(t,e,n+1|0)}function jm(t,e,n,r){n=n===u?0:n,r=r===u?!1:r;var a,o;if(r?o=!0:o=typeof t!="string",o){var s=Np([e]);a=zm(t,s,n,r)}else{var l=Kt(e);a=t.indexOf(l,n)}return a}function sd(t){return A(t)-1|0}function zm(t,e,n,r){n=n===u?0:n,r=r===u?!1:r;var a;if(!r&&e.length===1?a=typeof t=="string":a=!1,a){var o=Yv(e),s=Kt(o);return t.indexOf(s,n)}var l=po(n,0),c=sd(t);if(l<=c)do{var f=l;l=l+1|0;var h=L(t,f),d;t:{for(var v=0,y=e.length;v<y;){var _=e[v];if(v=v+1|0,rd(_,h,r)){d=!0;break t}}d=!1}if(d)return f}while(f!==c);return-1}function Fm(t,e){var n;if(t!=null&&typeof t=="string"?n=e!=null?typeof e=="string":!1:n=!1,n)return E(t,e);if(t===e)return!0;if(t==null||e==null||A(t)!==A(e))return!1;var r=0,a=A(t);if(r<a)do{var o=r;if(r=r+1|0,L(t,o)!==L(e,o))return!1}while(r<a);return!0}function no(t){this.jc_1=t,this.kc_1=Yo}i(no).r1=function(){this.kc_1===Yo&&(this.kc_1=Pe(this.jc_1)(),this.jc_1=null);var t=this.kc_1;return t==null||t!=null?t:S()};i(no).lc=function(){return this.kc_1!==Yo};i(no).toString=function(){return this.lc()?Tt(this.r1()):"Lazy value not initialized yet."};function ld(){}var Yo;function Dm(t){var e=t;return e instanceof $r}function Bm(t){var e;return t instanceof $r?e=t.mc_1:e=null,e}function Km(){}function $r(t){this.mc_1=t}i($r).equals=function(t){var e;return t instanceof $r?e=E(this.mc_1,t.mc_1):e=!1,e};i($r).hashCode=function(){return ot(this.mc_1)};i($r).toString=function(){return"Failure("+this.mc_1.toString()+")"};function Um(t){return new $r(t)}function Wm(t){var e=t;if(e instanceof $r)throw t.mc_1}function el(t){t=t===u?"An operation is not implemented.":t,k0(t,this),B(this,el)}function In(t,e){this.nc_1=t,this.oc_1=e}i(In).toString=function(){return"("+Tt(this.nc_1)+", "+Tt(this.oc_1)+")"};i(In).pc=function(){return this.nc_1};i(In).qc=function(){return this.oc_1};i(In).hashCode=function(){var t=this.nc_1==null?0:ot(this.nc_1);return t=gt(t,31)+(this.oc_1==null?0:ot(this.oc_1))|0,t};i(In).equals=function(t){if(this===t)return!0;if(!(t instanceof In))return!1;var e=t instanceof In?t:S();return!(!E(this.nc_1,e.nc_1)||!E(this.oc_1,e.oc_1))};function Pc(t,e){return new In(t,e)}i(_e).asJsReadonlyArrayView=uf;i(ke).p4=Jv;i(se).asJsReadonlyArrayView=uf;ut=new jl;lo=null;Wa=new hh;ph=new Xi;vn=new Vr;yu=new Mo;aa=new ki;Wo=new Za;Jh=new Gh;ed=new Nu;Yo=new ld;var D=Math.imul;Ke(rn,"Stringify");function Tu(){return this.uc()-this.tc()|0}Ke(os,"Position",u,u,[rn]);w(We,"Expression",u,u,[os]);w(ct,"BinaryExpression",u,We);w(Zo,"sam$kotlin_Comparator$0");me(Ia);w(U,"CompareOperator",u,u,[rn]);it(zn,"Equal",u,U);it(rr,"NotEqual",u,U);it(ir,"Start",u,U);it(ar,"NotStart",u,U);it(or,"Include",u,U);it(sr,"NotInclude",u,U);it(lr,"End",u,U);it(ur,"NotEnd",u,U);it(cr,"Less",u,U);it(fr,"LessEqual",u,U);it(hr,"More",u,U);it(dr,"MoreEqual",u,U);it(vr,"Matches",u,U);it(pr,"NotMatches",u,U);w(Si,"ConnectExpression",u,u,[rn]);w(ns,"sam$kotlin_Comparator$0");me(qa);w(ge,"ConnectOperator",u,u,[rn]);it(Rr,"BeforeBrother",u,ge);it(Mr,"AfterBrother",u,ge);it(Lr,"Ancestor",u,ge);it(Or,"Child",u,ge);it(jr,"Descendant",u,ge);w(fe,"ConnectSegment",fe,u,[rn]);w(qe,"ConnectWrapper",u,u,[rn]);w(Jt,"Context");w(le,"SelectorCheckException",u,wn);w(tn,"UnknownIdentifierException",u,le);w(en,"UnknownMemberException",u,le);w(He,"UnknownIdentifierMethodException",u,le);w(Ve,"UnknownMemberMethodException",u,le);w(ie,"MismatchParamTypeException",u,le);w(we,"MismatchExpressionTypeException",u,le);w(nn,"MismatchOperatorTypeException",u,le);w(Fe,"FastQuery",u,u,[rn]);w(cn,"Id",u,Fe);w(fn,"Vid",u,Fe);w(hn,"Text",u,Fe);w(ft,"LogicalExpression",u,We);w(as,"sam$kotlin_Comparator$0");me(Aa);w(Tn,"LogicalOperator",u,u,[rn]);it(zr,"AndOperator",u,Tn);it(Fr,"OrOperator",u,Tn);w(De,"MatchOption",De);w(Xt,"NotExpression",u,We);w(It,"PolynomialExpression",It,Si);w(Ut,"PositionImpl",u,u,[os]);w(ae,"PropertySegment",u,u,[rn]);w(Yt,"PropertyWrapper",u,u,[rn]);me(ss);w(xe,"Selector",u,u,[rn]);w(oe,"SyntaxError",u,wn);me(zu);Fa(ui,Re,u,[1]);Fa(ci,Re,u,[1]);Fa(fi,Re,u,[1]);Fa(hi,Re,u,[1]);Fa(di,Re,u,[1]);w(wt,"Transform");w(Ae,"TupleExpression",u,Si);w(an,"PrimitiveType");it(ri,"BooleanType",u,an);it(ii,"IntType",u,an);it(ai,"StringType",u,an);w(Be,"ObjectType",u,an);w(W,"MethodInfo",u,u,[rn]);w(X,"PropInfo");w(Bt,"TypeInfo",u,u,[rn]);w(Zt,"ValueExpression",u,u,[os]);w(Me,"Variable",u,Zt);w(Ct,"Identifier",u,Me);w(vt,"MemberExpression",u,Me);w(xt,"CallExpression",u,Me);w(Je,"LiteralExpression",u,Zt);w(Te,"NullLiteral",u,Je);w(he,"BooleanLiteral",u,Je);w(Wt,"IntLiteral",u,Je);w(pt,"StringLiteral",u,Je);w(Ft,"Parser");w(qt,"ParserResult");it(io,"ParserSet");w(Gr,"DefaultTypeInfo");function ct(t,e,n,r,a){We.call(this),this.rc_1=t,this.sc_1=e,this.left=n,this.operator=r,this.right=a}i(ct).tc=function(){return this.rc_1};i(ct).uc=function(){return this.sc_1};i(ct).vc=function(){return this.left};i(ct).wc=function(){return this.operator};i(ct).xc=function(){return this.right};i(ct).match=function(t,e){return this.operator.value.ad(t,e,this.left,this.right)};i(ct).bd=function(){return[this]};i(ct).stringify=function(){return this.left.stringify()+this.operator.stringify()+this.right.stringify()};i(ct).cd=function(){return tr([this.left.properties,this.right.properties])};i(ct).dd=function(){return tr([this.left.methods,this.right.methods])};i(ct).pc=function(){return this.rc_1};i(ct).qc=function(){return this.sc_1};i(ct).ed=function(){return this.left};i(ct).fd=function(){return this.operator};i(ct).gd=function(){return this.right};i(ct).hd=function(t,e,n,r,a){return new ct(t,e,n,r,a)};i(ct).copy=function(t,e,n,r,a,o){return t=t===u?this.rc_1:t,e=e===u?this.sc_1:e,n=n===u?this.left:n,r=r===u?this.operator:r,a=a===u?this.right:a,this.hd(t,e,n,r,a)};i(ct).toString=function(){return"BinaryExpression(start="+this.rc_1+", end="+this.sc_1+", left="+j(this.left)+", operator="+this.operator.toString()+", right="+j(this.right)+")"};i(ct).hashCode=function(){var t=this.rc_1;return t=D(t,31)+this.sc_1|0,t=D(t,31)+ot(this.left)|0,t=D(t,31)+this.operator.hashCode()|0,t=D(t,31)+ot(this.right)|0,t};i(ct).equals=function(t){if(this===t)return!0;if(!(t instanceof ct))return!1;var e=t instanceof ct?t:S();return!(this.rc_1!==e.rc_1||this.sc_1!==e.sc_1||!E(this.left,e.left)||!this.operator.equals(e.operator)||!E(this.right,e.right))};function Hm(t,e,n){if(t===n)return!0;if(A(t)!==A(n))return!1;var r=A(t)-1|0;if(0<=r)do{var a=r;if(r=r+-1|0,L(t,a)!==L(n,a))return!1}while(0<=r);return!0}function Zo(t){this.id_1=t}i(Zo).b9=function(t,e){return this.id_1(t,e)};i(Zo).compare=function(t,e){return this.b9(t,e)};function Vm(){var t=bu([nr(),ud(),Qr(),cd(),Pu(),fd(),Ru(),hd(),ro(),dd(),vd(),pd(),es(),Mu()]),e=Qm,n=new Zo(e),r=Kl(t,n);return gn(r)}function Qm(t,e){var n=-t.key.length|0,r=-e.key.length|0;return Vo(n,r)}function Ia(){nl=this;var t=this;t.jd_1=Ea(Vm)}i(Ia).kd=function(){var t=this.jd_1;return Gm(),t.r1()};var nl;function ts(){return nl==null&&new Ia,nl}function zn(){rl=this,U.call(this,"=")}i(zn).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e);return this.compare(a,o)};i(zn).od=function(t,e){return!0};i(zn).compare=function(t,e){var n,r;return t!=null&&de(t)?r=e!=null?de(e):!1:r=!1,r?n=Hm(t,ts(),e):n=E(t,e),n};i(zn).toString=function(){return"Equal"};i(zn).hashCode=function(){return 717536815};i(zn).equals=function(t){return this===t?!0:t instanceof zn?(t instanceof zn||S(),!0):!1};var rl;function nr(){return rl==null&&new zn,rl}function rr(){il=this,U.call(this,"!=")}i(rr).ad=function(t,e,n,r){return!nr().ad(t,e,n,r)};i(rr).od=function(t,e){return!0};i(rr).toString=function(){return"NotEqual"};i(rr).hashCode=function(){return 1058184006};i(rr).equals=function(t){return this===t?!0:t instanceof rr?(t instanceof rr||S(),!0):!1};var il;function ud(){return il==null&&new rr,il}function ir(){al=this,U.call(this,"^=")}i(ir).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&de(a)?l=o!=null?de(o):!1:l=!1,l?s=qu(a,o):s=!1,s};i(ir).od=function(t,e){var n,r;if(t instanceof pt?r=!0:r=t instanceof Me,r){var a;e instanceof pt?a=!0:a=e instanceof Me,n=a}else n=!1;return n};i(ir).toString=function(){return"Start"};i(ir).hashCode=function(){return 730536797};i(ir).equals=function(t){return this===t?!0:t instanceof ir?(t instanceof ir||S(),!0):!1};var al;function Qr(){return al==null&&new ir,al}function ar(){ol=this,U.call(this,"!^=")}i(ar).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&de(a)?l=o!=null?de(o):!1:l=!1,l?s=!qu(a,o):s=!1,s};i(ar).od=function(t,e){return Qr().od(t,e)};i(ar).toString=function(){return"NotStart"};i(ar).hashCode=function(){return 1071183988};i(ar).equals=function(t){return this===t?!0:t instanceof ar?(t instanceof ar||S(),!0):!1};var ol;function cd(){return ol==null&&new ar,ol}function or(){sl=this,U.call(this,"*=")}i(or).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&de(a)?l=o!=null?de(o):!1:l=!1,l?s=Au(a,o):s=!1,s};i(or).od=function(t,e){return Qr().od(t,e)};i(or).toString=function(){return"Include"};i(or).hashCode=function(){return 1510988003};i(or).equals=function(t){return this===t?!0:t instanceof or?(t instanceof or||S(),!0):!1};var sl;function Pu(){return sl==null&&new or,sl}function sr(){ll=this,U.call(this,"!*=")}i(sr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&de(a)?l=o!=null?de(o):!1:l=!1,l?s=!Au(a,o):s=!1,s};i(sr).od=function(t,e){return Qr().od(t,e)};i(sr).toString=function(){return"NotInclude"};i(sr).hashCode=function(){return-1839543238};i(sr).equals=function(t){return this===t?!0:t instanceof sr?(t instanceof sr||S(),!0):!1};var ll;function fd(){return ll==null&&new sr,ll}function lr(){ul=this,U.call(this,"$=")}i(lr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&de(a)?l=o!=null?de(o):!1:l=!1,l?s=Jo(a,o):s=!1,s};i(lr).od=function(t,e){return Qr().od(t,e)};i(lr).toString=function(){return"End"};i(lr).hashCode=function(){return 1234264726};i(lr).equals=function(t){return this===t?!0:t instanceof lr?(t instanceof lr||S(),!0):!1};var ul;function Ru(){return ul==null&&new lr,ul}function ur(){cl=this,U.call(this,"!$=")}i(ur).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&de(a)?l=o!=null?de(o):!1:l=!1,l?s=!Jo(a,o):s=!1,s};i(ur).od=function(t,e){return Qr().od(t,e)};i(ur).toString=function(){return"NotEnd"};i(ur).hashCode=function(){return 1024563565};i(ur).equals=function(t){return this===t?!0:t instanceof ur?(t instanceof ur||S(),!0):!1};var cl;function hd(){return cl==null&&new ur,cl}function cr(){fl=this,U.call(this,"<")}i(cr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&typeof a=="number"?l=o!=null?typeof o=="number":!1:l=!1,l?s=a<o:s=!1,s};i(cr).od=function(t,e){var n,r;if(t instanceof Me?r=!0:r=t instanceof Wt,r){var a;e instanceof Wt?a=!0:a=e instanceof Me,n=a}else n=!1;return n};i(cr).toString=function(){return"Less"};i(cr).hashCode=function(){return-392298690};i(cr).equals=function(t){return this===t?!0:t instanceof cr?(t instanceof cr||S(),!0):!1};var fl;function ro(){return fl==null&&new cr,fl}function fr(){hl=this,U.call(this,"<=")}i(fr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&typeof a=="number"?l=o!=null?typeof o=="number":!1:l=!1,l?s=a<=o:s=!1,s};i(fr).od=function(t,e){return ro().od(t,e)};i(fr).toString=function(){return"LessEqual"};i(fr).hashCode=function(){return-2095624554};i(fr).equals=function(t){return this===t?!0:t instanceof fr?(t instanceof fr||S(),!0):!1};var hl;function dd(){return hl==null&&new fr,hl}function hr(){dl=this,U.call(this,">")}i(hr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&typeof a=="number"?l=o!=null?typeof o=="number":!1:l=!1,l?s=a>o:s=!1,s};i(hr).od=function(t,e){return ro().od(t,e)};i(hr).toString=function(){return"More"};i(hr).hashCode=function(){return-392259334};i(hr).equals=function(t){return this===t?!0:t instanceof hr?(t instanceof hr||S(),!0):!1};var dl;function vd(){return dl==null&&new hr,dl}function dr(){vl=this,U.call(this,">=")}i(dr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&typeof a=="number"?l=o!=null?typeof o=="number":!1:l=!1,l?s=a>=o:s=!1,s};i(dr).od=function(t,e){return ro().od(t,e)};i(dr).toString=function(){return"MoreEqual"};i(dr).hashCode=function(){return-648189350};i(dr).equals=function(t){return this===t?!0:t instanceof dr?(t instanceof dr||S(),!0):!1};var vl;function pd(){return vl==null&&new dr,vl}function vr(){pl=this,U.call(this,"~=")}i(vr).ad=function(t,e,n,r){var a=n.nd(t,e),o,s;return a!=null&&de(a)?s=r instanceof pt:s=!1,s?o=r.xd_1(a):o=!1,o};i(vr).od=function(t,e){var n;if(t instanceof Me){var r;e instanceof pt?r=e.wd_1!=null:r=!1,n=r}else n=!1;return n};i(vr).toString=function(){return"Matches"};i(vr).hashCode=function(){return 409275758};i(vr).equals=function(t){return this===t?!0:t instanceof vr?(t instanceof vr||S(),!0):!1};var pl;function es(){return pl==null&&new vr,pl}function pr(){_l=this,U.call(this,"!~=")}i(pr).ad=function(t,e,n,r){var a=n.nd(t,e),o,s;return a!=null&&de(a)?s=r instanceof pt:s=!1,s?o=!r.xd_1(a):o=!1,o};i(pr).od=function(t,e){return es().od(t,e)};i(pr).toString=function(){return"NotMatches"};i(pr).hashCode=function(){return 1353711813};i(pr).equals=function(t){return this===t?!0:t instanceof pr?(t instanceof pr||S(),!0):!1};var _l;function Mu(){return _l==null&&new pr,_l}function U(t){ts(),this.key=t}i(U).q1=function(){return this.key};i(U).stringify=function(){return this.key};function Gm(){return Da("allSubClasses",1,Po,function(t){return t.allSubClasses},null)}function Si(){}function ns(t){this.ae_1=t}i(ns).b9=function(t,e){return this.ae_1(t,e)};i(ns).compare=function(t,e){return this.b9(t,e)};function Jm(){var t=bu([_d(),md(),bo(),gd(),is()]),e=Xm,n=new ns(e);return Kl(t,n)}function Xm(t,e){var n=-t.key.length|0,r=-e.key.length|0;return Vo(n,r)}function qa(){ml=this;var t=this;t.be_1=Ea(Jm)}i(qa).kd=function(){var t=this.be_1;return Ym(),t.r1()};var ml;function rs(){return ml==null&&new qa,ml}function Rr(){gl=this,ge.call(this,"+")}i(Rr).ce=function(t,e,n){return e.traverseBeforeBrothers(t,n)};i(Rr).toString=function(){return"BeforeBrother"};i(Rr).hashCode=function(){return 1632618113};i(Rr).equals=function(t){return this===t?!0:t instanceof Rr?(t instanceof Rr||S(),!0):!1};var gl;function _d(){return gl==null&&new Rr,gl}function Mr(){yl=this,ge.call(this,"-")}i(Mr).ce=function(t,e,n){return e.traverseAfterBrothers(t,n)};i(Mr).toString=function(){return"AfterBrother"};i(Mr).hashCode=function(){return 1215887620};i(Mr).equals=function(t){return this===t?!0:t instanceof Mr?(t instanceof Mr||S(),!0):!1};var yl;function md(){return yl==null&&new Mr,yl}function Lr(){bl=this,ge.call(this,">")}i(Lr).ce=function(t,e,n){return e.traverseAncestors(t,n)};i(Lr).toString=function(){return"Ancestor"};i(Lr).hashCode=function(){return 736770963};i(Lr).equals=function(t){return this===t?!0:t instanceof Lr?(t instanceof Lr||S(),!0):!1};var bl;function bo(){return bl==null&&new Lr,bl}function Or(){wl=this,ge.call(this,"<")}i(Or).ce=function(t,e,n){return e.traverseChildren(t,n)};i(Or).toString=function(){return"Child"};i(Or).hashCode=function(){return-1105093796};i(Or).equals=function(t){return this===t?!0:t instanceof Or?(t instanceof Or||S(),!0):!1};var wl;function gd(){return wl==null&&new Or,wl}function jr(){kl=this,ge.call(this,"<<")}i(jr).ce=function(t,e,n){return e.traverseDescendants(t,n)};i(jr).toString=function(){return"Descendant"};i(jr).hashCode=function(){return 2093403837};i(jr).equals=function(t){return this===t?!0:t instanceof jr?(t instanceof jr||S(),!0):!1};var kl;function is(){return kl==null&&new jr,kl}function ge(t){rs(),this.key=t}i(ge).q1=function(){return this.key};i(ge).stringify=function(){return this.key};function Ym(){return Da("allSubClasses",1,Po,function(t){return t.allSubClasses},null)}function fe(t,e){t=t===u?bo():t,e=e===u?new It:e,this.operator=t,this.connectExpression=e;var n=this,r,a,o;if(E(this.operator,bo())){var s=this.connectExpression;o=s instanceof It}else o=!1;o?a=this.connectExpression.a===1:a=!1,a?r=this.connectExpression.b===0:r=!1,n.isMatchAnyAncestor=r;var l=this,c,f,h;if(E(this.operator,is())){var d=this.connectExpression;h=d instanceof It}else h=!1;h?f=this.connectExpression.a===1:f=!1,f?c=this.connectExpression.b===0:c=!1,l.isMatchAnyDescendant=c}i(fe).wc=function(){return this.operator};i(fe).he=function(){return this.connectExpression};i(fe).stringify=function(){return this.isMatchAnyAncestor?"":this.operator.stringify()+this.connectExpression.stringify()};i(fe).ie=function(t,e){return this.operator.ce(t,e,this.connectExpression)};i(fe).je=function(){return this.isMatchAnyAncestor};i(fe).ke=function(){return this.isMatchAnyDescendant};i(fe).pc=function(){return this.operator};i(fe).qc=function(){return this.connectExpression};i(fe).le=function(t,e){return new fe(t,e)};i(fe).copy=function(t,e,n){return t=t===u?this.operator:t,e=e===u?this.connectExpression:e,this.le(t,e)};i(fe).toString=function(){return"ConnectSegment(operator="+j(this.operator)+", connectExpression="+j(this.connectExpression)+")"};i(fe).hashCode=function(){var t=ot(this.operator);return t=D(t,31)+ot(this.connectExpression)|0,t};i(fe).equals=function(t){if(this===t)return!0;if(!(t instanceof fe))return!1;var e=t instanceof fe?t:S();return!(!E(this.operator,e.operator)||!E(this.connectExpression,e.connectExpression))};function qe(t,e){this.segment=t,this.to=e,this.me_1=this.to.isMatchRoot&&this.segment.isMatchAnyAncestor;var n=this,r;this.segment.isMatchAnyDescendant?r=!this.to.fastQueryList.l():r=!1,n.canFq=r}i(qe).ne=function(){return this.segment};i(qe).oe=function(){return this.to};i(qe).stringify=function(){var t=this.to.stringify()+" "+this.segment.stringify();return j(Om(de(t)?t:S()))};i(qe).matchContext=function(t,e,n){if(this.me_1){var r=e.getRoot(t.current),a;if(r==null)return null;a=r;var o=a;return this.to.matchContext(t.next(o),e,n)}if(this.canFq&&n.fastQuery)for(var s=e.traverseFastQueryDescendants(t.current,this.to.fastQueryList).h();s.i();){var l=s.j(),c=this.to.matchContext(t.next(l),e,n);if(c!=null)return c}else for(var f=this.segment.ie(t.current,e).h();f.i();){var h=f.j();t:{if(h==null)break t;var d=this.to.matchContext(t.next(h),e,n);if(d!=null)return d}}return null};i(qe).pe=function(){return this.canFq};i(qe).pc=function(){return this.segment};i(qe).qc=function(){return this.to};i(qe).qe=function(t,e){return new qe(t,e)};i(qe).copy=function(t,e,n){return t=t===u?this.segment:t,e=e===u?this.to:e,this.qe(t,e)};i(qe).toString=function(){return"ConnectWrapper(segment="+this.segment.toString()+", to="+this.to.toString()+")"};i(qe).hashCode=function(){var t=this.segment.hashCode();return t=D(t,31)+this.to.hashCode()|0,t};i(qe).equals=function(t){if(this===t)return!0;if(!(t instanceof qe))return!1;var e=t instanceof qe?t:S();return!(!this.segment.equals(e.segment)||!this.to.equals(e.to))};function Jt(t,e){e=e===u?null:e,this.current=t,this.prev=e}i(Jt).re=function(){return this.current};i(Jt).se=function(){return this.prev};i(Jt).getPrev=function(t){if(t<0)return null;var e=this.prev,n;if(e==null)return null;n=e;var r=n,a=0;if(a<t)do{a=a+1|0;var o=r.prev,s;if(o==null)return null;s=o,r=s}while(a<t);return r};i(Jt).get=function(t){if(t===0)return this;var e=this.getPrev(t-1|0),n;if(e==null)throw uu();return n=e,n};i(Jt).toList=function(){for(var t=Dh([this.current]),e=this.prev;e!=null;)t.f(e.current),e=e.prev;return t};i(Jt).toArray=function(){var t=this.toList(),e=et(t,Un)?t:S(),n=gn(e);return Ji(n)?n:S()};i(Jt).next=function(t){return new Jt(t,this)};i(Jt).pc=function(){return this.current};i(Jt).qc=function(){return this.prev};i(Jt).te=function(t,e){return new Jt(t,e)};i(Jt).copy=function(t,e,n){return t=t===u?this.current:t,e=e===u?this.prev:e,this.te(t,e)};i(Jt).toString=function(){return"Context(current="+Tt(this.current)+", prev="+Tt(this.prev)+")"};i(Jt).hashCode=function(){var t=this.current==null?0:ot(this.current);return t=D(t,31)+(this.prev==null?0:this.prev.hashCode())|0,t};i(Jt).equals=function(t){if(this===t)return!0;if(!(t instanceof Jt))return!1;var e=t instanceof Jt?t:S();return!(!E(this.current,e.current)||!E(this.prev,e.prev))};function le(t){No(t,this),B(this,le),this.ue_1=t}i(le).i7=function(){return this.ue_1};function tn(t){le.call(this,"Unknown Identifier: "+t.name),B(this,tn),this.value=t}i(tn).r1=function(){return this.value};i(tn).pc=function(){return this.value};i(tn).bf=function(t){return new tn(t)};i(tn).copy=function(t,e){return t=t===u?this.value:t,this.bf(t)};i(tn).toString=function(){return"UnknownIdentifierException(value="+this.value.toString()+")"};i(tn).hashCode=function(){return this.value.hashCode()};i(tn).equals=function(t){if(this===t)return!0;if(!(t instanceof tn))return!1;var e=t instanceof tn?t:S();return!!this.value.equals(e.value)};function en(t){le.call(this,"Unknown Member: "+t.property),B(this,en),this.value=t}i(en).r1=function(){return this.value};i(en).pc=function(){return this.value};i(en).if=function(t){return new en(t)};i(en).copy=function(t,e){return t=t===u?this.value:t,this.if(t)};i(en).toString=function(){return"UnknownMemberException(value="+this.value.toString()+")"};i(en).hashCode=function(){return this.value.hashCode()};i(en).equals=function(t){if(this===t)return!0;if(!(t instanceof en))return!1;var e=t instanceof en?t:S();return!!this.value.equals(e.value)};function He(t){le.call(this,"Unknown Identifier Method: "+t.name),B(this,He),this.value=t}i(He).r1=function(){return this.value};i(He).pc=function(){return this.value};i(He).bf=function(t){return new He(t)};i(He).copy=function(t,e){return t=t===u?this.value:t,this.bf(t)};i(He).toString=function(){return"UnknownIdentifierMethodException(value="+this.value.toString()+")"};i(He).hashCode=function(){return this.value.hashCode()};i(He).equals=function(t){if(this===t)return!0;if(!(t instanceof He))return!1;var e=t instanceof He?t:S();return!!this.value.equals(e.value)};function Ve(t){le.call(this,"Unknown Member Method: "+t.property),B(this,Ve),this.value=t}i(Ve).r1=function(){return this.value};i(Ve).pc=function(){return this.value};i(Ve).if=function(t){return new Ve(t)};i(Ve).copy=function(t,e){return t=t===u?this.value:t,this.if(t)};i(Ve).toString=function(){return"UnknownMemberMethodException(value="+this.value.toString()+")"};i(Ve).hashCode=function(){return this.value.hashCode()};i(Ve).equals=function(t){if(this===t)return!0;if(!(t instanceof Ve))return!1;var e=t instanceof Ve?t:S();return!!this.value.equals(e.value)};function ie(t,e,n){le.call(this,"Mismatch Param Type: "+Tt(e.value)+" should be "+n.key),B(this,ie),this.call=t,this.argument=e,this.type=n}i(ie).mf=function(){return this.call};i(ie).nf=function(){return this.argument};i(ie).of=function(){return this.type};i(ie).pc=function(){return this.call};i(ie).qc=function(){return this.argument};i(ie).ed=function(){return this.type};i(ie).pf=function(t,e,n){return new ie(t,e,n)};i(ie).copy=function(t,e,n,r){return t=t===u?this.call:t,e=e===u?this.argument:e,n=n===u?this.type:n,this.pf(t,e,n)};i(ie).toString=function(){return"MismatchParamTypeException(call="+this.call.toString()+", argument="+j(this.argument)+", type="+j(this.type)+")"};i(ie).hashCode=function(){var t=this.call.hashCode();return t=D(t,31)+ot(this.argument)|0,t=D(t,31)+ot(this.type)|0,t};i(ie).equals=function(t){if(this===t)return!0;if(!(t instanceof ie))return!1;var e=t instanceof ie?t:S();return!(!this.call.equals(e.call)||!E(this.argument,e.argument)||!E(this.type,e.type))};function we(t,e,n){le.call(this,"Mismatch Expression Type: "+t.stringify()),B(this,we),this.exception=t,this.leftType=e,this.rightType=n}i(we).rf=function(){return this.exception};i(we).sf=function(){return this.leftType};i(we).tf=function(){return this.rightType};i(we).pc=function(){return this.exception};i(we).qc=function(){return this.leftType};i(we).ed=function(){return this.rightType};i(we).uf=function(t,e,n){return new we(t,e,n)};i(we).copy=function(t,e,n,r){return t=t===u?this.exception:t,e=e===u?this.leftType:e,n=n===u?this.rightType:n,this.uf(t,e,n)};i(we).toString=function(){return"MismatchExpressionTypeException(exception="+this.exception.toString()+", leftType="+j(this.leftType)+", rightType="+j(this.rightType)+")"};i(we).hashCode=function(){var t=this.exception.hashCode();return t=D(t,31)+ot(this.leftType)|0,t=D(t,31)+ot(this.rightType)|0,t};i(we).equals=function(t){if(this===t)return!0;if(!(t instanceof we))return!1;var e=t instanceof we?t:S();return!(!this.exception.equals(e.exception)||!E(this.leftType,e.leftType)||!E(this.rightType,e.rightType))};function nn(t){le.call(this,"Mismatch Operator Type: "+t.stringify()),B(this,nn),this.exception=t}i(nn).rf=function(){return this.exception};i(nn).pc=function(){return this.exception};i(nn).wf=function(t){return new nn(t)};i(nn).copy=function(t,e){return t=t===u?this.exception:t,this.wf(t)};i(nn).toString=function(){return"MismatchOperatorTypeException(exception="+this.exception.toString()+")"};i(nn).hashCode=function(){return this.exception.hashCode()};i(nn).equals=function(t){if(this===t)return!0;if(!(t instanceof nn))return!1;var e=t instanceof nn?t:S();return!!this.exception.equals(e.exception)};function We(){}function cn(t){Fe.call(this,t),this.yf_1=t}i(cn).r1=function(){return this.yf_1};i(cn).pc=function(){return this.yf_1};i(cn).zf=function(t){return new cn(t)};i(cn).copy=function(t,e){return t=t===u?this.yf_1:t,this.zf(t)};i(cn).toString=function(){return"Id(value="+this.yf_1+")"};i(cn).hashCode=function(){return Qe(this.yf_1)};i(cn).equals=function(t){if(this===t)return!0;if(!(t instanceof cn))return!1;var e=t instanceof cn?t:S();return this.yf_1===e.yf_1};function fn(t){Fe.call(this,t),this.bg_1=t}i(fn).r1=function(){return this.bg_1};i(fn).pc=function(){return this.bg_1};i(fn).zf=function(t){return new fn(t)};i(fn).copy=function(t,e){return t=t===u?this.bg_1:t,this.zf(t)};i(fn).toString=function(){return"Vid(value="+this.bg_1+")"};i(fn).hashCode=function(){return Qe(this.bg_1)};i(fn).equals=function(t){if(this===t)return!0;if(!(t instanceof fn))return!1;var e=t instanceof fn?t:S();return this.bg_1===e.bg_1};function hn(t){Fe.call(this,t),this.dg_1=t}i(hn).r1=function(){return this.dg_1};i(hn).pc=function(){return this.dg_1};i(hn).zf=function(t){return new hn(t)};i(hn).copy=function(t,e){return t=t===u?this.dg_1:t,this.zf(t)};i(hn).toString=function(){return"Text(value="+this.dg_1+")"};i(hn).hashCode=function(){return Qe(this.dg_1)};i(hn).equals=function(t){if(this===t)return!0;if(!(t instanceof hn))return!1;var e=t instanceof hn?t:S();return this.dg_1===e.dg_1};function Fe(t){this.eg_1=t}i(Fe).r1=function(){return this.eg_1};i(Fe).stringify=function(){return this.value};function Zm(t){var e=hf(t.expressions),n;if(e==null)return null;n=e;var r=n;if(r instanceof ft){if(!E(r.operator.value,ju()))return null;var a=r.getSameExpressionArray(),o;if(a==null)return null;o=a;for(var s=o,l=Rt(),c=0,f=s.length;c<f;){var h=s[c];c=c+1|0;var d=Rc(h),v;if(d==null)return null;v=d;var y=v;l.f(y)}return l}if(r instanceof ct){var _=Rc(r),m;if(_==null)return null;m=_;var g=m;return Ba(g)}return null}function Rc(t){var e=t.left;if(!(e instanceof Ct))return null;var n=t.right;if(!(n instanceof pt))return null;var r=t.right.vd_1;return A(r)===0?null:t.left.value==="id"&&E(t.operator.value,nr())?new cn(t.right.vd_1):t.left.value==="vid"&&E(t.operator.value,nr())?new fn(t.right.vd_1):t.left.value==="text"&&(E(t.operator.value,nr())||E(t.operator.value,Qr())||E(t.operator.value,Pu())||E(t.operator.value,Ru()))?new hn(t.right.vd_1):null}function ft(t,e,n,r,a){We.call(this),this.gg_1=t,this.hg_1=e,this.left=n,this.operator=r,this.right=a}i(ft).tc=function(){return this.gg_1};i(ft).uc=function(){return this.hg_1};i(ft).vc=function(){return this.left};i(ft).wc=function(){return this.operator};i(ft).xc=function(){return this.right};i(ft).match=function(t,e){return this.operator.value.compare(t,e,this.left,this.right)};i(ft).bd=function(){var t=this.left.binaryExpressions,e=this.right.binaryExpressions;return t.concat(e)};i(ft).stringify=function(){var t,e,n=this.left;n instanceof ft?e=!E(this.left.operator.value,this.operator.value):e=!1,e?t="("+this.left.stringify()+")":t=this.left.stringify();var r=t,a,o,s=this.right;s instanceof ft?o=!E(this.right.operator.value,this.operator.value):o=!1,o?a="("+this.right.stringify()+")":a=this.right.stringify();var l=a;return r+" "+this.operator.stringify()+" "+l};i(ft).getSameExpressionArray=function(){var t,e=this.left;if(e instanceof ft?t=!E(this.left.operator.value,this.operator.value):t=!1,t)return null;var n,r=this.right;if(r instanceof ft?n=!E(this.right.operator.value,this.operator.value):n=!1,n)return null;var a=this.left,o;if(a instanceof ct){var s=this.right,l;if(s instanceof ct)l=[this.left,this.right];else if(s instanceof ft){var c=[this.left],f=this.right.getSameExpressionArray(),h;if(f==null)return null;h=f;var d=h;l=c.concat(d)}else s instanceof Xt?l=null:Nn();o=l}else if(a instanceof ft){var v=this.left.getSameExpressionArray(),y;if(v==null)return null;y=v;var _=y,m=this.right,g;if(m instanceof ct){var p=[this.right];g=_.concat(p)}else if(m instanceof ft){var C=this.right.getSameExpressionArray(),k;if(C==null)return null;k=C;var x=k;return _.concat(x)}else m instanceof Xt?g=null:Nn();o=g}else a instanceof Xt?o=null:Nn();return o};i(ft).pc=function(){return this.gg_1};i(ft).qc=function(){return this.hg_1};i(ft).ed=function(){return this.left};i(ft).fd=function(){return this.operator};i(ft).gd=function(){return this.right};i(ft).ig=function(t,e,n,r,a){return new ft(t,e,n,r,a)};i(ft).copy=function(t,e,n,r,a,o){return t=t===u?this.gg_1:t,e=e===u?this.hg_1:e,n=n===u?this.left:n,r=r===u?this.operator:r,a=a===u?this.right:a,this.ig(t,e,n,r,a)};i(ft).toString=function(){return"LogicalExpression(start="+this.gg_1+", end="+this.hg_1+", left="+j(this.left)+", operator="+this.operator.toString()+", right="+j(this.right)+")"};i(ft).hashCode=function(){var t=this.gg_1;return t=D(t,31)+this.hg_1|0,t=D(t,31)+ot(this.left)|0,t=D(t,31)+this.operator.hashCode()|0,t=D(t,31)+ot(this.right)|0,t};i(ft).equals=function(t){if(this===t)return!0;if(!(t instanceof ft))return!1;var e=t instanceof ft?t:S();return!(this.gg_1!==e.gg_1||this.hg_1!==e.hg_1||!E(this.left,e.left)||!this.operator.equals(e.operator)||!E(this.right,e.right))};function as(t){this.jg_1=t}i(as).b9=function(t,e){return this.jg_1(t,e)};i(as).compare=function(t,e){return this.b9(t,e)};function tg(){var t=bu([Ou(),ju()]),e=eg,n=new as(e);return Kl(t,n)}function eg(t,e){var n=-t.key.length|0,r=-e.key.length|0;return Vo(n,r)}function Aa(){Cl=this;var t=this;t.kg_1=Ea(tg)}i(Aa).kd=function(){var t=this.kg_1;return ng(),t.r1()};var Cl;function Lu(){return Cl==null&&new Aa,Cl}function zr(){xl=this,Tn.call(this,"&&")}i(zr).compare=function(t,e,n,r){return n.match(t,e)&&r.match(t,e)};i(zr).toString=function(){return"AndOperator"};i(zr).hashCode=function(){return-772304006};i(zr).equals=function(t){return this===t?!0:t instanceof zr?(t instanceof zr||S(),!0):!1};var xl;function Ou(){return xl==null&&new zr,xl}function Fr(){Sl=this,Tn.call(this,"||")}i(Fr).compare=function(t,e,n,r){return n.match(t,e)||r.match(t,e)};i(Fr).toString=function(){return"OrOperator"};i(Fr).hashCode=function(){return-302302232};i(Fr).equals=function(t){return this===t?!0:t instanceof Fr?(t instanceof Fr||S(),!0):!1};var Sl;function ju(){return Sl==null&&new Fr,Sl}function Tn(t){Lu(),this.key=t}i(Tn).q1=function(){return this.key};i(Tn).stringify=function(){return this.key};function ng(){return Da("allSubClasses",1,Po,function(t){return t.allSubClasses},null)}function sa(){return rg(),yd}var yd;function De(t,e){t=t===u?!1:t,e=e===u?!1:e,this.quickFind=t,this.fastQuery=e}i(De).lg=function(){return this.quickFind};i(De).mg=function(){return this.fastQuery};i(De).pc=function(){return this.quickFind};i(De).qc=function(){return this.fastQuery};i(De).ng=function(t,e){return new De(t,e)};i(De).copy=function(t,e,n){return t=t===u?this.quickFind:t,e=e===u?this.fastQuery:e,this.ng(t,e)};i(De).toString=function(){return"MatchOption(quickFind="+this.quickFind+", fastQuery="+this.fastQuery+")"};i(De).hashCode=function(){var t=wa(this.quickFind);return t=D(t,31)+wa(this.fastQuery)|0,t};i(De).equals=function(t){if(this===t)return!0;if(!(t instanceof De))return!1;var e=t instanceof De?t:S();return!(this.quickFind!==e.quickFind||this.fastQuery!==e.fastQuery)};var Mc;function rg(){Mc||(Mc=!0,yd=new De)}function Xt(t,e){We.call(this),this.og_1=t,this.expression=e}i(Xt).tc=function(){return this.og_1};i(Xt).pg=function(){return this.expression};i(Xt).uc=function(){return this.expression.uc()};i(Xt).match=function(t,e){return!this.expression.match(t,e)};i(Xt).bd=function(){return this.expression.binaryExpressions};i(Xt).stringify=function(){return"!("+this.expression.stringify()+")"};i(Xt).pc=function(){return this.og_1};i(Xt).qc=function(){return this.expression};i(Xt).qg=function(t,e){return new Xt(t,e)};i(Xt).copy=function(t,e,n){return t=t===u?this.og_1:t,e=e===u?this.expression:e,this.qg(t,e)};i(Xt).toString=function(){return"NotExpression(start="+this.og_1+", expression="+j(this.expression)+")"};i(Xt).hashCode=function(){var t=this.og_1;return t=D(t,31)+ot(this.expression)|0,t};i(Xt).equals=function(t){if(this===t)return!0;if(!(t instanceof Xt))return!1;var e=t instanceof Xt?t:S();return!(this.og_1!==e.og_1||!E(this.expression,e.expression))};function Mn(t){var e="invalid PolynomialExpression: a="+t.a+", b="+t.b;throw Dr(j(e))}function ig(t){return function(e){return D(t.a,e)+t.b|0}}function ag(t){return function(e){return D(t.a,e)+t.b|0}}function og(t,e){return function(n){return D(t.a,e+n|0)+t.b|0}}function sg(t){return function(e){return e!==0&&Mn(t),t.b}}function lg(t,e){return function(n){return D(t.a,e-n|0)+t.b|0}}function It(t,e){t=t===u?0:t,e=e===u?1:e,Si.call(this),this.a=t,this.b=e;var n=this,r;if(this.a>0){var a;if(this.b>0)a=this.a+this.b|0;else if(this.b===0)a=this.a;else{var o=((-this.b|0)/this.a|0)+1|0;a=D(this.a,o)+this.b|0}r=a}else{var s;if(this.a===0){var l;this.b>0?l=this.b:Mn(this),s=l}else{var c;if(this.b>0){var f;if(this.b<=(-this.a|0))Mn(this);else{var h=((-this.b|0)/this.a|0)-(this.b%this.a|0?0:1)|0;f=D(this.a,h)+this.b|0}c=f}else Mn(this);s=c}r=s-1|0}n.de_1=r;var d=this,v;if(this.a>0)v=null;else{var y;if(this.a===0){var _;this.b>0?_=this.b:Mn(this),y=_}else{var m;if(this.b>0){var g;this.b<=(-this.a|0)?Mn(this):g=this.a+this.b|0,m=g}else Mn(this);y=m}v=y-1|0}d.ee_1=v,this.fe_1=this.de_1===this.ee_1;var p=this,C;if(this.a>0){var k;if(this.b>0)k=ig(this);else if(this.b===0)k=ag(this);else{var x=((-this.b|0)/this.a|0)+1|0;k=og(this,x)}C=k}else if(this.a===0){var N;this.b>0?N=sg(this):Mn(this),C=N}else{var F;if(this.b>0){var Q;if(this.b<=(-this.a|0))Mn(this);else{var H=((-this.b|0)/this.a|0)-(this.b%this.a|0?0:1)|0;Q=lg(this,H)}F=Q}else Mn(this);C=F}p.ge_1=C}i(It).rg=function(){return this.a};i(It).sg=function(){return this.b};i(It).stringify=function(){if(this.a>0&&this.b>0)return this.a===1?"(n+"+this.b+")":"("+this.a+"n+"+this.b+")";if(this.a<0&&this.b>0)return this.a===-1?"("+this.b+"-n)":"("+this.b+this.a+"n)";if(this.b===0){if(this.a===1)return"n";var t;return this.a>0?t=""+this.a+"n":t="("+this.a+"n)",t}if(this.a===0){if(this.b===1)return"";var e;return this.b>0?e=this.b.toString():e="("+this.b+")",e}var n=this.b>=0?"+":"";return"("+this.a+"n"+n+this.b+")"};i(It).yd=function(){return this.de_1};i(It).zd=function(){return this.ee_1};i(It).checkOffset=function(t){if(this.fe_1)return t===this.de_1;var e=(t+1|0)-this.b|0;return(e%this.a|0)===0&&(e/this.a|0)>=1};i(It).getOffset=function(t){return this.ge_1(t)-1|0};i(It).pc=function(){return this.a};i(It).qc=function(){return this.b};i(It).tg=function(t,e){return new It(t,e)};i(It).copy=function(t,e,n){return t=t===u?this.a:t,e=e===u?this.b:e,this.tg(t,e)};i(It).toString=function(){return"PolynomialExpression(a="+this.a+", b="+this.b+")"};i(It).hashCode=function(){var t=this.a;return t=D(t,31)+this.b|0,t};i(It).equals=function(t){if(this===t)return!0;if(!(t instanceof It))return!1;var e=t instanceof It?t:S();return!(this.a!==e.a||this.b!==e.b)};function rn(){}function Ut(t,e,n){this.yc_1=t,this.zc_1=e,this.value=n}i(Ut).tc=function(){return this.yc_1};i(Ut).uc=function(){return this.zc_1};i(Ut).r1=function(){return this.value};i(Ut).stringify=function(){return this.value.stringify()};i(Ut).pc=function(){return this.yc_1};i(Ut).qc=function(){return this.zc_1};i(Ut).ed=function(){return this.value};i(Ut).ug=function(t,e,n){return new Ut(t,e,n)};i(Ut).copy=function(t,e,n,r){return t=t===u?this.yc_1:t,e=e===u?this.zc_1:e,n=n===u?this.value:n,this.ug(t,e,n)};i(Ut).toString=function(){return"PositionImpl(start="+this.yc_1+", end="+this.zc_1+", value="+j(this.value)+")"};i(Ut).hashCode=function(){var t=this.yc_1;return t=D(t,31)+this.zc_1|0,t=D(t,31)+ot(this.value)|0,t};i(Ut).equals=function(t){if(this===t)return!0;if(!(t instanceof Ut))return!1;var e=t instanceof Ut?t:S();return!(this.yc_1!==e.yc_1||this.zc_1!==e.zc_1||!E(this.value,e.value))};function os(){}function ug(t,e,n){if(t.fg_1)return!0;var r=n.getName(e),a;if(r==null)return!1;a=r;var o=a;return A(o)===t.name.length?cm(o,t.name):A(o)>t.name.length?L(o,(A(o)-t.name.length|0)-1|0)===46&&Jo(o,t.name):!1}function cg(t){return"["+t.stringify()+"]"}function ae(t,e,n){this.at=t,this.name=e,this.expressions=n,this.fg_1=Lm(this.name)||this.name==="*"}i(ae).vg=function(){return this.at};i(ae).wg=function(){return this.name};i(ae).xg=function(){return this.expressions};i(ae).bd=function(){for(var t=this.expressions,e=Rt(),n=t.h();n.i();){var r=n.j(),a=zl(r.binaryExpressions);Lo(e,a)}return gn(e)};i(ae).stringify=function(){var t=this.at?"@":"",e=t+this.name;return e+En(this.expressions,"",u,u,u,u,cg)};i(ae).match=function(t,e){var n;if(ug(this,t.current,e)){var r;t:{var a=this.expressions,o;if(et(a,$t)?o=a.l():o=!1,o){r=!0;break t}for(var s=a.h();s.i();){var l=s.j();if(!l.match(t,e)){r=!1;break t}}r=!0}n=r}else n=!1;return n};i(ae).pc=function(){return this.at};i(ae).qc=function(){return this.name};i(ae).ed=function(){return this.expressions};i(ae).yg=function(t,e,n){return new ae(t,e,n)};i(ae).copy=function(t,e,n,r){return t=t===u?this.at:t,e=e===u?this.name:e,n=n===u?this.expressions:n,this.yg(t,e,n)};i(ae).toString=function(){return"PropertySegment(at="+this.at+", name="+this.name+", expressions="+j(this.expressions)+")"};i(ae).hashCode=function(){var t=wa(this.at);return t=D(t,31)+Qe(this.name)|0,t=D(t,31)+ot(this.expressions)|0,t};i(ae).equals=function(t){if(this===t)return!0;if(!(t instanceof ae))return!1;var e=t instanceof ae?t:S();return!(this.at!==e.at||this.name!==e.name||!E(this.expressions,e.expressions))};function Yt(t,e){e=e===u?null:e,this.segment=t,this.to=e;var n=this,r;t:{var a=this.segment.expressions,o;if(et(a,$t)?o=a.l():o=!1,o){r=!1;break t}for(var s=a.h();s.i();){var l=s.j(),c,f,h;if(l instanceof ct?h=E(l.operator.value,nr()):h=!1,h?f=E(l.left.value,"parent"):f=!1,f?c=E(l.right.value,"null"):c=!1,c){r=!0;break t}}r=!1}n.isMatchRoot=r;var d=this,v=Zm(this.segment);d.fastQueryList=v==null?ia():v}i(Yt).ne=function(){return this.segment};i(Yt).oe=function(){return this.to};i(Yt).stringify=function(){var t;return this.to!=null?t=this.to.stringify()+" ":t="",t+this.segment.stringify()};i(Yt).matchContext=function(t,e,n){return this.segment.match(t,e)?this.to==null?t:this.to.matchContext(t,e,n):null};i(Yt).zg=function(){return this.isMatchRoot};i(Yt).ah=function(){return this.fastQueryList};i(Yt).a=function(){return this.to==null?1:this.to.to.length+1|0};i(Yt).pc=function(){return this.segment};i(Yt).qc=function(){return this.to};i(Yt).bh=function(t,e){return new Yt(t,e)};i(Yt).copy=function(t,e,n){return t=t===u?this.segment:t,e=e===u?this.to:e,this.bh(t,e)};i(Yt).toString=function(){return"PropertyWrapper(segment="+this.segment.toString()+", to="+Tt(this.to)+")"};i(Yt).hashCode=function(){var t=this.segment.hashCode();return t=D(t,31)+(this.to==null?0:this.to.hashCode())|0,t};i(Yt).equals=function(t){if(this===t)return!0;if(!(t instanceof Yt))return!1;var e=t instanceof Yt?t:S();return!(!this.segment.equals(e.segment)||!E(this.to,e.to))};function bd(){$i();var t=wd;return vg(),t.r1()}var wd;function kd(){$i();var t=Cd;return pg(),t.r1()}var Cd;function ss(){}i(ss).parse=function(t){return $d(t)};i(ss).parseOrNull=function(t){var e;try{e=$d(t)}catch(r){var n;if(r instanceof wn)n=null;else throw r;e=n}return e};var xd;function fg(){return xd}function xe(t,e){this.source=t,this.propertyWrapper=e;var n=this,r;t:{for(var a=this.propertyWrapper.length,o=0,s=this.propertyWrapper;s!=null;){if(s.segment.at){r=(a-1|0)-o|0;break t}var l=s.to;s=l==null?null:l.to,o=o+1|0}r=a-1|0}n.targetIndex=r,this.fastQueryList=this.propertyWrapper.fastQueryList,this.quickFindValue=this.fastQueryList.m()===1?Ki(this.fastQueryList):null,this.isMatchRoot=this.propertyWrapper.isMatchRoot;for(var c=this,f=this.propertyWrapper.to,h=Rt();f!=null;)h.f(f),f=f.to.to;c.connectWrappers=gn(h);for(var d=this,v=this.propertyWrapper,y=Rt();v!=null;){var _=v.segment;Cm(y,_.binaryExpressions);var m=v.to;v=m==null?null:m.to}var g=ip(y);d.binaryExpressions=gn(g);var p=this,C;t:{if(this.connectWrappers.length!==0){C=!0;break t}for(var k=this.binaryExpressions,x=0,N=k.length;x<N;){var F=k[x];x=x+1|0;var Q;e:{for(var H=F.properties,st=0,dt=H.length;st<dt;){var Lt=H[st];if(st=st+1|0,Ps(bd(),Lt)){Q=!0;break e}}Q=!1}if(Q){C=!0;break t}var Ot;e:{for(var ue=F.methods,_t=0,te=ue.length;_t<te;){var ce=ue[_t];if(_t=_t+1|0,Ps(kd(),ce)){Ot=!0;break e}}Ot=!1}if(Ot){C=!0;break t}}C=!1}p.useCache=C}i(xe).ch=function(){return this.source};i(xe).dh=function(){return this.propertyWrapper};i(xe).stringify=function(){return this.propertyWrapper.stringify()};i(xe).eh=function(){return this.targetIndex};i(xe).matchContext=function(t,e,n){return this.propertyWrapper.matchContext(new Jt(t),e,n)};i(xe).match=function(t,e,n){var r=this.matchContext(t,e,n),a;if(r==null)return null;a=r;var o=a;return o.get(this.targetIndex).current};i(xe).ah=function(){return this.fastQueryList};i(xe).fh=function(){return this.quickFindValue};i(xe).zg=function(){return this.isMatchRoot};i(xe).gh=function(){return this.connectWrappers};i(xe).bd=function(){return this.binaryExpressions};i(xe).hh=function(){return this.useCache};i(xe).isSlow=function(t){if(t.quickFind&&this.quickFindValue==null&&!this.isMatchRoot||(!t.fastQuery||this.propertyWrapper.fastQueryList.l())&&!this.isMatchRoot)return!0;var e;t:{for(var n=this.connectWrappers,r=0,a=n.length;r<a;){var o=n[r];if(r=r+1|0,E(o.segment.operator,is())&&!(o.canFq&&t.fastQuery)){e=!0;break t}}e=!1}return!!e};i(xe).checkType=function(t){try{for(var e=this.binaryExpressions,n=0,r=e.length;n<r;){var a=e[n];if(n=n+1|0,!a.operator.value.od(a.left,a.right))throw new nn(a);var o=Lc(a.left,t),s=Lc(a.right,t);if(o!=null&&s!=null&&!E(o,s))throw new we(a,o,s)}}catch(c){if(c instanceof le){var l=c;return l}else throw c}return null};function Lc(t,e){$i();var n;return t instanceof Te?n=null:t instanceof he?n=Ta():t instanceof Wt?n=Pa():t instanceof pt?n=Ra():t instanceof Me?n=wo(t,e,e).type:Nn(),n}function Oc(t,e,n){$i();for(var r=0,a=t.params,o=0,s=a.length;o<s;){var l=a[o];o=o+1|0;var c=r;r=c+1|0;var f=e.arguments.k(c);if(!(f instanceof Te))if(f instanceof he){if(!E(l.type,Ta()))throw new ie(e,f,Ta())}else if(f instanceof Wt){if(!E(l.type,Pa()))throw new ie(e,f,Pa())}else if(f instanceof pt){if(!E(l.type,Ra()))throw new ie(e,f,Ra())}else if(f instanceof Me){var h=wo(f,l,n);if(!E(h.type,l.type))throw new ie(e,f,h.type)}else Nn()}return t.returnType}function wo(t,e,n){$i();var r;if(t instanceof xt){var a=t.callee,o;if(a instanceof xt)throw Pt("Unsupported nested call");if(a instanceof Ct){for(var s=n.methods,l=Rt(),c=0,f=s.length;c<f;){var h=s[c];c=c+1|0,h.name===t.callee.value&&h.params.length===t.arguments.m()&&l.f(h)}if(l.l())throw new He(t.callee);o=l}else if(a instanceof vt){for(var d=wo(t.callee.object0,e,n).methods,v=Rt(),y=0,_=d.length;y<_;){var m=d[y];y=y+1|0,m.name===t.callee.property&&m.params.length===t.arguments.m()&&v.f(m)}if(v.l())throw new Ve(t.callee);o=v}else Nn();var g=o;if(g.m()===1)return Oc(g.k(0),t,n),g.k(0).returnType;for(var p=0,C=g.h();C.i();){var k=C.j(),x=p;p=x+1|0;var N=Eo(x);try{return Oc(k,t,n),k.returnType}catch(mt){if(mt instanceof le){var F=mt;if(N===(g.m()-1|0))throw F}else throw mt}}var Q=t.callee;if(Q instanceof Ct)throw new He(t.callee);var H=t.callee;throw H instanceof vt?new Ve(t.callee):Pt("Unsupported nested call")}else if(t instanceof Ct){var st=n.props,dt;t:{for(var Lt=0,Ot=st.length;Lt<Ot;){var ue=st[Lt];if(Lt=Lt+1|0,ue.name===t.value){dt=ue;break t}}dt=null}var _t=dt,te=_t==null?null:_t.type,ce;if(te==null)throw new tn(t);ce=te,r=ce}else if(t instanceof vt){var on=wo(t.object0,e,n).props,Qt;t:{for(var Se=0,Cn=on.length;Se<Cn;){var Pn=on[Se];if(Se=Se+1|0,Pn.name===t.property){Qt=Pn;break t}}Qt=null}var Nr=Qt,P=Nr==null?null:Nr.type,lt;if(P==null)throw new en(t);lt=P,r=lt}else Nn();return r}function hg(){return $i(),["index","parent","depth"]}function dg(){return $i(),["getChild"]}function vg(){return Da("useCacheProperties",0,vu,function(){return bd()},null)}function pg(){return Da("useCacheMethods",0,vu,function(){return kd()},null)}var jc;function $i(){jc||(jc=!0,wd=Ea(hg),Cd=Ea(dg))}function oe(t,e,n,r){r=r===u?null:r;var a=Ze(n,e);No("expected "+t+" in selector at position "+e+", but got "+Tt(a==null?null:new nt(a)),this),B(this,oe),this.expectedValue=t,this.position=e,this.source=n,this.nh_1=r}i(oe).oh=function(){return this.expectedValue};i(oe).ph=function(){return this.position};i(oe).ch=function(){return this.source};i(oe).j7=function(){return this.nh_1};i(oe).pc=function(){return this.expectedValue};i(oe).qc=function(){return this.position};i(oe).ed=function(){return this.source};i(oe).fd=function(){return this.nh_1};i(oe).qh=function(t,e,n,r){return new oe(t,e,n,r)};i(oe).copy=function(t,e,n,r,a){return t=t===u?this.expectedValue:t,e=e===u?this.position:e,n=n===u?this.source:n,r=r===u?this.nh_1:r,this.qh(t,e,n,r)};i(oe).toString=function(){return"SyntaxError(expectedValue="+this.expectedValue+", position="+this.position+", source="+this.source+", cause="+Tt(this.nh_1)+")"};i(oe).hashCode=function(){var t=Qe(this.expectedValue);return t=D(t,31)+this.position|0,t=D(t,31)+Qe(this.source)|0,t=D(t,31)+(this.nh_1==null?0:ot(this.nh_1))|0,t};i(oe).equals=function(t){if(this===t)return!0;if(!(t instanceof oe))return!1;var e=t instanceof oe?t:S();return!(this.expectedValue!==e.expectedValue||this.position!==e.position||this.source!==e.source||!E(this.nh_1,e.nh_1))};function bt(t,e,n,r){n=n===u?"":n,r=r===u?null:r;var a;if(e>=A(t))a=!0;else{var o;A(n)>0?o=!Ge(n,L(t,e)):o=!1,a=o}if(a)throw new oe(r==null?n:r,e,j(t))}function re(t,e,n,r){throw n=n===u?"":n,r=r===u?null:r,new oe(n,e,j(t),r)}function _g(t){return function(e,n,r){return t(e,n,r)}}function mg(t){return function(e){return Xv(t(e))}}function zu(){}i(zu).multiplatformBuild=function(t,e,n,r,a){var o=_g(e);return new wt(t,o,n,mg(r),a)};var Sd;function gg(){return Sd}function yg(t,e,n){return null}function bg(t){return function(e){for(var n=t(e);n!=null;)n=t(Pe(n));return n}}function ui(t,e,n){this.zh_1=t,this.ai_1=e,Re.call(this,n)}i(ui).fi=function(t,e){var n=this.gi(t,e);return n.k6_1=ut,n.l6_1=null,n.q6()};i(ui).h7=function(t,e){return this.fi(t instanceof wr?t:S(),e)};i(ui).q6=function(){var t=this.k6_1;t:do try{var e=this.i6_1;switch(e){case 0:if(this.j6_1=4,this.ci_1=Wl(this.zh_1(this.ai_1)),this.ci_1.l())return ut;Xl(this.ci_1);var n=this;n.di_1=Rt(),this.i6_1=1;continue t;case 1:if(this.ei_1=this.ci_1.x2(Ja(this.ci_1)),this.i6_1=2,t=this.bi_1.p9(this.ei_1,this),t===Cr())return t;continue t;case 2:for(var r=this.zh_1(this.ei_1).h();r.i();){var a=r.j();this.di_1.f(a)}if(!this.di_1.l()){var o=this.di_1.m()-1|0;if(0<=o)do{var s=o;o=o+-1|0,this.ci_1.f(this.di_1.k(s))}while(0<=o);this.di_1.n3()}if(!this.ci_1.l()){this.i6_1=1;continue t}this.i6_1=3;continue t;case 3:return ut;case 4:throw this.l6_1}}catch(c){var l=c;if(this.j6_1===4)throw l;this.i6_1=this.j6_1,this.l6_1=l}while(!0)};i(ui).gi=function(t,e){var n=new ui(this.zh_1,this.ai_1,e);return n.bi_1=t,n};function wg(t,e,n){var r=new ui(t,e,n),a=function(o,s){return r.fi(o,s)};return a.$arity=1,a}function kg(t){return function(e){return Ya(wg(t,e,null))}}function Cg(t){return function(e,n){return t.checkOffset(e)}}function xg(t){return function(e,n){var r=t(e),a;n.maxOffset!=null?a=_f(r,Pe(n.maxOffset)+1|0):a=r;var o=a;return Hl(o,Cg(n))}}function ci(t,e,n,r){this.pi_1=t,this.qi_1=e,this.ri_1=n,Re.call(this,r)}i(ci).fi=function(t,e){var n=this.gi(t,e);return n.k6_1=ut,n.l6_1=null,n.q6()};i(ci).h7=function(t,e){return this.fi(t instanceof wr?t:S(),e)};i(ci).q6=function(){var t=this.k6_1;t:do try{var e=this.i6_1;switch(e){case 0:this.j6_1=6;var n=this,r=this.pi_1(this.qi_1),a;if(r==null)return ut;a=r,n.ti_1=a,this.ui_1=0,this.i6_1=1;continue t;case 1:if(this.ti_1==null){this.i6_1=5;continue t}if(this.vi_1=this.ti_1,this.vi_1==null){this.wi_1=null,this.i6_1=4;continue t}else{var o=this;o.xi_1=this.vi_1;var s=this;if(s.yi_1=this.xi_1,this.ri_1.checkOffset(this.ui_1)){if(this.i6_1=2,t=this.si_1.p9(this.yi_1,this),t===Cr())return t;continue t}else{this.i6_1=3;continue t}}case 2:this.i6_1=3;continue t;case 3:this.ui_1=this.ui_1+1|0;var l=this.ri_1.maxOffset;if(l!=null){if(this.ui_1>l)return ut}var c=this;this.ti_1=this.pi_1(this.yi_1),c.wi_1=ut,this.i6_1=4;continue t;case 4:this.i6_1=1;continue t;case 5:return ut;case 6:throw this.l6_1}}catch(h){var f=h;if(this.j6_1===6)throw f;this.i6_1=this.j6_1,this.l6_1=f}while(!0)};i(ci).gi=function(t,e){var n=new ci(this.pi_1,this.qi_1,this.ri_1,e);return n.si_1=t,n};function Sg(t,e,n,r){var a=new ci(t,e,n,r),o=function(s,l){return a.fi(s,l)};return o.$arity=1,o}function $g(t){return function(e,n){return Ya(Sg(t,e,n,null))}}function Eg(t){return function(e){return!E(e,t)}}function Ng(t){return function(e,n){return t.checkOffset(e)}}function Ig(t,e){return function(n,r){var a=t(n),o;if(a!=null){var s=e(a),l=Wl(cp(s,Eg(n)));Xl(l);var c=ap(l);o=Hl(c,Ng(r))}else o=Ci();return o}}function qg(t){return function(e){return!E(e,t)}}function Ag(t){return function(e,n){return t.checkOffset(e)}}function Tg(t,e){return function(n,r){var a=t(n),o;if(a!=null){var s=e(a),l=fp(hp(s,qg(n)),1),c;r.maxOffset!=null?c=_f(l,Pe(r.maxOffset)+1|0):c=l;var f=c;o=Hl(f,Ag(r))}else o=Ci();return o}}function fi(t,e,n,r){this.hj_1=t,this.ij_1=e,this.jj_1=n,Re.call(this,r)}i(fi).fi=function(t,e){var n=this.gi(t,e);return n.k6_1=ut,n.l6_1=null,n.q6()};i(fi).h7=function(t,e){return this.fi(t instanceof wr?t:S(),e)};i(fi).q6=function(){var t=this.k6_1;t:do try{var e=this.i6_1;switch(e){case 0:if(this.j6_1=5,this.lj_1=Wl(this.hj_1(this.ij_1)),this.lj_1.l())return ut;Xl(this.lj_1);var n=this;n.mj_1=Rt(),this.nj_1=0,this.i6_1=1;continue t;case 1:if(this.oj_1=this.lj_1.x2(Ja(this.lj_1)),this.jj_1.checkOffset(this.nj_1)){if(this.i6_1=2,t=this.kj_1.p9(this.oj_1,this),t===Cr())return t;continue t}else{this.i6_1=3;continue t}case 2:this.i6_1=3;continue t;case 3:this.nj_1=this.nj_1+1|0;var r=this.jj_1.maxOffset;if(r!=null){if(this.nj_1>r)return ut}for(var a=this.hj_1(this.oj_1).h();a.i();){var o=a.j();this.mj_1.f(o)}if(!this.mj_1.l()){var s=this.mj_1.m()-1|0;if(0<=s)do{var l=s;s=s+-1|0,this.lj_1.f(this.mj_1.k(l))}while(0<=s);this.mj_1.n3()}if(!this.lj_1.l()){this.i6_1=1;continue t}this.i6_1=4;continue t;case 4:return ut;case 5:throw this.l6_1}}catch(f){var c=f;if(this.j6_1===5)throw c;this.i6_1=this.j6_1,this.l6_1=c}while(!0)};i(fi).gi=function(t,e){var n=new fi(this.hj_1,this.ij_1,this.jj_1,e);return n.kj_1=t,n};function Pg(t,e,n,r){var a=new fi(t,e,n,r),o=function(s,l){return a.fi(s,l)};return o.$arity=1,o}function Rg(t){return function(e,n){return Ya(Pg(t,e,n,null))}}function Mg(t,e){return Ci()}function hi(t,e,n,r,a){this.xj_1=t,this.yj_1=e,this.zj_1=n,this.ak_1=r,Re.call(this,a)}i(hi).fi=function(t,e){var n=this.gi(t,e);return n.k6_1=ut,n.l6_1=null,n.q6()};i(hi).h7=function(t,e){return this.fi(t instanceof wr?t:S(),e)};i(hi).q6=function(){var t=this.k6_1;t:do try{var e=this.i6_1;switch(e){case 0:if(this.j6_1=7,this.ck_1=this.xj_1.match(this.yj_1,this.zj_1,this.ak_1),this.ck_1==null){this.dk_1=null,this.i6_1=2;continue t}else{var n=this;n.ek_1=this.ck_1;var r=this;if(r.fk_1=this.ek_1,this.i6_1=1,t=this.bk_1.p9(this.fk_1,this),t===Cr())return t;continue t}case 1:var a=this;a.dk_1=ut,this.i6_1=2;continue t;case 2:var o=this;o.gk_1=this.zj_1.getDescendants(this.yj_1),this.hk_1=this.gk_1.h(),this.i6_1=3;continue t;case 3:if(!this.hk_1.i()){this.i6_1=6;continue t}this.ik_1=this.hk_1.j();var s=this;if(s.jk_1=this.ik_1,this.kk_1=this.xj_1.match(this.jk_1,this.zj_1,this.ak_1),this.kk_1==null){this.lk_1=null,this.i6_1=5;continue t}else{var l=this;l.mk_1=this.kk_1;var c=this;if(c.nk_1=this.mk_1,this.i6_1=4,t=this.bk_1.p9(this.nk_1,this),t===Cr())return t;continue t}case 4:var f=this;f.lk_1=ut,this.i6_1=5;continue t;case 5:this.i6_1=3;continue t;case 6:return ut;case 7:throw this.l6_1}}catch(d){var h=d;if(this.j6_1===7)throw h;this.i6_1=this.j6_1,this.l6_1=h}while(!0)};i(hi).gi=function(t,e){var n=new hi(this.xj_1,this.yj_1,this.zj_1,this.ak_1,e);return n.bk_1=t,n};function Lg(t,e,n,r,a){var o=new hi(t,e,n,r,a),s=function(l,c){return o.fi(l,c)};return s.$arity=1,s}function di(t,e,n,r,a){this.wk_1=t,this.xk_1=e,this.yk_1=n,this.zk_1=r,Re.call(this,a)}i(di).nl=function(t,e){var n=this.ol(t,e);return n.k6_1=ut,n.l6_1=null,n.q6()};i(di).h7=function(t,e){return this.nl(t instanceof wr?t:S(),e)};i(di).q6=function(){var t=this.k6_1;t:do try{var e=this.i6_1;switch(e){case 0:if(this.j6_1=7,this.bl_1=this.wk_1.matchContext(this.xk_1,this.yk_1,this.zk_1),this.bl_1==null){this.cl_1=null,this.i6_1=2;continue t}else{var n=this;n.dl_1=this.bl_1;var r=this;if(r.el_1=this.dl_1,this.i6_1=1,t=this.al_1.p9(this.el_1,this),t===Cr())return t;continue t}case 1:var a=this;a.cl_1=ut,this.i6_1=2;continue t;case 2:var o=this;o.fl_1=this.yk_1.getDescendants(this.xk_1),this.gl_1=this.fl_1.h(),this.i6_1=3;continue t;case 3:if(!this.gl_1.i()){this.i6_1=6;continue t}this.hl_1=this.gl_1.j();var s=this;if(s.il_1=this.hl_1,this.jl_1=this.wk_1.matchContext(this.il_1,this.yk_1,this.zk_1),this.jl_1==null){this.kl_1=null,this.i6_1=5;continue t}else{var l=this;l.ll_1=this.jl_1;var c=this;if(c.ml_1=this.ll_1,this.i6_1=4,t=this.al_1.p9(this.ml_1,this),t===Cr())return t;continue t}case 4:var f=this;f.kl_1=ut,this.i6_1=5;continue t;case 5:this.i6_1=3;continue t;case 6:return ut;case 7:throw this.l6_1}}catch(d){var h=d;if(this.j6_1===7)throw h;this.i6_1=this.j6_1,this.l6_1=h}while(!0)};i(di).ol=function(t,e){var n=new di(this.wk_1,this.xk_1,this.yk_1,this.zk_1,e);return n.al_1=t,n};function Og(t,e,n,r,a){var o=new di(t,e,n,r,a),s=function(l,c){return o.nl(l,c)};return s.$arity=1,s}function wt(t,e,n,r,a,o,s,l,c,f,h,d,v){var y;e===u?y=yg:y=e,e=y;var _;o===u?_=bg(a):_=o,o=_;var m;s===u?m=kg(r):m=s,s=m;var g;l===u?g=xg(r):g=l,l=g;var p;c===u?p=$g(a):p=c,c=p;var C;f===u?C=Ig(a,r):C=f,f=C;var k;h===u?k=Tg(a,r):k=h,h=k;var x;d===u?x=Rg(r):x=d,d=x;var N;v===u?N=Mg:N=v,v=N,this.getAttr=t,this.getInvoke=e,this.getName=n,this.getChildren=r,this.getParent=a,this.getRoot=o,this.getDescendants=s,this.traverseChildren=l,this.traverseAncestors=c,this.traverseBeforeBrothers=f,this.traverseAfterBrothers=h,this.traverseDescendants=d,this.traverseFastQueryDescendants=v}i(wt).pl=function(){return this.getAttr};i(wt).ql=function(){return this.getInvoke};i(wt).rl=function(){return this.getName};i(wt).sl=function(){return this.getChildren};i(wt).tl=function(){return this.getParent};i(wt).ul=function(){return this.getRoot};i(wt).vl=function(){return this.getDescendants};i(wt).wl=function(){return this.traverseChildren};i(wt).xl=function(){return this.traverseAncestors};i(wt).yl=function(){return this.traverseBeforeBrothers};i(wt).zl=function(){return this.traverseAfterBrothers};i(wt).am=function(){return this.traverseDescendants};i(wt).bm=function(){return this.traverseFastQueryDescendants};i(wt).cm=function(t,e,n){return Ya(Lg(e,t,this,n,null))};i(wt).querySelectorAll$default=function(t,e,n,r){return n=n===u?sa():n,r===u?this.cm(t,e,n):r.cm.call(this,t,e,n)};i(wt).dm=function(t,e,n){return mf(this.cm(t,e,n))};i(wt).querySelector=function(t,e,n,r){return n=n===u?sa():n,this.dm(t,e,n)};i(wt).em=function(t,e,n){return Ya(Og(e,t,this,n,null))};i(wt).querySelectorAllContext$default=function(t,e,n,r){return n=n===u?sa():n,r===u?this.em(t,e,n):r.em.call(this,t,e,n)};i(wt).fm=function(t,e,n){return mf(this.em(t,e,n))};i(wt).querySelectorContext=function(t,e,n,r){return n=n===u?sa():n,this.fm(t,e,n)};i(wt).gm=function(t,e,n){var r=gf(this.cm(t,e,n)),a=et(r,Un)?r:S(),o=gn(a);return Ji(o)?o:S()};i(wt).querySelectorAllArray=function(t,e,n,r){return n=n===u?sa():n,this.gm(t,e,n)};i(wt).hm=function(t,e,n){var r=gf(this.em(t,e,n));return gn(r)};i(wt).querySelectorAllContextArray=function(t,e,n,r){return n=n===u?sa():n,this.hm(t,e,n)};function Ae(t){Si.call(this),this.numbers=t;var e=this,n=hf(this.numbers);e.im_1=(n==null?1:n)-1|0,this.jm_1=op(this.numbers);for(var r=this,a=this.numbers,o=Ui(Gs(a,10)),s=a.h();s.i();){var l=s.j(),c=l-1|0;o.f(c)}r.km_1=o}i(Ae).lm=function(){return this.numbers};i(Ae).yd=function(){return this.im_1};i(Ae).zd=function(){return this.jm_1};i(Ae).checkOffset=function(t){return _m(this.km_1,t)>=0};i(Ae).getOffset=function(t){return this.numbers.k(t)};i(Ae).stringify=function(){if(this.numbers.m()===1){var t;return Ki(this.numbers)===1?t="":t=Ki(this.numbers).toString(),t}return"("+En(this.numbers,",")+")"};i(Ae).pc=function(){return this.numbers};i(Ae).mm=function(t){return new Ae(t)};i(Ae).copy=function(t,e){return t=t===u?this.numbers:t,this.mm(t)};i(Ae).toString=function(){return"TupleExpression(numbers="+j(this.numbers)+")"};i(Ae).hashCode=function(){return ot(this.numbers)};i(Ae).equals=function(t){if(this===t)return!0;if(!(t instanceof Ae))return!1;var e=t instanceof Ae?t:S();return!!E(this.numbers,e.numbers)};function ri(){$l=this,an.call(this,"boolean")}i(ri).toString=function(){return"BooleanType"};i(ri).hashCode=function(){return 1452179029};i(ri).equals=function(t){return this===t?!0:t instanceof ri?(t instanceof ri||S(),!0):!1};var $l;function Ta(){return $l==null&&new ri,$l}function ii(){El=this,an.call(this,"int")}i(ii).toString=function(){return"IntType"};i(ii).hashCode=function(){return-1601449956};i(ii).equals=function(t){return this===t?!0:t instanceof ii?(t instanceof ii||S(),!0):!1};var El;function Pa(){return El==null&&new ii,El}function ai(){Nl=this,an.call(this,"string")}i(ai).toString=function(){return"StringType"};i(ai).hashCode=function(){return 1719560632};i(ai).equals=function(t){return this===t?!0:t instanceof ai?(t instanceof ai||S(),!0):!1};var Nl;function Ra(){return Nl==null&&new ai,Nl}function Be(t){an.call(this,"object"),this.name=t}i(Be).wg=function(){return this.name};i(Be).pc=function(){return this.name};i(Be).zf=function(t){return new Be(t)};i(Be).copy=function(t,e){return t=t===u?this.name:t,this.zf(t)};i(Be).toString=function(){return"ObjectType(name="+this.name+")"};i(Be).hashCode=function(){return Qe(this.name)};i(Be).equals=function(t){if(this===t)return!0;if(!(t instanceof Be))return!1;var e=t instanceof Be?t:S();return this.name===e.name};function an(t){this.key=t}i(an).q1=function(){return this.key};function jg(t){return t.stringify()}function W(t,e,n){var r;n===u?r=[]:r=n,n=r,this.name=t,this.returnType=e,this.params=n}i(W).wg=function(){return this.name};i(W).nm=function(){return this.returnType};i(W).om=function(){return this.params};i(W).stringify=function(){return this.name+"("+cf(this.params,", ",u,u,u,u,jg)+"): "+this.returnType.stringify()};i(W).equals=function(t){return this===t?!0:!(t==null||!yo(this).equals(yo(t))||(t instanceof W||S(),this.name!==t.name)||!this.returnType.equals(t.returnType)||!Fs(this.params,t.params))};i(W).hashCode=function(){var t=Qe(this.name);return t=D(31,t)+this.returnType.hashCode()|0,t=D(31,t)+Ds(this.params)|0,t};i(W).pc=function(){return this.name};i(W).qc=function(){return this.returnType};i(W).ed=function(){return this.params};i(W).pm=function(t,e,n){return new W(t,e,n)};i(W).copy=function(t,e,n,r){return t=t===u?this.name:t,e=e===u?this.returnType:e,n=n===u?this.params:n,this.pm(t,e,n)};i(W).toString=function(){return"MethodInfo(name="+this.name+", returnType="+this.returnType.toString()+", params="+j(this.params)+")"};function X(t,e){this.name=t,this.type=e}i(X).wg=function(){return this.name};i(X).of=function(){return this.type};i(X).pc=function(){return this.name};i(X).qc=function(){return this.type};i(X).qm=function(t,e){return new X(t,e)};i(X).copy=function(t,e,n){return t=t===u?this.name:t,e=e===u?this.type:e,this.qm(t,e)};i(X).toString=function(){return"PropInfo(name="+this.name+", type="+this.type.toString()+")"};i(X).hashCode=function(){var t=Qe(this.name);return t=D(t,31)+this.type.hashCode()|0,t};i(X).equals=function(t){if(this===t)return!0;if(!(t instanceof X))return!1;var e=t instanceof X?t:S();return!(this.name!==e.name||!this.type.equals(e.type))};function Bt(t,e,n){var r;e===u?r=[]:r=e,e=r;var a;n===u?a=[]:a=n,n=a,this.type=t,this.props=e,this.methods=n}i(Bt).of=function(){return this.type};i(Bt).rm=function(t){this.props=t};i(Bt).sm=function(){return this.props};i(Bt).tm=function(t){this.methods=t};i(Bt).dd=function(){return this.methods};i(Bt).stringify=function(){var t,e=this.type;return e instanceof Be?t=this.type.name:t=this.type.key,t};i(Bt).equals=function(t){return this===t?!0:!(t==null||!yo(this).equals(yo(t))||(t instanceof Bt||S(),!E(this.type,t.type))||!Fs(this.props,t.props)||!Fs(this.methods,t.methods))};i(Bt).hashCode=function(){var t=ot(this.type);return t=D(31,t)+Ds(this.props)|0,t=D(31,t)+Ds(this.methods)|0,t};i(Bt).pc=function(){return this.type};i(Bt).qc=function(){return this.props};i(Bt).ed=function(){return this.methods};i(Bt).um=function(t,e,n){return new Bt(t,e,n)};i(Bt).copy=function(t,e,n,r){return t=t===u?this.type:t,e=e===u?this.props:e,n=n===u?this.methods:n,this.um(t,e,n)};i(Bt).toString=function(){return"TypeInfo(type="+j(this.type)+", props="+j(this.props)+", methods="+j(this.methods)+")"};function zg(t){return t.stringify()}function Fg(t){return!1}function Me(t){Zt.call(this,t,"var"),this.xm_1=t}i(Me).r1=function(){return this.xm_1};function Ct(t,e){Me.call(this,e),this.ye_1=t,this.name=e,this.ze_1=this.ye_1+this.value.length|0,this.isEqual=this.name==="equal",this.isNotEqual=this.name==="notEqual"}i(Ct).tc=function(){return this.ye_1};i(Ct).wg=function(){return this.name};i(Ct).uc=function(){return this.ze_1};i(Ct).nd=function(t,e){return e.getAttr(t,this.value)};i(Ct).cd=function(){return[this.value]};i(Ct).dd=function(){return[]};i(Ct).ym=function(){return this.isEqual};i(Ct).zm=function(){return this.isNotEqual};i(Ct).pc=function(){return this.ye_1};i(Ct).qc=function(){return this.name};i(Ct).an=function(t,e){return new Ct(t,e)};i(Ct).copy=function(t,e,n){return t=t===u?this.ye_1:t,e=e===u?this.name:e,this.an(t,e)};i(Ct).toString=function(){return"Identifier(start="+this.ye_1+", name="+this.name+")"};i(Ct).hashCode=function(){var t=this.ye_1;return t=D(t,31)+Qe(this.name)|0,t};i(Ct).equals=function(t){if(this===t)return!0;if(!(t instanceof Ct))return!1;var e=t instanceof Ct?t:S();return!(this.ye_1!==e.ye_1||this.name!==e.name)};function vt(t,e,n,r){Me.call(this,n.stringify()+"."+r),this.ff_1=t,this.gf_1=e,this.object0=n,this.property=r,this.isPropertyOr=this.property==="or",this.isPropertyAnd=this.property==="and",this.isPropertyIfElse=this.property==="ifElse"}i(vt).tc=function(){return this.ff_1};i(vt).uc=function(){return this.gf_1};i(vt).bn=function(){return this.object0};i(vt).cn=function(){return this.property};i(vt).nd=function(t,e){var n=this.object0.nd(t,e);return n==null?null:e.getAttr(n,this.property)};i(vt).cd=function(){return tr([this.object0.properties,[this.property]])};i(vt).dd=function(){return this.object0.methods};i(vt).dn=function(){return this.isPropertyOr};i(vt).en=function(){return this.isPropertyAnd};i(vt).fn=function(){return this.isPropertyIfElse};i(vt).pc=function(){return this.ff_1};i(vt).qc=function(){return this.gf_1};i(vt).ed=function(){return this.object0};i(vt).fd=function(){return this.property};i(vt).gn=function(t,e,n,r){return new vt(t,e,n,r)};i(vt).copy=function(t,e,n,r,a){return t=t===u?this.ff_1:t,e=e===u?this.gf_1:e,n=n===u?this.object0:n,r=r===u?this.property:r,this.gn(t,e,n,r)};i(vt).toString=function(){return"MemberExpression(start="+this.ff_1+", end="+this.gf_1+", object0="+j(this.object0)+", property="+this.property+")"};i(vt).hashCode=function(){var t=this.ff_1;return t=D(t,31)+this.gf_1|0,t=D(t,31)+ot(this.object0)|0,t=D(t,31)+Qe(this.property)|0,t};i(vt).equals=function(t){if(this===t)return!0;if(!(t instanceof vt))return!1;var e=t instanceof vt?t:S();return!(this.ff_1!==e.ff_1||this.gf_1!==e.gf_1||!E(this.object0,e.object0)||this.property!==e.property)};function xt(t,e,n,r){var a=n.stringify();Me.call(this,a+"("+En(r,",",u,u,u,u,zg)+")"),this.lh_1=t,this.mh_1=e,this.callee=n,this.arguments=r}i(xt).tc=function(){return this.lh_1};i(xt).uc=function(){return this.mh_1};i(xt).hn=function(){return this.callee};i(xt).in=function(){return this.arguments};i(xt).nd=function(t,e){var n=this.callee,r;if(n instanceof xt)r=null;else if(n instanceof Ct){var a;if(this.callee.isEqual)a=nr().compare(this.arguments.k(0).nd(t,e),this.arguments.k(1).nd(t,e));else if(this.callee.isNotEqual)a=!nr().compare(this.arguments.k(0).nd(t,e),this.arguments.k(1).nd(t,e));else{for(var o=this.arguments,s=Ui(Gs(o,10)),l=o.h();l.i();){var c=l.j(),f=c.nd(t,e);if(f==null)return null;s.f(f)}a=e.getInvoke(t,this.callee.name,s)}r=a}else if(n instanceof vt){var h=this.callee.object0.nd(t,e);if(h==null)return null;var d=h,v;if(this.callee.isPropertyOr){var y;if(typeof d=="boolean"?d:S())y=!0;else{var _=this.arguments.k(0).nd(t,e);if(_==null)return null;var m=_;y=typeof m=="boolean"?m:S()}v=y}else if(this.callee.isPropertyAnd){var g;if(typeof d=="boolean"?d:S()){var p=this.arguments.k(0).nd(t,e);if(p==null)return null;var C=p;g=typeof C=="boolean"?C:S()}else g=!1;v=g}else if(this.callee.isPropertyIfElse){var k;(typeof d=="boolean"?d:S())?k=this.arguments.k(0).nd(t,e):k=this.arguments.k(1).nd(t,e),v=k}else{for(var x=this.arguments,N=Ui(Gs(x,10)),F=x.h();F.i();){var Q=F.j(),H=Q.nd(t,e);if(H==null)return null;N.f(H)}v=e.getInvoke(d,this.callee.property,N)}r=v}else Nn();return r};i(xt).cd=function(){for(var t=Fl(this.callee.properties),e=this.arguments,n=Rt(),r=e.h();r.i();){var a=r.j(),o=zl(a.properties);Lo(n,o)}var s=df(t,n);return gn(s)};i(xt).dd=function(){var t=this.callee,e;t instanceof xt?e=this.callee.methods:t instanceof Ct?e=[this.callee.name]:t instanceof vt?e=tr([this.callee.object0.methods,[this.callee.property]]):Nn();for(var n=Fl(e),r=this.arguments,a=Rt(),o=r.h();o.i();){var s=o.j(),l=zl(s.methods);Lo(a,l)}var c=df(n,a);return gn(c)};i(xt).pc=function(){return this.lh_1};i(xt).qc=function(){return this.mh_1};i(xt).ed=function(){return this.callee};i(xt).fd=function(){return this.arguments};i(xt).jn=function(t,e,n,r){return new xt(t,e,n,r)};i(xt).copy=function(t,e,n,r,a){return t=t===u?this.lh_1:t,e=e===u?this.mh_1:e,n=n===u?this.callee:n,r=r===u?this.arguments:r,this.jn(t,e,n,r)};i(xt).toString=function(){return"CallExpression(start="+this.lh_1+", end="+this.mh_1+", callee="+j(this.callee)+", arguments="+j(this.arguments)+")"};i(xt).hashCode=function(){var t=this.lh_1;return t=D(t,31)+this.mh_1|0,t=D(t,31)+ot(this.callee)|0,t=D(t,31)+ot(this.arguments)|0,t};i(xt).equals=function(t){if(this===t)return!0;if(!(t instanceof xt))return!1;var e=t instanceof xt?t:S();return!(this.lh_1!==e.lh_1||this.mh_1!==e.mh_1||!E(this.callee,e.callee)||!E(this.arguments,e.arguments))};function Je(t,e){Zt.call(this,t,e),this.mn_1=t,this.nn_1=e}i(Je).r1=function(){return this.mn_1};i(Je).of=function(){return this.nn_1};i(Je).nd=function(t,e){return this.value};i(Je).cd=function(){return[]};i(Je).dd=function(){return[]};function Te(t){Je.call(this,null,"null"),this.sn_1=t,this.tn_1=this.sn_1+4|0}i(Te).tc=function(){return this.sn_1};i(Te).uc=function(){return this.tn_1};i(Te).pc=function(){return this.sn_1};i(Te).un=function(t){return new Te(t)};i(Te).copy=function(t,e){return t=t===u?this.sn_1:t,this.un(t)};i(Te).toString=function(){return"NullLiteral(start="+this.sn_1+")"};i(Te).hashCode=function(){return this.sn_1};i(Te).equals=function(t){if(this===t)return!0;if(!(t instanceof Te))return!1;var e=t instanceof Te?t:S();return this.sn_1===e.sn_1};function he(t,e){Je.call(this,e,"boolean"),this.zn_1=t,this.ao_1=e,this.bo_1=this.zn_1+(this.ao_1?4:5)|0}i(he).tc=function(){return this.zn_1};i(he).r1=function(){return this.ao_1};i(he).uc=function(){return this.bo_1};i(he).pc=function(){return this.zn_1};i(he).qc=function(){return this.ao_1};i(he).co=function(t,e){return new he(t,e)};i(he).copy=function(t,e,n){return t=t===u?this.zn_1:t,e=e===u?this.ao_1:e,this.co(t,e)};i(he).toString=function(){return"BooleanLiteral(start="+this.zn_1+", value="+this.ao_1+")"};i(he).hashCode=function(){var t=this.zn_1;return t=D(t,31)+wa(this.ao_1)|0,t};i(he).equals=function(t){if(this===t)return!0;if(!(t instanceof he))return!1;var e=t instanceof he?t:S();return!(this.zn_1!==e.zn_1||this.ao_1!==e.ao_1)};function Wt(t,e,n){Je.call(this,n,"int"),this.ho_1=t,this.io_1=e,this.jo_1=n}i(Wt).tc=function(){return this.ho_1};i(Wt).uc=function(){return this.io_1};i(Wt).r1=function(){return this.jo_1};i(Wt).pc=function(){return this.ho_1};i(Wt).qc=function(){return this.io_1};i(Wt).ed=function(){return this.jo_1};i(Wt).ko=function(t,e,n){return new Wt(t,e,n)};i(Wt).copy=function(t,e,n,r){return t=t===u?this.ho_1:t,e=e===u?this.io_1:e,n=n===u?this.jo_1:n,this.ko(t,e,n)};i(Wt).toString=function(){return"IntLiteral(start="+this.ho_1+", end="+this.io_1+", value="+this.jo_1+")"};i(Wt).hashCode=function(){var t=this.ho_1;return t=D(t,31)+this.io_1|0,t=D(t,31)+this.jo_1|0,t};i(Wt).equals=function(t){if(this===t)return!0;if(!(t instanceof Wt))return!1;var e=t instanceof Wt?t:S();return!(this.ho_1!==e.ho_1||this.io_1!==e.io_1||this.jo_1!==e.jo_1)};function pt(t,e,n,r){r=r===u?null:r,Je.call(this,n,"string"),this.td_1=t,this.ud_1=e,this.vd_1=n,this.wd_1=r;var a=this,o=this.wd_1,s;if(o==null)s=null;else{var l=_y(this.vd_1);s=l==null?o:l}var c=s,f;c==null?f=Fg:f=c,a.xd_1=f}i(pt).tc=function(){return this.td_1};i(pt).uc=function(){return this.ud_1};i(pt).r1=function(){return this.vd_1};i(pt).lo=function(){return this.wd_1};i(pt).stringify=function(){return py(this.vd_1)};i(pt).mo=function(){return this.xd_1};i(pt).pc=function(){return this.td_1};i(pt).qc=function(){return this.ud_1};i(pt).ed=function(){return this.vd_1};i(pt).no=function(){return this.wd_1};i(pt).oo=function(t,e,n,r){return new pt(t,e,n,r)};i(pt).copy=function(t,e,n,r,a){return t=t===u?this.td_1:t,e=e===u?this.ud_1:e,n=n===u?this.vd_1:n,r=r===u?this.wd_1:r,this.oo(t,e,n,r)};i(pt).toString=function(){return"StringLiteral(start="+this.td_1+", end="+this.ud_1+", value="+this.vd_1+", matches="+Tt(this.wd_1)+")"};i(pt).hashCode=function(){var t=this.td_1;return t=D(t,31)+this.ud_1|0,t=D(t,31)+Qe(this.vd_1)|0,t=D(t,31)+(this.wd_1==null?0:ot(this.wd_1))|0,t};i(pt).equals=function(t){if(this===t)return!0;if(!(t instanceof pt))return!1;var e=t instanceof pt?t:S();return!(this.td_1!==e.td_1||this.ud_1!==e.ud_1||this.vd_1!==e.vd_1||!E(this.wd_1,e.wd_1))};function Zt(t,e){this.ld_1=t,this.md_1=e}i(Zt).r1=function(){return this.ld_1};i(Zt).of=function(){return this.md_1};i(Zt).stringify=function(){return Tt(this.value)};function Ft(t,e){t=t===u?"":t,this.po_1=t,this.qo_1=e}i(Ft).ro=function(t,e){return this.qo_1(t,e,this.po_1)};i(Ft).toString=function(){return"Parser(prefix="+this.po_1+", temp="+j(this.qo_1)+")"};i(Ft).hashCode=function(){var t=Qe(this.po_1);return t=D(t,31)+ot(this.qo_1)|0,t};i(Ft).equals=function(t){if(this===t)return!0;if(!(t instanceof Ft))return!1;var e=t instanceof Ft?t:S();return!(this.po_1!==e.po_1||!E(this.qo_1,e.qo_1))};function qt(t,e){e=e===u?0:e,this.so_1=t,this.uo_1=e}i(qt).toString=function(){return"ParserResult(data="+Tt(this.so_1)+", length="+this.uo_1+")"};i(qt).hashCode=function(){var t=this.so_1==null?0:ot(this.so_1);return t=D(t,31)+this.uo_1|0,t};i(qt).equals=function(t){if(this===t)return!0;if(!(t instanceof qt))return!1;var e=t instanceof qt?t:S();return!(!E(this.so_1,e.so_1)||this.uo_1!==e.uo_1)};function Dg(t,e){var n=0,r=Ze(e,n);if(!E(r==null?null:new nt(r),new nt(40)))return!1;n=n+1|0,n=n+t.vo_1.ro(e,n).uo_1|0;var a=Zr(48,57),o=Ze(e,n),s,l=o;if((l==null?null:new nt(l))!=null?s=a.xb(o):s=!1,!s)return!1;n=n+t.zo_1.ro(e,n).uo_1|0,n=n+t.vo_1.ro(e,n).uo_1|0;var c=Ze(e,n);return E(c==null?null:new nt(c),new nt(44))}function Bg(t,e,n){var r=ts().allSubClasses,a;t:{for(var o=0,s=r.length;o<s;){var l=r[o];if(o=o+1|0,Xo(e,l.key,n)){a=l;break t}}a=null}var c=a,f;c==null?re(e,n,"CompareOperator"):f=c;var h=f;return new Ut(n,n+h.key.length|0,h)}function Il(t,e,n){var r=e;if((r==null?null:new nt(r))==null)return!1;var a,o,s,l=e;return E(l==null?null:new nt(l),new nt(95))?s=!0:s=Zr(97,122).xb(e),s?o=!0:o=Zr(65,90).xb(e),o?a=!0:a=!n&&Zr(48,57).xb(e),a}function zc(t,e,n,r){return n=n===u?!1:n,Il(t,e,n)}function $s(t,e,n,r){if(Xo(e,r,n)){var a=Ze(e,n+r.length|0),o,s=a;if((s==null?null:new nt(s))==null)return!0;o=a;var l=o;return!(l===95||97<=l&&l<=122||65<=l&&l<=90||48<=l&&l<=57)}return!1}function Fc(t,e,n){var r="tfn-"+t.fp_1.po_1+t.zo_1.po_1+t.gp_1;bt(e,n,r);var a=t.np(e,n);return a}function Kg(t,e,n){var r=n,a=Fc(t,e,r);r=r+a.a()|0,r=r+t.vo_1.ro(e,r).uo_1|0;var o=Bg(t,e,r);r=r+o.a()|0,r=r+t.vo_1.ro(e,r).uo_1|0;var s=Fc(t,e,r),l,c;if(E(o.value,es())||E(o.value,Mu())?c=s instanceof pt:c=!1,c){var f;try{f=ky(s.vd_1)}catch(_){var h;if(_ instanceof wn){var d=_;re(e,r,"valid primitive string regex",d)}else throw _;f=h}var v=f;l=s.copy(u,u,u,v)}else l=s;var y=l;return r=r+y.a()|0,new ct(n,r,a,o,y)}function Ug(t,e,n){var r=n;r=r+t.vo_1.ro(e,r).uo_1|0;var a=Lu().allSubClasses,o;t:{for(var s=a.h();s.i();){var l=s.j();if(Xo(e,l.key,n)){o=l;break t}}o=null}var c=o,f;c==null?re(e,n,"LogicalOperator"):f=c;var h=f;return new Ut(r,r+h.key.length|0,h)}function Wg(t,e,n){var r=n;r=r+t.vo_1.ro(e,r).uo_1|0,bt(e,r,"!");var a=r;r=r+1|0,bt(e,r,"(");var o=t.op(e,r,!0);return r=r+o.a()|0,new Xt(a,o)}function Hg(t,e,n){for(var r=e,a="";r<A(t)&&Ge(n,L(t,r));)a=a+Kt(L(t,r)),r=r+1|0;return new qt(a,r-e|0)}function Vg(t,e,n){return bt(t,e,n,"whitespace"),tt().vo_1.ro(t,e)}function Qg(t,e,n){var r=e,a=Ze(t,r),o,s=a;if((s==null?null:new nt(s))!=null?o=!Ge(n,a):o=!1,o)return new qt("");bt(t,r,n,"*0-9a-zA-Z_");var l=Kt(L(t,r));if(r=r+1|0,l==="*")return new qt(l,r-e|0);var c="1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM_.";t:for(;r<A(t);){if(L(l,(r-e|0)-1|0)===46&&bt(t,r,n,"[0-9a-zA-Z_]"),Ge(c,L(t,r)))l=l+Kt(L(t,r));else break t;r=r+1|0}return new qt(l,r-e|0)}function Gg(t){return t.key}function Jg(t,e,n){var r=rs().allSubClasses,a;t:{for(var o=r.h();o.i();){var s=o.j();if(Xo(t,s.key,e)){a=s;break t}}a=null}var l=a,c;l==null?re(t,e,"ConnectOperator"):c=l;var f=c;return new qt(f,f.key.length)}function Xg(t,e,n){var r=e;bt(t,r,n,"number");for(var a="";r<A(t)&&Ge(n,L(t,r));)a=a+Kt(L(t,r)),r=r+1|0;var o;try{o=rm(a)}catch(l){var s;if(l instanceof bi)re(t,e,"valid format number");else throw l;o=s}return new qt(o,r-e|0)}function Yg(t,e,n){var r=e;bt(t,r,n);var a=L(t,r),o;a===43?(r=r+1|0,o=1):a===45?(r=r+1|0,o=-1):o=1;var s=o;r=r+tt().vo_1.ro(t,r).uo_1|0,bt(t,r,tt().zo_1.po_1+"n");var l;if(Ge(tt().zo_1.po_1,L(t,r))){var c=tt().zo_1.ro(t,r);r=r+c.uo_1|0,l=c.so_1}else l=1;var f=D(l,s);return r<A(t)&&L(t,r)===110?(r=r+1|0,new qt(new In(1,f),r-e|0)):new qt(new In(0,f),r-e|0)}function Zg(t,e,n){var r=e;bt(t,r,n);var a=Rt();if(L(t,r)===40){for(r=r+1|0,r=r+tt().vo_1.ro(t,r).uo_1|0,bt(t,r,tt().ap_1.po_1);L(t,r)!==41;){a.m()>0&&bt(t,r,"+-");var o=tt().ap_1.ro(t,r);a.f(o),r=r+o.uo_1|0,r=r+tt().vo_1.ro(t,r).uo_1|0,r>=A(t)&&bt(t,r,")")}r=r+1|0}else{var s=tt().ap_1.ro(t,r);a.f(s),r=r+s.uo_1|0}for(var l=vh(),c=a.h();c.i();){var f=c.j(),h=f.so_1,d=h.pc(),v=h.qc(),y=l.t1(d),_=(y==null?0:y)+v|0;l.u3(d,_)}for(var m=a0(l.m()),g=l.u1().h();g.i();){var p=g.j();p.q1()>1&&re(t,e,"power must be 0 or 1");var C=p.r1();m.u3(ut,C)}var k;try{var x=l.t1(1),N=x==null?0:x,F=l.t1(0);k=new It(N,F==null?0:F)}catch(st){var Q;if(st instanceof wn)re(t,e,"valid polynomialExpression");else throw st;k=Q}var H=k;return new qt(H,r-e|0)}function ty(t,e,n){var r=e;bt(t,r,"("),r=r+1|0;for(var a=Rt();r<A(t)&&L(t,r)!==41;){r=r+tt().vo_1.ro(t,r).uo_1|0;var o=tt().zo_1.ro(t,r);a.l()?o.so_1<=0&&re(t,r,"positive integer"):o.so_1<=ya(a)&&re(t,r,">"+ya(a)),r=r+o.uo_1|0,a.f(o.so_1),r=r+tt().vo_1.ro(t,r).uo_1|0;var s=Ze(t,r);E(s==null?null:new nt(s),new nt(44))&&(r=r+1|0,r=r+tt().vo_1.ro(t,r).uo_1|0,bt(t,r,tt().zo_1.po_1+")"))}return bt(t,r,")"),r=r+1|0,new qt(new Ae(a),r-e|0)}function ey(t,e,n){var r=e,a;if(Dg(tt(),un(t,e,A(t)))){var o=tt().cp_1.ro(t,r);r=r+o.uo_1|0,a=new qt(o.so_1,r-e|0)}else{var s=tt().bp_1.ro(t,e);r=r+s.uo_1|0,a=new qt(s.so_1,r-e|0)}return a}function ny(t,e,n){var r=e,a=tt().yo_1.ro(t,r);r=r+a.uo_1|0;var o=null;r<A(t)&&Ge(tt().dp_1.po_1,L(t,r))&&(o=tt().dp_1.ro(t,r),r=r+o.uo_1|0);var s=o,l=s==null?null:s.so_1;return new qt(new fe(a.so_1,l==null?new It:l),r-e|0)}function ry(t,e,n){var r=e;bt(t,r,n);var a=L(t,r);r=r+1|0,r>=A(t)&&re(t,r,"any char");var o="";t:for(;L(t,r)!==a;){if(r>=(A(t)-1|0)){bt(t,r,Kt(a));break t}var s=L(t,r),l=ze(s);if(0<=l&&l<=31&&re(t,r,"0-1f escape char"),L(t,r)===92){r=r+1|0,bt(t,r);var c=o,f=L(t,r),h;if(f===92)h=92;else if(f===39)h=39;else if(f===34)h=34;else if(f===96)h=96;else if(f===110)h=10;else if(f===114)h=13;else if(f===116)h=9;else if(f===98)h=8;else if(f===120){var d=0;if(d<2)do d=d+1|0,r=r+1|0,bt(t,r,"0123456789abcdefABCDEF");while(d<2);var v=(r-2|0)+1|0,y=r+1|0,_=j(un(t,v,y));h=Sa(Ic(_,16))}else if(f===117){var m=0;if(m<4)do m=m+1|0,r=r+1|0,bt(t,r,"0123456789abcdefABCDEF");while(m<4);var g=(r-4|0)+1|0,p=r+1|0,C=j(un(t,g,p));h=Sa(Ic(C,16))}else re(t,r,"escape char");o=c+Kt(h)}else o=o+Kt(L(t,r));r=r+1|0}return r=r+1|0,new qt(o,r-e|0)}function iy(t,e,n){var r=e;bt(t,r,n);var a=Kt(L(t,r));for(r=r+1|0;r<A(t)&&Ge(tt().hp_1,L(t,r));)L(t,r)===46&&bt(t,r+1|0,n),a=a+Kt(L(t,r)),r=r+1|0;return new qt(a,r-e|0)}function ay(t,e,n){var r=e;bt(t,r,n),r=r+1|0,r=r+tt().vo_1.ro(t,r).uo_1|0;var a=tt().pp(t,r);return r=r+a.a()|0,bt(t,r,"]"),r=r+1|0,new qt(a,r-e|0)}function oy(t,e,n){var r=e,a=!1,o=Ze(t,r);E(o==null?null:new nt(o),new nt(64))&&(a=!0,r=r+1|0);var s=tt().xo_1.ro(t,r);r=r+s.uo_1|0;for(var l=Rt();r<A(t)&&L(t,r)===91;){var c=tt().jp_1.ro(t,r);r=r+c.uo_1|0,l.f(c.so_1)}return s.uo_1===0&&l.m()===0&&re(t,r,"["),new qt(new ae(a,s.so_1,l),r-e|0)}function sy(t,e,n){var r=e;r=r+tt().vo_1.ro(t,r).uo_1|0;var a=tt().kp_1.ro(t,r);r=r+a.uo_1|0;var o=Rt();t:for(;r<A(t)&&Ge(tt().vo_1.po_1,L(t,r));){if(r=r+tt().wo_1.ro(t,r).uo_1|0,r>=A(t))break t;var s;if(Ge(tt().ep_1.po_1,L(t,r))){var l=tt().ep_1.ro(t,r);r=r+l.uo_1|0,r=r+tt().wo_1.ro(t,r).uo_1|0,s=l.so_1}else s=new fe(u,new It(1,0));var c=s,f=tt().kp_1.ro(t,r);r=r+f.uo_1|0,o.f(Pc(c,f.so_1))}return new qt(Pc(a.so_1,o),r-e|0)}function ly(t,e,n){return e!==A(t)&&re(t,e,"EOF"),new qt(ut,0)}function io(){ql=this;var t=this;t.vo_1=new Ft(` \r
|
|
270
|
-
`,Hg);var e=this;e.wo_1=new Ft(` \r
|
|
271
|
-
`,Vg);var n=this;n.xo_1=new Ft("*1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM_",Qg);var r=this,a=rs().allSubClasses,o=En(a,"",u,u,u,u,Gg);r.yo_1=new Ft(o,Jg);var s=this;s.zo_1=new Ft("1234567890",Xg);var l=this;l.ap_1=new Ft("+-1234567890n",Yg);var c=this;c.bp_1=new Ft("(0123456789n",Zg);var f=this;f.cp_1=new Ft(u,ty);var h=this;h.dp_1=new Ft(this.bp_1.po_1,ey);var d=this;d.ep_1=new Ft(this.yo_1.po_1,ny);var v=this;v.fp_1=new Ft("`'\"",ry),this.gp_1="_"+En(Zr(97,122),"")+En(Zr(65,90),""),this.hp_1=this.gp_1+Kt(46)+En(Zr(48,57),"");var y=this;y.ip_1=new Ft(this.gp_1,iy);var _=this;_.jp_1=new Ft("[",ay);var m=this;m.kp_1=new Ft(u,oy);var g=this;g.lp_1=new Ft(u,sy);var p=this;p.mp_1=new Ft(u,ly)}i(io).np=function(t,e){var n=e;if(n=n+this.vo_1.ro(t,n).uo_1|0,n>=A(t)&&re(t,n,"Variable"),$s(this,t,n,"true"))return new he(n,!0);if($s(this,t,n,"false"))return new he(n,!1);if($s(this,t,n,"null"))return new Te(n);if(Ge(this.fp_1.po_1,L(t,n))){var r=this.fp_1.ro(t,n);return n=n+r.uo_1|0,new pt(n-r.uo_1|0,n,r.so_1)}if(L(t,n)===45){n=n+1|0;var a=this.zo_1.ro(t,n);return n=n+a.uo_1|0,new Wt((n-a.uo_1|0)-1|0,n,-a.so_1|0)}if(Ge(this.zo_1.po_1,L(t,n))){var o=this.zo_1.ro(t,n);return n=n+o.uo_1|0,new Wt(n-o.uo_1|0,n,o.so_1)}var s=null;t:for(;n<A(t);){n=n+this.vo_1.ro(t,n).uo_1|0;var l=Ze(t,n),c=l;if(E(c==null?null:new nt(c),new nt(40))){var f=n;if(n=n+1|0,n=n+this.vo_1.ro(t,n).uo_1|0,s!=null){s instanceof xt&&re(t,n,"Variable");for(var h=Rt();n<A(t)&&L(t,n)!==41;){var d=this.np(t,n);h.f(d),n=n+d.a()|0;var v=Ze(t,n);E(v==null?null:new nt(v),new nt(44))&&(n=n+1|0,n=n+this.vo_1.ro(t,n).uo_1|0)}n=n+this.vo_1.ro(t,n).uo_1|0,bt(t,n,")"),n=n+1|0,s=new xt(s.tc(),n,s,h)}else{var y=this.np(t,n);n=n+y.a()|0,n=n+this.vo_1.ro(t,n).uo_1|0,bt(t,n,")"),n=n+1|0;var _=n,m;return y instanceof he?m=y.copy(f):y instanceof Wt?m=y.copy(f,_):y instanceof Te?m=y.copy(f):y instanceof pt||y instanceof xt?m=y.copy(f,_):y instanceof Ct?m=y.copy(f):y instanceof vt?m=y.copy(f,_):Nn(),m}}else{var g=l;if(E(g==null?null:new nt(g),new nt(46))){n=n+1|0,s instanceof Me||re(t,n,"Variable"),Il(this,Ze(t,n),!0)||re(t,n,"Variable");var p;e:{var C=fc(t,n),k=0,x=A(C);if(k<x)do{var N=k;k=k+1|0;var F=L(C,N);if(!Il(tt(),F,!1)){p=un(C,0,N);break e}}while(k<x);p=un(C,0,A(C))}var Q=j(p);s=new vt(s.tc(),n+Q.length|0,s,Q),n=n+Q.length|0}else if(zc(this,l)){var H;e:{var st=fc(t,n),dt=0,Lt=A(st);if(dt<Lt)do{var Ot=dt;dt=dt+1|0;var ue=L(st,Ot);if(!zc(tt(),ue)){H=un(st,0,Ot);break e}}while(dt<Lt);H=un(st,0,A(st))}var _t=j(H);s=new Ct(n,_t),n=n+_t.length|0}else break t}}return s==null&&re(t,n,"Variable"),s};i(io).op=function(t,e,n){var r=e;r=r+this.vo_1.ro(t,r).uo_1|0;var a=Rt();t:for(;r<A(t)&&L(t,r)!==93&&L(t,r)!==41;){var o=L(t,r);if(o===40){var s=r;if(!a.l()){var l=ya(a),c;if(l instanceof Ut){var f=l.value;c=f instanceof Tn}else c=!1;if(!c){for(var h=0;(r-1|0)>=h&&Ge(this.vo_1.po_1,L(t,(r-1|0)-h|0));)h=h+1|0;re(t,(r-h|0)-l.a()|0,"LogicalOperator")}}r=r+1|0;var d=this.pp(t,r);r=r+d.a()|0;var v=d;bt(t,r,")"),r=r+1|0;var y=r,_;if(v instanceof ct||v instanceof ft?_=v.copy(s,y):v instanceof Xt?_=v.copy(s):Nn(),a.f(_),n)break t}else if(Ge("|&",o)){var m=Ug(this,t,r);r=r+m.a()|0,a.f(m),r=r+this.vo_1.ro(t,r).uo_1|0,bt(t,r,"(!"+this.ip_1.po_1)}else if(o===33){var g=Wg(this,t,r);r=r+g.a()|0,a.f(g),r=r+this.vo_1.ro(t,r).uo_1|0}else{var p=Kg(this,t,r);r=r+p.a()|0,a.f(p)}r=r+this.vo_1.ro(t,r).uo_1|0}if(a.l()&&re(t,r-e|0,"Expression"),a.m()===1){var C=Ki(a);return C instanceof We?C:S()}for(var k=Bl(a),x=0;x<k.m();){var N=k.k(x),F;if(N instanceof Ut?F=E(N.value,Ou()):F=!1,F){var Q=k.k(x-1|0),H=Q instanceof We?Q:S(),st=k.k(x+1|0),dt=st instanceof We?st:S(),Lt=N instanceof Ut?N:S();k.p2(x,new ft(H.tc(),dt.uc(),H,Lt,dt)),k.x2(x-1|0),k.x2((x+1|0)-1|0)}else x=x+1|0}for(;k.m()>1;){var Ot=k.k(0),ue=Ot instanceof We?Ot:S(),_t=k.k(1),te=_t instanceof Ut?_t:S(),ce=k.k(2),on=ce instanceof We?ce:S();k.p2(1,new ft(ue.tc(),on.uc(),ue,te,on)),k.x2(0),k.x2(1)}var Qt=Ki(k);return Qt instanceof We?Qt:S()};i(io).pp=function(t,e,n,r){return n=n===u?!1:n,r===u?this.op(t,e,n):r.op.call(this,t,e,n)};var ql;function tt(){return ql==null&&new io,ql}function $d(t){var e=0;e=e+tt().vo_1.ro(t,e).uo_1|0;var n=tt().lp_1.ro(t,e);e=e+n.uo_1|0,e=e+tt().vo_1.ro(t,e).uo_1|0,e=e+tt().mp_1.ro(t,e).uo_1|0;var r=n.so_1,a=Rt(),o=Rt();a.f(r.nc_1);for(var s=r.oc_1.h();s.i();){var l=s.j();a.f(l.oc_1),o.f(l.nc_1)}for(var c=Dh([new Yt(Ki(a))]),f=0,h=o.h();h.i();){var d=h.j(),v=f;f=v+1|0;var y=Eo(v),_=new qe(d,ya(c)),m=new Yt(a.k(y+1|0),_);c.f(m)}return new xe(t,ya(c))}function uy(t){Cy(t)}function Gr(t,e,n,r,a,o){this.booleanType=t,this.intType=e,this.stringType=n,this.contextType=r,this.nodeType=a,this.globalType=o}i(Gr).qp=function(){return this.booleanType};i(Gr).rp=function(){return this.intType};i(Gr).sp=function(){return this.stringType};i(Gr).tp=function(){return this.contextType};i(Gr).up=function(){return this.nodeType};i(Gr).vp=function(){return this.globalType};function cy(t){t=t===u?!1:t;var e=new Bt(Ta()),n=new Bt(Pa()),r=new Bt(Ra()),a=new Bt(new Be("node")),o=new Bt(new Be("context")),s=new Bt(new Be("global")),l=e,c=new W("toInt",n),f=[e],h=new W("or",e,f),d=[e];l.methods=tr([[c,h,new W("and",e,d),new W("not",e)],Ns(e,n,r,a,o,"ifElse",e,2)]);var v=n,y=new W("toString",r),_=[n],m=new W("toString",r,_),g=[n],p=new W("plus",n,g),C=[n],k=new W("minus",n,C),x=[n],N=new W("times",n,x),F=[n],Q=new W("div",n,F),H=[n],st=new W("rem",n,H),dt=[n],Lt=new W("more",e,dt),Ot=[n],ue=new W("moreEqual",e,Ot),_t=[n],te=new W("less",e,_t),ce=[n];v.methods=[y,m,p,k,N,Q,st,Lt,ue,te,new W("lessEqual",e,ce)];var on=r;on.props=[new X("length",n)];var Qt=r,Se=[n],Cn=new W("get",r,Se),Pn=[n],Nr=new W("at",r,Pn),P=[n],lt=new W("substring",r,P),mt=[n,n],Gt=new W("substring",r,mt),$e=new W("toInt",n),Ei=[n],Ni=new W("toInt",n,Ei),Ii=[r],us=new W("indexOf",n,Ii),la=[r,n];Qt.methods=[Cn,Nr,lt,Gt,$e,Ni,us,new W("indexOf",n,la)];var ua=a,Jr;t?Jr=[new X("_id",n),new X("_pid",n)]:Jr=[],ua.props=tr([Jr,[new X("id",r),new X("vid",r),new X("name",r),new X("text",r),new X("desc",r),new X("clickable",e),new X("focusable",e),new X("checkable",e),new X("checked",e),new X("editable",e),new X("longClickable",e),new X("visibleToUser",e),new X("left",n),new X("top",n),new X("right",n),new X("bottom",n),new X("width",n),new X("height",n),new X("childCount",n),new X("index",n),new X("depth",n),new X("parent",a)]]);var Xr=a,ao=[n];Xr.methods=[new W("getChild",a,ao)];var Ir=o,Rn=a.methods,cs=[n];Ir.methods=tr([Rn,[new W("getPrev",o,cs)]]);var fs=o;fs.props=tr([a.props,[new X("prev",o),new X("current",a)]]);var qi=s;qi.methods=tr([o.methods,Ns(e,n,r,a,o,"equal",e,2),Ns(e,n,r,a,o,"notEqual",e,2)]);var hs=s;return hs.props=o.props.slice(),new Gr(e,n,r,o,a,s)}function fy(t,e,n){var r;switch(e){case"plus":r=t+Oe(n)|0;break;case"minus":r=t-Oe(n)|0;break;case"times":r=D(t,Oe(n));break;case"div":var a=Oe(n);if(a===0)return null;r=t/a|0;break;case"rem":var o=Oe(n);if(o===0)return null;r=t%o|0;break;case"more":r=t>Oe(n);break;case"moreEqual":r=t>=Oe(n);break;case"less":r=t<Oe(n);break;case"lessEqual":r=t<=Oe(n);break;default:r=null;break}return r}function hy(t,e,n){return my(t,e,n)}function dy(t,e,n){switch(e){case"toInt":return t?1:0;case"not":return!t;default:return null}}function vy(t,e){return gy(t,e)}function py(t,e){e=e===u?34:e;var n=Rh(t.length+2|0);n.b6(e);for(var r=0;r<A(t);){var a=L(t,r);r=r+1|0;var o=a===e?e:a===10?110:a===13?114:a===9?116:a===8?98:a===92?92:null,s=o;if((s==null?null:new nt(s))!=null){var l=o;n.a6("\\"+Tt(l==null?null:new nt(l)))}else{var c=ze(a);if(0<=c&&c<=15){var f=ze(a);n.a6("\\x0"+Nc(f,16))}else if(16<=c&&c<=31){var h=ze(a);n.a6("\\x"+Nc(h,16))}else n.b6(a)}}return n.b6(e),n.toString()}function Es(t,e,n){if(gu(t,e)&&zh(t,n)&&t.length>=(e.length+n.length|0)){var r=e.length,a=t.length-n.length|0;if(r<a)do{var o=r;if(r=r+1|0,Ge("\\^$.?*|+()[]{}",L(t,o)))return null}while(r<a);return j(un(t,e.length,t.length-n.length|0))}return null}function _y(t){var e=Es(t,"(?is)",".*");if(e!=null)return yy(e);var n=Es(t,"(?is).*",".*");if(n!=null)return by(n);var r=Es(t,"(?is).*","");return r!=null?wy(r):null}function Oe(t,e){e=e===u?0:e;var n=t.k(e);return typeof n=="number"?n:S()}function my(t,e,n){var r;switch(e){case"get":var a=Ze(t,Oe(n));r=Tt(a==null?null:new nt(a));break;case"at":var o=Oe(n),s;if(o<0){var l=Ze(t,A(t)+o|0);s=Tt(l==null?null:new nt(l))}else{var c=Ze(t,o);s=Tt(c==null?null:new nt(c))}r=s;break;case"substring":var f;switch(n.m()){case 1:var h=Oe(n);if(h<0)return null;if(h>=A(t))return"";var d=A(t);f=j(un(t,h,d));break;case 2:var v=Oe(n);if(v<0)return null;if(v>=A(t))return"";var y=Oe(n,1);if(y<v)return null;var _=ba(y,A(t));f=j(un(t,v,_));break;default:f=null;break}r=f;break;case"toInt":var m;switch(n.m()){case 0:m=id(j(t));break;case 1:var g=Oe(n);if(!(2<=g&&g<=36))return null;m=Iu(j(t),g);break;default:m=null;break}r=m;break;case"indexOf":var p;switch(n.m()){case 1:var C=n.k(0),k=de(C)?C:null,x;if(k==null)return null;x=k;var N=x;p=tl(t,j(N));break;case 2:var F=n.k(0),Q=de(F)?F:null,H;if(Q==null)return null;H=Q;var st=H,dt=Oe(n,1);p=tl(t,j(st),dt);break;default:p=null;break}r=p;break;default:r=null;break}return r}function gy(t,e){return e==="length"?A(t):null}function Ns(t,e,n,r,a,o,s,l){for(var c=0,f=Zn(Array(l),null);c<l;)f[c]=t,c=c+1|0;for(var h=new W(o,s,f),d=0,v=Zn(Array(l),null);d<l;)v[d]=e,d=d+1|0;for(var y=new W(o,s,v),_=0,m=Zn(Array(l),null);_<l;)m[_]=n,_=_+1|0;for(var g=new W(o,s,m),p=0,C=Zn(Array(l),null);p<l;)C[p]=r,p=p+1|0;for(var k=new W(o,s,C),x=0,N=Zn(Array(l),null);x<l;)N[x]=a,x=x+1|0;return[h,y,g,k,new W(o,s,N)]}function yy(t){return function(e){return qu(e,t,!0)}}function by(t){return function(e){return Au(e,t,!0)}}function wy(t){return function(e){return Jo(e,t,!0)}}var ko;function ky(t){if(ko!==null){var e=Pe(ko)(t);return xy(e)}if(t.length>=4&&gu(t,"(?")){var n=2,r=t.length;if(n<r)t:do{var a=n;n=n+1|0;var o=L(t,a);if(!(97<=o&&o<=122)&&!(65<=o&&o<=90))if(o===41){var s=_p(un(t,2,a));s.f(new nt(103)),s.f(new nt(117));var l=En(s,""),c=a+1|0,f=t.substring(c),h=new RegExp(f,l);return Sy(h)}else break t}while(n<r)}var d=om(t);return $y(d)}function Cy(t){ko=t}function xy(t){return function(e){return t(j(e))}}function Sy(t){return function(e){Ph(t);var n=t.exec(j(e));return n!=null&&n.index===0&&t.lastIndex===A(e)}}function $y(t){return function(e){return t.w8(e)}}i(We).a=Tu;K(i(We),"binaryExpressions",function(){return this.bd()});K(i(ct),"properties",i(ct).cd);K(i(ct),"methods",i(ct).dd);K(i(Ia),"allSubClasses",i(Ia).kd);K(i(Si),"minOffset",function(){return this.yd()});K(i(Si),"maxOffset",function(){return this.zd()});K(i(qa),"allSubClasses",i(qa).kd);K(i(le),"message",function(){return this.i7()});K(i(Fe),"value",function(){return this.r1()});K(i(Aa),"allSubClasses",i(Aa).kd);i(Ut).a=Tu;K(i(ae),"binaryExpressions",i(ae).bd);K(i(Yt),"length",i(Yt).a);K(i(oe),"cause",function(){return this.j7()});i(Zt).a=Tu;K(i(Zt),"value",function(){return this.r1()});K(i(Zt),"type",function(){return this.of()});K(i(Zt),"properties",function(){return this.cd()});K(i(Zt),"methods",function(){return this.dd()});xd=new ss;Sd=new zu;ko=null;K(U,"Companion",ts);K(U,"Equal",nr);K(U,"NotEqual",ud);K(U,"Start",Qr);K(U,"NotStart",cd);K(U,"Include",Pu);K(U,"NotInclude",fd);K(U,"End",Ru);K(U,"NotEnd",hd);K(U,"Less",ro);K(U,"LessEqual",dd);K(U,"More",vd);K(U,"MoreEqual",pd);K(U,"Matches",es);K(U,"NotMatches",Mu);K(ge,"Companion",rs);K(ge,"BeforeBrother",_d);K(ge,"AfterBrother",md);K(ge,"Ancestor",bo);K(ge,"Child",gd);K(ge,"Descendant",is);Fe.Id=cn;Fe.Vid=fn;Fe.Text=hn;K(Tn,"Companion",Lu);K(Tn,"AndOperator",Ou);K(Tn,"OrOperator",ju);K(xe,"Companion",fg);K(wt,"Companion",gg);K(an,"BooleanType",Ta);K(an,"IntType",Pa);K(an,"StringType",Ra);an.ObjectType=Be;Zt.Variable=Me;Zt.Identifier=Ct;Zt.MemberExpression=vt;Zt.CallExpression=xt;Zt.LiteralExpression=Je;Zt.NullLiteral=Te;Zt.BooleanLiteral=he;Zt.IntLiteral=Wt;Zt.StringLiteral=pt;async function Ey(t){t instanceof Promise&&(t=await t);const e={"kotlin.captureStackTrace":()=>new Error().stack,"kotlin.wasm.internal.throwJsError":(o,s,l)=>{const c=new Error;throw c.message=o,c.name=s,c.stack=l,c},"kotlin.wasm.internal.stringLength":o=>o.length,"kotlin.wasm.internal.jsExportStringToWasm":(o,s,l,c)=>{const f=new Uint16Array(r.memory.buffer,c,l);let h=0,d=s;for(;h<l;)f.set([o.charCodeAt(d)],h),d++,h++},"kotlin.wasm.internal.importStringFromWasm":(o,s,l)=>{const c=new Uint16Array(r.memory.buffer,o,s),f=String.fromCharCode.apply(null,c);return l==null?f:l+f},"kotlin.wasm.internal.getJsEmptyString":()=>"","kotlin.wasm.internal.isNullish":o=>o==null,"kotlin.wasm.internal.getJsTrue":()=>!0,"kotlin.wasm.internal.getJsFalse":()=>!1,"kotlin.random.initialSeed":()=>Math.random()*Math.pow(2,32)|0,"li.songe.matches.__convertKotlinClosureToJsClosure_((String)->Boolean)":o=>s=>r["__callFunction_((String)->Boolean)"](o,s)};let n,r;const a={js_code:e};try{if(t instanceof Response)n=(await WebAssembly.instantiateStreaming(t,a)).instance;else{const o=new WebAssembly.Module(t);n=new WebAssembly.Instance(o,a)}}catch(o){throw o instanceof WebAssembly.CompileError&&console.error(`Please make sure that your runtime environment supports the latest version of Wasm GC and Exception-Handling proposals.
|
|
272
|
-
For more information, see https://kotl.in/wasm-help
|
|
273
|
-
`),o}return r=n.exports,r._initialize(),{instance:n,exports:r}}const Ny="https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1721662707331/files/dist/assets/mod-BHC4TAjm.wasm",Iy=Ey(fetch(Ny)).then(t=>{const e=t.exports.toMatches;uy(e),fo.wasmSupported=!0,console.log("use wasm matches")}).catch(t=>{fo.wasmSupported=!1,console.error(t),console.log("use js matches")}),Dc=(t,e)=>{var n,r;return e=="_id"?t.id:e=="_pid"?t.pid:e=="parent"?(n=t.parent)!=null?n:null:(r=Reflect.get(t.attr,e))!=null?r:null},Bc=(t,e,n)=>{var r;if(e==="getChild"){const a=n.asJsReadonlyArrayView()[0];return(r=t.children[a])!=null?r:null}return null},Is=wt.Companion.multiplatformBuild((t,e)=>typeof t=="string"?vy(t,e):t instanceof Jt?e==="prev"?t.prev:e==="current"?t.current:Dc(t.current,e):nc(t)?Dc(t,e):null,(t,e,n)=>{if(typeof t=="number")return fy(t,e,n);if(typeof t=="boolean")return dy(t,e);if(typeof t=="string")return hy(t,e,n);if(t instanceof Jt){if(e==="getPrev"){const r=n.asJsReadonlyArrayView()[0];return Number.isSafeInteger(r)?t.getPrev(r):null}return Bc(t.current,e,n)}return nc(t)?Bc(t,e,n):null},t=>t.attr.name,t=>t.children,t=>t.parent),qy=cy(!0).globalType,Ay=new De(!1,!1),Ty=t=>{var r;const e=xe.Companion.parse(t);for(const a of e.binaryExpressions)if(a.operator.value.key=="~="&&!fo.wasmSupported&&!Jc.ignoreWasmWarn){fo.wasmErrorDlgVisible=!0;break}return Py(e),{s:e,targetIndex:e.targetIndex,connectKeys:e.connectWrappers.map(a=>a.segment.operator.key),canQf:!!((r=e.quickFindValue)!=null&&r.value),qfIdValue:e.quickFindValue instanceof Fe.Id?e.quickFindValue.value:null,qfVidValue:e.quickFindValue instanceof Fe.Vid?e.quickFindValue.value:null,qfTextValue:e.quickFindValue instanceof Fe.Text?e.quickFindValue.value:null,canCopy:!e.binaryExpressions.some(a=>a.properties.some(o=>o.startsWith("_"))),toString:()=>e.stringify(),match:a=>{var o;return(o=e.match(a,Is,Ay))!=null?o:void 0},querySelectorAll:a=>Is.querySelectorAllArray(a,e),querySelectorTrackAll:a=>Is.querySelectorAllContextArray(a,e).map(o=>o.toArray())}},Py=t=>{const e=t.checkType(qy);if(e!=null){if(e instanceof we)throw new Error("不匹配表达式类型:"+e.exception.stringify(),{cause:e});if(e instanceof nn)throw new Error("不匹配操作符类型:"+e.exception.stringify(),{cause:e});if(e instanceof ie)throw new Error("不匹配参数类型:"+e.call.stringify(),{cause:e});if(e instanceof tn)throw new Error("未知属性:"+e.value.value,{cause:e});if(e instanceof He)throw new Error("未知方法:"+e.value.value,{cause:e});if(e instanceof en)throw new Error("未知属性:"+e.value.property,{cause:e});if(e instanceof Ve)throw new Error("未知方法:"+e.value.property,{cause:e})}};var Fu={},ls={};Object.defineProperty(ls,"__esModule",{value:!0});function Ry(t){return String.fromCharCode(parseInt(t.slice(1),16))}function My(t){return btoa(encodeURIComponent(t).replace(/%[0-9A-F]{2}/g,Ry))}ls.encode=My;function Ly(t){return`%${`00${t.charCodeAt(0).toString(16)}`.slice(-2)}`}function Oy(t){return decodeURIComponent(Array.from(atob(t),Ly).join(""))}ls.decode=Oy;Object.defineProperty(Fu,"__esModule",{value:!0});const Ed=ls;function jy(t){return Ed.decode(t.replace(/\-/g,"+").replace(/_/g,"/"))}var zy=Fu.decode=jy;function Fy(t){return Ed.encode(t).replace(/\//g,"_").replace(/\+/g,"-").replace(/=+$/,"")}var Dy=Fu.encode=Fy;const Du=tf(),By=rt(()=>Du.width.value/100),Ky=rt(()=>Math.max(1200,Du.width.value));rt(()=>Math.max(700,Du.height.value));const Uy={"bg-white":"","b-1px":"","b-solid":"","b-gray-200":"","rounded-4px":"","p-8px":""},Wy={flex:"","m-b-4px":""},Hy=R("svg",{viewBox:"0 0 32 32"},[R("path",{d:"M29 27.586l-7.552-7.552a11.018 11.018 0 1 0-1.414 1.414L27.586 29zM4 13a9 9 0 1 1 9 9a9.01 9.01 0 0 1-9-9z",fill:"currentColor"})],-1),Vy=R("div",{"p-5px":""},null,-1),Qy={key:0,underline:"","decoration-1":"","m-r-4px":"",title:"查询数量"},Gy=["title"],Jy=R("svg",{viewBox:"0 0 24 24"},[R("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",fill:"currentColor"})],-1),Xy=R("div",{"p-l-4px":""},null,-1),Yy=R("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},[R("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81c1.66 0 3-1.34 3-3s-1.34-3-3-3s-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65c0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92z",fill:"currentColor"})],-1),Zy=R("div",{"p-l-4px":""},null,-1),tb=R("svg",{viewBox:"0 0 24 24"},[R("g",{fill:"none"},[R("path",{d:"M12 1.75a3.25 3.25 0 0 1 3.245 3.066L15.25 5h5.25a.75.75 0 0 1 .102 1.493L20.5 6.5h-.796l-1.28 13.02a2.75 2.75 0 0 1-2.561 2.474l-.176.006H8.313a2.75 2.75 0 0 1-2.714-2.307l-.023-.174L4.295 6.5H3.5a.75.75 0 0 1-.743-.648L2.75 5.75a.75.75 0 0 1 .648-.743L3.5 5h5.25A3.25 3.25 0 0 1 12 1.75zm6.197 4.75H5.802l1.267 12.872a1.25 1.25 0 0 0 1.117 1.122l.127.006h7.374c.6 0 1.109-.425 1.225-1.002l.02-.126L18.196 6.5zM13.75 9.25a.75.75 0 0 1 .743.648L14.5 10v7a.75.75 0 0 1-1.493.102L13 17v-7a.75.75 0 0 1 .75-.75zm-3.5 0a.75.75 0 0 1 .743.648L11 10v7a.75.75 0 0 1-1.493.102L9.5 17v-7a.75.75 0 0 1 .75-.75zm1.75-6a1.75 1.75 0 0 0-1.744 1.606L10.25 5h3.5A1.75 1.75 0 0 0 12 3.25z",fill:"currentColor"})])],-1),eb=R("svg",{viewBox:"0 0 24 24"},[R("path",{fill:"currentColor",d:"M5 21V8.825Q4.125 8.5 3.563 7.738T3 6q0-1.25.875-2.125T6 3q1.25 0 2.125.875T9 6q0 .975-.562 1.738T7 8.825V19h4V3h8v12.175q.875.325 1.438 1.088T21 18q0 1.25-.875 2.125T18 21q-1.25 0-2.125-.875T15 18q0-.975.563-1.75T17 15.175V5h-4v16zM6 7q.425 0 .713-.288T7 6q0-.425-.288-.712T6 5q-.425 0-.712.288T5 6q0 .425.288.713T6 7m12 12q.425 0 .713-.288T19 18q0-.425-.288-.712T18 17q-.425 0-.712.288T17 18q0 .425.288.713T18 19m0-1"})],-1),nb=Mt({__name:"SearchCard",props:{snapshot:{},rootNode:{},focusNode:{},onUpdateFocusNode:{type:Function,default:si},onUpdateTrack:{type:Function,default:si}},setup(t){Xc();const e=Yc(),n=t,r=ne(""),a=Ml([]),o=ne([]),s=_=>{const m=z1(()=>Ty(_),p=>typeof p=="string"?p:p instanceof Error&&p.cause instanceof le?p.message:"非法选择器");if(a.find(p=>typeof p.selector=="object"&&p.selector.toString()==m.toString())){Sn.warning("不可重复选择");return}const g=m.querySelectorTrackAll(n.rootNode);if(g.length==0){Sn.success("没有选择到节点");return}return Sn.success(`选择到 ${g.length} 个节点`),a.unshift({selector:m,nodes:g,key:Date.now()}),g.length},l=_=>{if(a.find(p=>typeof p.selector=="string"&&p.selector.toString()==_)){Sn.warning("不可重复搜索");return}const m=[],g=[n.rootNode];for(;g.length>0;){const p=g.pop();ga(p).includes(_)&&m.push(p),g.push(...[...p.children].reverse())}if(m.length==0){Sn.success("没有搜索到节点");return}return Sn.success(`搜索到 ${m.length} 个节点`),a.unshift({selector:_,nodes:m,key:Date.now()}),m.length},c=()=>{const _=a[0],m=_.nodes[0];Array.isArray(m)?typeof _.selector=="object"&&Array.isArray(m)&&n.onUpdateFocusNode(m[_.selector.targetIndex]):n.onUpdateFocusNode(m);const g=new Set(a.map(C=>C.key)),p=o.value.filter(C=>g.has(C));p.push(_.key),o.value=p},f=oc(()=>{const _=r.value.trim();if(_){if(d.value){if(!s(_))return}else if(!l(_))return;c()}});Oa(async()=>{await Iy;let _=0;e.query.gkd&&(_+=s(zy(e.query.gkd))||0),e.query.str&&(_+=l(e.query.str)||0),_>0&&c()});const h=oc(async _=>{var F,Q,H;let m=p1[n.snapshot.id];m&&(m=_1(m));const g=Bi[n.snapshot.id],p=g?Xu(g):void 0,C=_.selector,k=_.nodes[0].at(-1),x=[((F=k.quickFind)!=null?F:k.idQf)&&k.attr.id&&C.qfIdValue,((Q=k.quickFind)!=null?Q:k.idQf)&&k.attr.vid&&C.qfVidValue,((H=k.quickFind)!=null?H:k.textQf)&&k.attr.text&&C.qfTextValue].some(Boolean),N={id:n.snapshot.appId,name:Jn(n.snapshot).name,groups:[{key:1,name:`[ChangeMe]规则名称-${P1().format("YYYY-MM-DD HH:mm:ss")}`,desc:"[ChangeMe]本规则由GKD网页端审查工具生成",rules:[{quickFind:x||void 0,activityIds:n.snapshot.activityId,matches:C.toString(),exampleUrls:m,snapshotUrls:p}]}]};Xn(O1.stringify(N,void 0,2))}),d=ne(!0),v=rt(()=>Bi[n.snapshot.id]),y=_=>{if(!v.value)return;const m=new URL(Xu(Bi[n.snapshot.id]));typeof _.selector=="object"?m.searchParams.set("gkd",Dy(_.selector.toString())):m.searchParams.set("str",_.selector.toString()),Xn(m.toString())};return(_,m)=>(at(),pe(Ll,{initialValue:{top:40,right:Math.max(315,12*I(By)+135),width:Math.max(480,I(Ky)*.3)},minWidth:300,sizeDraggable:"",class:"z-1 box-shadow-dim"},{default:T(({onRef:g})=>[R("div",Uy,[R("div",Wy,[Z(I(A1),{value:d.value,"onUpdate:value":m[0]||(m[0]=p=>d.value=p)},{default:T(()=>[Z(I(Ts),null,{default:T(()=>[Z(I(rc),{value:!1},{default:T(()=>[be(" 字符搜索 ")]),_:1}),Z(I(rc),{value:!0},{default:T(()=>[be(" 选择器查询 ")]),_:1})]),_:1})]),_:1},8,["value"]),R("div",{"flex-1":"","cursor-move":"",ref:g},null,512)]),Z(I(T1),null,{default:T(()=>[Z(I(L1),{value:r.value,"onUpdate:value":m[1]||(m[1]=p=>r.value=p),placeholder:d.value?"请输入选择器":"请输入字符",onKeyup:v1(I(f),["enter"]),inputProps:{class:"gkd_code"}},null,8,["value","placeholder","onKeyup"]),Z(I(Gn),{onClick:I(f)},{icon:T(()=>[Z(I(Yn),null,{default:T(()=>[Hy]),_:1})]),_:1},8,["onClick"])]),_:1}),Vy,Z(I(Y1),{expandedNames:o.value,"onUpdate:expandedNames":m[2]||(m[2]=p=>o.value=p)},{default:T(()=>[(at(!0),Ie(Tr,null,ma(I(a),(p,C)=>(at(),pe(I(ev),{key:p.key,name:p.key},{header:T(()=>[p.nodes.length>1?(at(),Ie("span",Qy,Dt(p.nodes.length),1)):je("",!0),R("span",{"break-all":"",title:typeof p.selector=="object"?"选择器":"搜索字符"},Dt(p.selector.toString()),9,Gy)]),"header-extra":T(()=>[typeof p.selector=="object"&&p.selector.canCopy?(at(),pe(I(Gn),{key:0,size:"small",onClick:bs(k=>I(h)(p),["stop"]),title:"复制规则"},{icon:T(()=>[Z(I(Yn),null,{default:T(()=>[Jy]),_:1})]),_:2},1032,["onClick"])):je("",!0),Xy,v.value?(at(),pe(I(Gn),{key:1,size:"small",title:typeof p.selector=="object"?"复制查询链接":"复制搜索链接",onClick:bs(k=>y(p),["stop"])},{icon:T(()=>[Z(I(Yn),null,{default:T(()=>[Yy]),_:1})]),_:2},1032,["title","onClick"])):je("",!0),Zy,Z(I(Gn),{size:"small",onClick:bs(k=>I(a).splice(C,1),["stop"]),title:"删除记录"},{icon:T(()=>[Z(I(Yn),null,{default:T(()=>[tb]),_:1})]),_:2},1032,["onClick"])]),default:T(()=>[Z(I(Ts),{style:{"max-height":"400px","overflow-y":"scroll","padding-bottom":"10px"}},{default:T(()=>[typeof p.selector=="string"||p.selector.connectKeys.length===0?(at(!0),Ie(Tr,{key:0},ma(p.nodes.map(k=>Array.isArray(k)?k[0]:k),k=>(at(),pe(I(Gn),{key:k.id,onClick:x=>_.onUpdateFocusNode(k),size:"small",class:oi({"color-[#00F]":k===_.focusNode})},{default:T(()=>[be(Dt(I(ga)(k)),1)]),_:2},1032,["onClick","class"]))),128)):(at(!0),Ie(Tr,{key:1},ma(p.nodes.map(k=>Array.isArray(k)?k:[k]),(k,x)=>(at(),pe(I(V1),{key:x},{default:T(()=>[Z(I(Gn),{size:"small",onClick:N=>_.onUpdateTrack({nodes:k,selector:p.selector})},{default:T(()=>[Z(I(Yn),null,{default:T(()=>[eb]),_:1})]),_:2},1032,["onClick"]),Z(I(Gn),{onClick:N=>_.onUpdateFocusNode(k[p.selector.targetIndex]),size:"small",class:oi({"color-[#00F]":k[p.selector.targetIndex]===_.focusNode})},{default:T(()=>[be(Dt(I(ga)(k[p.selector.targetIndex])),1)]),_:2},1032,["onClick","class"])]),_:2},1024))),128))]),_:2},1024)]),_:2},1032,["name"]))),128))]),_:1},8,["expandedNames"])])]),_:1},8,["initialValue"]))}}),Kc=[],rb=Mt((t,e)=>{const n=rt(()=>t.tag||"div");return()=>{var o,s,l,c;const r=((s=(o=e.slots).default)==null?void 0:s.call(o))||Kc,a=[];if(r.length>0&&a.push(r[0]),r.length>1)for(let f=1;f<r.length;f++){const h=((c=(l=e.slots).gap)==null?void 0:c.call(l,{index:f-1}))||Kc;a.push(...h),a.push(r[f])}return t.virtual?a:M(n.value,t,a)}},{props:["tag","virtual"]}),ib={flex:"","flex-col":""},ab={flex:"","items-center":"","px-8px":""},ob={key:0,"w-1px":"","bg-gray":"","h-12px":""},sb={href:"/",flex:"",title:"首页","mr-4px":""},lb=R("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[R("path",{d:"M16.612 2.214a1.01 1.01 0 0 0-1.242 0L1 13.419l1.243 1.572L4 13.621V26a2.004 2.004 0 0 0 2 2h20a2.004 2.004 0 0 0 2-2V13.63L29.757 15L31 13.428zM18 26h-4v-8h4zm2 0v-8a2.002 2.002 0 0 0-2-2h-4a2.002 2.002 0 0 0-2 2v8H6V12.062l10-7.79l10 7.8V26z",fill:"currentColor"})],-1),ub={flex:"","items-center":"","gap-2px":"","max-w-120px":""},cb=R("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},[R("path",{d:"M19.43 12.98c.04-.32.07-.64.07-.98c0-.34-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46a.5.5 0 0 0-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65A.488.488 0 0 0 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1a.566.566 0 0 0-.18-.03c-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98c0 .33.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46a.5.5 0 0 0 .61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.06.02.12.03.18.03c.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zm-1.98-1.71c.04.31.05.52.05.73c0 .21-.02.43-.05.73l-.14 1.13l.89.7l1.08.84l-.7 1.21l-1.27-.51l-1.04-.42l-.9.68c-.43.32-.84.56-1.25.73l-1.06.43l-.16 1.13l-.2 1.35h-1.4l-.19-1.35l-.16-1.13l-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7l-1.06.43l-1.27.51l-.7-1.21l1.08-.84l.89-.7l-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13l-.89-.7l-1.08-.84l.7-1.21l1.27.51l1.04.42l.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43l.16-1.13l.2-1.35h1.39l.19 1.35l.16 1.13l1.06.43c.43.18.83.41 1.23.71l.91.7l1.06-.43l1.27-.51l.7 1.21l-1.07.85l-.89.7l.14 1.13zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4s4-1.79 4-4s-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2s2 .9 2 2s-.9 2-2 2z",fill:"currentColor"})],-1),fb=R("div",{"flex-1":""},null,-1),hb={"ml-8px":""},db=R("div",{"h-1px":"","mt-4px":"",bg:"#efeff5"},null,-1),vb=Mt({__name:"WindowCard",props:{snapshot:{},rootNode:{},focusNode:{},focusCount:{},onUpdateFocusNode:{type:Function,default:si}},setup(t){const e=t,n=ne([]);Ar([()=>e.focusNode,()=>e.focusCount],async()=>{if(!e.focusNode)return;const h=e.focusNode.id;pa().then(async()=>{var y,_;await Zc(100),h===((y=e.focusNode)==null?void 0:y.id)&&((_=r.value)==null||_.scrollTo({key:h,behavior:"smooth",debounce:!0}))});let d=e.focusNode.parent;if(!d)return;const v=new Set(n.value);for(;d;)v.add(d.id),d=d.parent;v.size==n.value.length&&n.value.every(y=>v.has(y))||(n.value=[...v])});const r=ne(),a=(h,d)=>{var v;return d.id===((v=e.focusNode)==null?void 0:v.id)},o=h=>{var v;const d=h.option.idQf||h.option.textQf||h.option.quickFind;return{onClick:()=>{e.onUpdateFocusNode(h.option)},style:{color:h.option.id==((v=e.focusNode)==null?void 0:v.id)?"#00F":void 0,fontWeight:d?"bold":void 0}}},s=h=>ga(h.option),l=rt(()=>`${ic(e.snapshot).manufacturer} Android ${ic(e.snapshot).release||""}`),c=rt(()=>Jn(e.snapshot).isSystem),f=rt(()=>!e.snapshot.activityId||!e.snapshot.appId?"":e.snapshot.activityId.startsWith(e.snapshot.appId)&&e.snapshot.activityId.length>e.snapshot.appId.length?e.snapshot.activityId.substring(e.snapshot.appId.length):e.snapshot.activityId);return(h,d)=>(at(),Ie("div",ib,[R("div",ab,[Z(I(rb),{flex:"","flex-wrap":"","items-center":"","gap-8px":"",gkd_code:""},{gap:T(({index:v})=>[v>0?(at(),Ie("div",ob)):je("",!0)]),default:T(()=>[R("a",sb,[Z(I(Gn),{text:""},{icon:T(()=>[Z(I(Yn),null,{default:T(()=>[lb]),_:1})]),_:1})]),Z(I(Qn),null,{trigger:T(()=>[R("div",{onClick:d[0]||(d[0]=v=>I(Xn)(l.value))},Dt(l.value),1)]),default:T(()=>[be(" 设备名称 ")]),_:1}),Z(I(Qn),null,{trigger:T(()=>[R("div",{class:oi({"opacity-50":!I(ac)(h.snapshot).versionName})},Dt(I(ac)(h.snapshot).versionName||"null"),3)]),default:T(()=>[be(" GKD 版本 ")]),_:1}),R("div",ub,[c.value?(at(),pe(I(Qn),{key:0},{trigger:T(()=>[Z(I(Yn),{size:14},{default:T(()=>[cb]),_:1})]),default:T(()=>[be(" 系统应用 ")]),_:1})):je("",!0),Z(I(Qn),null,{trigger:T(()=>[R("div",{onClick:d[1]||(d[1]=v=>I(Xn)(I(Jn)(h.snapshot).name))},Dt(I(Jn)(h.snapshot).name),1)]),default:T(()=>[be(" 应用名称 ")]),_:1})]),Z(I(Qn),null,{trigger:T(()=>[R("div",{onClick:d[2]||(d[2]=v=>I(Xn)(I(Jn)(h.snapshot).versionName))},Dt(I(Jn)(h.snapshot).versionName),1)]),default:T(()=>[be(" 版本名称 ")]),_:1}),Z(I(Qn),null,{trigger:T(()=>[R("div",{onClick:d[3]||(d[3]=v=>I(Xn)(I(Jn)(h.snapshot).versionCode.toString()))},Dt(I(Jn)(h.snapshot).versionCode),1)]),default:T(()=>[be(" 版本代码 ")]),_:1}),Z(I(Qn),null,{trigger:T(()=>[R("div",{onClick:d[4]||(d[4]=v=>I(Xn)(h.snapshot.appId))},Dt(h.snapshot.appId),1)]),default:T(()=>[be(" 应用ID ")]),_:1}),Z(I(Qn),null,{trigger:T(()=>[R("div",{onClick:d[5]||(d[5]=v=>I(Xn)(f.value)),class:oi({"opacity-50":!f.value})},Dt(f.value||"null"),3)]),default:T(()=>[be(" 界面ID ")]),_:1})]),_:1}),fb,R("div",hb,[Gc(h.$slots,"default")])]),db,Z(I($v),{ref_key:"treeRef",ref:r,virtualScroll:"",showLine:"",keyField:"id",expandedKeys:n.value,"onUpdate:expandedKeys":d[6]||(d[6]=v=>n.value=v),data:[h.rootNode],filter:a,nodeProps:o,renderLabel:s},null,8,["expandedKeys","data","filter","nodeProps","renderLabel"])]))}}),pb={bg:"#eee","px-2px":""},_b=Mt({__name:"MultiFocusCard",props:{focusNode:{},focusNodes:{},onUpdateFocusNode:{type:Function,default:si},onClose:{type:Function,default:si}},setup(t){const n=document.documentElement.scrollWidth/100*25.5;return(r,a)=>(at(),pe(Ll,{initialValue:{top:215,left:n},class:"z-2 box-shadow-dim w-420px",disabled:!r.focusNodes},{default:T(({onRef:o})=>[r.focusNodes?(at(),pe(I(m1),{key:0,size:"small",closable:"",onClose:r.onClose},{header:T(()=>[R("div",{ref:o,"cursor-move":""},[be(" 位置 "),R("span",pb,Dt(`${r.focusNodes.position.x.toFixed(0)},${r.focusNodes.position.y.toFixed()}`),1),be(" 存在 "+Dt(r.focusNodes.nodes.length)+" 个层叠节点 ",1)],512)]),default:T(()=>[Z(I(Ts),{style:{"max-height":"400px","overflow-y":"scroll","padding-bottom":"10px"}},{default:T(()=>[(at(!0),Ie(Tr,null,ma(r.focusNodes.nodes,s=>(at(),pe(I(Gn),{key:s.id,onClick:l=>r.onUpdateFocusNode(s),size:"small",class:oi({"color-[#00F]":s===r.focusNode})},{default:T(()=>[be(Dt(I(ga)(s)),1)]),_:2},1032,["onClick","class"]))),128))]),_:1})]),_:2},1032,["onClose"])):je("",!0)]),_:1},8,["initialValue","disabled"]))}}),mb={"h-full":"",flex:"","gap-5px":"","p-5px":"","box-border":""},gb=R("svg",{viewBox:"0 0 24 24"},[R("path",{fill:"currentColor",d:"M5 21V8.825Q4.125 8.5 3.563 7.738T3 6q0-1.25.875-2.125T6 3q1.25 0 2.125.875T9 6q0 .975-.562 1.738T7 8.825V19h4V3h8v12.175q.875.325 1.438 1.088T21 18q0 1.25-.875 2.125T18 21q-1.25 0-2.125-.875T15 18q0-.975.563-1.75T17 15.175V5h-4v16zM6 7q.425 0 .713-.288T7 6q0-.425-.288-.712T6 5q-.425 0-.712.288T5 6q0 .425.288.713T6 7m12 12q.425 0 .713-.288T19 18q0-.425-.288-.712T18 17q-.425 0-.712.288T17 18q0 .425.288.713T18 19m0-1"})],-1),yb={key:0,class:"gkd_code py-2px px-4px rounded-2px bg-[#eee]"},bb=R("div",{"opacity-75":"","text-12px":""},"*为简化视图已隐藏部分节点",-1),qb=Mt({__name:"SnapshotPage",setup(t){const e=(()=>{const g=()=>b1(()=>import("./TrackGraph-4OjNujBe.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url);return setTimeout(g,3e3),g1(g)})(),n=Yc(),r=Xc(),a=j1(),o=rt(()=>String(n.params.snapshotId||"")),s=rt(()=>{const g=Number(n.query.showSize||"");return!Number.isSafeInteger(g)||g<=0?2e3:g}),l=ne(""),c=ne();Oa(async()=>{if(!Number.isSafeInteger(+o.value)){Sn.error("非法快照ID");return}const g=await Yu.getItem(o.value);if(!g){Zu.start();try{const C=Bi[o.value]||await fetch("https://detect.gkd.li/api/getImportId?id="+o.value).then(k=>k.json());if(C&&Number.isSafeInteger(C)){r.replace({path:"/i/"+C,query:n.query});return}}finally{Zu.finish()}Sn.error("快照数据缺失");return}setTimeout(()=>{const C=Bi[g.id];C&&F1(C)},1e3),C1()&&Jc.autoUploadImport&&setTimeout(async()=>{D1(g),Bi[g.id]||B1(await Yu.getItem(o.value))},1e3),g.nodes.length>s.value&&(Sn.warning(`当前展示节点数量为${s.value}
|
|
274
|
-
之后的${g.nodes.length-s.value}个节点将被丢弃
|
|
275
|
-
使用showSize查询参数可以修改展示数量`),g.nodes=g.nodes.slice(0,s.value));const p=await y1.getItem(o.value);if(!p){Sn.create("截屏数据缺失");return}l.value=URL.createObjectURL(new Blob([p],{type:"image/png"})),c.value=g,f.value=R1(g.nodes),a.value="快照-"+Jn(g).name||g.appId,h.value||(h.value=f.value)});const f=ne(),h=ne(),d=ne(0),v=async()=>{Sn.success("删除成功,即将回到首页"),await Zc(2e3),r.replace({path:"/"})},y=ne(),_=ne(!1);Fi(()=>{y.value&&(_.value=!0)});const m=ne();return Ar(()=>h.value,g=>{var C;const p=(C=m.value)==null?void 0:C.nodes;p&&(!g||!p.includes(g))&&(m.value=void 0)}),(g,p)=>(at(),Ie(Tr,null,[R("div",mb,[l.value&&c.value?(at(),pe(Qv,{key:0,url:l.value,snapshot:c.value,rootNode:f.value,focusNode:h.value,onUpdateFocusNode:p[0]||(p[0]=C=>{h.value=C,d.value++}),onUpdateFocusNodes:p[1]||(p[1]=C=>m.value=C)},null,8,["url","snapshot","rootNode","focusNode"])):je("",!0),c.value&&f.value?(at(),pe(vb,{key:1,rootNode:f.value,snapshot:c.value,focusNode:h.value,onUpdateFocusNode:p[2]||(p[2]=C=>h.value=C),focusCount:d.value,class:"flex-1"},{default:T(()=>[c.value?(at(),pe(k1,{key:0,snapshot:c.value,onDelete:v,showPreview:!1},null,8,["snapshot"])):je("",!0)]),_:1},8,["rootNode","snapshot","focusNode","focusCount"])):je("",!0)]),h.value?(at(),pe(Ov,{key:0,focusNode:h.value},null,8,["focusNode"])):je("",!0),f.value&&c.value?(at(),pe(nb,{key:1,snapshot:c.value,rootNode:f.value,focusNode:h.value,onUpdateFocusNode:p[3]||(p[3]=C=>{h.value=C,d.value++}),onUpdateTrack:p[4]||(p[4]=C=>y.value=C)},null,8,["snapshot","rootNode","focusNode"])):je("",!0),Z(_b,{focusNode:h.value,focusNodes:m.value,onUpdateFocusNode:p[5]||(p[5]=C=>{h.value=C,d.value++}),onClose:p[6]||(p[6]=C=>m.value=void 0)},null,8,["focusNode","focusNodes"]),Z(I(w1),{show:_.value,"onUpdate:show":p[7]||(p[7]=C=>_.value=C),preset:"dialog",title:"选择器路径视图",class:"min-w-[calc(var(--gkd-width)*0.4)]",onAfterLeave:p[8]||(p[8]=C=>y.value=void 0)},{icon:T(()=>[Z(I(Yn),null,{default:T(()=>[gb]),_:1})]),default:T(()=>[y.value?(at(),Ie("div",yb,Dt(y.value.selector.toString()),1)):je("",!0),y.value?(at(),pe(I(e),{key:1,track:y.value},null,8,["track"])):je("",!0),bb]),_:1},8,["show"])],64))}});export{qb as default};
|
|
276
|
-
//# sourceMappingURL=SnapshotPage-Di7Av_Yl.js.map
|