@gkd-kit/inspect 0.0.1721406632680 → 0.0.1721453220389
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-O8yaGYTd.js → ActionCard.vue_vue_type_script_setup_true_lang-BC6MBlsl.js} +2 -2
- package/dist/assets/{ActionCard.vue_vue_type_script_setup_true_lang-O8yaGYTd.js.map → ActionCard.vue_vue_type_script_setup_true_lang-BC6MBlsl.js.map} +1 -1
- package/dist/assets/{DevicePage-Djqn6f7M.js → DevicePage-DTc7OHTC.js} +2 -2
- package/dist/assets/{DevicePage-Djqn6f7M.js.map → DevicePage-DTc7OHTC.js.map} +1 -1
- package/dist/assets/{HomePage-T-ueNFEN.js → HomePage-BZYGXGZA.js} +2 -2
- package/dist/assets/{HomePage-T-ueNFEN.js.map → HomePage-BZYGXGZA.js.map} +1 -1
- package/dist/assets/{ImportPage-BcGduI1F.js → ImportPage-7WnWdCt1.js} +2 -2
- package/dist/assets/{ImportPage-BcGduI1F.js.map → ImportPage-7WnWdCt1.js.map} +1 -1
- package/dist/assets/{PreviewSharePage-Cemv8gvh.js → PreviewSharePage-DxWwwWJ3.js} +2 -2
- package/dist/assets/{PreviewSharePage-Cemv8gvh.js.map → PreviewSharePage-DxWwwWJ3.js.map} +1 -1
- package/dist/assets/SnapshotPage-CnY-ApTj.js +276 -0
- package/dist/assets/SnapshotPage-CnY-ApTj.js.map +1 -0
- package/dist/assets/{TrackGraph-DMhIY-8G.js → TrackGraph-CV8Gl1BE.js} +2 -2
- package/dist/assets/{TrackGraph-DMhIY-8G.js.map → TrackGraph-CV8Gl1BE.js.map} +1 -1
- package/dist/assets/{_404Page-CpuTtnOS.js → _404Page-CYqiarzQ.js} +2 -2
- package/dist/assets/{_404Page-CpuTtnOS.js.map → _404Page-CYqiarzQ.js.map} +1 -1
- package/dist/assets/{dayjs.min-Cu4Q2xgI.js → dayjs.min-DSU4pMtw.js} +2 -2
- package/dist/assets/{dayjs.min-Cu4Q2xgI.js.map → dayjs.min-DSU4pMtw.js.map} +1 -1
- package/dist/assets/{error-CeRmdgMM.js → error-DzsP2TWQ.js} +2 -2
- package/dist/assets/{error-CeRmdgMM.js.map → error-DzsP2TWQ.js.map} +1 -1
- package/dist/assets/{export-fYbfcKTX.js → export-DyPPXlGS.js} +2 -2
- package/dist/assets/{export-fYbfcKTX.js.map → export-DyPPXlGS.js.map} +1 -1
- package/dist/assets/{fetch-TQbL9E8h.js → fetch-DrX8GyFA.js} +2 -2
- package/dist/assets/{fetch-TQbL9E8h.js.map → fetch-DrX8GyFA.js.map} +1 -1
- package/dist/assets/{import-DwrN5Zkq.js → import-DCSQGvFr.js} +2 -2
- package/dist/assets/{import-DwrN5Zkq.js.map → import-DCSQGvFr.js.map} +1 -1
- package/dist/assets/{index-C8rjOWxU.js → index-BPGp-M2Y.js} +2 -2
- package/dist/assets/{index-C8rjOWxU.js.map → index-BPGp-M2Y.js.map} +1 -1
- package/dist/assets/{index-pWUXVHyD.js → index-BvRORSqd.js} +2 -2
- package/dist/assets/{index-pWUXVHyD.js.map → index-BvRORSqd.js.map} +1 -1
- package/dist/assets/{index-mjukiBBo.js → index-DFFgoOSq.js} +4 -4
- package/dist/assets/{index-mjukiBBo.js.map → index-DFFgoOSq.js.map} +1 -1
- package/dist/assets/{table-DpqBZFll.js → table-mNU48rok.js} +2 -2
- package/dist/assets/{table-DpqBZFll.js.map → table-mNU48rok.js.map} +1 -1
- package/dist/index.html +3 -3
- package/package.json +1 -1
- package/dist/assets/SnapshotPage-DsxbIwcQ.js +0 -276
- package/dist/assets/SnapshotPage-DsxbIwcQ.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.1721406632680/files/dist/assets/TrackGraph-DMhIY-8G.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1721406632680/files/dist/assets/index-mjukiBBo.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1721406632680/files/dist/assets/index-DEAqsSIR.css","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1721406632680/files/dist/assets/dayjs.min-Cu4Q2xgI.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1721406632680/files/dist/assets/index-pWUXVHyD.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1721406632680/files/dist/assets/fetch-TQbL9E8h.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{h as Ve,v as R,a as J,g as An,e as W,f as X,b as qe,u as ba,$ as Ld,a0 as gl,a1 as Od,a2 as wa,d as yl,r as vt,m as oe,l as Zi,j as ji,q as bl,a3 as wl,y as wt,a4 as zd,t as ge,a5 as qc,a6 as Ac,a7 as Tc,a8 as Fd,a9 as Rt,aa as ii,ab as Dd,ac as Ou,ad as jc,ae as Bd,af as Dn,ag as Kd,ah as Ud,ai as Hd,c as Wd,aj as Vd,ak as Gd,n as as,N as Jd,x as Qd,W as Xd,al as os,am as Yd,Q as ka,an as Zd,p as Pc,i as e1,B as $i,T as kr,ao as ss,o as Qi,ap as zu,aq as Fu,ar as ea,A as nt,R as kl,as as eo,at as pt,K as A,au as Rc,C as Mt,F as I,G as Cr,P as Kt,av as ms,aw as Qr,ax as t1,I as le,E as P,D as te,ay as na,O as Be,M as kt,az as to,X as Mc,aA as Ni,H as Lc,aB as Oc,V as n1,L as Kn,aC as ls,aD as r1,_ as i1,aE as Du,aF as a1,aG as o1,Z as Bu,aH as s1,aI as l1,J as u1}from"./index-mjukiBBo.js";import{_ as c1}from"./ActionCard.vue_vue_type_script_setup_true_lang-O8yaGYTd.js";import{f as gs,c as Hn,b as Xr,m as wn,a as zc,l as Ku,g as f1}from"./fetch-TQbL9E8h.js";import{h as Ei,C as h1,e as d1,c as v1,d as p1,V as _1,f as Uu,i as Hu,j as Bn,k as m1,l as g1,m as Wu,n as ra,b as ys,o as Vu,p as y1,N as b1,g as Un,q as w1,r as Gu,s as Ju,t as k1}from"./dayjs.min-Cu4Q2xgI.js";import{a as Wn,r as C1,N as x1,l as S1}from"./index-pWUXVHyD.js";import{u as Fc,a as $1}from"./index-C8rjOWxU.js";import{e as E1,a as Qu}from"./error-CeRmdgMM.js";import{e as N1,f as I1,g as q1}from"./export-fYbfcKTX.js";import"./index-CE_5kTG8.js";function Dc(e){return typeof e=="string"?`s-${e}`:`n-${e}`}const A1=Ve({name:"ChevronLeft",render(){return R("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},R("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"}))}}),T1=Ve({name:"Switcher",render(){return R("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},R("path",{d:"M12 8l10 8l-10 8z"}))}}),Fe="0!important",Bc="-1px!important";function Ci(e){return X(e+"-type",[W("& +",[J("button",{},[X(e+"-type",[qe("border",{borderLeftWidth:Fe}),qe("state-border",{left:Bc})])])])])}function xi(e){return X(e+"-type",[W("& +",[J("button",[X(e+"-type",[qe("border",{borderTopWidth:Fe}),qe("state-border",{top:Bc})])])])])}const j1=J("button-group",`
|
|
3
|
-
flex-wrap: nowrap;
|
|
4
|
-
display: inline-flex;
|
|
5
|
-
position: relative;
|
|
6
|
-
`,[An("vertical",{flexDirection:"row"},[An("rtl",[J("button",[W("&:first-child:not(:last-child)",`
|
|
7
|
-
margin-right: ${Fe};
|
|
8
|
-
border-top-right-radius: ${Fe};
|
|
9
|
-
border-bottom-right-radius: ${Fe};
|
|
10
|
-
`),W("&:last-child:not(:first-child)",`
|
|
11
|
-
margin-left: ${Fe};
|
|
12
|
-
border-top-left-radius: ${Fe};
|
|
13
|
-
border-bottom-left-radius: ${Fe};
|
|
14
|
-
`),W("&:not(:first-child):not(:last-child)",`
|
|
15
|
-
margin-left: ${Fe};
|
|
16
|
-
margin-right: ${Fe};
|
|
17
|
-
border-radius: ${Fe};
|
|
18
|
-
`),Ci("default"),X("ghost",[Ci("primary"),Ci("info"),Ci("success"),Ci("warning"),Ci("error")])])])]),X("vertical",{flexDirection:"column"},[J("button",[W("&:first-child:not(:last-child)",`
|
|
19
|
-
margin-bottom: ${Fe};
|
|
20
|
-
margin-left: ${Fe};
|
|
21
|
-
margin-right: ${Fe};
|
|
22
|
-
border-bottom-left-radius: ${Fe};
|
|
23
|
-
border-bottom-right-radius: ${Fe};
|
|
24
|
-
`),W("&:last-child:not(:first-child)",`
|
|
25
|
-
margin-top: ${Fe};
|
|
26
|
-
margin-left: ${Fe};
|
|
27
|
-
margin-right: ${Fe};
|
|
28
|
-
border-top-left-radius: ${Fe};
|
|
29
|
-
border-top-right-radius: ${Fe};
|
|
30
|
-
`),W("&:not(:first-child):not(:last-child)",`
|
|
31
|
-
margin: ${Fe};
|
|
32
|
-
border-radius: ${Fe};
|
|
33
|
-
`),xi("default"),X("ghost",[xi("primary"),xi("info"),xi("success"),xi("warning"),xi("error")])])])]),P1={size:{type:String,default:void 0},vertical:Boolean},R1=Ve({name:"ButtonGroup",props:P1,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=ba(e);return Ld("-button-group",j1,t),gl(Od,e),{rtlEnabled:wa("ButtonGroup",n,t),mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return R("div",{class:[`${e}-button-group`,this.rtlEnabled&&`${e}-button-group--rtl`,this.vertical&&`${e}-button-group--vertical`],role:"group"},this.$slots)}}),M1=e=>{const{fontWeight:t,textColor1:n,textColor2:r,textColorDisabled:a,dividerColor:o,fontSize:s}=e;return{titleFontSize:s,titleFontWeight:t,dividerColor:o,titleTextColor:n,titleTextColorDisabled:a,fontSize:s,textColor:r,arrowColor:r,arrowColorDisabled:a,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}},L1={name:"Collapse",common:yl,self:M1},O1=J("collapse","width: 100%;",[J("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
|
-
`,[X("disabled",[qe("header","cursor: not-allowed;",[qe("header-main",`
|
|
41
|
-
color: var(--n-title-text-color-disabled);
|
|
42
|
-
`),J("collapse-item-arrow",`
|
|
43
|
-
color: var(--n-arrow-color-disabled);
|
|
44
|
-
`)])]),J("collapse-item","margin-left: 32px;"),W("&:first-child","margin-top: 0;"),W("&:first-child >",[qe("header","padding-top: 0;")]),X("left-arrow-placement",[qe("header",[J("collapse-item-arrow","margin-right: 4px;")])]),X("right-arrow-placement",[qe("header",[J("collapse-item-arrow","margin-left: 4px;")])]),qe("content-wrapper",[qe("content-inner","padding-top: 16px;"),gs({duration:"0.15s"})]),X("active",[qe("header",[X("active",[J("collapse-item-arrow","transform: rotate(90deg);")])])]),W("&:not(:first-child)","border-top: 1px solid var(--n-divider-color);"),An("disabled",[X("trigger-area-main",[qe("header",[qe("header-main","cursor: pointer;"),J("collapse-item-arrow","cursor: default;")])]),X("trigger-area-arrow",[qe("header",[J("collapse-item-arrow","cursor: pointer;")])]),X("trigger-area-extra",[qe("header",[qe("header-extra","cursor: pointer;")])])]),qe("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
|
-
`,[qe("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
|
-
`),qe("header-extra",`
|
|
62
|
-
display: flex;
|
|
63
|
-
align-items: center;
|
|
64
|
-
transition: color .3s var(--n-bezier);
|
|
65
|
-
color: var(--n-text-color);
|
|
66
|
-
`),J("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
|
-
`)])])]),z1=Object.assign(Object.assign({},ji.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}}),Kc=wl("n-collapse"),F1=Ve({name:"Collapse",props:z1,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:a}=ba(e),o=vt(e.defaultExpandedNames),s=oe(()=>e.expandedNames),l=Zi(s,o),c=ji("Collapse","-collapse",O1,L1,e,n);function f(m){const{"onUpdate:expandedNames":g,onUpdateExpandedNames:_,onExpandedNamesChange:C}=e;_&&wt(_,m),g&&wt(g,m),C&&wt(C,m),o.value=m}function h(m){const{onItemHeaderClick:g}=e;g&&wt(g,m)}function d(m,g,_){const{accordion:C}=e,{value:k}=l;if(C)m?(f([g]),h({name:g,expanded:!0,event:_})):(f([]),h({name:g,expanded:!1,event:_}));else if(!Array.isArray(k))f([g]),h({name:g,expanded:!0,event:_});else{const x=k.slice(),N=x.findIndex(z=>g===z);~N?(x.splice(N,1),f(x),h({name:g,expanded:!1,event:_})):(x.push(g),f(x),h({name:g,expanded:!0,event:_}))}}gl(Kc,{props:e,mergedClsPrefixRef:n,expandedNamesRef:l,slots:t,toggleItem:d});const v=wa("Collapse",a,n),y=oe(()=>{const{common:{cubicBezierEaseInOut:m},self:{titleFontWeight:g,dividerColor:_,titlePadding:C,titleTextColor:k,titleTextColorDisabled:x,textColor:N,arrowColor:z,fontSize:G,titleFontSize:K,arrowColorDisabled:re,itemMargin:V}}=c.value;return{"--n-font-size":G,"--n-bezier":m,"--n-text-color":N,"--n-divider-color":_,"--n-title-padding":C,"--n-title-font-size":K,"--n-title-text-color":k,"--n-title-text-color-disabled":x,"--n-title-font-weight":g,"--n-arrow-color":z,"--n-arrow-color-disabled":re,"--n-item-margin":V}}),p=r?bl("collapse",void 0,y,e):void 0;return{rtlEnabled:v,mergedTheme:c,mergedClsPrefix:n,cssVars:r?void 0:y,themeClass:p==null?void 0:p.themeClass,onRender:p==null?void 0:p.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),R("div",{class:[`${this.mergedClsPrefix}-collapse`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse--rtl`,this.themeClass],style:this.cssVars},this.$slots)}}),D1=Ve({name:"CollapseItemContent",props:{displayDirective:{type:String,required:!0},show:Boolean,clsPrefix:{type:String,required:!0}},setup(e){return{onceTrue:zd(ge(e,"show"))}},render(){return R(Tc,null,{default:()=>{const{show:e,displayDirective:t,onceTrue:n,clsPrefix:r}=this,a=t==="show"&&n,o=R("div",{class:`${r}-collapse-item__content-wrapper`},R("div",{class:`${r}-collapse-item__content-inner`},this.$slots));return a?qc(o,[[Ac,e]]):e?o:null}})}}),B1={title:String,name:[String,Number],disabled:Boolean,displayDirective:String},K1=Ve({name:"CollapseItem",props:B1,setup(e){const{mergedRtlRef:t}=ba(e),n=Fd(),r=Rt(()=>{var d;return(d=e.name)!==null&&d!==void 0?d:n}),a=ii(Kc);a||Dd("collapse-item","`n-collapse-item` must be placed inside `n-collapse`.");const{expandedNamesRef:o,props:s,mergedClsPrefixRef:l,slots:c}=a,f=oe(()=>{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:wa("Collapse",t,l),collapseSlots:c,randomName:n,mergedClsPrefix:l,collapsed:f,triggerAreas:ge(s,"triggerAreas"),mergedDisplayDirective:oe(()=>{const{displayDirective:d}=e;return d||s.displayDirective}),arrowPlacement:oe(()=>s.arrowPlacement),handleClick(d){let v="main";Ei(d,"arrow")&&(v="arrow"),Ei(d,"extra")&&(v="extra"),s.triggerAreas.includes(v)&&a&&!e.disabled&&a.toggleItem(f.value,r.value,d)}}},render(){const{collapseSlots:e,$slots:t,arrowPlacement:n,collapsed:r,mergedDisplayDirective:a,mergedClsPrefix:o,disabled:s,triggerAreas:l}=this,c=Ou(t.header,{collapsed:r},()=>[this.title]),f=t["header-extra"]||e["header-extra"],h=t.arrow||e.arrow;return R("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}`)]},R("div",{class:[`${o}-collapse-item__header`,!r&&`${o}-collapse-item__header--active`]},R("div",{class:`${o}-collapse-item__header-main`,onClick:this.handleClick},n==="right"&&c,R("div",{class:`${o}-collapse-item-arrow`,key:this.rtlEnabled?0:1,"data-arrow":!0},Ou(h,{collapsed:r},()=>{var d;return[R(jc,{clsPrefix:o},{default:(d=e.expandIcon)!==null&&d!==void 0?d:()=>this.rtlEnabled?R(A1,null):R(h1,null)})]})),n==="left"&&c),Bd(f,{collapsed:r},d=>R("div",{class:`${o}-collapse-item__header-extra`,onClick:this.handleClick,"data-extra":!0},d))),R(D1,{clsPrefix:o,displayDirective:a,show:!r},t))}}),U1={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"},H1=e=>{const{dividerColor:t,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:p}=e;return Object.assign(Object.assign({},U1),{fontSizeSmall:v,fontSizeMedium:y,fontSizeLarge:p,lineHeight:d,borderRadius:f,borderColor:Dn(n,t),borderColorModal:Dn(r,t),borderColorPopover:Dn(a,t),tdColor:n,tdColorModal:r,tdColorPopover:a,tdColorStriped:Dn(n,s),tdColorStripedModal:Dn(r,s),tdColorStripedPopover:Dn(a,s),thColor:Dn(n,o),thColorModal:Dn(r,o),thColorPopover:Dn(a,o),thTextColor:l,tdTextColor:c,thFontWeight:h})},W1={name:"Table",common:yl,self:H1},V1=e=>{const{borderRadiusSmall:t,dividerColor:n,hoverColor:r,pressedColor:a,primaryColor:o,textColor3:s,textColor2:l,textColorDisabled:c,fontSize:f}=e;return{fontSize:f,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:r,nodeColorPressed:a,nodeColorActive:Wd(o,{alpha:.1}),arrowColor:s,nodeTextColor:l,nodeTextColorDisabled:c,loadingColor:o,dropMarkColor:o,lineColor:n}},G1=Kd({name:"Tree",common:yl,peers:{Checkbox:Ud,Scrollbar:Hd,Empty:d1},self:V1}),J1=W([J("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
|
-
`,[W("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
|
-
`,[W("&:last-child",`
|
|
107
|
-
border-right: 0px solid var(--n-merged-border-color);
|
|
108
|
-
`)]),W("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
|
-
`,[W("&:last-child",`
|
|
120
|
-
border-right: 0px solid var(--n-merged-border-color);
|
|
121
|
-
`)]),X("bordered",`
|
|
122
|
-
border: 1px solid var(--n-merged-border-color);
|
|
123
|
-
border-radius: var(--n-border-radius);
|
|
124
|
-
`,[W("tr",[W("&:last-child",[W("td",`
|
|
125
|
-
border-bottom: 0 solid var(--n-merged-border-color);
|
|
126
|
-
`)])])]),X("single-line",[W("th",`
|
|
127
|
-
border-right: 0px solid var(--n-merged-border-color);
|
|
128
|
-
`),W("td",`
|
|
129
|
-
border-right: 0px solid var(--n-merged-border-color);
|
|
130
|
-
`)]),X("single-column",[W("tr",[W("&:not(:last-child)",[W("td",`
|
|
131
|
-
border-bottom: 0px solid var(--n-merged-border-color);
|
|
132
|
-
`)])])]),X("striped",[W("tr:nth-of-type(even)",[W("td","background-color: var(--n-td-color-striped)")])]),An("bottom-bordered",[W("tr",[W("&:last-child",[W("td",`
|
|
133
|
-
border-bottom: 0px solid var(--n-merged-border-color);
|
|
134
|
-
`)])])])]),Vd(J("table",`
|
|
135
|
-
background-color: var(--n-td-color-modal);
|
|
136
|
-
--n-merged-border-color: var(--n-border-color-modal);
|
|
137
|
-
`,[W("th",`
|
|
138
|
-
background-color: var(--n-th-color-modal);
|
|
139
|
-
`),W("td",`
|
|
140
|
-
background-color: var(--n-td-color-modal);
|
|
141
|
-
`)])),Gd(J("table",`
|
|
142
|
-
background-color: var(--n-td-color-popover);
|
|
143
|
-
--n-merged-border-color: var(--n-border-color-popover);
|
|
144
|
-
`,[W("th",`
|
|
145
|
-
background-color: var(--n-th-color-popover);
|
|
146
|
-
`),W("td",`
|
|
147
|
-
background-color: var(--n-td-color-popover);
|
|
148
|
-
`)]))]),Q1=Object.assign(Object.assign({},ji.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"}}),X1=Ve({name:"Table",props:Q1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=ba(e),a=ji("Table","-table",J1,W1,e,t),o=wa("Table",r,t),s=oe(()=>{const{size:c}=e,{self:{borderColor:f,tdColor:h,tdColorModal:d,tdColorPopover:v,thColor:y,thColorModal:p,thColorPopover:m,thTextColor:g,tdTextColor:_,borderRadius:C,thFontWeight:k,lineHeight:x,borderColorModal:N,borderColorPopover:z,tdColorStriped:G,tdColorStripedModal:K,tdColorStripedPopover:re,[as("fontSize",c)]:V,[as("tdPadding",c)]:je,[as("thPadding",c)]:Ce},common:{cubicBezierEaseInOut:be}}=a.value;return{"--n-bezier":be,"--n-td-color":h,"--n-td-color-modal":d,"--n-td-color-popover":v,"--n-td-text-color":_,"--n-border-color":f,"--n-border-color-modal":N,"--n-border-color-popover":z,"--n-border-radius":C,"--n-font-size":V,"--n-th-color":y,"--n-th-color-modal":p,"--n-th-color-popover":m,"--n-th-font-weight":k,"--n-th-text-color":g,"--n-line-height":x,"--n-td-padding":je,"--n-th-padding":Ce,"--n-td-color-striped":G,"--n-td-color-striped-modal":K,"--n-td-color-striped-popover":re}}),l=n?bl("table",oe(()=>e.size[0]),s,e):void 0;return{rtlEnabled:o,mergedClsPrefix:t,cssVars:n?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),R("table",{class:[`${t}-table`,this.themeClass,{[`${t}-table--rtl`]:this.rtlEnabled,[`${t}-table--bottom-bordered`]:this.bottomBordered,[`${t}-table--bordered`]:this.bordered,[`${t}-table--single-line`]:this.singleLine,[`${t}-table--single-column`]:this.singleColumn,[`${t}-table--striped`]:this.striped}],style:this.cssVars},this.$slots)}}),Y1=Ve({name:"Tr",render(){return R("tr",null,this.$slots)}}),Xu=Ve({name:"Td",render(){return R("td",null,this.$slots)}}),Z1=Ve({name:"Tbody",render(){return R("tbody",null,this.$slots)}}),Uc=wl("n-tree-select"),Ca=wl("n-tree"),ev=Ve({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(e){const{renderSwitcherIconRef:t}=ii(Ca,null);return()=>{const{clsPrefix:n,expanded:r,hide:a,indent:o,onClick:s}=e;return R("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},R("div",{class:`${n}-tree-node-switcher__icon`},R(Jd,null,{default:()=>{if(e.loading)return R(Qd,{clsPrefix:n,key:"loading",radius:85,strokeWidth:20});const{value:l}=t;return l?l({expanded:e.expanded,selected:e.selected,option:e.tmNode.rawNode}):R(jc,{clsPrefix:n,key:"switcher"},{default:()=>R(T1,null)})}})))}}}),tv=Ve({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(e){const t=ii(Ca);function n(a){const{onCheck:o}=e;o&&o(a)}function r(a){n(a)}return{handleUpdateValue:r,mergedTheme:t.mergedThemeRef}},render(){const{clsPrefix:e,mergedTheme:t,checked:n,indeterminate:r,disabled:a,focusable:o,indent:s,handleUpdateValue:l}=this;return R("span",{class:[`${e}-tree-node-checkbox`,this.right&&`${e}-tree-node-checkbox--right`],style:{width:`${s}px`},"data-checkbox":!0},R(Xd,{focusable:o,disabled:a,theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,checked:n,indeterminate:r,onUpdateChecked:l}))}}),nv=Ve({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(e){const{renderLabelRef:t,renderPrefixRef:n,renderSuffixRef:r,labelFieldRef:a}=ii(Ca),o=vt(null);function s(c){const{onClick:f}=e;f&&f(c)}function l(c){s(c)}return{selfRef:o,renderLabel:t,renderPrefix:n,renderSuffix:r,labelField:a,handleClick:l}},render(){const{clsPrefix:e,labelField:t,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,[t]:y}}}=this;return R("span",Object.assign({},n,{ref:"selfRef",class:[`${e}-tree-node-content`,n==null?void 0:n.class],onClick:c,draggable:f===void 0?void 0:!0,onDragstart:f}),s||d?R("div",{class:`${e}-tree-node-content__prefix`},s?s({option:h,selected:a,checked:r}):os(d)):null,R("div",{class:`${e}-tree-node-content__text`},o?o({option:h,selected:a,checked:r}):os(y)),l||v?R("div",{class:`${e}-tree-node-content__suffix`},l?l({option:h,selected:a,checked:r}):os(v)):null)}});function Yu({position:e,offsetLevel:t,indent:n,el:r}){const a={position:"absolute",boxSizing:"border-box",right:0};if(e==="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=e==="before"?"top":"bottom";a[o]=0,a.left=`${r.offsetLeft+6-t*n}px`,a.height="2px",a.backgroundColor="var(--n-drop-mark-color)",a.transformOrigin=o,a.borderRadius="1px",a.transform=e==="before"?"translateY(-4px)":"translateY(4px)"}return R("div",{style:a})}function rv({dropPosition:e,node:t}){return t.isLeaf===!1||t.children?!0:e!=="inside"}function iv(e){return oe(()=>e.leafOnly?"child":e.checkStrategy)}function wr(e,t){return!!e.rawNode[t]}function Hc(e,t,n,r){e==null||e.forEach(a=>{n(a),Hc(a[t],t,n,r),r(a)})}function av(e,t,n,r,a){const o=new Set,s=new Set,l=[];return Hc(e,r,c=>{if(l.push(c),a(t,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(Yd&&Image){const e=new Image;e.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}function ov(e,t,n,r,a){const o=new Set,s=new Set,l=new Set,c=[],f=[],h=[];function d(y){y.forEach(p=>{if(h.push(p),t(n,p)){o.add(p[r]),l.add(p[r]);for(let g=h.length-2;g>=0;--g){const _=h[g][r];if(!s.has(_))s.add(_),o.has(_)&&o.delete(_);else break}}const m=p[a];m&&d(m),h.pop()})}d(e);function v(y,p){y.forEach(m=>{const g=m[r],_=o.has(g),C=s.has(g);if(!_&&!C)return;const k=m[a];if(k)if(_)p.push(m);else{c.push(g);const x=Object.assign(Object.assign({},m),{[a]:[]});p.push(x),v(k,x[a])}else p.push(m)})}return v(e,f),{filteredTree:f,highlightKeySet:l,expandedKeys:c}}const Wc=Ve({name:"TreeNode",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const t=ii(Ca),{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:p,overrideDefaultNodeClickBehaviorRef:m}=t,g=Rt(()=>!!e.tmNode.rawNode.checkboxDisabled),_=Rt(()=>wr(e.tmNode,v.value)),C=Rt(()=>t.disabledRef.value||_.value),k=oe(()=>{const{value:T}=l;if(T)return T({option:e.tmNode.rawNode})}),x=vt(null),N={value:null};ka(()=>{N.value=x.value.$el});function z(){const T=()=>{const{tmNode:ae}=e;if(!ae.isLeaf&&!ae.shallowLoaded){if(!t.loadingKeysRef.value.has(ae.key))t.loadingKeysRef.value.add(ae.key);else return;const{onLoadRef:{value:me}}=t;me&&me(ae.rawNode).then(Oe=>{Oe!==!1&&t.handleSwitcherClick(ae)}).finally(()=>{t.loadingKeysRef.value.delete(ae.key)})}else t.handleSwitcherClick(ae)};p.value?setTimeout(T,0):T()}const G=Rt(()=>!_.value&&t.selectableRef.value&&(t.internalTreeSelect?t.mergedCheckStrategyRef.value!=="child"||t.multipleRef.value&&t.cascadeRef.value||e.tmNode.isLeaf:!0)),K=Rt(()=>t.checkableRef.value&&(t.cascadeRef.value||t.mergedCheckStrategyRef.value!=="child"||e.tmNode.isLeaf)),re=Rt(()=>t.displayedCheckedKeysRef.value.includes(e.tmNode.key)),V=Rt(()=>{const{value:T}=K;if(!T)return!1;const{value:ae}=d,{tmNode:me}=e;return typeof ae=="boolean"?!me.disabled&&ae:ae(e.tmNode.rawNode)});function je(T){const{value:ae}=t.expandOnClickRef,{value:me}=G,{value:Oe}=V;if(!me&&!ae&&!Oe||Ei(T,"checkbox")||Ei(T,"switcher"))return;const{tmNode:Bt}=e;me&&t.handleSelect(Bt),ae&&!Bt.isLeaf&&z(),Oe&&xe(!re.value)}function Ce(T){var ae,me;if(!(Ei(T,"checkbox")||Ei(T,"switcher"))){if(!C.value){const Oe=m.value;let Bt=!1;if(Oe)switch(Oe({option:e.tmNode.rawNode})){case"toggleCheck":Bt=!0,xe(!re.value);break;case"toggleSelect":Bt=!0,t.handleSelect(e.tmNode);break;case"toggleExpand":Bt=!0,z(),Bt=!0;break;case"none":Bt=!0,Bt=!0;return}Bt||je(T)}(me=(ae=k.value)===null||ae===void 0?void 0:ae.onClick)===null||me===void 0||me.call(ae,T)}}function be(T){f.value||Ce(T)}function ve(T){f.value&&Ce(T)}function xe(T){t.handleCheck(e.tmNode,T)}function Le(T){t.handleDragStart({event:T,node:e.tmNode})}function et(T){T.currentTarget===T.target&&t.handleDragEnter({event:T,node:e.tmNode})}function pe(T){T.preventDefault(),t.handleDragOver({event:T,node:e.tmNode})}function bt(T){t.handleDragEnd({event:T,node:e.tmNode})}function Pt(T){T.currentTarget===T.target&&t.handleDragLeave({event:T,node:e.tmNode})}function Gt(T){T.preventDefault(),o.value!==null&&t.handleDrop({event:T,node:e.tmNode,dropPosition:o.value})}const In=oe(()=>{const{clsPrefix:T}=e,{value:ae}=c;if(y.value){const me=[];let Oe=e.tmNode.parent;for(;Oe;)Oe.isLastChild?me.push(R("div",{class:`${T}-tree-node-indent`},R("div",{style:{width:`${ae}px`}}))):me.push(R("div",{class:[`${T}-tree-node-indent`,`${T}-tree-node-indent--show-line`]},R("div",{style:{width:`${ae}px`}}))),Oe=Oe.parent;return me.reverse()}else return Zd(e.tmNode.level,R("div",{class:`${e.clsPrefix}-tree-node-indent`},R("div",{style:{width:`${ae}px`}})))});return{showDropMark:Rt(()=>{const{value:T}=a;if(!T)return;const{value:ae}=o;if(!ae)return;const{value:me}=r;if(!me)return;const{tmNode:Oe}=e;return Oe.key===me.key}),showDropMarkAsParent:Rt(()=>{const{value:T}=n;if(!T)return!1;const{tmNode:ae}=e,{value:me}=o;return me==="before"||me==="after"?T.key===ae.key:!1}),pending:Rt(()=>t.pendingNodeKeyRef.value===e.tmNode.key),loading:Rt(()=>t.loadingKeysRef.value.has(e.tmNode.key)),highlight:Rt(()=>{var T;return(T=t.highlightKeySetRef.value)===null||T===void 0?void 0:T.has(e.tmNode.key)}),checked:re,indeterminate:Rt(()=>t.displayedIndeterminateKeysRef.value.includes(e.tmNode.key)),selected:Rt(()=>t.mergedSelectedKeysRef.value.includes(e.tmNode.key)),expanded:Rt(()=>t.mergedExpandedKeysRef.value.includes(e.tmNode.key)),disabled:C,checkable:K,mergedCheckOnClick:V,checkboxDisabled:g,selectable:G,expandOnClick:t.expandOnClickRef,internalScrollable:t.internalScrollableRef,draggable:t.draggableRef,blockLine:f,nodeProps:k,checkboxFocusable:t.internalCheckboxFocusableRef,droppingPosition:o,droppingOffsetLevel:s,indent:c,checkboxPlacement:h,showLine:y,contentInstRef:x,contentElRef:N,indentNodes:In,handleCheck:xe,handleDrop:Gt,handleDragStart:Le,handleDragEnter:et,handleDragOver:pe,handleDragEnd:bt,handleDragLeave:Pt,handleLineClick:ve,handleContentClick:be,handleSwitcherClick:z}},render(){const{tmNode:e,clsPrefix:t,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:p,nodeProps:m,checkboxPlacement:g}=this,_=c&&!v?{onDragenter:this.handleDragEnter,onDragleave:this.handleDragLeave,onDragend:this.handleDragEnd,onDrop:this.handleDrop,onDragover:this.handleDragOver}:void 0,C=p?Dc(e.key):void 0,k=g==="right",x=n?R(tv,{indent:h,right:k,focusable:this.checkboxFocusable,disabled:v||this.checkboxDisabled,clsPrefix:t,checked:this.checked,indeterminate:this.indeterminate,onCheck:this.handleCheck}):null;return R("div",Object.assign({class:`${t}-tree-node-wrapper`},_),R("div",Object.assign({},f?m:void 0,{class:[`${t}-tree-node`,{[`${t}-tree-node--selected`]:o,[`${t}-tree-node--checkable`]:n,[`${t}-tree-node--highlight`]:l,[`${t}-tree-node--pending`]:y,[`${t}-tree-node--disabled`]:v,[`${t}-tree-node--selectable`]:a,[`${t}-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,e.isLeaf&&this.showLine?R("div",{class:[`${t}-tree-node-indent`,`${t}-tree-node-indent--show-line`,e.isLeaf&&`${t}-tree-node-indent--is-leaf`,e.isLastChild&&`${t}-tree-node-indent--last-child`]},R("div",{style:{width:`${h}px`}})):R(ev,{clsPrefix:t,expanded:this.expanded,selected:o,loading:this.loading,hide:e.isLeaf,tmNode:this.tmNode,indent:h,onClick:this.handleSwitcherClick}),k?null:x,R(nv,{ref:"contentInstRef",clsPrefix:t,checked:s,selected:o,onClick:this.handleContentClick,nodeProps:f?void 0:m,onDragstart:c&&!f&&!v?this.handleDragStart:void 0,tmNode:e}),c?this.showDropMark?Yu({el:this.contentElRef.value,position:this.droppingPosition,offsetLevel:this.droppingOffsetLevel,indent:h}):this.showDropMarkAsParent?Yu({el:this.contentElRef.value,position:"inside",offsetLevel:this.droppingOffsetLevel,indent:h}):null:null,k?x:null))}});function sv({props:e,fNodesRef:t,mergedExpandedKeysRef:n,mergedSelectedKeysRef:r,mergedCheckedKeysRef:a,handleCheck:o,handleSelect:s,handleSwitcherClick:l}){const{value:c}=r,f=ii(Uc,null),h=f?f.pendingNodeKeyRef:vt(c.length?c[c.length-1]:null);function d(v){var y;if(!e.keyboard)return{enterBehavior:null};const{value:p}=h;let m=null;if(p===null){if((v.key==="ArrowDown"||v.key==="ArrowUp")&&v.preventDefault(),["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(v.key)&&p===null){const{value:g}=t;let _=0;for(;_<g.length;){if(!g[_].disabled){h.value=g[_].key;break}_+=1}}}else{const{value:g}=t;let _=g.findIndex(C=>C.key===p);if(!~_)return{enterBehavior:null};if(v.key==="Enter"){const C=g[_];switch(m=((y=e.overrideDefaultNodeClickBehavior)===null||y===void 0?void 0:y.call(e,{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(),_+=1;_<g.length;){if(!g[_].disabled){h.value=g[_].key;break}_+=1}else if(v.key==="ArrowUp")for(v.preventDefault(),_-=1;_>=0;){if(!g[_].disabled){h.value=g[_].key;break}_-=1}else if(v.key==="ArrowLeft"){const C=g[_];if(C.isLeaf||!n.value.includes(p)){const k=C.getParent();k&&(h.value=k.key)}else l(C)}else if(v.key==="ArrowRight"){const C=g[_];if(C.isLeaf)return{enterBehavior:null};if(!n.value.includes(p))l(C);else for(_+=1;_<g.length;){if(!g[_].disabled){h.value=g[_].key;break}_+=1}}}return{enterBehavior:m}}return{pendingNodeKeyRef:h,handleKeydown:d}}const lv=Ve({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:e}=this;return R(Tc,{onAfterEnter:this.onAfterEnter,appear:!0,reverse:this.mode==="collapse"},{default:()=>R("div",{class:[`${e}-tree-motion-wrapper`,`${e}-tree-motion-wrapper--${this.mode}`],style:{height:Pc(this.height)}},this.nodes.map(t=>R(Wc,{clsPrefix:e,tmNode:t})))})}}),us=e1(),uv=J("tree",`
|
|
149
|
-
font-size: var(--n-font-size);
|
|
150
|
-
outline: none;
|
|
151
|
-
`,[W("ul, li",`
|
|
152
|
-
margin: 0;
|
|
153
|
-
padding: 0;
|
|
154
|
-
list-style: none;
|
|
155
|
-
`),W(">",[J("tree-node",[W("&:first-child","margin-top: 0;")])]),J("tree-motion-wrapper",[X("expand",[gs({duration:"0.2s"})]),X("collapse",[gs({duration:"0.2s",reverse:!0})])]),J("tree-node-wrapper",`
|
|
156
|
-
box-sizing: border-box;
|
|
157
|
-
padding: var(--n-node-wrapper-padding);
|
|
158
|
-
`),J("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
|
-
`,[X("highlight",[J("tree-node-content",[qe("text","border-bottom-color: var(--n-node-text-color-disabled);")])]),X("disabled",[J("tree-node-content",`
|
|
165
|
-
color: var(--n-node-text-color-disabled);
|
|
166
|
-
cursor: not-allowed;
|
|
167
|
-
`)]),An("disabled",[X("clickable",[J("tree-node-content",`
|
|
168
|
-
cursor: pointer;
|
|
169
|
-
`)])])]),X("block-node",[J("tree-node-content",`
|
|
170
|
-
flex: 1;
|
|
171
|
-
min-width: 0;
|
|
172
|
-
`)]),An("block-line",[J("tree-node",[An("disabled",[J("tree-node-content",[W("&:hover","background: var(--n-node-color-hover);")]),X("selectable",[J("tree-node-content",[W("&:active","background: var(--n-node-color-pressed);")])]),X("pending",[J("tree-node-content",`
|
|
173
|
-
background: var(--n-node-color-hover);
|
|
174
|
-
`)]),X("selected",[J("tree-node-content","background: var(--n-node-color-active);")])]),X("selected",[J("tree-node-content","background: var(--n-node-color-active);")])])]),X("block-line",[J("tree-node",[An("disabled",[W("&:hover","background: var(--n-node-color-hover);"),X("pending",`
|
|
175
|
-
background: var(--n-node-color-hover);
|
|
176
|
-
`),X("selectable",[An("selected",[W("&:active","background: var(--n-node-color-pressed);")])]),X("selected","background: var(--n-node-color-active);")]),X("selected","background: var(--n-node-color-active);"),X("disabled",`
|
|
177
|
-
cursor: not-allowed;
|
|
178
|
-
`)])]),J("tree-node-indent",`
|
|
179
|
-
flex-grow: 0;
|
|
180
|
-
flex-shrink: 0;
|
|
181
|
-
`,[X("show-line","position: relative",[W("&::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
|
-
`),X("last-child",[W("&::before",`
|
|
191
|
-
bottom: 50%;
|
|
192
|
-
`)]),X("is-leaf",[W("&::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
|
-
`)])]),An("show-line","height: 0;")]),J("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
|
-
`,[qe("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
|
-
`,[J("icon",[us]),J("base-loading",`
|
|
218
|
-
color: var(--n-loading-color);
|
|
219
|
-
position: absolute;
|
|
220
|
-
left: 0;
|
|
221
|
-
top: 0;
|
|
222
|
-
right: 0;
|
|
223
|
-
bottom: 0;
|
|
224
|
-
`,[us]),J("base-icon",[us])]),X("hide","visibility: hidden;"),X("expanded","transform: rotate(90deg);")]),J("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
|
-
`),J("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
|
-
`,[W("&:last-child","margin-bottom: 0;"),qe("prefix",`
|
|
248
|
-
display: inline-flex;
|
|
249
|
-
margin-right: 8px;
|
|
250
|
-
`),qe("text",`
|
|
251
|
-
border-bottom: 1px solid #0000;
|
|
252
|
-
transition: border-color .3s var(--n-bezier);
|
|
253
|
-
flex-grow: 1;
|
|
254
|
-
max-width: 100%;
|
|
255
|
-
`),qe("suffix",`
|
|
256
|
-
display: inline-flex;
|
|
257
|
-
`)]),qe("empty","margin: auto;")]);var cv=function(e,t,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(e,[])).next())})};function fv(e,t,n,r){return{getIsGroup(){return!1},getKey(o){return o[e]},getChildren:r||(o=>o[t]),getDisabled(o){return!!(o[n]||o.checkboxDisabled)}}}const hv={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},dv=Object.assign(Object.assign(Object.assign(Object.assign({},ji.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:rv},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]}),hv),{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}),vv=Ve({name:"Tree",props:dv,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=ba(e),a=wa("Tree",r,t),o=ji("Tree","-tree",uv,G1,e,t),s=vt(null),l=vt(null),c=vt(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=oe(()=>{const{filter:b}=e;if(b)return b;const{labelField:S}=e;return(q,L)=>{if(!q.length)return!0;const F=L[S];return typeof F=="string"?F.toLowerCase().includes(q.toLowerCase()):!1}}),v=oe(()=>{const{pattern:b}=e;return b?!b.length||!d.value?{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}:ov(e.data,d.value,b,e.keyField,e.childrenField):{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}}),y=oe(()=>v1(e.showIrrelevantNodes?e.data:v.value.filteredTree,fv(e.keyField,e.childrenField,e.disabledField,e.getChildren))),p=ii(Uc,null),m=e.internalTreeSelect?p.dataTreeMate:y,{watchProps:g}=e,_=vt([]);g!=null&&g.includes("defaultCheckedKeys")?$i(()=>{_.value=e.defaultCheckedKeys}):_.value=e.defaultCheckedKeys;const C=ge(e,"checkedKeys"),k=Zi(C,_),x=oe(()=>m.value.getCheckedKeys(k.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})),N=iv(e),z=oe(()=>x.value.checkedKeys),G=oe(()=>{const{indeterminateKeys:b}=e;return b!==void 0?b:x.value.indeterminateKeys}),K=vt([]);g!=null&&g.includes("defaultSelectedKeys")?$i(()=>{K.value=e.defaultSelectedKeys}):K.value=e.defaultSelectedKeys;const re=ge(e,"selectedKeys"),V=Zi(re,K),je=vt([]),Ce=b=>{je.value=e.defaultExpandAll?m.value.getNonLeafKeys():b===void 0?e.defaultExpandedKeys:b};g!=null&&g.includes("defaultExpandedKeys")?$i(()=>{Ce(void 0)}):$i(()=>{Ce(e.defaultExpandedKeys)});const be=ge(e,"expandedKeys"),ve=Zi(be,je),xe=oe(()=>y.value.getFlattenedNodes(ve.value)),{pendingNodeKeyRef:Le,handleKeydown:et}=sv({props:e,mergedCheckedKeysRef:k,mergedSelectedKeysRef:V,fNodesRef:xe,mergedExpandedKeysRef:ve,handleCheck:ns,handleSelect:rs,handleSwitcherClick:ju});let pe=null,bt=null;const Pt=vt(new Set),Gt=oe(()=>e.internalHighlightKeySet||v.value.highlightKeySet),In=Zi(Gt,Pt),T=vt(new Set),ae=oe(()=>ve.value.filter(b=>!T.value.has(b)));let me=0;const Oe=vt(null),Bt=vt(null),Ua=vt(null),Ha=vt(null),Wa=vt(0),hd=oe(()=>{const{value:b}=Bt;return b?b.parent:null});let Yo=!1;kr(ge(e,"data"),()=>{Yo=!0,ea(()=>{Yo=!1}),T.value.clear(),Le.value=null,Ji()},{deep:!1});let Zo=!1;const es=()=>{Zo=!0,ea(()=>{Zo=!1})};let Gi;kr(ge(e,"pattern"),(b,S)=>{if(e.showIrrelevantNodes)if(Gi=void 0,b){const{expandedKeys:q,highlightKeySet:L}=av(e.data,e.pattern,e.keyField,e.childrenField,d.value);Pt.value=L,es(),mi(q,on(q),{node:null,action:"filter"})}else Pt.value=new Set;else if(!b.length)Gi!==void 0&&(es(),mi(Gi,on(Gi),{node:null,action:"filter"}));else{S.length||(Gi=ve.value);const{expandedKeys:q}=v.value;q!==void 0&&(es(),mi(q,on(q),{node:null,action:"filter"}))}});function Au(b){return cv(this,void 0,void 0,function*(){const{onLoad:S}=e;if(!S){yield Promise.resolve();return}const{value:q}=T;if(!q.has(b.key)){q.add(b.key);try{(yield S(b.rawNode))===!1&&gi()}catch(L){console.error(L),gi()}q.delete(b.key)}})}$i(()=>{var b;const{value:S}=y;if(!S)return;const{getNode:q}=S;(b=ve.value)===null||b===void 0||b.forEach(L=>{const F=q(L);F&&!F.shallowLoaded&&Au(F)})});const _i=vt(!1),br=vt([]);kr(ae,(b,S)=>{if(!e.animated||Zo){ea(Va);return}if(Yo)return;const q=Qi(o.value.self.nodeHeight),L=new Set(S);let F=null,ze=null;for(const Se of b)if(!L.has(Se)){if(F!==null)return;F=Se}const Jt=new Set(b);for(const Se of S)if(!Jt.has(Se)){if(ze!==null)return;ze=Se}if(F===null&&ze===null)return;const{virtualScroll:sn}=e,bi=(sn?c.value.listElRef:s.value).offsetHeight,wi=Math.ceil(bi/q)+1;let fn;if(F!==null&&(fn=S),ze!==null&&(fn===void 0?fn=b:fn=fn.filter(Se=>Se!==ze)),_i.value=!0,br.value=y.value.getFlattenedNodes(fn),F!==null){const Se=br.value.findIndex(hn=>hn.key===F);if(~Se){const hn=br.value[Se].children;if(hn){const bn=Uu(hn,b);br.value.splice(Se+1,0,{__motion:!0,mode:"expand",height:sn?bn.length*q:void 0,nodes:sn?bn.slice(0,wi):bn})}}}if(ze!==null){const Se=br.value.findIndex(hn=>hn.key===ze);if(~Se){const hn=br.value[Se].children;if(!hn)return;_i.value=!0;const bn=Uu(hn,b);br.value.splice(Se+1,0,{__motion:!0,mode:"collapse",height:sn?bn.length*q:void 0,nodes:sn?bn.slice(0,wi):bn})}}});const dd=oe(()=>p1(xe.value)),vd=oe(()=>_i.value?br.value:xe.value);function Va(){const{value:b}=l;b&&b.sync()}function pd(){_i.value=!1,e.virtualScroll&&ea(Va)}function on(b){const{getNode:S}=m.value;return b.map(q=>{var L;return((L=S(q))===null||L===void 0?void 0:L.rawNode)||null})}function mi(b,S,q){const{"onUpdate:expandedKeys":L,onUpdateExpandedKeys:F}=e;je.value=b,L&&wt(L,b,S,q),F&&wt(F,b,S,q)}function Tu(b,S,q){const{"onUpdate:checkedKeys":L,onUpdateCheckedKeys:F}=e;_.value=b,F&&wt(F,b,S,q),L&&wt(L,b,S,q)}function _d(b,S){const{"onUpdate:indeterminateKeys":q,onUpdateIndeterminateKeys:L}=e;q&&wt(q,b,S),L&&wt(L,b,S)}function ts(b,S,q){const{"onUpdate:selectedKeys":L,onUpdateSelectedKeys:F}=e;K.value=b,F&&wt(F,b,S,q),L&&wt(L,b,S,q)}function md(b){const{onDragenter:S}=e;S&&wt(S,b)}function gd(b){const{onDragleave:S}=e;S&&wt(S,b)}function yd(b){const{onDragend:S}=e;S&&wt(S,b)}function bd(b){const{onDragstart:S}=e;S&&wt(S,b)}function wd(b){const{onDragover:S}=e;S&&wt(S,b)}function kd(b){const{onDrop:S}=e;S&&wt(S,b)}function Ji(){Cd(),Dr()}function Cd(){Oe.value=null}function Dr(){Wa.value=0,Bt.value=null,Ua.value=null,Ha.value=null,gi()}function gi(){pe&&(window.clearTimeout(pe),pe=null),bt=null}function ns(b,S){if(e.disabled||wr(b,e.disabledField))return;if(e.internalUnifySelectCheck&&!e.multiple){rs(b);return}const q=S?"check":"uncheck",{checkedKeys:L,indeterminateKeys:F}=m.value[q](b.key,z.value,{cascade:e.cascade,checkStrategy:N.value,allowNotLoaded:e.allowCheckingNotLoaded});Tu(L,on(L),{node:b.rawNode,action:q}),_d(F,on(F))}function xd(b){if(e.disabled)return;const{key:S}=b,{value:q}=ve,L=q.findIndex(F=>F===S);if(~L){const F=Array.from(q);F.splice(L,1),mi(F,on(F),{node:b.rawNode,action:"collapse"})}else{const F=y.value.getNode(S);if(!F||F.isLeaf)return;let ze;if(e.accordion){const Jt=new Set(b.siblings.map(({key:sn})=>sn));ze=q.filter(sn=>!Jt.has(sn)),ze.push(S)}else ze=q.concat(S);mi(ze,on(ze),{node:b.rawNode,action:"expand"})}}function ju(b){e.disabled||_i.value||xd(b)}function rs(b){if(!(e.disabled||!e.selectable)){if(Le.value=b.key,e.internalUnifySelectCheck){const{value:{checkedKeys:S,indeterminateKeys:q}}=x;e.multiple?ns(b,!(S.includes(b.key)||q.includes(b.key))):Tu([b.key],on([b.key]),{node:b.rawNode,action:"check"})}if(e.multiple){const S=Array.from(V.value),q=S.findIndex(L=>L===b.key);~q?e.cancelable&&S.splice(q,1):~q||S.push(b.key),ts(S,on(S),{node:b.rawNode,action:~q?"unselect":"select"})}else V.value.includes(b.key)?e.cancelable&&ts([],[],{node:b.rawNode,action:"unselect"}):ts([b.key],on([b.key]),{node:b.rawNode,action:"select"})}}function Sd(b){if(pe&&(window.clearTimeout(pe),pe=null),b.isLeaf)return;bt=b.key;const S=()=>{if(bt!==b.key)return;const{value:q}=Ua;if(q&&q.key===b.key&&!ve.value.includes(b.key)){const L=ve.value.concat(b.key);mi(L,on(L),{node:b.rawNode,action:"expand"})}pe=null,bt=null};b.shallowLoaded?pe=window.setTimeout(()=>{S()},1e3):pe=window.setTimeout(()=>{Au(b).then(()=>{S()})},1e3)}function $d({event:b,node:S}){!e.draggable||e.disabled||wr(S,e.disabledField)||(Pu({event:b,node:S},!1),md({event:b,node:S.rawNode}))}function Ed({event:b,node:S}){!e.draggable||e.disabled||wr(S,e.disabledField)||gd({event:b,node:S.rawNode})}function Nd(b){b.target===b.currentTarget&&Dr()}function Id({event:b,node:S}){Ji(),!(!e.draggable||e.disabled||wr(S,e.disabledField))&&yd({event:b,node:S.rawNode})}function qd({event:b,node:S}){!e.draggable||e.disabled||wr(S,e.disabledField)||(me=b.clientX,Oe.value=S,bd({event:b,node:S.rawNode}))}function Pu({event:b,node:S},q=!0){var L;if(!e.draggable||e.disabled||wr(S,e.disabledField))return;const{value:F}=Oe;if(!F)return;const{allowDrop:ze,indent:Jt}=e;q&&wd({event:b,node:S.rawNode});const sn=b.currentTarget,{height:bi,top:wi}=sn.getBoundingClientRect(),fn=b.clientY-wi;let Se;ze({node:S.rawNode,dropPosition:"inside",phase:"drag"})?fn<=8?Se="before":fn>=bi-8?Se="after":Se="inside":fn<=bi/2?Se="before":Se="after";const{value:bn}=dd;let we,$t;const ki=bn(S.key);if(ki===null){Dr();return}let Ga=!1;Se==="inside"?(we=S,$t="inside"):Se==="before"?S.isFirstChild?(we=S,$t="before"):(we=xe.value[ki-1],$t="after"):(we=S,$t="after"),!we.isLeaf&&ve.value.includes(we.key)&&(Ga=!0,$t==="after"&&(we=xe.value[ki+1],we?$t="before":(we=S,$t="inside")));const Mu=we;if(Ua.value=Mu,!Ga&&F.isLastChild&&F.key===we.key&&($t="after"),$t==="after"){let Lu=me-b.clientX,is=0;for(;Lu>=Jt/2&&we.parent!==null&&we.isLastChild&&is<1;)Lu-=Jt,is+=1,we=we.parent;Wa.value=is}else Wa.value=0;if((F.contains(we)||$t==="inside"&&((L=F.parent)===null||L===void 0?void 0:L.key)===we.key)&&!(F.key===Mu.key&&F.key===we.key)){Dr();return}if(!ze({node:we.rawNode,dropPosition:$t,phase:"drag"})){Dr();return}if(F.key===we.key)gi();else if(bt!==we.key)if($t==="inside"){if(e.expandOnDragenter){if(Sd(we),!we.shallowLoaded&&bt!==we.key){Ji();return}}else if(!we.shallowLoaded){Ji();return}}else gi();else $t!=="inside"&&gi();Ha.value=$t,Bt.value=we}function Ad({event:b,node:S,dropPosition:q}){if(!e.draggable||e.disabled||wr(S,e.disabledField))return;const{value:L}=Oe,{value:F}=Bt,{value:ze}=Ha;if(!(!L||!F||!ze)&&e.allowDrop({node:F.rawNode,dropPosition:ze,phase:"drag"})&&L.key!==F.key){if(ze==="before"){const Jt=L.getNext({includeDisabled:!0});if(Jt&&Jt.key===F.key){Dr();return}}if(ze==="after"){const Jt=L.getPrev({includeDisabled:!0});if(Jt&&Jt.key===F.key){Dr();return}}kd({event:b,node:F.rawNode,dragNode:L.rawNode,dropPosition:q}),Ji()}}function Td(){Va()}function jd(){Va()}function Pd(b){var S;if(e.virtualScroll||e.internalScrollable){const{value:q}=l;if(!((S=q==null?void 0:q.containerRef)===null||S===void 0)&&S.contains(b.relatedTarget))return;Le.value=null}else{const{value:q}=s;if(q!=null&&q.contains(b.relatedTarget))return;Le.value=null}}kr(Le,b=>{var S,q;if(b!==null){if(e.virtualScroll)(S=c.value)===null||S===void 0||S.scrollTo({key:b});else if(e.internalScrollable){const{value:L}=l;if(L===null)return;const F=(q=L.contentRef)===null||q===void 0?void 0:q.querySelector(`[data-key="${Dc(b)}"]`);if(!F)return;L.scrollTo({el:F})}}}),gl(Ca,{loadingKeysRef:T,highlightKeySetRef:In,displayedCheckedKeysRef:z,displayedIndeterminateKeysRef:G,mergedSelectedKeysRef:V,mergedExpandedKeysRef:ve,mergedThemeRef:o,mergedCheckStrategyRef:N,nodePropsRef:ge(e,"nodeProps"),disabledRef:ge(e,"disabled"),checkableRef:ge(e,"checkable"),selectableRef:ge(e,"selectable"),expandOnClickRef:ge(e,"expandOnClick"),onLoadRef:ge(e,"onLoad"),draggableRef:ge(e,"draggable"),blockLineRef:ge(e,"blockLine"),indentRef:ge(e,"indent"),cascadeRef:ge(e,"cascade"),checkOnClickRef:ge(e,"checkOnClick"),checkboxPlacementRef:e.checkboxPlacement,droppingMouseNodeRef:Ua,droppingNodeParentRef:hd,draggingNodeRef:Oe,droppingPositionRef:Ha,droppingOffsetLevelRef:Wa,fNodesRef:xe,pendingNodeKeyRef:Le,showLineRef:ge(e,"showLine"),disabledFieldRef:ge(e,"disabledField"),internalScrollableRef:ge(e,"internalScrollable"),internalCheckboxFocusableRef:ge(e,"internalCheckboxFocusable"),internalTreeSelect:e.internalTreeSelect,renderLabelRef:ge(e,"renderLabel"),renderPrefixRef:ge(e,"renderPrefix"),renderSuffixRef:ge(e,"renderSuffix"),renderSwitcherIconRef:ge(e,"renderSwitcherIcon"),labelFieldRef:ge(e,"labelField"),multipleRef:ge(e,"multiple"),overrideDefaultNodeClickBehaviorRef:ge(e,"overrideDefaultNodeClickBehavior"),handleSwitcherClick:ju,handleDragEnd:Id,handleDragEnter:$d,handleDragLeave:Ed,handleDragStart:qd,handleDrop:Ad,handleDragOver:Pu,handleSelect:rs,handleCheck:ns});function Rd(b,S){var q,L;typeof b=="number"?(q=c.value)===null||q===void 0||q.scrollTo(b,S||0):(L=c.value)===null||L===void 0||L.scrollTo(b)}const Md={handleKeydown:et,scrollTo:Rd,getCheckedData:()=>{if(!e.checkable)return{keys:[],options:[]};const{checkedKeys:b}=x.value;return{keys:b,options:on(b)}},getIndeterminateData:()=>{if(!e.checkable)return{keys:[],options:[]};const{indeterminateKeys:b}=x.value;return{keys:b,options:on(b)}}},Ru=oe(()=>{const{common:{cubicBezierEaseInOut:b},self:{fontSize:S,nodeBorderRadius:q,nodeColorHover:L,nodeColorPressed:F,nodeColorActive:ze,arrowColor:Jt,loadingColor:sn,nodeTextColor:bi,nodeTextColorDisabled:wi,dropMarkColor:fn,nodeWrapperPadding:Se,nodeHeight:hn,lineHeight:bn,lineColor:we}}=o.value,$t=ss(Se,"top"),ki=ss(Se,"bottom"),Ga=Pc(Qi(hn)-Qi($t)-Qi(ki));return{"--n-arrow-color":Jt,"--n-loading-color":sn,"--n-bezier":b,"--n-font-size":S,"--n-node-border-radius":q,"--n-node-color-active":ze,"--n-node-color-hover":L,"--n-node-color-pressed":F,"--n-node-text-color":bi,"--n-node-text-color-disabled":wi,"--n-drop-mark-color":fn,"--n-node-wrapper-padding":Se,"--n-line-offset-top":`-${$t}`,"--n-line-offset-bottom":`-${ki}`,"--n-node-content-height":Ga,"--n-line-height":bn,"--n-line-color":we}}),yi=n?bl("tree",void 0,Ru,e):void 0;return Object.assign(Object.assign({},Md),{mergedClsPrefix:t,mergedTheme:o,rtlEnabled:a,fNodes:vd,aip:_i,selfElRef:s,virtualListInstRef:c,scrollbarInstRef:l,handleFocusout:Pd,handleDragLeaveTree:Nd,handleScroll:Td,getScrollContainer:f,getScrollContent:h,handleAfterEnter:pd,handleResize:jd,cssVars:n?void 0:Ru,themeClass:yi==null?void 0:yi.themeClass,onRender:yi==null?void 0:yi.onRender})},render(){var e;const{fNodes:t,internalRenderEmpty:n}=this;if(!t.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,p=c&&!l,m=p?"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`],_=k=>"__motion"in k?R(lv,{height:k.height,nodes:k.nodes,clsPrefix:r,mode:k.mode,onAfterEnter:this.handleAfterEnter}):R(Wc,{key:k.key,tmNode:k,clsPrefix:r});if(this.virtualScroll){const{mergedTheme:k,internalScrollablePadding:x}=this,N=ss(x||"0");return R(Fu,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:p?h:void 0,onFocusout:p?v:void 0}),{default:()=>{var z;return(z=this.onRender)===null||z===void 0||z.call(this),t.length?R(_1,{ref:"virtualListInstRef",items:this.fNodes,itemSize:Qi(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:G})=>_(G)}):zu(this.$slots.empty,()=>[R(Hu,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})])}})}const{internalScrollable:C}=this;return g.push(this.themeClass),(e=this.onRender)===null||e===void 0||e.call(this),C?R(Fu,Object.assign({},y,{class:g,tabindex:m,onKeydown:p?h:void 0,onFocusout:p?v:void 0,style:this.cssVars,contentStyle:{padding:this.internalScrollablePadding}}),{default:()=>R("div",{onDragleave:s?this.handleDragLeaveTree:void 0,ref:"selfElRef"},this.fNodes.map(_))}):R("div",{class:g,tabindex:m,ref:"selfElRef",style:this.cssVars,onKeydown:p?h:void 0,onFocusout:p?v:void 0,onDragleave:s?this.handleDragLeaveTree:void 0},t.length?t.map(_):zu(this.$slots.empty,()=>[R(Hu,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]))}}),Zu=e=>{const t=nt(),n={x:0,y:0},r=kl({...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||!t.value)return;const d=h.clientX-a.clientX,v=h.clientY-a.clientY;e(d)&&(r.x=n.x+d),r.y=n.y+v},c=()=>{a=void 0},f=()=>{if(!t.value||!a)return;c();const{top:h,bottom:d,left:v,right:y}=t.value.getBoundingClientRect();(y<0||v>window.innerWidth||d<0||h>window.innerHeight)&&(r.x=n.x,r.y=n.y)};return ka(()=>{window.addEventListener("pointermove",l),window.addEventListener("pointerup",f),document.addEventListener("selectstart",o)}),eo(()=>{window.removeEventListener("pointermove",l),window.removeEventListener("pointerup",f),document.removeEventListener("selectstart",o),c()}),kr(t,(h,d)=>{h&&(h.addEventListener("pointerdown",s),h.addEventListener("pointerup",c)),d&&(d.removeEventListener("pointerdown",s),d.removeEventListener("pointerup",c))}),eo(()=>{t.value&&(t.value.removeEventListener("pointerdown",s),t.value.removeEventListener("pointerup",c))}),{target:t,offset:r}},ec="transition-top,bottom,left,right-500",Cl=Ve({__name:"DraggableCard",props:{initialValue:{default:()=>({})},minWidth:{},sizeDraggable:{type:Boolean},disabled:{type:Boolean}},setup(e){var C,k;const t=e,n=t.initialValue.left!==void 0,r=t.initialValue.top!==void 0,a={x:(C=n?t.initialValue.left:t.initialValue.right)!=null?C:0,y:(k=r?t.initialValue.top:t.initialValue.bottom)!=null?k:0},o=Zu(x=>{const N=(t.initialValue.width||0)+s.offset.x+-o.offset.x-x;return(t.minWidth||0)<N}),s=Zu(x=>{const N=(t.initialValue.width||0)+s.offset.x+x-o.offset.x;return(t.minWidth||0)<N}),l=kl({...a}),c=oe(()=>{const x=(t.initialValue.width||0)+s.offset.x-o.offset.x,N=t.initialValue.width?`width:${x}px;`:"",z=r?`top:${l.y}px;`:`bottom:${l.y}px;`;return n?`left:${l.x-o.offset.x}px;`+z+N:`right:${l.x-s.offset.x}px;`+z+N});let f;const h=x=>{f=x,a.x=l.x,a.y=l.y},d=x=>{if(!p.value||!f)return;const N=x.clientX-f.clientX,z=x.clientY-f.clientY;l.x=a.x+(n?N:-N),l.y=a.y+(r?z:-z)},v=()=>{f=void 0},y=nt(),p=nt(),m=x=>{f&&x.preventDefault()},g=()=>{if(!p.value||!f)return;v();const{top:x,bottom:N,left:z,right:G}=p.value.getBoundingClientRect();if(G<0||z>window.innerWidth||N<0||x>window.innerHeight){l.x=a.x,l.y=a.y;const K=y.value;K&&(K.classList.add(ec),setTimeout(()=>{K.classList.remove(ec)},550))}};ka(()=>{window.addEventListener("pointermove",d),window.addEventListener("pointerup",g),document.addEventListener("selectstart",m)}),eo(()=>{window.removeEventListener("pointermove",d),window.removeEventListener("pointerup",g),document.removeEventListener("selectstart",m),v()}),kr(p,(x,N)=>{x&&(x.addEventListener("pointerdown",h),x.addEventListener("pointerup",v)),N&&(N.removeEventListener("pointerdown",h),N.removeEventListener("pointerup",v))}),eo(()=>{p.value&&(p.value.removeEventListener("pointerdown",h),p.value.removeEventListener("pointerup",v))});const _=x=>{x instanceof HTMLElement?p.value=x:p.value=void 0};return(x,N)=>(le(),pt(t1,{to:"#app",disabled:x.disabled},[A("div",{fixed:"",ref_key:"box",ref:y,style:ms([x.$attrs.style,c.value]),class:Qr(x.$attrs.class)},[Rc(x.$slots,"default",{onRef:_}),x.sizeDraggable?(le(),Mt(Cr,{key:0},[A("div",{ref:I(o).target,absolute:"","right-full":"","top-0":"","bottom-0":"","w-5px":"","cursor-ew-resize":""},null,512),A("div",{ref:I(s).target,absolute:"","left-full":"","top-0":"","bottom-0":"","w-5px":"","cursor-ew-resize":""},null,512)],64)):Kt("",!0)],6)],8,["disabled"]))}}),pv=A("th",null,"Name",-1),_v=A("th",null,"Value",-1),mv=[pv,_v],gv={key:0,flex:"","justify-between":"","items-center":""},yv={key:0,viewBox:"0 0 28 28"},bv=A("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),wv=[bv],kv={key:1,viewBox:"0 0 1024 1024"},Cv=A("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),xv=[Cv],Sv=Ve({__name:"AttrCard",props:{focusNode:{}},setup(e){const t=e,n={_id:{desc:"虚拟属性(真机不可用):生成快照访问节点顺序",type:"info"},_pid:{desc:"虚拟属性(真机不可用):父节点的 _id",type:"info"},depth:{desc:"使用此属性在某些应用上可能造成无限节点错误",type:"info"},id:{desc:"可快速查找",type:"quickFind",show(){return(t.focusNode.quickFind||t.focusNode.idQf)&&t.focusNode.attr.id}},vid:{desc:"可快速查找",type:"quickFind",show(){return(t.focusNode.quickFind||t.focusNode.idQf)&&t.focusNode.attr.vid}},text:{desc:"可快速查找",type:"quickFind",show(){return(t.focusNode.quickFind||t.focusNode.textQf)&&t.focusNode.attr.text}}},r=["text","desc"],a=oe(()=>Object.entries(t.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)=>(le(),pt(Cl,{initialValue:{top:40,right:10},class:"box-shadow-dim"},{default:P(({onRef:l})=>[te(I(X1),{size:"small",striped:"",singleLine:!1,class:"gkd_code",themeOverrides:{thPaddingSmall:"1px 3px",tdPaddingSmall:"1px 3px"}},{default:P(()=>[A("thead",null,[A("tr",{ref:l,"cursor-move":""},mv,512)]),te(I(Z1),null,{default:P(()=>[(le(!0),Mt(Cr,null,na(a.value,c=>(le(),pt(I(Y1),{key:c.name},{default:P(()=>[te(I(Xu),{onClick:f=>I(Hn)(`${c.name}=${c.desc}`)},{default:P(()=>[c.tip?(le(),Mt("div",gv,[A("div",null,Be(c.name),1),te(I(Bn),null,{trigger:P(()=>[te(I(Wn),{size:"16"},{default:P(()=>[c.tip.type=="info"?(le(),Mt("svg",yv,wv)):c.tip.type=="quickFind"?(le(),Mt("svg",kv,xv)):Kt("",!0)]),_:2},1024)]),default:P(()=>[kt(" "+Be(c.tip.desc),1)]),_:2},1024)])):(le(),Mt(Cr,{key:1},[kt(Be(c.name),1)],64))]),_:2},1032,["onClick"]),te(I(Xu),null,{default:P(()=>[te(I(m1),{class:Qr(["w-[calc(var(--gkd-width)*0.12)]",{"text-left direction-rtl":c.name=="id","opacity-50":c.value===null}])},{default:P(()=>[kt(Be(c.desc),1)]),_:2},1032,["class"])]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:2},1024)]),_:1}))}}),$v={flex:"","flex-col":"",relative:"","h-full":""},Ev=["src"],Nv=A("div",{absolute:"","left-0":"","top-0":"","bottom-0":"","right-0":"","b-solid":"","b-1px":"","b-red":""},null,-1),Iv=[Nv],qv={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":""},Av=["src"],Tv={absolute:"","left-2px":"","top-2px":"","p-1px":"","z-1":"","text-13px":"",class:"leading-[1] bg-[rgba(256,256,256,0.7)]"},jv={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":""},Pv=A("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),Rv=A("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),Mv=Ve({__name:"ScreenshotCard",props:{url:{},snapshot:{},rootNode:{},focusNode:{},onUpdateFocusNode:{type:Function,default:Xr},onUpdateFocusNodes:{type:Function,default:Xr}},setup(e){const t=e,n=Fc(),r=C1(oe(()=>(n.width.value,n.height.value,Math.random())),300),a=nt(),o=nt(0),s=p=>{if(!t.rootNode)return;const m=a.value;if(!m)return;const g=m.getBoundingClientRect(),_=g.width/m.naturalWidth*m.naturalHeight,C=(g.height-_)/2,k=(p.clientX-g.left)/g.width*m.naturalWidth,x=(p.clientY-g.top-C)/_*m.naturalHeight,N=g1(t.snapshot.nodes,k,x);N.length!==0&&(N.length===1?t.onUpdateFocusNode(N[0]):(t.onUpdateFocusNode(N[0]),t.onUpdateFocusNodes({nodes:N,position:{x:k,y:x}})))},l=p=>`${p*100}%`,c=oe(()=>{var C;r.value,o.value;const p=a.value,m=(C=t.focusNode)==null?void 0:C.attr;if(!t.focusNode||!p||!m)return"";const g=p.getBoundingClientRect(),_=g.width/p.naturalWidth*p.naturalHeight;return{left:`calc(${l(m.left/p.naturalWidth)} - 2px)`,width:`calc(${l((m.right-m.left)/p.naturalWidth)} + 2px)`,top:`calc(${l((m.top/p.naturalHeight*_+(g.height-_)/2)/g.height)} - 2px)`,height:`calc(${l((m.bottom-m.top)/p.naturalHeight*_/g.height)} + 2px)`}}),f=nt(!1),h=nt({ox:0,oy:0}),d=oe(()=>{var _;const p=(_=t.focusNode)==null?void 0:_.attr;if(!p)return;const{ox:m,oy:g}=h.value;return{left:m-p.left,right:p.right-m,top:g-p.top,bottom:p.bottom-g}}),v=p=>{const m=a.value;if(!m)return;const g=m.getBoundingClientRect(),_=g.width/m.naturalWidth*m.naturalHeight,C=(g.height-_)/2,k=(p.clientX-g.left)/g.width*m.naturalWidth,x=(p.clientY-g.top-C)/_*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=nt({left:"0",top:"0"});return(p,m)=>(le(),Mt("div",$v,[A("img",{ref_key:"imgRef",ref:a,src:p.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,Ev),A("div",{style:ms(c.value),absolute:"","pointer-events-none":"","transition-all-300":"","b-1px":"","b-blue":"","b-solid":""},Iv,4),qc(A("div",qv,[A("img",{src:p.url,"object-contain":"",absolute:"","left-0":"","top-0":"",style:ms(y.value),"w-1000px":""},null,12,Av),A("div",Tv,Be(`${h.value.ox.toFixed(0)},${h.value.oy.toFixed(0)}`),1),d.value?(le(),Mt("div",jv,[A("div",null,Be(d.value.top.toFixed(0)),1),A("div",null,Be(d.value.left.toFixed(0)+","+d.value.right.toFixed(0)),1),A("div",null,Be(d.value.bottom.toFixed(0)),1)])):Kt("",!0),Pv,Rv],512),[[Ac,f.value]])]))}});typeof Math.imul>"u"&&(Math.imul=function(t,n){return(t&4294901760)*(n&65535)+(t&65535)*(n|0)|0});typeof ArrayBuffer.isView>"u"&&(ArrayBuffer.isView=function(e){return e!=null&&e.__proto__!=null&&e.__proto__.__proto__===Int8Array.prototype.__proto__});typeof Array.prototype.fill>"u"&&Object.defineProperty(Array.prototype,"fill",{value:function(e){if(this==null)throw new TypeError("this is null or not defined");for(var t=Object(this),n=t.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;)t[o]=e,o++;return t}});[Int8Array,Int16Array,Uint16Array,Int32Array,Float32Array,Float64Array].forEach(function(e){typeof e.prototype.fill>"u"&&Object.defineProperty(e.prototype,"fill",{value:Array.prototype.fill})});typeof Math.clz32>"u"&&(Math.clz32=function(e,t){return function(n){var r=n>>>0;return r===0?32:31-(e(r)/t|0)|0}}(Math.log,Math.LN2));typeof String.prototype.endsWith>"u"&&Object.defineProperty(String.prototype,"endsWith",{value:function(e,t){var n=this.toString();(t===void 0||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return r!==-1&&r===t}});typeof String.prototype.startsWith>"u"&&Object.defineProperty(String.prototype,"startsWith",{value:function(e,t){return t=t||0,this.lastIndexOf(e,t)===t}});var _e=Math.imul,Lv=ArrayBuffer.isView,Vc=Math.clz32;zt(xl,"CharSequence");zt(xa,"Comparable");w(no,"Number");ie(Sl,"Unit");w(Nl);w(Al);gt(nf);w(ne,"Char",u,u,[xa]);zt(Ne,"Collection");function Gc(){return Sp(this)}zt(On,"List",u,u,[Ne]);zt(lr,"Entry");zt(ur,"Map");zt(Mr,"Set",u,u,[Ne]);gt(dp);w(cr,"Enum",u,u,[xa]);gt(rf);w(he,"Long",u,no,[no,xa]);w(ho);w(xs,"JsArrayView",xs,Array);ie(Mf,"Digit");w(hr,"AbstractCollection",u,u,[Ne]);w(Pn,"AbstractMutableCollection",u,hr,[hr,Ne]);w(ai,"IteratorImpl");w(Ea,"ListIteratorImpl",u,ai);w(mt,"AbstractMutableList",u,Pn,[Pn,On,Ne]);w(yr,"SubList",u,mt);w(_n,"AbstractMap",u,u,[ur]);w(oo,"AbstractMutableMap",u,_n,[_n,ur]);w(fr,"AbstractMutableSet",u,Pn,[Pn,Mr,Ne]);gt(Ff);w(Ge,"ArrayList",st,mt,[mt,On,Ne]);w(Rn,"HashMap",I_,oo,[oo,ur]);w(mn,"HashMapEntrySetBase",u,fr,[Mr,Ne,fr]);w(Bl,"HashMapEntrySet",u,mn);w(Sn,"HashSet",T_,fr,[fr,Mr,Ne]);gt(Qf);w(Lr,"Itr");w(Jl,"KeysItr",u,Lr);w(qa,"EntriesItr",u,Lr);w(oi,"EntryRef",u,u,[lr]);function Ov(e){var t;e:{var n;if(Z(e,Ne)?n=e.l():n=!1,n){t=!0;break e}for(var r=e.h();r.i();){var a=r.j(),o=a,s;if(o!=null&&Z(o,lr)?s=this.e6(o):s=!1,!s){t=!1;break e}}t=!0}return t}zt(Xf,"InternalMap");w(xt,"InternalHashMap",Ul,u,[Xf]);w(Aa,"LinkedHashMap",Yf,Rn,[Rn,ur]);w(Or,"LinkedHashSet",Ql,Sn,[Sn,Mr,Ne]);zt(Wi,"Continuation");w(fa,"InterceptedCoroutine",u,u,[Wi]);w(Tt,"CoroutineImpl",u,fa,[fa,Wi]);ie(Li,"CompletedContinuation",u,u,[Wi]);w(Xl,u,u,Tt);w(gn,"Exception",th,Error);w(Ft,"RuntimeException",lh,gn);w(si,"IllegalArgumentException",ih,Ft);w(Oi,"IndexOutOfBoundsException",Yl,Ft);w(zi,"IllegalStateException",oh,Ft);w(Fi,"UnsupportedOperationException",li,Ft);w(Di,"NoSuchElementException",St,Ft);w(Bi,"Error",ch,Error);w(ci,"NumberFormatException",fh,si);w(Ki,"ArithmeticException",dh,Ft);w(yo,"ConcurrentModificationException",Zl,Ft);w(bo,"NullPointerException",eu,Ft);w(wo,"NoWhenBranchMatchedException",tu,Ft);w(ko,"ClassCastException",nu,Ft);zt(da,"KClass");w(un,"KClassImpl",u,u,[da]);ie(fi,"NothingKClassImpl",u,un);w(Ti,"ErrorKClass",Ti,u,[da]);w(Pe,"PrimitiveKClassImpl",u,un);w(so,"SimpleKClassImpl",u,un);zt(Co,"KProperty1");zt(ru,"KProperty0");ie(Je,"PrimitiveClasses");w(yn,"StringBuilder",au,u,[xl]);gt(kh);w(ja,"Regex");w(ou,"sam$kotlin_Comparator$0");gt(zr);gt(rm);gt(So);w(zn,"ArrayAsCollection",u,u,[Ne]);ie(lt,"EmptyList",u,u,[On]);ie(hi,"EmptyIterator");w(Ur,"IndexedValue");w(Eo,"IntIterator");w(Ma,"CharIterator");w(dr,"SequenceScope",u,u,u,[1]);w(vr,"SequenceBuilderIterator",vr,dr,[dr,Wi],[1]);w(cu);w(No);w(fu,"TransformingSequence");w(Io);w(hu,"FilteringSequence");w(qo);w(du,"IndexingSequence");zt(di,"DropTakeSequence");w(Ao);w(Yr,"TakeSequence",u,u,[di]);w(To);w(vu,"TakeWhileSequence");w(jo);w(Hr,"DropSequence",u,u,[di]);w(Po);w(pu,"DropWhileSequence");ie(Oa,"EmptySequence",u,u,[di]);w(Mo);w(Pr,"SubSequence",u,u,[di]);ie(Fn,"EmptySet",u,u,[Mr]);ie(jh,"Key");zt(ym,"ContinuationInterceptor");ie(za,"EmptyCoroutineContext");w(Ya,"CoroutineSingletons",u,cr);gt(Lh);w(Ln,"IntProgression");w(Rr,"IntRange",u,Ln);gt(Oh);w(mr,"CharProgression");w(_r,"CharRange",u,mr);w(Oo,"IntProgressionIterator",u,Eo);w(zo,"CharProgressionIterator",u,Ma);gt(mu);gt(Sm);w(Da,"UnsafeLazyImpl");ie(Wh,"UNINITIALIZED_VALUE");gt(jm);w(gr,"Failure");w(Bs,"NotImplementedError",Bs,Bi);w(xn,"Pair");function xl(){}function xa(){}function no(){}function Sl(){}i(Sl).toString=function(){return"kotlin.Unit"};var ue;function $l(e){switch(e.length){case 0:return Ra();case 1:return mo(e[0]);default:return El(e)}}function bs(e,t){return Jc(e,t)>=0}function zv(e){return e.length===0?Hi():new Nl(e)}function El(e){return Na(cm(e))}function Fv(e){var t;switch(e.length){case 0:throw Ta("Array is empty.");case 1:t=e[0];break;default:throw He("Array has more than one element.")}return t}function Jc(e,t){if(t==null){var n=0,r=e.length-1|0;if(n<=r)do{var a=n;if(n=n+1|0,e[a]==null)return a}while(n<=r)}else{var o=0,s=e.length-1|0;if(o<=s)do{var l=o;if(o=o+1|0,E(t,e[l]))return l}while(o<=s)}return-1}function Dv(e){return e.length-1|0}function Bv(e,t){if(t==null){var n=e.length-1|0;if(0<=n)do{var r=n;if(n=n+-1|0,e[r]==null)return r}while(0<=n)}else{var a=e.length-1|0;if(0<=a)do{var o=a;if(a=a+-1|0,E(t,e[o]))return o}while(0<=a)}return-1}function Kv(e,t,n,r,a,o,s){return t=t===u?", ":t,n=n===u?"":n,r=r===u?"":r,a=a===u?-1:a,o=o===u?"...":o,s=s===u?null:s,Hv(e,au(),t,n,r,a,o,s).toString()}function Uv(e,t){for(var n=0,r=e.length;n<r;){var a=e[n];n=n+1|0,t.e(a)}return t}function Hv(e,t,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,t.f(r);var c=0,f=0,h=e.length;e:for(;f<h;){var d=e[f];if(f=f+1|0,c=c+1|0,c>1&&t.f(n),o<0||c<=o)Fh(t,d,l);else break e}return o>=0&&c>o&&t.f(s),t.f(a),t}function Nl(e){this.g_1=e}i(Nl).h=function(){return of(this.g_1)};function Cn(e,t,n,r,a,o,s){return t=t===u?", ":t,n=n===u?"":n,r=r===u?"":r,a=a===u?-1:a,o=o===u?"...":o,s=s===u?null:s,Wv(e,au(),t,n,r,a,o,s).toString()}function Wv(e,t,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,t.f(r);var c=0,f=e.h();e:for(;f.i();){var h=f.j();if(c=c+1|0,c>1&&t.f(n),o<0||c<=o)Fh(t,h,l);else break e}return o>=0&&c>o&&t.f(s),t.f(a),t}function Qa(e){return e.l()?null:e.k(0)}function Vv(e){return Xc(Xv(e))}function Gv(e){return new Al(e)}function Jv(e){return e.l()?null:e.k(e.m()-1|0)}function ia(e){if(e.l())throw Ta("List is empty.");return e.k(0)}function Qc(e,t){if(Z(t,Ne)){var n=qi(e.m()+t.m()|0);return n.q(e),n.q(t),n}else{var r=Na(e);return $o(r,t),r}}function aa(e){if(e.l())throw Ta("List is empty.");return e.k(Pa(e))}function Il(e){return Na(e)}function Qv(e,t){return 0<=t&&t<e.m()?e.k(t):null}function ql(e,t){if(Z(e,Ne)){if(e.m()<=1)return Xc(e);var n=pn(e),r=Mi(n)?n:$();return u_(r,t),Ol(r)}var a=Yc(e);return m_(a,t),a}function Xc(e){if(Z(e,Ne)){var t;switch(e.m()){case 0:t=Ra();break;case 1:var n;Z(e,On)?n=e.k(0):n=e.h().j(),t=mo(n);break;default:t=Il(e);break}return t}return sm(Yc(e))}function Xv(e){var t;return Z(e,Ne)?t=Y_(e):t=ro(e,Ql()),t}function Yc(e){return Z(e,Ne)?Il(e):ro(e,st())}function ro(e,t){for(var n=e.h();n.i();){var r=n.j();t.e(r)}return t}function Yv(e){if(Z(e,Ne)){var t;switch(e.m()){case 0:t=_u();break;case 1:var n;Z(e,On)?n=e.k(0):n=e.h().j(),t=Of(n);break;default:t=ro(e,t0(e.m()));break}return t}return mm(ro(e,Ql()))}function Al(e){this.r_1=e}i(Al).h=function(){return this.r_1.h()};function Zv(e,t){return zh.s(e,t,-1)}function oa(e,t){return e>t?t:e}function io(e,t){return e<t?t:e}function Tl(e){return rp(e,st())}function jl(e,t){var n=new du(e),r=new hu(n,!0,ip(t));return new fu(r,ap)}function Zc(e,t){if(!(t>=0)){var n="Requested element count "+t+" is less than zero.";throw He(O(n))}var r;return t===0?r=Hi():Z(e,di)?r=e.t(t):r=new Yr(e,t),r}function ep(e,t){return new vu(e,t)}function tp(e,t){var n;return Z(e,di)?n=e.u(t):n=new Hr(e,t),n}function np(e,t){return new pu(e,t)}function ef(e){var t=e.h();return t.i()?t.j():null}function tf(e){var t=e.h();if(!t.i())return Ra();var n=t.j();if(!t.i())return mo(n);var r=st();for(r.e(n);t.i();)r.e(t.j());return r}function rp(e,t){for(var n=e.h();n.i();){var r=n.j();t.e(r)}return t}function ip(e){return function(t){return e(t.v_1,t.w_1)}}function ap(e){return e.w_1}function Xt(e,t){return 0<=t&&t<=(j(e)-1|0)?M(e,t):null}function tc(e,t){if(!(t>=0)){var n="Requested character count "+t+" is less than zero.";throw He(O(n))}return ln(e,oa(t,j(e)),j(e))}function op(e){return sp(e,qi(j(e)))}function sp(e,t){for(var n=0;n<j(e);){var r=M(e,n);n=n+1|0,t.e(new ne(r))}return t}function lp(e){var t=e&65535;return t}function tt(e,t){return e-t|0}function up(e,t){return tt(e.x_1,t instanceof ne?t.x_1:$())}function Xi(e,t){return e-t|0}function Br(e,t){return new _r(e,t)}function Lt(e){return e}function Ke(e){return String.fromCharCode(e)}function cp(e,t){return t instanceof ne?e===t.x_1:!1}function fp(e){return e}function nf(){ws=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 ws;function hp(){return ws==null&&new nf,ws}function ne(e){hp(),this.x_1=e}i(ne).i1=function(e){return tt(this.x_1,e)};i(ne).d=function(e){return up(this,e)};i(ne).toString=function(){return Ke(this.x_1)};i(ne).equals=function(e){return cp(this.x_1,e)};i(ne).hashCode=function(){return fp(this.x_1)};function On(){}function Ne(){}function lr(){}function ur(){}function Mr(){}function dp(){}function cr(e,t){this.v1_1=e,this.w1_1=t}i(cr).x1=function(e){return vf(this.w1_1,e.w1_1)};i(cr).d=function(e){return this.x1(e instanceof cr?e:$())};i(cr).equals=function(e){return this===e};i(cr).hashCode=function(){return jp(this)};i(cr).toString=function(){return this.v1_1};function Re(e){var t=e==null?null:O(e);return t==null?"null":t}function rf(){ks=this,this.y1_1=new he(0,-2147483648),this.z1_1=new he(-1,2147483647),this.a2_1=8,this.b2_1=64}var ks;function vp(){return ks==null&&new rf,ks}function he(e,t){vp(),no.call(this),this.c2_1=e,this.d2_1=t}i(he).e2=function(e){return po(this,e)};i(he).d=function(e){return this.e2(e instanceof he?e:$())};i(he).f2=function(e){return ao(this,e)};i(he).g2=function(e){return Kp(this,e)};i(he).h2=function(){return this.i2().f2(new he(1,0))};i(he).i2=function(){return new he(~this.c2_1,~this.d2_1)};i(he).j2=function(){return this.c2_1};i(he).k2=function(){return la(this)};i(he).toString=function(){return $s(this,10)};i(he).equals=function(e){var t;return e instanceof he?t=kn(this,e):t=!1,t};i(he).hashCode=function(){return Wp(this)};i(he).valueOf=function(){return this.k2()};function af(e){for(var t=1,n=[],r=0,a=e.length;r<a;){var o=e[r];r=r+1|0;var s=t,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=pp(f);var d=h;d!=null&&(n.push(d),s=Math.max(s,d.length)),s>t&&(t=s)}return _p(t,n)}function pp(e){var t=e>>5,n=new Int32Array(t+1|0),r=e&31,a=1<<r;return n[t]=n[t]|a,n}function _p(e,t){for(var n=0,r=new Int32Array(e);n<e;){for(var a=n,o=0,s=0,l=t.length;s<l;){var c=t[s];s=s+1|0,a<c.length&&(o=o|c[a])}r[a]=o,n=n+1|0}return r}function mp(e,t){var n=t>>5;if(n>e.length)return!1;var r=t&31,a=1<<r;return!!(e[n]&a)}function fo(e,t){var n=0,r=e.length-1|0;if(n<=r)do{var a=n;n=n+1|0,e[a]=t}while(a!==r);return e}function of(e){return new ho(e)}function gp(e){var t="CharArray",n=new Uint16Array(e);return n.$type$=t,n}function ho(e){this.m2_1=e,this.l2_1=0}i(ho).i=function(){return this.l2_1!==this.m2_1.length};i(ho).j=function(){var e;if(this.l2_1!==this.m2_1.length){var t=this.l2_1;this.l2_1=t+1|0,e=this.m2_1[t]}else throw Ta(""+this.l2_1);return e};function cs(){return Pi(),sf}var sf;function lf(){return Pi(),uf}var uf;function Cs(){return Pi(),cf}var cf;function ff(){return Pi(),hf}var hf;function yp(){return Pi(),df}var df;function bp(e){return Pi(),(e|0)===e?Cf(e):(lf()[0]=e,_e(Cs()[yp()],31)+Cs()[ff()]|0)}var nc;function Pi(){nc||(nc=!0,sf=new ArrayBuffer(8),uf=new Float64Array(cs()),new Float32Array(cs()),cf=new Int32Array(cs()),lf()[0]=-1,hf=Cs()[0]!==0?1:0,df=1-ff()|0)}function M(e,t){var n;if(Pl(e)){var r=e.charCodeAt(t),a,o=0;if(r<Lt(o))a=!0;else{var s=65535;a=r>Lt(s)}if(a)throw He("Invalid Char code: "+r);n=ca(r)}else n=e.b(t);return n}function Pl(e){return typeof e=="string"}function j(e){var t;return Pl(e)?t=e.length:t=e.a(),t}function ln(e,t,n){var r;return Pl(e)?r=e.substring(t,n):r=e.c(t,n),r}function wp(e,t){var n=e,r=t;if(n===r)return!0;if(n==null||r==null||!Sf(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 kp(e){var t=e;if(t==null)return 0;var n=1,r=0,a=t.length;if(r<a)do{var o=r;r=r+1|0,n=_e(n,31)+se(t[o])|0}while(r<a);return n}function Cp(e){return Kv(e,", ","[","]",u,u,xp)}function xp(e){return O(e)}function Sp(e){var t=Ep(e),n=Np(e),r=Ip(),a=qp(),o=Ap();return $p(t,n,r,a,o)}function $p(e,t,n,r,a){var o=Q(i(xs));return new Proxy(o,{get:function(s,l,c){if(l==="length")return e();var f=typeof l,h=f==="string"||f==="number"?+l:void 0;return isNaN(h)?s[l]:t(h)},has:function(s,l){return!isNaN(l)&&l<e()},set:function(s,l,c){if(l==="length"){var f=e(),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 Rl(){throw li()}function xs(){Array.call(this)}function Ep(e){return function(){return e.m()}}function Np(e){return function(t){return e.k(t)}}function Ip(){var e=function(){return Rl(),ue};return e.callableName="UNSUPPORTED_OPERATION",e}function qp(){var e=function(){return Rl(),ue};return e.callableName="UNSUPPORTED_OPERATION",e}function Ap(){var e=function(){return Rl(),ue};return e.callableName="UNSUPPORTED_OPERATION",e}function vf(e,t){var n;switch(typeof e){case"number":var r;typeof t=="number"?r=rc(e,t):t instanceof he?r=rc(e,t.k2()):r=ic(e,t),n=r;break;case"string":case"boolean":n=ic(e,t);break;default:n=Tp(e,t);break}return n}function rc(e,t){var n;if(e<t)n=-1;else if(e>t)n=1;else if(e===t){var r;if(e!==0)r=0;else{var a=1/e,o;a===1/t?o=0:a<0?o=-1:o=1,r=o}n=r}else e!==e?n=t!==t?0:1:n=-1;return n}function ic(e,t){return e<t?-1:e>t?1:0}function Tp(e,t){return e.d(t)}function jp(e){return Ss(e)}function Ss(e){if(!("kotlinHashCodeValue$"in e)){var t=pf(),n=new Object;n.value=t,n.enumerable=!1,Object.defineProperty(e,"kotlinHashCodeValue$",n)}return e.kotlinHashCodeValue$}function pf(){return Math.random()*4294967296|0}function Q(e){return e=e===u?null:e,Object.create(e)}function H(e,t,n,r){return Object.defineProperty(e,t,{configurable:!0,get:n,set:r})}function E(e,t){if(e==null)return t==null;if(t==null)return!1;if(typeof e=="object"&&typeof e.equals=="function")return e.equals(t);if(e!==e)return t!==t;if(typeof e=="number"&&typeof t=="number"){var n;if(e===t){var r;if(e!==0)r=!0;else{var a=1/e;r=a===1/t}n=r}else n=!1;return n}return e===t}function se(e){if(e==null)return 0;var t=typeof e,n;switch(t){case"object":n=typeof e.hashCode=="function"?e.hashCode():Ss(e);break;case"function":n=Ss(e);break;case"number":n=bp(e);break;case"boolean":n=Ml(e);break;case"string":n=Ht(String(e));break;case"bigint":n=Pp(e);break;case"symbol":n=Rp(e);break;default:n=function(){throw new Error("Unexpected typeof `"+t+"`")}();break}return n}function O(e){var t;return e==null?t="null":Sf(e)?t="[...]":typeof e.toString!="function"?t=Mp(e):t=e.toString(),t}function Ml(e){return e?1231:1237}function Ht(e){var t=0,n=e.length,r=0,a=n-1|0;if(r<=a)do{var o=r;r=r+1|0;var s=e.charCodeAt(o);t=_e(t,31)+s|0}while(o!==a);return t}function Pp(e){for(var t=BigInt(32),n=BigInt(4294967295),r=e<0?-e:e,a=0,o=e<0?-1:1;r!=0;){var s=Number(r&n);a=_e(31,a)+s|0,r=r>>t}return _e(a,o)}function Rp(e){var t=Lp(e)?Op():zp(),n=t.get(e);if(n!==u)return n;var r=pf();return t.set(e,r),r}function Mp(e){return Object.prototype.toString.call(e)}function Lp(e){return Symbol.keyFor(e)!=u}function Op(){return fs===u&&(fs=new Map),fs}function zp(){return hs===u&&(hs=new WeakMap),hs}var fs,hs;function B(e,t){Error.captureStackTrace!=null?Error.captureStackTrace(e,t):e.stack=new Error().stack}function i(e){return e.prototype}function vo(e,t,n){Error.call(e),Fp(e,t,n)}function Fp(e,t,n){var r=Rf(Object.getPrototypeOf(e));if(!(r&1)){var a;if(t==null){var o;if(t!==null){var s=null;o=s==null?u:s}else o=u;a=o}else a=t;e.message=a}r&2||(e.cause=n),e.name=Object.getPrototypeOf(e).constructor.name}function At(e){var t;return e==null?Dp():t=e,t}function Dp(){throw eu()}function xr(){throw tu()}function $(){throw nu()}function Vn(){return Ie(),_f}var _f;function Ja(){return Ie(),mf}var mf;function ac(){return Ie(),gf}var gf;function Bp(){return Ie(),yf}var yf;function Tn(){return Ie(),bf}var bf;function oc(){return Ie(),wf}var wf;function po(e,t){if(Ie(),kn(e,t))return 0;var n=vn(e),r=vn(t);return n&&!r?-1:!n&&r?1:vn(sa(e,t))?-1:1}function ao(e,t){Ie();var n=e.d2_1>>>16|0,r=e.d2_1&65535,a=e.c2_1>>>16|0,o=e.c2_1&65535,s=t.d2_1>>>16|0,l=t.d2_1&65535,c=t.c2_1>>>16|0,f=t.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 he(v<<16|y,h<<16|d)}function sa(e,t){return Ie(),ao(e,t.h2())}function Sr(e,t){if(Ie(),Kr(e))return Vn();if(Kr(t))return Vn();if(kn(e,Tn()))return sc(t)?Tn():Vn();if(kn(t,Tn()))return sc(e)?Tn():Vn();if(vn(e)){var n;return vn(t)?n=Sr(Qt(e),Qt(t)):n=Qt(Sr(Qt(e),t)),n}else if(vn(t))return Qt(Sr(e,Qt(t)));if(lc(e,oc())&&lc(t,oc()))return ua(la(e)*la(t));var r=e.d2_1>>>16|0,a=e.d2_1&65535,o=e.c2_1>>>16|0,s=e.c2_1&65535,l=t.d2_1>>>16|0,c=t.d2_1&65535,f=t.c2_1>>>16|0,h=t.c2_1&65535,d=0,v=0,y=0,p=0;return p=p+_e(s,h)|0,y=y+(p>>>16|0)|0,p=p&65535,y=y+_e(o,h)|0,v=v+(y>>>16|0)|0,y=y&65535,y=y+_e(s,f)|0,v=v+(y>>>16|0)|0,y=y&65535,v=v+_e(a,h)|0,d=d+(v>>>16|0)|0,v=v&65535,v=v+_e(o,f)|0,d=d+(v>>>16|0)|0,v=v&65535,v=v+_e(s,c)|0,d=d+(v>>>16|0)|0,v=v&65535,d=d+(((_e(r,h)+_e(a,f)|0)+_e(o,c)|0)+_e(s,l)|0)|0,d=d&65535,new he(y<<16|p,d<<16|v)}function Kp(e,t){if(Ie(),Kr(t))throw nh("division by zero");if(Kr(e))return Vn();if(kn(e,Tn())){if(kn(t,Ja())||kn(t,ac()))return Tn();if(kn(t,Tn()))return Ja();var n=Hp(e,1),r=Up(n.g2(t),1);if(kn(r,Vn()))return vn(t)?Ja():ac();var a=sa(e,Sr(t,r));return ao(r,a.g2(t))}else if(kn(t,Tn()))return Vn();if(vn(e)){var o;return vn(t)?o=Qt(e).g2(Qt(t)):o=Qt(Qt(e).g2(t)),o}else if(vn(t))return Qt(e.g2(Qt(t)));for(var s=Vn(),l=e;Gp(l,t);){for(var c=la(l)/la(t),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=ua(f),y=Sr(v,t);vn(y)||Vp(y,l);)f=f-d,v=ua(f),y=Sr(v,t);Kr(v)&&(v=Ja()),s=ao(s,v),l=sa(l,y)}return s}function Up(e,t){Ie();var n=t&63;return new he(e.c2_1<<n,e.d2_1<<n|(e.c2_1>>>(32-n|0)|0))}function Hp(e,t){Ie();var n=t&63;return new he(e.c2_1>>>n|0|e.d2_1<<(32-n|0),e.d2_1>>n)}function la(e){return Ie(),e.d2_1*4294967296+Jp(e)}function $s(e,t){if(Ie(),Kr(e))return"0";if(vn(e))if(kn(e,Tn())){var n=ta(t),r=e.g2(n),a=sa(Sr(r,n),e).j2(),o=$s(r,t);return o+a.toString(t)}else return"-"+$s(Qt(e),t);for(var s=9,l=ua(Math.pow(t,s)),c=e,f="";;){var h=c.g2(l),d=sa(c,Sr(h,l)).j2(),v=d.toString(t);if(c=h,Kr(c))return v+f;for(;v.length<s;)v="0"+v;f=v+f}}function kn(e,t){return Ie(),e.d2_1===t.d2_1&&e.c2_1===t.c2_1}function Wp(e){return Ie(),e.c2_1^e.d2_1}function ta(e){return Ie(),new he(e,e<0?-1:0)}function vn(e){return Ie(),e.d2_1<0}function Kr(e){return Ie(),e.d2_1===0&&e.c2_1===0}function sc(e){return Ie(),(e.c2_1&1)===1}function Qt(e){return Ie(),e.h2()}function lc(e,t){return Ie(),po(e,t)<0}function ua(e){if(Ie(),p_(e))return Vn();if(e<=-9223372036854776e3)return Tn();if(e+1>=9223372036854776e3)return Bp();if(e<0)return Qt(ua(-e));var t=4294967296,n=e%t|0,r=e/t|0;return new he(n,r)}function Vp(e,t){return Ie(),po(e,t)>0}function Gp(e,t){return Ie(),po(e,t)>=0}function Jp(e){return Ie(),e.c2_1>=0?e.c2_1:4294967296+e.c2_1}var uc;function Ie(){uc||(uc=!0,_f=ta(0),mf=ta(1),gf=ta(-1),yf=new he(-1,2147483647),bf=new he(0,-2147483648),wf=ta(16777216))}function kf(e,t,n,r,a,o){var s=u,l=e==="interface"?Qp():u;return{kind:e,simpleName:t,associatedObjectKey:r,associatedObjects:a,suspendArity:o,$kClass$:s,defaultConstructor:n,iid:l}}function Qp(){return Yi===u&&(Yi=0),Yi=Yi+1|0,Yi}var Yi;function Ll(e,t,n,r,a,o,s,l,c){a!=null&&(t.prototype=Object.create(a.prototype),t.prototype.constructor=t);var f=kf(e,n,r,l,c,s);if(t.$metadata$=f,o!=null){var h=E(f.iid,u)?t.prototype:t;h.$imask$=af(o)}}function w(e,t,n,r,a,o,s,l){var c="class";Ll(c,e,t,n,r,a,o,s,l)}function ie(e,t,n,r,a,o,s,l){var c="object";Ll(c,e,t,n,r,a,o,s,l)}function zt(e,t,n,r,a,o,s,l){var c="interface";Ll(c,e,t,n,r,a,o,s,l)}function Sa(e,t,n,r){w(e,"Lambda",u,t,n,r,u,u)}function gt(e,t,n,r){ie(e,"Companion",u,t,n,r,u,u)}function Xp(e,t,n,r,a){return kf("class",e,t,n,r,a)}function Ii(e){var t=e.length,n=Array(t),r=0,a=t-1|0;if(r<=a)do{var o=r;r=r+1|0;var s=e[o];s!=null&&Mi(s)?n[o]=s:n[o]=[].slice.call(s)}while(o!==a);return[].concat.apply([],n)}function Cf(e){var t;return e instanceof he?t=e.j2():t=Yp(e),t}function Yp(e){var t;return e>2147483647?t=2147483647:e<-2147483648?t=-2147483648:t=e|0,t}function Zp(e){return e<<16>>16}function ca(e){var t=Cf(e),n=Zp(t);return lp(n)}function e_(e,t){return new Rr(e,t)}function t_(){return Ri(),xf}var xf;function Si(){return Ri(),Xp(u,u,u,u,u)}function $a(e,t,n,r,a){return Ri(),r.get=r,r.set=a,r.callableName=e,n_(r,r_(t,a),i_(r,n))}function n_(e,t,n){return Ri(),e.$metadata$=t,e.constructor=e,e.$imask$=n,e}function r_(e,t){return Ri(),t_()[e][t==null?0:1]}function i_(e,t){Ri();var n=e.$imask$,r;if(n==null){var a=[t];r=af(a)}else r=n;return r}var cc;function Ri(){if(!cc){cc=!0;var e=[Si(),Si()],t=[Si(),Si()];xf=[e,t,[Si(),Si()]]}}function Sf(e){return _o(e)||Lv(e)}function _o(e){return Array.isArray(e)}function Z(e,t){return a_(e,t.$metadata$.iid)}function a_(e,t){var n=e.$imask$,r;if(n==null)return!1;r=n;var a=r;return mp(a,t)}function Mi(e){var t;return _o(e)?t=!e.$type$:t=!1,t}function $f(e){var t;return typeof e=="number"?t=!0:t=e instanceof he,t}function o_(e){var t=typeof e;return t==="string"||t==="boolean"||$f(e)||Z(e,xa)}function ht(e){return typeof e=="string"||Z(e,xl)}function Ef(e){return _o(e)&&e.$type$==="BooleanArray"}function Nf(e){return e instanceof Int8Array}function If(e){return e instanceof Int16Array}function qf(e){var t;return e instanceof Uint16Array?t=e.$type$==="CharArray":t=!1,t}function Af(e){return e instanceof Int32Array}function Tf(e){return e instanceof Float32Array}function jf(e){return _o(e)&&e.$type$==="LongArray"}function Pf(e){return e instanceof Float64Array}function Rf(e){var t=e.constructor,n=t==null?null:t.$metadata$,r=n==null?null:n.errorInfo;if(r!=null)return r;var a=0;if(fc(e,"message")&&(a=a|1),fc(e,"cause")&&(a=a|2),a!==3){var o=s_(e);o!=Error.prototype&&(a=a|Rf(o))}return n!=null&&(n.errorInfo=a),a}function fc(e,t){return e.hasOwnProperty(t)}function s_(e){return Object.getPrototypeOf(e)}var u;function l_(e,t,n,r){n=n===u?0:n,r=r===u?e.length:r,cn.o2(n,r,e.length),e.fill(t,n,r)}function Es(e,t){return wp(e,t)}function Ns(e){return kp(e)}function Ol(e){return new Ge(e)}function u_(e,t){e.length>1&&Df(e,t)}function c_(e,t){if(!(t>=0)){var n="Invalid new array size: "+t+".";throw He(O(n))}return w0(e,new Int32Array(t))}function f_(e,t){if(!(t>=0)){var n="Invalid new array size: "+t+".";throw He(O(n))}return k0(e,t,null)}function zl(e){var t=(e.m()/2|0)-1|0;if(t<0)return ue;var n=Pa(e),r=0;if(r<=t)do{var a=r;r=r+1|0;var o=e.k(a);e.p2(a,e.k(n)),e.p2(n,o),n=n-1|0}while(a!==t)}function h_(e){var t=Lt(e),n=d_(hc().q2_1,t),r=t-hc().q2_1[n]|0;return r<10?r:-1}function d_(e,t){for(var n=0,r=e.length-1|0,a=-1,o=0;n<=r;)if(a=(n+r|0)/2|0,o=e[a],t>o)n=a+1|0;else{if(t===o)return a;r=a-1|0}return a-(t<o?1:0)|0}function Mf(){Is=this;var e=this;e.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 Is;function hc(){return Is==null&&new Mf,Is}function v_(e){var t=Lt(e);return(9<=t?t<=13:!1)||(28<=t?t<=32:!1)||t===160||t>4096&&(t===5760||(8192<=t?t<=8202:!1)||t===8232||t===8233||t===8239||t===8287||t===12288)}function p_(e){return e!==e}function __(e){var t;return e===0?t=0:t=1<<(31-Vc(e)|0),t}function Lf(e){return am(e)}function pn(e){var t;return e.toArray!==void 0?t=e.toArray():t=Lf(e),t}function Fl(e){return e<0&&fm(),e}function m_(e,t){g_(e,t)}function mo(e){return hm([e])}function Of(e){return _m([e])}function g_(e,t){if(e.m()<=1)return ue;var n=pn(e);Df(n,t);var r=0,a=n.length;if(r<a)do{var o=r;r=r+1|0,e.p2(o,n[o])}while(r<a)}function Pn(){hr.call(this)}i(Pn).q=function(e){this.r2();for(var t=!1,n=e.h();n.i();){var r=n.j();this.e(r)&&(t=!0)}return t};i(Pn).toJSON=function(){return this.toArray()};i(Pn).r2=function(){};function ai(e){this.u2_1=e,this.s2_1=0,this.t2_1=-1}i(ai).i=function(){return this.s2_1<this.u2_1.m()};i(ai).j=function(){if(!this.i())throw St();var e=this,t=this.s2_1;return this.s2_1=t+1|0,e.t2_1=t,this.u2_1.k(this.t2_1)};i(ai).v2=function(){if(this.t2_1===-1){var e="Call next() or previous() before removing element from the iterator.";throw jr(O(e))}this.u2_1.x2(this.t2_1),this.s2_1=this.t2_1,this.t2_1=-1};function Ea(e,t){this.b3_1=e,ai.call(this,e),cn.c3(t,this.b3_1.m()),this.s2_1=t}i(Ea).d3=function(){return this.s2_1>0};i(Ea).e3=function(){return this.s2_1};i(Ea).f3=function(){if(!this.d3())throw St();var e=this;return this.s2_1=this.s2_1-1|0,e.t2_1=this.s2_1,this.b3_1.k(this.t2_1)};function yr(e,t,n){mt.call(this),this.h3_1=e,this.i3_1=t,this.j3_1=0,cn.o2(this.i3_1,n,this.h3_1.m()),this.j3_1=n-this.i3_1|0}i(yr).k3=function(e,t){cn.c3(e,this.j3_1),this.h3_1.k3(this.i3_1+e|0,t),this.j3_1=this.j3_1+1|0};i(yr).k=function(e){return cn.l3(e,this.j3_1),this.h3_1.k(this.i3_1+e|0)};i(yr).x2=function(e){cn.l3(e,this.j3_1);var t=this.h3_1.x2(this.i3_1+e|0);return this.j3_1=this.j3_1-1|0,t};i(yr).p2=function(e,t){return cn.l3(e,this.j3_1),this.h3_1.p2(this.i3_1+e|0,t)};i(yr).m3=function(e,t){this.h3_1.m3(this.i3_1+e|0,this.i3_1+t|0),this.j3_1=this.j3_1-(t-e|0)|0};i(yr).m=function(){return this.j3_1};i(yr).r2=function(){return this.h3_1.r2()};function mt(){Pn.call(this),this.w2_1=0}i(mt).e=function(e){return this.r2(),this.k3(this.m(),e),!0};i(mt).n3=function(){this.r2(),this.m3(0,this.m())};i(mt).h=function(){return new ai(this)};i(mt).j1=function(e){return this.l1(e)>=0};i(mt).l1=function(e){var t;e:{for(var n=0,r=this.h();r.i();){var a=r.j();if(E(a,e)){t=n;break e}n=n+1|0}t=-1}return t};i(mt).m1=function(e){var t;e:{for(var n=this.o1(this.m());n.d3();){var r=n.f3();if(E(r,e)){t=n.e3();break e}}t=-1}return t};i(mt).n1=function(){return this.o1(0)};i(mt).o1=function(e){return new Ea(this,e)};i(mt).p1=function(e,t){return new yr(this,e,t)};i(mt).m3=function(e,t){var n=this.o1(e),r=t-e|0,a=0;if(a<r)do a=a+1|0,n.j(),n.v2();while(a<r)};i(mt).equals=function(e){return e===this?!0:e!=null&&Z(e,On)?cn.o3(this,e):!1};i(mt).hashCode=function(){return cn.p3(this)};function oo(){_n.call(this),this.s3_1=null,this.t3_1=null}function fr(){Pn.call(this)}i(fr).equals=function(e){return e===this?!0:e!=null&&Z(e,Mr)?lu.y3(this,e):!1};i(fr).hashCode=function(){return lu.z3(this)};function zf(e){if(!(e>=0)){var t="capacity must be non-negative.";throw He(O(t))}return fo(Array(e),null)}function dc(e,t,n){e.fill(null,t,n)}function vc(e,t){return f_(e,t)}function Ff(){qs=this;var e=this,t=qi(0);t.p_1=!0,e.a4_1=t}var qs;function y_(){return qs==null&&new Ff,qs}function b_(e){var t=[];return Ge.call(e,t),e}function st(){return b_(Q(i(Ge)))}function w_(e,t){var n=[];if(Ge.call(t,n),!(e>=0)){var r="Negative initial capacity: "+e;throw He(O(r))}return t}function qi(e){return w_(e,Q(i(Ge)))}function k_(e,t){var n=pn(e);return Ge.call(t,n),t}function Na(e){return k_(e,Q(i(Ge)))}function C_(e,t){var n=e.m();return e.o_1.length=e.m()+t|0,n}function Dl(e,t){return cn.l3(t,e.m()),t}function x_(e,t){return cn.c3(t,e.m()),t}function Ge(e){y_(),mt.call(this),this.o_1=e,this.p_1=!1}i(Ge).m=function(){return this.o_1.length};i(Ge).k=function(e){var t=this.o_1[Dl(this,e)];return t==null||t!=null?t:$()};i(Ge).p2=function(e,t){this.r2(),Dl(this,e);var n=this.o_1[e];this.o_1[e]=t;var r=n;return r==null||r!=null?r:$()};i(Ge).e=function(e){return this.r2(),this.o_1.push(e),this.w2_1=this.w2_1+1|0,!0};i(Ge).k3=function(e,t){this.r2(),this.o_1.splice(x_(this,e),0,t),this.w2_1=this.w2_1+1|0};i(Ge).q=function(e){if(this.r2(),e.l())return!1;for(var t=C_(this,e.m()),n=0,r=e.h();r.i();){var a=r.j(),o=n;n=o+1|0;var s=Fl(o);this.o_1[t+s|0]=a}return this.w2_1=this.w2_1+1|0,!0};i(Ge).x2=function(e){this.r2(),Dl(this,e),this.w2_1=this.w2_1+1|0;var t;return e===Pa(this)?t=this.o_1.pop():t=this.o_1.splice(e,1)[0],t};i(Ge).m3=function(e,t){this.r2(),this.w2_1=this.w2_1+1|0,this.o_1.splice(e,t-e|0)};i(Ge).n3=function(){this.r2();var e=this;e.o_1=[],this.w2_1=this.w2_1+1|0};i(Ge).l1=function(e){return Jc(this.o_1,e)};i(Ge).m1=function(e){return Bv(this.o_1,e)};i(Ge).toString=function(){return Cp(this.o_1)};i(Ge).b4=function(){return[].slice.call(this.o_1)};i(Ge).toArray=function(){return this.b4()};i(Ge).r2=function(){if(this.p_1)throw li()};var Xa;function Df(e,t){if(S_()){var n=E_(t);e.sort(n)}else $_(e,0,Dv(e),t)}function S_(){var e=Xa;if(e!=null)return e;Xa=!1;var t=[],n=0;if(n<600)do{var r=n;n=n+1|0,t.push(r)}while(n<600);var a=N_;t.sort(a);var o=1,s=t.length;if(o<s)do{var l=o;o=o+1|0;var c=t[l-1|0],f=t[l];if((c&3)===(f&3)&&c>=f)return!1}while(o<s);return Xa=!0,!0}function $_(e,t,n,r){var a=e.length,o=fo(Array(a),null),s=As(e,o,t,n,r);if(s!==e){var l=t;if(l<=n)do{var c=l;l=l+1|0,e[c]=s[c]}while(c!==n)}}function As(e,t,n,r,a){if(n===r)return e;var o=(n+r|0)/2|0,s=As(e,t,n,o,a),l=As(e,t,o+1|0,r,a),c=s===t?e:t,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],p=l[h];a.compare(y,p)<=0?(c[v]=y,f=f+1|0):(c[v]=p,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 E_(e){return function(t,n){return e.compare(t,n)}}function N_(e,t){return(e&3)-(t&3)|0}function Bf(e,t){return oo.call(t),Rn.call(t),t.g4_1=e,t}function Kf(e){return Bf(Ul(),e),e}function I_(){return Kf(Q(i(Rn)))}function q_(e,t,n){return Bf(Gf(e,t),n),n}function A_(e,t){return q_(e,1,t),t}i(Rn).s1=function(e){return this.g4_1.i4(e)};i(Rn).u1=function(){var e=this.h4_1,t;if(e==null){var n=new Bl(this.g4_1);this.h4_1=n,t=n}else t=e;return t};i(Rn).t1=function(e){return this.g4_1.t1(e)};i(Rn).u3=function(e,t){return this.g4_1.u3(e,t)};i(Rn).m=function(){return this.g4_1.m()};function Rn(){this.h4_1=null}function Bl(e){mn.call(this,e)}i(Bl).h=function(){return this.k4_1.l4()};function mn(e){fr.call(this),this.k4_1=e}i(mn).m=function(){return this.k4_1.m()};i(mn).l=function(){return this.k4_1.m()===0};i(mn).m4=function(e){return this.k4_1.o4(e)};i(mn).j1=function(e){return e!=null&&Z(e,lr)?this.m4(e!=null&&Z(e,lr)?e:$()):!1};i(mn).n4=function(e){throw li()};i(mn).e=function(e){return this.n4(e!=null&&Z(e,lr)?e:$())};i(mn).q=function(e){throw li()};i(mn).k1=function(e){return this.k4_1.p4(e)};i(mn).r2=function(){return this.k4_1.q4()};function Kl(e,t){return fr.call(t),Sn.call(t),t.r4_1=e,t}function Uf(e){return Kl(Ul(),e),e}function T_(){return Uf(Q(i(Sn)))}function j_(e,t){Kl(L_(e.m()),t);for(var n=e.h();n.i();){var r=n.j();t.r4_1.u3(r,!0)}return t}function Hf(e,t,n){return Kl(Gf(e,t),n),n}function P_(e,t){return Hf(e,1,t),t}function R_(e){return P_(e,Q(i(Sn)))}i(Sn).e=function(e){return this.r4_1.u3(e,!0)==null};i(Sn).j1=function(e){return this.r4_1.i4(e)};i(Sn).l=function(){return this.r4_1.m()===0};i(Sn).h=function(){return this.r4_1.s4()};i(Sn).m=function(){return this.r4_1.m()};function Sn(){}function Wf(e,t){return __(_e(io(t,1),3))}function Vf(e,t){return Vc(t)+1|0}function M_(e){return Hl(8,e),e}function Ul(){return M_(Q(i(xt)))}function Hl(e,t){return xt.call(t,zf(e),null,new Int32Array(e),new Int32Array(Wf(Ia,e)),2,0),t}function L_(e){return Hl(e,Q(i(xt)))}function O_(e,t,n){return Hl(e,n),n}function Gf(e,t){return O_(e,t,Q(i(xt)))}function Ai(e){return e.t4_1.length}function jn(e){return e.w4_1.length}function Jf(e){e.a5_1=e.a5_1+1|0}function z_(e,t){F_(e,t)?Vl(e,jn(e)):D_(e,e.y4_1+t|0)}function F_(e,t){var n=Ai(e)-e.y4_1|0,r=e.y4_1-e.m()|0;return n<t&&(r+n|0)>=t&&r>=(Ai(e)/4|0)}function D_(e,t){if(t<0)throw uh("too many elements");if(t>Ai(e)){var n=cn.d5(Ai(e),t);e.t4_1=vc(e.t4_1,n);var r=e,a=e.u4_1;r.u4_1=a==null?null:vc(a,n),e.v4_1=c_(e.v4_1,n);var o=Wf(Ia,n);o>jn(e)&&Vl(e,o)}}function B_(e){var t=e.u4_1;if(t!=null)return t;var n=zf(Ai(e));return e.u4_1=n,n}function Wl(e,t){return t==null?0:_e(se(t),-1640531527)>>>e.z4_1|0}function K_(e){for(var t=0,n=0,r=e.u4_1;t<e.y4_1;)e.v4_1[t]>=0&&(e.t4_1[n]=e.t4_1[t],r!=null&&(r[n]=r[t]),n=n+1|0),t=t+1|0;dc(e.t4_1,n,e.y4_1),r==null||dc(r,n,e.y4_1),e.y4_1=n}function Vl(e,t){Jf(e),e.y4_1>e.b5_1&&K_(e),t!==jn(e)?(e.w4_1=new Int32Array(t),e.z4_1=Vf(Ia,t)):l_(e.w4_1,0,0,jn(e));for(var n=0;n<e.y4_1;){var r=n;if(n=r+1|0,!U_(e,r))throw jr("This cannot happen with fixed magic multiplier and grow-only hash array. Have object hashCodes changed?")}}function U_(e,t){for(var n=Wl(e,e.t4_1[t]),r=e.x4_1;;){var a=e.w4_1[n];if(a===0)return e.w4_1[n]=t+1|0,e.v4_1[t]=n,!0;if(r=r-1|0,r<0)return!1;var o=n;n=o-1|0,o===0&&(n=jn(e)-1|0)}}function Gl(e,t){for(var n=Wl(e,t),r=e.x4_1;;){var a=e.w4_1[n];if(a===0)return-1;if(a>0&&E(e.t4_1[a-1|0],t))return a-1|0;if(r=r-1|0,r<0)return-1;var o=n;n=o-1|0,o===0&&(n=jn(e)-1|0)}}function H_(e,t){e.q4();e:for(;;)for(var n=Wl(e,t),r=oa(_e(e.x4_1,2),jn(e)/2|0),a=0;;){var o=e.w4_1[n];if(o<=0){if(e.y4_1>=Ai(e)){z_(e,1);continue e}var s=e.y4_1;e.y4_1=s+1|0;var l=s;return e.t4_1[l]=t,e.v4_1[l]=n,e.w4_1[n]=l+1|0,e.b5_1=e.b5_1+1|0,Jf(e),a>e.x4_1&&(e.x4_1=a),l}if(E(e.t4_1[o-1|0],t))return-o|0;if(a=a+1|0,a>r){Vl(e,_e(jn(e),2));continue e}var c=n;n=c-1|0,c===0&&(n=jn(e)-1|0)}}function W_(e,t){return e.b5_1===t.m()&&e.p4(t.u1())}function Qf(){this.e5_1=-1640531527,this.f5_1=8,this.g5_1=2,this.h5_1=-1}var Ia;function Lr(e){this.i5_1=e,this.j5_1=0,this.k5_1=-1,this.l5_1=this.i5_1.a5_1,this.m5()}i(Lr).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(Lr).i=function(){return this.j5_1<this.i5_1.y4_1};i(Lr).n5=function(){if(this.i5_1.a5_1!==this.l5_1)throw Zl()};function Jl(e){Lr.call(this,e)}i(Jl).j=function(){if(this.n5(),this.j5_1>=this.i5_1.y4_1)throw St();var e=this,t=this.j5_1;this.j5_1=t+1|0,e.k5_1=t;var n=this.i5_1.t4_1[this.k5_1];return this.m5(),n};function qa(e){Lr.call(this,e)}i(qa).j=function(){if(this.n5(),this.j5_1>=this.i5_1.y4_1)throw St();var e=this,t=this.j5_1;this.j5_1=t+1|0,e.k5_1=t;var n=new oi(this.i5_1,this.k5_1);return this.m5(),n};i(qa).w5=function(){if(this.j5_1>=this.i5_1.y4_1)throw St();var e=this,t=this.j5_1;this.j5_1=t+1|0,e.k5_1=t;var n=this.i5_1.t4_1[this.k5_1],r=n==null?null:se(n),a=r==null?0:r,o=At(this.i5_1.u4_1)[this.k5_1],s=o==null?null:se(o),l=a^(s==null?0:s);return this.m5(),l};i(qa).x5=function(e){if(this.j5_1>=this.i5_1.y4_1)throw St();var t=this,n=this.j5_1;this.j5_1=n+1|0,t.k5_1=n;var r=this.i5_1.t4_1[this.k5_1];E(r,this.i5_1)?e.a6("(this Map)"):e.z5(r),e.b6(61);var a=At(this.i5_1.u4_1)[this.k5_1];E(a,this.i5_1)?e.a6("(this Map)"):e.z5(a),this.m5()};function oi(e,t){this.c6_1=e,this.d6_1=t}i(oi).q1=function(){return this.c6_1.t4_1[this.d6_1]};i(oi).r1=function(){return At(this.c6_1.u4_1)[this.d6_1]};i(oi).equals=function(e){var t,n;return e!=null&&Z(e,lr)?n=E(e.q1(),this.q1()):n=!1,n?t=E(e.r1(),this.r1()):t=!1,t};i(oi).hashCode=function(){var e=this.q1(),t=e==null?null:se(e),n=t==null?0:t,r=this.r1(),a=r==null?null:se(r);return n^(a==null?0:a)};i(oi).toString=function(){return Re(this.q1())+"="+Re(this.r1())};function xt(e,t,n,r,a,o){this.t4_1=e,this.u4_1=t,this.v4_1=n,this.w4_1=r,this.x4_1=a,this.y4_1=o,this.z4_1=Vf(Ia,jn(this)),this.a5_1=0,this.b5_1=0,this.c5_1=!1}i(xt).m=function(){return this.b5_1};i(xt).t1=function(e){var t=Gl(this,e);return t<0?null:At(this.u4_1)[t]};i(xt).i4=function(e){return Gl(this,e)>=0};i(xt).u3=function(e,t){var n=H_(this,e),r=B_(this);if(n<0){var a=r[(-n|0)-1|0];return r[(-n|0)-1|0]=t,a}else return r[n]=t,null};i(xt).equals=function(e){var t;if(e===this)t=!0;else{var n;e!=null&&Z(e,ur)?n=W_(this,e):n=!1,t=n}return t};i(xt).hashCode=function(){for(var e=0,t=this.l4();t.i();)e=e+t.w5()|0;return e};i(xt).toString=function(){var e=gh(2+_e(this.b5_1,3)|0);e.a6("{");for(var t=0,n=this.l4();n.i();)t>0&&e.a6(", "),n.x5(e),t=t+1|0;return e.a6("}"),e.toString()};i(xt).q4=function(){if(this.c5_1)throw li()};i(xt).o4=function(e){var t=Gl(this,e.q1());return t<0?!1:E(At(this.u4_1)[t],e.r1())};i(xt).e6=function(e){return this.o4(Z(e,lr)?e:$())};i(xt).s4=function(){return new Jl(this)};i(xt).l4=function(){return new qa(this)};function Xf(){}function V_(e){return Kf(e),Aa.call(e),e}function Yf(){return V_(Q(i(Aa)))}function G_(e,t){return A_(e,t),Aa.call(t),t}function J_(e){return G_(e,Q(i(Aa)))}function Aa(){}function Q_(e){return Uf(e),Or.call(e),e}function Ql(){return Q_(Q(i(Or)))}function X_(e,t){return j_(e,t),Or.call(t),t}function Y_(e){return X_(e,Q(i(Or)))}function Z_(e,t,n){return Hf(e,t,n),Or.call(n),n}function e0(e,t){return Z_(e,1,t),t}function t0(e){return e0(e,Q(i(Or)))}i(Or).r2=function(){return this.r4_1.q4()};function Or(){}function Tt(e){fa.call(this),this.h6_1=e,this.i6_1=0,this.j6_1=0,this.k6_1=null,this.l6_1=null,this.m6_1=null;var t=this,n=this.h6_1;t.n6_1=n==null?null:n.o6()}i(Tt).o6=function(){return At(this.n6_1)};i(Tt).p6=function(e){var t=this,n;if(Am(e))n=null;else{var r=e;n=r==null||r!=null?r:$()}for(var a=n,o=Tm(e);;){var s=t;o==null?s.k6_1=a:(s.i6_1=s.j6_1,s.l6_1=o);try{var l=s.q6();if(l===pr())return ue;a=l,o=null}catch(p){var c=p;a=null,o=c}s.s6();var f=At(s.h6_1);if(f instanceof Tt)t=f;else{if(o!=null){var h=At(o),d=Pm(h);f.t6(d)}else{var v=a,y=v;f.t6(y)}return ue}}};i(Tt).t6=function(e){return this.p6(e)};function Li(){}i(Li).o6=function(){var e="This continuation is already complete";throw jr(O(e))};i(Li).p6=function(e){var t="This continuation is already complete";throw jr(O(t))};i(Li).t6=function(e){return this.p6(e)};i(Li).toString=function(){return"This continuation is already complete"};var Zf;function fa(){this.r6_1=null}i(fa).s6=function(){var e=this.r6_1;e!=null&&e!==this&&At(this.o6().u6(Ph)).v6(e),this.r6_1=Zf};function n0(e,t,n){return new Xl(n,e,t,n)}function Xl(e,t,n,r){this.e7_1=t,this.f7_1=n,this.g7_1=r,Tt.call(this,Z(e,Wi)?e:$())}i(Xl).q6=function(){if(this.l6_1!=null)throw this.l6_1;var e=this.e7_1;return typeof e=="function"?e(this.f7_1,this.g7_1):this.e7_1.h7(this.f7_1,this.g7_1)};function eh(e){return vo(e),gn.call(e),e}function th(){var e=eh(Q(i(gn)));return B(e,th),e}function go(e,t){return vo(t,e),gn.call(t),t}function nh(e){var t=go(e,Q(i(gn)));return B(t,nh),t}function gn(){B(this,gn)}function rh(e){return $n(e),si.call(e),e}function ih(){var e=rh(Q(i(si)));return B(e,ih),e}function ah(e,t){return ui(e,t),si.call(t),t}function He(e){var t=ah(e,Q(i(si)));return B(t,He),t}function si(){B(this,si)}function r0(e){return $n(e),Oi.call(e),e}function Yl(){var e=r0(Q(i(Oi)));return B(e,Yl),e}function i0(e,t){return ui(e,t),Oi.call(t),t}function Mn(e){var t=i0(e,Q(i(Oi)));return B(t,Mn),t}function Oi(){B(this,Oi)}function a0(e){return $n(e),zi.call(e),e}function oh(){var e=a0(Q(i(zi)));return B(e,oh),e}function o0(e,t){return ui(e,t),zi.call(t),t}function jr(e){var t=o0(e,Q(i(zi)));return B(t,jr),t}function zi(){B(this,zi)}function s0(e){return $n(e),Fi.call(e),e}function li(){var e=s0(Q(i(Fi)));return B(e,li),e}function l0(e,t){return ui(e,t),Fi.call(t),t}function sh(e){var t=l0(e,Q(i(Fi)));return B(t,sh),t}function Fi(){B(this,Fi)}function $n(e){return eh(e),Ft.call(e),e}function lh(){var e=$n(Q(i(Ft)));return B(e,lh),e}function ui(e,t){return go(e,t),Ft.call(t),t}function uh(e){var t=ui(e,Q(i(Ft)));return B(t,uh),t}function Ft(){B(this,Ft)}function u0(e){return $n(e),Di.call(e),e}function St(){var e=u0(Q(i(Di)));return B(e,St),e}function c0(e,t){return ui(e,t),Di.call(t),t}function Ta(e){var t=c0(e,Q(i(Di)));return B(t,Ta),t}function Di(){B(this,Di)}function f0(e){return vo(e),Bi.call(e),e}function ch(){var e=f0(Q(i(Bi)));return B(e,ch),e}function h0(e,t){return vo(t,e),Bi.call(t),t}function Bi(){B(this,Bi)}function d0(e){return rh(e),ci.call(e),e}function fh(){var e=d0(Q(i(ci)));return B(e,fh),e}function v0(e,t){return ah(e,t),ci.call(t),t}function hh(e){var t=v0(e,Q(i(ci)));return B(t,hh),t}function ci(){B(this,ci)}function p0(e){return $n(e),Ki.call(e),e}function dh(){var e=p0(Q(i(Ki)));return B(e,dh),e}function _0(e,t){return ui(e,t),Ki.call(t),t}function vh(e){var t=_0(e,Q(i(Ki)));return B(t,vh),t}function Ki(){B(this,Ki)}function m0(e){return $n(e),yo.call(e),e}function Zl(){var e=m0(Q(i(yo)));return B(e,Zl),e}function yo(){B(this,yo)}function g0(e){return $n(e),bo.call(e),e}function eu(){var e=g0(Q(i(bo)));return B(e,eu),e}function bo(){B(this,bo)}function y0(e){return $n(e),wo.call(e),e}function tu(){var e=y0(Q(i(wo)));return B(e,tu),e}function wo(){B(this,wo)}function b0(e){return $n(e),ko.call(e),e}function nu(){var e=b0(Q(i(ko)));return B(e,nu),e}function ko(){B(this,ko)}function ha(e){return new Da(e)}function w0(e,t){for(var n=e.length,r=t.length,a=0,o=t;a<n&&a<r;){var s=a,l=a;a=l+1|0,o[s]=e[l]}return t}function k0(e,t,n){var r=e.slice(0,t);e.$type$!==void 0&&(r.$type$=e.$type$);var a=e.length;if(t>a)for(r.length=t;a<t;){var o=a;a=o+1|0,r[o]=n}return r}function da(){}function un(e){this.l7_1=e}i(un).m7=function(){return this.l7_1};i(un).equals=function(e){var t;return e instanceof fi||e instanceof Ti?t=!1:e instanceof un?t=E(this.m7(),e.m7()):t=!1,t};i(un).hashCode=function(){var e=this.k7(),t=e==null?null:Ht(e);return t==null?0:t};i(un).toString=function(){return"class "+this.k7()};function fi(){Ts=this,un.call(this,Object),this.o7_1="Nothing"}i(fi).k7=function(){return this.o7_1};i(fi).m7=function(){throw sh("There's no native JS class for Nothing type")};i(fi).equals=function(e){return e===this};i(fi).hashCode=function(){return 0};var Ts;function ph(){return Ts==null&&new fi,Ts}function Ti(){}i(Ti).equals=function(e){return e===this};i(Ti).hashCode=function(){return 0};function Pe(e,t,n){un.call(this,e),this.q7_1=t,this.r7_1=n}i(Pe).equals=function(e){return e instanceof Pe?i(un).equals.call(this,e)&&this.q7_1===e.q7_1:!1};i(Pe).k7=function(){return this.q7_1};function so(e){un.call(this,e);var t=this,n=e.$metadata$;t.t7_1=n==null?null:n.simpleName}i(so).k7=function(){return this.t7_1};function Co(){}function ru(){}function pc(){return K0(),_h}var _h;function C0(e){return e!=null}function x0(e){return $f(e)}function S0(e){return e!=null?typeof e=="boolean":!1}function $0(e){return e!=null?typeof e=="number":!1}function E0(e){return e!=null?typeof e=="number":!1}function N0(e){return e!=null?typeof e=="number":!1}function I0(e){return e!=null?typeof e=="number":!1}function q0(e){return e!=null?typeof e=="number":!1}function A0(e){return e!=null?Mi(e):!1}function T0(e){return e!=null?typeof e=="string":!1}function j0(e){return e instanceof Error}function P0(e){return e!=null?Ef(e):!1}function R0(e){return e!=null?qf(e):!1}function M0(e){return e!=null?Nf(e):!1}function L0(e){return e!=null?If(e):!1}function O0(e){return e!=null?Af(e):!1}function z0(e){return e!=null?jf(e):!1}function F0(e){return e!=null?Tf(e):!1}function D0(e){return e!=null?Pf(e):!1}function B0(e){return function(t){var n;return typeof t=="function"?n=t.length===e:n=!1,n}}function Je(){js=this;var e=this,t=Object;e.anyClass=new Pe(t,"Any",C0);var n=this,r=Number;n.numberClass=new Pe(r,"Number",x0),this.nothingClass=ph();var a=this,o=Boolean;a.booleanClass=new Pe(o,"Boolean",S0);var s=this,l=Number;s.byteClass=new Pe(l,"Byte",$0);var c=this,f=Number;c.shortClass=new Pe(f,"Short",E0);var h=this,d=Number;h.intClass=new Pe(d,"Int",N0);var v=this,y=Number;v.floatClass=new Pe(y,"Float",I0);var p=this,m=Number;p.doubleClass=new Pe(m,"Double",q0);var g=this,_=Array;g.arrayClass=new Pe(_,"Array",A0);var C=this,k=String;C.stringClass=new Pe(k,"String",T0);var x=this,N=Error;x.throwableClass=new Pe(N,"Throwable",j0);var z=this,G=Array;z.booleanArrayClass=new Pe(G,"BooleanArray",P0);var K=this,re=Uint16Array;K.charArrayClass=new Pe(re,"CharArray",R0);var V=this,je=Int8Array;V.byteArrayClass=new Pe(je,"ByteArray",M0);var Ce=this,be=Int16Array;Ce.shortArrayClass=new Pe(be,"ShortArray",L0);var ve=this,xe=Int32Array;ve.intArrayClass=new Pe(xe,"IntArray",O0);var Le=this,et=Array;Le.longArrayClass=new Pe(et,"LongArray",z0);var pe=this,bt=Float32Array;pe.floatArrayClass=new Pe(bt,"FloatArray",F0);var Pt=this,Gt=Float64Array;Pt.doubleArrayClass=new Pe(Gt,"DoubleArray",D0)}i(Je).u7=function(){return this.anyClass};i(Je).v7=function(){return this.numberClass};i(Je).w7=function(){return this.nothingClass};i(Je).x7=function(){return this.booleanClass};i(Je).y7=function(){return this.byteClass};i(Je).z7=function(){return this.shortClass};i(Je).a8=function(){return this.intClass};i(Je).b8=function(){return this.floatClass};i(Je).c8=function(){return this.doubleClass};i(Je).d8=function(){return this.arrayClass};i(Je).e8=function(){return this.stringClass};i(Je).f8=function(){return this.throwableClass};i(Je).g8=function(){return this.booleanArrayClass};i(Je).h8=function(){return this.charArrayClass};i(Je).i8=function(){return this.byteArrayClass};i(Je).j8=function(){return this.shortArrayClass};i(Je).k8=function(){return this.intArrayClass};i(Je).l8=function(){return this.longArrayClass};i(Je).m8=function(){return this.floatArrayClass};i(Je).n8=function(){return this.doubleArrayClass};i(Je).functionClass=function(e){var t=pc()[e],n;if(t==null){var r=Function,a="Function"+e,o=new Pe(r,a,B0(e));pc()[e]=o,n=o}else n=t;return n};var js;function Et(){return js==null&&new Je,js}var _c;function K0(){_c||(_c=!0,_h=fo(Array(0),null))}function U0(e){var t;return Array.isArray(e)?t=H0(e):t=iu(e),t}function H0(e){var t;switch(e.length){case 1:t=iu(e[0]);break;case 0:t=ph();break;default:t=new Ti;break}return t}function iu(e){if(e===String)return Et().stringClass;var t=e.$metadata$,n;if(t!=null){var r;if(t.$kClass$==null){var a=new so(e);t.$kClass$=a,r=a}else r=t.$kClass$;n=r}else n=new so(e);return n}function lo(e){var t;switch(typeof e){case"string":t=Et().stringClass;break;case"number":var n;(e|0)===e?n=Et().intClass:n=Et().doubleClass,t=n;break;case"boolean":t=Et().booleanClass;break;case"function":var r=Et();t=r.functionClass(e.length);break;default:var a;if(Ef(e))a=Et().booleanArrayClass;else if(qf(e))a=Et().charArrayClass;else if(Nf(e))a=Et().byteArrayClass;else if(If(e))a=Et().shortArrayClass;else if(Af(e))a=Et().intArrayClass;else if(jf(e))a=Et().longArrayClass;else if(Tf(e))a=Et().floatArrayClass;else if(Pf(e))a=Et().doubleArrayClass;else if(Z(e,da))a=U0(da);else if(Mi(e))a=Et().arrayClass;else{var o=Object.getPrototypeOf(e).constructor,s;if(o===Object)s=Et().anyClass;else if(o===Error)s=Et().throwableClass;else{var l=o;s=iu(l)}a=s}t=a;break}return t}function mh(e){e.lastIndex=0}function W0(e,t){return yh(t),t}function gh(e){return W0(e,Q(i(yn)))}function yh(e){return yn.call(e,""),e}function au(){return yh(Q(i(yn)))}function yn(e){this.y5_1=e!==void 0?e:""}i(yn).a=function(){return this.y5_1.length};i(yn).b=function(e){var t=this.y5_1,n;if(0<=e&&e<=(j(t)-1|0))n=M(t,e);else throw Mn("index: "+e+", length: "+this.a()+"}");return n};i(yn).c=function(e,t){return this.y5_1.substring(e,t)};i(yn).b6=function(e){return this.y5_1=this.y5_1+Ke(e),this};i(yn).f=function(e){return this.y5_1=this.y5_1+Re(e),this};i(yn).z5=function(e){return this.y5_1=this.y5_1+Re(e),this};i(yn).a6=function(e){var t=this,n=this.y5_1;return t.y5_1=n+(e==null?"null":e),this};i(yn).toString=function(){return this.y5_1};function mc(e){var t=Ke(e).toUpperCase();return t.length>1?e:M(t,0)}function bh(e){return v_(e)}function gc(e,t){return e.toString(wh(t))}function wh(e){if(!(2<=e&&e<=36))throw He("radix "+e+" was not in valid range 2..36");return e}function V0(e){var t=Bh(e),n;return t==null?Kh(e):n=t,n}function yc(e,t){var n=gu(e,t),r;return n==null?Kh(e):r=n,r}function G0(e,t){var n=tt(e,48)>=0&&tt(e,57)<=0?Xi(e,48):tt(e,65)>=0&&tt(e,90)<=0?Xi(e,65)+10|0:tt(e,97)>=0&&tt(e,122)<=0?Xi(e,97)+10|0:tt(e,128)<0?-1:tt(e,65313)>=0&&tt(e,65338)<=0?Xi(e,65313)+10|0:tt(e,65345)>=0&&tt(e,65370)<=0?Xi(e,65345)+10|0:h_(e);return n>=t?-1:n}function J0(e,t){return ja.call(t,e,_u()),t}function Q0(e){return J0(e,Q(i(ja)))}function kh(){Ps=this,this.o8_1=new RegExp("[\\\\^$*+?.()|[\\]{}]","g"),this.p8_1=new RegExp("[\\\\$]","g"),this.q8_1=new RegExp("\\$","g")}var Ps;function X0(){return Ps==null&&new kh,Ps}function ja(e,t){X0(),this.r8_1=e,this.s8_1=Yv(t),this.t8_1=new RegExp(e,Y0(t,"gu")),this.u8_1=null,this.v8_1=null}i(ja).w8=function(e){mh(this.t8_1);var t=this.t8_1.exec(O(e));return t!=null&&t.index===0&&this.t8_1.lastIndex===j(e)};i(ja).toString=function(){return this.t8_1.toString()};function Y0(e,t){return Cn(e,"",t,u,u,u,Z0)}function Z0(e){return e.z8_1}function em(e,t){return qm(e,t)}function ou(e){this.a9_1=e}i(ou).b9=function(e,t){return this.a9_1(e,t)};i(ou).compare=function(e,t){return this.b9(e,t)};function su(e,t,n){return n=n===u?!1:n,n?xo(e,0,t,0,t.length,n):e.startsWith(t,0)}function Ch(e,t,n){return n=n===u?!1:n,n?xo(e,e.length-t.length|0,t,0,t.length,n):e.endsWith(t)}function tm(e,t,n,r){return r=r===u?!1:r,r?xo(e,n,t,0,t.length,r):e.startsWith(t,n)}function xo(e,t,n,r,a,o){return o=o===u?!1:o,Fa(e,t,n,r,a,o)}function nm(e){return function(t){return t===e?"(this Collection)":Re(t)}}function hr(){}i(hr).j1=function(e){var t;e:{var n;if(Z(this,Ne)?n=this.l():n=!1,n){t=!1;break e}for(var r=this.h();r.i();){var a=r.j();if(E(a,e)){t=!0;break e}}t=!1}return t};i(hr).k1=function(e){var t;e:{var n;if(Z(e,Ne)?n=e.l():n=!1,n){t=!0;break e}for(var r=e.h();r.i();){var a=r.j();if(!this.j1(a)){t=!1;break e}}t=!0}return t};i(hr).l=function(){return this.m()===0};i(hr).toString=function(){return Cn(this,", ","[","]",u,u,nm(this))};i(hr).toArray=function(){return Lf(this)};function zr(){this.n2_1=2147483639}i(zr).l3=function(e,t){if(e<0||e>=t)throw Mn("index: "+e+", size: "+t)};i(zr).c3=function(e,t){if(e<0||e>t)throw Mn("index: "+e+", size: "+t)};i(zr).o2=function(e,t,n){if(e<0||t>n)throw Mn("fromIndex: "+e+", toIndex: "+t+", size: "+n);if(e>t)throw He("fromIndex: "+e+" > toIndex: "+t)};i(zr).d5=function(e,t){var n=e+(e>>1)|0;return(n-t|0)<0&&(n=t),(n-2147483639|0)>0&&(n=t>2147483639?2147483647:2147483639),n};i(zr).p3=function(e){for(var t=1,n=e.h();n.i();){var r=n.j(),a=_e(31,t),o=r==null?null:se(r);t=a+(o==null?0:o)|0}return t};i(zr).o3=function(e,t){if(e.m()!==t.m())return!1;for(var n=t.h(),r=e.h();r.i();){var a=r.j(),o=n.j();if(!E(a,o))return!1}return!0};var cn;function bc(e,t){return t===e?"(this Map)":Re(t)}function xh(e,t){var n;e:{for(var r=e.u1().h();r.i();){var a=r.j();if(E(a.q1(),t)){n=a;break e}}n=null}return n}function rm(){}function im(e){return function(t){return e.c9(t)}}function _n(){this.v3_1=null,this.w3_1=null}i(_n).s1=function(e){return xh(this,e)!=null};i(_n).x3=function(e){if(!(e!=null&&Z(e,lr)))return!1;var t=e.q1(),n=e.r1(),r=(Z(this,ur)?this:$()).t1(t);if(!E(n,r))return!1;var a;return r==null?a=!(Z(this,ur)?this:$()).s1(t):a=!1,!a};i(_n).equals=function(e){if(e===this)return!0;if(!(e!=null&&Z(e,ur))||this.m()!==e.m())return!1;var t;e:{var n=e.u1(),r;if(Z(n,Ne)?r=n.l():r=!1,r){t=!0;break e}for(var a=n.h();a.i();){var o=a.j();if(!this.x3(o)){t=!1;break e}}t=!0}return t};i(_n).t1=function(e){var t=xh(this,e);return t==null?null:t.r1()};i(_n).hashCode=function(){return se(this.u1())};i(_n).m=function(){return this.u1().m()};i(_n).toString=function(){var e=this.u1();return Cn(e,", ","{","}",u,u,im(this))};i(_n).c9=function(e){return bc(this,e.q1())+"="+bc(this,e.r1())};function So(){}i(So).z3=function(e){for(var t=0,n=e.h();n.i();){var r=n.j(),a=t,o=r==null?null:se(r);t=a+(o==null?0:o)|0}return t};i(So).y3=function(e,t){return e.m()!==t.m()?!1:e.k1(t)};var lu;function am(e){if(e.l())return[];for(var t=e.m(),n=fo(Array(t),null),r=e.h(),a=0;r.i();){var o=a;a=o+1|0,n[o]=r.j()}return n}function uu(e){return e.length>0?Ol(e):Ra()}function Sh(e){return e.length===0?st():Na(new zn(e,!0))}function Pa(e){return e.m()-1|0}function om(e,t,n,r){n=n===u?0:n,r=r===u?e.m():r,lm(e.m(),n,r);for(var a=n,o=r-1|0;a<=o;){var s=(a+o|0)>>>1|0,l=e.k(s),c=Lo(l,t);if(c<0)a=s+1|0;else if(c>0)o=s-1|0;else return s}return-(a+1|0)|0}function Ra(){return um()}function sm(e){switch(e.m()){case 0:return Ra();case 1:return mo(e.k(0));default:return e}}function zn(e,t){this.d9_1=e,this.e9_1=t}i(zn).m=function(){return this.d9_1.length};i(zn).l=function(){return this.d9_1.length===0};i(zn).f9=function(e){return bs(this.d9_1,e)};i(zn).g9=function(e){var t;e:{var n;if(Z(e,Ne)?n=e.l():n=!1,n){t=!0;break e}for(var r=e.h();r.i();){var a=r.j();if(!this.f9(a)){t=!1;break e}}t=!0}return t};i(zn).k1=function(e){return this.g9(e)};i(zn).h=function(){return of(this.d9_1)};function lm(e,t,n){if(t>n)throw He("fromIndex ("+t+") is greater than toIndex ("+n+").");if(t<0)throw Mn("fromIndex ("+t+") is less than zero.");if(n>e)throw Mn("toIndex ("+n+") is greater than size ("+e+").")}function lt(){Rs=this,this.h9_1=new he(-1478467534,-1720727600)}i(lt).equals=function(e){var t;return e!=null&&Z(e,On)?t=e.l():t=!1,t};i(lt).hashCode=function(){return 1};i(lt).toString=function(){return"[]"};i(lt).m=function(){return 0};i(lt).l=function(){return!0};i(lt).i9=function(e){return!1};i(lt).j1=function(e){return!1};i(lt).j9=function(e){return e.l()};i(lt).k1=function(e){return this.j9(e)};i(lt).k=function(e){throw Mn("Empty list doesn't contain element at index "+e+".")};i(lt).k9=function(e){return-1};i(lt).l1=function(e){return-1};i(lt).l9=function(e){return-1};i(lt).m1=function(e){return-1};i(lt).h=function(){return Ui};i(lt).n1=function(){return Ui};i(lt).o1=function(e){if(e!==0)throw Mn("Index: "+e);return Ui};i(lt).p1=function(e,t){if(e===0&&t===0)return this;throw Mn("fromIndex: "+e+", toIndex: "+t)};var Rs;function um(){return Rs==null&&new lt,Rs}function hi(){}i(hi).i=function(){return!1};i(hi).d3=function(){return!1};i(hi).e3=function(){return 0};i(hi).j=function(){throw St()};i(hi).f3=function(){throw St()};var Ui;function cm(e){return new zn(e,!1)}function fm(){throw vh("Index overflow has happened.")}function hm(e){return e.length===0?st():Na(new zn(e,!0))}function Ur(e,t){this.v_1=e,this.w_1=t}i(Ur).toString=function(){return"IndexedValue(index="+this.v_1+", value="+Re(this.w_1)+")"};i(Ur).hashCode=function(){var e=this.v_1;return e=_e(e,31)+(this.w_1==null?0:se(this.w_1))|0,e};i(Ur).equals=function(e){if(this===e)return!0;if(!(e instanceof Ur))return!1;var t=e instanceof Ur?e:$();return!(this.v_1!==t.v_1||!E(this.w_1,t.w_1))};function Ms(e,t){var n;return Z(e,Ne)?n=e.m():n=t,n}function dm(e,t){return e.q(Ol(t))}function $o(e,t){if(Z(t,Ne))return e.q(t);for(var n=!1,r=t.h();r.i();){var a=r.j();e.e(a)&&(n=!0)}return n}function Eo(){}i(Eo).j=function(){return this.m9()};function Ma(){}i(Ma).n9=function(){return this.o9()};i(Ma).j=function(){return new ne(this.n9())};function La(e){return new cu(e)}function dr(){}function vm(e){var t=new vr;return t.t9_1=n0(e,t,t),t}function pm(e){if(e.i())return e.j();throw St()}function $h(e){switch(e.q9_1){case 4:return St();case 5:return jr("Iterator has failed.");default:return jr("Unexpected state of the iterator: "+e.q9_1)}}function vr(){dr.call(this),this.q9_1=0,this.r9_1=null,this.s9_1=null,this.t9_1=null}i(vr).i=function(){for(;;){switch(this.q9_1){case 0:break;case 1:if(At(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 $h(this)}this.q9_1=5;var e=At(this.t9_1);this.t9_1=null;var t=ue;e.t6(t)}};i(vr).j=function(){switch(this.q9_1){case 0:case 1:return pm(this);case 2:return this.q9_1=1,At(this.s9_1).j();case 3:this.q9_1=0;var e=this.r9_1,t=e==null||e!=null?e:$();return this.r9_1=null,t;default:throw $h(this)}};i(vr).p9=function(e,t){return this.r9_1=e,this.q9_1=3,this.t9_1=t,pr()};i(vr).u9=function(e){Rm(e);var t=e;t==null||t!=null||$(),this.q9_1=4};i(vr).t6=function(e){return this.u9(e)};i(vr).o6=function(){return bm()};function cu(e){this.v9_1=e}i(cu).h=function(){return vm(this.v9_1)};function Hi(){return Ro}function No(e){this.x9_1=e,this.w9_1=e.y9_1.h()}i(No).j=function(){return this.x9_1.z9_1(this.w9_1.j())};i(No).i=function(){return this.w9_1.i()};function fu(e,t){this.y9_1=e,this.z9_1=t}i(fu).h=function(){return new No(this)};function Eh(e){for(;e.aa_1.i();){var t=e.aa_1.j();if(e.da_1.ga_1(t)===e.da_1.fa_1)return e.ca_1=t,e.ba_1=1,ue}e.ba_1=0}function Io(e){this.da_1=e,this.aa_1=e.ea_1.h(),this.ba_1=-1,this.ca_1=null}i(Io).j=function(){if(this.ba_1===-1&&Eh(this),this.ba_1===0)throw St();var e=this.ca_1;return this.ca_1=null,this.ba_1=-1,e==null||e!=null?e:$()};i(Io).i=function(){return this.ba_1===-1&&Eh(this),this.ba_1===1};function hu(e,t,n){t=t===u?!0:t,this.ea_1=e,this.fa_1=t,this.ga_1=n}i(hu).h=function(){return new Io(this)};function qo(e){this.ha_1=e.ja_1.h(),this.ia_1=0}i(qo).j=function(){var e=this.ia_1;return this.ia_1=e+1|0,new Ur(Fl(e),this.ha_1.j())};i(qo).i=function(){return this.ha_1.i()};function du(e){this.ja_1=e}i(du).h=function(){return new qo(this)};function di(){}function Ao(e){this.ka_1=e.na_1,this.la_1=e.ma_1.h()}i(Ao).j=function(){if(this.ka_1===0)throw St();return this.ka_1=this.ka_1-1|0,this.la_1.j()};i(Ao).i=function(){return this.ka_1>0&&this.la_1.i()};function Yr(e,t){if(this.ma_1=e,this.na_1=t,!(this.na_1>=0)){var n="count must be non-negative, but was "+this.na_1+".";throw He(O(n))}}i(Yr).u=function(e){return e>=this.na_1?Hi():new Pr(this.ma_1,e,this.na_1)};i(Yr).t=function(e){return e>=this.na_1?this:new Yr(this.ma_1,e)};i(Yr).h=function(){return new Ao(this)};function Nh(e){if(e.oa_1.i()){var t=e.oa_1.j();if(e.ra_1.ta_1(t))return e.pa_1=1,e.qa_1=t,ue}e.pa_1=0}function To(e){this.ra_1=e,this.oa_1=e.sa_1.h(),this.pa_1=-1,this.qa_1=null}i(To).j=function(){if(this.pa_1===-1&&Nh(this),this.pa_1===0)throw St();var e=this.qa_1,t=e==null||e!=null?e:$();return this.qa_1=null,this.pa_1=-1,t};i(To).i=function(){return this.pa_1===-1&&Nh(this),this.pa_1===1};function vu(e,t){this.sa_1=e,this.ta_1=t}i(vu).h=function(){return new To(this)};function Ih(e){for(;e.va_1>0&&e.ua_1.i();)e.ua_1.j(),e.va_1=e.va_1-1|0}function jo(e){this.ua_1=e.wa_1.h(),this.va_1=e.xa_1}i(jo).j=function(){return Ih(this),this.ua_1.j()};i(jo).i=function(){return Ih(this),this.ua_1.i()};function Hr(e,t){if(this.wa_1=e,this.xa_1=t,!(this.xa_1>=0)){var n="count must be non-negative, but was "+this.xa_1+".";throw He(O(n))}}i(Hr).u=function(e){var t=this.xa_1+e|0;return t<0?new Hr(this,e):new Hr(this.wa_1,t)};i(Hr).t=function(e){var t=this.xa_1+e|0;return t<0?new Yr(this,e):new Pr(this.wa_1,this.xa_1,t)};i(Hr).h=function(){return new jo(this)};function qh(e){for(;e.ya_1.i();){var t=e.ya_1.j();if(!e.bb_1.db_1(t))return e.ab_1=t,e.za_1=1,ue}e.za_1=0}function Po(e){this.bb_1=e,this.ya_1=e.cb_1.h(),this.za_1=-1,this.ab_1=null}i(Po).j=function(){if(this.za_1===-1&&qh(this),this.za_1===1){var e=this.ab_1,t=e==null||e!=null?e:$();return this.ab_1=null,this.za_1=0,t}return this.ya_1.j()};i(Po).i=function(){return this.za_1===-1&&qh(this),this.za_1===1||this.ya_1.i()};function pu(e,t){this.cb_1=e,this.db_1=t}i(pu).h=function(){return new Po(this)};function Oa(){}i(Oa).h=function(){return Ui};i(Oa).u=function(e){return Ro};i(Oa).t=function(e){return Ro};var Ro;function Ah(e){for(;e.fb_1<e.gb_1.ib_1&&e.eb_1.i();)e.eb_1.j(),e.fb_1=e.fb_1+1|0}function Th(e){return e.jb_1-e.ib_1|0}function Mo(e){this.gb_1=e,this.eb_1=e.hb_1.h(),this.fb_1=0}i(Mo).i=function(){return Ah(this),this.fb_1<this.gb_1.jb_1&&this.eb_1.i()};i(Mo).j=function(){if(Ah(this),this.fb_1>=this.gb_1.jb_1)throw St();return this.fb_1=this.fb_1+1|0,this.eb_1.j()};function Pr(e,t,n){if(this.hb_1=e,this.ib_1=t,this.jb_1=n,!(this.ib_1>=0)){var r="startIndex should be non-negative, but is "+this.ib_1;throw He(O(r))}if(!(this.jb_1>=0)){var a="endIndex should be non-negative, but is "+this.jb_1;throw He(O(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 He(O(o))}}i(Pr).u=function(e){return e>=Th(this)?Hi():new Pr(this.hb_1,this.ib_1+e|0,this.jb_1)};i(Pr).t=function(e){return e>=Th(this)?this:new Pr(this.hb_1,this.ib_1,this.ib_1+e|0)};i(Pr).h=function(){return new Mo(this)};function _u(){return gm()}function _m(e){return Uv(e,R_(e.length))}function mm(e){switch(e.m()){case 0:return _u();case 1:return Of(e.h().j());default:return e}}function Fn(){Ls=this,this.kb_1=new he(1993859828,793161749)}i(Fn).equals=function(e){var t;return e!=null&&Z(e,Mr)?t=e.l():t=!1,t};i(Fn).hashCode=function(){return 0};i(Fn).toString=function(){return"[]"};i(Fn).m=function(){return 0};i(Fn).l=function(){return!0};i(Fn).j9=function(e){return e.l()};i(Fn).k1=function(e){return this.j9(e)};i(Fn).h=function(){return Ui};var Ls;function gm(){return Ls==null&&new Fn,Ls}function Lo(e,t){return e===t?0:e==null?-1:t==null?1:vf(e!=null&&o_(e)?e:$(),t)}function Wi(){}function jh(){}var Ph;function ym(){}function za(){Os=this,this.lb_1=new he(0,0)}i(za).u6=function(e){return null};i(za).hashCode=function(){return 0};i(za).toString=function(){return"EmptyCoroutineContext"};var Os;function bm(){return Os==null&&new za,Os}function pr(){return km()}var Rh,wc;function wm(){if(wc)return ue;wc=!0,Rh=new Ya("COROUTINE_SUSPENDED",0),new Ya("UNDECIDED",1),new Ya("RESUMED",2)}function Ya(e,t){cr.call(this,e,t)}function km(){return wm(),Rh}function Mh(e,t,n){var r;if(n>0)r=e>=t?t:t-kc(t,e,n)|0;else if(n<0)r=e<=t?t:t+kc(e,t,-n|0)|0;else throw He("Step is zero.");return r}function kc(e,t,n){return ds(ds(e,n)-ds(t,n)|0,n)}function ds(e,t){var n=e%t|0;return n>=0?n:n+t|0}function Lh(){zs=this,this.mb_1=new Rr(1,0)}var zs;function Cm(){return zs==null&&new Lh,zs}function Rr(e,t){Cm(),Ln.call(this,e,t,1)}i(Rr).l=function(){return this.qb_1>this.rb_1};i(Rr).equals=function(e){var t;return e instanceof Rr?t=this.l()&&e.l()||this.qb_1===e.qb_1&&this.rb_1===e.rb_1:t=!1,t};i(Rr).hashCode=function(){return this.l()?-1:_e(31,this.qb_1)+this.rb_1|0};i(Rr).toString=function(){return""+this.qb_1+".."+this.rb_1};function Oh(){Fs=this,this.tb_1=new _r(1,0)}var Fs;function xm(){return Fs==null&&new Oh,Fs}function _r(e,t){xm(),mr.call(this,e,t,1)}i(_r).xb=function(e){return tt(this.yb_1,e)<=0&&tt(e,this.zb_1)<=0};i(_r).l=function(){return tt(this.yb_1,this.zb_1)>0};i(_r).equals=function(e){var t;return e instanceof _r?t=this.l()&&e.l()||this.yb_1===e.yb_1&&this.zb_1===e.zb_1:t=!1,t};i(_r).hashCode=function(){var e;if(this.l())e=-1;else{var t=this.yb_1,n=Lt(t),r=_e(31,n),a=this.zb_1;e=r+Lt(a)|0}return e};i(_r).toString=function(){return Ke(this.yb_1)+".."+Ke(this.zb_1)};function Oo(e,t,n){Eo.call(this),this.bc_1=n,this.cc_1=t,this.dc_1=this.bc_1>0?e<=t:e>=t,this.ec_1=this.dc_1?e:this.cc_1}i(Oo).i=function(){return this.dc_1};i(Oo).m9=function(){var e=this.ec_1;if(e===this.cc_1){if(!this.dc_1)throw St();this.dc_1=!1}else this.ec_1=this.ec_1+this.bc_1|0;return e};function zo(e,t,n){Ma.call(this),this.fc_1=n;var r=this;r.gc_1=Lt(t),this.hc_1=this.fc_1>0?tt(e,t)<=0:tt(e,t)>=0;var a=this,o;this.hc_1?o=Lt(e):o=this.gc_1,a.ic_1=o}i(zo).i=function(){return this.hc_1};i(zo).o9=function(){var e=this.ic_1;if(e===this.gc_1){if(!this.hc_1)throw St();this.hc_1=!1}else this.ic_1=this.ic_1+this.fc_1|0;return ca(e)};function mu(){}i(mu).s=function(e,t,n){return new Ln(e,t,n)};var zh;function Ln(e,t,n){if(n===0)throw He("Step must be non-zero.");if(n===-2147483648)throw He("Step must be greater than Int.MIN_VALUE to avoid overflow on negation.");this.qb_1=e,this.rb_1=Mh(e,t,n),this.sb_1=n}i(Ln).h=function(){return new Oo(this.qb_1,this.rb_1,this.sb_1)};i(Ln).l=function(){return this.sb_1>0?this.qb_1>this.rb_1:this.qb_1<this.rb_1};i(Ln).equals=function(e){var t;return e instanceof Ln?t=this.l()&&e.l()||this.qb_1===e.qb_1&&this.rb_1===e.rb_1&&this.sb_1===e.sb_1:t=!1,t};i(Ln).hashCode=function(){return this.l()?-1:_e(31,_e(31,this.qb_1)+this.rb_1|0)+this.sb_1|0};i(Ln).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 Sm(){}function mr(e,t,n){if(n===0)throw He("Step must be non-zero.");if(n===-2147483648)throw He("Step must be greater than Int.MIN_VALUE to avoid overflow on negation.");this.yb_1=e;var r=this,a=Lt(e),o=Lt(t);r.zb_1=ca(Mh(a,o,n)),this.ac_1=n}i(mr).h=function(){return new zo(this.yb_1,this.zb_1,this.ac_1)};i(mr).l=function(){return this.ac_1>0?tt(this.yb_1,this.zb_1)>0:tt(this.yb_1,this.zb_1)<0};i(mr).equals=function(e){var t;return e instanceof mr?t=this.l()&&e.l()||this.yb_1===e.yb_1&&this.zb_1===e.zb_1&&this.ac_1===e.ac_1:t=!1,t};i(mr).hashCode=function(){var e;if(this.l())e=-1;else{var t=this.yb_1,n=Lt(t),r=_e(31,n),a=this.zb_1,o=Lt(a);e=_e(31,r+o|0)+this.ac_1|0}return e};i(mr).toString=function(){return this.ac_1>0?Ke(this.yb_1)+".."+Ke(this.zb_1)+" step "+this.ac_1:Ke(this.yb_1)+" downTo "+Ke(this.zb_1)+" step "+(-this.ac_1|0)};function Fh(e,t,n){n!=null?e.f(n(t)):t==null||ht(t)?e.f(t):t instanceof ne?e.b6(t.x_1):e.f(Re(t))}function Dh(e,t,n){if(n=n===u?!1:n,e===t)return!0;if(!n)return!1;var r=mc(e),a=mc(t),o;if(r===a)o=!0;else{var s=Ke(r).toLowerCase(),l=M(s,0),c=Ke(a).toLowerCase();o=l===M(c,0)}return o}function Bh(e){return gu(e,10)}function gu(e,t){wh(t);var n=e.length;if(n===0)return null;var r,a,o,s=M(e,0);if(tt(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=G0(M(e,d),t);if(v<0)return null;if(f<c)if(c===l){if(c=o/t|0,f<c)return null}else return null;if(f=_e(f,t),f<(o+v|0))return null;f=f-v|0}while(h<n);return a?f:-f|0}function Kh(e){throw hh("Invalid number format: '"+e+"'")}function yu(e,t,n){n=n===u?!1:n;var r,a;return n?a=!1:a=typeof e=="string",a?r=typeof t=="string":r=!1,r?su(e,t):Fa(e,0,t,0,j(t),n)}function bu(e,t,n){n=n===u?!1:n;var r;return typeof t=="string"?r=Ds(e,t,u,n)>=0:r=Uh(e,t,0,j(e),n)>=0,r}function Fo(e,t,n){n=n===u?!1:n;var r,a;return n?a=!1:a=typeof e=="string",a?r=typeof t=="string":r=!1,r?Ch(e,t):Fa(e,j(e)-j(t)|0,t,0,j(t),n)}function $m(e){var t;e:{for(var n=0;n<j(e);){var r=M(e,n);if(n=n+1|0,!bh(r)){t=!1;break e}}t=!0}return t}function Wt(e,t,n){return n=n===u?!1:n,Nm(e,t,u,n)>=0}function Do(e,t,n,r){r=r===u?!1:r;var a,o;return r?o=!1:o=typeof e=="string",o?a=typeof t=="string":a=!1,a?tm(e,t,n):Fa(e,n,t,0,j(t),r)}function Ds(e,t,n,r){n=n===u?0:n,r=r===u?!1:r;var a,o;return r?o=!0:o=typeof e!="string",o?a=Uh(e,t,n,j(e),r):a=e.indexOf(t,n),a}function Fa(e,t,n,r,a,o){if(r<0||t<0||t>(j(e)-a|0)||r>(j(n)-a|0))return!1;var s=0;if(s<a)do{var l=s;if(s=s+1|0,!Dh(M(e,t+l|0),M(n,r+l|0),o))return!1}while(s<a);return!0}function Uh(e,t,n,r,a,o){o=o===u?!1:o;var s=o?Zv(oa(n,Hh(e)),io(r,0)):e_(io(n,0),oa(r,j(e))),l;if(typeof e=="string"?l=typeof t=="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,xo(t,0,e,d,j(t),a))return d}while(d!==f)}else{var v=s.qb_1,y=s.rb_1,p=s.sb_1;if(p>0&&v<=y||p<0&&y<=v)do{var m=v;if(v=v+p|0,Fa(t,0,e,m,j(t),a))return m}while(m!==y)}return-1}function Em(e){var t=0,n=j(e)-1|0,r=!1;e:for(;t<=n;){var a=r?n:t,o=bh(M(e,a));if(!r)o?t=t+1|0:r=!0;else if(o)n=n-1|0;else break e}return ln(e,t,n+1|0)}function Nm(e,t,n,r){n=n===u?0:n,r=r===u?!1:r;var a,o;if(r?o=!0:o=typeof e!="string",o){var s=gp([t]);a=Im(e,s,n,r)}else{var l=Ke(t);a=e.indexOf(l,n)}return a}function Hh(e){return j(e)-1|0}function Im(e,t,n,r){n=n===u?0:n,r=r===u?!1:r;var a;if(!r&&t.length===1?a=typeof e=="string":a=!1,a){var o=Fv(t),s=Ke(o);return e.indexOf(s,n)}var l=io(n,0),c=Hh(e);if(l<=c)do{var f=l;l=l+1|0;var h=M(e,f),d;e:{for(var v=0,y=t.length;v<y;){var p=t[v];if(v=v+1|0,Dh(p,h,r)){d=!0;break e}}d=!1}if(d)return f}while(f!==c);return-1}function qm(e,t){var n;if(e!=null&&typeof e=="string"?n=t!=null?typeof t=="string":!1:n=!1,n)return E(e,t);if(e===t)return!0;if(e==null||t==null||j(e)!==j(t))return!1;var r=0,a=j(e);if(r<a)do{var o=r;if(r=r+1|0,M(e,o)!==M(t,o))return!1}while(r<a);return!0}function Da(e){this.jc_1=e,this.kc_1=Bo}i(Da).r1=function(){this.kc_1===Bo&&(this.kc_1=At(this.jc_1)(),this.jc_1=null);var e=this.kc_1;return e==null||e!=null?e:$()};i(Da).lc=function(){return this.kc_1!==Bo};i(Da).toString=function(){return this.lc()?Re(this.r1()):"Lazy value not initialized yet."};function Wh(){}var Bo;function Am(e){var t=e;return t instanceof gr}function Tm(e){var t;return e instanceof gr?t=e.mc_1:t=null,t}function jm(){}function gr(e){this.mc_1=e}i(gr).equals=function(e){var t;return e instanceof gr?t=E(this.mc_1,e.mc_1):t=!1,t};i(gr).hashCode=function(){return se(this.mc_1)};i(gr).toString=function(){return"Failure("+this.mc_1.toString()+")"};function Pm(e){return new gr(e)}function Rm(e){var t=e;if(t instanceof gr)throw e.mc_1}function Bs(e){e=e===u?"An operation is not implemented.":e,h0(e,this),B(this,Bs)}function xn(e,t){this.nc_1=e,this.oc_1=t}i(xn).toString=function(){return"("+Re(this.nc_1)+", "+Re(this.oc_1)+")"};i(xn).pc=function(){return this.nc_1};i(xn).qc=function(){return this.oc_1};i(xn).hashCode=function(){var e=this.nc_1==null?0:se(this.nc_1);return e=_e(e,31)+(this.oc_1==null?0:se(this.oc_1))|0,e};i(xn).equals=function(e){if(this===e)return!0;if(!(e instanceof xn))return!1;var t=e instanceof xn?e:$();return!(!E(this.nc_1,t.nc_1)||!E(this.oc_1,t.oc_1))};function Cc(e,t){return new xn(e,t)}i(mt).asJsReadonlyArrayView=Gc;i(xt).p4=Ov;i(lt).asJsReadonlyArrayView=Gc;ue=new Sl;Xa=null;Ia=new Qf;Zf=new Li;cn=new zr;lu=new So;Ui=new hi;Ro=new Oa;Ph=new jh;zh=new mu;Bo=new Wh;var D=Math.imul;zt(Nn,"Stringify");function wu(){return this.uc()-this.tc()|0}zt(Jo,"Position",u,u,[Nn]);w(Ut,"Expression",u,u,[Jo]);w(ce,"BinaryExpression",u,Ut);w(Ko,"sam$kotlin_Comparator$0");gt(va);w(U,"CompareOperator",u,u,[Nn]);ie(Gn,"Equal",u,U);ie(Jn,"NotEqual",u,U);ie(Qn,"Start",u,U);ie(Xn,"NotStart",u,U);ie(Yn,"Include",u,U);ie(Zn,"NotInclude",u,U);ie(er,"End",u,U);ie(tr,"NotEnd",u,U);ie(nr,"Less",u,U);ie(rr,"LessEqual",u,U);ie(ir,"More",u,U);ie(ar,"MoreEqual",u,U);ie(or,"Matches",u,U);ie(sr,"NotMatches",u,U);w(vi,"ConnectExpression",u,u,[Nn]);w(Wo,"sam$kotlin_Comparator$0");gt(pa);w(yt,"ConnectOperator",u,u,[Nn]);ie($r,"BeforeBrother",u,yt);ie(Er,"AfterBrother",u,yt);ie(Nr,"Ancestor",u,yt);ie(Ir,"Child",u,yt);ie(qr,"Descendant",u,yt);w(ut,"ConnectSegment",ut,u,[Nn]);w(Ot,"ConnectWrapper",u,u,[Nn]);w(Qe,"Context");w(dt,"SelectorCheckException",u,gn);w(Yt,"UnknownIdentifierException",u,dt);w(Zt,"UnknownMemberException",u,dt);w(en,"UnknownIdentifierMethodException",u,dt);w(tn,"UnknownMemberMethodException",u,dt);w(ct,"MismatchParamTypeException",u,dt);w(Ct,"MismatchExpressionTypeException",u,dt);w(nn,"MismatchOperatorTypeException",u,dt);w($e,"LogicalExpression",u,Ut);w(Go,"sam$kotlin_Comparator$0");gt(_a);w(En,"LogicalOperator",u,u,[Nn]);ie(Ar,"AndOperator",u,En);ie(Tr,"OrOperator",u,En);w(_t,"NotExpression",u,Ut);w(Ae,"PolynomialExpression",Ae,vi);w(Ue,"PositionImpl",u,u,[Jo]);w(at,"PropertySegment",u,u,[Nn]);w(Xe,"PropertyWrapper",u,u,[Nn]);w(Nt,"QuickFindValue");gt(Qo);w(Dt,"Selector",u,u,[Nn]);w(ot,"SyntaxError",u,gn);gt(Nu);Sa(Zr,Tt,u,[1]);Sa(ei,Tt,u,[1]);Sa(ti,Tt,u,[1]);Sa(ni,Tt,u,[1]);Sa(ri,Tt,u,[1]);w(Ye,"Transform");w(It,"TupleExpression",u,vi);w(an,"PrimitiveType");ie(Vr,"BooleanType",u,an);ie(Gr,"IntType",u,an);ie(Jr,"StringType",u,an);w(rn,"ObjectType",u,an);w(de,"MethodInfo");w(ee,"PropInfo");w(it,"TypeInfo");w(Ze,"ValueExpression",u,u,[Jo]);w(jt,"Variable",u,Ze);w(Me,"Identifier",u,jt);w(Ee,"MemberExpression",u,jt);w(ke,"CallExpression",u,jt);w(Vt,"LiteralExpression",u,Ze);w(qt,"NullLiteral",u,Vt);w(ft,"BooleanLiteral",u,Vt);w(We,"IntLiteral",u,Vt);w(fe,"StringLiteral",u,Vt);w(De,"Parser");w(Te,"ParserResult");ie(Ka,"ParserSet");w(pi,"DefaultTypeInfo");function ce(e,t,n,r,a){Ut.call(this),this.rc_1=e,this.sc_1=t,this.left=n,this.operator=r,this.right=a}i(ce).tc=function(){return this.rc_1};i(ce).uc=function(){return this.sc_1};i(ce).vc=function(){return this.left};i(ce).wc=function(){return this.operator};i(ce).xc=function(){return this.right};i(ce).match=function(e,t){return this.operator.value.ad(e,t,this.left,this.right)};i(ce).bd=function(){return[this]};i(ce).stringify=function(){return this.left.stringify()+this.operator.stringify()+this.right.stringify()};i(ce).cd=function(){return Ii([this.left.properties,this.right.properties])};i(ce).dd=function(){return Ii([this.left.methods,this.right.methods])};i(ce).pc=function(){return this.rc_1};i(ce).qc=function(){return this.sc_1};i(ce).ed=function(){return this.left};i(ce).fd=function(){return this.operator};i(ce).gd=function(){return this.right};i(ce).hd=function(e,t,n,r,a){return new ce(e,t,n,r,a)};i(ce).copy=function(e,t,n,r,a,o){return e=e===u?this.rc_1:e,t=t===u?this.sc_1:t,n=n===u?this.left:n,r=r===u?this.operator:r,a=a===u?this.right:a,this.hd(e,t,n,r,a)};i(ce).toString=function(){return"BinaryExpression(start="+this.rc_1+", end="+this.sc_1+", left="+O(this.left)+", operator="+this.operator.toString()+", right="+O(this.right)+")"};i(ce).hashCode=function(){var e=this.rc_1;return e=D(e,31)+this.sc_1|0,e=D(e,31)+se(this.left)|0,e=D(e,31)+this.operator.hashCode()|0,e=D(e,31)+se(this.right)|0,e};i(ce).equals=function(e){if(this===e)return!0;if(!(e instanceof ce))return!1;var t=e instanceof ce?e:$();return!(this.rc_1!==t.rc_1||this.sc_1!==t.sc_1||!E(this.left,t.left)||!this.operator.equals(t.operator)||!E(this.right,t.right))};function Mm(e,t,n){if(e===n)return!0;if(j(e)!==j(n))return!1;var r=j(e)-1|0;if(0<=r)do{var a=r;if(r=r+-1|0,M(e,a)!==M(n,a))return!1}while(0<=r);return!0}function Ko(e){this.id_1=e}i(Ko).b9=function(e,t){return this.id_1(e,t)};i(Ko).compare=function(e,t){return this.b9(e,t)};function Lm(){var e=uu([Wr(),Vh(),Fr(),Gh(),ku(),Jh(),Cu(),Qh(),Ba(),Xh(),Yh(),Zh(),Ho(),xu()]),t=Om,n=new Ko(t),r=ql(e,n);return pn(r)}function Om(e,t){var n=-e.key.length|0,r=-t.key.length|0;return Lo(n,r)}function va(){Ks=this;var e=this;e.jd_1=ha(Lm)}i(va).kd=function(){var e=this.jd_1;return zm(),e.r1()};var Ks;function Uo(){return Ks==null&&new va,Ks}function Gn(){Us=this,U.call(this,"=")}i(Gn).ad=function(e,t,n,r){var a=n.nd(e,t),o=r.nd(e,t),s,l;return a!=null&&ht(a)?l=o!=null?ht(o):!1:l=!1,l?s=Mm(a,Uo(),o):s=E(a,o),s};i(Gn).od=function(e,t){return!0};i(Gn).toString=function(){return"Equal"};i(Gn).hashCode=function(){return 717536815};i(Gn).equals=function(e){return this===e?!0:e instanceof Gn?(e instanceof Gn||$(),!0):!1};var Us;function Wr(){return Us==null&&new Gn,Us}function Jn(){Hs=this,U.call(this,"!=")}i(Jn).ad=function(e,t,n,r){return!Wr().ad(e,t,n,r)};i(Jn).od=function(e,t){return!0};i(Jn).toString=function(){return"NotEqual"};i(Jn).hashCode=function(){return 1058184006};i(Jn).equals=function(e){return this===e?!0:e instanceof Jn?(e instanceof Jn||$(),!0):!1};var Hs;function Vh(){return Hs==null&&new Jn,Hs}function Qn(){Ws=this,U.call(this,"^=")}i(Qn).ad=function(e,t,n,r){var a=n.nd(e,t),o=r.nd(e,t),s,l;return a!=null&&ht(a)?l=o!=null?ht(o):!1:l=!1,l?s=yu(a,o):s=!1,s};i(Qn).od=function(e,t){var n,r;if(e instanceof fe?r=!0:r=e instanceof jt,r){var a;t instanceof fe?a=!0:a=t instanceof jt,n=a}else n=!1;return n};i(Qn).toString=function(){return"Start"};i(Qn).hashCode=function(){return 730536797};i(Qn).equals=function(e){return this===e?!0:e instanceof Qn?(e instanceof Qn||$(),!0):!1};var Ws;function Fr(){return Ws==null&&new Qn,Ws}function Xn(){Vs=this,U.call(this,"!^=")}i(Xn).ad=function(e,t,n,r){var a=n.nd(e,t),o=r.nd(e,t),s,l;return a!=null&&ht(a)?l=o!=null?ht(o):!1:l=!1,l?s=!yu(a,o):s=!1,s};i(Xn).od=function(e,t){return Fr().od(e,t)};i(Xn).toString=function(){return"NotStart"};i(Xn).hashCode=function(){return 1071183988};i(Xn).equals=function(e){return this===e?!0:e instanceof Xn?(e instanceof Xn||$(),!0):!1};var Vs;function Gh(){return Vs==null&&new Xn,Vs}function Yn(){Gs=this,U.call(this,"*=")}i(Yn).ad=function(e,t,n,r){var a=n.nd(e,t),o=r.nd(e,t),s,l;return a!=null&&ht(a)?l=o!=null?ht(o):!1:l=!1,l?s=bu(a,o):s=!1,s};i(Yn).od=function(e,t){return Fr().od(e,t)};i(Yn).toString=function(){return"Include"};i(Yn).hashCode=function(){return 1510988003};i(Yn).equals=function(e){return this===e?!0:e instanceof Yn?(e instanceof Yn||$(),!0):!1};var Gs;function ku(){return Gs==null&&new Yn,Gs}function Zn(){Js=this,U.call(this,"!*=")}i(Zn).ad=function(e,t,n,r){var a=n.nd(e,t),o=r.nd(e,t),s,l;return a!=null&&ht(a)?l=o!=null?ht(o):!1:l=!1,l?s=!bu(a,o):s=!1,s};i(Zn).od=function(e,t){return Fr().od(e,t)};i(Zn).toString=function(){return"NotInclude"};i(Zn).hashCode=function(){return-1839543238};i(Zn).equals=function(e){return this===e?!0:e instanceof Zn?(e instanceof Zn||$(),!0):!1};var Js;function Jh(){return Js==null&&new Zn,Js}function er(){Qs=this,U.call(this,"$=")}i(er).ad=function(e,t,n,r){var a=n.nd(e,t),o=r.nd(e,t),s,l;return a!=null&&ht(a)?l=o!=null?ht(o):!1:l=!1,l?s=Fo(a,o):s=!1,s};i(er).od=function(e,t){return Fr().od(e,t)};i(er).toString=function(){return"End"};i(er).hashCode=function(){return 1234264726};i(er).equals=function(e){return this===e?!0:e instanceof er?(e instanceof er||$(),!0):!1};var Qs;function Cu(){return Qs==null&&new er,Qs}function tr(){Xs=this,U.call(this,"!$=")}i(tr).ad=function(e,t,n,r){var a=n.nd(e,t),o=r.nd(e,t),s,l;return a!=null&&ht(a)?l=o!=null?ht(o):!1:l=!1,l?s=!Fo(a,o):s=!1,s};i(tr).od=function(e,t){return Fr().od(e,t)};i(tr).toString=function(){return"NotEnd"};i(tr).hashCode=function(){return 1024563565};i(tr).equals=function(e){return this===e?!0:e instanceof tr?(e instanceof tr||$(),!0):!1};var Xs;function Qh(){return Xs==null&&new tr,Xs}function nr(){Ys=this,U.call(this,"<")}i(nr).ad=function(e,t,n,r){var a=n.nd(e,t),o=r.nd(e,t),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(nr).od=function(e,t){var n,r;if(e instanceof jt?r=!0:r=e instanceof We,r){var a;t instanceof We?a=!0:a=t instanceof jt,n=a}else n=!1;return n};i(nr).toString=function(){return"Less"};i(nr).hashCode=function(){return-392298690};i(nr).equals=function(e){return this===e?!0:e instanceof nr?(e instanceof nr||$(),!0):!1};var Ys;function Ba(){return Ys==null&&new nr,Ys}function rr(){Zs=this,U.call(this,"<=")}i(rr).ad=function(e,t,n,r){var a=n.nd(e,t),o=r.nd(e,t),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(rr).od=function(e,t){return Ba().od(e,t)};i(rr).toString=function(){return"LessEqual"};i(rr).hashCode=function(){return-2095624554};i(rr).equals=function(e){return this===e?!0:e instanceof rr?(e instanceof rr||$(),!0):!1};var Zs;function Xh(){return Zs==null&&new rr,Zs}function ir(){el=this,U.call(this,">")}i(ir).ad=function(e,t,n,r){var a=n.nd(e,t),o=r.nd(e,t),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(ir).od=function(e,t){return Ba().od(e,t)};i(ir).toString=function(){return"More"};i(ir).hashCode=function(){return-392259334};i(ir).equals=function(e){return this===e?!0:e instanceof ir?(e instanceof ir||$(),!0):!1};var el;function Yh(){return el==null&&new ir,el}function ar(){tl=this,U.call(this,">=")}i(ar).ad=function(e,t,n,r){var a=n.nd(e,t),o=r.nd(e,t),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(ar).od=function(e,t){return Ba().od(e,t)};i(ar).toString=function(){return"MoreEqual"};i(ar).hashCode=function(){return-648189350};i(ar).equals=function(e){return this===e?!0:e instanceof ar?(e instanceof ar||$(),!0):!1};var tl;function Zh(){return tl==null&&new ar,tl}function or(){nl=this,U.call(this,"~=")}i(or).ad=function(e,t,n,r){var a=n.nd(e,t),o,s;return a!=null&&ht(a)?s=r instanceof fe:s=!1,s?o=r.xd_1(a):o=!1,o};i(or).od=function(e,t){var n;if(e instanceof jt){var r;t instanceof fe?r=t.wd_1!=null:r=!1,n=r}else n=!1;return n};i(or).toString=function(){return"Matches"};i(or).hashCode=function(){return 409275758};i(or).equals=function(e){return this===e?!0:e instanceof or?(e instanceof or||$(),!0):!1};var nl;function Ho(){return nl==null&&new or,nl}function sr(){rl=this,U.call(this,"!~=")}i(sr).ad=function(e,t,n,r){var a=n.nd(e,t),o,s;return a!=null&&ht(a)?s=r instanceof fe:s=!1,s?o=!r.xd_1(a):o=!1,o};i(sr).od=function(e,t){return Ho().od(e,t)};i(sr).toString=function(){return"NotMatches"};i(sr).hashCode=function(){return 1353711813};i(sr).equals=function(e){return this===e?!0:e instanceof sr?(e instanceof sr||$(),!0):!1};var rl;function xu(){return rl==null&&new sr,rl}function U(e){Uo(),this.key=e}i(U).q1=function(){return this.key};i(U).stringify=function(){return this.key};function zm(){return $a("allSubClasses",1,Co,function(e){return e.allSubClasses},null)}function vi(){}function Wo(e){this.ae_1=e}i(Wo).b9=function(e,t){return this.ae_1(e,t)};i(Wo).compare=function(e,t){return this.b9(e,t)};function Fm(){var e=uu([ed(),td(),uo(),nd(),Su()]),t=Dm,n=new Wo(t);return ql(e,n)}function Dm(e,t){var n=-e.key.length|0,r=-t.key.length|0;return Lo(n,r)}function pa(){il=this;var e=this;e.be_1=ha(Fm)}i(pa).kd=function(){var e=this.be_1;return Bm(),e.r1()};var il;function Vo(){return il==null&&new pa,il}function $r(){al=this,yt.call(this,"+")}i($r).ce=function(e,t,n){return t.traverseBeforeBrothers(e,n)};i($r).toString=function(){return"BeforeBrother"};i($r).hashCode=function(){return 1632618113};i($r).equals=function(e){return this===e?!0:e instanceof $r?(e instanceof $r||$(),!0):!1};var al;function ed(){return al==null&&new $r,al}function Er(){ol=this,yt.call(this,"-")}i(Er).ce=function(e,t,n){return t.traverseAfterBrothers(e,n)};i(Er).toString=function(){return"AfterBrother"};i(Er).hashCode=function(){return 1215887620};i(Er).equals=function(e){return this===e?!0:e instanceof Er?(e instanceof Er||$(),!0):!1};var ol;function td(){return ol==null&&new Er,ol}function Nr(){sl=this,yt.call(this,">")}i(Nr).ce=function(e,t,n){return t.traverseAncestors(e,n)};i(Nr).toString=function(){return"Ancestor"};i(Nr).hashCode=function(){return 736770963};i(Nr).equals=function(e){return this===e?!0:e instanceof Nr?(e instanceof Nr||$(),!0):!1};var sl;function uo(){return sl==null&&new Nr,sl}function Ir(){ll=this,yt.call(this,"<")}i(Ir).ce=function(e,t,n){return t.traverseChildren(e,n)};i(Ir).toString=function(){return"Child"};i(Ir).hashCode=function(){return-1105093796};i(Ir).equals=function(e){return this===e?!0:e instanceof Ir?(e instanceof Ir||$(),!0):!1};var ll;function nd(){return ll==null&&new Ir,ll}function qr(){ul=this,yt.call(this,"<<")}i(qr).ce=function(e,t,n){return t.traverseDescendants(e,n)};i(qr).toString=function(){return"Descendant"};i(qr).hashCode=function(){return 2093403837};i(qr).equals=function(e){return this===e?!0:e instanceof qr?(e instanceof qr||$(),!0):!1};var ul;function Su(){return ul==null&&new qr,ul}function yt(e){Vo(),this.key=e}i(yt).q1=function(){return this.key};i(yt).stringify=function(){return this.key};function Bm(){return $a("allSubClasses",1,Co,function(e){return e.allSubClasses},null)}function ut(e,t){e=e===u?uo():e,t=t===u?new Ae:t,this.operator=e,this.connectExpression=t;var n=this,r,a,o;if(E(this.operator,uo())){var s=this.connectExpression;o=s instanceof Ae}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,Su())){var d=this.connectExpression;h=d instanceof Ae}else h=!1;h?f=this.connectExpression.a===1:f=!1,f?c=this.connectExpression.b===0:c=!1,l.isMatchAnyDescendant=c}i(ut).wc=function(){return this.operator};i(ut).je=function(){return this.connectExpression};i(ut).stringify=function(){return this.isMatchAnyAncestor?"":this.operator.stringify()+this.connectExpression.stringify()};i(ut).ke=function(e,t){return this.operator.ce(e,t,this.connectExpression)};i(ut).le=function(){return this.isMatchAnyAncestor};i(ut).me=function(){return this.isMatchAnyDescendant};i(ut).pc=function(){return this.operator};i(ut).qc=function(){return this.connectExpression};i(ut).ne=function(e,t){return new ut(e,t)};i(ut).copy=function(e,t,n){return e=e===u?this.operator:e,t=t===u?this.connectExpression:t,this.ne(e,t)};i(ut).toString=function(){return"ConnectSegment(operator="+O(this.operator)+", connectExpression="+O(this.connectExpression)+")"};i(ut).hashCode=function(){var e=se(this.operator);return e=D(e,31)+se(this.connectExpression)|0,e};i(ut).equals=function(e){if(this===e)return!0;if(!(e instanceof ut))return!1;var t=e instanceof ut?e:$();return!(!E(this.operator,t.operator)||!E(this.connectExpression,t.connectExpression))};function Ot(e,t){this.segment=e,this.to=t,this.oe_1=this.to.isMatchRoot&&this.segment.isMatchAnyAncestor,this.pe_1=this.to.quickFindValue.canQf&&this.segment.isMatchAnyDescendant}i(Ot).qe=function(){return this.segment};i(Ot).re=function(){return this.to};i(Ot).stringify=function(){var e=this.to.stringify()+" "+this.segment.stringify();return O(Em(ht(e)?e:$()))};i(Ot).matchContext=function(e,t){if(this.oe_1){var n=t.getRoot(e.current),r;if(n==null)return null;r=n;var a=r;return this.to.matchContext(e.next(a),t)}for(var o=this.segment.ke(e.current,t).h();o.i();){var s=o.j();e:{if(s==null)break e;var l=this.to.matchContext(e.next(s),t);if(l!=null)return l}}return null};i(Ot).pc=function(){return this.segment};i(Ot).qc=function(){return this.to};i(Ot).se=function(e,t){return new Ot(e,t)};i(Ot).copy=function(e,t,n){return e=e===u?this.segment:e,t=t===u?this.to:t,this.se(e,t)};i(Ot).toString=function(){return"ConnectWrapper(segment="+this.segment.toString()+", to="+this.to.toString()+")"};i(Ot).hashCode=function(){var e=this.segment.hashCode();return e=D(e,31)+this.to.hashCode()|0,e};i(Ot).equals=function(e){if(this===e)return!0;if(!(e instanceof Ot))return!1;var t=e instanceof Ot?e:$();return!(!this.segment.equals(t.segment)||!this.to.equals(t.to))};function Qe(e,t){t=t===u?null:t,this.current=e,this.prev=t}i(Qe).te=function(){return this.current};i(Qe).ue=function(){return this.prev};i(Qe).getPrev=function(e){if(e<0)return null;var t=this.prev,n;if(t==null)return null;n=t;var r=n,a=0;if(a<e)do{a=a+1|0;var o=r.prev,s;if(o==null)return null;s=o,r=s}while(a<e);return r};i(Qe).get=function(e){if(e===0)return this;var t=this.getPrev(e-1|0),n;if(t==null)throw Yl();return n=t,n};i(Qe).toList=function(){for(var e=Sh([this.current]),t=this.prev;t!=null;)e.e(t.current),t=t.prev;return e};i(Qe).toArray=function(){var e=this.toList(),t=Z(e,On)?e:$(),n=pn(t);return Mi(n)?n:$()};i(Qe).next=function(e){return new Qe(e,this)};i(Qe).pc=function(){return this.current};i(Qe).qc=function(){return this.prev};i(Qe).ve=function(e,t){return new Qe(e,t)};i(Qe).copy=function(e,t,n){return e=e===u?this.current:e,t=t===u?this.prev:t,this.ve(e,t)};i(Qe).toString=function(){return"Context(current="+Re(this.current)+", prev="+Re(this.prev)+")"};i(Qe).hashCode=function(){var e=this.current==null?0:se(this.current);return e=D(e,31)+(this.prev==null?0:this.prev.hashCode())|0,e};i(Qe).equals=function(e){if(this===e)return!0;if(!(e instanceof Qe))return!1;var t=e instanceof Qe?e:$();return!(!E(this.current,t.current)||!E(this.prev,t.prev))};function dt(e){go(e,this),B(this,dt),this.we_1=e}i(dt).i7=function(){return this.we_1};function Yt(e){dt.call(this,"Unknown Identifier: "+e.bf_1),B(this,Yt),this.value=e}i(Yt).r1=function(){return this.value};i(Yt).pc=function(){return this.value};i(Yt).ef=function(e){return new Yt(e)};i(Yt).copy=function(e,t){return e=e===u?this.value:e,this.ef(e)};i(Yt).toString=function(){return"UnknownIdentifierException(value="+this.value.toString()+")"};i(Yt).hashCode=function(){return this.value.hashCode()};i(Yt).equals=function(e){if(this===e)return!0;if(!(e instanceof Yt))return!1;var t=e instanceof Yt?e:$();return!!this.value.equals(t.value)};function Zt(e){dt.call(this,"Unknown Member: "+e.property),B(this,Zt),this.value=e}i(Zt).r1=function(){return this.value};i(Zt).pc=function(){return this.value};i(Zt).lf=function(e){return new Zt(e)};i(Zt).copy=function(e,t){return e=e===u?this.value:e,this.lf(e)};i(Zt).toString=function(){return"UnknownMemberException(value="+this.value.toString()+")"};i(Zt).hashCode=function(){return this.value.hashCode()};i(Zt).equals=function(e){if(this===e)return!0;if(!(e instanceof Zt))return!1;var t=e instanceof Zt?e:$();return!!this.value.equals(t.value)};function en(e){dt.call(this,"Unknown Identifier Method: "+e.bf_1),B(this,en),this.value=e}i(en).r1=function(){return this.value};i(en).pc=function(){return this.value};i(en).ef=function(e){return new en(e)};i(en).copy=function(e,t){return e=e===u?this.value:e,this.ef(e)};i(en).toString=function(){return"UnknownIdentifierMethodException(value="+this.value.toString()+")"};i(en).hashCode=function(){return this.value.hashCode()};i(en).equals=function(e){if(this===e)return!0;if(!(e instanceof en))return!1;var t=e instanceof en?e:$();return!!this.value.equals(t.value)};function tn(e){dt.call(this,"Unknown Member Method: "+e.property),B(this,tn),this.value=e}i(tn).r1=function(){return this.value};i(tn).pc=function(){return this.value};i(tn).lf=function(e){return new tn(e)};i(tn).copy=function(e,t){return e=e===u?this.value:e,this.lf(e)};i(tn).toString=function(){return"UnknownMemberMethodException(value="+this.value.toString()+")"};i(tn).hashCode=function(){return this.value.hashCode()};i(tn).equals=function(e){if(this===e)return!0;if(!(e instanceof tn))return!1;var t=e instanceof tn?e:$();return!!this.value.equals(t.value)};function ct(e,t,n){dt.call(this,"Mismatch Param Type: "+Re(t.value)+" should be "+n.key),B(this,ct),this.call=e,this.argument=t,this.type=n}i(ct).pf=function(){return this.call};i(ct).qf=function(){return this.argument};i(ct).rf=function(){return this.type};i(ct).pc=function(){return this.call};i(ct).qc=function(){return this.argument};i(ct).ed=function(){return this.type};i(ct).sf=function(e,t,n){return new ct(e,t,n)};i(ct).copy=function(e,t,n,r){return e=e===u?this.call:e,t=t===u?this.argument:t,n=n===u?this.type:n,this.sf(e,t,n)};i(ct).toString=function(){return"MismatchParamTypeException(call="+this.call.toString()+", argument="+O(this.argument)+", type="+O(this.type)+")"};i(ct).hashCode=function(){var e=this.call.hashCode();return e=D(e,31)+se(this.argument)|0,e=D(e,31)+se(this.type)|0,e};i(ct).equals=function(e){if(this===e)return!0;if(!(e instanceof ct))return!1;var t=e instanceof ct?e:$();return!(!this.call.equals(t.call)||!E(this.argument,t.argument)||!E(this.type,t.type))};function Ct(e,t,n){dt.call(this,"Mismatch Expression Type: "+e.stringify()),B(this,Ct),this.exception=e,this.leftType=t,this.rightType=n}i(Ct).uf=function(){return this.exception};i(Ct).vf=function(){return this.leftType};i(Ct).wf=function(){return this.rightType};i(Ct).pc=function(){return this.exception};i(Ct).qc=function(){return this.leftType};i(Ct).ed=function(){return this.rightType};i(Ct).xf=function(e,t,n){return new Ct(e,t,n)};i(Ct).copy=function(e,t,n,r){return e=e===u?this.exception:e,t=t===u?this.leftType:t,n=n===u?this.rightType:n,this.xf(e,t,n)};i(Ct).toString=function(){return"MismatchExpressionTypeException(exception="+this.exception.toString()+", leftType="+O(this.leftType)+", rightType="+O(this.rightType)+")"};i(Ct).hashCode=function(){var e=this.exception.hashCode();return e=D(e,31)+se(this.leftType)|0,e=D(e,31)+se(this.rightType)|0,e};i(Ct).equals=function(e){if(this===e)return!0;if(!(e instanceof Ct))return!1;var t=e instanceof Ct?e:$();return!(!this.exception.equals(t.exception)||!E(this.leftType,t.leftType)||!E(this.rightType,t.rightType))};function nn(e){dt.call(this,"Mismatch Operator Type: "+e.stringify()),B(this,nn),this.exception=e}i(nn).uf=function(){return this.exception};i(nn).pc=function(){return this.exception};i(nn).zf=function(e){return new nn(e)};i(nn).copy=function(e,t){return e=e===u?this.exception:e,this.zf(e)};i(nn).toString=function(){return"MismatchOperatorTypeException(exception="+this.exception.toString()+")"};i(nn).hashCode=function(){return this.exception.hashCode()};i(nn).equals=function(e){if(this===e)return!0;if(!(e instanceof nn))return!1;var t=e instanceof nn?e:$();return!!this.exception.equals(t.exception)};function Ut(){}function $e(e,t,n,r,a){Ut.call(this),this.ag_1=e,this.bg_1=t,this.left=n,this.operator=r,this.right=a}i($e).tc=function(){return this.ag_1};i($e).uc=function(){return this.bg_1};i($e).vc=function(){return this.left};i($e).wc=function(){return this.operator};i($e).xc=function(){return this.right};i($e).match=function(e,t){return this.operator.value.compare(e,t,this.left,this.right)};i($e).bd=function(){var e=this.left.binaryExpressions,t=this.right.binaryExpressions;return e.concat(t)};i($e).stringify=function(){var e,t,n=this.left;n instanceof $e?t=!E(this.left.operator.value,this.operator.value):t=!1,t?e="("+this.left.stringify()+")":e=this.left.stringify();var r=e,a,o,s=this.right;s instanceof $e?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($e).pc=function(){return this.ag_1};i($e).qc=function(){return this.bg_1};i($e).ed=function(){return this.left};i($e).fd=function(){return this.operator};i($e).gd=function(){return this.right};i($e).cg=function(e,t,n,r,a){return new $e(e,t,n,r,a)};i($e).copy=function(e,t,n,r,a,o){return e=e===u?this.ag_1:e,t=t===u?this.bg_1:t,n=n===u?this.left:n,r=r===u?this.operator:r,a=a===u?this.right:a,this.cg(e,t,n,r,a)};i($e).toString=function(){return"LogicalExpression(start="+this.ag_1+", end="+this.bg_1+", left="+O(this.left)+", operator="+this.operator.toString()+", right="+O(this.right)+")"};i($e).hashCode=function(){var e=this.ag_1;return e=D(e,31)+this.bg_1|0,e=D(e,31)+se(this.left)|0,e=D(e,31)+this.operator.hashCode()|0,e=D(e,31)+se(this.right)|0,e};i($e).equals=function(e){if(this===e)return!0;if(!(e instanceof $e))return!1;var t=e instanceof $e?e:$();return!(this.ag_1!==t.ag_1||this.bg_1!==t.bg_1||!E(this.left,t.left)||!this.operator.equals(t.operator)||!E(this.right,t.right))};function Go(e){this.dg_1=e}i(Go).b9=function(e,t){return this.dg_1(e,t)};i(Go).compare=function(e,t){return this.b9(e,t)};function Km(){var e=uu([Eu(),rd()]),t=Um,n=new Go(t);return ql(e,n)}function Um(e,t){var n=-e.key.length|0,r=-t.key.length|0;return Lo(n,r)}function _a(){cl=this;var e=this;e.eg_1=ha(Km)}i(_a).kd=function(){var e=this.eg_1;return Hm(),e.r1()};var cl;function $u(){return cl==null&&new _a,cl}function Ar(){fl=this,En.call(this,"&&")}i(Ar).compare=function(e,t,n,r){return n.match(e,t)&&r.match(e,t)};i(Ar).toString=function(){return"AndOperator"};i(Ar).hashCode=function(){return-772304006};i(Ar).equals=function(e){return this===e?!0:e instanceof Ar?(e instanceof Ar||$(),!0):!1};var fl;function Eu(){return fl==null&&new Ar,fl}function Tr(){hl=this,En.call(this,"||")}i(Tr).compare=function(e,t,n,r){return n.match(e,t)||r.match(e,t)};i(Tr).toString=function(){return"OrOperator"};i(Tr).hashCode=function(){return-302302232};i(Tr).equals=function(e){return this===e?!0:e instanceof Tr?(e instanceof Tr||$(),!0):!1};var hl;function rd(){return hl==null&&new Tr,hl}function En(e){$u(),this.key=e}i(En).q1=function(){return this.key};i(En).stringify=function(){return this.key};function Hm(){return $a("allSubClasses",1,Co,function(e){return e.allSubClasses},null)}function _t(e,t){Ut.call(this),this.fg_1=e,this.expression=t}i(_t).tc=function(){return this.fg_1};i(_t).gg=function(){return this.expression};i(_t).uc=function(){return this.expression.uc()};i(_t).match=function(e,t){return!this.expression.match(e,t)};i(_t).bd=function(){return this.expression.binaryExpressions};i(_t).stringify=function(){return"!("+this.expression.stringify()+")"};i(_t).pc=function(){return this.fg_1};i(_t).qc=function(){return this.expression};i(_t).hg=function(e,t){return new _t(e,t)};i(_t).copy=function(e,t,n){return e=e===u?this.fg_1:e,t=t===u?this.expression:t,this.hg(e,t)};i(_t).toString=function(){return"NotExpression(start="+this.fg_1+", expression="+O(this.expression)+")"};i(_t).hashCode=function(){var e=this.fg_1;return e=D(e,31)+se(this.expression)|0,e};i(_t).equals=function(e){if(this===e)return!0;if(!(e instanceof _t))return!1;var t=e instanceof _t?e:$();return!(this.fg_1!==t.fg_1||!E(this.expression,t.expression))};function qn(e){var t="invalid PolynomialExpression: a="+e.a+", b="+e.b;throw jr(O(t))}function Wm(e){return function(t){return D(e.a,t)+e.b|0}}function Vm(e){return function(t){return D(e.a,t)+e.b|0}}function Gm(e,t){return function(n){return D(e.a,t+n|0)+e.b|0}}function Jm(e){return function(t){return t!==0&&qn(e),e.b}}function Qm(e,t){return function(n){return D(e.a,t-n|0)+e.b|0}}function Ae(e,t){e=e===u?0:e,t=t===u?1:t,vi.call(this),this.a=e,this.b=t;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:qn(this),s=l}else{var c;if(this.b>0){var f;if(this.b<=(-this.a|0))qn(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 qn(this);s=c}r=s-1|0}n.fe_1=r;var d=this,v;if(this.a>0)v=null;else{var y;if(this.a===0){var p;this.b>0?p=this.b:qn(this),y=p}else{var m;if(this.b>0){var g;this.b<=(-this.a|0)?qn(this):g=this.a+this.b|0,m=g}else qn(this);y=m}v=y-1|0}d.ge_1=v,this.he_1=this.fe_1===this.ge_1;var _=this,C;if(this.a>0){var k;if(this.b>0)k=Wm(this);else if(this.b===0)k=Vm(this);else{var x=((-this.b|0)/this.a|0)+1|0;k=Gm(this,x)}C=k}else if(this.a===0){var N;this.b>0?N=Jm(this):qn(this),C=N}else{var z;if(this.b>0){var G;if(this.b<=(-this.a|0))qn(this);else{var K=((-this.b|0)/this.a|0)-(this.b%this.a|0?0:1)|0;G=Qm(this,K)}z=G}else qn(this);C=z}_.ie_1=C}i(Ae).ig=function(){return this.a};i(Ae).jg=function(){return this.b};i(Ae).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 e;return this.a>0?e=""+this.a+"n":e="("+this.a+"n)",e}if(this.a===0){if(this.b===1)return"";var t;return this.b>0?t=this.b.toString():t="("+this.b+")",t}var n=this.b>=0?"+":"";return"("+this.a+"n"+n+this.b+")"};i(Ae).yd=function(){return this.fe_1};i(Ae).zd=function(){return this.ge_1};i(Ae).checkOffset=function(e){if(this.he_1)return e===this.fe_1;var t=(e+1|0)-this.b|0;return(t%this.a|0)===0&&(t/this.a|0)>=1};i(Ae).getOffset=function(e){return this.ie_1(e)-1|0};i(Ae).pc=function(){return this.a};i(Ae).qc=function(){return this.b};i(Ae).kg=function(e,t){return new Ae(e,t)};i(Ae).copy=function(e,t,n){return e=e===u?this.a:e,t=t===u?this.b:t,this.kg(e,t)};i(Ae).toString=function(){return"PolynomialExpression(a="+this.a+", b="+this.b+")"};i(Ae).hashCode=function(){var e=this.a;return e=D(e,31)+this.b|0,e};i(Ae).equals=function(e){if(this===e)return!0;if(!(e instanceof Ae))return!1;var t=e instanceof Ae?e:$();return!(this.a!==t.a||this.b!==t.b)};function Nn(){}function Ue(e,t,n){this.yc_1=e,this.zc_1=t,this.value=n}i(Ue).tc=function(){return this.yc_1};i(Ue).uc=function(){return this.zc_1};i(Ue).r1=function(){return this.value};i(Ue).stringify=function(){return this.value.stringify()};i(Ue).pc=function(){return this.yc_1};i(Ue).qc=function(){return this.zc_1};i(Ue).ed=function(){return this.value};i(Ue).lg=function(e,t,n){return new Ue(e,t,n)};i(Ue).copy=function(e,t,n,r){return e=e===u?this.yc_1:e,t=t===u?this.zc_1:t,n=n===u?this.value:n,this.lg(e,t,n)};i(Ue).toString=function(){return"PositionImpl(start="+this.yc_1+", end="+this.zc_1+", value="+O(this.value)+")"};i(Ue).hashCode=function(){var e=this.yc_1;return e=D(e,31)+this.zc_1|0,e=D(e,31)+se(this.value)|0,e};i(Ue).equals=function(e){if(this===e)return!0;if(!(e instanceof Ue))return!1;var t=e instanceof Ue?e:$();return!(this.yc_1!==t.yc_1||this.zc_1!==t.zc_1||!E(this.value,t.value))};function Jo(){}function Xm(e,t,n){if(e.mg_1)return!0;var r=n.getName(t),a;if(r==null)return!1;a=r;var o=a;return j(o)===e.name.length?em(o,e.name):j(o)>e.name.length?M(o,(j(o)-e.name.length|0)-1|0)===46&&Fo(o,e.name):!1}function Ym(e){return"["+e.stringify()+"]"}function at(e,t,n){this.at=e,this.name=t,this.expressions=n,this.mg_1=$m(this.name)||this.name==="*"}i(at).ng=function(){return this.at};i(at).og=function(){return this.name};i(at).pg=function(){return this.expressions};i(at).bd=function(){for(var e=this.expressions,t=st(),n=e.h();n.i();){var r=n.j(),a=$l(r.binaryExpressions);$o(t,a)}return pn(t)};i(at).stringify=function(){var e=this.at?"@":"",t=e+this.name;return t+Cn(this.expressions,"",u,u,u,u,Ym)};i(at).match=function(e,t){var n;if(Xm(this,e.current,t)){var r;e:{var a=this.expressions,o;if(Z(a,Ne)?o=a.l():o=!1,o){r=!0;break e}for(var s=a.h();s.i();){var l=s.j();if(!l.match(e,t)){r=!1;break e}}r=!0}n=r}else n=!1;return n};i(at).pc=function(){return this.at};i(at).qc=function(){return this.name};i(at).ed=function(){return this.expressions};i(at).qg=function(e,t,n){return new at(e,t,n)};i(at).copy=function(e,t,n,r){return e=e===u?this.at:e,t=t===u?this.name:t,n=n===u?this.expressions:n,this.qg(e,t,n)};i(at).toString=function(){return"PropertySegment(at="+this.at+", name="+this.name+", expressions="+O(this.expressions)+")"};i(at).hashCode=function(){var e=Ml(this.at);return e=D(e,31)+Ht(this.name)|0,e=D(e,31)+se(this.expressions)|0,e};i(at).equals=function(e){if(this===e)return!0;if(!(e instanceof at))return!1;var t=e instanceof at?e:$();return!(this.at!==t.at||this.name!==t.name||!E(this.expressions,t.expressions))};function Xe(e,t){t=t===u?null:t,this.segment=e,this.to=t;var n=this,r;e:{var a=this.segment.expressions,o;if(Z(a,Ne)?o=a.l():o=!1,o){r=!1;break e}for(var s=a.h();s.i();){var l=s.j(),c,f;if(l instanceof ce?f=E(l.operator.value,Wr()):f=!1,f?c=E(l.left.value,"depth")&&E(l.right.value,0)||E(l.left.value,"parent")&&E(l.right.value,"null"):c=!1,c){r=!0;break e}}r=!1}n.isMatchRoot=r,this.quickFindValue=Zm(this.segment)}i(Xe).qe=function(){return this.segment};i(Xe).re=function(){return this.to};i(Xe).stringify=function(){var e;return this.to!=null?e=this.to.stringify()+" ":e="",e+this.segment.stringify()};i(Xe).matchContext=function(e,t){return this.segment.match(e,t)?this.to==null?e:this.to.matchContext(e,t):null};i(Xe).rg=function(){return this.isMatchRoot};i(Xe).sg=function(){return this.quickFindValue};i(Xe).a=function(){return this.to==null?1:this.to.to.length+1|0};i(Xe).pc=function(){return this.segment};i(Xe).qc=function(){return this.to};i(Xe).tg=function(e,t){return new Xe(e,t)};i(Xe).copy=function(e,t,n){return e=e===u?this.segment:e,t=t===u?this.to:t,this.tg(e,t)};i(Xe).toString=function(){return"PropertyWrapper(segment="+this.segment.toString()+", to="+Re(this.to)+")"};i(Xe).hashCode=function(){var e=this.segment.hashCode();return e=D(e,31)+(this.to==null?0:this.to.hashCode())|0,e};i(Xe).equals=function(e){if(this===e)return!0;if(!(e instanceof Xe))return!1;var t=e instanceof Xe?e:$();return!(!this.segment.equals(t.segment)||!E(this.to,t.to))};function Nt(e,t,n){this.id=e,this.vid=t,this.text=n,this.canQf=this.id!=null||this.vid!=null||this.text!=null}i(Nt).ug=function(){return this.id};i(Nt).vg=function(){return this.vid};i(Nt).wg=function(){return this.text};i(Nt).xg=function(){return this.canQf};i(Nt).pc=function(){return this.id};i(Nt).qc=function(){return this.vid};i(Nt).ed=function(){return this.text};i(Nt).yg=function(e,t,n){return new Nt(e,t,n)};i(Nt).copy=function(e,t,n,r){return e=e===u?this.id:e,t=t===u?this.vid:t,n=n===u?this.text:n,this.yg(e,t,n)};i(Nt).toString=function(){return"QuickFindValue(id="+this.id+", vid="+this.vid+", text="+this.text+")"};i(Nt).hashCode=function(){var e=this.id==null?0:Ht(this.id);return e=D(e,31)+(this.vid==null?0:Ht(this.vid))|0,e=D(e,31)+(this.text==null?0:Ht(this.text))|0,e};i(Nt).equals=function(e){if(this===e)return!0;if(!(e instanceof Nt))return!1;var t=e instanceof Nt?e:$();return!(this.id!=t.id||this.vid!=t.vid||this.text!=t.text)};function Zm(e){var t=Qa(e.expressions),n,r,a,o;if(t instanceof ce?o=E(t.left.value,"id"):o=!1,o?a=E(t.operator.value,Wr()):a=!1,a){var s=t.right;r=s instanceof fe}else r=!1;r?n=t.right.vd_1:n=null;var l=n,c=Qa(e.expressions),f,h,d,v;if(c instanceof ce?v=E(c.left.value,"vid"):v=!1,v?d=E(c.operator.value,Wr()):d=!1,d){var y=c.right;h=y instanceof fe}else h=!1;h?f=c.right.vd_1:f=null;var p=f,m=Qa(e.expressions),g,_,C,k;if(m instanceof ce?k=E(m.left.value,"text"):k=!1,k?C=E(m.operator.value,Wr())||E(m.operator.value,Fr())||E(m.operator.value,ku())||E(m.operator.value,Cu()):C=!1,C){var x=m.right;_=x instanceof fe}else _=!1;_?g=m.right.vd_1:g=null;var N=g;return new Nt(l,p,N)}function id(){Vi();var e=ad;return rg(),e.r1()}var ad;function od(){Vi();var e=sd;return ig(),e.r1()}var sd;function Qo(){}i(Qo).parse=function(e){return cd(e)};i(Qo).parseOrNull=function(e){var t;try{t=cd(e)}catch(r){var n;if(r instanceof gn)n=null;else throw r;t=n}return t};var ld;function eg(){return ld}function Dt(e,t){this.source=e,this.propertyWrapper=t;var n=this,r;e:{for(var a=this.propertyWrapper.length,o=0,s=this.propertyWrapper;s!=null;){if(s.segment.at){r=(a-1|0)-o|0;break e}var l=s.to;s=l==null?null:l.to,o=o+1|0}r=a-1|0}n.targetIndex=r,this.quickFindValue=this.propertyWrapper.quickFindValue,this.isMatchRoot=this.propertyWrapper.isMatchRoot;for(var c=this,f=this.propertyWrapper.to,h=st();f!=null;){var d=f;h.e(d.segment.operator.key),f=f.to.to}c.connectKeys=pn(h);for(var v=this,y=this.propertyWrapper,p=st();y!=null;){var m=y.segment;dm(p,m.binaryExpressions);var g=y.to;y=g==null?null:g.to}var _=Vv(p);v.binaryExpressions=pn(_);var C=this,k;e:{if(this.connectKeys.length!==0){k=!0;break e}for(var x=this.binaryExpressions,N=0,z=x.length;N<z;){var G=x[N];N=N+1|0;var K;t:{for(var re=G.properties,V=0,je=re.length;V<je;){var Ce=re[V];if(V=V+1|0,bs(id(),Ce)){K=!0;break t}}K=!1}if(K){k=!0;break e}var be;t:{for(var ve=G.methods,xe=0,Le=ve.length;xe<Le;){var et=ve[xe];if(xe=xe+1|0,bs(od(),et)){be=!0;break t}}be=!1}if(be){k=!0;break e}}k=!1}C.useCache=k}i(Dt).zg=function(){return this.source};i(Dt).ah=function(){return this.propertyWrapper};i(Dt).stringify=function(){return this.propertyWrapper.stringify()};i(Dt).bh=function(){return this.targetIndex};i(Dt).matchContext=function(e,t){return this.propertyWrapper.matchContext(new Qe(e),t)};i(Dt).match=function(e,t){var n=this.matchContext(e,t),r;if(n==null)return null;r=n;var a=r;return a.get(this.targetIndex).current};i(Dt).sg=function(){return this.quickFindValue};i(Dt).rg=function(){return this.isMatchRoot};i(Dt).ch=function(){return this.connectKeys};i(Dt).bd=function(){return this.binaryExpressions};i(Dt).dh=function(){return this.useCache};i(Dt).checkType=function(e){try{for(var t=this.binaryExpressions,n=0,r=t.length;n<r;){var a=t[n];if(n=n+1|0,!a.operator.value.od(a.left,a.right))throw new nn(a);var o=xc(a.left,e),s=xc(a.right,e);if(o!=null&&s!=null&&!E(o,s))throw new Ct(a,o,s)}}catch(c){if(c instanceof dt){var l=c;return l}else throw c}return null};function xc(e,t){Vi();var n;return e instanceof qt?n=null:e instanceof ft?n=ma():e instanceof We?n=ga():e instanceof fe?n=ya():e instanceof jt?n=Za(e,t).type:xr(),n}function Za(e,t){Vi();var n;if(e instanceof ke){var r=e.callee,a;if(r instanceof ke)throw He("Unsupported nested call");if(r instanceof Me){var o=t.methods,s;e:{for(var l=0,c=o.length;l<c;){var f=o[l];if(l=l+1|0,f.name===e.callee.bf_1&&f.params.length===e.arguments.m()){s=f;break e}}s=null}var h=s,d;if(h==null)throw new en(e.callee);d=h,a=d}else if(r instanceof Ee){var v=Za(e.callee.object0,t).methods,y;e:{for(var p=0,m=v.length;p<m;){var g=v[p];if(p=p+1|0,g.name===e.callee.property&&g.params.length===e.arguments.m()){y=g;break e}}y=null}var _=y,C;if(_==null)throw new tn(e.callee);C=_,a=C}else xr();for(var k=a,x=0,N=k.params,z=0,G=N.length;z<G;){var K=N[z];z=z+1|0;var re=x;x=re+1|0;var V=e.arguments.k(re);if(!(V instanceof qt))if(V instanceof ft){if(!E(K.type,ma()))throw new ct(e,V,ma())}else if(V instanceof We){if(!E(K.type,ga()))throw new ct(e,V,ga())}else if(V instanceof fe){if(!E(K.type,ya()))throw new ct(e,V,ya())}else V instanceof jt?Za(V,K):xr()}return k.returnType}else if(e instanceof Me){var je=t.props,Ce;e:{for(var be=0,ve=je.length;be<ve;){var xe=je[be];if(be=be+1|0,xe.name===e.bf_1){Ce=xe;break e}}Ce=null}var Le=Ce,et=Le==null?null:Le.type,pe;if(et==null)throw new Yt(e);pe=et,n=pe}else if(e instanceof Ee){var bt=Za(e.object0,t).props,Pt;e:{for(var Gt=0,In=bt.length;Gt<In;){var T=bt[Gt];if(Gt=Gt+1|0,T.name===e.property){Pt=T;break e}}Pt=null}var ae=Pt,me=ae==null?null:ae.type,Oe;if(me==null)throw new Zt(e);Oe=me,n=Oe}else xr();return n}function tg(){return Vi(),["index","parent","depth"]}function ng(){return Vi(),["getChild"]}function rg(){return $a("useCacheProperties",0,ru,function(){return id()},null)}function ig(){return $a("useCacheMethods",0,ru,function(){return od()},null)}var Sc;function Vi(){Sc||(Sc=!0,ad=ha(tg),sd=ha(ng))}function ot(e,t,n,r){r=r===u?null:r;var a=Xt(n,t);go("expected "+e+" in selector at position "+t+", but got "+Re(a==null?null:new ne(a)),this),B(this,ot),this.expectedValue=e,this.position=t,this.source=n,this.jh_1=r}i(ot).kh=function(){return this.expectedValue};i(ot).lh=function(){return this.position};i(ot).zg=function(){return this.source};i(ot).j7=function(){return this.jh_1};i(ot).pc=function(){return this.expectedValue};i(ot).qc=function(){return this.position};i(ot).ed=function(){return this.source};i(ot).fd=function(){return this.jh_1};i(ot).mh=function(e,t,n,r){return new ot(e,t,n,r)};i(ot).copy=function(e,t,n,r,a){return e=e===u?this.expectedValue:e,t=t===u?this.position:t,n=n===u?this.source:n,r=r===u?this.jh_1:r,this.mh(e,t,n,r)};i(ot).toString=function(){return"SyntaxError(expectedValue="+this.expectedValue+", position="+this.position+", source="+this.source+", cause="+Re(this.jh_1)+")"};i(ot).hashCode=function(){var e=Ht(this.expectedValue);return e=D(e,31)+this.position|0,e=D(e,31)+Ht(this.source)|0,e=D(e,31)+(this.jh_1==null?0:se(this.jh_1))|0,e};i(ot).equals=function(e){if(this===e)return!0;if(!(e instanceof ot))return!1;var t=e instanceof ot?e:$();return!(this.expectedValue!==t.expectedValue||this.position!==t.position||this.source!==t.source||!E(this.jh_1,t.jh_1))};function ye(e,t,n,r){n=n===u?"":n,r=r===u?null:r;var a;if(t>=j(e))a=!0;else{var o;j(n)>0?o=!Wt(n,M(e,t)):o=!1,a=o}if(a)throw new ot(r==null?n:r,t,O(e))}function rt(e,t,n,r){throw n=n===u?"":n,r=r===u?null:r,new ot(n,t,O(e),r)}function ag(e){return function(t,n,r){return e(t,n,r)}}function og(e){return function(t){return zv(e(t))}}function Nu(){}i(Nu).multiplatformBuild=function(e,t,n,r,a){var o=ag(t);return new Ye(e,o,n,og(r),a)};var ud;function sg(){return ud}function lg(e,t,n){return null}function ug(e){return function(t){for(var n=e(t);n!=null;)n=e(At(n));return n}}function Zr(e,t,n){this.vh_1=e,this.wh_1=t,Tt.call(this,n)}i(Zr).bi=function(e,t){var n=this.ci(e,t);return n.k6_1=ue,n.l6_1=null,n.q6()};i(Zr).h7=function(e,t){return this.bi(e instanceof dr?e:$(),t)};i(Zr).q6=function(){var e=this.k6_1;e:do try{var t=this.i6_1;switch(t){case 0:if(this.j6_1=4,this.yh_1=Tl(this.vh_1(this.wh_1)),this.yh_1.l())return ue;zl(this.yh_1);var n=this;n.zh_1=st(),this.i6_1=1;continue e;case 1:if(this.ai_1=this.yh_1.x2(Pa(this.yh_1)),this.i6_1=2,e=this.xh_1.p9(this.ai_1,this),e===pr())return e;continue e;case 2:for(var r=this.vh_1(this.ai_1).h();r.i();){var a=r.j();this.zh_1.e(a)}if(!this.zh_1.l()){var o=this.zh_1.m()-1|0;if(0<=o)do{var s=o;o=o+-1|0,this.yh_1.e(this.zh_1.k(s))}while(0<=o);this.zh_1.n3()}if(!this.yh_1.l()){this.i6_1=1;continue e}this.i6_1=3;continue e;case 3:return ue;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(Zr).ci=function(e,t){var n=new Zr(this.vh_1,this.wh_1,t);return n.xh_1=e,n};function cg(e,t,n){var r=new Zr(e,t,n),a=function(o,s){return r.bi(o,s)};return a.$arity=1,a}function fg(e){return function(t){return La(cg(e,t,null))}}function hg(e){return function(t,n){return e.checkOffset(t)}}function dg(e){return function(t,n){var r=e(t),a;n.maxOffset!=null?a=Zc(r,At(n.maxOffset)+1|0):a=r;var o=a;return jl(o,hg(n))}}function ei(e,t,n,r){this.li_1=e,this.mi_1=t,this.ni_1=n,Tt.call(this,r)}i(ei).bi=function(e,t){var n=this.ci(e,t);return n.k6_1=ue,n.l6_1=null,n.q6()};i(ei).h7=function(e,t){return this.bi(e instanceof dr?e:$(),t)};i(ei).q6=function(){var e=this.k6_1;e:do try{var t=this.i6_1;switch(t){case 0:this.j6_1=6;var n=this,r=this.li_1(this.mi_1),a;if(r==null)return ue;a=r,n.pi_1=a,this.qi_1=0,this.i6_1=1;continue e;case 1:if(this.pi_1==null){this.i6_1=5;continue e}if(this.ri_1=this.pi_1,this.ri_1==null){this.si_1=null,this.i6_1=4;continue e}else{var o=this;o.ti_1=this.ri_1;var s=this;if(s.ui_1=this.ti_1,this.ni_1.checkOffset(this.qi_1)){if(this.i6_1=2,e=this.oi_1.p9(this.ui_1,this),e===pr())return e;continue e}else{this.i6_1=3;continue e}}case 2:this.i6_1=3;continue e;case 3:this.qi_1=this.qi_1+1|0;var l=this.ni_1.maxOffset;if(l!=null){if(this.qi_1>l)return ue}var c=this;this.pi_1=this.li_1(this.ui_1),c.si_1=ue,this.i6_1=4;continue e;case 4:this.i6_1=1;continue e;case 5:return ue;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(ei).ci=function(e,t){var n=new ei(this.li_1,this.mi_1,this.ni_1,t);return n.oi_1=e,n};function vg(e,t,n,r){var a=new ei(e,t,n,r),o=function(s,l){return a.bi(s,l)};return o.$arity=1,o}function pg(e){return function(t,n){return La(vg(e,t,n,null))}}function _g(e){return function(t){return!E(t,e)}}function mg(e){return function(t,n){return e.checkOffset(t)}}function gg(e,t){return function(n,r){var a=e(n),o;if(a!=null){var s=t(a),l=Tl(ep(s,_g(n)));zl(l);var c=Gv(l);o=jl(c,mg(r))}else o=Hi();return o}}function yg(e){return function(t){return!E(t,e)}}function bg(e){return function(t,n){return e.checkOffset(t)}}function wg(e,t){return function(n,r){var a=e(n),o;if(a!=null){var s=t(a),l=tp(np(s,yg(n)),1),c;r.maxOffset!=null?c=Zc(l,At(r.maxOffset)+1|0):c=l;var f=c;o=jl(f,bg(r))}else o=Hi();return o}}function ti(e,t,n,r){this.dj_1=e,this.ej_1=t,this.fj_1=n,Tt.call(this,r)}i(ti).bi=function(e,t){var n=this.ci(e,t);return n.k6_1=ue,n.l6_1=null,n.q6()};i(ti).h7=function(e,t){return this.bi(e instanceof dr?e:$(),t)};i(ti).q6=function(){var e=this.k6_1;e:do try{var t=this.i6_1;switch(t){case 0:if(this.j6_1=5,this.hj_1=Tl(this.dj_1(this.ej_1)),this.hj_1.l())return ue;zl(this.hj_1);var n=this;n.ij_1=st(),this.jj_1=0,this.i6_1=1;continue e;case 1:if(this.kj_1=this.hj_1.x2(Pa(this.hj_1)),this.fj_1.checkOffset(this.jj_1)){if(this.i6_1=2,e=this.gj_1.p9(this.kj_1,this),e===pr())return e;continue e}else{this.i6_1=3;continue e}case 2:this.i6_1=3;continue e;case 3:this.jj_1=this.jj_1+1|0;var r=this.fj_1.maxOffset;if(r!=null){if(this.jj_1>r)return ue}for(var a=this.dj_1(this.kj_1).h();a.i();){var o=a.j();this.ij_1.e(o)}if(!this.ij_1.l()){var s=this.ij_1.m()-1|0;if(0<=s)do{var l=s;s=s+-1|0,this.hj_1.e(this.ij_1.k(l))}while(0<=s);this.ij_1.n3()}if(!this.hj_1.l()){this.i6_1=1;continue e}this.i6_1=4;continue e;case 4:return ue;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(ti).ci=function(e,t){var n=new ti(this.dj_1,this.ej_1,this.fj_1,t);return n.gj_1=e,n};function kg(e,t,n,r){var a=new ti(e,t,n,r),o=function(s,l){return a.bi(s,l)};return o.$arity=1,o}function Cg(e){return function(t,n){return La(kg(e,t,n,null))}}function ni(e,t,n,r){this.tj_1=e,this.uj_1=t,this.vj_1=n,Tt.call(this,r)}i(ni).bi=function(e,t){var n=this.ci(e,t);return n.k6_1=ue,n.l6_1=null,n.q6()};i(ni).h7=function(e,t){return this.bi(e instanceof dr?e:$(),t)};i(ni).q6=function(){var e=this.k6_1;e:do try{var t=this.i6_1;switch(t){case 0:if(this.j6_1=7,this.xj_1=this.tj_1.match(this.uj_1,this.vj_1),this.xj_1==null){this.yj_1=null,this.i6_1=2;continue e}else{var n=this;n.zj_1=this.xj_1;var r=this;if(r.ak_1=this.zj_1,this.i6_1=1,e=this.wj_1.p9(this.ak_1,this),e===pr())return e;continue e}case 1:var a=this;a.yj_1=ue,this.i6_1=2;continue e;case 2:var o=this;o.bk_1=this.vj_1.getDescendants(this.uj_1),this.ck_1=this.bk_1.h(),this.i6_1=3;continue e;case 3:if(!this.ck_1.i()){this.i6_1=6;continue e}this.dk_1=this.ck_1.j();var s=this;if(s.ek_1=this.dk_1,this.fk_1=this.tj_1.match(this.ek_1,this.vj_1),this.fk_1==null){this.gk_1=null,this.i6_1=5;continue e}else{var l=this;l.hk_1=this.fk_1;var c=this;if(c.ik_1=this.hk_1,this.i6_1=4,e=this.wj_1.p9(this.ik_1,this),e===pr())return e;continue e}case 4:var f=this;f.gk_1=ue,this.i6_1=5;continue e;case 5:this.i6_1=3;continue e;case 6:return ue;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(ni).ci=function(e,t){var n=new ni(this.tj_1,this.uj_1,this.vj_1,t);return n.wj_1=e,n};function xg(e,t,n,r){var a=new ni(e,t,n,r),o=function(s,l){return a.bi(s,l)};return o.$arity=1,o}function Sg(e){return function(t,n){return La(xg(n,t,e,null))}}function $g(e){return function(t,n){return ef(e.de_1(t,n))}}function ri(e,t,n,r){this.rk_1=e,this.sk_1=t,this.tk_1=n,Tt.call(this,r)}i(ri).hl=function(e,t){var n=this.il(e,t);return n.k6_1=ue,n.l6_1=null,n.q6()};i(ri).h7=function(e,t){return this.hl(e instanceof dr?e:$(),t)};i(ri).q6=function(){var e=this.k6_1;e:do try{var t=this.i6_1;switch(t){case 0:if(this.j6_1=7,this.vk_1=this.rk_1.matchContext(this.sk_1,this.tk_1),this.vk_1==null){this.wk_1=null,this.i6_1=2;continue e}else{var n=this;n.xk_1=this.vk_1;var r=this;if(r.yk_1=this.xk_1,this.i6_1=1,e=this.uk_1.p9(this.yk_1,this),e===pr())return e;continue e}case 1:var a=this;a.wk_1=ue,this.i6_1=2;continue e;case 2:var o=this;o.zk_1=this.tk_1.getDescendants(this.sk_1),this.al_1=this.zk_1.h(),this.i6_1=3;continue e;case 3:if(!this.al_1.i()){this.i6_1=6;continue e}this.bl_1=this.al_1.j();var s=this;if(s.cl_1=this.bl_1,this.dl_1=this.rk_1.matchContext(this.cl_1,this.tk_1),this.dl_1==null){this.el_1=null,this.i6_1=5;continue e}else{var l=this;l.fl_1=this.dl_1;var c=this;if(c.gl_1=this.fl_1,this.i6_1=4,e=this.uk_1.p9(this.gl_1,this),e===pr())return e;continue e}case 4:var f=this;f.el_1=ue,this.i6_1=5;continue e;case 5:this.i6_1=3;continue e;case 6:return ue;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(ri).il=function(e,t){var n=new ri(this.rk_1,this.sk_1,this.tk_1,t);return n.uk_1=e,n};function Eg(e,t,n,r){var a=new ri(e,t,n,r),o=function(s,l){return a.hl(s,l)};return o.$arity=1,o}function Ng(e){return function(t,n){return La(Eg(n,t,e,null))}}function Ig(e){return function(t,n){return ef(e.ee_1(t,n))}}function qg(e){return function(t,n){var r=tf(e.de_1(t,n)),a=Z(r,On)?r:$(),o=pn(a);return Mi(o)?o:$()}}function Ag(e){return function(t,n){var r=e.ee_1(t,n),a=tf(r);return pn(a)}}function Ye(e,t,n,r,a,o,s,l,c,f,h,d){var v;t===u?v=lg:v=t,t=v;var y;o===u?y=ug(a):y=o,o=y;var p;s===u?p=fg(r):p=s,s=p;var m;l===u?m=dg(r):m=l,l=m;var g;c===u?g=pg(a):g=c,c=g;var _;f===u?_=gg(a,r):_=f,f=_;var C;h===u?C=wg(a,r):C=h,h=C;var k;d===u?k=Cg(r):k=d,d=k,this.getAttr=e,this.getInvoke=t,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;var x=this;x.de_1=Sg(this);var N=this;N.querySelector=$g(this);var z=this;z.ee_1=Ng(this);var G=this;G.querySelectorContext=Ig(this);var K=this;K.querySelectorAllArray=qg(this);var re=this;re.querySelectorAllContextArray=Ag(this)}i(Ye).jl=function(){return this.getAttr};i(Ye).kl=function(){return this.getInvoke};i(Ye).ll=function(){return this.getName};i(Ye).ml=function(){return this.getChildren};i(Ye).nl=function(){return this.getParent};i(Ye).ol=function(){return this.getRoot};i(Ye).pl=function(){return this.getDescendants};i(Ye).ql=function(){return this.traverseChildren};i(Ye).rl=function(){return this.traverseAncestors};i(Ye).sl=function(){return this.traverseBeforeBrothers};i(Ye).tl=function(){return this.traverseAfterBrothers};i(Ye).ul=function(){return this.traverseDescendants};i(Ye).vl=function(){return this.de_1};i(Ye).wl=function(){return this.querySelector};i(Ye).xl=function(){return this.ee_1};i(Ye).yl=function(){return this.querySelectorContext};i(Ye).zl=function(){return this.querySelectorAllArray};i(Ye).am=function(){return this.querySelectorAllContextArray};function It(e){vi.call(this),this.numbers=e;var t=this,n=Qa(this.numbers);t.bm_1=(n==null?1:n)-1|0,this.cm_1=Jv(this.numbers);for(var r=this,a=this.numbers,o=qi(Ms(a,10)),s=a.h();s.i();){var l=s.j(),c=l-1|0;o.e(c)}r.dm_1=o}i(It).em=function(){return this.numbers};i(It).yd=function(){return this.bm_1};i(It).zd=function(){return this.cm_1};i(It).checkOffset=function(e){return om(this.dm_1,e)>=0};i(It).getOffset=function(e){return this.numbers.k(e)};i(It).stringify=function(){if(this.numbers.m()===1){var e;return ia(this.numbers)===1?e="":e=ia(this.numbers).toString(),e}return"("+Cn(this.numbers,",")+")"};i(It).pc=function(){return this.numbers};i(It).fm=function(e){return new It(e)};i(It).copy=function(e,t){return e=e===u?this.numbers:e,this.fm(e)};i(It).toString=function(){return"TupleExpression(numbers="+O(this.numbers)+")"};i(It).hashCode=function(){return se(this.numbers)};i(It).equals=function(e){if(this===e)return!0;if(!(e instanceof It))return!1;var t=e instanceof It?e:$();return!!E(this.numbers,t.numbers)};function Vr(){dl=this,an.call(this,"boolean")}i(Vr).toString=function(){return"BooleanType"};i(Vr).hashCode=function(){return 1452179029};i(Vr).equals=function(e){return this===e?!0:e instanceof Vr?(e instanceof Vr||$(),!0):!1};var dl;function ma(){return dl==null&&new Vr,dl}function Gr(){vl=this,an.call(this,"int")}i(Gr).toString=function(){return"IntType"};i(Gr).hashCode=function(){return-1601449956};i(Gr).equals=function(e){return this===e?!0:e instanceof Gr?(e instanceof Gr||$(),!0):!1};var vl;function ga(){return vl==null&&new Gr,vl}function Jr(){pl=this,an.call(this,"string")}i(Jr).toString=function(){return"StringType"};i(Jr).hashCode=function(){return 1719560632};i(Jr).equals=function(e){return this===e?!0:e instanceof Jr?(e instanceof Jr||$(),!0):!1};var pl;function ya(){return pl==null&&new Jr,pl}function rn(e){an.call(this,"object"),this.name=e}i(rn).og=function(){return this.name};i(rn).pc=function(){return this.name};i(rn).gm=function(e){return new rn(e)};i(rn).copy=function(e,t){return e=e===u?this.name:e,this.gm(e)};i(rn).toString=function(){return"ObjectType(name="+this.name+")"};i(rn).hashCode=function(){return Ht(this.name)};i(rn).equals=function(e){if(this===e)return!0;if(!(e instanceof rn))return!1;var t=e instanceof rn?e:$();return this.name===t.name};function an(e){this.key=e}i(an).q1=function(){return this.key};function de(e,t,n){var r;n===u?r=[]:r=n,n=r,this.name=e,this.returnType=t,this.params=n}i(de).og=function(){return this.name};i(de).hm=function(){return this.returnType};i(de).im=function(){return this.params};i(de).equals=function(e){return this===e?!0:!(e==null||!lo(this).equals(lo(e))||(e instanceof de||$(),this.name!==e.name)||!this.returnType.equals(e.returnType)||!Es(this.params,e.params))};i(de).hashCode=function(){var e=Ht(this.name);return e=D(31,e)+this.returnType.hashCode()|0,e=D(31,e)+Ns(this.params)|0,e};i(de).pc=function(){return this.name};i(de).qc=function(){return this.returnType};i(de).ed=function(){return this.params};i(de).jm=function(e,t,n){return new de(e,t,n)};i(de).copy=function(e,t,n,r){return e=e===u?this.name:e,t=t===u?this.returnType:t,n=n===u?this.params:n,this.jm(e,t,n)};i(de).toString=function(){return"MethodInfo(name="+this.name+", returnType="+this.returnType.toString()+", params="+O(this.params)+")"};function ee(e,t){this.name=e,this.type=t}i(ee).og=function(){return this.name};i(ee).rf=function(){return this.type};i(ee).pc=function(){return this.name};i(ee).qc=function(){return this.type};i(ee).km=function(e,t){return new ee(e,t)};i(ee).copy=function(e,t,n){return e=e===u?this.name:e,t=t===u?this.type:t,this.km(e,t)};i(ee).toString=function(){return"PropInfo(name="+this.name+", type="+this.type.toString()+")"};i(ee).hashCode=function(){var e=Ht(this.name);return e=D(e,31)+this.type.hashCode()|0,e};i(ee).equals=function(e){if(this===e)return!0;if(!(e instanceof ee))return!1;var t=e instanceof ee?e:$();return!(this.name!==t.name||!this.type.equals(t.type))};function it(e,t,n){var r;t===u?r=[]:r=t,t=r;var a;n===u?a=[]:a=n,n=a,this.type=e,this.props=t,this.methods=n}i(it).rf=function(){return this.type};i(it).lm=function(e){this.props=e};i(it).mm=function(){return this.props};i(it).nm=function(e){this.methods=e};i(it).dd=function(){return this.methods};i(it).equals=function(e){return this===e?!0:!(e==null||!lo(this).equals(lo(e))||(e instanceof it||$(),!E(this.type,e.type))||!Es(this.props,e.props)||!Es(this.methods,e.methods))};i(it).hashCode=function(){var e=se(this.type);return e=D(31,e)+Ns(this.props)|0,e=D(31,e)+Ns(this.methods)|0,e};i(it).pc=function(){return this.type};i(it).qc=function(){return this.props};i(it).ed=function(){return this.methods};i(it).om=function(e,t,n){return new it(e,t,n)};i(it).copy=function(e,t,n,r){return e=e===u?this.type:e,t=t===u?this.props:t,n=n===u?this.methods:n,this.om(e,t,n)};i(it).toString=function(){return"TypeInfo(type="+O(this.type)+", props="+O(this.props)+", methods="+O(this.methods)+")"};function Tg(e){return e.stringify()}function jg(e){return!1}function jt(e){Ze.call(this,e,"var"),this.rm_1=e}i(jt).r1=function(){return this.rm_1};function Me(e,t){jt.call(this,t),this.af_1=e,this.bf_1=t,this.cf_1=this.af_1+this.bf_1.length|0}i(Me).tc=function(){return this.af_1};i(Me).r1=function(){return this.bf_1};i(Me).uc=function(){return this.cf_1};i(Me).nd=function(e,t){return t.getAttr(e,this.bf_1)};i(Me).cd=function(){return[this.bf_1]};i(Me).dd=function(){return[]};i(Me).pc=function(){return this.af_1};i(Me).qc=function(){return this.bf_1};i(Me).sm=function(e,t){return new Me(e,t)};i(Me).copy=function(e,t,n){return e=e===u?this.af_1:e,t=t===u?this.bf_1:t,this.sm(e,t)};i(Me).toString=function(){return"Identifier(start="+this.af_1+", value="+this.bf_1+")"};i(Me).hashCode=function(){var e=this.af_1;return e=D(e,31)+Ht(this.bf_1)|0,e};i(Me).equals=function(e){if(this===e)return!0;if(!(e instanceof Me))return!1;var t=e instanceof Me?e:$();return!(this.af_1!==t.af_1||this.bf_1!==t.bf_1)};function Ee(e,t,n,r){jt.call(this,n.stringify()+"."+r),this.if_1=e,this.jf_1=t,this.object0=n,this.property=r}i(Ee).tc=function(){return this.if_1};i(Ee).uc=function(){return this.jf_1};i(Ee).tm=function(){return this.object0};i(Ee).um=function(){return this.property};i(Ee).nd=function(e,t){var n=this.object0.nd(e,t);return n==null?null:t.getAttr(n,this.property)};i(Ee).cd=function(){return Ii([this.object0.properties,[this.property]])};i(Ee).dd=function(){return this.object0.methods};i(Ee).pc=function(){return this.if_1};i(Ee).qc=function(){return this.jf_1};i(Ee).ed=function(){return this.object0};i(Ee).fd=function(){return this.property};i(Ee).vm=function(e,t,n,r){return new Ee(e,t,n,r)};i(Ee).copy=function(e,t,n,r,a){return e=e===u?this.if_1:e,t=t===u?this.jf_1:t,n=n===u?this.object0:n,r=r===u?this.property:r,this.vm(e,t,n,r)};i(Ee).toString=function(){return"MemberExpression(start="+this.if_1+", end="+this.jf_1+", object0="+O(this.object0)+", property="+this.property+")"};i(Ee).hashCode=function(){var e=this.if_1;return e=D(e,31)+this.jf_1|0,e=D(e,31)+se(this.object0)|0,e=D(e,31)+Ht(this.property)|0,e};i(Ee).equals=function(e){if(this===e)return!0;if(!(e instanceof Ee))return!1;var t=e instanceof Ee?e:$();return!(this.if_1!==t.if_1||this.jf_1!==t.jf_1||!E(this.object0,t.object0)||this.property!==t.property)};function ke(e,t,n,r){var a=n.stringify();jt.call(this,a+"("+Cn(r,",",u,u,u,u,Tg)+")"),this.hh_1=e,this.ih_1=t,this.callee=n,this.arguments=r}i(ke).tc=function(){return this.hh_1};i(ke).uc=function(){return this.ih_1};i(ke).wm=function(){return this.callee};i(ke).xm=function(){return this.arguments};i(ke).nd=function(e,t){var n=this.callee,r;if(n instanceof ke)r=null;else if(n instanceof Me){for(var a=this.arguments,o=qi(Ms(a,10)),s=a.h();s.i();){var l=s.j(),c=l.nd(e,t);if(c==null)return null;o.e(c)}r=t.getInvoke(e,this.callee.bf_1,o)}else if(n instanceof Ee){var f=this.callee.object0.nd(e,t);if(f==null)return null;for(var h=f,d=this.arguments,v=qi(Ms(d,10)),y=d.h();y.i();){var p=y.j(),m=p.nd(e,t);if(m==null)return null;v.e(m)}r=t.getInvoke(h,this.callee.property,v)}else xr();return r};i(ke).cd=function(){for(var e=El(this.callee.properties),t=this.arguments,n=st(),r=t.h();r.i();){var a=r.j(),o=$l(a.properties);$o(n,o)}var s=Qc(e,n);return pn(s)};i(ke).dd=function(){var e=this.callee,t;e instanceof ke?t=this.callee.methods:e instanceof Me?t=[this.callee.bf_1]:e instanceof Ee?t=Ii([this.callee.object0.methods,[this.callee.property]]):xr();for(var n=El(t),r=this.arguments,a=st(),o=r.h();o.i();){var s=o.j(),l=$l(s.methods);$o(a,l)}var c=Qc(n,a);return pn(c)};i(ke).pc=function(){return this.hh_1};i(ke).qc=function(){return this.ih_1};i(ke).ed=function(){return this.callee};i(ke).fd=function(){return this.arguments};i(ke).ym=function(e,t,n,r){return new ke(e,t,n,r)};i(ke).copy=function(e,t,n,r,a){return e=e===u?this.hh_1:e,t=t===u?this.ih_1:t,n=n===u?this.callee:n,r=r===u?this.arguments:r,this.ym(e,t,n,r)};i(ke).toString=function(){return"CallExpression(start="+this.hh_1+", end="+this.ih_1+", callee="+O(this.callee)+", arguments="+O(this.arguments)+")"};i(ke).hashCode=function(){var e=this.hh_1;return e=D(e,31)+this.ih_1|0,e=D(e,31)+se(this.callee)|0,e=D(e,31)+se(this.arguments)|0,e};i(ke).equals=function(e){if(this===e)return!0;if(!(e instanceof ke))return!1;var t=e instanceof ke?e:$();return!(this.hh_1!==t.hh_1||this.ih_1!==t.ih_1||!E(this.callee,t.callee)||!E(this.arguments,t.arguments))};function Vt(e,t){Ze.call(this,e,t),this.bn_1=e,this.cn_1=t}i(Vt).r1=function(){return this.bn_1};i(Vt).rf=function(){return this.cn_1};i(Vt).nd=function(e,t){return this.value};i(Vt).cd=function(){return[]};i(Vt).dd=function(){return[]};function qt(e){Vt.call(this,null,"null"),this.hn_1=e,this.in_1=this.hn_1+4|0}i(qt).tc=function(){return this.hn_1};i(qt).uc=function(){return this.in_1};i(qt).pc=function(){return this.hn_1};i(qt).jn=function(e){return new qt(e)};i(qt).copy=function(e,t){return e=e===u?this.hn_1:e,this.jn(e)};i(qt).toString=function(){return"NullLiteral(start="+this.hn_1+")"};i(qt).hashCode=function(){return this.hn_1};i(qt).equals=function(e){if(this===e)return!0;if(!(e instanceof qt))return!1;var t=e instanceof qt?e:$();return this.hn_1===t.hn_1};function ft(e,t){Vt.call(this,t,"boolean"),this.on_1=e,this.pn_1=t,this.qn_1=this.on_1+(this.pn_1?4:5)|0}i(ft).tc=function(){return this.on_1};i(ft).r1=function(){return this.pn_1};i(ft).uc=function(){return this.qn_1};i(ft).pc=function(){return this.on_1};i(ft).qc=function(){return this.pn_1};i(ft).rn=function(e,t){return new ft(e,t)};i(ft).copy=function(e,t,n){return e=e===u?this.on_1:e,t=t===u?this.pn_1:t,this.rn(e,t)};i(ft).toString=function(){return"BooleanLiteral(start="+this.on_1+", value="+this.pn_1+")"};i(ft).hashCode=function(){var e=this.on_1;return e=D(e,31)+Ml(this.pn_1)|0,e};i(ft).equals=function(e){if(this===e)return!0;if(!(e instanceof ft))return!1;var t=e instanceof ft?e:$();return!(this.on_1!==t.on_1||this.pn_1!==t.pn_1)};function We(e,t,n){Vt.call(this,n,"int"),this.wn_1=e,this.xn_1=t,this.yn_1=n}i(We).tc=function(){return this.wn_1};i(We).uc=function(){return this.xn_1};i(We).r1=function(){return this.yn_1};i(We).pc=function(){return this.wn_1};i(We).qc=function(){return this.xn_1};i(We).ed=function(){return this.yn_1};i(We).zn=function(e,t,n){return new We(e,t,n)};i(We).copy=function(e,t,n,r){return e=e===u?this.wn_1:e,t=t===u?this.xn_1:t,n=n===u?this.yn_1:n,this.zn(e,t,n)};i(We).toString=function(){return"IntLiteral(start="+this.wn_1+", end="+this.xn_1+", value="+this.yn_1+")"};i(We).hashCode=function(){var e=this.wn_1;return e=D(e,31)+this.xn_1|0,e=D(e,31)+this.yn_1|0,e};i(We).equals=function(e){if(this===e)return!0;if(!(e instanceof We))return!1;var t=e instanceof We?e:$();return!(this.wn_1!==t.wn_1||this.xn_1!==t.xn_1||this.yn_1!==t.yn_1)};function fe(e,t,n,r){r=r===u?null:r,Vt.call(this,n,"string"),this.td_1=e,this.ud_1=t,this.vd_1=n,this.wd_1=r;var a=this,o=this.wd_1,s;if(o==null)s=null;else{var l=uy(this.vd_1);s=l==null?o:l}var c=s,f;c==null?f=jg:f=c,a.xd_1=f}i(fe).tc=function(){return this.td_1};i(fe).uc=function(){return this.ud_1};i(fe).r1=function(){return this.vd_1};i(fe).ao=function(){return this.wd_1};i(fe).stringify=function(){return ly(this.vd_1)};i(fe).bo=function(){return this.xd_1};i(fe).pc=function(){return this.td_1};i(fe).qc=function(){return this.ud_1};i(fe).ed=function(){return this.vd_1};i(fe).co=function(){return this.wd_1};i(fe).do=function(e,t,n,r){return new fe(e,t,n,r)};i(fe).copy=function(e,t,n,r,a){return e=e===u?this.td_1:e,t=t===u?this.ud_1:t,n=n===u?this.vd_1:n,r=r===u?this.wd_1:r,this.do(e,t,n,r)};i(fe).toString=function(){return"StringLiteral(start="+this.td_1+", end="+this.ud_1+", value="+this.vd_1+", matches="+Re(this.wd_1)+")"};i(fe).hashCode=function(){var e=this.td_1;return e=D(e,31)+this.ud_1|0,e=D(e,31)+Ht(this.vd_1)|0,e=D(e,31)+(this.wd_1==null?0:se(this.wd_1))|0,e};i(fe).equals=function(e){if(this===e)return!0;if(!(e instanceof fe))return!1;var t=e instanceof fe?e:$();return!(this.td_1!==t.td_1||this.ud_1!==t.ud_1||this.vd_1!==t.vd_1||!E(this.wd_1,t.wd_1))};function Ze(e,t){this.ld_1=e,this.md_1=t}i(Ze).r1=function(){return this.ld_1};i(Ze).rf=function(){return this.md_1};i(Ze).stringify=function(){return Re(this.value)};function De(e,t){e=e===u?"":e,this.eo_1=e,this.fo_1=t}i(De).go=function(e,t){return this.fo_1(e,t,this.eo_1)};i(De).toString=function(){return"Parser(prefix="+this.eo_1+", temp="+O(this.fo_1)+")"};i(De).hashCode=function(){var e=Ht(this.eo_1);return e=D(e,31)+se(this.fo_1)|0,e};i(De).equals=function(e){if(this===e)return!0;if(!(e instanceof De))return!1;var t=e instanceof De?e:$();return!(this.eo_1!==t.eo_1||!E(this.fo_1,t.fo_1))};function Te(e,t){t=t===u?0:t,this.ho_1=e,this.io_1=t}i(Te).toString=function(){return"ParserResult(data="+Re(this.ho_1)+", length="+this.io_1+")"};i(Te).hashCode=function(){var e=this.ho_1==null?0:se(this.ho_1);return e=D(e,31)+this.io_1|0,e};i(Te).equals=function(e){if(this===e)return!0;if(!(e instanceof Te))return!1;var t=e instanceof Te?e:$();return!(!E(this.ho_1,t.ho_1)||this.io_1!==t.io_1)};function Pg(e,t){var n=0,r=Xt(t,n);if(!E(r==null?null:new ne(r),new ne(40)))return!1;n=n+1|0,n=n+e.jo_1.go(t,n).io_1|0;var a=Br(48,57),o=Xt(t,n),s,l=o;if((l==null?null:new ne(l))!=null?s=a.xb(o):s=!1,!s)return!1;n=n+e.no_1.go(t,n).io_1|0,n=n+e.jo_1.go(t,n).io_1|0;var c=Xt(t,n);return E(c==null?null:new ne(c),new ne(44))}function Rg(e,t,n){var r=Uo().allSubClasses,a;e:{for(var o=0,s=r.length;o<s;){var l=r[o];if(o=o+1|0,Do(t,l.key,n)){a=l;break e}}a=null}var c=a,f;c==null?rt(t,n,"CompareOperator"):f=c;var h=f;return new Ue(n,n+h.key.length|0,h)}function _l(e,t,n){var r=t;if((r==null?null:new ne(r))==null)return!1;var a,o,s,l=t;return E(l==null?null:new ne(l),new ne(95))?s=!0:s=Br(97,122).xb(t),s?o=!0:o=Br(65,90).xb(t),o?a=!0:a=!n&&Br(48,57).xb(t),a}function $c(e,t,n,r){return n=n===u?!1:n,_l(e,t,n)}function vs(e,t,n,r){if(Do(t,r,n)){var a=Xt(t,n+r.length|0),o,s=a;if((s==null?null:new ne(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 Ec(e,t,n){var r="tfn-"+e.uo_1.eo_1+e.no_1.eo_1+e.vo_1;ye(t,n,r);var a=e.cp(t,n);return a}function Mg(e,t,n){var r=n,a=Ec(e,t,r);r=r+a.a()|0,r=r+e.jo_1.go(t,r).io_1|0;var o=Rg(e,t,r);r=r+o.a()|0,r=r+e.jo_1.go(t,r).io_1|0;var s=Ec(e,t,r),l,c;if(E(o.value,Ho())||E(o.value,xu())?c=s instanceof fe:c=!1,c){var f;try{f=py(s.vd_1)}catch(p){var h;if(p instanceof gn){var d=p;rt(t,r,"valid primitive string regex",d)}else throw p;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 ce(n,r,a,o,y)}function Lg(e,t,n){var r=n;r=r+e.jo_1.go(t,r).io_1|0;var a=$u().allSubClasses,o;e:{for(var s=a.h();s.i();){var l=s.j();if(Do(t,l.key,n)){o=l;break e}}o=null}var c=o,f;c==null?rt(t,n,"LogicalOperator"):f=c;var h=f;return new Ue(r,r+h.key.length|0,h)}function Og(e,t,n){var r=n;r=r+e.jo_1.go(t,r).io_1|0,ye(t,r,"!");var a=r;r=r+1|0,ye(t,r,"(");var o=e.dp(t,r,!0);return r=r+o.a()|0,new _t(a,o)}function zg(e,t,n){for(var r=t,a="";r<j(e)&&Wt(n,M(e,r));)a=a+Ke(M(e,r)),r=r+1|0;return new Te(a,r-t|0)}function Fg(e,t,n){return ye(e,t,n,"whitespace"),Y().jo_1.go(e,t)}function Dg(e,t,n){var r=t,a=Xt(e,r),o,s=a;if((s==null?null:new ne(s))!=null?o=!Wt(n,a):o=!1,o)return new Te("");ye(e,r,n,"*0-9a-zA-Z_");var l=Ke(M(e,r));if(r=r+1|0,l==="*")return new Te(l,r-t|0);var c="1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM_.";e:for(;r<j(e);){if(M(l,(r-t|0)-1|0)===46&&ye(e,r,n,"[0-9a-zA-Z_]"),Wt(c,M(e,r)))l=l+Ke(M(e,r));else break e;r=r+1|0}return new Te(l,r-t|0)}function Bg(e){return e.key}function Kg(e,t,n){var r=Vo().allSubClasses,a;e:{for(var o=r.h();o.i();){var s=o.j();if(Do(e,s.key,t)){a=s;break e}}a=null}var l=a,c;l==null?rt(e,t,"ConnectOperator"):c=l;var f=c;return new Te(f,f.key.length)}function Ug(e,t,n){var r=t;ye(e,r,n,"number");for(var a="";r<j(e)&&Wt(n,M(e,r));)a=a+Ke(M(e,r)),r=r+1|0;var o;try{o=V0(a)}catch(l){var s;if(l instanceof ci)rt(e,t,"valid format number");else throw l;o=s}return new Te(o,r-t|0)}function Hg(e,t,n){var r=t;ye(e,r,n);var a=M(e,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+Y().jo_1.go(e,r).io_1|0,ye(e,r,Y().no_1.eo_1+"n");var l;if(Wt(Y().no_1.eo_1,M(e,r))){var c=Y().no_1.go(e,r);r=r+c.io_1|0,l=c.ho_1}else l=1;var f=D(l,s);return r<j(e)&&M(e,r)===110?(r=r+1|0,new Te(new xn(1,f),r-t|0)):new Te(new xn(0,f),r-t|0)}function Wg(e,t,n){var r=t;ye(e,r,n);var a=st();if(M(e,r)===40){for(r=r+1|0,r=r+Y().jo_1.go(e,r).io_1|0,ye(e,r,Y().oo_1.eo_1);M(e,r)!==41;){a.m()>0&&ye(e,r,"+-");var o=Y().oo_1.go(e,r);a.e(o),r=r+o.io_1|0,r=r+Y().jo_1.go(e,r).io_1|0,r>=j(e)&&ye(e,r,")")}r=r+1|0}else{var s=Y().oo_1.go(e,r);a.e(s),r=r+s.io_1|0}for(var l=Yf(),c=a.h();c.i();){var f=c.j(),h=f.ho_1,d=h.pc(),v=h.qc(),y=l.t1(d),p=(y==null?0:y)+v|0;l.u3(d,p)}for(var m=J_(l.m()),g=l.u1().h();g.i();){var _=g.j();_.q1()>1&&rt(e,t,"power must be 0 or 1");var C=_.r1();m.u3(ue,C)}var k;try{var x=l.t1(1),N=x==null?0:x,z=l.t1(0);k=new Ae(N,z==null?0:z)}catch(re){var G;if(re instanceof gn)rt(e,t,"valid polynomialExpression");else throw re;k=G}var K=k;return new Te(K,r-t|0)}function Vg(e,t,n){var r=t;ye(e,r,"("),r=r+1|0;for(var a=st();r<j(e)&&M(e,r)!==41;){r=r+Y().jo_1.go(e,r).io_1|0;var o=Y().no_1.go(e,r);a.l()?o.ho_1<=0&&rt(e,r,"positive integer"):o.ho_1<=aa(a)&&rt(e,r,">"+aa(a)),r=r+o.io_1|0,a.e(o.ho_1),r=r+Y().jo_1.go(e,r).io_1|0;var s=Xt(e,r);E(s==null?null:new ne(s),new ne(44))&&(r=r+1|0,r=r+Y().jo_1.go(e,r).io_1|0,ye(e,r,Y().no_1.eo_1+")"))}return ye(e,r,")"),r=r+1|0,new Te(new It(a),r-t|0)}function Gg(e,t,n){var r=t,a;if(Pg(Y(),ln(e,t,j(e)))){var o=Y().qo_1.go(e,r);r=r+o.io_1|0,a=new Te(o.ho_1,r-t|0)}else{var s=Y().po_1.go(e,t);r=r+s.io_1|0,a=new Te(s.ho_1,r-t|0)}return a}function Jg(e,t,n){var r=t,a=Y().mo_1.go(e,r);r=r+a.io_1|0;var o=null;r<j(e)&&Wt(Y().ro_1.eo_1,M(e,r))&&(o=Y().ro_1.go(e,r),r=r+o.io_1|0);var s=o,l=s==null?null:s.ho_1;return new Te(new ut(a.ho_1,l==null?new Ae:l),r-t|0)}function Qg(e,t,n){var r=t;ye(e,r,n);var a=M(e,r);r=r+1|0,r>=j(e)&&rt(e,r,"any char");var o="";e:for(;M(e,r)!==a;){if(r>=(j(e)-1|0)){ye(e,r,Ke(a));break e}var s=M(e,r),l=Lt(s);if(0<=l&&l<=31&&rt(e,r,"0-1f escape char"),M(e,r)===92){r=r+1|0,ye(e,r);var c=o,f=M(e,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,ye(e,r,"0123456789abcdefABCDEF");while(d<2);var v=(r-2|0)+1|0,y=r+1|0,p=O(ln(e,v,y));h=ca(yc(p,16))}else if(f===117){var m=0;if(m<4)do m=m+1|0,r=r+1|0,ye(e,r,"0123456789abcdefABCDEF");while(m<4);var g=(r-4|0)+1|0,_=r+1|0,C=O(ln(e,g,_));h=ca(yc(C,16))}else rt(e,r,"escape char");o=c+Ke(h)}else o=o+Ke(M(e,r));r=r+1|0}return r=r+1|0,new Te(o,r-t|0)}function Xg(e,t,n){var r=t;ye(e,r,n);var a=Ke(M(e,r));for(r=r+1|0;r<j(e)&&Wt(Y().wo_1,M(e,r));)M(e,r)===46&&ye(e,r+1|0,n),a=a+Ke(M(e,r)),r=r+1|0;return new Te(a,r-t|0)}function Yg(e,t,n){var r=t;ye(e,r,n),r=r+1|0,r=r+Y().jo_1.go(e,r).io_1|0;var a=Y().ep(e,r);return r=r+a.a()|0,ye(e,r,"]"),r=r+1|0,new Te(a,r-t|0)}function Zg(e,t,n){var r=t,a=!1,o=Xt(e,r);E(o==null?null:new ne(o),new ne(64))&&(a=!0,r=r+1|0);var s=Y().lo_1.go(e,r);r=r+s.io_1|0;for(var l=st();r<j(e)&&M(e,r)===91;){var c=Y().yo_1.go(e,r);r=r+c.io_1|0,l.e(c.ho_1)}return s.io_1===0&&l.m()===0&&rt(e,r,"["),new Te(new at(a,s.ho_1,l),r-t|0)}function ey(e,t,n){var r=t;r=r+Y().jo_1.go(e,r).io_1|0;var a=Y().zo_1.go(e,r);r=r+a.io_1|0;var o=st();e:for(;r<j(e)&&Wt(Y().jo_1.eo_1,M(e,r));){if(r=r+Y().ko_1.go(e,r).io_1|0,r>=j(e))break e;var s;if(Wt(Y().so_1.eo_1,M(e,r))){var l=Y().so_1.go(e,r);r=r+l.io_1|0,r=r+Y().ko_1.go(e,r).io_1|0,s=l.ho_1}else s=new ut(u,new Ae(1,0));var c=s,f=Y().zo_1.go(e,r);r=r+f.io_1|0,o.e(Cc(c,f.ho_1))}return new Te(Cc(a.ho_1,o),r-t|0)}function ty(e,t,n){return t!==j(e)&&rt(e,t,"EOF"),new Te(ue,0)}function Ka(){ml=this;var e=this;e.jo_1=new De(` \r
|
|
270
|
-
`,zg);var t=this;t.ko_1=new De(` \r
|
|
271
|
-
`,Fg);var n=this;n.lo_1=new De("*1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM_",Dg);var r=this,a=Vo().allSubClasses,o=Cn(a,"",u,u,u,u,Bg);r.mo_1=new De(o,Kg);var s=this;s.no_1=new De("1234567890",Ug);var l=this;l.oo_1=new De("+-1234567890n",Hg);var c=this;c.po_1=new De("(0123456789n",Wg);var f=this;f.qo_1=new De(u,Vg);var h=this;h.ro_1=new De(this.po_1.eo_1,Gg);var d=this;d.so_1=new De(this.mo_1.eo_1,Jg);var v=this;v.uo_1=new De("`'\"",Qg),this.vo_1="_"+Cn(Br(97,122),"")+Cn(Br(65,90),""),this.wo_1=this.vo_1+Ke(46)+Cn(Br(48,57),"");var y=this;y.xo_1=new De(this.vo_1,Xg);var p=this;p.yo_1=new De("[",Yg);var m=this;m.zo_1=new De(u,Zg);var g=this;g.ap_1=new De(u,ey);var _=this;_.bp_1=new De(u,ty)}i(Ka).cp=function(e,t){var n=t;if(n=n+this.jo_1.go(e,n).io_1|0,n>=j(e)&&rt(e,n,"Variable"),vs(this,e,n,"true"))return new ft(n,!0);if(vs(this,e,n,"false"))return new ft(n,!1);if(vs(this,e,n,"null"))return new qt(n);if(Wt(this.uo_1.eo_1,M(e,n))){var r=this.uo_1.go(e,n);return n=n+r.io_1|0,new fe(n-r.io_1|0,n,r.ho_1)}if(M(e,n)===45){n=n+1|0;var a=this.no_1.go(e,n);return n=n+a.io_1|0,new We((n-a.io_1|0)-1|0,n,-a.ho_1|0)}if(Wt(this.no_1.eo_1,M(e,n))){var o=this.no_1.go(e,n);return n=n+o.io_1|0,new We(n-o.io_1|0,n,o.ho_1)}var s=null;e:for(;n<j(e);){n=n+this.jo_1.go(e,n).io_1|0;var l=Xt(e,n),c=l;if(E(c==null?null:new ne(c),new ne(40))){var f=n;if(n=n+1|0,n=n+this.jo_1.go(e,n).io_1|0,s!=null){s instanceof ke&&rt(e,n,"Variable");for(var h=st();n<j(e)&&M(e,n)!==41;){var d=this.cp(e,n);h.e(d),n=n+d.a()|0;var v=Xt(e,n);E(v==null?null:new ne(v),new ne(44))&&(n=n+1|0,n=n+this.jo_1.go(e,n).io_1|0)}n=n+this.jo_1.go(e,n).io_1|0,ye(e,n,")"),n=n+1|0,s=new ke(s.tc(),n,s,h)}else{var y=this.cp(e,n);n=n+y.a()|0,n=n+this.jo_1.go(e,n).io_1|0,ye(e,n,")"),n=n+1|0;var p=n,m;return y instanceof ft?m=y.copy(f):y instanceof We?m=y.copy(f,p):y instanceof qt?m=y.copy(f):y instanceof fe||y instanceof ke?m=y.copy(f,p):y instanceof Me?m=y.copy(f):y instanceof Ee?m=y.copy(f,p):xr(),m}}else{var g=l;if(E(g==null?null:new ne(g),new ne(46))){n=n+1|0,s instanceof jt||rt(e,n,"Variable"),_l(this,Xt(e,n),!0)||rt(e,n,"Variable");var _;t:{var C=tc(e,n),k=0,x=j(C);if(k<x)do{var N=k;k=k+1|0;var z=M(C,N);if(!_l(Y(),z,!1)){_=ln(C,0,N);break t}}while(k<x);_=ln(C,0,j(C))}var G=O(_);s=new Ee(s.tc(),n+G.length|0,s,G),n=n+G.length|0}else if($c(this,l)){var K;t:{var re=tc(e,n),V=0,je=j(re);if(V<je)do{var Ce=V;V=V+1|0;var be=M(re,Ce);if(!$c(Y(),be)){K=ln(re,0,Ce);break t}}while(V<je);K=ln(re,0,j(re))}var ve=O(K);s=new Me(n,ve),n=n+ve.length|0}else break e}}return s==null&&rt(e,n,"Variable"),s};i(Ka).dp=function(e,t,n){var r=t;r=r+this.jo_1.go(e,r).io_1|0;var a=st();e:for(;r<j(e)&&M(e,r)!==93&&M(e,r)!==41;){var o=M(e,r);if(o===40){var s=r;if(!a.l()){var l=aa(a),c;if(l instanceof Ue){var f=l.value;c=f instanceof En}else c=!1;if(!c){for(var h=0;(r-1|0)>=h&&Wt(this.jo_1.eo_1,M(e,(r-1|0)-h|0));)h=h+1|0;rt(e,(r-h|0)-l.a()|0,"LogicalOperator")}}r=r+1|0;var d=this.ep(e,r);r=r+d.a()|0;var v=d;ye(e,r,")"),r=r+1|0;var y=r,p;if(v instanceof ce||v instanceof $e?p=v.copy(s,y):v instanceof _t?p=v.copy(s):xr(),a.e(p),n)break e}else if(Wt("|&",o)){var m=Lg(this,e,r);r=r+m.a()|0,a.e(m),r=r+this.jo_1.go(e,r).io_1|0,ye(e,r,"(!"+this.xo_1.eo_1)}else if(o===33){var g=Og(this,e,r);r=r+g.a()|0,a.e(g),r=r+this.jo_1.go(e,r).io_1|0}else{var _=Mg(this,e,r);r=r+_.a()|0,a.e(_)}r=r+this.jo_1.go(e,r).io_1|0}if(a.l()&&rt(e,r-t|0,"Expression"),a.m()===1){var C=ia(a);return C instanceof Ut?C:$()}for(var k=Il(a),x=0;x<k.m();){var N=k.k(x),z;if(N instanceof Ue?z=E(N.value,Eu()):z=!1,z){var G=k.k(x-1|0),K=G instanceof Ut?G:$(),re=k.k(x+1|0),V=re instanceof Ut?re:$(),je=N instanceof Ue?N:$();k.p2(x,new $e(K.tc(),V.uc(),K,je,V)),k.x2(x-1|0),k.x2((x+1|0)-1|0)}else x=x+1|0}for(;k.m()>1;){var Ce=k.k(0),be=Ce instanceof Ut?Ce:$(),ve=k.k(1),xe=ve instanceof Ue?ve:$(),Le=k.k(2),et=Le instanceof Ut?Le:$();k.p2(1,new $e(be.tc(),et.uc(),be,xe,et)),k.x2(0),k.x2(1)}var pe=ia(k);return pe instanceof Ut?pe:$()};i(Ka).ep=function(e,t,n,r){return n=n===u?!1:n,r===u?this.dp(e,t,n):r.dp.call(this,e,t,n)};var ml;function Y(){return ml==null&&new Ka,ml}function cd(e){var t=0;t=t+Y().jo_1.go(e,t).io_1|0;var n=Y().ap_1.go(e,t);t=t+n.io_1|0,t=t+Y().jo_1.go(e,t).io_1|0,t=t+Y().bp_1.go(e,t).io_1|0;var r=n.ho_1,a=st(),o=st();a.e(r.nc_1);for(var s=r.oc_1.h();s.i();){var l=s.j();a.e(l.oc_1),o.e(l.nc_1)}for(var c=Sh([new Xe(ia(a))]),f=0,h=o.h();h.i();){var d=h.j(),v=f;f=v+1|0;var y=Fl(v),p=new Ot(d,aa(c)),m=new Xe(a.k(y+1|0),p);c.e(m)}return new Dt(e,aa(c))}function ny(e){_y(e)}function pi(e,t,n,r,a){this.booleanType=e,this.intType=t,this.stringType=n,this.contextType=r,this.nodeType=a}i(pi).fp=function(){return this.booleanType};i(pi).gp=function(){return this.intType};i(pi).hp=function(){return this.stringType};i(pi).ip=function(){return this.contextType};i(pi).jp=function(){return this.nodeType};function ry(){var e=new it(ma()),t=new it(ga()),n=new it(ya()),r=e;r.methods=[new de("toInt",t)];var a=t,o=new de("toString",n),s=[t],l=new de("toString",n,s),c=[t],f=new de("plus",t,c),h=[t],d=new de("minus",t,h),v=[t],y=new de("times",t,v),p=[t],m=new de("div",t,p),g=[t];a.methods=[o,l,f,d,y,m,new de("rem",t,g)];var _=n;_.props=[new ee("length",t)];var C=n,k=[t],x=new de("get",n,k),N=[t],z=new de("at",n,N),G=[t],K=new de("substring",n,G),re=[t,t],V=new de("substring",n,re),je=new de("toInt",t),Ce=[t],be=new de("toInt",t,Ce),ve=[n],xe=new de("indexOf",t,ve),Le=[n,t];C.methods=[x,z,K,V,je,be,xe,new de("indexOf",t,Le)];var et=new it(new rn("context")),pe=new it(new rn("node")),bt=pe;bt.props=[new ee("_id",t),new ee("_pid",t),new ee("id",n),new ee("vid",n),new ee("name",n),new ee("text",n),new ee("desc",n),new ee("clickable",e),new ee("focusable",e),new ee("checkable",e),new ee("checked",e),new ee("editable",e),new ee("longClickable",e),new ee("visibleToUser",e),new ee("left",t),new ee("top",t),new ee("right",t),new ee("bottom",t),new ee("width",t),new ee("height",t),new ee("childCount",t),new ee("index",t),new ee("depth",t),new ee("parent",pe)];var Pt=pe,Gt=[t];Pt.methods=[new de("getChild",pe,Gt)];var In=et,T=pe.methods,ae=[t];In.methods=Ii([T,[new de("getPrev",et,ae)]]);var me=et;return me.props=Ii([pe.props,[new ee("prev",et)]]),new pi(e,t,n,et,pe)}function iy(e,t,n){var r;switch(t){case"plus":var a=dn(n),o;if(a==null)return null;o=a,r=e+o|0;break;case"minus":var s=dn(n),l;if(s==null)return null;l=s,r=e-l|0;break;case"times":var c=dn(n),f;if(c==null)return null;f=c,r=D(e,f);break;case"div":var h=dn(n),d;if(h==null)d=null;else{if(h===0)return null;d=h}var v=d,y;if(v==null)return null;y=v,r=e/y|0;break;case"rem":var p=dn(n),m;if(p==null)m=null;else{if(p===0)return null;m=p}var g=m,_;if(g==null)return null;_=g,r=e%_|0;break;default:r=null;break}return r}function ay(e,t,n){return cy(e,t,n)}function oy(e,t,n){return t==="toInt"?e?1:0:null}function sy(e,t){return fy(e,t)}function ly(e,t){t=t===u?34:t;var n=gh(e.length+2|0);n.b6(t);for(var r=0;r<j(e);){var a=M(e,r);r=r+1|0;var o=a===t?t:a===10?110:a===13?114:a===9?116:a===8?98:a===92?92:null,s=o;if((s==null?null:new ne(s))!=null){var l=o;n.a6("\\"+Re(l==null?null:new ne(l)))}else{var c=Lt(a);if(0<=c&&c<=15){var f=Lt(a);n.a6("\\x0"+gc(f,16))}else if(16<=c&&c<=31){var h=Lt(a);n.a6("\\x"+gc(h,16))}else n.b6(a)}}return n.b6(t),n.toString()}function ps(e,t,n){if(su(e,t)&&Ch(e,n)&&e.length>=(t.length+n.length|0)){var r=t.length,a=e.length-n.length|0;if(r<a)do{var o=r;if(r=r+1|0,Wt("\\^$.?*|+()[]{}",M(e,o)))return null}while(r<a);return O(ln(e,t.length,e.length-n.length|0))}return null}function uy(e){var t=ps(e,"(?is)",".*");if(t!=null)return hy(t);var n=ps(e,"(?is).*",".*");if(n!=null)return dy(n);var r=ps(e,"(?is).*","");return r!=null?vy(r):null}function dn(e,t){t=t===u?0:t;var n=Qv(e,t);return n!=null&&typeof n=="number"?n:null}function cy(e,t,n){var r;switch(t){case"get":var a=dn(n),o;if(a==null)return null;o=a;var s=Xt(e,o);r=Re(s==null?null:new ne(s));break;case"at":var l=dn(n),c;if(l==null)return null;c=l;var f=c,h;if(f<0){var d=Xt(e,j(e)+f|0);h=Re(d==null?null:new ne(d))}else{var v=Xt(e,f);h=Re(v==null?null:new ne(v))}r=h;break;case"substring":var y;switch(n.m()){case 1:var p=dn(n),m;if(p==null)return null;m=p;var g=m;if(g<0)return null;if(g>=j(e))return"";var _=j(e);y=O(ln(e,g,_));break;case 2:var C=dn(n),k;if(C==null)return null;k=C;var x=k;if(x<0)return null;if(x>=j(e))return"";var N=dn(n,1),z;if(N==null)return null;z=N;var G=z;if(G<x)return null;var K=oa(G,j(e));y=O(ln(e,x,K));break;default:y=null;break}r=y;break;case"toInt":var re;switch(n.m()){case 0:re=Bh(O(e));break;case 1:var V=dn(n),je;if(V==null)return null;je=V;var Ce=je;if(!(2<=Ce&&Ce<=36))return null;re=gu(O(e),Ce);break;default:re=null;break}r=re;break;case"indexOf":var be;switch(n.m()){case 1:var ve=n.k(0),xe=ht(ve)?ve:null,Le;if(xe==null)return null;Le=xe;var et=Le;be=Ds(e,O(et));break;case 2:var pe=n.k(0),bt=ht(pe)?pe:null,Pt;if(bt==null)return null;Pt=bt;var Gt=Pt,In=dn(n,1),T;if(In==null)return null;T=In;var ae=T;be=Ds(e,O(Gt),ae);break;default:be=null;break}r=be;break;default:r=null;break}return r}function fy(e,t){return t==="length"?j(e):null}function hy(e){return function(t){return yu(t,e,!0)}}function dy(e){return function(t){return bu(t,e,!0)}}function vy(e){return function(t){return Fo(t,e,!0)}}var co;function py(e){if(co!==null){var t=At(co)(e);return my(t)}if(e.length>=4&&su(e,"(?")){var n=2,r=e.length;if(n<r)e:do{var a=n;n=n+1|0;var o=M(e,a);if(!(97<=o&&o<=122)&&!(65<=o&&o<=90))if(o===41){var s=op(ln(e,2,a));s.e(new ne(103)),s.e(new ne(117));var l=Cn(s,""),c=a+1|0,f=e.substring(c),h=new RegExp(f,l);return gy(h)}else break e}while(n<r)}var d=Q0(e);return yy(d)}function _y(e){co=e}function my(e){return function(t){return e(O(t))}}function gy(e){return function(t){mh(e);var n=e.exec(O(t));return n!=null&&n.index===0&&e.lastIndex===j(t)}}function yy(e){return function(t){return e.w8(t)}}i(Ut).a=wu;H(i(Ut),"binaryExpressions",function(){return this.bd()});H(i(ce),"properties",i(ce).cd);H(i(ce),"methods",i(ce).dd);H(i(va),"allSubClasses",i(va).kd);H(i(vi),"minOffset",function(){return this.yd()});H(i(vi),"maxOffset",function(){return this.zd()});H(i(pa),"allSubClasses",i(pa).kd);H(i(dt),"message",function(){return this.i7()});H(i(_a),"allSubClasses",i(_a).kd);i(Ue).a=wu;H(i(at),"binaryExpressions",i(at).bd);H(i(Xe),"length",i(Xe).a);H(i(ot),"cause",function(){return this.j7()});i(Ze).a=wu;H(i(Ze),"value",function(){return this.r1()});H(i(Ze),"type",function(){return this.rf()});H(i(Ze),"properties",function(){return this.cd()});H(i(Ze),"methods",function(){return this.dd()});ld=new Qo;ud=new Nu;co=null;H(U,"Companion",Uo);H(U,"Equal",Wr);H(U,"NotEqual",Vh);H(U,"Start",Fr);H(U,"NotStart",Gh);H(U,"Include",ku);H(U,"NotInclude",Jh);H(U,"End",Cu);H(U,"NotEnd",Qh);H(U,"Less",Ba);H(U,"LessEqual",Xh);H(U,"More",Yh);H(U,"MoreEqual",Zh);H(U,"Matches",Ho);H(U,"NotMatches",xu);H(yt,"Companion",Vo);H(yt,"BeforeBrother",ed);H(yt,"AfterBrother",td);H(yt,"Ancestor",uo);H(yt,"Child",nd);H(yt,"Descendant",Su);H(En,"Companion",$u);H(En,"AndOperator",Eu);H(En,"OrOperator",rd);H(Dt,"Companion",eg);H(Ye,"Companion",sg);H(an,"BooleanType",ma);H(an,"IntType",ga);H(an,"StringType",ya);an.ObjectType=rn;Ze.Variable=jt;Ze.Identifier=Me;Ze.MemberExpression=Ee;Ze.CallExpression=ke;Ze.LiteralExpression=Vt;Ze.NullLiteral=qt;Ze.BooleanLiteral=ft;Ze.IntLiteral=We;Ze.StringLiteral=fe;async function by(e){e instanceof Promise&&(e=await e);const t={"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:t};try{if(e instanceof Response)n=(await WebAssembly.instantiateStreaming(e,a)).instance;else{const o=new WebAssembly.Module(e);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 wy="https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1721406632680/files/dist/assets/mod-BHC4TAjm.wasm",ky=by(fetch(wy)).then(e=>{const t=e.exports.toMatches;ny(t),to.wasmSupported=!0,console.log("use wasm matches")}).catch(e=>{to.wasmSupported=!1,console.error(e),console.log("use js matches")}),Nc=(e,t)=>{var n,r;return t=="_id"?e.id:t=="_pid"?e.pid:t=="parent"?(n=e.parent)!=null?n:null:(r=Reflect.get(e.attr,t))!=null?r:null},Ic=(e,t,n)=>{var r;if(t==="getChild"){const a=n.asJsReadonlyArrayView()[0];return(r=e.children[a])!=null?r:null}return null},_s=Ye.Companion.multiplatformBuild((e,t)=>typeof e=="string"?sy(e,t):e instanceof Qe?t==="prev"?e.prev:Nc(e.current,t):Wu(e)?Nc(e,t):null,(e,t,n)=>{if(typeof e=="number")return iy(e,t,n);if(typeof e=="boolean")return oy(e,t);if(typeof e=="string")return ay(e,t,n);if(e instanceof Qe){if(t==="getPrev"){const r=n.asJsReadonlyArrayView()[0];return Number.isSafeInteger(r)?e.getPrev(r):null}return Ic(e.current,t,n)}return Wu(e)?Ic(e,t,n):null},e=>e.attr.name,e=>e.children,e=>e.parent),Cy=ry(),xy=e=>{const t=Dt.Companion.parse(e);for(const r of t.binaryExpressions)if(r.operator.value.key=="~="&&!to.wasmSupported&&!Mc.ignoreWasmWarn){to.wasmErrorDlgVisible=!0;break}return Sy(t),{s:t,targetIndex:t.targetIndex,connectKeys:t.connectKeys,canQf:t.quickFindValue.canQf,qfIdValue:t.quickFindValue.id,qfVidValue:t.quickFindValue.vid,qfTextValue:t.quickFindValue.text,canCopy:!t.binaryExpressions.some(r=>r.properties.some(a=>a.startsWith("_"))),toString:()=>t.stringify(),match:r=>{var a;return(a=t.match(r,_s))!=null?a:void 0},querySelectorAll:r=>_s.querySelectorAllArray(r,t),querySelectorTrackAll:r=>_s.querySelectorAllContextArray(r,t).map(a=>a.toArray())}},Sy=e=>{const t=e.checkType(Cy.contextType);if(t!=null){if(t instanceof Ct)throw new Error("不匹配表达式类型:"+t.exception.stringify(),{cause:t});if(t instanceof nn)throw new Error("不匹配操作符类型:"+t.exception.stringify(),{cause:t});if(t instanceof ct)throw new Error("不匹配参数类型:"+t.call.stringify(),{cause:t});if(t instanceof Yt)throw new Error("未知属性:"+t.value.value,{cause:t});if(t instanceof en)throw new Error("未知方法:"+t.value.value,{cause:t});if(t instanceof Zt)throw new Error("未知属性:"+t.value.property,{cause:t});if(t instanceof tn)throw new Error("未知方法:"+t.value.property,{cause:t})}};var Iu={},Xo={};Object.defineProperty(Xo,"__esModule",{value:!0});function $y(e){return String.fromCharCode(parseInt(e.slice(1),16))}function Ey(e){return btoa(encodeURIComponent(e).replace(/%[0-9A-F]{2}/g,$y))}Xo.encode=Ey;function Ny(e){return`%${`00${e.charCodeAt(0).toString(16)}`.slice(-2)}`}function Iy(e){return decodeURIComponent(Array.from(atob(e),Ny).join(""))}Xo.decode=Iy;Object.defineProperty(Iu,"__esModule",{value:!0});const fd=Xo;function qy(e){return fd.decode(e.replace(/\-/g,"+").replace(/_/g,"/"))}var Ay=Iu.decode=qy;function Ty(e){return fd.encode(e).replace(/\//g,"_").replace(/\+/g,"-").replace(/=+$/,"")}var jy=Iu.encode=Ty;const qu=Fc(),Py=oe(()=>qu.width.value/100),Ry=oe(()=>Math.max(1200,qu.width.value));oe(()=>Math.max(700,qu.height.value));const My={"bg-white":"","b-1px":"","b-solid":"","b-gray-200":"","rounded-4px":"","p-8px":""},Ly={flex:"","m-b-4px":""},Oy=A("svg",{viewBox:"0 0 32 32"},[A("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),zy=A("div",{"p-5px":""},null,-1),Fy={key:0,underline:"","decoration-1":"","m-r-4px":"",title:"查询数量"},Dy=["title"],By=A("svg",{viewBox:"0 0 24 24"},[A("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),Ky=A("div",{"p-l-4px":""},null,-1),Uy=A("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},[A("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),Hy=A("div",{"p-l-4px":""},null,-1),Wy=A("svg",{viewBox:"0 0 24 24"},[A("g",{fill:"none"},[A("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),Vy=A("svg",{viewBox:"0 0 24 24"},[A("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),Gy=Ve({__name:"SearchCard",props:{snapshot:{},rootNode:{},focusNode:{},onUpdateFocusNode:{type:Function,default:Xr},onUpdateTrack:{type:Function,default:Xr}},setup(e){Lc();const t=Oc(),n=e,r=nt(""),a=kl([]),o=nt([]),s=p=>{const m=E1(()=>xy(p),_=>typeof _=="string"?_:_ instanceof Error&&_.cause instanceof dt?_.message:"非法选择器");if(a.find(_=>typeof _.selector=="object"&&_.selector.toString()==m.toString())){wn.warning("不可重复选择");return}const g=m.querySelectorTrackAll(n.rootNode);if(g.length==0){wn.success("没有选择到节点");return}return wn.success(`选择到 ${g.length} 个节点`),a.unshift({selector:m,nodes:g,key:Date.now()}),g.length},l=p=>{if(a.find(_=>typeof _.selector=="string"&&_.selector.toString()==p)){wn.warning("不可重复搜索");return}const m=[],g=[n.rootNode];for(;g.length>0;){const _=g.pop();ra(_).includes(p)&&m.push(_),g.push(...[..._.children].reverse())}if(m.length==0){wn.success("没有搜索到节点");return}return wn.success(`搜索到 ${m.length} 个节点`),a.unshift({selector:p,nodes:m,key:Date.now()}),m.length},c=()=>{const p=a[0],m=p.nodes[0];Array.isArray(m)?typeof p.selector=="object"&&Array.isArray(m)&&n.onUpdateFocusNode(m[p.selector.targetIndex]):n.onUpdateFocusNode(m);const g=new Set(a.map(C=>C.key)),_=o.value.filter(C=>g.has(C));_.push(p.key),o.value=_},f=Qu(()=>{const p=r.value.trim();if(p){if(d.value){if(!s(p))return}else if(!l(p))return;c()}});ka(async()=>{await ky;let p=0;t.query.gkd&&(p+=s(Ay(t.query.gkd))||0),t.query.str&&(p+=l(t.query.str)||0),p>0&&c()});const h=Qu(async p=>{var z,G,K;let m=r1[n.snapshot.id];m&&(m=i1(m));const g=Ni[n.snapshot.id],_=g?Du(g):void 0,C=p.selector,k=p.nodes[0].at(-1),x=[((z=k.quickFind)!=null?z:k.idQf)&&k.attr.id&&C.qfIdValue,((G=k.quickFind)!=null?G:k.idQf)&&k.attr.vid&&C.qfVidValue,((K=k.quickFind)!=null?K:k.textQf)&&k.attr.text&&C.qfTextValue].some(Boolean),N={id:n.snapshot.appId,name:Un(n.snapshot).name,groups:[{key:1,name:`[ChangeMe]规则名称-${w1().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:_}]}]};Hn(S1.stringify(N,void 0,2))}),d=nt(!0),v=oe(()=>Ni[n.snapshot.id]),y=p=>{if(!v.value)return;const m=new URL(Du(Ni[n.snapshot.id]));typeof p.selector=="object"?m.searchParams.set("gkd",jy(p.selector.toString())):m.searchParams.set("str",p.selector.toString()),Hn(m.toString())};return(p,m)=>(le(),pt(Cl,{initialValue:{top:40,right:Math.max(315,12*I(Py)+135),width:Math.max(480,I(Ry)*.3)},minWidth:300,sizeDraggable:"",class:"z-1 box-shadow-dim"},{default:P(({onRef:g})=>[A("div",My,[A("div",Ly,[te(I(y1),{value:d.value,"onUpdate:value":m[0]||(m[0]=_=>d.value=_)},{default:P(()=>[te(I(ys),null,{default:P(()=>[te(I(Vu),{value:!1},{default:P(()=>[kt(" 字符搜索 ")]),_:1}),te(I(Vu),{value:!0},{default:P(()=>[kt(" 选择器查询 ")]),_:1})]),_:1})]),_:1},8,["value"]),A("div",{"flex-1":"","cursor-move":"",ref:g},null,512)]),te(I(b1),null,{default:P(()=>[te(I(x1),{value:r.value,"onUpdate:value":m[1]||(m[1]=_=>r.value=_),placeholder:d.value?"请输入选择器":"请输入字符",onKeyup:n1(I(f),["enter"]),inputProps:{class:"gkd_code"}},null,8,["value","placeholder","onKeyup"]),te(I(Kn),{onClick:I(f)},{icon:P(()=>[te(I(Wn),null,{default:P(()=>[Oy]),_:1})]),_:1},8,["onClick"])]),_:1}),zy,te(I(F1),{expandedNames:o.value,"onUpdate:expandedNames":m[2]||(m[2]=_=>o.value=_)},{default:P(()=>[(le(!0),Mt(Cr,null,na(I(a),(_,C)=>(le(),pt(I(K1),{key:_.key,name:_.key},{header:P(()=>[_.nodes.length>1?(le(),Mt("span",Fy,Be(_.nodes.length),1)):Kt("",!0),A("span",{"break-all":"",title:typeof _.selector=="object"?"选择器":"搜索字符"},Be(_.selector.toString()),9,Dy)]),"header-extra":P(()=>[typeof _.selector=="object"&&_.selector.canCopy?(le(),pt(I(Kn),{key:0,size:"small",onClick:ls(k=>I(h)(_),["stop"]),title:"复制规则"},{icon:P(()=>[te(I(Wn),null,{default:P(()=>[By]),_:1})]),_:2},1032,["onClick"])):Kt("",!0),Ky,v.value?(le(),pt(I(Kn),{key:1,size:"small",title:typeof _.selector=="object"?"复制查询链接":"复制搜索链接",onClick:ls(k=>y(_),["stop"])},{icon:P(()=>[te(I(Wn),null,{default:P(()=>[Uy]),_:1})]),_:2},1032,["title","onClick"])):Kt("",!0),Hy,te(I(Kn),{size:"small",onClick:ls(k=>I(a).splice(C,1),["stop"]),title:"删除记录"},{icon:P(()=>[te(I(Wn),null,{default:P(()=>[Wy]),_:1})]),_:2},1032,["onClick"])]),default:P(()=>[te(I(ys),{style:{"max-height":"400px","overflow-y":"scroll","padding-bottom":"10px"}},{default:P(()=>[typeof _.selector=="string"||_.selector.connectKeys.length===0?(le(!0),Mt(Cr,{key:0},na(_.nodes.map(k=>Array.isArray(k)?k[0]:k),k=>(le(),pt(I(Kn),{key:k.id,onClick:x=>p.onUpdateFocusNode(k),size:"small",class:Qr({"color-[#00F]":k===p.focusNode})},{default:P(()=>[kt(Be(I(ra)(k)),1)]),_:2},1032,["onClick","class"]))),128)):(le(!0),Mt(Cr,{key:1},na(_.nodes.map(k=>Array.isArray(k)?k:[k]),(k,x)=>(le(),pt(I(R1),{key:x},{default:P(()=>[te(I(Kn),{size:"small",onClick:N=>p.onUpdateTrack({nodes:k,selector:_.selector})},{default:P(()=>[te(I(Wn),null,{default:P(()=>[Vy]),_:1})]),_:2},1032,["onClick"]),te(I(Kn),{onClick:N=>p.onUpdateFocusNode(k[_.selector.targetIndex]),size:"small",class:Qr({"color-[#00F]":k[_.selector.targetIndex]===p.focusNode})},{default:P(()=>[kt(Be(I(ra)(k[_.selector.targetIndex])),1)]),_:2},1032,["onClick","class"])]),_:2},1024))),128))]),_:2},1024)]),_:2},1032,["name"]))),128))]),_:1},8,["expandedNames"])])]),_:1},8,["initialValue"]))}}),Jy={flex:"","flex-col":""},Qy={flex:"","items-center":"","px-8px":""},Xy={flex:"","flex-wrap":"","items-center":"","gap-8px":"",gkd_code:""},Yy={href:"/",flex:"",title:"首页","mr-4px":""},Zy=A("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[A("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),eb=A("div",{"w-1px":"","bg-gray":"","h-12px":""},null,-1),tb=A("div",{"w-1px":"","bg-gray":"","h-12px":""},null,-1),nb={flex:"","items-center":"","gap-2px":"","max-w-120px":""},rb=A("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},[A("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),ib=A("div",{"w-1px":"","bg-gray":"","h-12px":""},null,-1),ab=A("div",{"w-1px":"","bg-gray":"","h-12px":""},null,-1),ob=A("div",{"w-1px":"","bg-gray":"","h-12px":""},null,-1),sb=A("div",{"w-1px":"","bg-gray":"","h-12px":""},null,-1),lb=A("div",{"flex-1":""},null,-1),ub={"ml-8px":""},cb=A("div",{"h-1px":"","mt-4px":"",bg:"#efeff5"},null,-1),fb=Ve({__name:"WindowCard",props:{snapshot:{},rootNode:{},focusNode:{},focusCount:{},onUpdateFocusNode:{type:Function,default:Xr}},setup(e){const t=e,n=nt([]);kr([()=>t.focusNode,()=>t.focusCount],async()=>{if(!t.focusNode)return;const h=t.focusNode.id;ea().then(async()=>{var y,p;await zc(100),h===((y=t.focusNode)==null?void 0:y.id)&&((p=r.value)==null||p.scrollTo({key:h,behavior:"smooth",debounce:!0}))});let d=t.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=nt(),a=(h,d)=>{var v;return d.id===((v=t.focusNode)==null?void 0:v.id)},o=h=>{var v;const d=h.option.idQf||h.option.textQf||h.option.quickFind;return{onClick:()=>{t.onUpdateFocusNode(h.option)},style:{color:h.option.id==((v=t.focusNode)==null?void 0:v.id)?"#00F":void 0,fontWeight:d?"bold":void 0}}},s=h=>ra(h.option),l=oe(()=>`${Gu(t.snapshot).manufacturer} Android ${Gu(t.snapshot).release||""}`),c=oe(()=>Un(t.snapshot).isSystem),f=oe(()=>!t.snapshot.activityId||!t.snapshot.appId?"":t.snapshot.activityId.startsWith(t.snapshot.appId)&&t.snapshot.activityId.length>t.snapshot.appId.length?t.snapshot.activityId.substring(t.snapshot.appId.length):t.snapshot.activityId);return(h,d)=>(le(),Mt("div",Jy,[A("div",Qy,[A("div",Xy,[A("a",Yy,[te(I(Kn),{text:""},{icon:P(()=>[te(I(Wn),null,{default:P(()=>[Zy]),_:1})]),_:1})]),te(I(Bn),null,{trigger:P(()=>[A("div",{onClick:d[0]||(d[0]=v=>I(Hn)(l.value))},Be(l.value),1)]),default:P(()=>[kt(" 设备名称 ")]),_:1}),eb,te(I(Bn),null,{trigger:P(()=>[A("div",{class:Qr({"opacity-50":!I(Ju)(h.snapshot).versionName})},Be(I(Ju)(h.snapshot).versionName||"null"),3)]),default:P(()=>[kt(" GKD 版本 ")]),_:1}),tb,A("div",nb,[c.value?(le(),pt(I(Bn),{key:0},{trigger:P(()=>[te(I(Wn),{size:14},{default:P(()=>[rb]),_:1})]),default:P(()=>[kt(" 系统应用 ")]),_:1})):Kt("",!0),te(I(Bn),null,{trigger:P(()=>[A("div",{onClick:d[1]||(d[1]=v=>I(Hn)(I(Un)(h.snapshot).name))},Be(I(Un)(h.snapshot).name),1)]),default:P(()=>[kt(" 应用名称 ")]),_:1})]),ib,te(I(Bn),null,{trigger:P(()=>[A("div",{onClick:d[2]||(d[2]=v=>I(Hn)(I(Un)(h.snapshot).versionName))},Be(I(Un)(h.snapshot).versionName),1)]),default:P(()=>[kt(" 版本名称 ")]),_:1}),ab,te(I(Bn),null,{trigger:P(()=>[A("div",{onClick:d[3]||(d[3]=v=>I(Hn)(I(Un)(h.snapshot).versionCode.toString()))},Be(I(Un)(h.snapshot).versionCode),1)]),default:P(()=>[kt(" 版本代码 ")]),_:1}),ob,te(I(Bn),null,{trigger:P(()=>[A("div",{onClick:d[4]||(d[4]=v=>I(Hn)(h.snapshot.appId))},Be(h.snapshot.appId),1)]),default:P(()=>[kt(" 应用ID ")]),_:1}),sb,te(I(Bn),null,{trigger:P(()=>[A("div",{onClick:d[5]||(d[5]=v=>I(Hn)(f.value)),class:Qr({"opacity-50":!f.value})},Be(f.value||"null"),3)]),default:P(()=>[kt(" 界面ID ")]),_:1})]),lb,A("div",ub,[Rc(h.$slots,"default")])]),cb,te(I(vv),{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"])]))}}),hb={bg:"#eee","px-2px":""},db=Ve({__name:"MultiFocusCard",props:{focusNode:{},focusNodes:{},onUpdateFocusNode:{type:Function,default:Xr},onClose:{type:Function,default:Xr}},setup(e){const n=document.documentElement.scrollWidth/100*25.5;return(r,a)=>(le(),pt(Cl,{initialValue:{top:215,left:n},class:"z-2 box-shadow-dim w-420px",disabled:!r.focusNodes},{default:P(({onRef:o})=>[r.focusNodes?(le(),pt(I(a1),{key:0,size:"small",closable:"",onClose:r.onClose},{header:P(()=>[A("div",{ref:o,"cursor-move":""},[kt(" 位置 "),A("span",hb,Be(`${r.focusNodes.position.x.toFixed(0)},${r.focusNodes.position.y.toFixed()}`),1),kt(" 存在 "+Be(r.focusNodes.nodes.length)+" 个层叠节点 ",1)],512)]),default:P(()=>[te(I(ys),{style:{"max-height":"400px","overflow-y":"scroll","padding-bottom":"10px"}},{default:P(()=>[(le(!0),Mt(Cr,null,na(r.focusNodes.nodes,s=>(le(),pt(I(Kn),{key:s.id,onClick:l=>r.onUpdateFocusNode(s),size:"small",class:Qr({"color-[#00F]":s===r.focusNode})},{default:P(()=>[kt(Be(I(ra)(s)),1)]),_:2},1032,["onClick","class"]))),128))]),_:1})]),_:2},1032,["onClose"])):Kt("",!0)]),_:1},8,["initialValue","disabled"]))}}),vb={"h-full":"",flex:"","gap-5px":"","p-5px":"","box-border":""},pb=A("svg",{viewBox:"0 0 24 24"},[A("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),_b={key:0,class:"gkd_code py-2px px-4px rounded-2px bg-[#eee]"},mb=A("div",{"opacity-75":"","text-12px":""},"*为简化视图已隐藏部分节点",-1),Eb=Ve({__name:"SnapshotPage",setup(e){const t=(()=>{const g=()=>l1(()=>import("./TrackGraph-DMhIY-8G.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url);return setTimeout(g,3e3),o1(g)})(),n=Oc(),r=Lc(),a=$1(),o=oe(()=>String(n.params.snapshotId||"")),s=oe(()=>{const g=Number(n.query.showSize||"");return!Number.isSafeInteger(g)||g<=0?2e3:g}),l=nt(""),c=nt();ka(async()=>{if(!Number.isSafeInteger(+o.value)){wn.error("非法快照ID");return}const g=await Bu.getItem(o.value);if(!g){Ku.start();try{const C=Ni[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{Ku.finish()}wn.error("快照数据缺失");return}setTimeout(()=>{const C=Ni[g.id];C&&N1(C)},1e3),f1()&&Mc.autoUploadImport&&setTimeout(async()=>{I1(g),Ni[g.id]||q1(await Bu.getItem(o.value))},1e3),g.nodes.length>s.value&&(wn.warning(`当前展示节点数量为${s.value}
|
|
274
|
-
之后的${g.nodes.length-s.value}个节点将被丢弃
|
|
275
|
-
使用showSize查询参数可以修改展示数量`),g.nodes=g.nodes.slice(0,s.value));const _=await s1.getItem(o.value);if(!_){wn.create("截屏数据缺失");return}l.value=URL.createObjectURL(new Blob([_],{type:"image/png"})),c.value=g,f.value=k1(g.nodes),a.value="快照-"+Un(g).name||g.appId,h.value||(h.value=f.value)});const f=nt(),h=nt(),d=nt(0),v=async()=>{wn.success("删除成功,即将回到首页"),await zc(2e3),r.replace({path:"/"})},y=nt(),p=nt(!1);$i(()=>{y.value&&(p.value=!0)});const m=nt();return kr(()=>h.value,g=>{var C;const _=(C=m.value)==null?void 0:C.nodes;_&&(!g||!_.includes(g))&&(m.value=void 0)}),(g,_)=>(le(),Mt(Cr,null,[A("div",vb,[l.value&&c.value?(le(),pt(Mv,{key:0,url:l.value,snapshot:c.value,rootNode:f.value,focusNode:h.value,onUpdateFocusNode:_[0]||(_[0]=C=>{h.value=C,d.value++}),onUpdateFocusNodes:_[1]||(_[1]=C=>m.value=C)},null,8,["url","snapshot","rootNode","focusNode"])):Kt("",!0),c.value&&f.value?(le(),pt(fb,{key:1,rootNode:f.value,snapshot:c.value,focusNode:h.value,onUpdateFocusNode:_[2]||(_[2]=C=>h.value=C),focusCount:d.value,class:"flex-1"},{default:P(()=>[c.value?(le(),pt(c1,{key:0,snapshot:c.value,onDelete:v,showPreview:!1},null,8,["snapshot"])):Kt("",!0)]),_:1},8,["rootNode","snapshot","focusNode","focusCount"])):Kt("",!0)]),h.value?(le(),pt(Sv,{key:0,focusNode:h.value},null,8,["focusNode"])):Kt("",!0),f.value&&c.value?(le(),pt(Gy,{key:1,snapshot:c.value,rootNode:f.value,focusNode:h.value,onUpdateFocusNode:_[3]||(_[3]=C=>{h.value=C,d.value++}),onUpdateTrack:_[4]||(_[4]=C=>y.value=C)},null,8,["snapshot","rootNode","focusNode"])):Kt("",!0),te(db,{focusNode:h.value,focusNodes:m.value,onUpdateFocusNode:_[5]||(_[5]=C=>{h.value=C,d.value++}),onClose:_[6]||(_[6]=C=>m.value=void 0)},null,8,["focusNode","focusNodes"]),te(I(u1),{show:p.value,"onUpdate:show":_[7]||(_[7]=C=>p.value=C),preset:"dialog",title:"选择器路径视图",class:"min-w-[calc(var(--gkd-width)*0.4)]",onAfterLeave:_[8]||(_[8]=C=>y.value=void 0)},{icon:P(()=>[te(I(Wn),null,{default:P(()=>[pb]),_:1})]),default:P(()=>[y.value?(le(),Mt("div",_b,Be(y.value.selector.toString()),1)):Kt("",!0),y.value?(le(),pt(I(t),{key:1,track:y.value},null,8,["track"])):Kt("",!0),mb]),_:1},8,["show"])],64))}});export{Eb as default};
|
|
276
|
-
//# sourceMappingURL=SnapshotPage-DsxbIwcQ.js.map
|