@gkd-kit/inspect 0.0.1719771844368 → 0.0.1719809477737
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-BQ_8fdAM.js → ActionCard.vue_vue_type_script_setup_true_lang-DgjceEKQ.js} +2 -2
- package/dist/assets/{ActionCard.vue_vue_type_script_setup_true_lang-BQ_8fdAM.js.map → ActionCard.vue_vue_type_script_setup_true_lang-DgjceEKQ.js.map} +1 -1
- package/dist/assets/{DevicePage-DVADu81G.js → DevicePage-BCFULpTW.js} +3 -3
- package/dist/assets/{DevicePage-DVADu81G.js.map → DevicePage-BCFULpTW.js.map} +1 -1
- package/dist/assets/{HomePage-CaxY_1lw.js → HomePage-BOJ7AWRK.js} +11 -11
- package/dist/assets/{HomePage-CaxY_1lw.js.map → HomePage-BOJ7AWRK.js.map} +1 -1
- package/dist/assets/{ImportPage-NLsJri71.js → ImportPage-ECg81H0f.js} +2 -2
- package/dist/assets/{ImportPage-NLsJri71.js.map → ImportPage-ECg81H0f.js.map} +1 -1
- package/dist/assets/{PreviewSharePage-CQKWL6mm.js → PreviewSharePage-DsMC2Kvy.js} +2 -2
- package/dist/assets/{PreviewSharePage-CQKWL6mm.js.map → PreviewSharePage-DsMC2Kvy.js.map} +1 -1
- package/dist/assets/SnapshotPage-7pjh0kaY.js +276 -0
- package/dist/assets/SnapshotPage-7pjh0kaY.js.map +1 -0
- package/dist/assets/TrackGraph-B7kpqlUB.js +670 -0
- package/dist/assets/TrackGraph-B7kpqlUB.js.map +1 -0
- package/dist/assets/{_404Page-FYDSyMId.js → _404Page-CgpMnAhm.js} +2 -2
- package/dist/assets/{_404Page-FYDSyMId.js.map → _404Page-CgpMnAhm.js.map} +1 -1
- package/dist/assets/dayjs.min-BqNkeEPL.js +362 -0
- package/dist/assets/{dayjs.min-Dk3SwgwA.js.map → dayjs.min-BqNkeEPL.js.map} +1 -1
- package/dist/assets/error-FVVi9B_k.js +2 -0
- package/dist/assets/{error-cRQAxhsF.js.map → error-FVVi9B_k.js.map} +1 -1
- package/dist/assets/{export-BbCEpSmy.js → export-DGrWqYFo.js} +3 -3
- package/dist/assets/export-DGrWqYFo.js.map +1 -0
- package/dist/assets/fetch-C_hNy3_z.js +332 -0
- package/dist/assets/fetch-C_hNy3_z.js.map +1 -0
- package/dist/assets/{import-CtVhDhqQ.js → import-AT6hHH71.js} +2 -2
- package/dist/assets/{import-CtVhDhqQ.js.map → import-AT6hHH71.js.map} +1 -1
- package/dist/assets/index-CN4MFbvb.js +579 -0
- package/dist/assets/index-CN4MFbvb.js.map +1 -0
- package/dist/assets/index-Dt1fnF8L.js +2 -0
- package/dist/assets/index-Dt1fnF8L.js.map +1 -0
- package/dist/assets/index-JWFVa-I-.js +2 -0
- package/dist/assets/index-JWFVa-I-.js.map +1 -0
- package/dist/assets/index-bjp6bkMr.css +1 -0
- package/dist/assets/{index-B3yJ_cuJ.js → index-cauuWky0.js} +16 -16
- package/dist/assets/index-cauuWky0.js.map +1 -0
- package/dist/assets/polyfills-B0jv7P3V.js +1 -0
- package/dist/assets/{table-Nqs-aN9a.js → table-D46ImQL9.js} +13 -13
- package/dist/assets/{table-Nqs-aN9a.js.map → table-D46ImQL9.js.map} +1 -1
- package/dist/index.html +3 -3
- package/package.json +24 -24
- package/dist/assets/SnapshotPage-CaEVhDB3.js +0 -276
- package/dist/assets/SnapshotPage-CaEVhDB3.js.map +0 -1
- package/dist/assets/TrackGraph-LNwgG7Zu.js +0 -670
- package/dist/assets/TrackGraph-LNwgG7Zu.js.map +0 -1
- package/dist/assets/dayjs.min-Dk3SwgwA.js +0 -362
- package/dist/assets/error-cRQAxhsF.js +0 -2
- package/dist/assets/export-BbCEpSmy.js.map +0 -1
- package/dist/assets/fetch-H6IWSOXO.js +0 -332
- package/dist/assets/fetch-H6IWSOXO.js.map +0 -1
- package/dist/assets/index-B3yJ_cuJ.js.map +0 -1
- package/dist/assets/index-DUNQCHBS.js +0 -585
- package/dist/assets/index-DUNQCHBS.js.map +0 -1
- package/dist/assets/index-DgVERJQU.js +0 -2
- package/dist/assets/index-DgVERJQU.js.map +0 -1
- package/dist/assets/index-RwQljgyW.js +0 -2
- package/dist/assets/index-RwQljgyW.js.map +0 -1
- package/dist/assets/index-TfJ1MK62.css +0 -1
- package/dist/assets/polyfills-C-WU4AZr.js +0 -1
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
const __vite__fileDeps=["https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1719809477737/files/dist/assets/TrackGraph-B7kpqlUB.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1719809477737/files/dist/assets/index-CN4MFbvb.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1719809477737/files/dist/assets/index-bjp6bkMr.css","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1719809477737/files/dist/assets/dayjs.min-BqNkeEPL.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1719809477737/files/dist/assets/index-cauuWky0.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1719809477737/files/dist/assets/fetch-C_hNy3_z.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
|
|
2
|
+
import{h as Pe,v as P,a as G,g as xn,e as U,f as Z,b as Te,u as ja,a1 as Md,a2 as As,a3 as Ld,a4 as Pa,d as js,r as ct,m as le,l as ha,j as Ki,q as Ps,a5 as Rs,y as pt,a6 as zd,t as ge,a7 as Of,a8 as Df,a9 as Ff,aa as Od,ab as Nt,ac as fi,ad as Dd,ae as Qu,af as Kf,ag as Fd,ah as Ln,ai as Kd,aj as Bd,ak as Ud,c as Hd,al as Wd,am as Vd,n as bl,N as Gd,x as Jd,X as Qd,an as wl,ao as Yd,Q as Ra,ap as Zd,p as Bf,i as Xd,B as Ri,T as Cr,aq as kl,o as ua,ar as Yu,as as Zu,at as da,A as Ze,R as Ms,au as fo,a0 as mt,K as H,av as Uf,C as It,F as E,G as Jr,P as Ot,aw as Al,ax as ya,ay as e1,I as se,E as T,D as L,az as ma,O as Le,M as Ee,aA as co,Y as Hf,aB as zi,H as Wf,aC as Vf,V as t1,L as br,aD as Cl,aE as n1,$ as r1,aF as Xu,aG as i1,aH as a1,_ as ef,aI as o1,aJ as l1,J as s1}from"./index-CN4MFbvb.js";import{_ as u1}from"./ActionCard.vue_vue_type_script_setup_true_lang-DgjceEKQ.js";import{f as jl,c as kr,b as ri,m as vn,a as Gf,l as tf,g as f1}from"./fetch-C_hNy3_z.js";import{h as Li,C as c1,e as h1,c as d1,d as v1,V as _1,f as nf,i as rf,j as p1,k as Mi,l as m1,m as af,n as ga,b as Pl,o as of,p as g1,N as y1,g as On,q as b1,r as lf,s as w1,t as k1}from"./dayjs.min-BqNkeEPL.js";import{a as Vr,r as C1,N as x1,l as S1}from"./index-cauuWky0.js";import{u as Jf,a as $1}from"./index-JWFVa-I-.js";import{e as E1,a as sf}from"./error-FVVi9B_k.js";import{e as N1,f as I1,g as q1}from"./export-DGrWqYFo.js";import"./index-Dt1fnF8L.js";function Qf(e){return typeof e=="string"?`s-${e}`:`n-${e}`}const T1=Pe({name:"ChevronLeft",render(){return P("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},P("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"}))}}),A1=Pe({name:"Switcher",render(){return P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},P("path",{d:"M12 8l10 8l-10 8z"}))}}),Fe="0!important",Yf="-1px!important";function Ai(e){return Z(e+"-type",[U("& +",[G("button",{},[Z(e+"-type",[Te("border",{borderLeftWidth:Fe}),Te("state-border",{left:Yf})])])])])}function ji(e){return Z(e+"-type",[U("& +",[G("button",[Z(e+"-type",[Te("border",{borderTopWidth:Fe}),Te("state-border",{top:Yf})])])])])}const j1=G("button-group",`
|
|
3
|
+
flex-wrap: nowrap;
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
position: relative;
|
|
6
|
+
`,[xn("vertical",{flexDirection:"row"},[xn("rtl",[G("button",[U("&:first-child:not(:last-child)",`
|
|
7
|
+
margin-right: ${Fe};
|
|
8
|
+
border-top-right-radius: ${Fe};
|
|
9
|
+
border-bottom-right-radius: ${Fe};
|
|
10
|
+
`),U("&:last-child:not(:first-child)",`
|
|
11
|
+
margin-left: ${Fe};
|
|
12
|
+
border-top-left-radius: ${Fe};
|
|
13
|
+
border-bottom-left-radius: ${Fe};
|
|
14
|
+
`),U("&:not(:first-child):not(:last-child)",`
|
|
15
|
+
margin-left: ${Fe};
|
|
16
|
+
margin-right: ${Fe};
|
|
17
|
+
border-radius: ${Fe};
|
|
18
|
+
`),Ai("default"),Z("ghost",[Ai("primary"),Ai("info"),Ai("success"),Ai("warning"),Ai("error")])])])]),Z("vertical",{flexDirection:"column"},[G("button",[U("&: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
|
+
`),U("&: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
|
+
`),U("&:not(:first-child):not(:last-child)",`
|
|
31
|
+
margin: ${Fe};
|
|
32
|
+
border-radius: ${Fe};
|
|
33
|
+
`),ji("default"),Z("ghost",[ji("primary"),ji("info"),ji("success"),ji("warning"),ji("error")])])])]),P1={size:{type:String,default:void 0},vertical:Boolean},R1=Pe({name:"ButtonGroup",props:P1,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=ja(e);return Md("-button-group",j1,t),As(Ld,e),{rtlEnabled:Pa("ButtonGroup",n,t),mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return P("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:l}=e;return{titleFontSize:l,titleFontWeight:t,dividerColor:o,titleTextColor:n,titleTextColorDisabled:a,fontSize:l,textColor:r,arrowColor:r,arrowColorDisabled:a,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}},L1={name:"Collapse",common:js,self:M1},z1=G("collapse","width: 100%;",[G("collapse-item",`
|
|
34
|
+
font-size: var(--n-font-size);
|
|
35
|
+
color: var(--n-text-color);
|
|
36
|
+
transition:
|
|
37
|
+
color .3s var(--n-bezier),
|
|
38
|
+
border-color .3s var(--n-bezier);
|
|
39
|
+
margin: var(--n-item-margin);
|
|
40
|
+
`,[Z("disabled",[Te("header","cursor: not-allowed;",[Te("header-main",`
|
|
41
|
+
color: var(--n-title-text-color-disabled);
|
|
42
|
+
`),G("collapse-item-arrow",`
|
|
43
|
+
color: var(--n-arrow-color-disabled);
|
|
44
|
+
`)])]),G("collapse-item","margin-left: 32px;"),U("&:first-child","margin-top: 0;"),U("&:first-child >",[Te("header","padding-top: 0;")]),Z("left-arrow-placement",[Te("header",[G("collapse-item-arrow","margin-right: 4px;")])]),Z("right-arrow-placement",[Te("header",[G("collapse-item-arrow","margin-left: 4px;")])]),Te("content-wrapper",[Te("content-inner","padding-top: 16px;"),jl({duration:"0.15s"})]),Z("active",[Te("header",[Z("active",[G("collapse-item-arrow","transform: rotate(90deg);")])])]),U("&:not(:first-child)","border-top: 1px solid var(--n-divider-color);"),xn("disabled",[Z("trigger-area-main",[Te("header",[Te("header-main","cursor: pointer;"),G("collapse-item-arrow","cursor: default;")])]),Z("trigger-area-arrow",[Te("header",[G("collapse-item-arrow","cursor: pointer;")])]),Z("trigger-area-extra",[Te("header",[Te("header-extra","cursor: pointer;")])])]),Te("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
|
+
`,[Te("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
|
+
`),Te("header-extra",`
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
transition: color .3s var(--n-bezier);
|
|
65
|
+
color: var(--n-text-color);
|
|
66
|
+
`),G("collapse-item-arrow",`
|
|
67
|
+
display: flex;
|
|
68
|
+
transition:
|
|
69
|
+
transform .15s var(--n-bezier),
|
|
70
|
+
color .3s var(--n-bezier);
|
|
71
|
+
font-size: 18px;
|
|
72
|
+
color: var(--n-arrow-color);
|
|
73
|
+
`)])])]),O1=Object.assign(Object.assign({},Ki.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}}),Zf=Rs("n-collapse"),D1=Pe({name:"Collapse",props:O1,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:a}=ja(e),o=ct(e.defaultExpandedNames),l=le(()=>e.expandedNames),s=ha(l,o),f=Ki("Collapse","-collapse",z1,L1,e,n);function c(m){const{"onUpdate:expandedNames":g,onUpdateExpandedNames:p,onExpandedNamesChange:C}=e;p&&pt(p,m),g&&pt(g,m),C&&pt(C,m),o.value=m}function h(m){const{onItemHeaderClick:g}=e;g&&pt(g,m)}function d(m,g,p){const{accordion:C}=e,{value:k}=s;if(C)m?(c([g]),h({name:g,expanded:!0,event:p})):(c([]),h({name:g,expanded:!1,event:p}));else if(!Array.isArray(k))c([g]),h({name:g,expanded:!0,event:p});else{const S=k.slice(),I=S.findIndex(z=>g===z);~I?(S.splice(I,1),c(S),h({name:g,expanded:!1,event:p})):(S.push(g),c(S),h({name:g,expanded:!0,event:p}))}}As(Zf,{props:e,mergedClsPrefixRef:n,expandedNamesRef:s,slots:t,toggleItem:d});const _=Pa("Collapse",a,n),b=le(()=>{const{common:{cubicBezierEaseInOut:m},self:{titleFontWeight:g,dividerColor:p,titlePadding:C,titleTextColor:k,titleTextColorDisabled:S,textColor:I,arrowColor:z,fontSize:Q,titleFontSize:V,arrowColorDisabled:ie,itemMargin:W}}=f.value;return{"--n-font-size":Q,"--n-bezier":m,"--n-text-color":I,"--n-divider-color":p,"--n-title-padding":C,"--n-title-font-size":V,"--n-title-text-color":k,"--n-title-text-color-disabled":S,"--n-title-font-weight":g,"--n-arrow-color":z,"--n-arrow-color-disabled":ie,"--n-item-margin":W}}),v=r?Ps("collapse",void 0,b,e):void 0;return{rtlEnabled:_,mergedTheme:f,mergedClsPrefix:n,cssVars:r?void 0:b,themeClass:v==null?void 0:v.themeClass,onRender:v==null?void 0:v.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),P("div",{class:[`${this.mergedClsPrefix}-collapse`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse--rtl`,this.themeClass],style:this.cssVars},this.$slots)}}),F1=Pe({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 P(Ff,null,{default:()=>{const{show:e,displayDirective:t,onceTrue:n,clsPrefix:r}=this,a=t==="show"&&n,o=P("div",{class:`${r}-collapse-item__content-wrapper`},P("div",{class:`${r}-collapse-item__content-inner`},this.$slots));return a?Of(o,[[Df,e]]):e?o:null}})}}),K1={title:String,name:[String,Number],disabled:Boolean,displayDirective:String},B1=Pe({name:"CollapseItem",props:K1,setup(e){const{mergedRtlRef:t}=ja(e),n=Od(),r=Nt(()=>{var d;return(d=e.name)!==null&&d!==void 0?d:n}),a=fi(Zf);a||Dd("collapse-item","`n-collapse-item` must be placed inside `n-collapse`.");const{expandedNamesRef:o,props:l,mergedClsPrefixRef:s,slots:f}=a,c=le(()=>{const{value:d}=o;if(Array.isArray(d)){const{value:_}=r;return!~d.findIndex(b=>b===_)}else if(d){const{value:_}=r;return _!==d}return!0});return{rtlEnabled:Pa("Collapse",t,s),collapseSlots:f,randomName:n,mergedClsPrefix:s,collapsed:c,triggerAreas:ge(l,"triggerAreas"),mergedDisplayDirective:le(()=>{const{displayDirective:d}=e;return d||l.displayDirective}),arrowPlacement:le(()=>l.arrowPlacement),handleClick(d){let _="main";Li(d,"arrow")&&(_="arrow"),Li(d,"extra")&&(_="extra"),l.triggerAreas.includes(_)&&a&&!e.disabled&&a.toggleItem(c.value,r.value,d)}}},render(){const{collapseSlots:e,$slots:t,arrowPlacement:n,collapsed:r,mergedDisplayDirective:a,mergedClsPrefix:o,disabled:l,triggerAreas:s}=this,f=Qu(t.header,{collapsed:r},()=>[this.title]),c=t["header-extra"]||e["header-extra"],h=t.arrow||e.arrow;return P("div",{class:[`${o}-collapse-item`,`${o}-collapse-item--${n}-arrow-placement`,l&&`${o}-collapse-item--disabled`,!r&&`${o}-collapse-item--active`,s.map(d=>`${o}-collapse-item--trigger-area-${d}`)]},P("div",{class:[`${o}-collapse-item__header`,!r&&`${o}-collapse-item__header--active`]},P("div",{class:`${o}-collapse-item__header-main`,onClick:this.handleClick},n==="right"&&f,P("div",{class:`${o}-collapse-item-arrow`,key:this.rtlEnabled?0:1,"data-arrow":!0},Qu(h,{collapsed:r},()=>{var d;return[P(Kf,{clsPrefix:o},{default:(d=e.expandIcon)!==null&&d!==void 0?d:()=>this.rtlEnabled?P(T1,null):P(c1,null)})]})),n==="left"&&f),Fd(c,{collapsed:r},d=>P("div",{class:`${o}-collapse-item__header-extra`,onClick:this.handleClick,"data-extra":!0},d))),P(F1,{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:l,textColor1:s,textColor2:f,borderRadius:c,fontWeightStrong:h,lineHeight:d,fontSizeSmall:_,fontSizeMedium:b,fontSizeLarge:v}=e;return Object.assign(Object.assign({},U1),{fontSizeSmall:_,fontSizeMedium:b,fontSizeLarge:v,lineHeight:d,borderRadius:c,borderColor:Ln(n,t),borderColorModal:Ln(r,t),borderColorPopover:Ln(a,t),tdColor:n,tdColorModal:r,tdColorPopover:a,tdColorStriped:Ln(n,l),tdColorStripedModal:Ln(r,l),tdColorStripedPopover:Ln(a,l),thColor:Ln(n,o),thColorModal:Ln(r,o),thColorPopover:Ln(a,o),thTextColor:s,tdTextColor:f,thFontWeight:h})},W1={name:"Table",common:js,self:H1},V1=e=>{const{borderRadiusSmall:t,dividerColor:n,hoverColor:r,pressedColor:a,primaryColor:o,textColor3:l,textColor2:s,textColorDisabled:f,fontSize:c}=e;return{fontSize:c,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:r,nodeColorPressed:a,nodeColorActive:Hd(o,{alpha:.1}),arrowColor:l,nodeTextColor:s,nodeTextColorDisabled:f,loadingColor:o,dropMarkColor:o,lineColor:n}},G1=Kd({name:"Tree",common:js,peers:{Checkbox:Bd,Scrollbar:Ud,Empty:h1},self:V1}),J1=U([G("table",`
|
|
74
|
+
font-size: var(--n-font-size);
|
|
75
|
+
font-variant-numeric: tabular-nums;
|
|
76
|
+
line-height: var(--n-line-height);
|
|
77
|
+
width: 100%;
|
|
78
|
+
border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;
|
|
79
|
+
text-align: left;
|
|
80
|
+
border-collapse: separate;
|
|
81
|
+
border-spacing: 0;
|
|
82
|
+
overflow: hidden;
|
|
83
|
+
background-color: var(--n-td-color);
|
|
84
|
+
border-color: var(--n-merged-border-color);
|
|
85
|
+
transition:
|
|
86
|
+
background-color .3s var(--n-bezier),
|
|
87
|
+
border-color .3s var(--n-bezier),
|
|
88
|
+
color .3s var(--n-bezier);
|
|
89
|
+
--n-merged-border-color: var(--n-border-color);
|
|
90
|
+
`,[U("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
|
+
`,[U("&:last-child",`
|
|
107
|
+
border-right: 0px solid var(--n-merged-border-color);
|
|
108
|
+
`)]),U("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
|
+
`,[U("&:last-child",`
|
|
120
|
+
border-right: 0px solid var(--n-merged-border-color);
|
|
121
|
+
`)]),Z("bordered",`
|
|
122
|
+
border: 1px solid var(--n-merged-border-color);
|
|
123
|
+
border-radius: var(--n-border-radius);
|
|
124
|
+
`,[U("tr",[U("&:last-child",[U("td",`
|
|
125
|
+
border-bottom: 0 solid var(--n-merged-border-color);
|
|
126
|
+
`)])])]),Z("single-line",[U("th",`
|
|
127
|
+
border-right: 0px solid var(--n-merged-border-color);
|
|
128
|
+
`),U("td",`
|
|
129
|
+
border-right: 0px solid var(--n-merged-border-color);
|
|
130
|
+
`)]),Z("single-column",[U("tr",[U("&:not(:last-child)",[U("td",`
|
|
131
|
+
border-bottom: 0px solid var(--n-merged-border-color);
|
|
132
|
+
`)])])]),Z("striped",[U("tr:nth-of-type(even)",[U("td","background-color: var(--n-td-color-striped)")])]),xn("bottom-bordered",[U("tr",[U("&:last-child",[U("td",`
|
|
133
|
+
border-bottom: 0px solid var(--n-merged-border-color);
|
|
134
|
+
`)])])])]),Wd(G("table",`
|
|
135
|
+
background-color: var(--n-td-color-modal);
|
|
136
|
+
--n-merged-border-color: var(--n-border-color-modal);
|
|
137
|
+
`,[U("th",`
|
|
138
|
+
background-color: var(--n-th-color-modal);
|
|
139
|
+
`),U("td",`
|
|
140
|
+
background-color: var(--n-td-color-modal);
|
|
141
|
+
`)])),Vd(G("table",`
|
|
142
|
+
background-color: var(--n-td-color-popover);
|
|
143
|
+
--n-merged-border-color: var(--n-border-color-popover);
|
|
144
|
+
`,[U("th",`
|
|
145
|
+
background-color: var(--n-th-color-popover);
|
|
146
|
+
`),U("td",`
|
|
147
|
+
background-color: var(--n-td-color-popover);
|
|
148
|
+
`)]))]),Q1=Object.assign(Object.assign({},Ki.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"}}),Xf=Pe({name:"Table",props:Q1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=ja(e),a=Ki("Table","-table",J1,W1,e,t),o=Pa("Table",r,t),l=le(()=>{const{size:f}=e,{self:{borderColor:c,tdColor:h,tdColorModal:d,tdColorPopover:_,thColor:b,thColorModal:v,thColorPopover:m,thTextColor:g,tdTextColor:p,borderRadius:C,thFontWeight:k,lineHeight:S,borderColorModal:I,borderColorPopover:z,tdColorStriped:Q,tdColorStripedModal:V,tdColorStripedPopover:ie,[bl("fontSize",f)]:W,[bl("tdPadding",f)]:qe,[bl("thPadding",f)]:pe},common:{cubicBezierEaseInOut:we}}=a.value;return{"--n-bezier":we,"--n-td-color":h,"--n-td-color-modal":d,"--n-td-color-popover":_,"--n-td-text-color":p,"--n-border-color":c,"--n-border-color-modal":I,"--n-border-color-popover":z,"--n-border-radius":C,"--n-font-size":W,"--n-th-color":b,"--n-th-color-modal":v,"--n-th-color-popover":m,"--n-th-font-weight":k,"--n-th-text-color":g,"--n-line-height":S,"--n-td-padding":qe,"--n-th-padding":pe,"--n-td-color-striped":Q,"--n-td-color-striped-modal":V,"--n-td-color-striped-popover":ie}}),s=n?Ps("table",le(()=>e.size[0]),l,e):void 0;return{rtlEnabled:o,mergedClsPrefix:t,cssVars:n?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),P("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)}}),zn=Pe({name:"Th",render(){return P("th",null,this.$slots)}}),Rl=Pe({name:"Tr",render(){return P("tr",null,this.$slots)}}),dn=Pe({name:"Td",render(){return P("td",null,this.$slots)}}),Y1=Pe({name:"Thead",render(){return P("thead",null,this.$slots)}}),ec=Pe({name:"Tbody",render(){return P("tbody",null,this.$slots)}}),tc=Rs("n-tree-select"),Ma=Rs("n-tree"),Z1=Pe({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}=fi(Ma,null);return()=>{const{clsPrefix:n,expanded:r,hide:a,indent:o,onClick:l}=e;return P("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:l},P("div",{class:`${n}-tree-node-switcher__icon`},P(Gd,null,{default:()=>{if(e.loading)return P(Jd,{clsPrefix:n,key:"loading",radius:85,strokeWidth:20});const{value:s}=t;return s?s({expanded:e.expanded,selected:e.selected,option:e.tmNode.rawNode}):P(Kf,{clsPrefix:n,key:"switcher"},{default:()=>P(A1,null)})}})))}}}),X1=Pe({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=fi(Ma);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:l,handleUpdateValue:s}=this;return P("span",{class:[`${e}-tree-node-checkbox`,this.right&&`${e}-tree-node-checkbox--right`],style:{width:`${l}px`},"data-checkbox":!0},P(Qd,{focusable:o,disabled:a,theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,checked:n,indeterminate:r,onUpdateChecked:s}))}}),ev=Pe({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}=fi(Ma),o=ct(null);function l(f){const{onClick:c}=e;c&&c(f)}function s(f){l(f)}return{selfRef:o,renderLabel:t,renderPrefix:n,renderSuffix:r,labelField:a,handleClick:s}},render(){const{clsPrefix:e,labelField:t,nodeProps:n,checked:r=!1,selected:a=!1,renderLabel:o,renderPrefix:l,renderSuffix:s,handleClick:f,onDragstart:c,tmNode:{rawNode:h,rawNode:{prefix:d,suffix:_,[t]:b}}}=this;return P("span",Object.assign({},n,{ref:"selfRef",class:[`${e}-tree-node-content`,n==null?void 0:n.class],onClick:f,draggable:c===void 0?void 0:!0,onDragstart:c}),l||d?P("div",{class:`${e}-tree-node-content__prefix`},l?l({option:h,selected:a,checked:r}):wl(d)):null,P("div",{class:`${e}-tree-node-content__text`},o?o({option:h,selected:a,checked:r}):wl(b)),s||_?P("div",{class:`${e}-tree-node-content__suffix`},s?s({option:h,selected:a,checked:r}):wl(_)):null)}});function uf({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 P("div",{style:a})}function tv({dropPosition:e,node:t}){return t.isLeaf===!1||t.children?!0:e!=="inside"}function nv(e){return le(()=>e.leafOnly?"child":e.checkStrategy)}function wr(e,t){return!!e.rawNode[t]}function nc(e,t,n,r){e==null||e.forEach(a=>{n(a),nc(a[t],t,n,r),r(a)})}function rv(e,t,n,r,a){const o=new Set,l=new Set,s=[];return nc(e,r,f=>{if(s.push(f),a(t,f)){l.add(f[n]);for(let c=s.length-2;c>=0;--c)if(!o.has(s[c][n]))o.add(s[c][n]);else return}},()=>{s.pop()}),{expandedKeys:Array.from(o),highlightKeySet:l}}if(Yd&&Image){const e=new Image;e.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}function iv(e,t,n,r,a){const o=new Set,l=new Set,s=new Set,f=[],c=[],h=[];function d(b){b.forEach(v=>{if(h.push(v),t(n,v)){o.add(v[r]),s.add(v[r]);for(let g=h.length-2;g>=0;--g){const p=h[g][r];if(!l.has(p))l.add(p),o.has(p)&&o.delete(p);else break}}const m=v[a];m&&d(m),h.pop()})}d(e);function _(b,v){b.forEach(m=>{const g=m[r],p=o.has(g),C=l.has(g);if(!p&&!C)return;const k=m[a];if(k)if(p)v.push(m);else{f.push(g);const S=Object.assign(Object.assign({},m),{[a]:[]});v.push(S),_(k,S[a])}else v.push(m)})}return _(e,c),{filteredTree:c,highlightKeySet:s,expandedKeys:f}}const rc=Pe({name:"TreeNode",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const t=fi(Ma),{droppingNodeParentRef:n,droppingMouseNodeRef:r,draggingNodeRef:a,droppingPositionRef:o,droppingOffsetLevelRef:l,nodePropsRef:s,indentRef:f,blockLineRef:c,checkboxPlacementRef:h,checkOnClickRef:d,disabledFieldRef:_,showLineRef:b,renderSwitcherIconRef:v,overrideDefaultNodeClickBehaviorRef:m}=t,g=Nt(()=>!!e.tmNode.rawNode.checkboxDisabled),p=Nt(()=>wr(e.tmNode,_.value)),C=Nt(()=>t.disabledRef.value||p.value),k=le(()=>{const{value:A}=s;if(A)return A({option:e.tmNode.rawNode})}),S=ct(null),I={value:null};Ra(()=>{I.value=S.value.$el});function z(){const A=()=>{const{tmNode:Y}=e;if(!Y.isLeaf&&!Y.shallowLoaded){if(!t.loadingKeysRef.value.has(Y.key))t.loadingKeysRef.value.add(Y.key);else return;const{onLoadRef:{value:he}}=t;he&&he(Y.rawNode).then(Se=>{Se!==!1&&t.handleSwitcherClick(Y)}).finally(()=>{t.loadingKeysRef.value.delete(Y.key)})}else t.handleSwitcherClick(Y)};v.value?setTimeout(A,0):A()}const Q=Nt(()=>!p.value&&t.selectableRef.value&&(t.internalTreeSelect?t.mergedCheckStrategyRef.value!=="child"||t.multipleRef.value&&t.cascadeRef.value||e.tmNode.isLeaf:!0)),V=Nt(()=>t.checkableRef.value&&(t.cascadeRef.value||t.mergedCheckStrategyRef.value!=="child"||e.tmNode.isLeaf)),ie=Nt(()=>t.displayedCheckedKeysRef.value.includes(e.tmNode.key)),W=Nt(()=>{const{value:A}=V;if(!A)return!1;const{value:Y}=d,{tmNode:he}=e;return typeof Y=="boolean"?!he.disabled&&Y:Y(e.tmNode.rawNode)});function qe(A){const{value:Y}=t.expandOnClickRef,{value:he}=Q,{value:Se}=W;if(!he&&!Y&&!Se||Li(A,"checkbox")||Li(A,"switcher"))return;const{tmNode:ft}=e;he&&t.handleSelect(ft),Y&&!ft.isLeaf&&z(),Se&&ve(!ie.value)}function pe(A){var Y,he;if(!(Li(A,"checkbox")||Li(A,"switcher"))){if(!C.value){const Se=m.value;let ft=!1;if(Se)switch(Se({option:e.tmNode.rawNode})){case"toggleCheck":ft=!0,ve(!ie.value);break;case"toggleSelect":ft=!0,t.handleSelect(e.tmNode);break;case"toggleExpand":ft=!0,z(),ft=!0;break;case"none":ft=!0,ft=!0;return}ft||qe(A)}(he=(Y=k.value)===null||Y===void 0?void 0:Y.onClick)===null||he===void 0||he.call(Y,A)}}function we(A){c.value||pe(A)}function oe(A){c.value&&pe(A)}function ve(A){t.handleCheck(e.tmNode,A)}function Oe(A){t.handleDragStart({event:A,node:e.tmNode})}function Re(A){A.currentTarget===A.target&&t.handleDragEnter({event:A,node:e.tmNode})}function me(A){A.preventDefault(),t.handleDragOver({event:A,node:e.tmNode})}function Je(A){t.handleDragEnd({event:A,node:e.tmNode})}function at(A){A.currentTarget===A.target&&t.handleDragLeave({event:A,node:e.tmNode})}function $t(A){A.preventDefault(),o.value!==null&&t.handleDrop({event:A,node:e.tmNode,dropPosition:o.value})}const bn=le(()=>{const{clsPrefix:A}=e,{value:Y}=f;if(b.value){const he=[];let Se=e.tmNode.parent;for(;Se;)Se.isLastChild?he.push(P("div",{class:`${A}-tree-node-indent`},P("div",{style:{width:`${Y}px`}}))):he.push(P("div",{class:[`${A}-tree-node-indent`,`${A}-tree-node-indent--show-line`]},P("div",{style:{width:`${Y}px`}}))),Se=Se.parent;return he.reverse()}else return Zd(e.tmNode.level,P("div",{class:`${e.clsPrefix}-tree-node-indent`},P("div",{style:{width:`${Y}px`}})))});return{showDropMark:Nt(()=>{const{value:A}=a;if(!A)return;const{value:Y}=o;if(!Y)return;const{value:he}=r;if(!he)return;const{tmNode:Se}=e;return Se.key===he.key}),showDropMarkAsParent:Nt(()=>{const{value:A}=n;if(!A)return!1;const{tmNode:Y}=e,{value:he}=o;return he==="before"||he==="after"?A.key===Y.key:!1}),pending:Nt(()=>t.pendingNodeKeyRef.value===e.tmNode.key),loading:Nt(()=>t.loadingKeysRef.value.has(e.tmNode.key)),highlight:Nt(()=>{var A;return(A=t.highlightKeySetRef.value)===null||A===void 0?void 0:A.has(e.tmNode.key)}),checked:ie,indeterminate:Nt(()=>t.displayedIndeterminateKeysRef.value.includes(e.tmNode.key)),selected:Nt(()=>t.mergedSelectedKeysRef.value.includes(e.tmNode.key)),expanded:Nt(()=>t.mergedExpandedKeysRef.value.includes(e.tmNode.key)),disabled:C,checkable:V,mergedCheckOnClick:W,checkboxDisabled:g,selectable:Q,expandOnClick:t.expandOnClickRef,internalScrollable:t.internalScrollableRef,draggable:t.draggableRef,blockLine:c,nodeProps:k,checkboxFocusable:t.internalCheckboxFocusableRef,droppingPosition:o,droppingOffsetLevel:l,indent:f,checkboxPlacement:h,showLine:b,contentInstRef:S,contentElRef:I,indentNodes:bn,handleCheck:ve,handleDrop:$t,handleDragStart:Oe,handleDragEnter:Re,handleDragOver:me,handleDragEnd:Je,handleDragLeave:at,handleLineClick:oe,handleContentClick:we,handleSwitcherClick:z}},render(){const{tmNode:e,clsPrefix:t,checkable:n,expandOnClick:r,selectable:a,selected:o,checked:l,highlight:s,draggable:f,blockLine:c,indent:h,indentNodes:d,disabled:_,pending:b,internalScrollable:v,nodeProps:m,checkboxPlacement:g}=this,p=f&&!_?{onDragenter:this.handleDragEnter,onDragleave:this.handleDragLeave,onDragend:this.handleDragEnd,onDrop:this.handleDrop,onDragover:this.handleDragOver}:void 0,C=v?Qf(e.key):void 0,k=g==="right",S=n?P(X1,{indent:h,right:k,focusable:this.checkboxFocusable,disabled:_||this.checkboxDisabled,clsPrefix:t,checked:this.checked,indeterminate:this.indeterminate,onCheck:this.handleCheck}):null;return P("div",Object.assign({class:`${t}-tree-node-wrapper`},p),P("div",Object.assign({},c?m:void 0,{class:[`${t}-tree-node`,{[`${t}-tree-node--selected`]:o,[`${t}-tree-node--checkable`]:n,[`${t}-tree-node--highlight`]:s,[`${t}-tree-node--pending`]:b,[`${t}-tree-node--disabled`]:_,[`${t}-tree-node--selectable`]:a,[`${t}-tree-node--clickable`]:a||r||this.mergedCheckOnClick},m==null?void 0:m.class],"data-key":C,draggable:f&&c,onClick:this.handleLineClick,onDragstart:f&&c&&!_?this.handleDragStart:void 0}),d,e.isLeaf&&this.showLine?P("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`]},P("div",{style:{width:`${h}px`}})):P(Z1,{clsPrefix:t,expanded:this.expanded,selected:o,loading:this.loading,hide:e.isLeaf,tmNode:this.tmNode,indent:h,onClick:this.handleSwitcherClick}),k?null:S,P(ev,{ref:"contentInstRef",clsPrefix:t,checked:l,selected:o,onClick:this.handleContentClick,nodeProps:c?void 0:m,onDragstart:f&&!c&&!_?this.handleDragStart:void 0,tmNode:e}),f?this.showDropMark?uf({el:this.contentElRef.value,position:this.droppingPosition,offsetLevel:this.droppingOffsetLevel,indent:h}):this.showDropMarkAsParent?uf({el:this.contentElRef.value,position:"inside",offsetLevel:this.droppingOffsetLevel,indent:h}):null:null,k?S:null))}});function av({props:e,fNodesRef:t,mergedExpandedKeysRef:n,mergedSelectedKeysRef:r,mergedCheckedKeysRef:a,handleCheck:o,handleSelect:l,handleSwitcherClick:s}){const{value:f}=r,c=fi(tc,null),h=c?c.pendingNodeKeyRef:ct(f.length?f[f.length-1]:null);function d(_){var b;if(!e.keyboard)return{enterBehavior:null};const{value:v}=h;let m=null;if(v===null){if((_.key==="ArrowDown"||_.key==="ArrowUp")&&_.preventDefault(),["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(_.key)&&v===null){const{value:g}=t;let p=0;for(;p<g.length;){if(!g[p].disabled){h.value=g[p].key;break}p+=1}}}else{const{value:g}=t;let p=g.findIndex(C=>C.key===v);if(!~p)return{enterBehavior:null};if(_.key==="Enter"){const C=g[p];switch(m=((b=e.overrideDefaultNodeClickBehavior)===null||b===void 0?void 0:b.call(e,{option:C.rawNode}))||null,m){case"toggleCheck":o(C,!a.value.includes(C.key));break;case"toggleSelect":l(C);break;case"toggleExpand":s(C);break;case"none":break;case"default":default:m="default",l(C)}}else if(_.key==="ArrowDown")for(_.preventDefault(),p+=1;p<g.length;){if(!g[p].disabled){h.value=g[p].key;break}p+=1}else if(_.key==="ArrowUp")for(_.preventDefault(),p-=1;p>=0;){if(!g[p].disabled){h.value=g[p].key;break}p-=1}else if(_.key==="ArrowLeft"){const C=g[p];if(C.isLeaf||!n.value.includes(v)){const k=C.getParent();k&&(h.value=k.key)}else s(C)}else if(_.key==="ArrowRight"){const C=g[p];if(C.isLeaf)return{enterBehavior:null};if(!n.value.includes(v))s(C);else for(p+=1;p<g.length;){if(!g[p].disabled){h.value=g[p].key;break}p+=1}}}return{enterBehavior:m}}return{pendingNodeKeyRef:h,handleKeydown:d}}const ov=Pe({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 P(Ff,{onAfterEnter:this.onAfterEnter,appear:!0,reverse:this.mode==="collapse"},{default:()=>P("div",{class:[`${e}-tree-motion-wrapper`,`${e}-tree-motion-wrapper--${this.mode}`],style:{height:Bf(this.height)}},this.nodes.map(t=>P(rc,{clsPrefix:e,tmNode:t})))})}}),xl=Xd(),lv=G("tree",`
|
|
149
|
+
font-size: var(--n-font-size);
|
|
150
|
+
outline: none;
|
|
151
|
+
`,[U("ul, li",`
|
|
152
|
+
margin: 0;
|
|
153
|
+
padding: 0;
|
|
154
|
+
list-style: none;
|
|
155
|
+
`),U(">",[G("tree-node",[U("&:first-child","margin-top: 0;")])]),G("tree-motion-wrapper",[Z("expand",[jl({duration:"0.2s"})]),Z("collapse",[jl({duration:"0.2s",reverse:!0})])]),G("tree-node-wrapper",`
|
|
156
|
+
box-sizing: border-box;
|
|
157
|
+
padding: var(--n-node-wrapper-padding);
|
|
158
|
+
`),G("tree-node",`
|
|
159
|
+
transform: translate3d(0,0,0);
|
|
160
|
+
position: relative;
|
|
161
|
+
display: flex;
|
|
162
|
+
border-radius: var(--n-node-border-radius);
|
|
163
|
+
transition: background-color .3s var(--n-bezier);
|
|
164
|
+
`,[Z("highlight",[G("tree-node-content",[Te("text","border-bottom-color: var(--n-node-text-color-disabled);")])]),Z("disabled",[G("tree-node-content",`
|
|
165
|
+
color: var(--n-node-text-color-disabled);
|
|
166
|
+
cursor: not-allowed;
|
|
167
|
+
`)]),xn("disabled",[Z("clickable",[G("tree-node-content",`
|
|
168
|
+
cursor: pointer;
|
|
169
|
+
`)])])]),Z("block-node",[G("tree-node-content",`
|
|
170
|
+
flex: 1;
|
|
171
|
+
min-width: 0;
|
|
172
|
+
`)]),xn("block-line",[G("tree-node",[xn("disabled",[G("tree-node-content",[U("&:hover","background: var(--n-node-color-hover);")]),Z("selectable",[G("tree-node-content",[U("&:active","background: var(--n-node-color-pressed);")])]),Z("pending",[G("tree-node-content",`
|
|
173
|
+
background: var(--n-node-color-hover);
|
|
174
|
+
`)]),Z("selected",[G("tree-node-content","background: var(--n-node-color-active);")])]),Z("selected",[G("tree-node-content","background: var(--n-node-color-active);")])])]),Z("block-line",[G("tree-node",[xn("disabled",[U("&:hover","background: var(--n-node-color-hover);"),Z("pending",`
|
|
175
|
+
background: var(--n-node-color-hover);
|
|
176
|
+
`),Z("selectable",[xn("selected",[U("&:active","background: var(--n-node-color-pressed);")])]),Z("selected","background: var(--n-node-color-active);")]),Z("selected","background: var(--n-node-color-active);"),Z("disabled",`
|
|
177
|
+
cursor: not-allowed;
|
|
178
|
+
`)])]),G("tree-node-indent",`
|
|
179
|
+
flex-grow: 0;
|
|
180
|
+
flex-shrink: 0;
|
|
181
|
+
`,[Z("show-line","position: relative",[U("&::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
|
+
`),Z("last-child",[U("&::before",`
|
|
191
|
+
bottom: 50%;
|
|
192
|
+
`)]),Z("is-leaf",[U("&::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
|
+
`)])]),xn("show-line","height: 0;")]),G("tree-node-switcher",`
|
|
201
|
+
cursor: pointer;
|
|
202
|
+
display: inline-flex;
|
|
203
|
+
flex-shrink: 0;
|
|
204
|
+
height: var(--n-node-content-height);
|
|
205
|
+
align-items: center;
|
|
206
|
+
justify-content: center;
|
|
207
|
+
transition: transform .15s var(--n-bezier);
|
|
208
|
+
vertical-align: bottom;
|
|
209
|
+
`,[Te("icon",`
|
|
210
|
+
position: relative;
|
|
211
|
+
height: 14px;
|
|
212
|
+
width: 14px;
|
|
213
|
+
display: flex;
|
|
214
|
+
color: var(--n-arrow-color);
|
|
215
|
+
transition: color .3s var(--n-bezier);
|
|
216
|
+
font-size: 14px;
|
|
217
|
+
`,[G("icon",[xl]),G("base-loading",`
|
|
218
|
+
color: var(--n-loading-color);
|
|
219
|
+
position: absolute;
|
|
220
|
+
left: 0;
|
|
221
|
+
top: 0;
|
|
222
|
+
right: 0;
|
|
223
|
+
bottom: 0;
|
|
224
|
+
`,[xl]),G("base-icon",[xl])]),Z("hide","visibility: hidden;"),Z("expanded","transform: rotate(90deg);")]),G("tree-node-checkbox",`
|
|
225
|
+
display: inline-flex;
|
|
226
|
+
height: var(--n-node-content-height);
|
|
227
|
+
vertical-align: bottom;
|
|
228
|
+
align-items: center;
|
|
229
|
+
justify-content: center;
|
|
230
|
+
`),G("tree-node-content",`
|
|
231
|
+
user-select: none;
|
|
232
|
+
position: relative;
|
|
233
|
+
display: inline-flex;
|
|
234
|
+
align-items: center;
|
|
235
|
+
min-height: var(--n-node-content-height);
|
|
236
|
+
box-sizing: border-box;
|
|
237
|
+
line-height: var(--n-line-height);
|
|
238
|
+
vertical-align: bottom;
|
|
239
|
+
padding: 0 6px 0 4px;
|
|
240
|
+
cursor: default;
|
|
241
|
+
border-radius: var(--n-node-border-radius);
|
|
242
|
+
color: var(--n-node-text-color);
|
|
243
|
+
transition:
|
|
244
|
+
color .3s var(--n-bezier),
|
|
245
|
+
background-color .3s var(--n-bezier),
|
|
246
|
+
border-color .3s var(--n-bezier);
|
|
247
|
+
`,[U("&:last-child","margin-bottom: 0;"),Te("prefix",`
|
|
248
|
+
display: inline-flex;
|
|
249
|
+
margin-right: 8px;
|
|
250
|
+
`),Te("text",`
|
|
251
|
+
border-bottom: 1px solid #0000;
|
|
252
|
+
transition: border-color .3s var(--n-bezier);
|
|
253
|
+
flex-grow: 1;
|
|
254
|
+
max-width: 100%;
|
|
255
|
+
`),Te("suffix",`
|
|
256
|
+
display: inline-flex;
|
|
257
|
+
`)]),Te("empty","margin: auto;")]);var sv=function(e,t,n,r){function a(o){return o instanceof n?o:new n(function(l){l(o)})}return new(n||(n=Promise))(function(o,l){function s(h){try{c(r.next(h))}catch(d){l(d)}}function f(h){try{c(r.throw(h))}catch(d){l(d)}}function c(h){h.done?o(h.value):a(h.value).then(s,f)}c((r=r.apply(e,[])).next())})};function uv(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 fv={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},cv=Object.assign(Object.assign(Object.assign(Object.assign({},Ki.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:tv},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]}),fv),{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}),hv=Pe({name:"Tree",props:cv,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=ja(e),a=Pa("Tree",r,t),o=Ki("Tree","-tree",lv,G1,e,t),l=ct(null),s=ct(null),f=ct(null);function c(){var y;return(y=f.value)===null||y===void 0?void 0:y.listElRef}function h(){var y;return(y=f.value)===null||y===void 0?void 0:y.itemsElRef}const d=le(()=>{const{filter:y}=e;if(y)return y;const{labelField:x}=e;return(q,M)=>{if(!q.length)return!0;const O=M[x];return typeof O=="string"?O.toLowerCase().includes(q.toLowerCase()):!1}}),_=le(()=>{const{pattern:y}=e;return y?!y.length||!d.value?{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}:iv(e.data,d.value,y,e.keyField,e.childrenField):{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}}),b=le(()=>d1(e.showIrrelevantNodes?e.data:_.value.filteredTree,uv(e.keyField,e.childrenField,e.disabledField,e.getChildren))),v=fi(tc,null),m=e.internalTreeSelect?v.dataTreeMate:b,{watchProps:g}=e,p=ct([]);g!=null&&g.includes("defaultCheckedKeys")?Ri(()=>{p.value=e.defaultCheckedKeys}):p.value=e.defaultCheckedKeys;const C=ge(e,"checkedKeys"),k=ha(C,p),S=le(()=>m.value.getCheckedKeys(k.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})),I=nv(e),z=le(()=>S.value.checkedKeys),Q=le(()=>{const{indeterminateKeys:y}=e;return y!==void 0?y:S.value.indeterminateKeys}),V=ct([]);g!=null&&g.includes("defaultSelectedKeys")?Ri(()=>{V.value=e.defaultSelectedKeys}):V.value=e.defaultSelectedKeys;const ie=ge(e,"selectedKeys"),W=ha(ie,V),qe=ct([]),pe=y=>{qe.value=e.defaultExpandAll?m.value.getNonLeafKeys():y===void 0?e.defaultExpandedKeys:y};g!=null&&g.includes("defaultExpandedKeys")?Ri(()=>{pe(void 0)}):Ri(()=>{pe(e.defaultExpandedKeys)});const we=ge(e,"expandedKeys"),oe=ha(we,qe),ve=le(()=>b.value.getFlattenedNodes(oe.value)),{pendingNodeKeyRef:Oe,handleKeydown:Re}=av({props:e,mergedCheckedKeysRef:k,mergedSelectedKeysRef:W,fNodesRef:ve,mergedExpandedKeysRef:oe,handleCheck:ml,handleSelect:gl,handleSwitcherClick:Hu});let me=null,Je=null;const at=ct(new Set),$t=le(()=>e.internalHighlightKeySet||_.value.highlightKeySet),bn=ha($t,at),A=ct(new Set),Y=le(()=>oe.value.filter(y=>!A.value.has(y)));let he=0;const Se=ct(null),ft=ct(null),Ci=ct(null),Rn=ct(null),Ur=ct(0),hl=le(()=>{const{value:y}=ft;return y?y.parent:null});let ra=!1;Cr(ge(e,"data"),()=>{ra=!0,da(()=>{ra=!1}),A.value.clear(),Oe.value=null,sa()},{deep:!1});let mr=!1;const xi=()=>{mr=!0,da(()=>{mr=!1})};let Hr;Cr(ge(e,"pattern"),(y,x)=>{if(e.showIrrelevantNodes)if(Hr=void 0,y){const{expandedKeys:q,highlightKeySet:M}=rv(e.data,e.pattern,e.keyField,e.childrenField,d.value);at.value=M,xi(),kn(q,Et(q),{node:null,action:"filter"})}else at.value=new Set;else if(!y.length)Hr!==void 0&&(xi(),kn(Hr,Et(Hr),{node:null,action:"filter"}));else{x.length||(Hr=oe.value);const{expandedKeys:q}=_.value;q!==void 0&&(xi(),kn(q,Et(q),{node:null,action:"filter"}))}});function ia(y){return sv(this,void 0,void 0,function*(){const{onLoad:x}=e;if(!x){yield Promise.resolve();return}const{value:q}=A;if(!q.has(y.key)){q.add(y.key);try{(yield x(y.rawNode))===!1&&Ei()}catch(M){console.error(M),Ei()}q.delete(y.key)}})}Ri(()=>{var y;const{value:x}=b;if(!x)return;const{getNode:q}=x;(y=oe.value)===null||y===void 0||y.forEach(M=>{const O=q(M);O&&!O.shallowLoaded&&ia(O)})});const gr=ct(!1),wn=ct([]);Cr(Y,(y,x)=>{if(!e.animated||mr){da(Mn);return}if(ra)return;const q=ua(o.value.self.nodeHeight),M=new Set(x);let O=null,De=null;for(const $e of y)if(!M.has($e)){if(O!==null)return;O=$e}const zt=new Set(y);for(const $e of x)if(!zt.has($e)){if(De!==null)return;De=$e}if(O===null&&De===null)return;const{virtualScroll:Yt}=e,Ii=(Yt?f.value.listElRef:l.value).offsetHeight,qi=Math.ceil(Ii/q)+1;let tn;if(O!==null&&(tn=x),De!==null&&(tn===void 0?tn=y:tn=tn.filter($e=>$e!==De)),gr.value=!0,wn.value=b.value.getFlattenedNodes(tn),O!==null){const $e=wn.value.findIndex(nn=>nn.key===O);if(~$e){const nn=wn.value[$e].children;if(nn){const hn=nf(nn,y);wn.value.splice($e+1,0,{__motion:!0,mode:"expand",height:Yt?hn.length*q:void 0,nodes:Yt?hn.slice(0,qi):hn})}}}if(De!==null){const $e=wn.value.findIndex(nn=>nn.key===De);if(~$e){const nn=wn.value[$e].children;if(!nn)return;gr.value=!0;const hn=nf(nn,y);wn.value.splice($e+1,0,{__motion:!0,mode:"collapse",height:Yt?hn.length*q:void 0,nodes:Yt?hn.slice(0,qi):hn})}}});const yr=le(()=>v1(ve.value)),ro=le(()=>gr.value?wn.value:ve.value);function Mn(){const{value:y}=s;y&&y.sync()}function dl(){gr.value=!1,e.virtualScroll&&da(Mn)}function Et(y){const{getNode:x}=m.value;return y.map(q=>{var M;return((M=x(q))===null||M===void 0?void 0:M.rawNode)||null})}function kn(y,x,q){const{"onUpdate:expandedKeys":M,onUpdateExpandedKeys:O}=e;qe.value=y,M&&pt(M,y,x,q),O&&pt(O,y,x,q)}function aa(y,x,q){const{"onUpdate:checkedKeys":M,onUpdateCheckedKeys:O}=e;p.value=y,O&&pt(O,y,x,q),M&&pt(M,y,x,q)}function Si(y,x){const{"onUpdate:indeterminateKeys":q,onUpdateIndeterminateKeys:M}=e;q&&pt(q,y,x),M&&pt(M,y,x)}function oa(y,x,q){const{"onUpdate:selectedKeys":M,onUpdateSelectedKeys:O}=e;V.value=y,O&&pt(O,y,x,q),M&&pt(M,y,x,q)}function vl(y){const{onDragenter:x}=e;x&&pt(x,y)}function la(y){const{onDragleave:x}=e;x&&pt(x,y)}function io(y){const{onDragend:x}=e;x&&pt(x,y)}function $i(y){const{onDragstart:x}=e;x&&pt(x,y)}function _l(y){const{onDragover:x}=e;x&&pt(x,y)}function pl(y){const{onDrop:x}=e;x&&pt(x,y)}function sa(){kd(),Wr()}function kd(){Se.value=null}function Wr(){Ur.value=0,ft.value=null,Ci.value=null,Rn.value=null,Ei()}function Ei(){me&&(window.clearTimeout(me),me=null),Je=null}function ml(y,x){if(e.disabled||wr(y,e.disabledField))return;if(e.internalUnifySelectCheck&&!e.multiple){gl(y);return}const q=x?"check":"uncheck",{checkedKeys:M,indeterminateKeys:O}=m.value[q](y.key,z.value,{cascade:e.cascade,checkStrategy:I.value,allowNotLoaded:e.allowCheckingNotLoaded});aa(M,Et(M),{node:y.rawNode,action:q}),Si(O,Et(O))}function Cd(y){if(e.disabled)return;const{key:x}=y,{value:q}=oe,M=q.findIndex(O=>O===x);if(~M){const O=Array.from(q);O.splice(M,1),kn(O,Et(O),{node:y.rawNode,action:"collapse"})}else{const O=b.value.getNode(x);if(!O||O.isLeaf)return;let De;if(e.accordion){const zt=new Set(y.siblings.map(({key:Yt})=>Yt));De=q.filter(Yt=>!zt.has(Yt)),De.push(x)}else De=q.concat(x);kn(De,Et(De),{node:y.rawNode,action:"expand"})}}function Hu(y){e.disabled||gr.value||Cd(y)}function gl(y){if(!(e.disabled||!e.selectable)){if(Oe.value=y.key,e.internalUnifySelectCheck){const{value:{checkedKeys:x,indeterminateKeys:q}}=S;e.multiple?ml(y,!(x.includes(y.key)||q.includes(y.key))):aa([y.key],Et([y.key]),{node:y.rawNode,action:"check"})}if(e.multiple){const x=Array.from(W.value),q=x.findIndex(M=>M===y.key);~q?e.cancelable&&x.splice(q,1):~q||x.push(y.key),oa(x,Et(x),{node:y.rawNode,action:~q?"unselect":"select"})}else W.value.includes(y.key)?e.cancelable&&oa([],[],{node:y.rawNode,action:"unselect"}):oa([y.key],Et([y.key]),{node:y.rawNode,action:"select"})}}function xd(y){if(me&&(window.clearTimeout(me),me=null),y.isLeaf)return;Je=y.key;const x=()=>{if(Je!==y.key)return;const{value:q}=Ci;if(q&&q.key===y.key&&!oe.value.includes(y.key)){const M=oe.value.concat(y.key);kn(M,Et(M),{node:y.rawNode,action:"expand"})}me=null,Je=null};y.shallowLoaded?me=window.setTimeout(()=>{x()},1e3):me=window.setTimeout(()=>{ia(y).then(()=>{x()})},1e3)}function Sd({event:y,node:x}){!e.draggable||e.disabled||wr(x,e.disabledField)||(Wu({event:y,node:x},!1),vl({event:y,node:x.rawNode}))}function $d({event:y,node:x}){!e.draggable||e.disabled||wr(x,e.disabledField)||la({event:y,node:x.rawNode})}function Ed(y){y.target===y.currentTarget&&Wr()}function Nd({event:y,node:x}){sa(),!(!e.draggable||e.disabled||wr(x,e.disabledField))&&io({event:y,node:x.rawNode})}function Id({event:y,node:x}){!e.draggable||e.disabled||wr(x,e.disabledField)||(he=y.clientX,Se.value=x,$i({event:y,node:x.rawNode}))}function Wu({event:y,node:x},q=!0){var M;if(!e.draggable||e.disabled||wr(x,e.disabledField))return;const{value:O}=Se;if(!O)return;const{allowDrop:De,indent:zt}=e;q&&_l({event:y,node:x.rawNode});const Yt=y.currentTarget,{height:Ii,top:qi}=Yt.getBoundingClientRect(),tn=y.clientY-qi;let $e;De({node:x.rawNode,dropPosition:"inside",phase:"drag"})?tn<=8?$e="before":tn>=Ii-8?$e="after":$e="inside":tn<=Ii/2?$e="before":$e="after";const{value:hn}=yr;let ke,wt;const Ti=hn(x.key);if(Ti===null){Wr();return}let ao=!1;$e==="inside"?(ke=x,wt="inside"):$e==="before"?x.isFirstChild?(ke=x,wt="before"):(ke=ve.value[Ti-1],wt="after"):(ke=x,wt="after"),!ke.isLeaf&&oe.value.includes(ke.key)&&(ao=!0,wt==="after"&&(ke=ve.value[Ti+1],ke?wt="before":(ke=x,wt="inside")));const Gu=ke;if(Ci.value=Gu,!ao&&O.isLastChild&&O.key===ke.key&&(wt="after"),wt==="after"){let Ju=he-y.clientX,yl=0;for(;Ju>=zt/2&&ke.parent!==null&&ke.isLastChild&&yl<1;)Ju-=zt,yl+=1,ke=ke.parent;Ur.value=yl}else Ur.value=0;if((O.contains(ke)||wt==="inside"&&((M=O.parent)===null||M===void 0?void 0:M.key)===ke.key)&&!(O.key===Gu.key&&O.key===ke.key)){Wr();return}if(!De({node:ke.rawNode,dropPosition:wt,phase:"drag"})){Wr();return}if(O.key===ke.key)Ei();else if(Je!==ke.key)if(wt==="inside"){if(e.expandOnDragenter){if(xd(ke),!ke.shallowLoaded&&Je!==ke.key){sa();return}}else if(!ke.shallowLoaded){sa();return}}else Ei();else wt!=="inside"&&Ei();Rn.value=wt,ft.value=ke}function qd({event:y,node:x,dropPosition:q}){if(!e.draggable||e.disabled||wr(x,e.disabledField))return;const{value:M}=Se,{value:O}=ft,{value:De}=Rn;if(!(!M||!O||!De)&&e.allowDrop({node:O.rawNode,dropPosition:De,phase:"drag"})&&M.key!==O.key){if(De==="before"){const zt=M.getNext({includeDisabled:!0});if(zt&&zt.key===O.key){Wr();return}}if(De==="after"){const zt=M.getPrev({includeDisabled:!0});if(zt&&zt.key===O.key){Wr();return}}pl({event:y,node:O.rawNode,dragNode:M.rawNode,dropPosition:q}),sa()}}function Td(){Mn()}function Ad(){Mn()}function jd(y){var x;if(e.virtualScroll||e.internalScrollable){const{value:q}=s;if(!((x=q==null?void 0:q.containerRef)===null||x===void 0)&&x.contains(y.relatedTarget))return;Oe.value=null}else{const{value:q}=l;if(q!=null&&q.contains(y.relatedTarget))return;Oe.value=null}}Cr(Oe,y=>{var x,q;if(y!==null){if(e.virtualScroll)(x=f.value)===null||x===void 0||x.scrollTo({key:y});else if(e.internalScrollable){const{value:M}=s;if(M===null)return;const O=(q=M.contentRef)===null||q===void 0?void 0:q.querySelector(`[data-key="${Qf(y)}"]`);if(!O)return;M.scrollTo({el:O})}}}),As(Ma,{loadingKeysRef:A,highlightKeySetRef:bn,displayedCheckedKeysRef:z,displayedIndeterminateKeysRef:Q,mergedSelectedKeysRef:W,mergedExpandedKeysRef:oe,mergedThemeRef:o,mergedCheckStrategyRef:I,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:Ci,droppingNodeParentRef:hl,draggingNodeRef:Se,droppingPositionRef:Rn,droppingOffsetLevelRef:Ur,fNodesRef:ve,pendingNodeKeyRef:Oe,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:Hu,handleDragEnd:Nd,handleDragEnter:Sd,handleDragLeave:$d,handleDragStart:Id,handleDrop:qd,handleDragOver:Wu,handleSelect:gl,handleCheck:ml});function Pd(y,x){var q,M;typeof y=="number"?(q=f.value)===null||q===void 0||q.scrollTo(y,x||0):(M=f.value)===null||M===void 0||M.scrollTo(y)}const Rd={handleKeydown:Re,scrollTo:Pd,getCheckedData:()=>{if(!e.checkable)return{keys:[],options:[]};const{checkedKeys:y}=S.value;return{keys:y,options:Et(y)}},getIndeterminateData:()=>{if(!e.checkable)return{keys:[],options:[]};const{indeterminateKeys:y}=S.value;return{keys:y,options:Et(y)}}},Vu=le(()=>{const{common:{cubicBezierEaseInOut:y},self:{fontSize:x,nodeBorderRadius:q,nodeColorHover:M,nodeColorPressed:O,nodeColorActive:De,arrowColor:zt,loadingColor:Yt,nodeTextColor:Ii,nodeTextColorDisabled:qi,dropMarkColor:tn,nodeWrapperPadding:$e,nodeHeight:nn,lineHeight:hn,lineColor:ke}}=o.value,wt=kl($e,"top"),Ti=kl($e,"bottom"),ao=Bf(ua(nn)-ua(wt)-ua(Ti));return{"--n-arrow-color":zt,"--n-loading-color":Yt,"--n-bezier":y,"--n-font-size":x,"--n-node-border-radius":q,"--n-node-color-active":De,"--n-node-color-hover":M,"--n-node-color-pressed":O,"--n-node-text-color":Ii,"--n-node-text-color-disabled":qi,"--n-drop-mark-color":tn,"--n-node-wrapper-padding":$e,"--n-line-offset-top":`-${wt}`,"--n-line-offset-bottom":`-${Ti}`,"--n-node-content-height":ao,"--n-line-height":hn,"--n-line-color":ke}}),Ni=n?Ps("tree",void 0,Vu,e):void 0;return Object.assign(Object.assign({},Rd),{mergedClsPrefix:t,mergedTheme:o,rtlEnabled:a,fNodes:ro,aip:gr,selfElRef:l,virtualListInstRef:f,scrollbarInstRef:s,handleFocusout:jd,handleDragLeaveTree:Ed,handleScroll:Td,getScrollContainer:c,getScrollContent:h,handleAfterEnter:dl,handleResize:Ad,cssVars:n?void 0:Vu,themeClass:Ni==null?void 0:Ni.themeClass,onRender:Ni==null?void 0:Ni.onRender})},render(){var e;const{fNodes:t,internalRenderEmpty:n}=this;if(!t.length&&n)return n();const{mergedClsPrefix:r,blockNode:a,blockLine:o,draggable:l,disabled:s,internalFocusable:f,checkable:c,handleKeydown:h,rtlEnabled:d,handleFocusout:_,scrollbarProps:b}=this,v=f&&!s,m=v?"0":void 0,g=[`${r}-tree`,d&&`${r}-tree--rtl`,c&&`${r}-tree--checkable`,(o||a)&&`${r}-tree--block-node`,o&&`${r}-tree--block-line`],p=k=>"__motion"in k?P(ov,{height:k.height,nodes:k.nodes,clsPrefix:r,mode:k.mode,onAfterEnter:this.handleAfterEnter}):P(rc,{key:k.key,tmNode:k,clsPrefix:r});if(this.virtualScroll){const{mergedTheme:k,internalScrollablePadding:S}=this,I=kl(S||"0");return P(Zu,Object.assign({},b,{ref:"scrollbarInstRef",onDragleave:l?this.handleDragLeaveTree:void 0,container:this.getScrollContainer,content:this.getScrollContent,class:g,theme:k.peers.Scrollbar,themeOverrides:k.peerOverrides.Scrollbar,tabindex:m,onKeydown:v?h:void 0,onFocusout:v?_:void 0}),{default:()=>{var z;return(z=this.onRender)===null||z===void 0||z.call(this),t.length?P(_1,{ref:"virtualListInstRef",items:this.fNodes,itemSize:ua(k.self.nodeHeight),ignoreItemResize:this.aip,paddingTop:I.top,paddingBottom:I.bottom,class:this.themeClass,style:[this.cssVars,{paddingLeft:I.left,paddingRight:I.right}],onScroll:this.handleScroll,onResize:this.handleResize,showScrollbar:!1,itemResizable:!0},{default:({item:Q})=>p(Q)}):Yu(this.$slots.empty,()=>[P(rf,{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?P(Zu,Object.assign({},b,{class:g,tabindex:m,onKeydown:v?h:void 0,onFocusout:v?_:void 0,style:this.cssVars,contentStyle:{padding:this.internalScrollablePadding}}),{default:()=>P("div",{onDragleave:l?this.handleDragLeaveTree:void 0,ref:"selfElRef"},this.fNodes.map(p))}):P("div",{class:g,tabindex:m,ref:"selfElRef",style:this.cssVars,onKeydown:v?h:void 0,onFocusout:v?_:void 0,onDragleave:l?this.handleDragLeaveTree:void 0},t.length?t.map(p):Yu(this.$slots.empty,()=>[P(rf,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]))}}),ff=e=>{const t=Ze(),n={x:0,y:0},r=Ms({...n});let a;const o=h=>{a&&h.preventDefault()},l=h=>{a=h,n.x=r.x,n.y=r.y},s=h=>{if(!a||!t.value)return;const d=h.clientX-a.clientX,_=h.clientY-a.clientY;e(d)&&(r.x=n.x+d),r.y=n.y+_},f=()=>{a=void 0},c=()=>{if(!t.value||!a)return;f();const{top:h,bottom:d,left:_,right:b}=t.value.getBoundingClientRect();(b<0||_>window.innerWidth||d<0||h>window.innerHeight)&&(r.x=n.x,r.y=n.y)};return Ra(()=>{window.addEventListener("pointermove",s),window.addEventListener("pointerup",c),document.addEventListener("selectstart",o)}),fo(()=>{window.removeEventListener("pointermove",s),window.removeEventListener("pointerup",c),document.removeEventListener("selectstart",o),f()}),Cr(t,(h,d)=>{h&&(h.addEventListener("pointerdown",l),h.addEventListener("pointerup",f)),d&&(d.removeEventListener("pointerdown",l),d.removeEventListener("pointerup",f))}),fo(()=>{t.value&&(t.value.removeEventListener("pointerdown",l),t.value.removeEventListener("pointerup",f))}),{target:t,offset:r}},cf="transition-top,bottom,left,right-500",Ls=Pe({__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=ff(S=>{const I=(t.initialValue.width||0)+l.offset.x+-o.offset.x-S;return(t.minWidth||0)<I}),l=ff(S=>{const I=(t.initialValue.width||0)+l.offset.x+S-o.offset.x;return(t.minWidth||0)<I}),s=Ms({...a}),f=le(()=>{const S=(t.initialValue.width||0)+l.offset.x-o.offset.x,I=t.initialValue.width?`width:${S}px;`:"",z=r?`top:${s.y}px;`:`bottom:${s.y}px;`;return n?`left:${s.x-o.offset.x}px;`+z+I:`right:${s.x-l.offset.x}px;`+z+I});let c;const h=S=>{c=S,a.x=s.x,a.y=s.y},d=S=>{if(!v.value||!c)return;const I=S.clientX-c.clientX,z=S.clientY-c.clientY;s.x=a.x+(n?I:-I),s.y=a.y+(r?z:-z)},_=()=>{c=void 0},b=Ze(),v=Ze(),m=S=>{c&&S.preventDefault()},g=()=>{if(!v.value||!c)return;_();const{top:S,bottom:I,left:z,right:Q}=v.value.getBoundingClientRect();if(Q<0||z>window.innerWidth||I<0||S>window.innerHeight){s.x=a.x,s.y=a.y;const V=b.value;V&&(V.classList.add(cf),setTimeout(()=>{V.classList.remove(cf)},550))}};Ra(()=>{window.addEventListener("pointermove",d),window.addEventListener("pointerup",g),document.addEventListener("selectstart",m)}),fo(()=>{window.removeEventListener("pointermove",d),window.removeEventListener("pointerup",g),document.removeEventListener("selectstart",m),_()}),Cr(v,(S,I)=>{S&&(S.addEventListener("pointerdown",h),S.addEventListener("pointerup",_)),I&&(I.removeEventListener("pointerdown",h),I.removeEventListener("pointerup",_))}),fo(()=>{v.value&&(v.value.removeEventListener("pointerdown",h),v.value.removeEventListener("pointerup",_))});const p=S=>{S instanceof HTMLElement?v.value=S:v.value=void 0};return(S,I)=>(se(),mt(e1,{to:"#app",disabled:S.disabled},[H("div",{fixed:"",ref_key:"box",ref:b,style:Al([S.$attrs.style,f.value]),class:ya(S.$attrs.class)},[Uf(S.$slots,"default",{onRef:p}),S.sizeDraggable?(se(),It(Jr,{key:0},[H("div",{ref:E(o).target,absolute:"","right-full":"","top-0":"","bottom-0":"","w-5px":"","cursor-ew-resize":""},null,512),H("div",{ref:E(l).target,absolute:"","left-full":"","top-0":"","bottom-0":"","w-5px":"","cursor-ew-resize":""},null,512)],64)):Ot("",!0)],6)],8,["disabled"]))}}),dv=H("th",null,"Name",-1),vv=H("th",null,"Value",-1),_v=[dv,vv],pv={key:0,flex:"","justify-between":"","items-center":""},mv={key:0,viewBox:"0 0 28 28"},gv=H("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),yv=[gv],bv={key:1,viewBox:"0 0 1024 1024"},wv=H("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),kv=[wv],Cv=Pe({__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=le(()=>Object.entries(t.focusNode.attr).map(([o,l])=>{var c,h,d;const s=(c=n[o])==null?void 0:c.show,f={name:o,value:l,desc:JSON.stringify(l),tip:!s||s()?n[o]:void 0};return r.includes(o)?[f,{name:o+".length",value:(h=l==null?void 0:l.length)!=null?h:null,desc:JSON.stringify((d=l==null?void 0:l.length)!=null?d:null),tip:void 0}]:f}).flat());return(o,l)=>(se(),mt(Ls,{initialValue:{top:75,right:10},class:"box-shadow-dim"},{default:T(({onRef:s})=>[L(E(Xf),{size:"small",striped:"",singleLine:!1,class:"gkd_code",themeOverrides:{thPaddingSmall:"1px 3px",tdPaddingSmall:"1px 3px"}},{default:T(()=>[H("thead",null,[H("tr",{ref:s,"cursor-move":""},_v,512)]),L(E(ec),null,{default:T(()=>[(se(!0),It(Jr,null,ma(a.value,f=>(se(),mt(E(Rl),{key:f.name},{default:T(()=>[L(E(dn),{onClick:c=>E(kr)(`${f.name}=${f.desc}`)},{default:T(()=>[f.tip?(se(),It("div",pv,[H("div",null,Le(f.name),1),L(E(p1),null,{trigger:T(()=>[L(E(Vr),{size:"16"},{default:T(()=>[f.tip.type=="info"?(se(),It("svg",mv,yv)):f.tip.type=="quickFind"?(se(),It("svg",bv,kv)):Ot("",!0)]),_:2},1024)]),default:T(()=>[Ee(" "+Le(f.tip.desc),1)]),_:2},1024)])):(se(),It(Jr,{key:1},[Ee(Le(f.name),1)],64))]),_:2},1032,["onClick"]),L(E(dn),null,{default:T(()=>[L(E(Mi),{class:ya(["w-[calc(var(--gkd-width)*0.12)]",{"text-left direction-rtl":f.name=="id"}])},{default:T(()=>[Ee(Le(f.desc),1)]),_:2},1032,["class"])]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:2},1024)]),_:1}))}}),xv={flex:"","flex-col":"",relative:"","h-full":""},Sv=["src"],$v=H("div",{absolute:"","left-0":"","top-0":"","bottom-0":"","right-0":"","b-solid":"","b-1px":"","b-red":""},null,-1),Ev=[$v],Nv={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":""},Iv=["src"],qv={absolute:"","left-2px":"","top-2px":"","p-1px":"","z-1":"","text-13px":"",class:"leading-[1] bg-[rgba(256,256,256,0.7)]"},Tv={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":""},Av=H("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),jv=H("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),Pv=Pe({__name:"ScreenshotCard",props:{url:{},snapshot:{},rootNode:{},focusNode:{},onUpdateFocusNode:{type:Function,default:ri},onUpdateFocusNodes:{type:Function,default:ri}},setup(e){const t=e,n=Jf(),r=C1(le(()=>(n.width.value,n.height.value,Math.random())),300),a=Ze(),o=Ze(0),l=v=>{if(!t.rootNode)return;const m=a.value;if(!m)return;const g=m.getBoundingClientRect(),p=g.width/m.naturalWidth*m.naturalHeight,C=(g.height-p)/2,k=(v.clientX-g.left)/g.width*m.naturalWidth,S=(v.clientY-g.top-C)/p*m.naturalHeight,I=m1(t.snapshot.nodes,k,S);I.length!==0&&(I.length===1?t.onUpdateFocusNode(I[0]):(t.onUpdateFocusNode(I[0]),t.onUpdateFocusNodes({nodes:I,position:{x:k,y:S}})))},s=v=>`${v*100}%`,f=le(()=>{var C;r.value,o.value;const v=a.value,m=(C=t.focusNode)==null?void 0:C.attr;if(!t.focusNode||!v||!m)return"";const g=v.getBoundingClientRect(),p=g.width/v.naturalWidth*v.naturalHeight;return{left:`calc(${s(m.left/v.naturalWidth)} - 2px)`,width:`calc(${s((m.right-m.left)/v.naturalWidth)} + 2px)`,top:`calc(${s((m.top/v.naturalHeight*p+(g.height-p)/2)/g.height)} - 2px)`,height:`calc(${s((m.bottom-m.top)/v.naturalHeight*p/g.height)} + 2px)`}}),c=Ze(!1),h=Ze({ox:0,oy:0}),d=le(()=>{var p;const v=(p=t.focusNode)==null?void 0:p.attr;if(!v)return;const{ox:m,oy:g}=h.value;return{left:m-v.left,right:v.right-m,top:g-v.top,bottom:v.bottom-g}}),_=v=>{const m=a.value;if(!m)return;const g=m.getBoundingClientRect(),p=g.width/m.naturalWidth*m.naturalHeight,C=(g.height-p)/2,k=(v.clientX-g.left)/g.width*m.naturalWidth,S=(v.clientY-g.top-C)/p*m.naturalHeight;h.value={ox:k,oy:S},b.value={left:-(k-.1*m.naturalWidth)/m.naturalWidth*1e3+"px",top:-(S-.1*m.naturalWidth)/m.naturalWidth*1e3+"px"}},b=Ze({left:"0",top:"0"});return(v,m)=>(se(),It("div",xv,[H("img",{ref_key:"imgRef",ref:a,src:v.url,onClick:l,"cursor-crosshair":"","h-full":"","object-contain":"",class:"max-w-[calc(var(--gkd-width)*0.35)]",onMouseover:m[0]||(m[0]=g=>c.value=!0),onMouseleave:m[1]||(m[1]=g=>c.value=!1),onMousemove:_,onLoad:m[2]||(m[2]=g=>o.value=Date.now())},null,40,Sv),H("div",{style:Al(f.value),absolute:"","pointer-events-none":"","transition-all-300":"","b-1px":"","b-blue":"","b-solid":""},Ev,4),Of(H("div",Nv,[H("img",{src:v.url,"object-contain":"",absolute:"","left-0":"","top-0":"",style:Al(b.value),"w-1000px":""},null,12,Iv),H("div",qv,Le(`${h.value.ox.toFixed(0)},${h.value.oy.toFixed(0)}`),1),d.value?(se(),It("div",Tv,[H("div",null,Le(d.value.top.toFixed(0)),1),H("div",null,Le(d.value.left.toFixed(0)+","+d.value.right.toFixed(0)),1),H("div",null,Le(d.value.bottom.toFixed(0)),1)])):Ot("",!0),Av,jv],512),[[Df,c.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),l=arguments[2],s=l===void 0?n:l>>0,f=s<0?Math.max(n+s,0):Math.min(s,n);o<f;)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.startsWith>"u"&&Object.defineProperty(String.prototype,"startsWith",{value:function(e,t){return t=t||0,this.lastIndexOf(e,t)===t}});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}});var _e=Math.imul,Rv=ArrayBuffer.isView,ic=Math.clz32;jt(zs,"CharSequence");jt(La,"Comparable");w(ho,"Number");ne(Os,"Unit");w(Ks);w(Hs);vt(hc);w(ee,"Char",u,u,[La]);jt(Ae,"Collection");function ac(){return x_(this)}jt(Lr,"List",u,u,[Ae]);jt(ir,"Entry");jt(ar,"Map");jt(zr,"Set",u,u,[Ae]);vt(h_);w(or,"Enum",u,u,[La]);vt(dc);w(ce,"Long",u,ho,[ho,La]);w(xo);w(Ol,"JsArrayView",Ol,Array);ne(Hc,"Digit");w(sr,"AbstractCollection",u,u,[Ae]);w(Nn,"AbstractMutableCollection",u,sr,[sr,Ae]);w(ci,"IteratorImpl");w(Da,"ListIteratorImpl",u,ci);w(dt,"AbstractMutableList",u,Nn,[Nn,Lr,Ae]);w(pr,"SubList",u,dt);w(ln,"AbstractMap",u,u,[ar]);w(mo,"AbstractMutableMap",u,ln,[ln,ar]);w(lr,"AbstractMutableSet",u,Nn,[Nn,Ae,zr]);vt(Jc);w(Ve,"ArrayList",rt,dt,[dt,Lr,Ae]);w(qn,"HashMap",Np,mo,[mo,ar]);w(sn,"HashMapEntrySetBase",u,lr,[Ae,zr,lr]);w(nu,"HashMapEntrySet",u,sn);w(gn,"HashSet",Tp,lr,[lr,Ae,zr]);vt(ah);w(Or,"Itr");w(uu,"KeysItr",u,Or);w(Ba,"EntriesItr",u,Or);w(hi,"EntryRef",u,u,[ir]);function Mv(e){var t;e:{var n;if(re(e,Ae)?n=e.k():n=!1,n){t=!0;break e}for(var r=e.h();r.i();){var a=r.j(),o=a,l;if(o!=null&&re(o,ir)?l=this.e6(o):l=!1,!l){t=!1;break e}}t=!0}return t}jt(oh,"InternalMap");w(yt,"InternalHashMap",iu,u,[oh]);w(Ua,"LinkedHashMap",lh,qn,[qn,ar]);w(Dr,"LinkedHashSet",fu,gn,[gn,Ae,zr]);jt(ta,"Continuation");w($a,"InterceptedCoroutine",u,u,[ta]);w(xt,"CoroutineImpl",u,$a,[$a,ta]);ne(Hi,"CompletedContinuation",u,u,[ta]);w(cu,u,u,xt);w(un,"Exception",fh,Error);w(Pt,"RuntimeException",gh,un);w(di,"IllegalArgumentException",dh,Pt);w(Wi,"IndexOutOfBoundsException",_h,Pt);w(Vi,"IllegalStateException",ph,Pt);w(Gi,"UnsupportedOperationException",vi,Pt);w(Qi,"NoSuchElementException",bt,Pt);w(Yi,"Error",bh,Error);w(pi,"NumberFormatException",wh,di);w(Zi,"ArithmeticException",Ch,Pt);w(To,"ConcurrentModificationException",hu,Pt);w(Ao,"NullPointerException",du,Pt);w(jo,"NoWhenBranchMatchedException",vu,Pt);w(Po,"ClassCastException",_u,Pt);jt(Na,"KClass");w(Xt,"KClassImpl",u,u,[Na]);ne(mi,"NothingKClassImpl",u,Xt);w(Fi,"ErrorKClass",Fi,u,[Na]);w(Me,"PrimitiveKClassImpl",u,Xt);w(go,"SimpleKClassImpl",u,Xt);jt(Ro,"KProperty1");jt(pu,"KProperty0");ne(Ge,"PrimitiveClasses");w(fn,"StringBuilder",gu,u,[zs]);vt(Ah);w(Ha,"Regex");w(yu,"sam$kotlin_Comparator$0");vt(Fr);vt(nm);vt(Lo);w(jn,"ArrayAsCollection",u,u,[Ae]);ne(it,"EmptyList",u,u,[Lr]);ne(gi,"EmptyIterator");w(Zr,"IndexedValue");w(Do,"IntIterator");w(Va,"CharIterator");w(ur,"SequenceScope",u,u,u,[1]);w(fr,"SequenceBuilderIterator",fr,ur,[ur,ta],[1]);w(xu);w(Fo);w(Ko,"TransformingSequence");w(Bo);w(Su,"FilteringSequence");w(Uo);w($u,"IndexingSequence");jt(yi,"DropTakeSequence");w(Ho);w(ii,"TakeSequence",u,u,[yi]);w(Wo);w(Eu,"TakeWhileSequence");w(Vo);w(Xr,"DropSequence",u,u,[yi]);w(Go);w(Nu,"DropWhileSequence");ne(Ja,"EmptySequence",u,u,[yi]);w(Qo);w(Rr,"SubSequence",u,u,[yi]);ne(Pn,"EmptySet",u,u,[zr]);ne(Bh,"Key");jt(gm,"ContinuationInterceptor");ne(Qa,"EmptyCoroutineContext");w(so,"CoroutineSingletons",u,or);vt(Vh);w(An,"IntProgression");w(Mr,"IntRange",u,An);vt(Gh);w(dr,"CharProgression");w(hr,"CharRange",u,dr);w(Zo,"IntProgressionIterator",u,Do);w(Xo,"CharProgressionIterator",u,Va);vt(qu);vt(xm);w(Za,"UnsafeLazyImpl");ne(nd,"UNINITIALIZED_VALUE");vt(Am);w(vr,"Failure");w(ns,"NotImplementedError",ns,Yi);w(mn,"Pair");function zs(){}function La(){}function ho(){}function Os(){}i(Os).toString=function(){return"kotlin.Unit"};var de;function Lv(e){return e.length===0?ea():new Ks(e)}function Ds(e){switch(e.length){case 0:return Wa();case 1:return Io(e[0]);default:return Fs(e)}}function va(e,t){return oc(e,t)>=0}function Fs(e){return Fa(um(e))}function zv(e){var t;switch(e.length){case 0:throw Ji("Array is empty.");case 1:t=e[0];break;default:throw He("Array has more than one element.")}return t}function oc(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,l=e.length-1|0;if(o<=l)do{var s=o;if(o=o+1|0,N(t,e[s]))return s}while(o<=l)}return-1}function Ov(e){return e.length-1|0}function Dv(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,N(t,e[o]))return o}while(0<=a)}return-1}function Fv(e,t,n,r,a,o,l){return t=t===u?", ":t,n=n===u?"":n,r=r===u?"":r,a=a===u?-1:a,o=o===u?"...":o,l=l===u?null:l,Kv(e,gu(),t,n,r,a,o,l).toString()}function Kv(e,t,n,r,a,o,l,s){n=n===u?", ":n,r=r===u?"":r,a=a===u?"":a,o=o===u?-1:o,l=l===u?"...":l,s=s===u?null:s,t.e(r);var f=0,c=0,h=e.length;e:for(;c<h;){var d=e[c];if(c=c+1|0,f=f+1|0,f>1&&t.e(n),o<0||f<=o)Qh(t,d,s);else break e}return o>=0&&f>o&&t.e(l),t.e(a),t}function Bv(e,t){for(var n=0,r=e.length;n<r;){var a=e[n];n=n+1|0,t.f(a)}return t}function Ks(e){this.g_1=e}i(Ks).h=function(){return _c(this.g_1)};function pn(e,t,n,r,a,o,l){return t=t===u?", ":t,n=n===u?"":n,r=r===u?"":r,a=a===u?-1:a,o=o===u?"...":o,l=l===u?null:l,Uv(e,gu(),t,n,r,a,o,l).toString()}function Uv(e,t,n,r,a,o,l,s){n=n===u?", ":n,r=r===u?"":r,a=a===u?"":a,o=o===u?-1:o,l=l===u?"...":l,s=s===u?null:s,t.e(r);var f=0,c=e.h();e:for(;c.i();){var h=c.j();if(f=f+1|0,f>1&&t.e(n),o<0||f<=o)Qh(t,h,s);else break e}return o>=0&&f>o&&t.e(l),t.e(a),t}function Oi(e){if(e.k())throw Ji("List is empty.");return e.l(zo(e))}function _a(e){return e.k()?null:e.l(0)}function Hv(e){return sc(Jv(e))}function Wv(e){return new Hs(e)}function Vv(e){return e.k()?null:e.l(e.m()-1|0)}function ba(e){if(e.k())throw Ji("List is empty.");return e.l(0)}function lc(e,t){if(re(t,Ae)){var n=In(e.m()+t.m()|0);return n.q(e),n.q(t),n}else{var r=Fa(e);return Oo(r,t),r}}function Bs(e){return Fa(e)}function Gv(e,t){return 0<=t&&t<e.m()?e.l(t):null}function Us(e,t){if(re(e,Ae)){if(e.m()<=1)return sc(e);var n=Rt(e),r=_r(n)?n:$();return sp(r,t),Zs(r)}var a=uc(e);return pp(a,t),a}function sc(e){if(re(e,Ae)){var t;switch(e.m()){case 0:t=Wa();break;case 1:var n;re(e,Lr)?n=e.l(0):n=e.h().j(),t=Io(n);break;default:t=Bs(e);break}return t}return om(uc(e))}function Jv(e){var t;return re(e,Ae)?t=Yp(e):t=vo(e,fu()),t}function uc(e){return re(e,Ae)?Bs(e):vo(e,rt())}function vo(e,t){for(var n=e.h();n.i();){var r=n.j();t.f(r)}return t}function Qv(e){if(re(e,Ae)){var t;switch(e.m()){case 0:t=Iu();break;case 1:var n;re(e,Lr)?n=e.l(0):n=e.h().j(),t=Vc(n);break;default:t=vo(e,e0(e.m()));break}return t}return pm(vo(e,fu()))}function Hs(e){this.r_1=e}i(Hs).h=function(){return this.r_1.h()};function Yv(e,t){return Jh.s(e,t,-1)}function wa(e,t){return e>t?t:e}function _o(e,t){return e<t?t:e}function fc(e){var t=e.h();if(!t.i())return Wa();var n=t.j();if(!t.i())return Io(n);var r=rt();for(r.f(n);t.i();)r.f(t.j());return r}function ko(e){var t=e.h();return t.i()?t.j():null}function Zv(e,t){return new Ko(e,t)}function Ws(e){return n_(e,rt())}function Vs(e,t){var n=new $u(e),r=new Su(n,!0,r_(t));return new Ko(r,i_)}function cc(e,t){if(!(t>=0)){var n="Requested element count "+t+" is less than zero.";throw He(D(n))}var r;return t===0?r=ea():re(e,yi)?r=e.t(t):r=new ii(e,t),r}function Xv(e,t){return new Eu(e,t)}function e_(e,t){var n;return re(e,yi)?n=e.u(t):n=new Xr(e,t),n}function t_(e,t){return new Nu(e,t)}function n_(e,t){for(var n=e.h();n.i();){var r=n.j();t.f(r)}return t}function r_(e){return function(t){return e(t.v_1,t.w_1)}}function i_(e){return e.w_1}function Kt(e,t){return 0<=t&&t<=(j(e)-1|0)?R(e,t):null}function hf(e,t){if(!(t>=0)){var n="Requested character count "+t+" is less than zero.";throw He(D(n))}return Zt(e,wa(t,j(e)),j(e))}function a_(e){return o_(e,In(j(e)))}function o_(e,t){for(var n=0;n<j(e);){var r=R(e,n);n=n+1|0,t.f(new ee(r))}return t}function l_(e){var t=e&65535;return t}function Ye(e,t){return e-t|0}function s_(e,t){return Ye(e.x_1,t instanceof ee?t.x_1:$())}function fa(e,t){return e-t|0}function Qr(e,t){return new hr(e,t)}function qt(e){return e}function Be(e){return String.fromCharCode(e)}function u_(e,t){return t instanceof ee?e===t.x_1:!1}function f_(e){return e}function hc(){Ml=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 Ml;function c_(){return Ml==null&&new hc,Ml}function ee(e){c_(),this.x_1=e}i(ee).i1=function(e){return Ye(this.x_1,e)};i(ee).d=function(e){return s_(this,e)};i(ee).toString=function(){return Be(this.x_1)};i(ee).equals=function(e){return u_(this.x_1,e)};i(ee).hashCode=function(){return f_(this.x_1)};function Lr(){}function Ae(){}function ir(){}function ar(){}function zr(){}function h_(){}function or(e,t){this.v1_1=e,this.w1_1=t}i(or).x1=function(e){return Cc(this.w1_1,e.w1_1)};i(or).d=function(e){return this.x1(e instanceof or?e:$())};i(or).equals=function(e){return this===e};i(or).hashCode=function(){return A_(this)};i(or).toString=function(){return this.v1_1};function tt(e){var t=e==null?null:D(e);return t==null?"null":t}function dc(){Ll=this,this.y1_1=new ce(0,-2147483648),this.z1_1=new ce(-1,2147483647),this.a2_1=8,this.b2_1=64}var Ll;function d_(){return Ll==null&&new dc,Ll}function ce(e,t){d_(),ho.call(this),this.c2_1=e,this.d2_1=t}i(ce).e2=function(e){return $o(this,e)};i(ce).d=function(e){return this.e2(e instanceof ce?e:$())};i(ce).f2=function(e){return po(this,e)};i(ce).g2=function(e){return K_(this,e)};i(ce).h2=function(){return this.i2().f2(new ce(1,0))};i(ce).i2=function(){return new ce(~this.c2_1,~this.d2_1)};i(ce).j2=function(){return this.c2_1};i(ce).k2=function(){return Ca(this)};i(ce).toString=function(){return Fl(this,10)};i(ce).equals=function(e){var t;return e instanceof ce?t=_n(this,e):t=!1,t};i(ce).hashCode=function(){return H_(this)};i(ce).valueOf=function(){return this.k2()};function vc(e){for(var t=1,n=[],r=0,a=e.length;r<a;){var o=e[r];r=r+1|0;var l=t,s=o.prototype.$imask$,f=s==null?o.$imask$:s;f!=null&&(n.push(f),l=f.length);var c=o.$metadata$.iid,h;c==null?h=null:h=v_(c);var d=h;d!=null&&(n.push(d),l=Math.max(l,d.length)),l>t&&(t=l)}return __(t,n)}function v_(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 __(e,t){for(var n=0,r=new Int32Array(e);n<e;){for(var a=n,o=0,l=0,s=t.length;l<s;){var f=t[l];l=l+1|0,a<f.length&&(o=o|f[a])}r[a]=o,n=n+1|0}return r}function p_(e,t){var n=t>>5;if(n>e.length)return!1;var r=t&31,a=1<<r;return!!(e[n]&a)}function Co(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 _c(e){return new xo(e)}function m_(e){var t="CharArray",n=new Uint16Array(e);return n.$type$=t,n}function xo(e){this.m2_1=e,this.l2_1=0}i(xo).i=function(){return this.l2_1!==this.m2_1.length};i(xo).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 Ji(""+this.l2_1);return e};function Sl(){return Bi(),pc}var pc;function mc(){return Bi(),gc}var gc;function zl(){return Bi(),yc}var yc;function bc(){return Bi(),wc}var wc;function g_(){return Bi(),kc}var kc;function y_(e){return Bi(),(e|0)===e?Ac(e):(mc()[0]=e,_e(zl()[g_()],31)+zl()[bc()]|0)}var df;function Bi(){df||(df=!0,pc=new ArrayBuffer(8),gc=new Float64Array(Sl()),new Float32Array(Sl()),yc=new Int32Array(Sl()),mc()[0]=-1,wc=zl()[0]!==0?1:0,kc=1-bc()|0)}function R(e,t){var n;if(Gs(e)){var r=e.charCodeAt(t),a,o=0;if(r<qt(o))a=!0;else{var l=65535;a=r>qt(l)}if(a)throw He("Invalid Char code: "+r);n=Sa(r)}else n=e.b(t);return n}function Gs(e){return typeof e=="string"}function j(e){var t;return Gs(e)?t=e.length:t=e.a(),t}function Zt(e,t,n){var r;return Gs(e)?r=e.substring(t,n):r=e.c(t,n),r}function b_(e,t){var n=e,r=t;if(n===r)return!0;if(n==null||r==null||!Pc(r)||n.length!=r.length)return!1;var a=0,o=n.length;if(a<o)do{var l=a;if(a=a+1|0,!N(n[l],r[l]))return!1}while(a<o);return!0}function w_(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)+ae(t[o])|0}while(r<a);return n}function k_(e){return Fv(e,", ","[","]",u,u,C_)}function C_(e){return D(e)}function x_(e){var t=$_(e),n=E_(e),r=N_(),a=I_(),o=q_();return S_(t,n,r,a,o)}function S_(e,t,n,r,a){var o=J(i(Ol));return new Proxy(o,{get:function(l,s,f){if(s==="length")return e();var c=typeof s,h=c==="string"||c==="number"?+s:void 0;return isNaN(h)?l[s]:t(h)},has:function(l,s){return!isNaN(s)&&s<e()},set:function(l,s,f){if(s==="length"){var c=e(),h=d==="string"||d==="number"?+s:void 0;if(isNaN(h))throw new RangeError("invalid array length");return h<c?r(c-h):a(h-c),!0}var d=typeof s,_=d==="string"||d==="number"?+s:void 0;return isNaN(_)?!1:(n(_,f),!0)}})}function Js(){throw vi()}function Ol(){Array.call(this)}function $_(e){return function(){return e.m()}}function E_(e){return function(t){return e.l(t)}}function N_(){var e=function(){return Js(),de};return e.callableName="UNSUPPORTED_OPERATION",e}function I_(){var e=function(){return Js(),de};return e.callableName="UNSUPPORTED_OPERATION",e}function q_(){var e=function(){return Js(),de};return e.callableName="UNSUPPORTED_OPERATION",e}function Cc(e,t){var n;switch(typeof e){case"number":var r;typeof t=="number"?r=vf(e,t):t instanceof ce?r=vf(e,t.k2()):r=_f(e,t),n=r;break;case"string":case"boolean":n=_f(e,t);break;default:n=T_(e,t);break}return n}function vf(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 _f(e,t){return e<t?-1:e>t?1:0}function T_(e,t){return e.d(t)}function A_(e){return Dl(e)}function Dl(e){if(!("kotlinHashCodeValue$"in e)){var t=xc(),n=new Object;n.value=t,n.enumerable=!1,Object.defineProperty(e,"kotlinHashCodeValue$",n)}return e.kotlinHashCodeValue$}function xc(){return Math.random()*4294967296|0}function J(e){return e=e===u?null:e,Object.create(e)}function xe(e,t,n,r){return Object.defineProperty(e,t,{configurable:!0,get:n,set:r})}function N(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 ae(e){if(e==null)return 0;var t=typeof e,n;switch(t){case"object":n=typeof e.hashCode=="function"?e.hashCode():Dl(e);break;case"function":n=Dl(e);break;case"number":n=y_(e);break;case"boolean":n=Qs(e);break;case"string":n=on(String(e));break;case"bigint":n=j_(e);break;case"symbol":n=P_(e);break;default:n=function(){throw new Error("Unexpected typeof `"+t+"`")}();break}return n}function D(e){var t;return e==null?t="null":Pc(e)?t="[...]":typeof e.toString!="function"?t=R_(e):t=e.toString(),t}function Qs(e){return e?1231:1237}function on(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 l=e.charCodeAt(o);t=_e(t,31)+l|0}while(o!==a);return t}function j_(e){for(var t=BigInt(32),n=BigInt(4294967295),r=e<0?-e:e,a=0,o=e<0?-1:1;r!=0;){var l=Number(r&n);a=_e(31,a)+l|0,r=r>>t}return _e(a,o)}function P_(e){var t=M_(e)?L_():z_(),n=t.get(e);if(n!==u)return n;var r=xc();return t.set(e,r),r}function R_(e){return Object.prototype.toString.call(e)}function M_(e){return Symbol.keyFor(e)!=u}function L_(){return $l===u&&($l=new Map),$l}function z_(){return El===u&&(El=new WeakMap),El}var $l,El;function K(e,t){Error.captureStackTrace!=null?Error.captureStackTrace(e,t):e.stack=new Error().stack}function i(e){return e.prototype}function So(e,t,n){Error.call(e),O_(e,t,n)}function O_(e,t,n){var r=Uc(Object.getPrototypeOf(e));if(!(r&1)){var a;if(t==null){var o;if(t!==null){var l=null;o=l==null?u:l}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?D_():t=e,t}function D_(){throw du()}function xr(){throw vu()}function $(){throw _u()}function Dn(){return Ie(),Sc}var Sc;function oo(){return Ie(),$c}var $c;function pf(){return Ie(),Ec}var Ec;function F_(){return Ie(),Nc}var Nc;function Sn(){return Ie(),Ic}var Ic;function mf(){return Ie(),qc}var qc;function $o(e,t){if(Ie(),_n(e,t))return 0;var n=an(e),r=an(t);return n&&!r?-1:!n&&r?1:an(ka(e,t))?-1:1}function po(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,l=t.d2_1>>>16|0,s=t.d2_1&65535,f=t.c2_1>>>16|0,c=t.c2_1&65535,h=0,d=0,_=0,b=0;return b=b+(o+c|0)|0,_=_+(b>>>16|0)|0,b=b&65535,_=_+(a+f|0)|0,d=d+(_>>>16|0)|0,_=_&65535,d=d+(r+s|0)|0,h=h+(d>>>16|0)|0,d=d&65535,h=h+(n+l|0)|0,h=h&65535,new ce(_<<16|b,h<<16|d)}function ka(e,t){return Ie(),po(e,t.h2())}function Sr(e,t){if(Ie(),Yr(e))return Dn();if(Yr(t))return Dn();if(_n(e,Sn()))return gf(t)?Sn():Dn();if(_n(t,Sn()))return gf(e)?Sn():Dn();if(an(e)){var n;return an(t)?n=Sr(Dt(e),Dt(t)):n=Dt(Sr(Dt(e),t)),n}else if(an(t))return Dt(Sr(e,Dt(t)));if(yf(e,mf())&&yf(t,mf()))return xa(Ca(e)*Ca(t));var r=e.d2_1>>>16|0,a=e.d2_1&65535,o=e.c2_1>>>16|0,l=e.c2_1&65535,s=t.d2_1>>>16|0,f=t.d2_1&65535,c=t.c2_1>>>16|0,h=t.c2_1&65535,d=0,_=0,b=0,v=0;return v=v+_e(l,h)|0,b=b+(v>>>16|0)|0,v=v&65535,b=b+_e(o,h)|0,_=_+(b>>>16|0)|0,b=b&65535,b=b+_e(l,c)|0,_=_+(b>>>16|0)|0,b=b&65535,_=_+_e(a,h)|0,d=d+(_>>>16|0)|0,_=_&65535,_=_+_e(o,c)|0,d=d+(_>>>16|0)|0,_=_&65535,_=_+_e(l,f)|0,d=d+(_>>>16|0)|0,_=_&65535,d=d+(((_e(r,h)+_e(a,c)|0)+_e(o,f)|0)+_e(l,s)|0)|0,d=d&65535,new ce(b<<16|v,d<<16|_)}function K_(e,t){if(Ie(),Yr(t))throw ch("division by zero");if(Yr(e))return Dn();if(_n(e,Sn())){if(_n(t,oo())||_n(t,pf()))return Sn();if(_n(t,Sn()))return oo();var n=U_(e,1),r=B_(n.g2(t),1);if(_n(r,Dn()))return an(t)?oo():pf();var a=ka(e,Sr(t,r));return po(r,a.g2(t))}else if(_n(t,Sn()))return Dn();if(an(e)){var o;return an(t)?o=Dt(e).g2(Dt(t)):o=Dt(Dt(e).g2(t)),o}else if(an(t))return Dt(e.g2(Dt(t)));for(var l=Dn(),s=e;V_(s,t);){for(var f=Ca(s)/Ca(t),c=Math.max(1,Math.floor(f)),h=Math.ceil(Math.log(c)/Math.LN2),d=h<=48?1:Math.pow(2,h-48),_=xa(c),b=Sr(_,t);an(b)||W_(b,s);)c=c-d,_=xa(c),b=Sr(_,t);Yr(_)&&(_=oo()),l=po(l,_),s=ka(s,b)}return l}function B_(e,t){Ie();var n=t&63;return new ce(e.c2_1<<n,e.d2_1<<n|(e.c2_1>>>(32-n|0)|0))}function U_(e,t){Ie();var n=t&63;return new ce(e.c2_1>>>n|0|e.d2_1<<(32-n|0),e.d2_1>>n)}function Ca(e){return Ie(),e.d2_1*4294967296+G_(e)}function Fl(e,t){if(Ie(),Yr(e))return"0";if(an(e))if(_n(e,Sn())){var n=pa(t),r=e.g2(n),a=ka(Sr(r,n),e).j2(),o=Fl(r,t);return o+a.toString(t)}else return"-"+Fl(Dt(e),t);for(var l=9,s=xa(Math.pow(t,l)),f=e,c="";;){var h=f.g2(s),d=ka(f,Sr(h,s)).j2(),_=d.toString(t);if(f=h,Yr(f))return _+c;for(;_.length<l;)_="0"+_;c=_+c}}function _n(e,t){return Ie(),e.d2_1===t.d2_1&&e.c2_1===t.c2_1}function H_(e){return Ie(),e.c2_1^e.d2_1}function pa(e){return Ie(),new ce(e,e<0?-1:0)}function an(e){return Ie(),e.d2_1<0}function Yr(e){return Ie(),e.d2_1===0&&e.c2_1===0}function gf(e){return Ie(),(e.c2_1&1)===1}function Dt(e){return Ie(),e.h2()}function yf(e,t){return Ie(),$o(e,t)<0}function xa(e){if(Ie(),vp(e))return Dn();if(e<=-9223372036854776e3)return Sn();if(e+1>=9223372036854776e3)return F_();if(e<0)return Dt(xa(-e));var t=4294967296,n=e%t|0,r=e/t|0;return new ce(n,r)}function W_(e,t){return Ie(),$o(e,t)>0}function V_(e,t){return Ie(),$o(e,t)>=0}function G_(e){return Ie(),e.c2_1>=0?e.c2_1:4294967296+e.c2_1}var bf;function Ie(){bf||(bf=!0,Sc=pa(0),$c=pa(1),Ec=pa(-1),Nc=new ce(-1,2147483647),Ic=new ce(0,-2147483648),qc=pa(16777216))}function Tc(e,t,n,r,a,o){var l=u,s=e==="interface"?J_():u;return{kind:e,simpleName:t,associatedObjectKey:r,associatedObjects:a,suspendArity:o,$kClass$:l,defaultConstructor:n,iid:s}}function J_(){return ca===u&&(ca=0),ca=ca+1|0,ca}var ca;function Ys(e,t,n,r,a,o,l,s,f){a!=null&&(t.prototype=Object.create(a.prototype),t.prototype.constructor=t);var c=Tc(e,n,r,s,f,l);if(t.$metadata$=c,o!=null){var h=N(c.iid,u)?t.prototype:t;h.$imask$=vc(o)}}function w(e,t,n,r,a,o,l,s){var f="class";Ys(f,e,t,n,r,a,o,l,s)}function ne(e,t,n,r,a,o,l,s){var f="object";Ys(f,e,t,n,r,a,o,l,s)}function jt(e,t,n,r,a,o,l,s){var f="interface";Ys(f,e,t,n,r,a,o,l,s)}function za(e,t,n,r){w(e,"Lambda",u,t,n,r,u,u)}function vt(e,t,n,r){ne(e,"Companion",u,t,n,r,u,u)}function Q_(e,t,n,r,a){return Tc("class",e,t,n,r,a)}function Eo(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 l=e[o];l!=null&&_r(l)?n[o]=l:n[o]=[].slice.call(l)}while(o!==a);return[].concat.apply([],n)}function Ac(e){var t;return e instanceof ce?t=e.j2():t=Y_(e),t}function Y_(e){var t;return e>2147483647?t=2147483647:e<-2147483648?t=-2147483648:t=e|0,t}function Z_(e){return e<<16>>16}function Sa(e){var t=Ac(e),n=Z_(t);return l_(n)}function X_(e,t){return new Mr(e,t)}function ep(){return Ui(),jc}var jc;function Pi(){return Ui(),Q_(u,u,u,u,u)}function Oa(e,t,n,r,a){return Ui(),r.get=r,r.set=a,r.callableName=e,tp(r,np(t,a),rp(r,n))}function tp(e,t,n){return Ui(),e.$metadata$=t,e.constructor=e,e.$imask$=n,e}function np(e,t){return Ui(),ep()[e][t==null?0:1]}function rp(e,t){Ui();var n=e.$imask$,r;if(n==null){var a=[t];r=vc(a)}else r=n;return r}var wf;function Ui(){if(!wf){wf=!0;var e=[Pi(),Pi()],t=[Pi(),Pi()];jc=[e,t,[Pi(),Pi()]]}}function Pc(e){return No(e)||Rv(e)}function No(e){return Array.isArray(e)}function re(e,t){return ip(e,t.$metadata$.iid)}function ip(e,t){var n=e.$imask$,r;if(n==null)return!1;r=n;var a=r;return p_(a,t)}function _r(e){var t;return No(e)?t=!e.$type$:t=!1,t}function Rc(e){var t;return typeof e=="number"?t=!0:t=e instanceof ce,t}function ap(e){var t=typeof e;return t==="string"||t==="boolean"||Rc(e)||re(e,La)}function st(e){return typeof e=="string"||re(e,zs)}function Mc(e){return No(e)&&e.$type$==="BooleanArray"}function Lc(e){return e instanceof Int8Array}function zc(e){return e instanceof Int16Array}function Oc(e){var t;return e instanceof Uint16Array?t=e.$type$==="CharArray":t=!1,t}function Dc(e){return e instanceof Int32Array}function Fc(e){return e instanceof Float32Array}function Kc(e){return No(e)&&e.$type$==="LongArray"}function Bc(e){return e instanceof Float64Array}function Uc(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(kf(e,"message")&&(a=a|1),kf(e,"cause")&&(a=a|2),a!==3){var o=op(e);o!=Error.prototype&&(a=a|Uc(o))}return n!=null&&(n.errorInfo=a),a}function kf(e,t){return e.hasOwnProperty(t)}function op(e){return Object.getPrototypeOf(e)}var u;function lp(e,t,n,r){n=n===u?0:n,r=r===u?e.length:r,en.o2(n,r,e.length),e.fill(t,n,r)}function Kl(e,t){return b_(e,t)}function Bl(e){return w_(e)}function Zs(e){return new Ve(e)}function sp(e,t){e.length>1&&Qc(e,t)}function up(e,t){if(!(t>=0)){var n="Invalid new array size: "+t+".";throw He(D(n))}return b0(e,new Int32Array(t))}function fp(e,t){if(!(t>=0)){var n="Invalid new array size: "+t+".";throw He(D(n))}return w0(e,t,null)}function Xs(e){var t=(e.m()/2|0)-1|0;if(t<0)return de;var n=zo(e),r=0;if(r<=t)do{var a=r;r=r+1|0;var o=e.l(a);e.p2(a,e.l(n)),e.p2(n,o),n=n-1|0}while(a!==t)}function cp(e){var t=qt(e),n=hp(Cf().q2_1,t),r=t-Cf().q2_1[n]|0;return r<10?r:-1}function hp(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 Hc(){Ul=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 Ul;function Cf(){return Ul==null&&new Hc,Ul}function dp(e){var t=qt(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 vp(e){return e!==e}function _p(e){var t;return e===0?t=0:t=1<<(31-ic(e)|0),t}function Wc(e){return im(e)}function Rt(e){var t;return e.toArray!==void 0?t=e.toArray():t=Wc(e),t}function eu(e){return e<0&&fm(),e}function pp(e,t){mp(e,t)}function Io(e){return cm([e])}function Vc(e){return _m([e])}function mp(e,t){if(e.m()<=1)return de;var n=Rt(e);Qc(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 Nn(){sr.call(this)}i(Nn).q=function(e){this.r2();for(var t=!1,n=e.h();n.i();){var r=n.j();this.f(r)&&(t=!0)}return t};i(Nn).toJSON=function(){return this.toArray()};i(Nn).r2=function(){};function ci(e){this.u2_1=e,this.s2_1=0,this.t2_1=-1}i(ci).i=function(){return this.s2_1<this.u2_1.m()};i(ci).j=function(){if(!this.i())throw bt();var e=this,t=this.s2_1;return this.s2_1=t+1|0,e.t2_1=t,this.u2_1.l(this.t2_1)};i(ci).v2=function(){if(this.t2_1===-1){var e="Call next() or previous() before removing element from the iterator.";throw Pr(D(e))}this.u2_1.x2(this.t2_1),this.s2_1=this.t2_1,this.t2_1=-1};function Da(e,t){this.b3_1=e,ci.call(this,e),en.c3(t,this.b3_1.m()),this.s2_1=t}i(Da).d3=function(){return this.s2_1>0};i(Da).e3=function(){return this.s2_1};i(Da).f3=function(){if(!this.d3())throw bt();var e=this;return this.s2_1=this.s2_1-1|0,e.t2_1=this.s2_1,this.b3_1.l(this.t2_1)};function pr(e,t,n){dt.call(this),this.h3_1=e,this.i3_1=t,this.j3_1=0,en.o2(this.i3_1,n,this.h3_1.m()),this.j3_1=n-this.i3_1|0}i(pr).k3=function(e,t){en.c3(e,this.j3_1),this.h3_1.k3(this.i3_1+e|0,t),this.j3_1=this.j3_1+1|0};i(pr).l=function(e){return en.l3(e,this.j3_1),this.h3_1.l(this.i3_1+e|0)};i(pr).x2=function(e){en.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(pr).p2=function(e,t){return en.l3(e,this.j3_1),this.h3_1.p2(this.i3_1+e|0,t)};i(pr).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(pr).m=function(){return this.j3_1};i(pr).r2=function(){return this.h3_1.r2()};function dt(){Nn.call(this),this.w2_1=0}i(dt).f=function(e){return this.r2(),this.k3(this.m(),e),!0};i(dt).n3=function(){this.r2(),this.m3(0,this.m())};i(dt).h=function(){return new ci(this)};i(dt).j1=function(e){return this.l1(e)>=0};i(dt).l1=function(e){var t;e:{for(var n=0,r=this.h();r.i();){var a=r.j();if(N(a,e)){t=n;break e}n=n+1|0}t=-1}return t};i(dt).m1=function(e){var t;e:{for(var n=this.o1(this.m());n.d3();){var r=n.f3();if(N(r,e)){t=n.e3();break e}}t=-1}return t};i(dt).n1=function(){return this.o1(0)};i(dt).o1=function(e){return new Da(this,e)};i(dt).p1=function(e,t){return new pr(this,e,t)};i(dt).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(dt).equals=function(e){return e===this?!0:e!=null&&re(e,Lr)?en.o3(this,e):!1};i(dt).hashCode=function(){return en.p3(this)};function mo(){ln.call(this),this.s3_1=null,this.t3_1=null}function lr(){Nn.call(this)}i(lr).equals=function(e){return e===this?!0:e!=null&&re(e,zr)?wu.y3(this,e):!1};i(lr).hashCode=function(){return wu.z3(this)};function Gc(e){if(!(e>=0)){var t="capacity must be non-negative.";throw He(D(t))}return Co(Array(e),null)}function xf(e,t,n){e.fill(null,t,n)}function Sf(e,t){return fp(e,t)}function Jc(){Hl=this;var e=this,t=In(0);t.p_1=!0,e.a4_1=t}var Hl;function gp(){return Hl==null&&new Jc,Hl}function yp(e){var t=[];return Ve.call(e,t),e}function rt(){return yp(J(i(Ve)))}function bp(e,t){var n=[];if(Ve.call(t,n),!(e>=0)){var r="Negative initial capacity: "+e;throw He(D(r))}return t}function In(e){return bp(e,J(i(Ve)))}function wp(e,t){var n=Rt(e);return Ve.call(t,n),t}function Fa(e){return wp(e,J(i(Ve)))}function kp(e,t){var n=e.m();return e.o_1.length=e.m()+t|0,n}function tu(e,t){return en.l3(t,e.m()),t}function Cp(e,t){return en.c3(t,e.m()),t}function Ve(e){gp(),dt.call(this),this.o_1=e,this.p_1=!1}i(Ve).m=function(){return this.o_1.length};i(Ve).l=function(e){var t=this.o_1[tu(this,e)];return t==null||t!=null?t:$()};i(Ve).p2=function(e,t){this.r2(),tu(this,e);var n=this.o_1[e];this.o_1[e]=t;var r=n;return r==null||r!=null?r:$()};i(Ve).f=function(e){return this.r2(),this.o_1.push(e),this.w2_1=this.w2_1+1|0,!0};i(Ve).k3=function(e,t){this.r2(),this.o_1.splice(Cp(this,e),0,t),this.w2_1=this.w2_1+1|0};i(Ve).q=function(e){if(this.r2(),e.k())return!1;for(var t=kp(this,e.m()),n=0,r=e.h();r.i();){var a=r.j(),o=n;n=o+1|0;var l=eu(o);this.o_1[t+l|0]=a}return this.w2_1=this.w2_1+1|0,!0};i(Ve).x2=function(e){this.r2(),tu(this,e),this.w2_1=this.w2_1+1|0;var t;return e===zo(this)?t=this.o_1.pop():t=this.o_1.splice(e,1)[0],t};i(Ve).m3=function(e,t){this.r2(),this.w2_1=this.w2_1+1|0,this.o_1.splice(e,t-e|0)};i(Ve).n3=function(){this.r2();var e=this;e.o_1=[],this.w2_1=this.w2_1+1|0};i(Ve).l1=function(e){return oc(this.o_1,e)};i(Ve).m1=function(e){return Dv(this.o_1,e)};i(Ve).toString=function(){return k_(this.o_1)};i(Ve).b4=function(){return[].slice.call(this.o_1)};i(Ve).toArray=function(){return this.b4()};i(Ve).r2=function(){if(this.p_1)throw vi()};var lo;function Qc(e,t){if(xp()){var n=$p(t);e.sort(n)}else Sp(e,0,Ov(e),t)}function xp(){var e=lo;if(e!=null)return e;lo=!1;var t=[],n=0;if(n<600)do{var r=n;n=n+1|0,t.push(r)}while(n<600);var a=Ep;t.sort(a);var o=1,l=t.length;if(o<l)do{var s=o;o=o+1|0;var f=t[s-1|0],c=t[s];if((f&3)===(c&3)&&f>=c)return!1}while(o<l);return lo=!0,!0}function Sp(e,t,n,r){var a=e.length,o=Co(Array(a),null),l=Wl(e,o,t,n,r);if(l!==e){var s=t;if(s<=n)do{var f=s;s=s+1|0,e[f]=l[f]}while(f!==n)}}function Wl(e,t,n,r,a){if(n===r)return e;var o=(n+r|0)/2|0,l=Wl(e,t,n,o,a),s=Wl(e,t,o+1|0,r,a),f=l===t?e:t,c=n,h=o+1|0,d=n;if(d<=r)do{var _=d;if(d=d+1|0,c<=o&&h<=r){var b=l[c],v=s[h];a.compare(b,v)<=0?(f[_]=b,c=c+1|0):(f[_]=v,h=h+1|0)}else c<=o?(f[_]=l[c],c=c+1|0):(f[_]=s[h],h=h+1|0)}while(_!==r);return f}function $p(e){return function(t,n){return e.compare(t,n)}}function Ep(e,t){return(e&3)-(t&3)|0}function Yc(e,t){return mo.call(t),qn.call(t),t.g4_1=e,t}function Zc(e){return Yc(iu(),e),e}function Np(){return Zc(J(i(qn)))}function Ip(e,t,n){return Yc(rh(e,t),n),n}function qp(e,t){return Ip(e,1,t),t}i(qn).s1=function(e){return this.g4_1.i4(e)};i(qn).u1=function(){var e=this.h4_1,t;if(e==null){var n=new nu(this.g4_1);this.h4_1=n,t=n}else t=e;return t};i(qn).t1=function(e){return this.g4_1.t1(e)};i(qn).u3=function(e,t){return this.g4_1.u3(e,t)};i(qn).m=function(){return this.g4_1.m()};function qn(){this.h4_1=null}function nu(e){sn.call(this,e)}i(nu).h=function(){return this.k4_1.l4()};function sn(e){lr.call(this),this.k4_1=e}i(sn).m=function(){return this.k4_1.m()};i(sn).k=function(){return this.k4_1.m()===0};i(sn).m4=function(e){return this.k4_1.o4(e)};i(sn).j1=function(e){return e!=null&&re(e,ir)?this.m4(e!=null&&re(e,ir)?e:$()):!1};i(sn).n4=function(e){throw vi()};i(sn).f=function(e){return this.n4(e!=null&&re(e,ir)?e:$())};i(sn).q=function(e){throw vi()};i(sn).k1=function(e){return this.k4_1.p4(e)};i(sn).r2=function(){return this.k4_1.q4()};function ru(e,t){return lr.call(t),gn.call(t),t.r4_1=e,t}function Xc(e){return ru(iu(),e),e}function Tp(){return Xc(J(i(gn)))}function Ap(e,t){ru(Mp(e.m()),t);for(var n=e.h();n.i();){var r=n.j();t.r4_1.u3(r,!0)}return t}function eh(e,t,n){return ru(rh(e,t),n),n}function jp(e,t){return eh(e,1,t),t}function Pp(e){return jp(e,J(i(gn)))}i(gn).f=function(e){return this.r4_1.u3(e,!0)==null};i(gn).j1=function(e){return this.r4_1.i4(e)};i(gn).k=function(){return this.r4_1.m()===0};i(gn).h=function(){return this.r4_1.s4()};i(gn).m=function(){return this.r4_1.m()};function gn(){}function th(e,t){return _p(_e(_o(t,1),3))}function nh(e,t){return ic(t)+1|0}function Rp(e){return au(8,e),e}function iu(){return Rp(J(i(yt)))}function au(e,t){return yt.call(t,Gc(e),null,new Int32Array(e),new Int32Array(th(Ka,e)),2,0),t}function Mp(e){return au(e,J(i(yt)))}function Lp(e,t,n){return au(e,n),n}function rh(e,t){return Lp(e,t,J(i(yt)))}function Di(e){return e.t4_1.length}function $n(e){return e.w4_1.length}function ih(e){e.a5_1=e.a5_1+1|0}function zp(e,t){Op(e,t)?lu(e,$n(e)):Dp(e,e.y4_1+t|0)}function Op(e,t){var n=Di(e)-e.y4_1|0,r=e.y4_1-e.m()|0;return n<t&&(r+n|0)>=t&&r>=(Di(e)/4|0)}function Dp(e,t){if(t<0)throw yh("too many elements");if(t>Di(e)){var n=en.d5(Di(e),t);e.t4_1=Sf(e.t4_1,n);var r=e,a=e.u4_1;r.u4_1=a==null?null:Sf(a,n),e.v4_1=up(e.v4_1,n);var o=th(Ka,n);o>$n(e)&&lu(e,o)}}function Fp(e){var t=e.u4_1;if(t!=null)return t;var n=Gc(Di(e));return e.u4_1=n,n}function ou(e,t){return t==null?0:_e(ae(t),-1640531527)>>>e.z4_1|0}function Kp(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;xf(e.t4_1,n,e.y4_1),r==null||xf(r,n,e.y4_1),e.y4_1=n}function lu(e,t){ih(e),e.y4_1>e.b5_1&&Kp(e),t!==$n(e)?(e.w4_1=new Int32Array(t),e.z4_1=nh(Ka,t)):lp(e.w4_1,0,0,$n(e));for(var n=0;n<e.y4_1;){var r=n;if(n=r+1|0,!Bp(e,r))throw Pr("This cannot happen with fixed magic multiplier and grow-only hash array. Have object hashCodes changed?")}}function Bp(e,t){for(var n=ou(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=$n(e)-1|0)}}function su(e,t){for(var n=ou(e,t),r=e.x4_1;;){var a=e.w4_1[n];if(a===0)return-1;if(a>0&&N(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=$n(e)-1|0)}}function Up(e,t){e.q4();e:for(;;)for(var n=ou(e,t),r=wa(_e(e.x4_1,2),$n(e)/2|0),a=0;;){var o=e.w4_1[n];if(o<=0){if(e.y4_1>=Di(e)){zp(e,1);continue e}var l=e.y4_1;e.y4_1=l+1|0;var s=l;return e.t4_1[s]=t,e.v4_1[s]=n,e.w4_1[n]=s+1|0,e.b5_1=e.b5_1+1|0,ih(e),a>e.x4_1&&(e.x4_1=a),s}if(N(e.t4_1[o-1|0],t))return-o|0;if(a=a+1|0,a>r){lu(e,_e($n(e),2));continue e}var f=n;n=f-1|0,f===0&&(n=$n(e)-1|0)}}function Hp(e,t){return e.b5_1===t.m()&&e.p4(t.u1())}function ah(){this.e5_1=-1640531527,this.f5_1=8,this.g5_1=2,this.h5_1=-1}var Ka;function Or(e){this.i5_1=e,this.j5_1=0,this.k5_1=-1,this.l5_1=this.i5_1.a5_1,this.m5()}i(Or).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(Or).i=function(){return this.j5_1<this.i5_1.y4_1};i(Or).n5=function(){if(this.i5_1.a5_1!==this.l5_1)throw hu()};function uu(e){Or.call(this,e)}i(uu).j=function(){if(this.n5(),this.j5_1>=this.i5_1.y4_1)throw bt();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 Ba(e){Or.call(this,e)}i(Ba).j=function(){if(this.n5(),this.j5_1>=this.i5_1.y4_1)throw bt();var e=this,t=this.j5_1;this.j5_1=t+1|0,e.k5_1=t;var n=new hi(this.i5_1,this.k5_1);return this.m5(),n};i(Ba).w5=function(){if(this.j5_1>=this.i5_1.y4_1)throw bt();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:ae(n),a=r==null?0:r,o=At(this.i5_1.u4_1)[this.k5_1],l=o==null?null:ae(o),s=a^(l==null?0:l);return this.m5(),s};i(Ba).x5=function(e){if(this.j5_1>=this.i5_1.y4_1)throw bt();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];N(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];N(a,this.i5_1)?e.a6("(this Map)"):e.z5(a),this.m5()};function hi(e,t){this.c6_1=e,this.d6_1=t}i(hi).q1=function(){return this.c6_1.t4_1[this.d6_1]};i(hi).r1=function(){return At(this.c6_1.u4_1)[this.d6_1]};i(hi).equals=function(e){var t,n;return e!=null&&re(e,ir)?n=N(e.q1(),this.q1()):n=!1,n?t=N(e.r1(),this.r1()):t=!1,t};i(hi).hashCode=function(){var e=this.q1(),t=e==null?null:ae(e),n=t==null?0:t,r=this.r1(),a=r==null?null:ae(r);return n^(a==null?0:a)};i(hi).toString=function(){return tt(this.q1())+"="+tt(this.r1())};function yt(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=nh(Ka,$n(this)),this.a5_1=0,this.b5_1=0,this.c5_1=!1}i(yt).m=function(){return this.b5_1};i(yt).t1=function(e){var t=su(this,e);return t<0?null:At(this.u4_1)[t]};i(yt).i4=function(e){return su(this,e)>=0};i(yt).u3=function(e,t){var n=Up(this,e),r=Fp(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(yt).equals=function(e){var t;if(e===this)t=!0;else{var n;e!=null&&re(e,ar)?n=Hp(this,e):n=!1,t=n}return t};i(yt).hashCode=function(){for(var e=0,t=this.l4();t.i();)e=e+t.w5()|0;return e};i(yt).toString=function(){var e=Nh(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(yt).q4=function(){if(this.c5_1)throw vi()};i(yt).o4=function(e){var t=su(this,e.q1());return t<0?!1:N(At(this.u4_1)[t],e.r1())};i(yt).e6=function(e){return this.o4(re(e,ir)?e:$())};i(yt).s4=function(){return new uu(this)};i(yt).l4=function(){return new Ba(this)};function oh(){}function Wp(e){return Zc(e),Ua.call(e),e}function lh(){return Wp(J(i(Ua)))}function Vp(e,t){return qp(e,t),Ua.call(t),t}function Gp(e){return Vp(e,J(i(Ua)))}function Ua(){}function Jp(e){return Xc(e),Dr.call(e),e}function fu(){return Jp(J(i(Dr)))}function Qp(e,t){return Ap(e,t),Dr.call(t),t}function Yp(e){return Qp(e,J(i(Dr)))}function Zp(e,t,n){return eh(e,t,n),Dr.call(n),n}function Xp(e,t){return Zp(e,1,t),t}function e0(e){return Xp(e,J(i(Dr)))}i(Dr).r2=function(){return this.r4_1.q4()};function Dr(){}function xt(e){$a.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(xt).o6=function(){return At(this.n6_1)};i(xt).p6=function(e){var t=this,n;if(qm(e))n=null;else{var r=e;n=r==null||r!=null?r:$()}for(var a=n,o=Tm(e);;){var l=t;o==null?l.k6_1=a:(l.i6_1=l.j6_1,l.l6_1=o);try{var s=l.q6();if(s===cr())return de;a=s,o=null}catch(v){var f=v;a=null,o=f}l.s6();var c=At(l.h6_1);if(c instanceof xt)t=c;else{if(o!=null){var h=At(o),d=jm(h);c.t6(d)}else{var _=a,b=_;c.t6(b)}return de}}};i(xt).t6=function(e){return this.p6(e)};function Hi(){}i(Hi).o6=function(){var e="This continuation is already complete";throw Pr(D(e))};i(Hi).p6=function(e){var t="This continuation is already complete";throw Pr(D(t))};i(Hi).t6=function(e){return this.p6(e)};i(Hi).toString=function(){return"This continuation is already complete"};var sh;function $a(){this.r6_1=null}i($a).s6=function(){var e=this.r6_1;e!=null&&e!==this&&At(this.o6().u6(Uh)).v6(e),this.r6_1=sh};function t0(e,t,n){return new cu(n,e,t,n)}function cu(e,t,n,r){this.e7_1=t,this.f7_1=n,this.g7_1=r,xt.call(this,re(e,ta)?e:$())}i(cu).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 uh(e){return So(e),un.call(e),e}function fh(){var e=uh(J(i(un)));return K(e,fh),e}function qo(e,t){return So(t,e),un.call(t),t}function ch(e){var t=qo(e,J(i(un)));return K(t,ch),t}function un(){K(this,un)}function hh(e){return yn(e),di.call(e),e}function dh(){var e=hh(J(i(di)));return K(e,dh),e}function vh(e,t){return _i(e,t),di.call(t),t}function He(e){var t=vh(e,J(i(di)));return K(t,He),t}function di(){K(this,di)}function n0(e){return yn(e),Wi.call(e),e}function _h(){var e=n0(J(i(Wi)));return K(e,_h),e}function r0(e,t){return _i(e,t),Wi.call(t),t}function Tn(e){var t=r0(e,J(i(Wi)));return K(t,Tn),t}function Wi(){K(this,Wi)}function i0(e){return yn(e),Vi.call(e),e}function ph(){var e=i0(J(i(Vi)));return K(e,ph),e}function a0(e,t){return _i(e,t),Vi.call(t),t}function Pr(e){var t=a0(e,J(i(Vi)));return K(t,Pr),t}function Vi(){K(this,Vi)}function o0(e){return yn(e),Gi.call(e),e}function vi(){var e=o0(J(i(Gi)));return K(e,vi),e}function l0(e,t){return _i(e,t),Gi.call(t),t}function mh(e){var t=l0(e,J(i(Gi)));return K(t,mh),t}function Gi(){K(this,Gi)}function yn(e){return uh(e),Pt.call(e),e}function gh(){var e=yn(J(i(Pt)));return K(e,gh),e}function _i(e,t){return qo(e,t),Pt.call(t),t}function yh(e){var t=_i(e,J(i(Pt)));return K(t,yh),t}function Pt(){K(this,Pt)}function s0(e){return yn(e),Qi.call(e),e}function bt(){var e=s0(J(i(Qi)));return K(e,bt),e}function u0(e,t){return _i(e,t),Qi.call(t),t}function Ji(e){var t=u0(e,J(i(Qi)));return K(t,Ji),t}function Qi(){K(this,Qi)}function f0(e){return So(e),Yi.call(e),e}function bh(){var e=f0(J(i(Yi)));return K(e,bh),e}function c0(e,t){return So(t,e),Yi.call(t),t}function Yi(){K(this,Yi)}function h0(e){return hh(e),pi.call(e),e}function wh(){var e=h0(J(i(pi)));return K(e,wh),e}function d0(e,t){return vh(e,t),pi.call(t),t}function kh(e){var t=d0(e,J(i(pi)));return K(t,kh),t}function pi(){K(this,pi)}function v0(e){return yn(e),Zi.call(e),e}function Ch(){var e=v0(J(i(Zi)));return K(e,Ch),e}function _0(e,t){return _i(e,t),Zi.call(t),t}function xh(e){var t=_0(e,J(i(Zi)));return K(t,xh),t}function Zi(){K(this,Zi)}function p0(e){return yn(e),To.call(e),e}function hu(){var e=p0(J(i(To)));return K(e,hu),e}function To(){K(this,To)}function m0(e){return yn(e),Ao.call(e),e}function du(){var e=m0(J(i(Ao)));return K(e,du),e}function Ao(){K(this,Ao)}function g0(e){return yn(e),jo.call(e),e}function vu(){var e=g0(J(i(jo)));return K(e,vu),e}function jo(){K(this,jo)}function y0(e){return yn(e),Po.call(e),e}function _u(){var e=y0(J(i(Po)));return K(e,_u),e}function Po(){K(this,Po)}function Ea(e){return new Za(e)}function b0(e,t){for(var n=e.length,r=t.length,a=0,o=t;a<n&&a<r;){var l=a,s=a;a=s+1|0,o[l]=e[s]}return t}function w0(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 Na(){}function Xt(e){this.l7_1=e}i(Xt).m7=function(){return this.l7_1};i(Xt).equals=function(e){var t;return e instanceof mi||e instanceof Fi?t=!1:e instanceof Xt?t=N(this.m7(),e.m7()):t=!1,t};i(Xt).hashCode=function(){var e=this.k7(),t=e==null?null:on(e);return t==null?0:t};i(Xt).toString=function(){return"class "+this.k7()};function mi(){Vl=this,Xt.call(this,Object),this.o7_1="Nothing"}i(mi).k7=function(){return this.o7_1};i(mi).m7=function(){throw mh("There's no native JS class for Nothing type")};i(mi).equals=function(e){return e===this};i(mi).hashCode=function(){return 0};var Vl;function Sh(){return Vl==null&&new mi,Vl}function Fi(){}i(Fi).equals=function(e){return e===this};i(Fi).hashCode=function(){return 0};function Me(e,t,n){Xt.call(this,e),this.q7_1=t,this.r7_1=n}i(Me).equals=function(e){return e instanceof Me?i(Xt).equals.call(this,e)&&this.q7_1===e.q7_1:!1};i(Me).k7=function(){return this.q7_1};function go(e){Xt.call(this,e);var t=this,n=e.$metadata$;t.t7_1=n==null?null:n.simpleName}i(go).k7=function(){return this.t7_1};function Ro(){}function pu(){}function $f(){return K0(),$h}var $h;function k0(e){return e!=null}function C0(e){return Rc(e)}function x0(e){return e!=null?typeof e=="boolean":!1}function S0(e){return e!=null?typeof e=="number":!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?_r(e):!1}function T0(e){return e!=null?typeof e=="string":!1}function A0(e){return e instanceof Error}function j0(e){return e!=null?Mc(e):!1}function P0(e){return e!=null?Oc(e):!1}function R0(e){return e!=null?Lc(e):!1}function M0(e){return e!=null?zc(e):!1}function L0(e){return e!=null?Dc(e):!1}function z0(e){return e!=null?Kc(e):!1}function O0(e){return e!=null?Fc(e):!1}function D0(e){return e!=null?Bc(e):!1}function F0(e){return function(t){var n;return typeof t=="function"?n=t.length===e:n=!1,n}}function Ge(){Gl=this;var e=this,t=Object;e.anyClass=new Me(t,"Any",k0);var n=this,r=Number;n.numberClass=new Me(r,"Number",C0),this.nothingClass=Sh();var a=this,o=Boolean;a.booleanClass=new Me(o,"Boolean",x0);var l=this,s=Number;l.byteClass=new Me(s,"Byte",S0);var f=this,c=Number;f.shortClass=new Me(c,"Short",$0);var h=this,d=Number;h.intClass=new Me(d,"Int",E0);var _=this,b=Number;_.floatClass=new Me(b,"Float",N0);var v=this,m=Number;v.doubleClass=new Me(m,"Double",I0);var g=this,p=Array;g.arrayClass=new Me(p,"Array",q0);var C=this,k=String;C.stringClass=new Me(k,"String",T0);var S=this,I=Error;S.throwableClass=new Me(I,"Throwable",A0);var z=this,Q=Array;z.booleanArrayClass=new Me(Q,"BooleanArray",j0);var V=this,ie=Uint16Array;V.charArrayClass=new Me(ie,"CharArray",P0);var W=this,qe=Int8Array;W.byteArrayClass=new Me(qe,"ByteArray",R0);var pe=this,we=Int16Array;pe.shortArrayClass=new Me(we,"ShortArray",M0);var oe=this,ve=Int32Array;oe.intArrayClass=new Me(ve,"IntArray",L0);var Oe=this,Re=Array;Oe.longArrayClass=new Me(Re,"LongArray",z0);var me=this,Je=Float32Array;me.floatArrayClass=new Me(Je,"FloatArray",O0);var at=this,$t=Float64Array;at.doubleArrayClass=new Me($t,"DoubleArray",D0)}i(Ge).u7=function(){return this.anyClass};i(Ge).v7=function(){return this.numberClass};i(Ge).w7=function(){return this.nothingClass};i(Ge).x7=function(){return this.booleanClass};i(Ge).y7=function(){return this.byteClass};i(Ge).z7=function(){return this.shortClass};i(Ge).a8=function(){return this.intClass};i(Ge).b8=function(){return this.floatClass};i(Ge).c8=function(){return this.doubleClass};i(Ge).d8=function(){return this.arrayClass};i(Ge).e8=function(){return this.stringClass};i(Ge).f8=function(){return this.throwableClass};i(Ge).g8=function(){return this.booleanArrayClass};i(Ge).h8=function(){return this.charArrayClass};i(Ge).i8=function(){return this.byteArrayClass};i(Ge).j8=function(){return this.shortArrayClass};i(Ge).k8=function(){return this.intArrayClass};i(Ge).l8=function(){return this.longArrayClass};i(Ge).m8=function(){return this.floatArrayClass};i(Ge).n8=function(){return this.doubleArrayClass};i(Ge).functionClass=function(e){var t=$f()[e],n;if(t==null){var r=Function,a="Function"+e,o=new Me(r,a,F0(e));$f()[e]=o,n=o}else n=t;return n};var Gl;function kt(){return Gl==null&&new Ge,Gl}var Ef;function K0(){Ef||(Ef=!0,$h=Co(Array(0),null))}function B0(e){var t;return Array.isArray(e)?t=U0(e):t=mu(e),t}function U0(e){var t;switch(e.length){case 1:t=mu(e[0]);break;case 0:t=Sh();break;default:t=new Fi;break}return t}function mu(e){if(e===String)return kt().stringClass;var t=e.$metadata$,n;if(t!=null){var r;if(t.$kClass$==null){var a=new go(e);t.$kClass$=a,r=a}else r=t.$kClass$;n=r}else n=new go(e);return n}function yo(e){var t;switch(typeof e){case"string":t=kt().stringClass;break;case"number":var n;(e|0)===e?n=kt().intClass:n=kt().doubleClass,t=n;break;case"boolean":t=kt().booleanClass;break;case"function":var r=kt();t=r.functionClass(e.length);break;default:var a;if(Mc(e))a=kt().booleanArrayClass;else if(Oc(e))a=kt().charArrayClass;else if(Lc(e))a=kt().byteArrayClass;else if(zc(e))a=kt().shortArrayClass;else if(Dc(e))a=kt().intArrayClass;else if(Kc(e))a=kt().longArrayClass;else if(Fc(e))a=kt().floatArrayClass;else if(Bc(e))a=kt().doubleArrayClass;else if(re(e,Na))a=B0(Na);else if(_r(e))a=kt().arrayClass;else{var o=Object.getPrototypeOf(e).constructor,l;if(o===Object)l=kt().anyClass;else if(o===Error)l=kt().throwableClass;else{var s=o;l=mu(s)}a=l}t=a;break}return t}function Eh(e){e.lastIndex=0}function H0(e,t){return Ih(t),t}function Nh(e){return H0(e,J(i(fn)))}function Ih(e){return fn.call(e,""),e}function gu(){return Ih(J(i(fn)))}function fn(e){this.y5_1=e!==void 0?e:""}i(fn).a=function(){return this.y5_1.length};i(fn).b=function(e){var t=this.y5_1,n;if(0<=e&&e<=(j(t)-1|0))n=R(t,e);else throw Tn("index: "+e+", length: "+this.a()+"}");return n};i(fn).c=function(e,t){return this.y5_1.substring(e,t)};i(fn).b6=function(e){return this.y5_1=this.y5_1+Be(e),this};i(fn).e=function(e){return this.y5_1=this.y5_1+tt(e),this};i(fn).z5=function(e){return this.y5_1=this.y5_1+tt(e),this};i(fn).a6=function(e){var t=this,n=this.y5_1;return t.y5_1=n+(e==null?"null":e),this};i(fn).toString=function(){return this.y5_1};function Nf(e){var t=Be(e).toUpperCase();return t.length>1?e:R(t,0)}function qh(e){return dp(e)}function If(e,t){return e.toString(Th(t))}function Th(e){if(!(2<=e&&e<=36))throw He("radix "+e+" was not in valid range 2..36");return e}function W0(e){var t=Zh(e),n;return t==null?Xh(e):n=t,n}function qf(e,t){var n=Tu(e,t),r;return n==null?Xh(e):r=n,r}function V0(e,t){var n=Ye(e,48)>=0&&Ye(e,57)<=0?fa(e,48):Ye(e,65)>=0&&Ye(e,90)<=0?fa(e,65)+10|0:Ye(e,97)>=0&&Ye(e,122)<=0?fa(e,97)+10|0:Ye(e,128)<0?-1:Ye(e,65313)>=0&&Ye(e,65338)<=0?fa(e,65313)+10|0:Ye(e,65345)>=0&&Ye(e,65370)<=0?fa(e,65345)+10|0:cp(e);return n>=t?-1:n}function G0(e,t){return Ha.call(t,e,Iu()),t}function J0(e){return G0(e,J(i(Ha)))}function Ah(){Jl=this,this.o8_1=new RegExp("[\\\\^$*+?.()|[\\]{}]","g"),this.p8_1=new RegExp("[\\\\$]","g"),this.q8_1=new RegExp("\\$","g")}var Jl;function Q0(){return Jl==null&&new Ah,Jl}function Ha(e,t){Q0(),this.r8_1=e,this.s8_1=Qv(t),this.t8_1=new RegExp(e,Y0(t,"gu")),this.u8_1=null,this.v8_1=null}i(Ha).w8=function(e){Eh(this.t8_1);var t=this.t8_1.exec(D(e));return t!=null&&t.index===0&&this.t8_1.lastIndex===j(e)};i(Ha).toString=function(){return this.t8_1.toString()};function Y0(e,t){return pn(e,"",t,u,u,u,Z0)}function Z0(e){return e.z8_1}function X0(e,t){return Im(e,t)}function yu(e){this.a9_1=e}i(yu).b9=function(e,t){return this.a9_1(e,t)};i(yu).compare=function(e,t){return this.b9(e,t)};function bu(e,t,n){return n=n===u?!1:n,n?Mo(e,0,t,0,t.length,n):e.startsWith(t,0)}function jh(e,t,n){return n=n===u?!1:n,n?Mo(e,e.length-t.length|0,t,0,t.length,n):e.endsWith(t)}function em(e,t,n,r){return r=r===u?!1:r,r?Mo(e,n,t,0,t.length,r):e.startsWith(t,n)}function Mo(e,t,n,r,a,o){return o=o===u?!1:o,Ya(e,t,n,r,a,o)}function tm(e){return function(t){return t===e?"(this Collection)":tt(t)}}function sr(){}i(sr).j1=function(e){var t;e:{var n;if(re(this,Ae)?n=this.k():n=!1,n){t=!1;break e}for(var r=this.h();r.i();){var a=r.j();if(N(a,e)){t=!0;break e}}t=!1}return t};i(sr).k1=function(e){var t;e:{var n;if(re(e,Ae)?n=e.k():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(sr).k=function(){return this.m()===0};i(sr).toString=function(){return pn(this,", ","[","]",u,u,tm(this))};i(sr).toArray=function(){return Wc(this)};function Fr(){this.n2_1=2147483639}i(Fr).l3=function(e,t){if(e<0||e>=t)throw Tn("index: "+e+", size: "+t)};i(Fr).c3=function(e,t){if(e<0||e>t)throw Tn("index: "+e+", size: "+t)};i(Fr).o2=function(e,t,n){if(e<0||t>n)throw Tn("fromIndex: "+e+", toIndex: "+t+", size: "+n);if(e>t)throw He("fromIndex: "+e+" > toIndex: "+t)};i(Fr).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(Fr).p3=function(e){for(var t=1,n=e.h();n.i();){var r=n.j(),a=_e(31,t),o=r==null?null:ae(r);t=a+(o==null?0:o)|0}return t};i(Fr).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(!N(a,o))return!1}return!0};var en;function Tf(e,t){return t===e?"(this Map)":tt(t)}function Ph(e,t){var n;e:{for(var r=e.u1().h();r.i();){var a=r.j();if(N(a.q1(),t)){n=a;break e}}n=null}return n}function nm(){}function rm(e){return function(t){return e.c9(t)}}function ln(){this.v3_1=null,this.w3_1=null}i(ln).s1=function(e){return Ph(this,e)!=null};i(ln).x3=function(e){if(!(e!=null&&re(e,ir)))return!1;var t=e.q1(),n=e.r1(),r=(re(this,ar)?this:$()).t1(t);if(!N(n,r))return!1;var a;return r==null?a=!(re(this,ar)?this:$()).s1(t):a=!1,!a};i(ln).equals=function(e){if(e===this)return!0;if(!(e!=null&&re(e,ar))||this.m()!==e.m())return!1;var t;e:{var n=e.u1(),r;if(re(n,Ae)?r=n.k():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(ln).t1=function(e){var t=Ph(this,e);return t==null?null:t.r1()};i(ln).hashCode=function(){return ae(this.u1())};i(ln).m=function(){return this.u1().m()};i(ln).toString=function(){var e=this.u1();return pn(e,", ","{","}",u,u,rm(this))};i(ln).c9=function(e){return Tf(this,e.q1())+"="+Tf(this,e.r1())};function Lo(){}i(Lo).z3=function(e){for(var t=0,n=e.h();n.i();){var r=n.j(),a=t,o=r==null?null:ae(r);t=a+(o==null?0:o)|0}return t};i(Lo).y3=function(e,t){return e.m()!==t.m()?!1:e.k1(t)};var wu;function im(e){if(e.k())return[];for(var t=e.m(),n=Co(Array(t),null),r=e.h(),a=0;r.i();){var o=a;a=o+1|0,n[o]=r.j()}return n}function ku(e){return e.length>0?Zs(e):Wa()}function Rh(e){return e.length===0?rt():Fa(new jn(e,!0))}function am(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 l=(a+o|0)>>>1|0,s=e.l(l),f=Yo(s,t);if(f<0)a=l+1|0;else if(f>0)o=l-1|0;else return l}return-(a+1|0)|0}function zo(e){return e.m()-1|0}function Wa(){return sm()}function om(e){switch(e.m()){case 0:return Wa();case 1:return Io(e.l(0));default:return e}}function jn(e,t){this.d9_1=e,this.e9_1=t}i(jn).m=function(){return this.d9_1.length};i(jn).k=function(){return this.d9_1.length===0};i(jn).f9=function(e){return va(this.d9_1,e)};i(jn).g9=function(e){var t;e:{var n;if(re(e,Ae)?n=e.k():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(jn).k1=function(e){return this.g9(e)};i(jn).h=function(){return _c(this.d9_1)};function lm(e,t,n){if(t>n)throw He("fromIndex ("+t+") is greater than toIndex ("+n+").");if(t<0)throw Tn("fromIndex ("+t+") is less than zero.");if(n>e)throw Tn("toIndex ("+n+") is greater than size ("+e+").")}function it(){Ql=this,this.h9_1=new ce(-1478467534,-1720727600)}i(it).equals=function(e){var t;return e!=null&&re(e,Lr)?t=e.k():t=!1,t};i(it).hashCode=function(){return 1};i(it).toString=function(){return"[]"};i(it).m=function(){return 0};i(it).k=function(){return!0};i(it).i9=function(e){return!1};i(it).j1=function(e){return!1};i(it).j9=function(e){return e.k()};i(it).k1=function(e){return this.j9(e)};i(it).l=function(e){throw Tn("Empty list doesn't contain element at index "+e+".")};i(it).k9=function(e){return-1};i(it).l1=function(e){return-1};i(it).l9=function(e){return-1};i(it).m1=function(e){return-1};i(it).h=function(){return Xi};i(it).n1=function(){return Xi};i(it).o1=function(e){if(e!==0)throw Tn("Index: "+e);return Xi};i(it).p1=function(e,t){if(e===0&&t===0)return this;throw Tn("fromIndex: "+e+", toIndex: "+t)};var Ql;function sm(){return Ql==null&&new it,Ql}function gi(){}i(gi).i=function(){return!1};i(gi).d3=function(){return!1};i(gi).e3=function(){return 0};i(gi).j=function(){throw bt()};i(gi).f3=function(){throw bt()};var Xi;function um(e){return new jn(e,!1)}function fm(){throw xh("Index overflow has happened.")}function cm(e){return e.length===0?rt():Fa(new jn(e,!0))}function Zr(e,t){this.v_1=e,this.w_1=t}i(Zr).toString=function(){return"IndexedValue(index="+this.v_1+", value="+tt(this.w_1)+")"};i(Zr).hashCode=function(){var e=this.v_1;return e=_e(e,31)+(this.w_1==null?0:ae(this.w_1))|0,e};i(Zr).equals=function(e){if(this===e)return!0;if(!(e instanceof Zr))return!1;var t=e instanceof Zr?e:$();return!(this.v_1!==t.v_1||!N(this.w_1,t.w_1))};function bo(e,t){var n;return re(e,Ae)?n=e.m():n=t,n}function Cu(e){var t;if(e.k())throw Ji("List is empty.");return t=e.x2(zo(e)),t}function hm(e,t){return e.q(Zs(t))}function Oo(e,t){if(re(t,Ae))return e.q(t);for(var n=!1,r=t.h();r.i();){var a=r.j();e.f(a)&&(n=!0)}return n}function Do(){}i(Do).j=function(){return this.m9()};function Va(){}i(Va).n9=function(){return this.o9()};i(Va).j=function(){return new ee(this.n9())};function Ga(e){return new xu(e)}function ur(){}function dm(e){var t=new fr;return t.t9_1=t0(e,t,t),t}function vm(e){if(e.i())return e.j();throw bt()}function Mh(e){switch(e.q9_1){case 4:return bt();case 5:return Pr("Iterator has failed.");default:return Pr("Unexpected state of the iterator: "+e.q9_1)}}function fr(){ur.call(this),this.q9_1=0,this.r9_1=null,this.s9_1=null,this.t9_1=null}i(fr).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 Mh(this)}this.q9_1=5;var e=At(this.t9_1);this.t9_1=null;var t=de;e.t6(t)}};i(fr).j=function(){switch(this.q9_1){case 0:case 1:return vm(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 Mh(this)}};i(fr).p9=function(e,t){return this.r9_1=e,this.q9_1=3,this.t9_1=t,cr()};i(fr).u9=function(e){Pm(e);var t=e;t==null||t!=null||$(),this.q9_1=4};i(fr).t6=function(e){return this.u9(e)};i(fr).o6=function(){return ym()};function xu(e){this.v9_1=e}i(xu).h=function(){return dm(this.v9_1)};function ea(){return Jo}function Fo(e){this.x9_1=e,this.w9_1=e.y9_1.h()}i(Fo).j=function(){return this.x9_1.z9_1(this.w9_1.j())};i(Fo).i=function(){return this.w9_1.i()};function Ko(e,t){this.y9_1=e,this.z9_1=t}i(Ko).h=function(){return new Fo(this)};function Lh(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,de}e.ba_1=0}function Bo(e){this.da_1=e,this.aa_1=e.ea_1.h(),this.ba_1=-1,this.ca_1=null}i(Bo).j=function(){if(this.ba_1===-1&&Lh(this),this.ba_1===0)throw bt();var e=this.ca_1;return this.ca_1=null,this.ba_1=-1,e==null||e!=null?e:$()};i(Bo).i=function(){return this.ba_1===-1&&Lh(this),this.ba_1===1};function Su(e,t,n){t=t===u?!0:t,this.ea_1=e,this.fa_1=t,this.ga_1=n}i(Su).h=function(){return new Bo(this)};function Uo(e){this.ha_1=e.ja_1.h(),this.ia_1=0}i(Uo).j=function(){var e=this.ia_1;return this.ia_1=e+1|0,new Zr(eu(e),this.ha_1.j())};i(Uo).i=function(){return this.ha_1.i()};function $u(e){this.ja_1=e}i($u).h=function(){return new Uo(this)};function yi(){}function Ho(e){this.ka_1=e.na_1,this.la_1=e.ma_1.h()}i(Ho).j=function(){if(this.ka_1===0)throw bt();return this.ka_1=this.ka_1-1|0,this.la_1.j()};i(Ho).i=function(){return this.ka_1>0&&this.la_1.i()};function ii(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(D(n))}}i(ii).u=function(e){return e>=this.na_1?ea():new Rr(this.ma_1,e,this.na_1)};i(ii).t=function(e){return e>=this.na_1?this:new ii(this.ma_1,e)};i(ii).h=function(){return new Ho(this)};function zh(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,de}e.pa_1=0}function Wo(e){this.ra_1=e,this.oa_1=e.sa_1.h(),this.pa_1=-1,this.qa_1=null}i(Wo).j=function(){if(this.pa_1===-1&&zh(this),this.pa_1===0)throw bt();var e=this.qa_1,t=e==null||e!=null?e:$();return this.qa_1=null,this.pa_1=-1,t};i(Wo).i=function(){return this.pa_1===-1&&zh(this),this.pa_1===1};function Eu(e,t){this.sa_1=e,this.ta_1=t}i(Eu).h=function(){return new Wo(this)};function Oh(e){for(;e.va_1>0&&e.ua_1.i();)e.ua_1.j(),e.va_1=e.va_1-1|0}function Vo(e){this.ua_1=e.wa_1.h(),this.va_1=e.xa_1}i(Vo).j=function(){return Oh(this),this.ua_1.j()};i(Vo).i=function(){return Oh(this),this.ua_1.i()};function Xr(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(D(n))}}i(Xr).u=function(e){var t=this.xa_1+e|0;return t<0?new Xr(this,e):new Xr(this.wa_1,t)};i(Xr).t=function(e){var t=this.xa_1+e|0;return t<0?new ii(this,e):new Rr(this.wa_1,this.xa_1,t)};i(Xr).h=function(){return new Vo(this)};function Dh(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,de}e.za_1=0}function Go(e){this.bb_1=e,this.ya_1=e.cb_1.h(),this.za_1=-1,this.ab_1=null}i(Go).j=function(){if(this.za_1===-1&&Dh(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(Go).i=function(){return this.za_1===-1&&Dh(this),this.za_1===1||this.ya_1.i()};function Nu(e,t){this.cb_1=e,this.db_1=t}i(Nu).h=function(){return new Go(this)};function Ja(){}i(Ja).h=function(){return Xi};i(Ja).u=function(e){return Jo};i(Ja).t=function(e){return Jo};var Jo;function Fh(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 Kh(e){return e.jb_1-e.ib_1|0}function Qo(e){this.gb_1=e,this.eb_1=e.hb_1.h(),this.fb_1=0}i(Qo).i=function(){return Fh(this),this.fb_1<this.gb_1.jb_1&&this.eb_1.i()};i(Qo).j=function(){if(Fh(this),this.fb_1>=this.gb_1.jb_1)throw bt();return this.fb_1=this.fb_1+1|0,this.eb_1.j()};function Rr(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(D(r))}if(!(this.jb_1>=0)){var a="endIndex should be non-negative, but is "+this.jb_1;throw He(D(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(D(o))}}i(Rr).u=function(e){return e>=Kh(this)?ea():new Rr(this.hb_1,this.ib_1+e|0,this.jb_1)};i(Rr).t=function(e){return e>=Kh(this)?this:new Rr(this.hb_1,this.ib_1,this.ib_1+e|0)};i(Rr).h=function(){return new Qo(this)};function Iu(){return mm()}function _m(e){return Bv(e,Pp(e.length))}function pm(e){switch(e.m()){case 0:return Iu();case 1:return Vc(e.h().j());default:return e}}function Pn(){Yl=this,this.kb_1=new ce(1993859828,793161749)}i(Pn).equals=function(e){var t;return e!=null&&re(e,zr)?t=e.k():t=!1,t};i(Pn).hashCode=function(){return 0};i(Pn).toString=function(){return"[]"};i(Pn).m=function(){return 0};i(Pn).k=function(){return!0};i(Pn).j9=function(e){return e.k()};i(Pn).k1=function(e){return this.j9(e)};i(Pn).h=function(){return Xi};var Yl;function mm(){return Yl==null&&new Pn,Yl}function Yo(e,t){return e===t?0:e==null?-1:t==null?1:Cc(e!=null&&ap(e)?e:$(),t)}function ta(){}function Bh(){}var Uh;function gm(){}function Qa(){Zl=this,this.lb_1=new ce(0,0)}i(Qa).u6=function(e){return null};i(Qa).hashCode=function(){return 0};i(Qa).toString=function(){return"EmptyCoroutineContext"};var Zl;function ym(){return Zl==null&&new Qa,Zl}function cr(){return wm()}var Hh,Af;function bm(){if(Af)return de;Af=!0,Hh=new so("COROUTINE_SUSPENDED",0),new so("UNDECIDED",1),new so("RESUMED",2)}function so(e,t){or.call(this,e,t)}function wm(){return bm(),Hh}function Wh(e,t,n){var r;if(n>0)r=e>=t?t:t-jf(t,e,n)|0;else if(n<0)r=e<=t?t:t+jf(e,t,-n|0)|0;else throw He("Step is zero.");return r}function jf(e,t,n){return Nl(Nl(e,n)-Nl(t,n)|0,n)}function Nl(e,t){var n=e%t|0;return n>=0?n:n+t|0}function Vh(){Xl=this,this.mb_1=new Mr(1,0)}var Xl;function km(){return Xl==null&&new Vh,Xl}function Mr(e,t){km(),An.call(this,e,t,1)}i(Mr).k=function(){return this.qb_1>this.rb_1};i(Mr).equals=function(e){var t;return e instanceof Mr?t=this.k()&&e.k()||this.qb_1===e.qb_1&&this.rb_1===e.rb_1:t=!1,t};i(Mr).hashCode=function(){return this.k()?-1:_e(31,this.qb_1)+this.rb_1|0};i(Mr).toString=function(){return""+this.qb_1+".."+this.rb_1};function Gh(){es=this,this.tb_1=new hr(1,0)}var es;function Cm(){return es==null&&new Gh,es}function hr(e,t){Cm(),dr.call(this,e,t,1)}i(hr).xb=function(e){return Ye(this.yb_1,e)<=0&&Ye(e,this.zb_1)<=0};i(hr).k=function(){return Ye(this.yb_1,this.zb_1)>0};i(hr).equals=function(e){var t;return e instanceof hr?t=this.k()&&e.k()||this.yb_1===e.yb_1&&this.zb_1===e.zb_1:t=!1,t};i(hr).hashCode=function(){var e;if(this.k())e=-1;else{var t=this.yb_1,n=qt(t),r=_e(31,n),a=this.zb_1;e=r+qt(a)|0}return e};i(hr).toString=function(){return Be(this.yb_1)+".."+Be(this.zb_1)};function Zo(e,t,n){Do.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(Zo).i=function(){return this.dc_1};i(Zo).m9=function(){var e=this.ec_1;if(e===this.cc_1){if(!this.dc_1)throw bt();this.dc_1=!1}else this.ec_1=this.ec_1+this.bc_1|0;return e};function Xo(e,t,n){Va.call(this),this.fc_1=n;var r=this;r.gc_1=qt(t),this.hc_1=this.fc_1>0?Ye(e,t)<=0:Ye(e,t)>=0;var a=this,o;this.hc_1?o=qt(e):o=this.gc_1,a.ic_1=o}i(Xo).i=function(){return this.hc_1};i(Xo).o9=function(){var e=this.ic_1;if(e===this.gc_1){if(!this.hc_1)throw bt();this.hc_1=!1}else this.ic_1=this.ic_1+this.fc_1|0;return Sa(e)};function qu(){}i(qu).s=function(e,t,n){return new An(e,t,n)};var Jh;function An(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=Wh(e,t,n),this.sb_1=n}i(An).h=function(){return new Zo(this.qb_1,this.rb_1,this.sb_1)};i(An).k=function(){return this.sb_1>0?this.qb_1>this.rb_1:this.qb_1<this.rb_1};i(An).equals=function(e){var t;return e instanceof An?t=this.k()&&e.k()||this.qb_1===e.qb_1&&this.rb_1===e.rb_1&&this.sb_1===e.sb_1:t=!1,t};i(An).hashCode=function(){return this.k()?-1:_e(31,_e(31,this.qb_1)+this.rb_1|0)+this.sb_1|0};i(An).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 xm(){}function dr(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=qt(e),o=qt(t);r.zb_1=Sa(Wh(a,o,n)),this.ac_1=n}i(dr).h=function(){return new Xo(this.yb_1,this.zb_1,this.ac_1)};i(dr).k=function(){return this.ac_1>0?Ye(this.yb_1,this.zb_1)>0:Ye(this.yb_1,this.zb_1)<0};i(dr).equals=function(e){var t;return e instanceof dr?t=this.k()&&e.k()||this.yb_1===e.yb_1&&this.zb_1===e.zb_1&&this.ac_1===e.ac_1:t=!1,t};i(dr).hashCode=function(){var e;if(this.k())e=-1;else{var t=this.yb_1,n=qt(t),r=_e(31,n),a=this.zb_1,o=qt(a);e=_e(31,r+o|0)+this.ac_1|0}return e};i(dr).toString=function(){return this.ac_1>0?Be(this.yb_1)+".."+Be(this.zb_1)+" step "+this.ac_1:Be(this.yb_1)+" downTo "+Be(this.zb_1)+" step "+(-this.ac_1|0)};function Qh(e,t,n){n!=null?e.e(n(t)):t==null||st(t)?e.e(t):t instanceof ee?e.b6(t.x_1):e.e(tt(t))}function Yh(e,t,n){if(n=n===u?!1:n,e===t)return!0;if(!n)return!1;var r=Nf(e),a=Nf(t),o;if(r===a)o=!0;else{var l=Be(r).toLowerCase(),s=R(l,0),f=Be(a).toLowerCase();o=s===R(f,0)}return o}function Zh(e){return Tu(e,10)}function Tu(e,t){Th(t);var n=e.length;if(n===0)return null;var r,a,o,l=R(e,0);if(Ye(l,48)<0){if(n===1)return null;if(r=1,l===45)a=!0,o=-2147483648;else if(l===43)a=!1,o=-2147483647;else return null}else r=0,a=!1,o=-2147483647;var s=-59652323,f=s,c=0,h=r;if(h<n)do{var d=h;h=h+1|0;var _=V0(R(e,d),t);if(_<0)return null;if(c<f)if(f===s){if(f=o/t|0,c<f)return null}else return null;if(c=_e(c,t),c<(o+_|0))return null;c=c-_|0}while(h<n);return a?c:-c|0}function Xh(e){throw kh("Invalid number format: '"+e+"'")}function Au(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?bu(e,t):Ya(e,0,t,0,j(t),n)}function ju(e,t,n){n=n===u?!1:n;var r;return typeof t=="string"?r=ts(e,t,u,n)>=0:r=ed(e,t,0,j(e),n)>=0,r}function el(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?jh(e,t):Ya(e,j(e)-j(t)|0,t,0,j(t),n)}function Sm(e){var t;e:{for(var n=0;n<j(e);){var r=R(e,n);if(n=n+1|0,!qh(r)){t=!1;break e}}t=!0}return t}function Mt(e,t,n){return n=n===u?!1:n,Em(e,t,u,n)>=0}function tl(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?em(e,t,n):Ya(e,n,t,0,j(t),r)}function ts(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=ed(e,t,n,j(e),r):a=e.indexOf(t,n),a}function Ya(e,t,n,r,a,o){if(r<0||t<0||t>(j(e)-a|0)||r>(j(n)-a|0))return!1;var l=0;if(l<a)do{var s=l;if(l=l+1|0,!Yh(R(e,t+s|0),R(n,r+s|0),o))return!1}while(l<a);return!0}function ed(e,t,n,r,a,o){o=o===u?!1:o;var l=o?Yv(wa(n,td(e)),_o(r,0)):X_(_o(n,0),wa(r,j(e))),s;if(typeof e=="string"?s=typeof t=="string":s=!1,s){var f=l.qb_1,c=l.rb_1,h=l.sb_1;if(h>0&&f<=c||h<0&&c<=f)do{var d=f;if(f=f+h|0,Mo(t,0,e,d,j(t),a))return d}while(d!==c)}else{var _=l.qb_1,b=l.rb_1,v=l.sb_1;if(v>0&&_<=b||v<0&&b<=_)do{var m=_;if(_=_+v|0,Ya(t,0,e,m,j(t),a))return m}while(m!==b)}return-1}function $m(e){var t=0,n=j(e)-1|0,r=!1;e:for(;t<=n;){var a=r?n:t,o=qh(R(e,a));if(!r)o?t=t+1|0:r=!0;else if(o)n=n-1|0;else break e}return Zt(e,t,n+1|0)}function Em(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 l=m_([t]);a=Nm(e,l,n,r)}else{var s=Be(t);a=e.indexOf(s,n)}return a}function td(e){return j(e)-1|0}function Nm(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=zv(t),l=Be(o);return e.indexOf(l,n)}var s=_o(n,0),f=td(e);if(s<=f)do{var c=s;s=s+1|0;var h=R(e,c),d;e:{for(var _=0,b=t.length;_<b;){var v=t[_];if(_=_+1|0,Yh(v,h,r)){d=!0;break e}}d=!1}if(d)return c}while(c!==f);return-1}function Im(e,t){var n;if(e!=null&&typeof e=="string"?n=t!=null?typeof t=="string":!1:n=!1,n)return N(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,R(e,o)!==R(t,o))return!1}while(r<a);return!0}function Za(e){this.jc_1=e,this.kc_1=nl}i(Za).r1=function(){this.kc_1===nl&&(this.kc_1=At(this.jc_1)(),this.jc_1=null);var e=this.kc_1;return e==null||e!=null?e:$()};i(Za).lc=function(){return this.kc_1!==nl};i(Za).toString=function(){return this.lc()?tt(this.r1()):"Lazy value not initialized yet."};function nd(){}var nl;function qm(e){var t=e;return t instanceof vr}function Tm(e){var t;return e instanceof vr?t=e.mc_1:t=null,t}function Am(){}function vr(e){this.mc_1=e}i(vr).equals=function(e){var t;return e instanceof vr?t=N(this.mc_1,e.mc_1):t=!1,t};i(vr).hashCode=function(){return ae(this.mc_1)};i(vr).toString=function(){return"Failure("+this.mc_1.toString()+")"};function jm(e){return new vr(e)}function Pm(e){var t=e;if(t instanceof vr)throw e.mc_1}function ns(e){e=e===u?"An operation is not implemented.":e,c0(e,this),K(this,ns)}function mn(e,t){this.nc_1=e,this.oc_1=t}i(mn).toString=function(){return"("+tt(this.nc_1)+", "+tt(this.oc_1)+")"};i(mn).pc=function(){return this.nc_1};i(mn).qc=function(){return this.oc_1};i(mn).hashCode=function(){var e=this.nc_1==null?0:ae(this.nc_1);return e=_e(e,31)+(this.oc_1==null?0:ae(this.oc_1))|0,e};i(mn).equals=function(e){if(this===e)return!0;if(!(e instanceof mn))return!1;var t=e instanceof mn?e:$();return!(!N(this.nc_1,t.nc_1)||!N(this.oc_1,t.oc_1))};function Pf(e,t){return new mn(e,t)}i(dt).asJsReadonlyArrayView=ac;i(yt).p4=Mv;i(it).asJsReadonlyArrayView=ac;de=new Os;lo=null;Ka=new ah;sh=new Hi;en=new Fr;wu=new Lo;Xi=new gi;Jo=new Ja;Uh=new Bh;Jh=new qu;nl=new nd;var F=Math.imul;jt(to,"Stringify");function Pu(){return this.uc()-this.tc()|0}jt(ul,"Position",u,u,[to]);w(Ft,"Expression",u,u,[ul]);w(ue,"BinaryExpression",u,Ft);w(rl,"sam$kotlin_Comparator$0");vt(Ia);w(B,"CompareOperator",u,u,[to]);ne(Fn,"Equal",u,B);ne(Kn,"NotEqual",u,B);ne(Bn,"Start",u,B);ne(Un,"NotStart",u,B);ne(Hn,"Include",u,B);ne(Wn,"NotInclude",u,B);ne(Vn,"End",u,B);ne(Gn,"NotEnd",u,B);ne(Jn,"Less",u,B);ne(Qn,"LessEqual",u,B);ne(Yn,"More",u,B);ne(Zn,"MoreEqual",u,B);ne(Xn,"Matches",u,B);ne(er,"NotMatches",u,B);w(eo,"ConnectExpression");w(ol,"sam$kotlin_Comparator$0");vt(zu);w(cn,"ConnectOperator",u,u,[to]);ne($r,"BeforeBrother",u,cn);ne(Er,"AfterBrother",u,cn);ne(Nr,"Ancestor",u,cn);ne(Ir,"Child",u,cn);ne(qr,"Descendant",u,cn);w(En,"ConnectSegment",En);w(Tr,"ConnectWrapper");w(ut,"SelectorCheckException",u,un);w(Bt,"UnknownIdentifierException",u,ut);w(Ut,"UnknownMemberException",u,ut);w(Ht,"UnknownIdentifierMethodException",u,ut);w(Wt,"UnknownMemberMethodException",u,ut);w(ot,"MismatchParamTypeException",u,ut);w(gt,"MismatchExpressionTypeException",u,ut);w(Vt,"MismatchOperatorTypeException",u,ut);w(ht,"LogicalExpression",u,Ft);w(ll,"sam$kotlin_Comparator$0");vt(Fu);w(bi,"LogicalOperator",u,u,[to]);ne(Ar,"AndOperator",u,bi);ne(jr,"OrOperator",u,bi);vt(sl);w(_t,"MultiplatformSelector");w(wi,"MultiplatformTransform");w(Tt,"NotExpression",u,Ft);w(Gt,"PolynomialExpression",Gt,eo);w(Ue,"PositionImpl",u,u,[ul]);w(tr,"PropertySegment");w(nr,"PropertyWrapper");vt(fl);w(Br,"Selector");w(nt,"SyntaxError",u,un);za(ai,xt,u,[1]);za(oi,xt,u,[1]);za(li,xt,u,[1]);za(si,xt,u,[1]);za(ui,xt,u,[1]);w(yd,"Transform");w(rr,"TupleExpression",u,eo);w(Qt,"PrimitiveType");ne(ei,"BooleanType",u,Qt);ne(ti,"IntType",u,Qt);ne(ni,"StringType",u,Qt);w(Jt,"ObjectType",u,Qt);w(ye,"MethodInfo");w(te,"PropInfo");w(et,"TypeInfo");w(Qe,"ValueExpression",u,u,[ul]);w(St,"Variable",u,Qe);w(ze,"Identifier",u,St);w(Ne,"MemberExpression",u,St);w(Ce,"CallExpression",u,St);w(Lt,"LiteralExpression",u,Qe);w(Ct,"NullLiteral",u,Lt);w(lt,"BooleanLiteral",u,Lt);w(We,"IntLiteral",u,Lt);w(fe,"StringLiteral",u,Lt);w(Ke,"Parser");w(je,"ParserResult");ne(no,"ParserSet");w(ki,"DefaultTypeInfo");function ue(e,t,n,r,a){Ft.call(this),this.rc_1=e,this.sc_1=t,this.left=n,this.operator=r,this.right=a}i(ue).tc=function(){return this.rc_1};i(ue).uc=function(){return this.sc_1};i(ue).vc=function(){return this.left};i(ue).wc=function(){return this.operator};i(ue).xc=function(){return this.right};i(ue).yc=function(e,t){return this.operator.value.bd(e,t,this.left,this.right)};i(ue).cd=function(){return[this]};i(ue).stringify=function(){return this.left.stringify()+this.operator.stringify()+this.right.stringify()};i(ue).dd=function(){return Eo([this.left.properties,this.right.properties])};i(ue).ed=function(){return Eo([this.left.methods,this.right.methods])};i(ue).pc=function(){return this.rc_1};i(ue).qc=function(){return this.sc_1};i(ue).fd=function(){return this.left};i(ue).gd=function(){return this.operator};i(ue).hd=function(){return this.right};i(ue).id=function(e,t,n,r,a){return new ue(e,t,n,r,a)};i(ue).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.id(e,t,n,r,a)};i(ue).toString=function(){return"BinaryExpression(start="+this.rc_1+", end="+this.sc_1+", left="+D(this.left)+", operator="+this.operator.toString()+", right="+D(this.right)+")"};i(ue).hashCode=function(){var e=this.rc_1;return e=F(e,31)+this.sc_1|0,e=F(e,31)+ae(this.left)|0,e=F(e,31)+this.operator.hashCode()|0,e=F(e,31)+ae(this.right)|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.rc_1!==t.rc_1||this.sc_1!==t.sc_1||!N(this.left,t.left)||!this.operator.equals(t.operator)||!N(this.right,t.right))};function Rm(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,R(e,a)!==R(n,a))return!1}while(0<=r);return!0}function rl(e){this.jd_1=e}i(rl).b9=function(e,t){return this.jd_1(e,t)};i(rl).compare=function(e,t){return this.b9(e,t)};function Mm(){var e=ku([Gr(),rd(),Kr(),id(),Ru(),ad(),Mu(),od(),Xa(),ld(),sd(),ud(),al(),Lu()]),t=Lm,n=new rl(t),r=Us(e,n);return Rt(r)}function Lm(e,t){var n=-e.key.length|0,r=-t.key.length|0;return Yo(n,r)}function Ia(){rs=this;var e=this;e.kd_1=Ea(Mm)}i(Ia).ld=function(){var e=this.kd_1;return zm(),e.r1()};var rs;function il(){return rs==null&&new Ia,rs}function Fn(){is=this,B.call(this,"=")}i(Fn).bd=function(e,t,n,r){var a=n.od(e,t),o=r.od(e,t),l,s;return a!=null&&st(a)?s=o!=null?st(o):!1:s=!1,s?l=Rm(a,il(),o):l=N(a,o),l};i(Fn).pd=function(e,t){return!0};i(Fn).toString=function(){return"Equal"};i(Fn).hashCode=function(){return 717536815};i(Fn).equals=function(e){return this===e?!0:e instanceof Fn?(e instanceof Fn||$(),!0):!1};var is;function Gr(){return is==null&&new Fn,is}function Kn(){as=this,B.call(this,"!=")}i(Kn).bd=function(e,t,n,r){return!Gr().bd(e,t,n,r)};i(Kn).pd=function(e,t){return!0};i(Kn).toString=function(){return"NotEqual"};i(Kn).hashCode=function(){return 1058184006};i(Kn).equals=function(e){return this===e?!0:e instanceof Kn?(e instanceof Kn||$(),!0):!1};var as;function rd(){return as==null&&new Kn,as}function Bn(){os=this,B.call(this,"^=")}i(Bn).bd=function(e,t,n,r){var a=n.od(e,t),o=r.od(e,t),l,s;return a!=null&&st(a)?s=o!=null?st(o):!1:s=!1,s?l=Au(a,o):l=!1,l};i(Bn).pd=function(e,t){var n,r;if(e instanceof fe?r=!0:r=e instanceof St,r){var a;t instanceof fe?a=!0:a=t instanceof St,n=a}else n=!1;return n};i(Bn).toString=function(){return"Start"};i(Bn).hashCode=function(){return 730536797};i(Bn).equals=function(e){return this===e?!0:e instanceof Bn?(e instanceof Bn||$(),!0):!1};var os;function Kr(){return os==null&&new Bn,os}function Un(){ls=this,B.call(this,"!^=")}i(Un).bd=function(e,t,n,r){var a=n.od(e,t),o=r.od(e,t),l,s;return a!=null&&st(a)?s=o!=null?st(o):!1:s=!1,s?l=!Au(a,o):l=!1,l};i(Un).pd=function(e,t){return Kr().pd(e,t)};i(Un).toString=function(){return"NotStart"};i(Un).hashCode=function(){return 1071183988};i(Un).equals=function(e){return this===e?!0:e instanceof Un?(e instanceof Un||$(),!0):!1};var ls;function id(){return ls==null&&new Un,ls}function Hn(){ss=this,B.call(this,"*=")}i(Hn).bd=function(e,t,n,r){var a=n.od(e,t),o=r.od(e,t),l,s;return a!=null&&st(a)?s=o!=null?st(o):!1:s=!1,s?l=ju(a,o):l=!1,l};i(Hn).pd=function(e,t){return Kr().pd(e,t)};i(Hn).toString=function(){return"Include"};i(Hn).hashCode=function(){return 1510988003};i(Hn).equals=function(e){return this===e?!0:e instanceof Hn?(e instanceof Hn||$(),!0):!1};var ss;function Ru(){return ss==null&&new Hn,ss}function Wn(){us=this,B.call(this,"!*=")}i(Wn).bd=function(e,t,n,r){var a=n.od(e,t),o=r.od(e,t),l,s;return a!=null&&st(a)?s=o!=null?st(o):!1:s=!1,s?l=!ju(a,o):l=!1,l};i(Wn).pd=function(e,t){return Kr().pd(e,t)};i(Wn).toString=function(){return"NotInclude"};i(Wn).hashCode=function(){return-1839543238};i(Wn).equals=function(e){return this===e?!0:e instanceof Wn?(e instanceof Wn||$(),!0):!1};var us;function ad(){return us==null&&new Wn,us}function Vn(){fs=this,B.call(this,"$=")}i(Vn).bd=function(e,t,n,r){var a=n.od(e,t),o=r.od(e,t),l,s;return a!=null&&st(a)?s=o!=null?st(o):!1:s=!1,s?l=el(a,o):l=!1,l};i(Vn).pd=function(e,t){return Kr().pd(e,t)};i(Vn).toString=function(){return"End"};i(Vn).hashCode=function(){return 1234264726};i(Vn).equals=function(e){return this===e?!0:e instanceof Vn?(e instanceof Vn||$(),!0):!1};var fs;function Mu(){return fs==null&&new Vn,fs}function Gn(){cs=this,B.call(this,"!$=")}i(Gn).bd=function(e,t,n,r){var a=n.od(e,t),o=r.od(e,t),l,s;return a!=null&&st(a)?s=o!=null?st(o):!1:s=!1,s?l=!el(a,o):l=!1,l};i(Gn).pd=function(e,t){return Kr().pd(e,t)};i(Gn).toString=function(){return"NotEnd"};i(Gn).hashCode=function(){return 1024563565};i(Gn).equals=function(e){return this===e?!0:e instanceof Gn?(e instanceof Gn||$(),!0):!1};var cs;function od(){return cs==null&&new Gn,cs}function Jn(){hs=this,B.call(this,"<")}i(Jn).bd=function(e,t,n,r){var a=n.od(e,t),o=r.od(e,t),l,s;return a!=null&&typeof a=="number"?s=o!=null?typeof o=="number":!1:s=!1,s?l=a<o:l=!1,l};i(Jn).pd=function(e,t){var n,r;if(e instanceof St?r=!0:r=e instanceof We,r){var a;t instanceof We?a=!0:a=t instanceof St,n=a}else n=!1;return n};i(Jn).toString=function(){return"Less"};i(Jn).hashCode=function(){return-392298690};i(Jn).equals=function(e){return this===e?!0:e instanceof Jn?(e instanceof Jn||$(),!0):!1};var hs;function Xa(){return hs==null&&new Jn,hs}function Qn(){ds=this,B.call(this,"<=")}i(Qn).bd=function(e,t,n,r){var a=n.od(e,t),o=r.od(e,t),l,s;return a!=null&&typeof a=="number"?s=o!=null?typeof o=="number":!1:s=!1,s?l=a<=o:l=!1,l};i(Qn).pd=function(e,t){return Xa().pd(e,t)};i(Qn).toString=function(){return"LessEqual"};i(Qn).hashCode=function(){return-2095624554};i(Qn).equals=function(e){return this===e?!0:e instanceof Qn?(e instanceof Qn||$(),!0):!1};var ds;function ld(){return ds==null&&new Qn,ds}function Yn(){vs=this,B.call(this,">")}i(Yn).bd=function(e,t,n,r){var a=n.od(e,t),o=r.od(e,t),l,s;return a!=null&&typeof a=="number"?s=o!=null?typeof o=="number":!1:s=!1,s?l=a>o:l=!1,l};i(Yn).pd=function(e,t){return Xa().pd(e,t)};i(Yn).toString=function(){return"More"};i(Yn).hashCode=function(){return-392259334};i(Yn).equals=function(e){return this===e?!0:e instanceof Yn?(e instanceof Yn||$(),!0):!1};var vs;function sd(){return vs==null&&new Yn,vs}function Zn(){_s=this,B.call(this,">=")}i(Zn).bd=function(e,t,n,r){var a=n.od(e,t),o=r.od(e,t),l,s;return a!=null&&typeof a=="number"?s=o!=null?typeof o=="number":!1:s=!1,s?l=a>=o:l=!1,l};i(Zn).pd=function(e,t){return Xa().pd(e,t)};i(Zn).toString=function(){return"MoreEqual"};i(Zn).hashCode=function(){return-648189350};i(Zn).equals=function(e){return this===e?!0:e instanceof Zn?(e instanceof Zn||$(),!0):!1};var _s;function ud(){return _s==null&&new Zn,_s}function Xn(){ps=this,B.call(this,"~=")}i(Xn).bd=function(e,t,n,r){var a=n.od(e,t),o,l;return a!=null&&st(a)?l=r instanceof fe:l=!1,l?o=r.yd_1(a):o=!1,o};i(Xn).pd=function(e,t){var n;if(e instanceof St){var r;t instanceof fe?r=t.xd_1!=null:r=!1,n=r}else n=!1;return n};i(Xn).toString=function(){return"Matches"};i(Xn).hashCode=function(){return 409275758};i(Xn).equals=function(e){return this===e?!0:e instanceof Xn?(e instanceof Xn||$(),!0):!1};var ps;function al(){return ps==null&&new Xn,ps}function er(){ms=this,B.call(this,"!~=")}i(er).bd=function(e,t,n,r){var a=n.od(e,t),o,l;return a!=null&&st(a)?l=r instanceof fe:l=!1,l?o=!r.yd_1(a):o=!1,o};i(er).pd=function(e,t){return al().pd(e,t)};i(er).toString=function(){return"NotMatches"};i(er).hashCode=function(){return 1353711813};i(er).equals=function(e){return this===e?!0:e instanceof er?(e instanceof er||$(),!0):!1};var ms;function Lu(){return ms==null&&new er,ms}function B(e){il(),this.key=e}i(B).q1=function(){return this.key};i(B).stringify=function(){return this.key};function zm(){return Oa("allSubClasses",1,Ro,function(e){return e.allSubClasses},null)}function eo(){}function ol(e){this.be_1=e}i(ol).b9=function(e,t){return this.be_1(e,t)};i(ol).compare=function(e,t){return this.b9(e,t)};function Om(){var e=ku([fd(),cd(),Du(),Fm(),Km()]),t=Dm,n=new ol(t);return Us(e,n)}function Dm(e,t){var n=-e.ce_1.length|0,r=-t.ce_1.length|0;return Yo(n,r)}function zu(){gs=this;var e=this;e.de_1=Ea(Om)}i(zu).ld=function(){var e=this.de_1;return Bm(),e.r1()};var gs;function Ou(){return gs==null&&new zu,gs}function $r(){ys=this,cn.call(this,"+")}i($r).fe=function(e,t,n){return t.oe_1(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 ys;function fd(){return ys==null&&new $r,ys}function Er(){bs=this,cn.call(this,"-")}i(Er).fe=function(e,t,n){return t.pe_1(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 bs;function cd(){return bs==null&&new Er,bs}function Nr(){ws=this,cn.call(this,">")}i(Nr).fe=function(e,t,n){return t.ne_1(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 ws;function Du(){return ws==null&&new Nr,ws}function Ir(){ks=this,cn.call(this,"<")}i(Ir).fe=function(e,t,n){return t.me_1(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 ks;function Fm(){return ks==null&&new Ir,ks}function qr(){Cs=this,cn.call(this,"<<")}i(qr).fe=function(e,t,n){return t.qe_1(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 Cs;function Km(){return Cs==null&&new qr,Cs}function cn(e){Ou(),this.ce_1=e}i(cn).stringify=function(){return this.ce_1};function Bm(){return Oa("allSubClasses",1,Ro,function(e){return e.ld()},null)}function En(e,t){e=e===u?Du():e,t=t===u?new Gt:t,this.ze_1=e,this.af_1=t}i(En).toString=function(){var e,t,n;if(N(this.ze_1,Du())){var r=this.af_1;n=r instanceof Gt}else n=!1;return n?t=this.af_1.bf_1===1:t=!1,t?e=this.af_1.cf_1===0:e=!1,e?"":this.ze_1.stringify()+D(this.af_1)};i(En).hf=function(e,t){return this.ze_1.fe(e,t,this.af_1)};i(En).hashCode=function(){var e=ae(this.ze_1);return e=F(e,31)+ae(this.af_1)|0,e};i(En).equals=function(e){if(this===e)return!0;if(!(e instanceof En))return!1;var t=e instanceof En?e:$();return!(!N(this.ze_1,t.ze_1)||!N(this.af_1,t.af_1))};function Tr(e,t){this.if_1=e,this.jf_1=t}i(Tr).toString=function(){var e=this.jf_1.toString()+" "+this.if_1.toString();return D($m(st(e)?e:$()))};i(Tr).kf=function(e,t,n){for(var r=this.if_1.hf(e,t).h();r.i();){var a=r.j();e:{if(a==null)break e;var o=this.jf_1.nf(a,t,n);if(o!=null)return o}}return null};i(Tr).hashCode=function(){var e=this.if_1.hashCode();return e=F(e,31)+this.jf_1.hashCode()|0,e};i(Tr).equals=function(e){if(this===e)return!0;if(!(e instanceof Tr))return!1;var t=e instanceof Tr?e:$();return!(!this.if_1.equals(t.if_1)||!this.jf_1.equals(t.jf_1))};function ut(e){qo(e,this),K(this,ut),this.of_1=e}i(ut).i7=function(){return this.of_1};function Bt(e){ut.call(this,"Unknown Identifier: "+e.tf_1),K(this,Bt),this.value=e}i(Bt).r1=function(){return this.value};i(Bt).pc=function(){return this.value};i(Bt).wf=function(e){return new Bt(e)};i(Bt).copy=function(e,t){return e=e===u?this.value:e,this.wf(e)};i(Bt).toString=function(){return"UnknownIdentifierException(value="+this.value.toString()+")"};i(Bt).hashCode=function(){return this.value.hashCode()};i(Bt).equals=function(e){if(this===e)return!0;if(!(e instanceof Bt))return!1;var t=e instanceof Bt?e:$();return!!this.value.equals(t.value)};function Ut(e){ut.call(this,"Unknown Member: "+e.property),K(this,Ut),this.value=e}i(Ut).r1=function(){return this.value};i(Ut).pc=function(){return this.value};i(Ut).dg=function(e){return new Ut(e)};i(Ut).copy=function(e,t){return e=e===u?this.value:e,this.dg(e)};i(Ut).toString=function(){return"UnknownMemberException(value="+this.value.toString()+")"};i(Ut).hashCode=function(){return this.value.hashCode()};i(Ut).equals=function(e){if(this===e)return!0;if(!(e instanceof Ut))return!1;var t=e instanceof Ut?e:$();return!!this.value.equals(t.value)};function Ht(e){ut.call(this,"Unknown Identifier Method: "+e.tf_1),K(this,Ht),this.value=e}i(Ht).r1=function(){return this.value};i(Ht).pc=function(){return this.value};i(Ht).wf=function(e){return new Ht(e)};i(Ht).copy=function(e,t){return e=e===u?this.value:e,this.wf(e)};i(Ht).toString=function(){return"UnknownIdentifierMethodException(value="+this.value.toString()+")"};i(Ht).hashCode=function(){return this.value.hashCode()};i(Ht).equals=function(e){if(this===e)return!0;if(!(e instanceof Ht))return!1;var t=e instanceof Ht?e:$();return!!this.value.equals(t.value)};function Wt(e){ut.call(this,"Unknown Member Method: "+e.property),K(this,Wt),this.value=e}i(Wt).r1=function(){return this.value};i(Wt).pc=function(){return this.value};i(Wt).dg=function(e){return new Wt(e)};i(Wt).copy=function(e,t){return e=e===u?this.value:e,this.dg(e)};i(Wt).toString=function(){return"UnknownMemberMethodException(value="+this.value.toString()+")"};i(Wt).hashCode=function(){return this.value.hashCode()};i(Wt).equals=function(e){if(this===e)return!0;if(!(e instanceof Wt))return!1;var t=e instanceof Wt?e:$();return!!this.value.equals(t.value)};function ot(e,t,n){ut.call(this,"Mismatch Param Type: "+tt(t.value)+" should be "+n.key),K(this,ot),this.call=e,this.argument=t,this.type=n}i(ot).hg=function(){return this.call};i(ot).ig=function(){return this.argument};i(ot).jg=function(){return this.type};i(ot).pc=function(){return this.call};i(ot).qc=function(){return this.argument};i(ot).fd=function(){return this.type};i(ot).kg=function(e,t,n){return new ot(e,t,n)};i(ot).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.kg(e,t,n)};i(ot).toString=function(){return"MismatchParamTypeException(call="+this.call.toString()+", argument="+D(this.argument)+", type="+D(this.type)+")"};i(ot).hashCode=function(){var e=this.call.hashCode();return e=F(e,31)+ae(this.argument)|0,e=F(e,31)+ae(this.type)|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.call.equals(t.call)||!N(this.argument,t.argument)||!N(this.type,t.type))};function gt(e,t,n){ut.call(this,"Mismatch Expression Type: "+e.stringify()),K(this,gt),this.exception=e,this.leftType=t,this.rightType=n}i(gt).mg=function(){return this.exception};i(gt).ng=function(){return this.leftType};i(gt).og=function(){return this.rightType};i(gt).pc=function(){return this.exception};i(gt).qc=function(){return this.leftType};i(gt).fd=function(){return this.rightType};i(gt).pg=function(e,t,n){return new gt(e,t,n)};i(gt).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.pg(e,t,n)};i(gt).toString=function(){return"MismatchExpressionTypeException(exception="+this.exception.toString()+", leftType="+D(this.leftType)+", rightType="+D(this.rightType)+")"};i(gt).hashCode=function(){var e=this.exception.hashCode();return e=F(e,31)+ae(this.leftType)|0,e=F(e,31)+ae(this.rightType)|0,e};i(gt).equals=function(e){if(this===e)return!0;if(!(e instanceof gt))return!1;var t=e instanceof gt?e:$();return!(!this.exception.equals(t.exception)||!N(this.leftType,t.leftType)||!N(this.rightType,t.rightType))};function Vt(e){ut.call(this,"Mismatch Operator Type: "+e.stringify()),K(this,Vt),this.exception=e}i(Vt).mg=function(){return this.exception};i(Vt).pc=function(){return this.exception};i(Vt).rg=function(e){return new Vt(e)};i(Vt).copy=function(e,t){return e=e===u?this.exception:e,this.rg(e)};i(Vt).toString=function(){return"MismatchOperatorTypeException(exception="+this.exception.toString()+")"};i(Vt).hashCode=function(){return this.exception.hashCode()};i(Vt).equals=function(e){if(this===e)return!0;if(!(e instanceof Vt))return!1;var t=e instanceof Vt?e:$();return!!this.exception.equals(t.exception)};function Ft(){}function ht(e,t,n,r,a){Ft.call(this),this.sg_1=e,this.tg_1=t,this.ug_1=n,this.vg_1=r,this.wg_1=a}i(ht).tc=function(){return this.sg_1};i(ht).uc=function(){return this.tg_1};i(ht).yc=function(e,t){return this.vg_1.value.yg(e,t,this.ug_1,this.wg_1)};i(ht).cd=function(){var e=this.ug_1.cd(),t=this.wg_1.cd();return e.concat(t)};i(ht).stringify=function(){var e,t,n=this.ug_1;n instanceof ht?t=!N(this.ug_1.vg_1.value,this.vg_1.value):t=!1,t?e="("+this.ug_1.stringify()+")":e=this.ug_1.stringify();var r=e,a,o,l=this.wg_1;l instanceof ht?o=!N(this.wg_1.vg_1.value,this.vg_1.value):o=!1,o?a="("+this.wg_1.stringify()+")":a=this.wg_1.stringify();var s=a;return r+" "+this.vg_1.stringify()+" "+s};i(ht).zg=function(e,t,n,r,a){return new ht(e,t,n,r,a)};i(ht).ah=function(e,t,n,r,a,o){return e=e===u?this.sg_1:e,t=t===u?this.tg_1:t,n=n===u?this.ug_1:n,r=r===u?this.vg_1:r,a=a===u?this.wg_1:a,o===u?this.zg(e,t,n,r,a):o.zg.call(this,e,t,n,r,a)};i(ht).toString=function(){return"LogicalExpression(start="+this.sg_1+", end="+this.tg_1+", left="+D(this.ug_1)+", operator="+this.vg_1.toString()+", right="+D(this.wg_1)+")"};i(ht).hashCode=function(){var e=this.sg_1;return e=F(e,31)+this.tg_1|0,e=F(e,31)+ae(this.ug_1)|0,e=F(e,31)+this.vg_1.hashCode()|0,e=F(e,31)+ae(this.wg_1)|0,e};i(ht).equals=function(e){if(this===e)return!0;if(!(e instanceof ht))return!1;var t=e instanceof ht?e:$();return!(this.sg_1!==t.sg_1||this.tg_1!==t.tg_1||!N(this.ug_1,t.ug_1)||!this.vg_1.equals(t.vg_1)||!N(this.wg_1,t.wg_1))};function ll(e){this.bh_1=e}i(ll).b9=function(e,t){return this.bh_1(e,t)};i(ll).compare=function(e,t){return this.b9(e,t)};function Um(){var e=ku([dd(),Wm()]),t=Hm,n=new ll(t);return Us(e,n)}function Hm(e,t){var n=-e.xg_1.length|0,r=-t.xg_1.length|0;return Yo(n,r)}function Fu(){xs=this;var e=this;e.ch_1=Ea(Um)}i(Fu).ld=function(){var e=this.ch_1;return Vm(),e.r1()};var xs;function hd(){return xs==null&&new Fu,xs}function Ar(){Ss=this,bi.call(this,"&&")}i(Ar).yg=function(e,t,n,r){return n.yc(e,t)&&r.yc(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 Ss;function dd(){return Ss==null&&new Ar,Ss}function jr(){$s=this,bi.call(this,"||")}i(jr).yg=function(e,t,n,r){return n.yc(e,t)||r.yc(e,t)};i(jr).toString=function(){return"OrOperator"};i(jr).hashCode=function(){return-302302232};i(jr).equals=function(e){return this===e?!0:e instanceof jr?(e instanceof jr||$(),!0):!1};var $s;function Wm(){return $s==null&&new jr,$s}function bi(e){hd(),this.xg_1=e}i(bi).stringify=function(){return this.xg_1};function Vm(){return Oa("allSubClasses",1,Ro,function(e){return e.ld()},null)}function sl(){}i(sl).parse=function(e){return new _t(Ku.fh(e))};i(sl).parseOrNull=function(e){var t=Ku.gh(e),n;return t==null?n=null:n=new _t(t),n};var vd;function Gm(){return vd}function _t(e){this.hh_1=e,this.tracks=this.hh_1.kh_1,this.trackIndex=this.hh_1.lh_1,this.connectKeys=this.hh_1.rh_1,this.qfIdValue=this.hh_1.mh_1,this.qfVidValue=this.hh_1.nh_1,this.qfTextValue=this.hh_1.oh_1,this.canQf=this.hh_1.ph_1,this.isMatchRoot=this.hh_1.qh_1,this.binaryExpressions=this.hh_1.sh_1}i(_t).uh=function(){return this.hh_1};i(_t).vh=function(){return this.tracks};i(_t).wh=function(){return this.trackIndex};i(_t).xh=function(){return this.connectKeys};i(_t).yh=function(){return this.qfIdValue};i(_t).zh=function(){return this.qfVidValue};i(_t).ai=function(){return this.qfTextValue};i(_t).bi=function(){return this.canQf};i(_t).ci=function(){return this.isMatchRoot};i(_t).cd=function(){return this.binaryExpressions};i(_t).checkType=function(e){return this.hh_1.di(e)};i(_t).match=function(e,t){return this.hh_1.fi(e,t.ei_1)};i(_t).matchTrack=function(e,t){var n=this.hh_1.gi(e,t.ei_1),r;n==null?r=null:r=Rt(n);var a=r;return a==null||_r(a)?a:$()};i(_t).toString=function(){return this.hh_1.toString()};function Jm(e){return function(t){return Lv(e(t))}}function Qm(e){return function(t,n){var r=fc(e.ei_1.re_1(t,n.hh_1)),a=Rt(r);return _r(a)?a:$()}}function Ym(e){return function(t,n){return ko(e.ei_1.re_1(t,n.hh_1))}}function Zm(e){var t=Rt(e);return _r(t)?t:$()}function Xm(e){return function(t,n){var r=e.ei_1.te_1(t,n.hh_1),a=fc(Zv(r,Zm)),o=Rt(a);return _r(o)?o:$()}}function eg(e){return function(t,n){var r=ko(e.ei_1.te_1(t,n.hh_1)),a;r==null?a=null:a=Rt(r);var o=a;return o==null||_r(o)?o:$()}}function wi(e,t,n,r,a){var o=this;o.ei_1=new yd(e,t,n,Jm(r),a);var l=this;l.querySelectorAll=Qm(this);var s=this;s.querySelector=Ym(this);var f=this;f.querySelectorTrackAll=Xm(this);var c=this;c.querySelectorTrack=eg(this)}i(wi).hi=function(){return this.ei_1};i(wi).ii=function(){return this.querySelectorAll};i(wi).ji=function(){return this.querySelector};i(wi).ki=function(){return this.querySelectorTrackAll};i(wi).li=function(){return this.querySelectorTrack};function Tt(e,t){Ft.call(this),this.mi_1=e,this.ni_1=t}i(Tt).tc=function(){return this.mi_1};i(Tt).uc=function(){return this.ni_1.uc()};i(Tt).yc=function(e,t){return!this.ni_1.yc(e,t)};i(Tt).cd=function(){return this.ni_1.cd()};i(Tt).stringify=function(){return"!("+this.ni_1.stringify()+")"};i(Tt).oi=function(e,t){return new Tt(e,t)};i(Tt).pi=function(e,t,n){return e=e===u?this.mi_1:e,t=t===u?this.ni_1:t,n===u?this.oi(e,t):n.oi.call(this,e,t)};i(Tt).toString=function(){return"NotExpression(start="+this.mi_1+", expression="+D(this.ni_1)+")"};i(Tt).hashCode=function(){var e=this.mi_1;return e=F(e,31)+ae(this.ni_1)|0,e};i(Tt).equals=function(e){if(this===e)return!0;if(!(e instanceof Tt))return!1;var t=e instanceof Tt?e:$();return!(this.mi_1!==t.mi_1||!N(this.ni_1,t.ni_1))};function Cn(e){var t="invalid PolynomialExpression: a="+e.bf_1+", b="+e.cf_1;throw Pr(D(t))}function tg(e){return function(t){return F(e.bf_1,t)+e.cf_1|0}}function ng(e){return function(t){return F(e.bf_1,t)+e.cf_1|0}}function rg(e,t){return function(n){return F(e.bf_1,t+n|0)+e.cf_1|0}}function ig(e){return function(t){return t!==0&&Cn(e),e.cf_1}}function ag(e,t){return function(n){return F(e.bf_1,t-n|0)+e.cf_1|0}}function Gt(e,t){e=e===u?0:e,t=t===u?1:t,eo.call(this),this.bf_1=e,this.cf_1=t;var n=this,r;if(this.bf_1>0){var a;if(this.cf_1>0)a=this.bf_1+this.cf_1|0;else if(this.cf_1===0)a=this.bf_1;else{var o=((-this.cf_1|0)/this.bf_1|0)+1|0;a=F(this.bf_1,o)+this.cf_1|0}r=a}else{var l;if(this.bf_1===0){var s;this.cf_1>0?s=this.cf_1:Cn(this),l=s}else{var f;if(this.cf_1>0){var c;if(this.cf_1<=(-this.bf_1|0))Cn(this);else{var h=((-this.cf_1|0)/this.bf_1|0)-(this.cf_1%this.bf_1|0?0:1)|0;c=F(this.bf_1,h)+this.cf_1|0}f=c}else Cn(this);l=f}r=l-1|0}n.df_1=r;var d=this,_;if(this.bf_1>0)_=null;else{var b;if(this.bf_1===0){var v;this.cf_1>0?v=this.cf_1:Cn(this),b=v}else{var m;if(this.cf_1>0){var g;this.cf_1<=(-this.bf_1|0)?Cn(this):g=this.bf_1+this.cf_1|0,m=g}else Cn(this);b=m}_=b-1|0}d.ef_1=_,this.ff_1=this.df_1===this.ef_1;var p=this,C;if(this.bf_1>0){var k;if(this.cf_1>0)k=tg(this);else if(this.cf_1===0)k=ng(this);else{var S=((-this.cf_1|0)/this.bf_1|0)+1|0;k=rg(this,S)}C=k}else if(this.bf_1===0){var I;this.cf_1>0?I=ig(this):Cn(this),C=I}else{var z;if(this.cf_1>0){var Q;if(this.cf_1<=(-this.bf_1|0))Cn(this);else{var V=((-this.cf_1|0)/this.bf_1|0)-(this.cf_1%this.bf_1|0?0:1)|0;Q=ag(this,V)}z=Q}else Cn(this);C=z}p.gf_1=C}i(Gt).toString=function(){if(this.bf_1>0&&this.cf_1>0)return this.bf_1===1?"(n+"+this.cf_1+")":"("+this.bf_1+"n+"+this.cf_1+")";if(this.bf_1<0&&this.cf_1>0)return this.bf_1===-1?"("+this.cf_1+"-n)":"("+this.cf_1+this.bf_1+"n)";if(this.cf_1===0){if(this.bf_1===1)return"n";var e;return this.bf_1>0?e=""+this.bf_1+"n":e="("+this.bf_1+"n)",e}if(this.bf_1===0){if(this.cf_1===1)return"";var t;return this.cf_1>0?t=this.cf_1.toString():t="("+this.cf_1+")",t}var n=this.cf_1>=0?"+":"";return"("+this.bf_1+"n"+n+this.cf_1+")"};i(Gt).zd=function(){return this.ef_1};i(Gt).ae=function(e){if(this.ff_1)return e===this.df_1;var t=(e+1|0)-this.cf_1|0;return(t%this.bf_1|0)===0&&(t/this.bf_1|0)>=1};i(Gt).hashCode=function(){var e=this.bf_1;return e=F(e,31)+this.cf_1|0,e};i(Gt).equals=function(e){if(this===e)return!0;if(!(e instanceof Gt))return!1;var t=e instanceof Gt?e:$();return!(this.bf_1!==t.bf_1||this.cf_1!==t.cf_1)};function to(){}function Ue(e,t,n){this.zc_1=e,this.ad_1=t,this.value=n}i(Ue).tc=function(){return this.zc_1};i(Ue).uc=function(){return this.ad_1};i(Ue).r1=function(){return this.value};i(Ue).stringify=function(){return this.value.stringify()};i(Ue).pc=function(){return this.zc_1};i(Ue).qc=function(){return this.ad_1};i(Ue).fd=function(){return this.value};i(Ue).qi=function(e,t,n){return new Ue(e,t,n)};i(Ue).copy=function(e,t,n,r){return e=e===u?this.zc_1:e,t=t===u?this.ad_1:t,n=n===u?this.value:n,this.qi(e,t,n)};i(Ue).toString=function(){return"PositionImpl(start="+this.zc_1+", end="+this.ad_1+", value="+D(this.value)+")"};i(Ue).hashCode=function(){var e=this.zc_1;return e=F(e,31)+this.ad_1|0,e=F(e,31)+ae(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.zc_1!==t.zc_1||this.ad_1!==t.ad_1||!N(this.value,t.value))};function ul(){}function og(e,t,n){if(e.ui_1)return!0;var r=n.ie_1(t),a;if(r==null)return!1;a=r;var o=a;return j(o)===e.si_1.length?X0(o,e.si_1):j(o)>e.si_1.length?R(o,(j(o)-e.si_1.length|0)-1|0)===46&&el(o,e.si_1):!1}function lg(e){return"["+e.stringify()+"]"}function tr(e,t,n){this.ri_1=e,this.si_1=t,this.ti_1=n,this.ui_1=Sm(this.si_1)||this.si_1==="*"}i(tr).cd=function(){for(var e=this.ti_1,t=rt(),n=e.h();n.i();){var r=n.j(),a=Ds(r.cd());Oo(t,a)}return Rt(t)};i(tr).toString=function(){var e=this.ri_1?"@":"",t=e+this.si_1;return t+pn(this.ti_1,"",u,u,u,u,lg)};i(tr).vi=function(e,t){var n;if(og(this,e,t)){var r;e:{var a=this.ti_1,o;if(re(a,Ae)?o=a.k():o=!1,o){r=!0;break e}for(var l=a.h();l.i();){var s=l.j();if(!s.yc(e,t)){r=!1;break e}}r=!0}n=r}else n=!1;return n};i(tr).hashCode=function(){var e=Qs(this.ri_1);return e=F(e,31)+on(this.si_1)|0,e=F(e,31)+ae(this.ti_1)|0,e};i(tr).equals=function(e){if(this===e)return!0;if(!(e instanceof tr))return!1;var t=e instanceof tr?e:$();return!(this.ri_1!==t.ri_1||this.si_1!==t.si_1||!N(this.ti_1,t.ti_1))};function nr(e,t){t=t===u?null:t,this.lf_1=e,this.mf_1=t}i(nr).toString=function(){var e;return this.mf_1!=null?e=this.mf_1.toString()+" ":e="",e+this.lf_1.toString()};i(nr).nf=function(e,t,n){if(!this.lf_1.vi(e,t))return null;if(n.f(e),this.mf_1==null)return n;var r=this.mf_1.kf(e,t,n);return r==null&&Cu(n),r};i(nr).hashCode=function(){var e=this.lf_1.hashCode();return e=F(e,31)+(this.mf_1==null?0:this.mf_1.hashCode())|0,e};i(nr).equals=function(e){if(this===e)return!0;if(!(e instanceof nr))return!1;var t=e instanceof nr?e:$();return!(!this.lf_1.equals(t.lf_1)||!N(this.mf_1,t.mf_1))};function _d(){na();var e=pd;return fg(),e.r1()}var pd;function md(){na();var e=gd;return cg(),e.r1()}var gd;function fl(){}i(fl).fh=function(e){return bd(e)};i(fl).gh=function(e){var t;try{t=bd(e)}catch(r){var n;if(r instanceof un)n=null;else throw r;t=n}return t};var Ku;function Br(e,t){this.ih_1=e,this.jh_1=t;var n=this,r=Rh([this.jh_1]);e:for(;;){var a=Oi(r).mf_1,o=a==null?null:a.jf_1,l;if(o==null)break e;l=o,r.f(l)}for(var s=In(bo(r,10)),f=r.h();f.i();){var c=f.j(),h=c.lf_1.ri_1;s.f(h)}n.kh_1=Rt(s);var d=this,_;e:{var b=this.kh_1,v=0,m=b.length-1|0;if(v<=m)do{var g=v;if(v=v+1|0,b[g]){_=g;break e}}while(v<=m);_=-1}var p=_;d.lh_1=p<0?0:p;var C=this,k=_a(this.jh_1.lf_1.ti_1),S,I,z,Q;if(k instanceof ue?Q=N(k.left.value,"id"):Q=!1,Q?z=N(k.operator.value,Gr()):z=!1,z){var V=k.right;I=V instanceof fe}else I=!1;I?S=k.right.wd_1:S=null,C.mh_1=S;var ie=this,W=_a(this.jh_1.lf_1.ti_1),qe,pe,we,oe;if(W instanceof ue?oe=N(W.left.value,"vid"):oe=!1,oe?we=N(W.operator.value,Gr()):we=!1,we){var ve=W.right;pe=ve instanceof fe}else pe=!1;pe?qe=W.right.wd_1:qe=null,ie.nh_1=qe;var Oe=this,Re=_a(this.jh_1.lf_1.ti_1),me,Je,at,$t;if(Re instanceof ue?$t=N(Re.left.value,"text"):$t=!1,$t?at=N(Re.operator.value,Gr())||N(Re.operator.value,Kr())||N(Re.operator.value,Ru())||N(Re.operator.value,Mu()):at=!1,at){var bn=Re.right;Je=bn instanceof fe}else Je=!1;Je?me=Re.right.wd_1:me=null,Oe.oh_1=me,this.ph_1=this.mh_1!=null||this.nh_1!=null||this.oh_1!=null;var A=this,Y=_a(this.jh_1.lf_1.ti_1),he,Se,ft;Y instanceof ue?ft=N(Y.left.value,"depth"):ft=!1,ft?Se=N(Y.operator.value,Gr()):Se=!1,Se?he=N(Y.right.value,0):he=!1,A.qh_1=he;for(var Ci=this,Rn=this.jh_1.mf_1,Ur=rt();Rn!=null;){var hl=Rn;Ur.f(hl.if_1.ze_1.ce_1),Rn=Rn.jf_1.mf_1}Ci.rh_1=Rt(Ur);for(var ra=this,mr=this.jh_1,xi=rt();mr!=null;){var Hr=mr.lf_1;hm(xi,Hr.cd());var ia=mr.mf_1;mr=ia==null?null:ia.jf_1}var gr=Hv(xi);ra.sh_1=Rt(gr);var wn=this,yr;e:{if(va(this.rh_1,fd().ce_1)){yr=!0;break e}if(va(this.rh_1,cd().ce_1)){yr=!0;break e}for(var ro=this.sh_1,Mn=0,dl=ro.length;Mn<dl;){var Et=ro[Mn];Mn=Mn+1|0;var kn;t:{for(var aa=Et.properties,Si=0,oa=aa.length;Si<oa;){var vl=aa[Si];if(Si=Si+1|0,va(_d(),vl)){kn=!0;break t}}kn=!1}if(kn){yr=!0;break e}var la;t:{for(var io=Et.methods,$i=0,_l=io.length;$i<_l;){var pl=io[$i];if($i=$i+1|0,va(md(),pl)){la=!0;break t}}la=!1}if(la){yr=!0;break e}}yr=!1}wn.th_1=yr}i(Br).toString=function(){return this.jh_1.toString()};i(Br).wi=function(e,t,n){var r=this.nf(e,t,n),a;if(r==null)return null;a=r;var o=a;return o.l(this.lh_1)};i(Br).fi=function(e,t,n,r){return n=n===u?In(this.kh_1.length):n,r===u?this.wi(e,t,n):r.wi.call(this,e,t,n)};i(Br).nf=function(e,t,n){return this.jh_1.nf(e,t,n)};i(Br).gi=function(e,t,n,r){return n=n===u?In(this.kh_1.length):n,r===u?this.nf(e,t,n):r.nf.call(this,e,t,n)};i(Br).di=function(e){try{for(var t=this.jh_1.lf_1.cd(),n=0,r=t.length;n<r;){var a=t[n];if(n=n+1|0,!a.operator.value.pd(a.left,a.right))throw new Vt(a);var o=Rf(a.left,e),l=Rf(a.right,e);if(o!=null&&l!=null&&!N(o,l))throw new gt(a,o,l)}}catch(f){if(f instanceof ut){var s=f;return s}else throw f}return null};function Rf(e,t){na();var n;return e instanceof Ct?n=null:e instanceof lt?n=qa():e instanceof We?n=Ta():e instanceof fe?n=Aa():e instanceof St?n=uo(e,t).type:xr(),n}function uo(e,t){na();var n;if(e instanceof Ce){var r=e.callee,a;if(r instanceof Ce)throw He("Unsupported nested call");if(r instanceof ze){var o=t.methods,l;e:{for(var s=0,f=o.length;s<f;){var c=o[s];if(s=s+1|0,c.name===e.callee.tf_1&&c.params.length===e.arguments.m()){l=c;break e}}l=null}var h=l,d;if(h==null)throw new Ht(e.callee);d=h,a=d}else if(r instanceof Ne){var _=uo(e.callee.object0,t).methods,b;e:{for(var v=0,m=_.length;v<m;){var g=_[v];if(v=v+1|0,g.name===e.callee.property&&g.params.length===e.arguments.m()){b=g;break e}}b=null}var p=b,C;if(p==null)throw new Wt(e.callee);C=p,a=C}else xr();for(var k=a,S=0,I=k.params,z=0,Q=I.length;z<Q;){var V=I[z];z=z+1|0;var ie=S;S=ie+1|0;var W=e.arguments.l(ie);if(!(W instanceof Ct))if(W instanceof lt){if(!N(V.type,qa()))throw new ot(e,W,qa())}else if(W instanceof We){if(!N(V.type,Ta()))throw new ot(e,W,Ta())}else if(W instanceof fe){if(!N(V.type,Aa()))throw new ot(e,W,Aa())}else W instanceof St?uo(W,V):xr()}return k.returnType}else if(e instanceof ze){var qe=t.props,pe;e:{for(var we=0,oe=qe.length;we<oe;){var ve=qe[we];if(we=we+1|0,ve.name===e.tf_1){pe=ve;break e}}pe=null}var Oe=pe,Re=Oe==null?null:Oe.type,me;if(Re==null)throw new Bt(e);me=Re,n=me}else if(e instanceof Ne){var Je=uo(e.object0,t).props,at;e:{for(var $t=0,bn=Je.length;$t<bn;){var A=Je[$t];if($t=$t+1|0,A.name===e.property){at=A;break e}}at=null}var Y=at,he=Y==null?null:Y.type,Se;if(he==null)throw new Ut(e);Se=he,n=Se}else xr();return n}function sg(){return na(),["index","parent"]}function ug(){return na(),["getChild"]}function fg(){return Oa("useCacheProperties",0,pu,function(){return _d()},null)}function cg(){return Oa("useCacheMethods",0,pu,function(){return md()},null)}var Mf;function na(){Mf||(Mf=!0,pd=Ea(sg),gd=Ea(ug))}function nt(e,t,n,r){r=r===u?null:r;var a=Kt(n,t);qo("expected "+e+" in selector at position "+t+", but got "+tt(a==null?null:new ee(a)),this),K(this,nt),this.expectedValue=e,this.position=t,this.source=n,this.cj_1=r}i(nt).dj=function(){return this.expectedValue};i(nt).ej=function(){return this.position};i(nt).fj=function(){return this.source};i(nt).j7=function(){return this.cj_1};i(nt).pc=function(){return this.expectedValue};i(nt).qc=function(){return this.position};i(nt).fd=function(){return this.source};i(nt).gd=function(){return this.cj_1};i(nt).gj=function(e,t,n,r){return new nt(e,t,n,r)};i(nt).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.cj_1:r,this.gj(e,t,n,r)};i(nt).toString=function(){return"SyntaxError(expectedValue="+this.expectedValue+", position="+this.position+", source="+this.source+", cause="+tt(this.cj_1)+")"};i(nt).hashCode=function(){var e=on(this.expectedValue);return e=F(e,31)+this.position|0,e=F(e,31)+on(this.source)|0,e=F(e,31)+(this.cj_1==null?0:ae(this.cj_1))|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.expectedValue!==t.expectedValue||this.position!==t.position||this.source!==t.source||!N(this.cj_1,t.cj_1))};function be(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=!Mt(n,R(e,t)):o=!1,a=o}if(a)throw new nt(r==null?n:r,t,D(e))}function Xe(e,t,n,r){throw n=n===u?"":n,r=r===u?null:r,new nt(n,t,D(e),r)}function hg(e,t,n){return null}function ai(e,t,n){this.pj_1=e,this.qj_1=t,xt.call(this,n)}i(ai).vj=function(e,t){var n=this.wj(e,t);return n.k6_1=de,n.l6_1=null,n.q6()};i(ai).h7=function(e,t){return this.vj(e instanceof ur?e:$(),t)};i(ai).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.sj_1=Ws(this.pj_1(this.qj_1)),this.sj_1.k())return de;Xs(this.sj_1);var n=this;n.tj_1=rt(),this.i6_1=1;continue e;case 1:if(this.uj_1=Cu(this.sj_1),this.i6_1=2,e=this.rj_1.p9(this.uj_1,this),e===cr())return e;continue e;case 2:for(var r=this.pj_1(this.uj_1).h();r.i();){var a=r.j();this.tj_1.f(a)}if(!this.tj_1.k()){var o=this.tj_1.m()-1|0;if(0<=o)do{var l=o;o=o+-1|0,this.sj_1.f(this.tj_1.l(l))}while(0<=o);this.tj_1.n3()}if(!this.sj_1.k()){this.i6_1=1;continue e}this.i6_1=3;continue e;case 3:return de;case 4:throw this.l6_1}}catch(f){var s=f;if(this.j6_1===4)throw s;this.i6_1=this.j6_1,this.l6_1=s}while(!0)};i(ai).wj=function(e,t){var n=new ai(this.pj_1,this.qj_1,t);return n.rj_1=e,n};function dg(e,t,n){var r=new ai(e,t,n),a=function(o,l){return r.vj(o,l)};return a.$arity=1,a}function vg(e){return function(t){return Ga(dg(e,t,null))}}function _g(e){return function(t,n){return e.ae(t)}}function pg(e){return function(t,n){var r=e(t),a;n.zd()!=null?a=cc(r,At(n.zd())+1|0):a=r;var o=a;return Vs(o,_g(n))}}function oi(e,t,n,r){this.fk_1=e,this.gk_1=t,this.hk_1=n,xt.call(this,r)}i(oi).vj=function(e,t){var n=this.wj(e,t);return n.k6_1=de,n.l6_1=null,n.q6()};i(oi).h7=function(e,t){return this.vj(e instanceof ur?e:$(),t)};i(oi).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.fk_1(this.gk_1),a;if(r==null)return de;a=r,n.jk_1=a,this.kk_1=0,this.i6_1=1;continue e;case 1:if(this.jk_1==null){this.i6_1=5;continue e}if(this.lk_1=this.jk_1,this.lk_1==null){this.mk_1=null,this.i6_1=4;continue e}else{var o=this;o.nk_1=this.lk_1;var l=this;if(l.ok_1=this.nk_1,this.hk_1.ae(this.kk_1)){if(this.i6_1=2,e=this.ik_1.p9(this.ok_1,this),e===cr())return e;continue e}else{this.i6_1=3;continue e}}case 2:this.i6_1=3;continue e;case 3:this.kk_1=this.kk_1+1|0;var s=this.hk_1.zd();if(s!=null){if(this.kk_1>s)return de}var f=this;this.jk_1=this.fk_1(this.ok_1),f.mk_1=de,this.i6_1=4;continue e;case 4:this.i6_1=1;continue e;case 5:return de;case 6:throw this.l6_1}}catch(h){var c=h;if(this.j6_1===6)throw c;this.i6_1=this.j6_1,this.l6_1=c}while(!0)};i(oi).wj=function(e,t){var n=new oi(this.fk_1,this.gk_1,this.hk_1,t);return n.ik_1=e,n};function mg(e,t,n,r){var a=new oi(e,t,n,r),o=function(l,s){return a.vj(l,s)};return o.$arity=1,o}function gg(e){return function(t,n){return Ga(mg(e,t,n,null))}}function yg(e){return function(t){return!N(t,e)}}function bg(e){return function(t,n){return e.ae(t)}}function wg(e,t){return function(n,r){var a=e(n),o;if(a!=null){var l=t(a),s=Ws(Xv(l,yg(n)));Xs(s);var f=Wv(s);o=Vs(f,bg(r))}else o=ea();return o}}function kg(e){return function(t){return!N(t,e)}}function Cg(e){return function(t,n){return e.ae(t)}}function xg(e,t){return function(n,r){var a=e(n),o;if(a!=null){var l=t(a),s=e_(t_(l,kg(n)),1),f;r.zd()!=null?f=cc(s,At(r.zd())+1|0):f=s;var c=f;o=Vs(c,Cg(r))}else o=ea();return o}}function li(e,t,n,r){this.xk_1=e,this.yk_1=t,this.zk_1=n,xt.call(this,r)}i(li).vj=function(e,t){var n=this.wj(e,t);return n.k6_1=de,n.l6_1=null,n.q6()};i(li).h7=function(e,t){return this.vj(e instanceof ur?e:$(),t)};i(li).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.bl_1=Ws(this.xk_1(this.yk_1)),this.bl_1.k())return de;Xs(this.bl_1);var n=this;n.cl_1=rt(),this.dl_1=0,this.i6_1=1;continue e;case 1:if(this.el_1=Cu(this.bl_1),this.zk_1.ae(this.dl_1)){if(this.i6_1=2,e=this.al_1.p9(this.el_1,this),e===cr())return e;continue e}else{this.i6_1=3;continue e}case 2:this.i6_1=3;continue e;case 3:this.dl_1=this.dl_1+1|0;var r=this.zk_1.zd();if(r!=null){if(this.dl_1>r)return de}for(var a=this.xk_1(this.el_1).h();a.i();){var o=a.j();this.cl_1.f(o)}if(!this.cl_1.k()){var l=this.cl_1.m()-1|0;if(0<=l)do{var s=l;l=l+-1|0,this.bl_1.f(this.cl_1.l(s))}while(0<=l);this.cl_1.n3()}if(!this.bl_1.k()){this.i6_1=1;continue e}this.i6_1=4;continue e;case 4:return de;case 5:throw this.l6_1}}catch(c){var f=c;if(this.j6_1===5)throw f;this.i6_1=this.j6_1,this.l6_1=f}while(!0)};i(li).wj=function(e,t){var n=new li(this.xk_1,this.yk_1,this.zk_1,t);return n.al_1=e,n};function Sg(e,t,n,r){var a=new li(e,t,n,r),o=function(l,s){return a.vj(l,s)};return o.$arity=1,o}function $g(e){return function(t,n){return Ga(Sg(e,t,n,null))}}function si(e,t,n,r){this.nl_1=e,this.ol_1=t,this.pl_1=n,xt.call(this,r)}i(si).vj=function(e,t){var n=this.wj(e,t);return n.k6_1=de,n.l6_1=null,n.q6()};i(si).h7=function(e,t){return this.vj(e instanceof ur?e:$(),t)};i(si).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.rl_1=In(this.nl_1.kh_1.length),this.sl_1=this.nl_1.wi(this.ol_1,this.pl_1,this.rl_1),this.sl_1!=null){if(this.i6_1=1,e=this.ql_1.p9(this.sl_1,this),e===cr())return e;continue e}else{this.i6_1=2;continue e}case 1:this.i6_1=2;continue e;case 2:var n=this;n.tl_1=this.pl_1.le_1(this.ol_1),this.ul_1=this.tl_1.h(),this.i6_1=3;continue e;case 3:if(!this.ul_1.i()){this.i6_1=6;continue e}this.vl_1=this.ul_1.j();var r=this;if(r.wl_1=this.vl_1,this.rl_1.n3(),this.xl_1=this.nl_1.wi(this.wl_1,this.pl_1,this.rl_1),this.xl_1!=null){if(this.i6_1=4,e=this.ql_1.p9(this.xl_1,this),e===cr())return e;continue e}else{this.i6_1=5;continue e}case 4:this.i6_1=5;continue e;case 5:this.i6_1=3;continue e;case 6:return de;case 7:throw this.l6_1}}catch(o){var a=o;if(this.j6_1===7)throw a;this.i6_1=this.j6_1,this.l6_1=a}while(!0)};i(si).wj=function(e,t){var n=new si(this.nl_1,this.ol_1,this.pl_1,t);return n.ql_1=e,n};function Eg(e,t,n,r){var a=new si(e,t,n,r),o=function(l,s){return a.vj(l,s)};return o.$arity=1,o}function Ng(e){return function(t,n){return Ga(Eg(n,t,e,null))}}function Ig(e){return function(t,n){return ko(e.re_1(t,n))}}function ui(e,t,n,r){this.gm_1=e,this.hm_1=t,this.im_1=n,xt.call(this,r)}i(ui).qm=function(e,t){var n=this.rm(e,t);return n.k6_1=de,n.l6_1=null,n.q6()};i(ui).h7=function(e,t){return this.qm(e instanceof ur?e:$(),t)};i(ui).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.km_1=this.gm_1.gi(this.hm_1,this.im_1),this.km_1!=null){if(this.i6_1=1,e=this.jm_1.p9(this.km_1,this),e===cr())return e;continue e}else{this.i6_1=2;continue e}case 1:this.i6_1=2;continue e;case 2:var n=this;n.lm_1=this.im_1.le_1(this.hm_1),this.mm_1=this.lm_1.h(),this.i6_1=3;continue e;case 3:if(!this.mm_1.i()){this.i6_1=6;continue e}this.nm_1=this.mm_1.j();var r=this;if(r.om_1=this.nm_1,this.pm_1=this.gm_1.gi(this.om_1,this.im_1),this.pm_1!=null){if(this.i6_1=4,e=this.jm_1.p9(this.pm_1,this),e===cr())return e;continue e}else{this.i6_1=5;continue e}case 4:this.i6_1=5;continue e;case 5:this.i6_1=3;continue e;case 6:return de;case 7:throw this.l6_1}}catch(o){var a=o;if(this.j6_1===7)throw a;this.i6_1=this.j6_1,this.l6_1=a}while(!0)};i(ui).rm=function(e,t){var n=new ui(this.gm_1,this.hm_1,this.im_1,t);return n.jm_1=e,n};function qg(e,t,n,r){var a=new ui(e,t,n,r),o=function(l,s){return a.qm(l,s)};return o.$arity=1,o}function Tg(e){return function(t,n){return Ga(qg(n,t,e,null))}}function Ag(e){return function(t,n){return ko(e.te_1(t,n))}}function yd(e,t,n,r,a,o,l,s,f,c,h){var d;t===u?d=hg:d=t,t=d;var _;o===u?_=vg(r):_=o,o=_;var b;l===u?b=pg(r):b=l,l=b;var v;s===u?v=gg(a):v=s,s=v;var m;f===u?m=wg(a,r):m=f,f=m;var g;c===u?g=xg(a,r):g=c,c=g;var p;h===u?p=$g(r):p=h,h=p,this.ge_1=e,this.he_1=t,this.ie_1=n,this.je_1=r,this.ke_1=a,this.le_1=o,this.me_1=l,this.ne_1=s,this.oe_1=f,this.pe_1=c,this.qe_1=h;var C=this;C.re_1=Ng(this);var k=this;k.se_1=Ig(this);var S=this;S.te_1=Tg(this);var I=this;I.ue_1=Ag(this)}function rr(e){eo.call(this),this.sm_1=e;var t=this,n=_a(this.sm_1);t.tm_1=(n==null?1:n)-1|0,this.um_1=Vv(this.sm_1);for(var r=this,a=this.sm_1,o=In(bo(a,10)),l=a.h();l.i();){var s=l.j(),f=s-1|0;o.f(f)}r.vm_1=o}i(rr).zd=function(){return this.um_1};i(rr).ae=function(e){return am(this.vm_1,e)>=0};i(rr).toString=function(){if(this.sm_1.m()===1){var e;return ba(this.sm_1)===1?e="":e=ba(this.sm_1).toString(),e}return"("+pn(this.sm_1,",")+")"};i(rr).hashCode=function(){return ae(this.sm_1)};i(rr).equals=function(e){if(this===e)return!0;if(!(e instanceof rr))return!1;var t=e instanceof rr?e:$();return!!N(this.sm_1,t.sm_1)};function ei(){Es=this,Qt.call(this,"boolean")}i(ei).toString=function(){return"BooleanType"};i(ei).hashCode=function(){return 1452179029};i(ei).equals=function(e){return this===e?!0:e instanceof ei?(e instanceof ei||$(),!0):!1};var Es;function qa(){return Es==null&&new ei,Es}function ti(){Ns=this,Qt.call(this,"int")}i(ti).toString=function(){return"IntType"};i(ti).hashCode=function(){return-1601449956};i(ti).equals=function(e){return this===e?!0:e instanceof ti?(e instanceof ti||$(),!0):!1};var Ns;function Ta(){return Ns==null&&new ti,Ns}function ni(){Is=this,Qt.call(this,"string")}i(ni).toString=function(){return"StringType"};i(ni).hashCode=function(){return 1719560632};i(ni).equals=function(e){return this===e?!0:e instanceof ni?(e instanceof ni||$(),!0):!1};var Is;function Aa(){return Is==null&&new ni,Is}function Jt(e){Qt.call(this,"object"),this.name=e}i(Jt).wm=function(){return this.name};i(Jt).pc=function(){return this.name};i(Jt).xm=function(e){return new Jt(e)};i(Jt).copy=function(e,t){return e=e===u?this.name:e,this.xm(e)};i(Jt).toString=function(){return"ObjectType(name="+this.name+")"};i(Jt).hashCode=function(){return on(this.name)};i(Jt).equals=function(e){if(this===e)return!0;if(!(e instanceof Jt))return!1;var t=e instanceof Jt?e:$();return this.name===t.name};function Qt(e){this.key=e}i(Qt).q1=function(){return this.key};function ye(e,t,n){var r;n===u?r=[]:r=n,n=r,this.name=e,this.returnType=t,this.params=n}i(ye).wm=function(){return this.name};i(ye).ym=function(){return this.returnType};i(ye).zm=function(){return this.params};i(ye).equals=function(e){return this===e?!0:!(e==null||!yo(this).equals(yo(e))||(e instanceof ye||$(),this.name!==e.name)||!this.returnType.equals(e.returnType)||!Kl(this.params,e.params))};i(ye).hashCode=function(){var e=on(this.name);return e=F(31,e)+this.returnType.hashCode()|0,e=F(31,e)+Bl(this.params)|0,e};i(ye).pc=function(){return this.name};i(ye).qc=function(){return this.returnType};i(ye).fd=function(){return this.params};i(ye).an=function(e,t,n){return new ye(e,t,n)};i(ye).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.an(e,t,n)};i(ye).toString=function(){return"MethodInfo(name="+this.name+", returnType="+this.returnType.toString()+", params="+D(this.params)+")"};function te(e,t){this.name=e,this.type=t}i(te).wm=function(){return this.name};i(te).jg=function(){return this.type};i(te).pc=function(){return this.name};i(te).qc=function(){return this.type};i(te).bn=function(e,t){return new te(e,t)};i(te).copy=function(e,t,n){return e=e===u?this.name:e,t=t===u?this.type:t,this.bn(e,t)};i(te).toString=function(){return"PropInfo(name="+this.name+", type="+this.type.toString()+")"};i(te).hashCode=function(){var e=on(this.name);return e=F(e,31)+this.type.hashCode()|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!(this.name!==t.name||!this.type.equals(t.type))};function et(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(et).jg=function(){return this.type};i(et).cn=function(e){this.props=e};i(et).dn=function(){return this.props};i(et).en=function(e){this.methods=e};i(et).ed=function(){return this.methods};i(et).equals=function(e){return this===e?!0:!(e==null||!yo(this).equals(yo(e))||(e instanceof et||$(),!N(this.type,e.type))||!Kl(this.props,e.props)||!Kl(this.methods,e.methods))};i(et).hashCode=function(){var e=ae(this.type);return e=F(31,e)+Bl(this.props)|0,e=F(31,e)+Bl(this.methods)|0,e};i(et).pc=function(){return this.type};i(et).qc=function(){return this.props};i(et).fd=function(){return this.methods};i(et).fn=function(e,t,n){return new et(e,t,n)};i(et).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.fn(e,t,n)};i(et).toString=function(){return"TypeInfo(type="+D(this.type)+", props="+D(this.props)+", methods="+D(this.methods)+")"};function jg(e){return e.stringify()}function Pg(e){return!1}function St(e){Qe.call(this,e,"var"),this.in_1=e}i(St).r1=function(){return this.in_1};function ze(e,t){St.call(this,t),this.sf_1=e,this.tf_1=t,this.uf_1=this.sf_1+this.tf_1.length|0}i(ze).tc=function(){return this.sf_1};i(ze).r1=function(){return this.tf_1};i(ze).uc=function(){return this.uf_1};i(ze).od=function(e,t){return t.ge_1(e,this.tf_1)};i(ze).dd=function(){return[this.tf_1]};i(ze).ed=function(){return[]};i(ze).pc=function(){return this.sf_1};i(ze).qc=function(){return this.tf_1};i(ze).jn=function(e,t){return new ze(e,t)};i(ze).copy=function(e,t,n){return e=e===u?this.sf_1:e,t=t===u?this.tf_1:t,this.jn(e,t)};i(ze).toString=function(){return"Identifier(start="+this.sf_1+", value="+this.tf_1+")"};i(ze).hashCode=function(){var e=this.sf_1;return e=F(e,31)+on(this.tf_1)|0,e};i(ze).equals=function(e){if(this===e)return!0;if(!(e instanceof ze))return!1;var t=e instanceof ze?e:$();return!(this.sf_1!==t.sf_1||this.tf_1!==t.tf_1)};function Ne(e,t,n,r){St.call(this,n.stringify()+"."+r),this.ag_1=e,this.bg_1=t,this.object0=n,this.property=r}i(Ne).tc=function(){return this.ag_1};i(Ne).uc=function(){return this.bg_1};i(Ne).kn=function(){return this.object0};i(Ne).ln=function(){return this.property};i(Ne).od=function(e,t){return t.ge_1(this.object0.od(e,t),this.property)};i(Ne).dd=function(){return Eo([this.object0.properties,[this.property]])};i(Ne).ed=function(){return this.object0.methods};i(Ne).pc=function(){return this.ag_1};i(Ne).qc=function(){return this.bg_1};i(Ne).fd=function(){return this.object0};i(Ne).gd=function(){return this.property};i(Ne).mn=function(e,t,n,r){return new Ne(e,t,n,r)};i(Ne).copy=function(e,t,n,r,a){return e=e===u?this.ag_1:e,t=t===u?this.bg_1:t,n=n===u?this.object0:n,r=r===u?this.property:r,this.mn(e,t,n,r)};i(Ne).toString=function(){return"MemberExpression(start="+this.ag_1+", end="+this.bg_1+", object0="+D(this.object0)+", property="+this.property+")"};i(Ne).hashCode=function(){var e=this.ag_1;return e=F(e,31)+this.bg_1|0,e=F(e,31)+ae(this.object0)|0,e=F(e,31)+on(this.property)|0,e};i(Ne).equals=function(e){if(this===e)return!0;if(!(e instanceof Ne))return!1;var t=e instanceof Ne?e:$();return!(this.ag_1!==t.ag_1||this.bg_1!==t.bg_1||!N(this.object0,t.object0)||this.property!==t.property)};function Ce(e,t,n,r){var a=n.stringify();St.call(this,a+"("+pn(r,",",u,u,u,u,jg)+")"),this.aj_1=e,this.bj_1=t,this.callee=n,this.arguments=r}i(Ce).tc=function(){return this.aj_1};i(Ce).uc=function(){return this.bj_1};i(Ce).nn=function(){return this.callee};i(Ce).on=function(){return this.arguments};i(Ce).od=function(e,t){var n=this.callee,r;if(n instanceof Ce)r=null;else if(n instanceof ze){for(var a=this.arguments,o=In(bo(a,10)),l=a.h();l.i();){var s=l.j(),f=s.od(e,t);o.f(f)}r=t.he_1(e,this.callee.tf_1,o)}else if(n instanceof Ne){for(var c=this.callee.object0.od(e,t),h=this.arguments,d=In(bo(h,10)),_=h.h();_.i();){var b=_.j(),v=b.od(e,t);d.f(v)}r=t.he_1(c,this.callee.property,d)}else xr();return r};i(Ce).dd=function(){for(var e=Fs(this.callee.properties),t=this.arguments,n=rt(),r=t.h();r.i();){var a=r.j(),o=Ds(a.properties);Oo(n,o)}var l=lc(e,n);return Rt(l)};i(Ce).ed=function(){var e=this.callee,t;e instanceof Ce?t=this.callee.methods:e instanceof ze?t=[this.callee.tf_1]:e instanceof Ne?t=Eo([this.callee.object0.methods,[this.callee.property]]):xr();for(var n=Fs(t),r=this.arguments,a=rt(),o=r.h();o.i();){var l=o.j(),s=Ds(l.methods);Oo(a,s)}var f=lc(n,a);return Rt(f)};i(Ce).pc=function(){return this.aj_1};i(Ce).qc=function(){return this.bj_1};i(Ce).fd=function(){return this.callee};i(Ce).gd=function(){return this.arguments};i(Ce).pn=function(e,t,n,r){return new Ce(e,t,n,r)};i(Ce).copy=function(e,t,n,r,a){return e=e===u?this.aj_1:e,t=t===u?this.bj_1:t,n=n===u?this.callee:n,r=r===u?this.arguments:r,this.pn(e,t,n,r)};i(Ce).toString=function(){return"CallExpression(start="+this.aj_1+", end="+this.bj_1+", callee="+D(this.callee)+", arguments="+D(this.arguments)+")"};i(Ce).hashCode=function(){var e=this.aj_1;return e=F(e,31)+this.bj_1|0,e=F(e,31)+ae(this.callee)|0,e=F(e,31)+ae(this.arguments)|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.aj_1!==t.aj_1||this.bj_1!==t.bj_1||!N(this.callee,t.callee)||!N(this.arguments,t.arguments))};function Lt(e,t){Qe.call(this,e,t),this.sn_1=e,this.tn_1=t}i(Lt).r1=function(){return this.sn_1};i(Lt).jg=function(){return this.tn_1};i(Lt).od=function(e,t){return this.value};i(Lt).dd=function(){return[]};i(Lt).ed=function(){return[]};function Ct(e){Lt.call(this,null,"null"),this.yn_1=e,this.zn_1=this.yn_1+4|0}i(Ct).tc=function(){return this.yn_1};i(Ct).uc=function(){return this.zn_1};i(Ct).pc=function(){return this.yn_1};i(Ct).ao=function(e){return new Ct(e)};i(Ct).copy=function(e,t){return e=e===u?this.yn_1:e,this.ao(e)};i(Ct).toString=function(){return"NullLiteral(start="+this.yn_1+")"};i(Ct).hashCode=function(){return this.yn_1};i(Ct).equals=function(e){if(this===e)return!0;if(!(e instanceof Ct))return!1;var t=e instanceof Ct?e:$();return this.yn_1===t.yn_1};function lt(e,t){Lt.call(this,t,"boolean"),this.fo_1=e,this.go_1=t,this.ho_1=this.fo_1+(this.go_1?4:5)|0}i(lt).tc=function(){return this.fo_1};i(lt).r1=function(){return this.go_1};i(lt).uc=function(){return this.ho_1};i(lt).pc=function(){return this.fo_1};i(lt).qc=function(){return this.go_1};i(lt).io=function(e,t){return new lt(e,t)};i(lt).copy=function(e,t,n){return e=e===u?this.fo_1:e,t=t===u?this.go_1:t,this.io(e,t)};i(lt).toString=function(){return"BooleanLiteral(start="+this.fo_1+", value="+this.go_1+")"};i(lt).hashCode=function(){var e=this.fo_1;return e=F(e,31)+Qs(this.go_1)|0,e};i(lt).equals=function(e){if(this===e)return!0;if(!(e instanceof lt))return!1;var t=e instanceof lt?e:$();return!(this.fo_1!==t.fo_1||this.go_1!==t.go_1)};function We(e,t,n){Lt.call(this,n,"int"),this.no_1=e,this.oo_1=t,this.po_1=n}i(We).tc=function(){return this.no_1};i(We).uc=function(){return this.oo_1};i(We).r1=function(){return this.po_1};i(We).pc=function(){return this.no_1};i(We).qc=function(){return this.oo_1};i(We).fd=function(){return this.po_1};i(We).qo=function(e,t,n){return new We(e,t,n)};i(We).copy=function(e,t,n,r){return e=e===u?this.no_1:e,t=t===u?this.oo_1:t,n=n===u?this.po_1:n,this.qo(e,t,n)};i(We).toString=function(){return"IntLiteral(start="+this.no_1+", end="+this.oo_1+", value="+this.po_1+")"};i(We).hashCode=function(){var e=this.no_1;return e=F(e,31)+this.oo_1|0,e=F(e,31)+this.po_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.no_1!==t.no_1||this.oo_1!==t.oo_1||this.po_1!==t.po_1)};function fe(e,t,n,r){r=r===u?null:r,Lt.call(this,n,"string"),this.ud_1=e,this.vd_1=t,this.wd_1=n,this.xd_1=r;var a=this,o=this.xd_1,l;if(o==null)l=null;else{var s=uy(this.wd_1);l=s==null?o:s}var f=l,c;f==null?c=Pg:c=f,a.yd_1=c}i(fe).tc=function(){return this.ud_1};i(fe).uc=function(){return this.vd_1};i(fe).r1=function(){return this.wd_1};i(fe).ro=function(){return this.xd_1};i(fe).stringify=function(){return sy(this.wd_1)};i(fe).so=function(){return this.yd_1};i(fe).pc=function(){return this.ud_1};i(fe).qc=function(){return this.vd_1};i(fe).fd=function(){return this.wd_1};i(fe).to=function(){return this.xd_1};i(fe).uo=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.ud_1:e,t=t===u?this.vd_1:t,n=n===u?this.wd_1:n,r=r===u?this.xd_1:r,this.uo(e,t,n,r)};i(fe).toString=function(){return"StringLiteral(start="+this.ud_1+", end="+this.vd_1+", value="+this.wd_1+", matches="+tt(this.xd_1)+")"};i(fe).hashCode=function(){var e=this.ud_1;return e=F(e,31)+this.vd_1|0,e=F(e,31)+on(this.wd_1)|0,e=F(e,31)+(this.xd_1==null?0:ae(this.xd_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.ud_1!==t.ud_1||this.vd_1!==t.vd_1||this.wd_1!==t.wd_1||!N(this.xd_1,t.xd_1))};function Qe(e,t){this.md_1=e,this.nd_1=t}i(Qe).r1=function(){return this.md_1};i(Qe).jg=function(){return this.nd_1};i(Qe).stringify=function(){return tt(this.value)};function Ke(e,t){e=e===u?"":e,this.vo_1=e,this.wo_1=t}i(Ke).xo=function(e,t){return this.wo_1(e,t,this.vo_1)};i(Ke).toString=function(){return"Parser(prefix="+this.vo_1+", temp="+D(this.wo_1)+")"};i(Ke).hashCode=function(){var e=on(this.vo_1);return e=F(e,31)+ae(this.wo_1)|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.vo_1!==t.vo_1||!N(this.wo_1,t.wo_1))};function je(e,t){t=t===u?0:t,this.yo_1=e,this.zo_1=t}i(je).toString=function(){return"ParserResult(data="+tt(this.yo_1)+", length="+this.zo_1+")"};i(je).hashCode=function(){var e=this.yo_1==null?0:ae(this.yo_1);return e=F(e,31)+this.zo_1|0,e};i(je).equals=function(e){if(this===e)return!0;if(!(e instanceof je))return!1;var t=e instanceof je?e:$();return!(!N(this.yo_1,t.yo_1)||this.zo_1!==t.zo_1)};function Rg(e,t){var n=0,r=Kt(t,n);if(!N(r==null?null:new ee(r),new ee(40)))return!1;n=n+1|0,n=n+e.ap_1.xo(t,n).zo_1|0;var a=Qr(48,57),o=Kt(t,n),l,s=o;if((s==null?null:new ee(s))!=null?l=a.xb(o):l=!1,!l)return!1;n=n+e.ep_1.xo(t,n).zo_1|0,n=n+e.ap_1.xo(t,n).zo_1|0;var f=Kt(t,n);return N(f==null?null:new ee(f),new ee(44))}function Mg(e,t,n){var r=il().allSubClasses,a;e:{for(var o=0,l=r.length;o<l;){var s=r[o];if(o=o+1|0,tl(t,s.key,n)){a=s;break e}}a=null}var f=a,c;f==null?Xe(t,n,"CompareOperator"):c=f;var h=c;return new Ue(n,n+h.key.length|0,h)}function qs(e,t,n){var r=t;if((r==null?null:new ee(r))==null)return!1;var a,o,l,s=t;return N(s==null?null:new ee(s),new ee(95))?l=!0:l=Qr(97,122).xb(t),l?o=!0:o=Qr(65,90).xb(t),o?a=!0:a=!n&&Qr(48,57).xb(t),a}function Lf(e,t,n,r){return n=n===u?!1:n,qs(e,t,n)}function Il(e,t,n,r){if(tl(t,r,n)){var a=Kt(t,n+r.length|0),o,l=a;if((l==null?null:new ee(l))==null)return!0;o=a;var s=o;return!(s===95||97<=s&&s<=122||65<=s&&s<=90||48<=s&&s<=57)}return!1}function zf(e,t,n){var r="tfn-"+e.kp_1.vo_1+e.ep_1.vo_1+e.lp_1;be(t,n,r);var a=e.sp(t,n);return a}function Lg(e,t,n){var r=n,a=zf(e,t,r);r=r+a.a()|0,r=r+e.ap_1.xo(t,r).zo_1|0;var o=Mg(e,t,r);r=r+o.a()|0,r=r+e.ap_1.xo(t,r).zo_1|0;var l=zf(e,t,r),s,f;if(N(o.value,al())||N(o.value,Lu())?f=l instanceof fe:f=!1,f){var c;try{c=_y(l.wd_1)}catch(v){var h;if(v instanceof un){var d=v;Xe(t,r,"valid primitive string regex",d)}else throw v;c=h}var _=c;s=l.copy(u,u,u,_)}else s=l;var b=s;return r=r+b.a()|0,new ue(n,r,a,o,b)}function zg(e,t,n){var r=n;r=r+e.ap_1.xo(t,r).zo_1|0;var a=hd().ld(),o;e:{for(var l=a.h();l.i();){var s=l.j();if(tl(t,s.xg_1,n)){o=s;break e}}o=null}var f=o,c;f==null?Xe(t,n,"LogicalOperator"):c=f;var h=c;return new Ue(r,r+h.xg_1.length|0,h)}function Og(e,t,n){var r=n;r=r+e.ap_1.xo(t,r).zo_1|0,be(t,r,"!");var a=r;r=r+1|0,be(t,r,"(");var o=e.tp(t,r,!0);return r=r+o.a()|0,new Tt(a,o)}function Dg(e,t,n){for(var r=t,a="";r<j(e)&&Mt(n,R(e,r));)a=a+Be(R(e,r)),r=r+1|0;return new je(a,r-t|0)}function Fg(e,t,n){return be(e,t,n,"whitespace"),X().ap_1.xo(e,t)}function Kg(e,t,n){var r=t,a=Kt(e,r),o,l=a;if((l==null?null:new ee(l))!=null?o=!Mt(n,a):o=!1,o)return new je("");be(e,r,n,"*0-9a-zA-Z_");var s=Be(R(e,r));if(r=r+1|0,s==="*")return new je(s,r-t|0);var f="1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM_.";e:for(;r<j(e);){if(R(s,(r-t|0)-1|0)===46&&be(e,r,n,"[0-9a-zA-Z_]"),Mt(f,R(e,r)))s=s+Be(R(e,r));else break e;r=r+1|0}return new je(s,r-t|0)}function Bg(e){return e.ce_1}function Ug(e,t,n){var r=Ou().ld(),a;e:{for(var o=r.h();o.i();){var l=o.j();if(tl(e,l.ce_1,t)){a=l;break e}}a=null}var s=a,f;s==null?Xe(e,t,"ConnectOperator"):f=s;var c=f;return new je(c,c.ce_1.length)}function Hg(e,t,n){var r=t;be(e,r,n,"number");for(var a="";r<j(e)&&Mt(n,R(e,r));)a=a+Be(R(e,r)),r=r+1|0;var o;try{o=W0(a)}catch(s){var l;if(s instanceof pi)Xe(e,t,"valid format number");else throw s;o=l}return new je(o,r-t|0)}function Wg(e,t,n){var r=t;be(e,r,n);var a=R(e,r),o;a===43?(r=r+1|0,o=1):a===45?(r=r+1|0,o=-1):o=1;var l=o;r=r+X().ap_1.xo(e,r).zo_1|0,be(e,r,X().ep_1.vo_1+"n");var s;if(Mt(X().ep_1.vo_1,R(e,r))){var f=X().ep_1.xo(e,r);r=r+f.zo_1|0,s=f.yo_1}else s=1;var c=F(s,l);return r<j(e)&&R(e,r)===110?(r=r+1|0,new je(new mn(1,c),r-t|0)):new je(new mn(0,c),r-t|0)}function Vg(e,t,n){var r=t;be(e,r,n);var a=rt();if(R(e,r)===40){for(r=r+1|0,r=r+X().ap_1.xo(e,r).zo_1|0,be(e,r,X().fp_1.vo_1);R(e,r)!==41;){a.m()>0&&be(e,r,"+-");var o=X().fp_1.xo(e,r);a.f(o),r=r+o.zo_1|0,r=r+X().ap_1.xo(e,r).zo_1|0,r>=j(e)&&be(e,r,")")}r=r+1|0}else{var l=X().fp_1.xo(e,r);a.f(l),r=r+l.zo_1|0}for(var s=lh(),f=a.h();f.i();){var c=f.j(),h=c.yo_1,d=h.pc(),_=h.qc(),b=s.t1(d),v=(b==null?0:b)+_|0;s.u3(d,v)}for(var m=Gp(s.m()),g=s.u1().h();g.i();){var p=g.j();p.q1()>1&&Xe(e,t,"power must be 0 or 1");var C=p.r1();m.u3(de,C)}var k;try{var S=s.t1(1),I=S==null?0:S,z=s.t1(0);k=new Gt(I,z==null?0:z)}catch(ie){var Q;if(ie instanceof un)Xe(e,t,"valid polynomialExpression");else throw ie;k=Q}var V=k;return new je(V,r-t|0)}function Gg(e,t,n){var r=t;be(e,r,"("),r=r+1|0;for(var a=rt();r<j(e)&&R(e,r)!==41;){r=r+X().ap_1.xo(e,r).zo_1|0;var o=X().ep_1.xo(e,r);a.k()?o.yo_1<=0&&Xe(e,r,"positive integer"):o.yo_1<=Oi(a)&&Xe(e,r,">"+Oi(a)),r=r+o.zo_1|0,a.f(o.yo_1),r=r+X().ap_1.xo(e,r).zo_1|0;var l=Kt(e,r);N(l==null?null:new ee(l),new ee(44))&&(r=r+1|0,r=r+X().ap_1.xo(e,r).zo_1|0,be(e,r,X().ep_1.vo_1+")"))}return be(e,r,")"),r=r+1|0,new je(new rr(a),r-t|0)}function Jg(e,t,n){var r=t,a;if(Rg(X(),Zt(e,t,j(e)))){var o=X().hp_1.xo(e,r);r=r+o.zo_1|0,a=new je(o.yo_1,r-t|0)}else{var l=X().gp_1.xo(e,t);r=r+l.zo_1|0,a=new je(l.yo_1,r-t|0)}return a}function Qg(e,t,n){var r=t,a=X().dp_1.xo(e,r);r=r+a.zo_1|0;var o=null;r<j(e)&&Mt(X().ip_1.vo_1,R(e,r))&&(o=X().ip_1.xo(e,r),r=r+o.zo_1|0);var l=o,s=l==null?null:l.yo_1;return new je(new En(a.yo_1,s==null?new Gt:s),r-t|0)}function Yg(e,t,n){var r=t;be(e,r,n);var a=R(e,r);r=r+1|0,r>=j(e)&&Xe(e,r,"any char");var o="";e:for(;R(e,r)!==a;){if(r>=(j(e)-1|0)){be(e,r,Be(a));break e}var l=R(e,r),s=qt(l);if(0<=s&&s<=31&&Xe(e,r,"0-1f escape char"),R(e,r)===92){r=r+1|0,be(e,r);var f=o,c=R(e,r),h;if(c===92)h=92;else if(c===39)h=39;else if(c===34)h=34;else if(c===96)h=96;else if(c===110)h=10;else if(c===114)h=13;else if(c===116)h=9;else if(c===98)h=8;else if(c===120){var d=0;if(d<2)do d=d+1|0,r=r+1|0,be(e,r,"0123456789abcdefABCDEF");while(d<2);var _=(r-2|0)+1|0,b=r+1|0,v=D(Zt(e,_,b));h=Sa(qf(v,16))}else if(c===117){var m=0;if(m<4)do m=m+1|0,r=r+1|0,be(e,r,"0123456789abcdefABCDEF");while(m<4);var g=(r-4|0)+1|0,p=r+1|0,C=D(Zt(e,g,p));h=Sa(qf(C,16))}else Xe(e,r,"escape char");o=f+Be(h)}else o=o+Be(R(e,r));r=r+1|0}return r=r+1|0,new je(o,r-t|0)}function Zg(e,t,n){var r=t;be(e,r,n);var a=Be(R(e,r));for(r=r+1|0;r<j(e)&&Mt(X().mp_1,R(e,r));)R(e,r)===46&&be(e,r+1|0,n),a=a+Be(R(e,r)),r=r+1|0;return new je(a,r-t|0)}function Xg(e,t,n){var r=t;be(e,r,n),r=r+1|0,r=r+X().ap_1.xo(e,r).zo_1|0;var a=X().up(e,r);return r=r+a.a()|0,be(e,r,"]"),r=r+1|0,new je(a,r-t|0)}function ey(e,t,n){var r=t,a=!1,o=Kt(e,r);N(o==null?null:new ee(o),new ee(64))&&(a=!0,r=r+1|0);var l=X().cp_1.xo(e,r);r=r+l.zo_1|0;for(var s=rt();r<j(e)&&R(e,r)===91;){var f=X().op_1.xo(e,r);r=r+f.zo_1|0,s.f(f.yo_1)}return l.zo_1===0&&s.m()===0&&Xe(e,r,"["),new je(new tr(a,l.yo_1,s),r-t|0)}function ty(e,t,n){var r=t;r=r+X().ap_1.xo(e,r).zo_1|0;var a=X().pp_1.xo(e,r);r=r+a.zo_1|0;var o=rt();e:for(;r<j(e)&&Mt(X().ap_1.vo_1,R(e,r));){if(r=r+X().bp_1.xo(e,r).zo_1|0,r>=j(e))break e;var l;if(Mt(X().jp_1.vo_1,R(e,r))){var s=X().jp_1.xo(e,r);r=r+s.zo_1|0,r=r+X().bp_1.xo(e,r).zo_1|0,l=s.yo_1}else l=new En(u,new Gt(1,0));var f=l,c=X().pp_1.xo(e,r);r=r+c.zo_1|0,o.f(Pf(f,c.yo_1))}return new je(Pf(a.yo_1,o),r-t|0)}function ny(e,t,n){return t!==j(e)&&Xe(e,t,"EOF"),new je(de,0)}function no(){Ts=this;var e=this;e.ap_1=new Ke(` \r
|
|
270
|
+
`,Dg);var t=this;t.bp_1=new Ke(` \r
|
|
271
|
+
`,Fg);var n=this;n.cp_1=new Ke("*1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM_",Kg);var r=this,a=Ou().ld(),o=pn(a,"",u,u,u,u,Bg);r.dp_1=new Ke(o,Ug);var l=this;l.ep_1=new Ke("1234567890",Hg);var s=this;s.fp_1=new Ke("+-1234567890n",Wg);var f=this;f.gp_1=new Ke("(0123456789n",Vg);var c=this;c.hp_1=new Ke(u,Gg);var h=this;h.ip_1=new Ke(this.gp_1.vo_1,Jg);var d=this;d.jp_1=new Ke(this.dp_1.vo_1,Qg);var _=this;_.kp_1=new Ke("`'\"",Yg),this.lp_1="_"+pn(Qr(97,122),"")+pn(Qr(65,90),""),this.mp_1=this.lp_1+Be(46)+pn(Qr(48,57),"");var b=this;b.np_1=new Ke(this.lp_1,Zg);var v=this;v.op_1=new Ke("[",Xg);var m=this;m.pp_1=new Ke(u,ey);var g=this;g.qp_1=new Ke(u,ty);var p=this;p.rp_1=new Ke(u,ny)}i(no).sp=function(e,t){var n=t;if(n=n+this.ap_1.xo(e,n).zo_1|0,n>=j(e)&&Xe(e,n,"Variable"),Il(this,e,n,"true"))return new lt(n,!0);if(Il(this,e,n,"false"))return new lt(n,!1);if(Il(this,e,n,"null"))return new Ct(n);if(Mt(this.kp_1.vo_1,R(e,n))){var r=this.kp_1.xo(e,n);return n=n+r.zo_1|0,new fe(n-r.zo_1|0,n,r.yo_1)}if(R(e,n)===45){n=n+1|0;var a=this.ep_1.xo(e,n);return n=n+a.zo_1|0,new We((n-a.zo_1|0)-1|0,n,-a.yo_1|0)}if(Mt(this.ep_1.vo_1,R(e,n))){var o=this.ep_1.xo(e,n);return n=n+o.zo_1|0,new We(n-o.zo_1|0,n,o.yo_1)}var l=null;e:for(;n<j(e);){n=n+this.ap_1.xo(e,n).zo_1|0;var s=Kt(e,n),f=s;if(N(f==null?null:new ee(f),new ee(40))){var c=n;if(n=n+1|0,n=n+this.ap_1.xo(e,n).zo_1|0,l!=null){l instanceof Ce&&Xe(e,n,"Variable");for(var h=rt();n<j(e)&&R(e,n)!==41;){var d=this.sp(e,n);h.f(d),n=n+d.a()|0;var _=Kt(e,n);N(_==null?null:new ee(_),new ee(44))&&(n=n+1|0,n=n+this.ap_1.xo(e,n).zo_1|0)}n=n+this.ap_1.xo(e,n).zo_1|0,be(e,n,")"),n=n+1|0,l=new Ce(l.tc(),n,l,h)}else{var b=this.sp(e,n);n=n+b.a()|0,n=n+this.ap_1.xo(e,n).zo_1|0,be(e,n,")"),n=n+1|0;var v=n,m;return b instanceof lt?m=b.copy(c):b instanceof We?m=b.copy(c,v):b instanceof Ct?m=b.copy(c):b instanceof fe||b instanceof Ce?m=b.copy(c,v):b instanceof ze?m=b.copy(c):b instanceof Ne?m=b.copy(c,v):xr(),m}}else{var g=s;if(N(g==null?null:new ee(g),new ee(46))){n=n+1|0,l instanceof St||Xe(e,n,"Variable"),qs(this,Kt(e,n),!0)||Xe(e,n,"Variable");var p;t:{var C=hf(e,n),k=0,S=j(C);if(k<S)do{var I=k;k=k+1|0;var z=R(C,I);if(!qs(X(),z,!1)){p=Zt(C,0,I);break t}}while(k<S);p=Zt(C,0,j(C))}var Q=D(p);l=new Ne(l.tc(),n+Q.length|0,l,Q),n=n+Q.length|0}else if(Lf(this,s)){var V;t:{var ie=hf(e,n),W=0,qe=j(ie);if(W<qe)do{var pe=W;W=W+1|0;var we=R(ie,pe);if(!Lf(X(),we)){V=Zt(ie,0,pe);break t}}while(W<qe);V=Zt(ie,0,j(ie))}var oe=D(V);l=new ze(n,oe),n=n+oe.length|0}else break e}}return l==null&&Xe(e,n,"Variable"),l};i(no).tp=function(e,t,n){var r=t;r=r+this.ap_1.xo(e,r).zo_1|0;var a=rt();e:for(;r<j(e)&&R(e,r)!==93&&R(e,r)!==41;){var o=R(e,r);if(o===40){var l=r;if(!a.k()){var s=Oi(a),f;if(s instanceof Ue){var c=s.value;f=c instanceof bi}else f=!1;if(!f){for(var h=0;(r-1|0)>=h&&Mt(this.ap_1.vo_1,R(e,(r-1|0)-h|0));)h=h+1|0;Xe(e,(r-h|0)-s.a()|0,"LogicalOperator")}}r=r+1|0;var d=this.up(e,r);r=r+d.a()|0;var _=d;be(e,r,")"),r=r+1|0;var b=r,v;if(_ instanceof ue?v=_.copy(l,b):_ instanceof ht?v=_.ah(l,b):_ instanceof Tt?v=_.pi(l):xr(),a.f(v),n)break e}else if(Mt("|&",o)){var m=zg(this,e,r);r=r+m.a()|0,a.f(m),r=r+this.ap_1.xo(e,r).zo_1|0,be(e,r,"(!"+this.np_1.vo_1)}else if(o===33){var g=Og(this,e,r);r=r+g.a()|0,a.f(g),r=r+this.ap_1.xo(e,r).zo_1|0}else{var p=Lg(this,e,r);r=r+p.a()|0,a.f(p)}r=r+this.ap_1.xo(e,r).zo_1|0}if(a.k()&&Xe(e,r-t|0,"Expression"),a.m()===1){var C=ba(a);return C instanceof Ft?C:$()}for(var k=Bs(a),S=0;S<k.m();){var I=k.l(S),z;if(I instanceof Ue?z=N(I.value,dd()):z=!1,z){var Q=k.l(S-1|0),V=Q instanceof Ft?Q:$(),ie=k.l(S+1|0),W=ie instanceof Ft?ie:$(),qe=I instanceof Ue?I:$();k.p2(S,new ht(V.tc(),W.uc(),V,qe,W)),k.x2(S-1|0),k.x2((S+1|0)-1|0)}else S=S+1|0}for(;k.m()>1;){var pe=k.l(0),we=pe instanceof Ft?pe:$(),oe=k.l(1),ve=oe instanceof Ue?oe:$(),Oe=k.l(2),Re=Oe instanceof Ft?Oe:$();k.p2(1,new ht(we.tc(),Re.uc(),we,ve,Re)),k.x2(0),k.x2(1)}var me=ba(k);return me instanceof Ft?me:$()};i(no).up=function(e,t,n,r){return n=n===u?!1:n,r===u?this.tp(e,t,n):r.tp.call(this,e,t,n)};var Ts;function X(){return Ts==null&&new no,Ts}function bd(e){var t=0;t=t+X().ap_1.xo(e,t).zo_1|0;var n=X().qp_1.xo(e,t);t=t+n.zo_1|0,t=t+X().ap_1.xo(e,t).zo_1|0,t=t+X().rp_1.xo(e,t).zo_1|0;var r=n.yo_1,a=rt(),o=rt();a.f(r.nc_1);for(var l=r.oc_1.h();l.i();){var s=l.j();a.f(s.oc_1),o.f(s.nc_1)}for(var f=Rh([new nr(ba(a))]),c=0,h=o.h();h.i();){var d=h.j(),_=c;c=_+1|0;var b=eu(_),v=new Tr(d,Oi(f)),m=new nr(a.l(b+1|0),v);f.f(m)}return new Br(e,Oi(f))}function ry(e){py(e)}function ki(e,t,n,r,a){this.booleanType=e,this.intType=t,this.stringType=n,this.contextType=r,this.nodeType=a}i(ki).vp=function(){return this.booleanType};i(ki).wp=function(){return this.intType};i(ki).xp=function(){return this.stringType};i(ki).yp=function(){return this.contextType};i(ki).zp=function(){return this.nodeType};function iy(){var e=new et(qa()),t=new et(Ta()),n=new et(Aa()),r=t,a=new ye("toString",n),o=[t],l=new ye("toString",n,o),s=[t],f=new ye("plus",t,s),c=[t],h=new ye("minus",t,c),d=[t],_=new ye("times",t,d),b=[t],v=new ye("div",t,b),m=[t];r.methods=[a,l,f,h,_,v,new ye("rem",t,m)];var g=n;g.props=[new te("length",t)];var p=n,C=[t],k=new ye("get",n,C),S=[t],I=new ye("at",n,S),z=[t,t],Q=new ye("substring",n,z),V=new ye("toInt",t),ie=[t],W=new ye("toInt",t,ie),qe=[n],pe=new ye("indexOf",t,qe),we=[n,t];p.methods=[k,I,Q,V,W,pe,new ye("indexOf",t,we)];var oe=new et(new Jt("context")),ve=new et(new Jt("node")),Oe=ve;Oe.props=[new te("_id",t),new te("_pid",t),new te("id",n),new te("vid",n),new te("name",n),new te("text",n),new te("desc",n),new te("clickable",e),new te("focusable",e),new te("checkable",e),new te("checked",e),new te("editable",e),new te("longClickable",e),new te("visibleToUser",e),new te("left",t),new te("top",t),new te("right",t),new te("bottom",t),new te("width",t),new te("height",t),new te("childCount",t),new te("index",t),new te("depth",t),new te("parent",ve)];var Re=ve,me=[t];Re.methods=[new ye("getChild",ve,me)];var Je=oe;Je.methods=ve.methods.slice();var at=oe;return at.props=ve.props.slice(),new ki(e,t,n,oe,ve)}function ay(e,t,n){var r;switch(t){case"plus":var a=rn(n),o;if(a==null)return null;o=a,r=e+o|0;break;case"minus":var l=rn(n),s;if(l==null)return null;s=l,r=e-s|0;break;case"times":var f=rn(n),c;if(f==null)return null;c=f,r=F(e,c);break;case"div":var h=rn(n),d;if(h==null)d=null;else{if(h===0)return null;d=h}var _=d,b;if(_==null)return null;b=_,r=e/b|0;break;case"rem":var v=rn(n),m;if(v==null)m=null;else{if(v===0)return null;m=v}var g=m,p;if(g==null)return null;p=g,r=e%p|0;break;default:r=null;break}return r}function oy(e,t,n){return fy(e,t,n)}function ly(e,t){return cy(e,t)}function sy(e,t){t=t===u?34:t;var n=Nh(e.length+2|0);n.b6(t);for(var r=0;r<j(e);){var a=R(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,l=o;if((l==null?null:new ee(l))!=null){var s=o;n.a6("\\"+tt(s==null?null:new ee(s)))}else{var f=qt(a);if(0<=f&&f<=15){var c=qt(a);n.a6("\\x0"+If(c,16))}else if(16<=f&&f<=31){var h=qt(a);n.a6("\\x"+If(h,16))}else n.b6(a)}}return n.b6(t),n.toString()}function ql(e,t,n){if(bu(e,t)&&jh(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,Mt("\\^$.?*|+()[]{}",R(e,o)))return null}while(r<a);return D(Zt(e,t.length,e.length-n.length|0))}return null}function uy(e){var t=ql(e,"(?is)",".*");if(t!=null)return hy(t);var n=ql(e,"(?is).*",".*");if(n!=null)return dy(n);var r=ql(e,"(?is).*","");return r!=null?vy(r):null}function rn(e,t){t=t===u?0:t;var n=Gv(e,t);return n!=null&&typeof n=="number"?n:null}function fy(e,t,n){var r;switch(t){case"get":var a=rn(n),o;if(a==null)return null;o=a;var l=Kt(e,o);r=tt(l==null?null:new ee(l));break;case"at":var s=rn(n),f;if(s==null)return null;f=s;var c=f,h;if(c<0){var d=Kt(e,j(e)+c|0);h=tt(d==null?null:new ee(d))}else{var _=Kt(e,c);h=tt(_==null?null:new ee(_))}r=h;break;case"substring":var b;switch(n.m()){case 1:var v=rn(n),m;if(v==null)return null;m=v;var g=m;if(g<0)return null;if(g>=j(e))return"";var p=j(e);b=D(Zt(e,g,p));break;case 2:var C=rn(n),k;if(C==null)return null;k=C;var S=k;if(S<0)return null;if(S>=j(e))return"";var I=rn(n,1),z;if(I==null)return null;z=I;var Q=z;if(Q<S)return null;var V=wa(Q,j(e));b=D(Zt(e,S,V));break;default:b=null;break}r=b;break;case"toInt":var ie;switch(n.m()){case 0:ie=Zh(D(e));break;case 1:var W=rn(n),qe;if(W==null)return null;qe=W;var pe=qe;if(!(2<=pe&&pe<=36))return null;ie=Tu(D(e),pe);break;default:ie=null;break}r=ie;break;case"indexOf":var we;switch(n.m()){case 1:var oe=n.l(0),ve=oe!=null&&st(oe)?oe:null,Oe;if(ve==null)return null;Oe=ve;var Re=Oe;we=ts(e,D(Re));break;case 2:var me=n.l(0),Je=me!=null&&st(me)?me:null,at;if(Je==null)return null;at=Je;var $t=at,bn=rn(n,1),A;if(bn==null)return null;A=bn;var Y=A;we=ts(e,D($t),Y);break;default:we=null;break}r=we;break;default:r=null;break}return r}function cy(e,t){return t==="length"?j(e):null}function hy(e){return function(t){return Au(t,e,!0)}}function dy(e){return function(t){return ju(t,e,!0)}}function vy(e){return function(t){return el(t,e,!0)}}var wo;function _y(e){if(wo!==null){var t=At(wo)(e);return my(t)}if(e.length>=4&&bu(e,"(?")){var n=2,r=e.length;if(n<r)e:do{var a=n;n=n+1|0;var o=R(e,a);if(!(97<=o&&o<=122)&&!(65<=o&&o<=90))if(o===41){var l=a_(Zt(e,2,a));l.f(new ee(103)),l.f(new ee(117));var s=pn(l,""),f=a+1|0,c=e.substring(f),h=new RegExp(c,s);return gy(h)}else break e}while(n<r)}var d=J0(e);return yy(d)}function py(e){wo=e}function my(e){return function(t){return e(D(t))}}function gy(e){return function(t){Eh(e);var n=e.exec(D(t));return n!=null&&n.index===0&&e.lastIndex===j(t)}}function yy(e){return function(t){return e.w8(t)}}i(Ft).a=Pu;xe(i(ue),"properties",i(ue).dd);xe(i(ue),"methods",i(ue).ed);xe(i(Ia),"allSubClasses",i(Ia).ld);xe(i(ut),"message",function(){return this.i7()});i(Ue).a=Pu;xe(i(nt),"cause",function(){return this.j7()});i(Qe).a=Pu;xe(i(Qe),"value",function(){return this.r1()});xe(i(Qe),"type",function(){return this.jg()});xe(i(Qe),"properties",function(){return this.dd()});xe(i(Qe),"methods",function(){return this.ed()});vd=new sl;Ku=new fl;wo=null;xe(B,"Companion",il);xe(B,"Equal",Gr);xe(B,"NotEqual",rd);xe(B,"Start",Kr);xe(B,"NotStart",id);xe(B,"Include",Ru);xe(B,"NotInclude",ad);xe(B,"End",Mu);xe(B,"NotEnd",od);xe(B,"Less",Xa);xe(B,"LessEqual",ld);xe(B,"More",sd);xe(B,"MoreEqual",ud);xe(B,"Matches",al);xe(B,"NotMatches",Lu);xe(_t,"Companion",Gm);xe(Qt,"BooleanType",qa);xe(Qt,"IntType",Ta);xe(Qt,"StringType",Aa);Qt.ObjectType=Jt;Qe.Variable=St;Qe.Identifier=ze;Qe.MemberExpression=Ne;Qe.CallExpression=Ce;Qe.LiteralExpression=Lt;Qe.NullLiteral=Ct;Qe.BooleanLiteral=lt;Qe.IntLiteral=We;Qe.StringLiteral=fe;async function by(e){e instanceof Promise&&(e=await e);const t={"kotlin.captureStackTrace":()=>new Error().stack,"kotlin.wasm.internal.throwJsError":(o,l,s)=>{const f=new Error;throw f.message=o,f.name=l,f.stack=s,f},"kotlin.wasm.internal.stringLength":o=>o.length,"kotlin.wasm.internal.jsExportStringToWasm":(o,l,s,f)=>{const c=new Uint16Array(r.memory.buffer,f,s);let h=0,d=l;for(;h<s;)c.set([o.charCodeAt(d)],h),d++,h++},"kotlin.wasm.internal.importStringFromWasm":(o,l,s)=>{const f=new Uint16Array(r.memory.buffer,o,l),c=String.fromCharCode.apply(null,f);return s==null?c:s+c},"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=>l=>r["__callFunction_((String)->Boolean)"](o,l)};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.1719809477737/files/dist/assets/mod-BHC4TAjm.wasm",ky=by(fetch(wy)).then(e=>{const t=e.exports.toMatches;ry(t),co.wasmSupported=!0,console.log("use wasm matches")}).catch(e=>{co.wasmSupported=!1,console.error(e),console.log("use js matches")}),Tl=new wi((e,t)=>{var n,r;return typeof e=="string"?ly(e,t):af(e)?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:null},(e,t,n)=>{var r;if(typeof e=="string")return oy(e,t,n);if(typeof e=="number")return ay(e,t,n);if(af(e)&&t==="getChild"){const a=n.asJsReadonlyArrayView()[0];return(r=e.children[a])!=null?r:null}return null},e=>e.attr.name,e=>e.children,e=>e.parent),Cy=iy(),xy=e=>{const t=_t.Companion.parse(e);for(const a of t.binaryExpressions)if(a.operator.value.key=="~="&&!co.wasmSupported&&!Hf.ignoreWasmWarn){co.wasmErrorDlgVisible=!0;break}const n=t.checkType(Cy.contextType);if(n!=null){if(n instanceof gt)throw new Error("不匹配表达式类型:"+n.exception.stringify(),{cause:n});if(n instanceof Vt)throw new Error("不匹配操作符类型:"+n.exception.stringify(),{cause:n});if(n instanceof ot)throw new Error("不匹配参数类型:"+n.call.stringify(),{cause:n});if(n instanceof Bt)throw new Error("未知属性:"+n.value.value,{cause:n});if(n instanceof Ht)throw new Error("未知方法:"+n.value.value,{cause:n});if(n instanceof Ut)throw new Error("未知属性:"+n.value.property,{cause:n});if(n instanceof Wt)throw new Error("未知方法:"+n.value.property,{cause:n})}return{tracks:t.tracks,trackIndex:t.trackIndex,connectKeys:t.connectKeys,canQf:t.canQf,qfIdValue:t.qfIdValue,qfVidValue:t.qfVidValue,qfTextValue:t.qfTextValue,canCopy:!0,toString:()=>t.toString(),match:a=>{var o;return(o=t.match(a,Tl))!=null?o:void 0},querySelectorAll:a=>Tl.querySelectorAll(a,t),querySelectorTrackAll:a=>Tl.querySelectorTrackAll(a,t)}};var Bu={},cl={};Object.defineProperty(cl,"__esModule",{value:!0});function Sy(e){return String.fromCharCode(parseInt(e.slice(1),16))}function $y(e){return btoa(encodeURIComponent(e).replace(/%[0-9A-F]{2}/g,Sy))}cl.encode=$y;function Ey(e){return`%${`00${e.charCodeAt(0).toString(16)}`.slice(-2)}`}function Ny(e){return decodeURIComponent(Array.from(atob(e),Ey).join(""))}cl.decode=Ny;Object.defineProperty(Bu,"__esModule",{value:!0});const wd=cl;function Iy(e){return wd.decode(e.replace(/\-/g,"+").replace(/_/g,"/"))}var qy=Bu.decode=Iy;function Ty(e){return wd.encode(e).replace(/\//g,"_").replace(/\+/g,"-").replace(/=+$/,"")}var Ay=Bu.encode=Ty;const Uu=Jf(),jy=le(()=>Uu.width.value/100),Py=le(()=>Math.max(1200,Uu.width.value));le(()=>Math.max(700,Uu.height.value));const Ry={"bg-white":"","b-1px":"","b-solid":"","b-gray-200":"","rounded-4px":"","p-8px":""},My={flex:"","m-b-4px":""},Ly=H("svg",{viewBox:"0 0 32 32"},[H("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=H("div",{"p-5px":""},null,-1),Oy={key:0,underline:"","decoration-1":"","m-r-4px":"",title:"查询数量"},Dy=["title"],Fy=H("svg",{viewBox:"0 0 24 24"},[H("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=H("div",{"p-l-4px":""},null,-1),By=H("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},[H("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),Uy=H("div",{"p-l-4px":""},null,-1),Hy=H("svg",{viewBox:"0 0 24 24"},[H("g",{fill:"none"},[H("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),Wy=H("svg",{viewBox:"0 0 24 24"},[H("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),Vy=Pe({__name:"SearchCard",props:{snapshot:{},rootNode:{},focusNode:{},onUpdateFocusNode:{type:Function,default:ri},onUpdateTrack:{type:Function,default:ri}},setup(e){Wf();const t=Vf(),n=e,r=Ze(""),a=Ms([]),o=Ze([]),l=v=>{const m=E1(()=>xy(v),p=>typeof p=="string"?p:p instanceof Error&&p.cause instanceof ut?p.message:"非法选择器");if(a.find(p=>typeof p.selector=="object"&&p.selector.toString()==m.toString())){vn.warning("不可重复选择");return}const g=m.querySelectorTrackAll(n.rootNode);if(g.length==0){vn.success("没有选择到节点");return}return vn.success(`选择到 ${g.length} 个节点`),a.unshift({selector:m,nodes:g,key:Date.now()}),g.length},s=v=>{if(a.find(p=>typeof p.selector=="string"&&p.selector.toString()==v)){vn.warning("不可重复搜索");return}const m=[],g=[n.rootNode];for(;g.length>0;){const p=g.pop();ga(p).includes(v)&&m.push(p),g.push(...[...p.children].reverse())}if(m.length==0){vn.success("没有搜索到节点");return}return vn.success(`搜索到 ${m.length} 个节点`),a.unshift({selector:v,nodes:m,key:Date.now()}),m.length},f=()=>{const v=a[0],m=v.nodes[0];Array.isArray(m)?typeof v.selector=="object"&&Array.isArray(m)&&n.onUpdateFocusNode(m[v.selector.trackIndex]):n.onUpdateFocusNode(m);const g=new Set(a.map(C=>C.key)),p=o.value.filter(C=>g.has(C));p.push(v.key),o.value=p},c=sf(()=>{const v=r.value.trim();if(v){if(d.value){if(!l(v))return}else if(!s(v))return;f()}});Ra(async()=>{await ky;let v=0;t.query.gkd&&(v+=l(qy(t.query.gkd))||0),t.query.str&&(v+=s(t.query.str)||0),v>0&&f()});const h=sf(async v=>{var z,Q,V;let m=n1[n.snapshot.id];m&&(m=r1(m));const g=zi[n.snapshot.id],p=g?Xu(g):void 0,C=v.selector,k=v.nodes[0][0],S=[((z=k.quickFind)!=null?z:k.idQf)&&k.attr.id&&C.qfIdValue,((Q=k.quickFind)!=null?Q:k.idQf)&&k.attr.vid&&C.qfVidValue,((V=k.quickFind)!=null?V:k.textQf)&&k.attr.text&&C.qfTextValue].some(Boolean),I={id:n.snapshot.appId,name:On(n.snapshot).name,groups:[{key:1,name:`[ChangeMe]规则名称-${b1().format("YYYY-MM-DD HH:mm:ss")}`,desc:"[ChangeMe]本规则由GKD网页端审查工具生成",rules:[{quickFind:S||void 0,activityIds:n.snapshot.activityId,matches:C.toString(),exampleUrls:m,snapshotUrls:p}]}]};kr(S1.stringify(I,void 0,2))}),d=Ze(!0),_=le(()=>zi[n.snapshot.id]),b=v=>{if(!_.value)return;const m=new URL(Xu(zi[n.snapshot.id]));typeof v.selector=="object"?m.searchParams.set("gkd",Ay(v.selector.toString())):m.searchParams.set("str",v.selector.toString()),kr(m.toString())};return(v,m)=>(se(),mt(Ls,{initialValue:{top:75,right:Math.max(315,12*E(jy)+135),width:Math.max(480,E(Py)*.3)},minWidth:300,sizeDraggable:"",class:"z-1 box-shadow-dim"},{default:T(({onRef:g})=>[H("div",Ry,[H("div",My,[L(E(g1),{value:d.value,"onUpdate:value":m[0]||(m[0]=p=>d.value=p)},{default:T(()=>[L(E(Pl),null,{default:T(()=>[L(E(of),{value:!1},{default:T(()=>[Ee(" 字符搜索 ")]),_:1}),L(E(of),{value:!0},{default:T(()=>[Ee(" 选择器查询 ")]),_:1})]),_:1})]),_:1},8,["value"]),H("div",{"flex-1":"","cursor-move":"",ref:g},null,512)]),L(E(y1),null,{default:T(()=>[L(E(x1),{value:r.value,"onUpdate:value":m[1]||(m[1]=p=>r.value=p),placeholder:d.value?"请输入选择器":"请输入字符",onKeyup:t1(E(c),["enter"]),inputProps:{class:"gkd_code"}},null,8,["value","placeholder","onKeyup"]),L(E(br),{onClick:E(c)},{icon:T(()=>[L(E(Vr),null,{default:T(()=>[Ly]),_:1})]),_:1},8,["onClick"])]),_:1}),zy,L(E(D1),{expandedNames:o.value,"onUpdate:expandedNames":m[2]||(m[2]=p=>o.value=p)},{default:T(()=>[(se(!0),It(Jr,null,ma(E(a),(p,C)=>(se(),mt(E(B1),{key:p.key,name:p.key},{header:T(()=>[p.nodes.length>1?(se(),It("span",Oy,Le(p.nodes.length),1)):Ot("",!0),H("span",{"break-all":"",title:typeof p.selector=="object"?"选择器":"搜索字符"},Le(p.selector.toString()),9,Dy)]),"header-extra":T(()=>[typeof p.selector=="object"&&p.selector.canCopy?(se(),mt(E(br),{key:0,size:"small",onClick:Cl(k=>E(h)(p),["stop"]),title:"复制规则"},{icon:T(()=>[L(E(Vr),null,{default:T(()=>[Fy]),_:1})]),_:2},1032,["onClick"])):Ot("",!0),Ky,_.value?(se(),mt(E(br),{key:1,size:"small",title:typeof p.selector=="object"?"复制查询链接":"复制搜索链接",onClick:Cl(k=>b(p),["stop"])},{icon:T(()=>[L(E(Vr),null,{default:T(()=>[By]),_:1})]),_:2},1032,["title","onClick"])):Ot("",!0),Uy,L(E(br),{size:"small",onClick:Cl(k=>E(a).splice(C,1),["stop"]),title:"删除记录"},{icon:T(()=>[L(E(Vr),null,{default:T(()=>[Hy]),_:1})]),_:2},1032,["onClick"])]),default:T(()=>[L(E(Pl),{style:{"max-height":"400px","overflow-y":"scroll","padding-bottom":"10px"}},{default:T(()=>[typeof p.selector=="string"||p.selector.tracks.length<=1?(se(!0),It(Jr,{key:0},ma(p.nodes.map(k=>Array.isArray(k)?k[0]:k),k=>(se(),mt(E(br),{key:k.id,onClick:S=>v.onUpdateFocusNode(k),size:"small",class:ya({"color-[#00F]":k===v.focusNode})},{default:T(()=>[Ee(Le(E(ga)(k)),1)]),_:2},1032,["onClick","class"]))),128)):(se(!0),It(Jr,{key:1},ma(p.nodes.map(k=>Array.isArray(k)?k:[k]),(k,S)=>(se(),mt(E(R1),{key:S},{default:T(()=>[L(E(br),{size:"small",onClick:I=>v.onUpdateTrack({nodes:k,selector:p.selector})},{default:T(()=>[L(E(Vr),null,{default:T(()=>[Wy]),_:1})]),_:2},1032,["onClick"]),L(E(br),{onClick:I=>v.onUpdateFocusNode(k[p.selector.trackIndex]),size:"small",class:ya({"color-[#00F]":k[p.selector.trackIndex]===v.focusNode})},{default:T(()=>[Ee(Le(E(ga)(k[p.selector.trackIndex])),1)]),_:2},1032,["onClick","class"])]),_:2},1024))),128))]),_:2},1024)]),_:2},1032,["name"]))),128))]),_:1},8,["expandedNames"])])]),_:1},8,["initialValue"]))}}),Gy={flex:"","flex-col":""},Jy=Pe({__name:"WindowCard",props:{snapshot:{},rootNode:{},focusNode:{},focusCount:{},onUpdateFocusNode:{type:Function,default:ri}},setup(e){const t=e,n=Ze([]);Cr([()=>t.focusNode,()=>t.focusCount],async()=>{if(!t.focusNode)return;const s=t.focusNode.id;da().then(async()=>{var h,d;await Gf(100),s===((h=t.focusNode)==null?void 0:h.id)&&((d=r.value)==null||d.scrollTo({key:s,behavior:"smooth",debounce:!0}))});let f=t.focusNode.parent;if(!f)return;const c=new Set(n.value);for(;f;)c.add(f.id),f=f.parent;c.size==n.value.length&&n.value.every(h=>c.has(h))||(n.value=[...c])});const r=Ze(),a=(s,f)=>{var c;return f.id===((c=t.focusNode)==null?void 0:c.id)},o=s=>{var c;const f=s.option.idQf||s.option.textQf||s.option.quickFind;return{onClick:()=>{t.onUpdateFocusNode(s.option)},style:{color:s.option.id==((c=t.focusNode)==null?void 0:c.id)?"#00F":void 0,fontWeight:f?"bold":void 0}}},l=s=>ga(s.option);return(s,f)=>(se(),It("div",Gy,[L(E(Xf),{size:"small",striped:"",singleLine:!1,themeOverrides:{thPaddingSmall:"2px 6px",tdPaddingSmall:"2px 6px"}},{default:T(()=>[L(E(Y1),null,{default:T(()=>[L(E(Rl),null,{default:T(()=>[L(E(zn),null,{default:T(()=>[Ee(" 设备 ")]),_:1}),L(E(zn),null,{default:T(()=>[Ee(" GKD ")]),_:1}),L(E(zn),null,{default:T(()=>[Ee(" 应用名称 ")]),_:1}),L(E(zn),null,{default:T(()=>[Ee(" 版本名称 ")]),_:1}),L(E(zn),null,{default:T(()=>[Ee(" 版本代码 ")]),_:1}),L(E(zn),null,{default:T(()=>[Ee(" 系统应用 ")]),_:1}),L(E(zn),null,{default:T(()=>[Ee(" 应用ID ")]),_:1}),L(E(zn),null,{default:T(()=>[Ee(" 界面ID ")]),_:1}),L(E(zn),null,{default:T(()=>[Ee(" 操作 ")]),_:1})]),_:1})]),_:1}),L(E(ec),null,{default:T(()=>[L(E(Rl),null,{default:T(()=>[L(E(dn),{class:"whitespace-nowrap w-0"},{default:T(()=>[Ee(Le(`${E(lf)(s.snapshot).manufacturer} Android ${E(lf)(s.snapshot).release||""}`),1)]),_:1}),L(E(dn),{class:"whitespace-nowrap"},{default:T(()=>[Ee(Le(E(w1)(s.snapshot).versionName),1)]),_:1}),L(E(dn),{class:"whitespace-nowrap",onClick:f[0]||(f[0]=c=>E(kr)(E(On)(s.snapshot).name))},{default:T(()=>[L(E(Mi),null,{default:T(()=>[Ee(Le(E(On)(s.snapshot).name),1)]),_:1})]),_:1}),L(E(dn),{class:"whitespace-nowrap",onClick:f[1]||(f[1]=c=>E(kr)(E(On)(s.snapshot).versionName))},{default:T(()=>[L(E(Mi),null,{default:T(()=>[Ee(Le(E(On)(s.snapshot).versionName),1)]),_:1})]),_:1}),L(E(dn),{class:"whitespace-nowrap",onClick:f[2]||(f[2]=c=>E(kr)(E(On)(s.snapshot).versionCode.toString()))},{default:T(()=>[L(E(Mi),null,{default:T(()=>[Ee(Le(E(On)(s.snapshot).versionCode),1)]),_:1})]),_:1}),L(E(dn),{class:"whitespace-nowrap"},{default:T(()=>[Ee(Le(E(On)(s.snapshot).isSystem?"是":"否"),1)]),_:1}),L(E(dn),{class:"whitespace-nowrap max-w-[max(12vw,180px)]",onClick:f[3]||(f[3]=c=>E(kr)(s.snapshot.appId))},{default:T(()=>[L(E(Mi),null,{default:T(()=>[Ee(Le(s.snapshot.appId),1)]),_:1})]),_:1}),L(E(dn),{onClick:f[4]||(f[4]=c=>E(kr)(s.snapshot.activityId)),class:"break-words max-w-[max(15vw,200px)] text-left direction-rtl"},{default:T(()=>[L(E(Mi),null,{default:T(()=>[Ee(Le(s.snapshot.activityId),1)]),_:1})]),_:1}),L(E(dn),null,{default:T(()=>[Uf(s.$slots,"default")]),_:3})]),_:3})]),_:3})]),_:3}),L(E(hv),{ref_key:"treeRef",ref:r,virtualScroll:"",showLine:"",keyField:"id",expandedKeys:n.value,"onUpdate:expandedKeys":f[5]||(f[5]=c=>n.value=c),data:[s.rootNode],filter:a,nodeProps:o,renderLabel:l},null,8,["expandedKeys","data","filter","nodeProps","renderLabel"])]))}}),Qy={bg:"#eee","px-2px":""},Yy=Pe({__name:"MultiFocusCard",props:{focusNode:{},focusNodes:{},onUpdateFocusNode:{type:Function,default:ri},onClose:{type:Function,default:ri}},setup(e){const n=document.documentElement.scrollWidth/100*25.5;return(r,a)=>(se(),mt(Ls,{initialValue:{top:215,left:n},class:"z-2 box-shadow-dim w-420px",disabled:!r.focusNodes},{default:T(({onRef:o})=>[r.focusNodes?(se(),mt(E(i1),{key:0,size:"small",closable:"",onClose:r.onClose},{header:T(()=>[H("div",{ref:o,"cursor-move":""},[Ee(" 位置 "),H("span",Qy,Le(`${r.focusNodes.position.x.toFixed(0)},${r.focusNodes.position.y.toFixed()}`),1),Ee(" 存在 "+Le(r.focusNodes.nodes.length)+" 个层叠节点 ",1)],512)]),default:T(()=>[L(E(Pl),{style:{"max-height":"400px","overflow-y":"scroll","padding-bottom":"10px"}},{default:T(()=>[(se(!0),It(Jr,null,ma(r.focusNodes.nodes,l=>(se(),mt(E(br),{key:l.id,onClick:s=>r.onUpdateFocusNode(l),size:"small",class:ya({"color-[#00F]":l===r.focusNode})},{default:T(()=>[Ee(Le(E(ga)(l)),1)]),_:2},1032,["onClick","class"]))),128))]),_:1})]),_:2},1032,["onClose"])):Ot("",!0)]),_:1},8,["initialValue","disabled"]))}}),Zy={"h-full":"",flex:"","gap-5px":"","p-5px":"","box-border":""},Xy=H("svg",{viewBox:"0 0 24 24"},[H("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),eb={key:0,class:"gkd_code py-2px px-4px rounded-2px bg-[#eee]"},tb=H("div",{"opacity-75":"","text-12px":""},"*为简化视图已隐藏部分节点",-1),cb=Pe({__name:"SnapshotPage",setup(e){const t=(()=>{const g=()=>l1(()=>import("./TrackGraph-B7kpqlUB.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url);return setTimeout(g,3e3),a1(g)})(),n=Vf(),r=Wf(),a=$1(),o=le(()=>String(n.params.snapshotId||"")),l=le(()=>{const g=Number(n.query.showSize||"");return!Number.isSafeInteger(g)||g<=0?2e3:g}),s=Ze(""),f=Ze();Ra(async()=>{if(!Number.isSafeInteger(+o.value)){vn.error("非法快照ID");return}const g=await ef.getItem(o.value);if(!g){tf.start();try{const C=zi[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{tf.finish()}vn.error("快照数据缺失");return}setTimeout(()=>{const C=zi[g.id];C&&N1(C)},1e3),f1()&&Hf.autoUploadImport&&setTimeout(async()=>{I1(g),zi[g.id]||q1(await ef.getItem(o.value))},1e3),g.nodes.length>l.value&&(vn.warning(`当前展示节点数量为${l.value}
|
|
274
|
+
之后的${g.nodes.length-l.value}个节点将被丢弃
|
|
275
|
+
使用showSize查询参数可以修改展示数量`),g.nodes=g.nodes.slice(0,l.value));const p=await o1.getItem(o.value);if(!p){vn.create("截屏数据缺失");return}s.value=URL.createObjectURL(new Blob([p],{type:"image/png"})),f.value=g,c.value=k1(g.nodes),a.value="快照-"+On(g).name||g.appId,h.value||(h.value=c.value)});const c=Ze(),h=Ze(),d=Ze(0),_=async()=>{vn.success("删除成功,即将回到首页"),await Gf(2e3),r.replace({path:"/"})},b=Ze(),v=Ze(!1);Ri(()=>{b.value&&(v.value=!0)});const m=Ze();return Cr(()=>h.value,g=>{var C;const p=(C=m.value)==null?void 0:C.nodes;p&&(!g||!p.includes(g))&&(m.value=void 0)}),(g,p)=>(se(),It("div",Zy,[s.value&&f.value?(se(),mt(Pv,{key:0,url:s.value,snapshot:f.value,rootNode:c.value,focusNode:h.value,onUpdateFocusNode:p[0]||(p[0]=C=>{h.value=C,d.value++}),onUpdateFocusNodes:p[1]||(p[1]=C=>m.value=C)},null,8,["url","snapshot","rootNode","focusNode"])):Ot("",!0),f.value&&c.value?(se(),mt(Jy,{key:1,rootNode:c.value,snapshot:f.value,focusNode:h.value,onUpdateFocusNode:p[2]||(p[2]=C=>h.value=C),focusCount:d.value,class:"flex-1"},{default:T(()=>[f.value?(se(),mt(u1,{key:0,snapshot:f.value,onDelete:_,showPreview:!1},null,8,["snapshot"])):Ot("",!0)]),_:1},8,["rootNode","snapshot","focusNode","focusCount"])):Ot("",!0),h.value?(se(),mt(Cv,{key:2,focusNode:h.value},null,8,["focusNode"])):Ot("",!0),c.value&&f.value?(se(),mt(Vy,{key:3,snapshot:f.value,rootNode:c.value,focusNode:h.value,onUpdateFocusNode:p[3]||(p[3]=C=>{h.value=C,d.value++}),onUpdateTrack:p[4]||(p[4]=C=>b.value=C)},null,8,["snapshot","rootNode","focusNode"])):Ot("",!0),L(Yy,{focusNode:h.value,focusNodes:m.value,onUpdateFocusNode:p[5]||(p[5]=C=>{h.value=C,d.value++}),onClose:p[6]||(p[6]=C=>m.value=void 0)},null,8,["focusNode","focusNodes"]),L(E(s1),{show:v.value,"onUpdate:show":p[7]||(p[7]=C=>v.value=C),preset:"dialog",title:"选择器路径视图",class:"min-w-[calc(var(--gkd-width)*0.4)]",onAfterLeave:p[8]||(p[8]=C=>b.value=void 0)},{icon:T(()=>[L(E(Vr),null,{default:T(()=>[Xy]),_:1})]),default:T(()=>[b.value?(se(),It("div",eb,Le(b.value.selector.toString()),1)):Ot("",!0),b.value?(se(),mt(E(t),{key:1,track:b.value},null,8,["track"])):Ot("",!0),tb]),_:1},8,["show"])]))}});export{cb as default};
|
|
276
|
+
//# sourceMappingURL=SnapshotPage-7pjh0kaY.js.map
|