@gkd-kit/inspect 0.0.1729692768932 → 0.0.1729873789619

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.
Files changed (64) hide show
  1. package/dist/assets/ActionCard.vue_vue_type_script_setup_true_lang-CCPNlPHa.js +17 -0
  2. package/dist/assets/ActionCard.vue_vue_type_script_setup_true_lang-CCPNlPHa.js.map +1 -0
  3. package/dist/assets/DevicePage-Cm1OoyKo.js +49 -0
  4. package/dist/assets/DevicePage-Cm1OoyKo.js.map +1 -0
  5. package/dist/assets/HomePage-CT-J4eCH.js +119 -0
  6. package/dist/assets/{HomePage-DvhjaXqH.js.map → HomePage-CT-J4eCH.js.map} +1 -1
  7. package/dist/assets/ImportPage-BBJWt7tZ.js +2 -0
  8. package/dist/assets/ImportPage-BBJWt7tZ.js.map +1 -0
  9. package/dist/assets/PreviewSharePage-DEMuLTdc.js +2 -0
  10. package/dist/assets/{PreviewSharePage-Hyw0Tb6U.js.map → PreviewSharePage-DEMuLTdc.js.map} +1 -1
  11. package/dist/assets/{SelectorPage-D1_qZf8a.js → SelectorPage-DURH77U7.js} +2 -2
  12. package/dist/assets/SelectorPage-DURH77U7.js.map +1 -0
  13. package/dist/assets/SnapshotPage-DYT1omfT.js +279 -0
  14. package/dist/assets/SnapshotPage-DYT1omfT.js.map +1 -0
  15. package/dist/assets/{TrackGraph-D0s0XMN9.js → TrackGraph-CInYslON.js} +3 -3
  16. package/dist/assets/{TrackGraph-D0s0XMN9.js.map → TrackGraph-CInYslON.js.map} +1 -1
  17. package/dist/assets/{_404Page-WDc2H4Hg.js → _404Page-CuCx1IdG.js} +2 -2
  18. package/dist/assets/{_404Page-WDc2H4Hg.js.map → _404Page-CuCx1IdG.js.map} +1 -1
  19. package/dist/assets/dayjs.min-uJENVlBD.js +362 -0
  20. package/dist/assets/{dayjs.min-CkIlo5Nq.js.map → dayjs.min-uJENVlBD.js.map} +1 -1
  21. package/dist/assets/error-CT8oyr5o.js +2 -0
  22. package/dist/assets/{error-KopW7vt9.js.map → error-CT8oyr5o.js.map} +1 -1
  23. package/dist/assets/{export-Buob1Zpw.js → export-B-6cvWy0.js} +5 -5
  24. package/dist/assets/export-B-6cvWy0.js.map +1 -0
  25. package/dist/assets/fetch-BzpHdKUe.js +3 -0
  26. package/dist/assets/fetch-BzpHdKUe.js.map +1 -0
  27. package/dist/assets/import-zQbiPjPT.js +2 -0
  28. package/dist/assets/import-zQbiPjPT.js.map +1 -0
  29. package/dist/assets/{index-BhADOIu0.js → index-BaGfsKYf.js} +2 -2
  30. package/dist/assets/{index-BhADOIu0.js.map → index-BaGfsKYf.js.map} +1 -1
  31. package/dist/assets/{index-B5vK2Zkg.js → index-JV7EmdVw.js} +3 -3
  32. package/dist/assets/{index-B5vK2Zkg.js.map → index-JV7EmdVw.js.map} +1 -1
  33. package/dist/assets/index-PnYsQg37.js +900 -0
  34. package/dist/assets/index-PnYsQg37.js.map +1 -0
  35. package/dist/assets/polyfills-DqeL3OL8.js +1 -0
  36. package/dist/assets/snapshot-B3ZTvFbe.js +2 -0
  37. package/dist/assets/snapshot-B3ZTvFbe.js.map +1 -0
  38. package/dist/assets/{table-4d-AVR8Z.js → table-7JBU8g1m.js} +17 -17
  39. package/dist/assets/{table-4d-AVR8Z.js.map → table-7JBU8g1m.js.map} +1 -1
  40. package/dist/index.html +3 -3
  41. package/package.json +4 -3
  42. package/dist/assets/ActionCard.vue_vue_type_script_setup_true_lang-DAWLUyKw.js +0 -17
  43. package/dist/assets/ActionCard.vue_vue_type_script_setup_true_lang-DAWLUyKw.js.map +0 -1
  44. package/dist/assets/DevicePage-tRz2IA8K.js +0 -49
  45. package/dist/assets/DevicePage-tRz2IA8K.js.map +0 -1
  46. package/dist/assets/HomePage-DvhjaXqH.js +0 -119
  47. package/dist/assets/ImportPage-Gwj1_Wz3.js +0 -2
  48. package/dist/assets/ImportPage-Gwj1_Wz3.js.map +0 -1
  49. package/dist/assets/PreviewSharePage-Hyw0Tb6U.js +0 -2
  50. package/dist/assets/SelectorPage-D1_qZf8a.js.map +0 -1
  51. package/dist/assets/SnapshotPage-CJ6fnVIZ.js +0 -279
  52. package/dist/assets/SnapshotPage-CJ6fnVIZ.js.map +0 -1
  53. package/dist/assets/dayjs.min-CkIlo5Nq.js +0 -362
  54. package/dist/assets/error-KopW7vt9.js +0 -2
  55. package/dist/assets/export-Buob1Zpw.js.map +0 -1
  56. package/dist/assets/fetch-2UM4nFb0.js +0 -332
  57. package/dist/assets/fetch-2UM4nFb0.js.map +0 -1
  58. package/dist/assets/import-ChO_D4YK.js +0 -2
  59. package/dist/assets/import-ChO_D4YK.js.map +0 -1
  60. package/dist/assets/index-CE_5kTG8.js +0 -2
  61. package/dist/assets/index-CE_5kTG8.js.map +0 -1
  62. package/dist/assets/index-CO1qYhnZ.js +0 -567
  63. package/dist/assets/index-CO1qYhnZ.js.map +0 -1
  64. package/dist/assets/polyfills-qB0P6p8B.js +0 -1
@@ -1,279 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1729692768932/files/dist/assets/TrackGraph-D0s0XMN9.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1729692768932/files/dist/assets/index-CO1qYhnZ.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1729692768932/files/dist/assets/index-DlhjoJf3.css","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1729692768932/files/dist/assets/dayjs.min-CkIlo5Nq.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1729692768932/files/dist/assets/index-B5vK2Zkg.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1729692768932/files/dist/assets/fetch-2UM4nFb0.js"])))=>i.map(i=>d[i]);
2
- import{h as Rt,v as L,a as tt,g as jn,e as X,f as it,b as It,u as Oa,a0 as e1,a1 as Pl,a2 as n1,a3 as ja,d as Rl,r as me,m as Z,l as ma,j as Ji,q as Ll,a4 as Ol,y as Ce,a5 as r1,t as wt,a6 as Vf,a7 as Qf,a8 as Gf,a9 as i1,aa as Le,ab as mi,ac as a1,ad as Ju,ae as Jf,af as o1,ag as Zn,ah as s1,ai as l1,aj as u1,c as f1,ak as c1,al as h1,n as bs,N as d1,x as v1,$ as p1,am as ks,an as _1,Q as za,ao as m1,p as Yf,i as g1,B as Fi,T as Pr,ap as Cs,o as va,aq as Yu,ar as Xu,as as ga,A as At,R as jl,at as po,C as et,au as de,D as ae,av as Xf,G as $,I as zn,K as A,O as ge,aw as Ps,ax as Kr,ay as y1,F as q,E as B,az as wa,M as Tt,L as ye,aA as w1,P as Eo,aB as _o,Z as Zf,aC as Bi,aD as tc,H as Ki,Y as b1,aE as xs,aF as k1,X as C1,aG as Zu,aH as x1,W as tf,aI as S1,aJ as $1,J as E1,_ as N1}from"./index-CO1qYhnZ.js";import{_ as I1}from"./ActionCard.vue_vue_type_script_setup_true_lang-DAWLUyKw.js";import{f as Rs,c as er,b as fi,m as En,a as ec,l as ef,g as q1}from"./fetch-2UM4nFb0.js";import{e as A1,f as T1,g as M1}from"./export-Buob1Zpw.js";import{h as Di,C as P1,e as R1,c as nf,d as L1,V as O1,f as rf,N as af,i as nc,j as j1,_ as rc,k as Ui,l as z1,m as of,n as F1,o as D1,b as B1,g as tr,p as K1,q as sf,r as lf,s as U1}from"./dayjs.min-CkIlo5Nq.js";import{N as Fa,_ as ic,l as ac,r as W1}from"./index-B5vK2Zkg.js";import{u as H1,a as V1,b as Q1}from"./index-BhADOIu0.js";import{e as G1,a as uf}from"./error-KopW7vt9.js";import"./index-CE_5kTG8.js";function oc(t){return typeof t=="string"?`s-${t}`:`n-${t}`}const J1=Rt({name:"ChevronLeft",render(){return L("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},L("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"}))}}),Y1=Rt({name:"Switcher",render(){return L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},L("path",{d:"M12 8l10 8l-10 8z"}))}}),Ut="0!important",sc="-1px!important";function Oi(t){return it(`${t}-type`,[X("& +",[tt("button",{},[it(`${t}-type`,[It("border",{borderLeftWidth:Ut}),It("state-border",{left:sc})])])])])}function ji(t){return it(`${t}-type`,[X("& +",[tt("button",[it(`${t}-type`,[It("border",{borderTopWidth:Ut}),It("state-border",{top:sc})])])])])}const X1=tt("button-group",`
3
- flex-wrap: nowrap;
4
- display: inline-flex;
5
- position: relative;
6
- `,[jn("vertical",{flexDirection:"row"},[jn("rtl",[tt("button",[X("&:first-child:not(:last-child)",`
7
- margin-right: ${Ut};
8
- border-top-right-radius: ${Ut};
9
- border-bottom-right-radius: ${Ut};
10
- `),X("&:last-child:not(:first-child)",`
11
- margin-left: ${Ut};
12
- border-top-left-radius: ${Ut};
13
- border-bottom-left-radius: ${Ut};
14
- `),X("&:not(:first-child):not(:last-child)",`
15
- margin-left: ${Ut};
16
- margin-right: ${Ut};
17
- border-radius: ${Ut};
18
- `),Oi("default"),it("ghost",[Oi("primary"),Oi("info"),Oi("success"),Oi("warning"),Oi("error")])])])]),it("vertical",{flexDirection:"column"},[tt("button",[X("&:first-child:not(:last-child)",`
19
- margin-bottom: ${Ut};
20
- margin-left: ${Ut};
21
- margin-right: ${Ut};
22
- border-bottom-left-radius: ${Ut};
23
- border-bottom-right-radius: ${Ut};
24
- `),X("&:last-child:not(:first-child)",`
25
- margin-top: ${Ut};
26
- margin-left: ${Ut};
27
- margin-right: ${Ut};
28
- border-top-left-radius: ${Ut};
29
- border-top-right-radius: ${Ut};
30
- `),X("&:not(:first-child):not(:last-child)",`
31
- margin: ${Ut};
32
- border-radius: ${Ut};
33
- `),ji("default"),it("ghost",[ji("primary"),ji("info"),ji("success"),ji("warning"),ji("error")])])])]),Z1={size:{type:String,default:void 0},vertical:Boolean},tv=Rt({name:"ButtonGroup",props:Z1,setup(t){const{mergedClsPrefixRef:e,mergedRtlRef:n}=Oa(t);return e1("-button-group",X1,e),Pl(n1,t),{rtlEnabled:ja("ButtonGroup",n,e),mergedClsPrefix:e}},render(){const{mergedClsPrefix:t}=this;return L("div",{class:[`${t}-button-group`,this.rtlEnabled&&`${t}-button-group--rtl`,this.vertical&&`${t}-button-group--vertical`],role:"group"},this.$slots)}});function ev(t){const{fontWeight:e,textColor1:n,textColor2:r,textColorDisabled:a,dividerColor:o,fontSize:s}=t;return{titleFontSize:s,titleFontWeight:e,dividerColor:o,titleTextColor:n,titleTextColorDisabled:a,fontSize:s,textColor:r,arrowColor:r,arrowColorDisabled:a,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}}const nv={name:"Collapse",common:Rl,self:ev},rv=tt("collapse","width: 100%;",[tt("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
- `,[it("disabled",[It("header","cursor: not-allowed;",[It("header-main",`
41
- color: var(--n-title-text-color-disabled);
42
- `),tt("collapse-item-arrow",`
43
- color: var(--n-arrow-color-disabled);
44
- `)])]),tt("collapse-item","margin-left: 32px;"),X("&:first-child","margin-top: 0;"),X("&:first-child >",[It("header","padding-top: 0;")]),it("left-arrow-placement",[It("header",[tt("collapse-item-arrow","margin-right: 4px;")])]),it("right-arrow-placement",[It("header",[tt("collapse-item-arrow","margin-left: 4px;")])]),It("content-wrapper",[It("content-inner","padding-top: 16px;"),Rs({duration:"0.15s"})]),it("active",[It("header",[it("active",[tt("collapse-item-arrow","transform: rotate(90deg);")])])]),X("&:not(:first-child)","border-top: 1px solid var(--n-divider-color);"),jn("disabled",[it("trigger-area-main",[It("header",[It("header-main","cursor: pointer;"),tt("collapse-item-arrow","cursor: default;")])]),it("trigger-area-arrow",[It("header",[tt("collapse-item-arrow","cursor: pointer;")])]),it("trigger-area-extra",[It("header",[It("header-extra","cursor: pointer;")])])]),It("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
- `,[It("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
- `),It("header-extra",`
62
- display: flex;
63
- align-items: center;
64
- transition: color .3s var(--n-bezier);
65
- color: var(--n-text-color);
66
- `),tt("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
- `)])])]),iv=Object.assign(Object.assign({},Ji.props),{defaultExpandedNames:{type:[Array,String],default:null},expandedNames:[Array,String],arrowPlacement:{type:String,default:"left"},accordion:{type:Boolean,default:!1},displayDirective:{type:String,default:"if"},triggerAreas:{type:Array,default:()=>["main","extra","arrow"]},onItemHeaderClick:[Function,Array],"onUpdate:expandedNames":[Function,Array],onUpdateExpandedNames:[Function,Array],onExpandedNamesChange:{type:[Function,Array],validator:()=>!0,default:void 0}}),lc=Ol("n-collapse"),av=Rt({name:"Collapse",props:iv,setup(t,{slots:e}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:a}=Oa(t),o=me(t.defaultExpandedNames),s=Z(()=>t.expandedNames),l=ma(s,o),c=Ji("Collapse","-collapse",rv,nv,t,n);function f(_){const{"onUpdate:expandedNames":v,onUpdateExpandedNames:y,onExpandedNamesChange:C}=t;y&&Ce(y,_),v&&Ce(v,_),C&&Ce(C,_),o.value=_}function h(_){const{onItemHeaderClick:v}=t;v&&Ce(v,_)}function d(_,v,y){const{accordion:C}=t,{value:b}=l;if(C)_?(f([v]),h({name:v,expanded:!0,event:y})):(f([]),h({name:v,expanded:!1,event:y}));else if(!Array.isArray(b))f([v]),h({name:v,expanded:!0,event:y});else{const x=b.slice(),N=x.findIndex(T=>v===T);~N?(x.splice(N,1),f(x),h({name:v,expanded:!1,event:y})):(x.push(v),f(x),h({name:v,expanded:!0,event:y}))}}Pl(lc,{props:t,mergedClsPrefixRef:n,expandedNamesRef:l,slots:e,toggleItem:d});const p=ja("Collapse",a,n),g=Z(()=>{const{common:{cubicBezierEaseInOut:_},self:{titleFontWeight:v,dividerColor:y,titlePadding:C,titleTextColor:b,titleTextColorDisabled:x,textColor:N,arrowColor:T,fontSize:U,titleFontSize:G,arrowColorDisabled:Y,itemMargin:vt}}=c.value;return{"--n-font-size":U,"--n-bezier":_,"--n-text-color":N,"--n-divider-color":y,"--n-title-padding":C,"--n-title-font-size":G,"--n-title-text-color":b,"--n-title-text-color-disabled":x,"--n-title-font-weight":v,"--n-arrow-color":T,"--n-arrow-color-disabled":Y,"--n-item-margin":vt}}),m=r?Ll("collapse",void 0,g,t):void 0;return{rtlEnabled:p,mergedTheme:c,mergedClsPrefix:n,cssVars:r?void 0:g,themeClass:m==null?void 0:m.themeClass,onRender:m==null?void 0:m.onRender}},render(){var t;return(t=this.onRender)===null||t===void 0||t.call(this),L("div",{class:[`${this.mergedClsPrefix}-collapse`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse--rtl`,this.themeClass],style:this.cssVars},this.$slots)}}),ov=Rt({name:"CollapseItemContent",props:{displayDirective:{type:String,required:!0},show:Boolean,clsPrefix:{type:String,required:!0}},setup(t){return{onceTrue:r1(wt(t,"show"))}},render(){return L(Gf,null,{default:()=>{const{show:t,displayDirective:e,onceTrue:n,clsPrefix:r}=this,a=e==="show"&&n,o=L("div",{class:`${r}-collapse-item__content-wrapper`},L("div",{class:`${r}-collapse-item__content-inner`},this.$slots));return a?Vf(o,[[Qf,t]]):t?o:null}})}}),sv={title:String,name:[String,Number],disabled:Boolean,displayDirective:String},lv=Rt({name:"CollapseItem",props:sv,setup(t){const{mergedRtlRef:e}=Oa(t),n=i1(),r=Le(()=>{var d;return(d=t.name)!==null&&d!==void 0?d:n}),a=mi(lc);a||a1("collapse-item","`n-collapse-item` must be placed inside `n-collapse`.");const{expandedNamesRef:o,props:s,mergedClsPrefixRef:l,slots:c}=a,f=Z(()=>{const{value:d}=o;if(Array.isArray(d)){const{value:p}=r;return!~d.findIndex(g=>g===p)}else if(d){const{value:p}=r;return p!==d}return!0});return{rtlEnabled:ja("Collapse",e,l),collapseSlots:c,randomName:n,mergedClsPrefix:l,collapsed:f,triggerAreas:wt(s,"triggerAreas"),mergedDisplayDirective:Z(()=>{const{displayDirective:d}=t;return d||s.displayDirective}),arrowPlacement:Z(()=>s.arrowPlacement),handleClick(d){let p="main";Di(d,"arrow")&&(p="arrow"),Di(d,"extra")&&(p="extra"),s.triggerAreas.includes(p)&&a&&!t.disabled&&a.toggleItem(f.value,r.value,d)}}},render(){const{collapseSlots:t,$slots:e,arrowPlacement:n,collapsed:r,mergedDisplayDirective:a,mergedClsPrefix:o,disabled:s,triggerAreas:l}=this,c=Ju(e.header,{collapsed:r},()=>[this.title]),f=e["header-extra"]||t["header-extra"],h=e.arrow||t.arrow;return L("div",{class:[`${o}-collapse-item`,`${o}-collapse-item--${n}-arrow-placement`,s&&`${o}-collapse-item--disabled`,!r&&`${o}-collapse-item--active`,l.map(d=>`${o}-collapse-item--trigger-area-${d}`)]},L("div",{class:[`${o}-collapse-item__header`,!r&&`${o}-collapse-item__header--active`]},L("div",{class:`${o}-collapse-item__header-main`,onClick:this.handleClick},n==="right"&&c,L("div",{class:`${o}-collapse-item-arrow`,key:this.rtlEnabled?0:1,"data-arrow":!0},Ju(h,{collapsed:r},()=>{var d;return[L(Jf,{clsPrefix:o},{default:(d=t.expandIcon)!==null&&d!==void 0?d:()=>this.rtlEnabled?L(J1,null):L(P1,null)})]})),n==="left"&&c),o1(f,{collapsed:r},d=>L("div",{class:`${o}-collapse-item__header-extra`,onClick:this.handleClick,"data-extra":!0},d))),L(ov,{clsPrefix:o,displayDirective:a,show:!r},e))}}),uv={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};function fv(t){const{dividerColor:e,cardColor:n,modalColor:r,popoverColor:a,tableHeaderColor:o,tableColorStriped:s,textColor1:l,textColor2:c,borderRadius:f,fontWeightStrong:h,lineHeight:d,fontSizeSmall:p,fontSizeMedium:g,fontSizeLarge:m}=t;return Object.assign(Object.assign({},uv),{fontSizeSmall:p,fontSizeMedium:g,fontSizeLarge:m,lineHeight:d,borderRadius:f,borderColor:Zn(n,e),borderColorModal:Zn(r,e),borderColorPopover:Zn(a,e),tdColor:n,tdColorModal:r,tdColorPopover:a,tdColorStriped:Zn(n,s),tdColorStripedModal:Zn(r,s),tdColorStripedPopover:Zn(a,s),thColor:Zn(n,o),thColorModal:Zn(r,o),thColorPopover:Zn(a,o),thTextColor:l,tdTextColor:c,thFontWeight:h})}const cv={name:"Table",common:Rl,self:fv};function hv(t){const{borderRadiusSmall:e,dividerColor:n,hoverColor:r,pressedColor:a,primaryColor:o,textColor3:s,textColor2:l,textColorDisabled:c,fontSize:f}=t;return{fontSize:f,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:e,nodeColorHover:r,nodeColorPressed:a,nodeColorActive:f1(o,{alpha:.1}),arrowColor:s,nodeTextColor:l,nodeTextColorDisabled:c,loadingColor:o,dropMarkColor:o,lineColor:n}}const dv=s1({name:"Tree",common:Rl,peers:{Checkbox:l1,Scrollbar:u1,Empty:R1},self:hv}),vv=X([tt("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
- `,[X("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
- `,[X("&:last-child",`
107
- border-right: 0px solid var(--n-merged-border-color);
108
- `)]),X("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
- `,[X("&:last-child",`
120
- border-right: 0px solid var(--n-merged-border-color);
121
- `)]),it("bordered",`
122
- border: 1px solid var(--n-merged-border-color);
123
- border-radius: var(--n-border-radius);
124
- `,[X("tr",[X("&:last-child",[X("td",`
125
- border-bottom: 0 solid var(--n-merged-border-color);
126
- `)])])]),it("single-line",[X("th",`
127
- border-right: 0px solid var(--n-merged-border-color);
128
- `),X("td",`
129
- border-right: 0px solid var(--n-merged-border-color);
130
- `)]),it("single-column",[X("tr",[X("&:not(:last-child)",[X("td",`
131
- border-bottom: 0px solid var(--n-merged-border-color);
132
- `)])])]),it("striped",[X("tr:nth-of-type(even)",[X("td","background-color: var(--n-td-color-striped)")])]),jn("bottom-bordered",[X("tr",[X("&:last-child",[X("td",`
133
- border-bottom: 0px solid var(--n-merged-border-color);
134
- `)])])])]),c1(tt("table",`
135
- background-color: var(--n-td-color-modal);
136
- --n-merged-border-color: var(--n-border-color-modal);
137
- `,[X("th",`
138
- background-color: var(--n-th-color-modal);
139
- `),X("td",`
140
- background-color: var(--n-td-color-modal);
141
- `)])),h1(tt("table",`
142
- background-color: var(--n-td-color-popover);
143
- --n-merged-border-color: var(--n-border-color-popover);
144
- `,[X("th",`
145
- background-color: var(--n-th-color-popover);
146
- `),X("td",`
147
- background-color: var(--n-td-color-popover);
148
- `)]))]),pv=Object.assign(Object.assign({},Ji.props),{bordered:{type:Boolean,default:!0},bottomBordered:{type:Boolean,default:!0},singleLine:{type:Boolean,default:!0},striped:Boolean,singleColumn:Boolean,size:{type:String,default:"medium"}}),_v=Rt({name:"Table",props:pv,setup(t){const{mergedClsPrefixRef:e,inlineThemeDisabled:n,mergedRtlRef:r}=Oa(t),a=Ji("Table","-table",vv,cv,t,e),o=ja("Table",r,e),s=Z(()=>{const{size:c}=t,{self:{borderColor:f,tdColor:h,tdColorModal:d,tdColorPopover:p,thColor:g,thColorModal:m,thColorPopover:_,thTextColor:v,tdTextColor:y,borderRadius:C,thFontWeight:b,lineHeight:x,borderColorModal:N,borderColorPopover:T,tdColorStriped:U,tdColorStripedModal:G,tdColorStripedPopover:Y,[bs("fontSize",c)]:vt,[bs("tdPadding",c)]:Ot,[bs("thPadding",c)]:K},common:{cubicBezierEaseInOut:Zt}}=a.value;return{"--n-bezier":Zt,"--n-td-color":h,"--n-td-color-modal":d,"--n-td-color-popover":p,"--n-td-text-color":y,"--n-border-color":f,"--n-border-color-modal":N,"--n-border-color-popover":T,"--n-border-radius":C,"--n-font-size":vt,"--n-th-color":g,"--n-th-color-modal":m,"--n-th-color-popover":_,"--n-th-font-weight":b,"--n-th-text-color":v,"--n-line-height":x,"--n-td-padding":Ot,"--n-th-padding":K,"--n-td-color-striped":U,"--n-td-color-striped-modal":G,"--n-td-color-striped-popover":Y}}),l=n?Ll("table",Z(()=>t.size[0]),s,t):void 0;return{rtlEnabled:o,mergedClsPrefix:e,cssVars:n?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var t;const{mergedClsPrefix:e}=this;return(t=this.onRender)===null||t===void 0||t.call(this),L("table",{class:[`${e}-table`,this.themeClass,{[`${e}-table--rtl`]:this.rtlEnabled,[`${e}-table--bottom-bordered`]:this.bottomBordered,[`${e}-table--bordered`]:this.bordered,[`${e}-table--single-line`]:this.singleLine,[`${e}-table--single-column`]:this.singleColumn,[`${e}-table--striped`]:this.striped}],style:this.cssVars},this.$slots)}}),mv=Rt({name:"Tr",render(){return L("tr",null,this.$slots)}}),gv=Rt({name:"Td",render(){return L("td",null,this.$slots)}}),yv=Rt({name:"Tbody",render(){return L("tbody",null,this.$slots)}}),uc=Ol("n-tree-select"),Da=Ol("n-tree"),wv=Rt({name:"NTreeSwitcher",props:{clsPrefix:{type:String,required:!0},indent:{type:Number,required:!0},expanded:Boolean,selected:Boolean,hide:Boolean,loading:Boolean,onClick:Function,tmNode:{type:Object,required:!0}},setup(t){const{renderSwitcherIconRef:e}=mi(Da,null);return()=>{const{clsPrefix:n,expanded:r,hide:a,indent:o,onClick:s}=t;return L("span",{"data-switcher":!0,class:[`${n}-tree-node-switcher`,r&&`${n}-tree-node-switcher--expanded`,a&&`${n}-tree-node-switcher--hide`],style:{width:`${o}px`},onClick:s},L("div",{class:`${n}-tree-node-switcher__icon`},L(d1,null,{default:()=>{if(t.loading)return L(v1,{clsPrefix:n,key:"loading",radius:85,strokeWidth:20});const{value:l}=e;return l?l({expanded:t.expanded,selected:t.selected,option:t.tmNode.rawNode}):L(Jf,{clsPrefix:n,key:"switcher"},{default:()=>L(Y1,null)})}})))}}}),bv=Rt({name:"NTreeNodeCheckbox",props:{clsPrefix:{type:String,required:!0},indent:{type:Number,required:!0},right:Boolean,focusable:Boolean,disabled:Boolean,checked:Boolean,indeterminate:Boolean,onCheck:Function},setup(t){const e=mi(Da);function n(a){const{onCheck:o}=t;o&&o(a)}function r(a){n(a)}return{handleUpdateValue:r,mergedTheme:e.mergedThemeRef}},render(){const{clsPrefix:t,mergedTheme:e,checked:n,indeterminate:r,disabled:a,focusable:o,indent:s,handleUpdateValue:l}=this;return L("span",{class:[`${t}-tree-node-checkbox`,this.right&&`${t}-tree-node-checkbox--right`],style:{width:`${s}px`},"data-checkbox":!0},L(p1,{focusable:o,disabled:a,theme:e.peers.Checkbox,themeOverrides:e.peerOverrides.Checkbox,checked:n,indeterminate:r,onUpdateChecked:l}))}}),kv=Rt({name:"TreeNodeContent",props:{clsPrefix:{type:String,required:!0},disabled:Boolean,checked:Boolean,selected:Boolean,onClick:Function,onDragstart:Function,tmNode:{type:Object,required:!0},nodeProps:Object},setup(t){const{renderLabelRef:e,renderPrefixRef:n,renderSuffixRef:r,labelFieldRef:a}=mi(Da),o=me(null);function s(c){const{onClick:f}=t;f&&f(c)}function l(c){s(c)}return{selfRef:o,renderLabel:e,renderPrefix:n,renderSuffix:r,labelField:a,handleClick:l}},render(){const{clsPrefix:t,labelField:e,nodeProps:n,checked:r=!1,selected:a=!1,renderLabel:o,renderPrefix:s,renderSuffix:l,handleClick:c,onDragstart:f,tmNode:{rawNode:h,rawNode:{prefix:d,suffix:p,[e]:g}}}=this;return L("span",Object.assign({},n,{ref:"selfRef",class:[`${t}-tree-node-content`,n==null?void 0:n.class],onClick:c,draggable:f===void 0?void 0:!0,onDragstart:f}),s||d?L("div",{class:`${t}-tree-node-content__prefix`},s?s({option:h,selected:a,checked:r}):ks(d)):null,L("div",{class:`${t}-tree-node-content__text`},o?o({option:h,selected:a,checked:r}):ks(g)),l||p?L("div",{class:`${t}-tree-node-content__suffix`},l?l({option:h,selected:a,checked:r}):ks(p)):null)}});function ff({position:t,offsetLevel:e,indent:n,el:r}){const a={position:"absolute",boxSizing:"border-box",right:0};if(t==="inside")a.left=0,a.top=0,a.bottom=0,a.borderRadius="inherit",a.boxShadow="inset 0 0 0 2px var(--n-drop-mark-color)";else{const o=t==="before"?"top":"bottom";a[o]=0,a.left=`${r.offsetLeft+6-e*n}px`,a.height="2px",a.backgroundColor="var(--n-drop-mark-color)",a.transformOrigin=o,a.borderRadius="1px",a.transform=t==="before"?"translateY(-4px)":"translateY(4px)"}return L("div",{style:a})}function Cv({dropPosition:t,node:e}){return e.isLeaf===!1||e.children?!0:t!=="inside"}function xv(t){return Z(()=>t.leafOnly?"child":t.checkStrategy)}function Mr(t,e){return!!t.rawNode[e]}function fc(t,e,n,r){t==null||t.forEach(a=>{n(a),fc(a[e],e,n,r),r(a)})}function Sv(t,e,n,r,a){const o=new Set,s=new Set,l=[];return fc(t,r,c=>{if(l.push(c),a(e,c)){s.add(c[n]);for(let f=l.length-2;f>=0;--f)if(!o.has(l[f][n]))o.add(l[f][n]);else return}},()=>{l.pop()}),{expandedKeys:Array.from(o),highlightKeySet:s}}if(_1&&Image){const t=new Image;t.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}function $v(t,e,n,r,a){const o=new Set,s=new Set,l=new Set,c=[],f=[],h=[];function d(g){g.forEach(m=>{if(h.push(m),e(n,m)){o.add(m[r]),l.add(m[r]);for(let v=h.length-2;v>=0;--v){const y=h[v][r];if(!s.has(y))s.add(y),o.has(y)&&o.delete(y);else break}}const _=m[a];_&&d(_),h.pop()})}d(t);function p(g,m){g.forEach(_=>{const v=_[r],y=o.has(v),C=s.has(v);if(!y&&!C)return;const b=_[a];if(b)if(y)m.push(_);else{c.push(v);const x=Object.assign(Object.assign({},_),{[a]:[]});m.push(x),p(b,x[a])}else m.push(_)})}return p(t,f),{filteredTree:f,highlightKeySet:l,expandedKeys:c}}const cc=Rt({name:"TreeNode",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(t){const e=mi(Da),{droppingNodeParentRef:n,droppingMouseNodeRef:r,draggingNodeRef:a,droppingPositionRef:o,droppingOffsetLevelRef:s,nodePropsRef:l,indentRef:c,blockLineRef:f,checkboxPlacementRef:h,checkOnClickRef:d,disabledFieldRef:p,showLineRef:g,renderSwitcherIconRef:m,overrideDefaultNodeClickBehaviorRef:_}=e,v=Le(()=>!!t.tmNode.rawNode.checkboxDisabled),y=Le(()=>Mr(t.tmNode,p.value)),C=Le(()=>e.disabledRef.value||y.value),b=Z(()=>{const{value:R}=l;if(R)return R({option:t.tmNode.rawNode})}),x=me(null),N={value:null};za(()=>{N.value=x.value.$el});function T(){const R=()=>{const{tmNode:ut}=t;if(!ut.isLeaf&&!ut.shallowLoaded){if(!e.loadingKeysRef.value.has(ut.key))e.loadingKeysRef.value.add(ut.key);else return;const{onLoadRef:{value:_t}}=e;_t&&_t(ut.rawNode).then(zt=>{zt!==!1&&e.handleSwitcherClick(ut)}).finally(()=>{e.loadingKeysRef.value.delete(ut.key)})}else e.handleSwitcherClick(ut)};m.value?setTimeout(R,0):R()}const U=Le(()=>!y.value&&e.selectableRef.value&&(e.internalTreeSelect?e.mergedCheckStrategyRef.value!=="child"||e.multipleRef.value&&e.cascadeRef.value||t.tmNode.isLeaf:!0)),G=Le(()=>e.checkableRef.value&&(e.cascadeRef.value||e.mergedCheckStrategyRef.value!=="child"||t.tmNode.isLeaf)),Y=Le(()=>e.displayedCheckedKeysRef.value.includes(t.tmNode.key)),vt=Le(()=>{const{value:R}=G;if(!R)return!1;const{value:ut}=d,{tmNode:_t}=t;return typeof ut=="boolean"?!_t.disabled&&ut:ut(t.tmNode.rawNode)});function Ot(R){const{value:ut}=e.expandOnClickRef,{value:_t}=U,{value:zt}=vt;if(!_t&&!ut&&!zt||Di(R,"checkbox")||Di(R,"switcher"))return;const{tmNode:he}=t;_t&&e.handleSelect(he),ut&&!he.isLeaf&&T(),zt&&jt(!Y.value)}function K(R){var ut,_t;if(!(Di(R,"checkbox")||Di(R,"switcher"))){if(!C.value){const zt=_.value;let he=!1;if(zt)switch(zt({option:t.tmNode.rawNode})){case"toggleCheck":he=!0,jt(!Y.value);break;case"toggleSelect":he=!0,e.handleSelect(t.tmNode);break;case"toggleExpand":he=!0,T(),he=!0;break;case"none":he=!0,he=!0;return}he||Ot(R)}(_t=(ut=b.value)===null||ut===void 0?void 0:ut.onClick)===null||_t===void 0||_t.call(ut,R)}}function Zt(R){f.value||K(R)}function W(R){f.value&&K(R)}function jt(R){e.handleCheck(t.tmNode,R)}function Bt(R){e.handleDragStart({event:R,node:t.tmNode})}function Ue(R){R.currentTarget===R.target&&e.handleDragEnter({event:R,node:t.tmNode})}function ce(R){R.preventDefault(),e.handleDragOver({event:R,node:t.tmNode})}function We(R){e.handleDragEnd({event:R,node:t.tmNode})}function mn(R){R.currentTarget===R.target&&e.handleDragLeave({event:R,node:t.tmNode})}function Rn(R){R.preventDefault(),o.value!==null&&e.handleDrop({event:R,node:t.tmNode,dropPosition:o.value})}const Ar=Z(()=>{const{clsPrefix:R}=t,{value:ut}=c;if(g.value){const _t=[];let zt=t.tmNode.parent;for(;zt;)zt.isLastChild?_t.push(L("div",{class:`${R}-tree-node-indent`},L("div",{style:{width:`${ut}px`}}))):_t.push(L("div",{class:[`${R}-tree-node-indent`,`${R}-tree-node-indent--show-line`]},L("div",{style:{width:`${ut}px`}}))),zt=zt.parent;return _t.reverse()}else return m1(t.tmNode.level,L("div",{class:`${t.clsPrefix}-tree-node-indent`},L("div",{style:{width:`${ut}px`}})))});return{showDropMark:Le(()=>{const{value:R}=a;if(!R)return;const{value:ut}=o;if(!ut)return;const{value:_t}=r;if(!_t)return;const{tmNode:zt}=t;return zt.key===_t.key}),showDropMarkAsParent:Le(()=>{const{value:R}=n;if(!R)return!1;const{tmNode:ut}=t,{value:_t}=o;return _t==="before"||_t==="after"?R.key===ut.key:!1}),pending:Le(()=>e.pendingNodeKeyRef.value===t.tmNode.key),loading:Le(()=>e.loadingKeysRef.value.has(t.tmNode.key)),highlight:Le(()=>{var R;return(R=e.highlightKeySetRef.value)===null||R===void 0?void 0:R.has(t.tmNode.key)}),checked:Y,indeterminate:Le(()=>e.displayedIndeterminateKeysRef.value.includes(t.tmNode.key)),selected:Le(()=>e.mergedSelectedKeysRef.value.includes(t.tmNode.key)),expanded:Le(()=>e.mergedExpandedKeysRef.value.includes(t.tmNode.key)),disabled:C,checkable:G,mergedCheckOnClick:vt,checkboxDisabled:v,selectable:U,expandOnClick:e.expandOnClickRef,internalScrollable:e.internalScrollableRef,draggable:e.draggableRef,blockLine:f,nodeProps:b,checkboxFocusable:e.internalCheckboxFocusableRef,droppingPosition:o,droppingOffsetLevel:s,indent:c,checkboxPlacement:h,showLine:g,contentInstRef:x,contentElRef:N,indentNodes:Ar,handleCheck:jt,handleDrop:Rn,handleDragStart:Bt,handleDragEnter:Ue,handleDragOver:ce,handleDragEnd:We,handleDragLeave:mn,handleLineClick:W,handleContentClick:Zt,handleSwitcherClick:T}},render(){const{tmNode:t,clsPrefix:e,checkable:n,expandOnClick:r,selectable:a,selected:o,checked:s,highlight:l,draggable:c,blockLine:f,indent:h,indentNodes:d,disabled:p,pending:g,internalScrollable:m,nodeProps:_,checkboxPlacement:v}=this,y=c&&!p?{onDragenter:this.handleDragEnter,onDragleave:this.handleDragLeave,onDragend:this.handleDragEnd,onDrop:this.handleDrop,onDragover:this.handleDragOver}:void 0,C=m?oc(t.key):void 0,b=v==="right",x=n?L(bv,{indent:h,right:b,focusable:this.checkboxFocusable,disabled:p||this.checkboxDisabled,clsPrefix:e,checked:this.checked,indeterminate:this.indeterminate,onCheck:this.handleCheck}):null;return L("div",Object.assign({class:`${e}-tree-node-wrapper`},y),L("div",Object.assign({},f?_:void 0,{class:[`${e}-tree-node`,{[`${e}-tree-node--selected`]:o,[`${e}-tree-node--checkable`]:n,[`${e}-tree-node--highlight`]:l,[`${e}-tree-node--pending`]:g,[`${e}-tree-node--disabled`]:p,[`${e}-tree-node--selectable`]:a,[`${e}-tree-node--clickable`]:a||r||this.mergedCheckOnClick},_==null?void 0:_.class],"data-key":C,draggable:c&&f,onClick:this.handleLineClick,onDragstart:c&&f&&!p?this.handleDragStart:void 0}),d,t.isLeaf&&this.showLine?L("div",{class:[`${e}-tree-node-indent`,`${e}-tree-node-indent--show-line`,t.isLeaf&&`${e}-tree-node-indent--is-leaf`,t.isLastChild&&`${e}-tree-node-indent--last-child`]},L("div",{style:{width:`${h}px`}})):L(wv,{clsPrefix:e,expanded:this.expanded,selected:o,loading:this.loading,hide:t.isLeaf,tmNode:this.tmNode,indent:h,onClick:this.handleSwitcherClick}),b?null:x,L(kv,{ref:"contentInstRef",clsPrefix:e,checked:s,selected:o,onClick:this.handleContentClick,nodeProps:f?void 0:_,onDragstart:c&&!f&&!p?this.handleDragStart:void 0,tmNode:t}),c?this.showDropMark?ff({el:this.contentElRef.value,position:this.droppingPosition,offsetLevel:this.droppingOffsetLevel,indent:h}):this.showDropMarkAsParent?ff({el:this.contentElRef.value,position:"inside",offsetLevel:this.droppingOffsetLevel,indent:h}):null:null,b?x:null))}});function Ev({props:t,fNodesRef:e,mergedExpandedKeysRef:n,mergedSelectedKeysRef:r,mergedCheckedKeysRef:a,handleCheck:o,handleSelect:s,handleSwitcherClick:l}){const{value:c}=r,f=mi(uc,null),h=f?f.pendingNodeKeyRef:me(c.length?c[c.length-1]:null);function d(p){var g;if(!t.keyboard)return{enterBehavior:null};const{value:m}=h;let _=null;if(m===null){if((p.key==="ArrowDown"||p.key==="ArrowUp")&&p.preventDefault(),["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(p.key)&&m===null){const{value:v}=e;let y=0;for(;y<v.length;){if(!v[y].disabled){h.value=v[y].key;break}y+=1}}}else{const{value:v}=e;let y=v.findIndex(C=>C.key===m);if(!~y)return{enterBehavior:null};if(p.key==="Enter"){const C=v[y];switch(_=((g=t.overrideDefaultNodeClickBehavior)===null||g===void 0?void 0:g.call(t,{option:C.rawNode}))||null,_){case"toggleCheck":o(C,!a.value.includes(C.key));break;case"toggleSelect":s(C);break;case"toggleExpand":l(C);break;case"none":break;case"default":default:_="default",s(C)}}else if(p.key==="ArrowDown")for(p.preventDefault(),y+=1;y<v.length;){if(!v[y].disabled){h.value=v[y].key;break}y+=1}else if(p.key==="ArrowUp")for(p.preventDefault(),y-=1;y>=0;){if(!v[y].disabled){h.value=v[y].key;break}y-=1}else if(p.key==="ArrowLeft"){const C=v[y];if(C.isLeaf||!n.value.includes(m)){const b=C.getParent();b&&(h.value=b.key)}else l(C)}else if(p.key==="ArrowRight"){const C=v[y];if(C.isLeaf)return{enterBehavior:null};if(!n.value.includes(m))l(C);else for(y+=1;y<v.length;){if(!v[y].disabled){h.value=v[y].key;break}y+=1}}}return{enterBehavior:_}}return{pendingNodeKeyRef:h,handleKeydown:d}}const Nv=Rt({name:"TreeMotionWrapper",props:{clsPrefix:{type:String,required:!0},height:Number,nodes:{type:Array,required:!0},mode:{type:String,required:!0},onAfterEnter:{type:Function,required:!0}},render(){const{clsPrefix:t}=this;return L(Gf,{onAfterEnter:this.onAfterEnter,appear:!0,reverse:this.mode==="collapse"},{default:()=>L("div",{class:[`${t}-tree-motion-wrapper`,`${t}-tree-motion-wrapper--${this.mode}`],style:{height:Yf(this.height)}},this.nodes.map(e=>L(cc,{clsPrefix:t,tmNode:e})))})}}),Ss=g1(),Iv=tt("tree",`
149
- font-size: var(--n-font-size);
150
- outline: none;
151
- `,[X("ul, li",`
152
- margin: 0;
153
- padding: 0;
154
- list-style: none;
155
- `),X(">",[tt("tree-node",[X("&:first-child","margin-top: 0;")])]),tt("tree-motion-wrapper",[it("expand",[Rs({duration:"0.2s"})]),it("collapse",[Rs({duration:"0.2s",reverse:!0})])]),tt("tree-node-wrapper",`
156
- box-sizing: border-box;
157
- padding: var(--n-node-wrapper-padding);
158
- `),tt("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
- `,[it("highlight",[tt("tree-node-content",[It("text","border-bottom-color: var(--n-node-text-color-disabled);")])]),it("disabled",[tt("tree-node-content",`
165
- color: var(--n-node-text-color-disabled);
166
- cursor: not-allowed;
167
- `)]),jn("disabled",[it("clickable",[tt("tree-node-content",`
168
- cursor: pointer;
169
- `)])])]),it("block-node",[tt("tree-node-content",`
170
- flex: 1;
171
- min-width: 0;
172
- `)]),jn("block-line",[tt("tree-node",[jn("disabled",[tt("tree-node-content",[X("&:hover","background: var(--n-node-color-hover);")]),it("selectable",[tt("tree-node-content",[X("&:active","background: var(--n-node-color-pressed);")])]),it("pending",[tt("tree-node-content",`
173
- background: var(--n-node-color-hover);
174
- `)]),it("selected",[tt("tree-node-content","background: var(--n-node-color-active);")])]),it("selected",[tt("tree-node-content","background: var(--n-node-color-active);")])])]),it("block-line",[tt("tree-node",[jn("disabled",[X("&:hover","background: var(--n-node-color-hover);"),it("pending",`
175
- background: var(--n-node-color-hover);
176
- `),it("selectable",[jn("selected",[X("&:active","background: var(--n-node-color-pressed);")])]),it("selected","background: var(--n-node-color-active);")]),it("selected","background: var(--n-node-color-active);"),it("disabled",`
177
- cursor: not-allowed;
178
- `)])]),tt("tree-node-indent",`
179
- flex-grow: 0;
180
- flex-shrink: 0;
181
- `,[it("show-line","position: relative",[X("&::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
- `),it("last-child",[X("&::before",`
191
- bottom: 50%;
192
- `)]),it("is-leaf",[X("&::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
- `)])]),jn("show-line","height: 0;")]),tt("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
- `,[It("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
- `,[tt("icon",[Ss]),tt("base-loading",`
218
- color: var(--n-loading-color);
219
- position: absolute;
220
- left: 0;
221
- top: 0;
222
- right: 0;
223
- bottom: 0;
224
- `,[Ss]),tt("base-icon",[Ss])]),it("hide","visibility: hidden;"),it("expanded","transform: rotate(90deg);")]),tt("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
- `),tt("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
- `,[X("&:last-child","margin-bottom: 0;"),It("prefix",`
248
- display: inline-flex;
249
- margin-right: 8px;
250
- `),It("text",`
251
- border-bottom: 1px solid #0000;
252
- transition: border-color .3s var(--n-bezier);
253
- flex-grow: 1;
254
- max-width: 100%;
255
- `),It("suffix",`
256
- display: inline-flex;
257
- `)]),It("empty","margin: auto;")]);var qv=function(t,e,n,r){function a(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(h){try{f(r.next(h))}catch(d){s(d)}}function c(h){try{f(r.throw(h))}catch(d){s(d)}}function f(h){h.done?o(h.value):a(h.value).then(l,c)}f((r=r.apply(t,[])).next())})};function cf(t,e,n,r){return{getIsGroup(){return!1},getKey(o){return o[t]},getChildren:r||(o=>o[e]),getDisabled(o){return!!(o[n]||o.checkboxDisabled)}}}const Av={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},Tv=Object.assign(Object.assign(Object.assign(Object.assign({},Ji.props),{accordion:Boolean,showIrrelevantNodes:{type:Boolean,default:!0},data:{type:Array,default:()=>[]},expandOnDragenter:{type:Boolean,default:!0},expandOnClick:Boolean,checkOnClick:{type:[Boolean,Function],default:!1},cancelable:{type:Boolean,default:!0},checkable:Boolean,draggable:Boolean,blockNode:Boolean,blockLine:Boolean,showLine:Boolean,disabled:Boolean,checkedKeys:Array,defaultCheckedKeys:{type:Array,default:()=>[]},selectedKeys:Array,defaultSelectedKeys:{type:Array,default:()=>[]},multiple:Boolean,pattern:{type:String,default:""},onLoad:Function,cascade:Boolean,selectable:{type:Boolean,default:!0},scrollbarProps:Object,indent:{type:Number,default:24},allowDrop:{type:Function,default:Cv},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]}),Av),{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}),Mv=Rt({name:"Tree",props:Tv,setup(t){const{mergedClsPrefixRef:e,inlineThemeDisabled:n,mergedRtlRef:r}=Oa(t),a=ja("Tree",r,e),o=Ji("Tree","-tree",Iv,dv,t,e),s=me(null),l=me(null),c=me(null);function f(){var w;return(w=c.value)===null||w===void 0?void 0:w.listElRef}function h(){var w;return(w=c.value)===null||w===void 0?void 0:w.itemsElRef}const d=Z(()=>{const{filter:w}=t;if(w)return w;const{labelField:E}=t;return(M,j)=>{if(!M.length)return!0;const F=j[E];return typeof F=="string"?F.toLowerCase().includes(M.toLowerCase()):!1}}),p=Z(()=>{const{pattern:w}=t;return w?!w.length||!d.value?{filteredTree:t.data,highlightKeySet:null,expandedKeys:void 0}:$v(t.data,d.value,w,t.keyField,t.childrenField):{filteredTree:t.data,highlightKeySet:null,expandedKeys:void 0}}),g=Z(()=>nf(t.showIrrelevantNodes?t.data:p.value.filteredTree,cf(t.keyField,t.childrenField,t.disabledField,t.getChildren))),m=mi(uc,null),_=t.internalTreeSelect?m.dataTreeMate:Z(()=>t.showIrrelevantNodes?g.value:nf(t.data,cf(t.keyField,t.childrenField,t.disabledField,t.getChildren))),{watchProps:v}=t,y=me([]);v!=null&&v.includes("defaultCheckedKeys")?Fi(()=>{y.value=t.defaultCheckedKeys}):y.value=t.defaultCheckedKeys;const C=wt(t,"checkedKeys"),b=ma(C,y),x=Z(()=>_.value.getCheckedKeys(b.value,{cascade:t.cascade,allowNotLoaded:t.allowCheckingNotLoaded})),N=xv(t),T=Z(()=>x.value.checkedKeys),U=Z(()=>{const{indeterminateKeys:w}=t;return w!==void 0?w:x.value.indeterminateKeys}),G=me([]);v!=null&&v.includes("defaultSelectedKeys")?Fi(()=>{G.value=t.defaultSelectedKeys}):G.value=t.defaultSelectedKeys;const Y=wt(t,"selectedKeys"),vt=ma(Y,G),Ot=me([]),K=w=>{Ot.value=t.defaultExpandAll?_.value.getNonLeafKeys():w===void 0?t.defaultExpandedKeys:w};v!=null&&v.includes("defaultExpandedKeys")?Fi(()=>{K(void 0)}):Fi(()=>{K(t.defaultExpandedKeys)});const Zt=wt(t,"expandedKeys"),W=ma(Zt,Ot),jt=Z(()=>g.value.getFlattenedNodes(W.value)),{pendingNodeKeyRef:Bt,handleKeydown:Ue}=Ev({props:t,mergedCheckedKeysRef:b,mergedSelectedKeysRef:vt,fNodesRef:jt,mergedExpandedKeysRef:W,handleCheck:gs,handleSelect:ys,handleSwitcherClick:Wu});let ce=null,We=null;const mn=me(new Set),Rn=Z(()=>t.internalHighlightKeySet||p.value.highlightKeySet),Ar=ma(Rn,mn),R=me(new Set),ut=Z(()=>W.value.filter(w=>!R.value.has(w)));let _t=0;const zt=me(null),he=me(null),Jn=me(null),Yn=me(null),Xn=me(0),Zr=Z(()=>{const{value:w}=he;return w?w.parent:null});let ca=!1;Pr(wt(t,"data"),()=>{ca=!0,ga(()=>{ca=!1}),R.value.clear(),Bt.value=null,da()},{deep:!1});let ha=!1;const ti=()=>{ha=!0,ga(()=>{ha=!1})};let ei;Pr(wt(t,"pattern"),(w,E)=>{if(t.showIrrelevantNodes)if(ei=void 0,w){const{expandedKeys:M,highlightKeySet:j}=Sv(t.data,t.pattern,t.keyField,t.childrenField,d.value);mn.value=j,ti(),Ai(M,un(M),{node:null,action:"filter"})}else mn.value=new Set;else if(!w.length)ei!==void 0&&(ti(),Ai(ei,un(ei),{node:null,action:"filter"}));else{E.length||(ei=W.value);const{expandedKeys:M}=p.value;M!==void 0&&(ti(),Ai(M,un(M),{node:null,action:"filter"}))}});function lo(w){return qv(this,void 0,void 0,function*(){const{onLoad:E}=t;if(!E){yield Promise.resolve();return}const{value:M}=R;if(!M.has(w.key)){M.add(w.key);try{(yield E(w.rawNode))===!1&&Ti()}catch(j){console.error(j),Ti()}M.delete(w.key)}})}Fi(()=>{var w;const{value:E}=g;if(!E)return;const{getNode:M}=E;(w=W.value)===null||w===void 0||w.forEach(j=>{const F=M(j);F&&!F.shallowLoaded&&lo(F)})});const Tr=me(!1),Ln=me([]);Pr(ut,(w,E)=>{if(!t.animated||ha){ga(qi);return}if(ca)return;const M=va(o.value.self.nodeHeight),j=new Set(E);let F=null,Kt=null;for(const $t of w)if(!j.has($t)){if(F!==null)return;F=$t}const Xe=new Set(w);for(const $t of E)if(!Xe.has($t)){if(Kt!==null)return;Kt=$t}if(F===null&&Kt===null)return;const{virtualScroll:fn}=t,Pi=(fn?c.value.listElRef:s.value).offsetHeight,Ri=Math.ceil(Pi/M)+1;let gn;if(F!==null&&(gn=E),Kt!==null&&(gn===void 0?gn=w:gn=gn.filter($t=>$t!==Kt)),Tr.value=!0,Ln.value=g.value.getFlattenedNodes(gn),F!==null){const $t=Ln.value.findIndex(yn=>yn.key===F);if(~$t){const yn=Ln.value[$t].children;if(yn){const $n=rf(yn,w);Ln.value.splice($t+1,0,{__motion:!0,mode:"expand",height:fn?$n.length*M:void 0,nodes:fn?$n.slice(0,Ri):$n})}}}if(Kt!==null){const $t=Ln.value.findIndex(yn=>yn.key===Kt);if(~$t){const yn=Ln.value[$t].children;if(!yn)return;Tr.value=!0;const $n=rf(yn,w);Ln.value.splice($t+1,0,{__motion:!0,mode:"collapse",height:fn?$n.length*M:void 0,nodes:fn?$n.slice(0,Ri):$n})}}});const vs=Z(()=>L1(jt.value)),ps=Z(()=>Tr.value?Ln.value:jt.value);function qi(){const{value:w}=l;w&&w.sync()}function _s(){Tr.value=!1,t.virtualScroll&&ga(qi)}function un(w){const{getNode:E}=_.value;return w.map(M=>{var j;return((j=E(M))===null||j===void 0?void 0:j.rawNode)||null})}function Ai(w,E,M){const{"onUpdate:expandedKeys":j,onUpdateExpandedKeys:F}=t;Ot.value=w,j&&Ce(j,w,E,M),F&&Ce(F,w,E,M)}function Uu(w,E,M){const{"onUpdate:checkedKeys":j,onUpdateCheckedKeys:F}=t;y.value=w,F&&Ce(F,w,E,M),j&&Ce(j,w,E,M)}function Pd(w,E){const{"onUpdate:indeterminateKeys":M,onUpdateIndeterminateKeys:j}=t;M&&Ce(M,w,E),j&&Ce(j,w,E)}function ms(w,E,M){const{"onUpdate:selectedKeys":j,onUpdateSelectedKeys:F}=t;G.value=w,F&&Ce(F,w,E,M),j&&Ce(j,w,E,M)}function Rd(w){const{onDragenter:E}=t;E&&Ce(E,w)}function Ld(w){const{onDragleave:E}=t;E&&Ce(E,w)}function Od(w){const{onDragend:E}=t;E&&Ce(E,w)}function jd(w){const{onDragstart:E}=t;E&&Ce(E,w)}function zd(w){const{onDragover:E}=t;E&&Ce(E,w)}function Fd(w){const{onDrop:E}=t;E&&Ce(E,w)}function da(){Dd(),ni()}function Dd(){zt.value=null}function ni(){Xn.value=0,he.value=null,Jn.value=null,Yn.value=null,Ti()}function Ti(){ce&&(window.clearTimeout(ce),ce=null),We=null}function gs(w,E){if(t.disabled||Mr(w,t.disabledField))return;if(t.internalUnifySelectCheck&&!t.multiple){ys(w);return}const M=E?"check":"uncheck",{checkedKeys:j,indeterminateKeys:F}=_.value[M](w.key,T.value,{cascade:t.cascade,checkStrategy:N.value,allowNotLoaded:t.allowCheckingNotLoaded});Uu(j,un(j),{node:w.rawNode,action:M}),Pd(F,un(F))}function Bd(w){if(t.disabled)return;const{key:E}=w,{value:M}=W,j=M.findIndex(F=>F===E);if(~j){const F=Array.from(M);F.splice(j,1),Ai(F,un(F),{node:w.rawNode,action:"collapse"})}else{const F=g.value.getNode(E);if(!F||F.isLeaf)return;let Kt;if(t.accordion){const Xe=new Set(w.siblings.map(({key:fn})=>fn));Kt=M.filter(fn=>!Xe.has(fn)),Kt.push(E)}else Kt=M.concat(E);Ai(Kt,un(Kt),{node:w.rawNode,action:"expand"})}}function Wu(w){t.disabled||Tr.value||Bd(w)}function ys(w){if(!(t.disabled||!t.selectable)){if(Bt.value=w.key,t.internalUnifySelectCheck){const{value:{checkedKeys:E,indeterminateKeys:M}}=x;t.multiple?gs(w,!(E.includes(w.key)||M.includes(w.key))):Uu([w.key],un([w.key]),{node:w.rawNode,action:"check"})}if(t.multiple){const E=Array.from(vt.value),M=E.findIndex(j=>j===w.key);~M?t.cancelable&&E.splice(M,1):~M||E.push(w.key),ms(E,un(E),{node:w.rawNode,action:~M?"unselect":"select"})}else vt.value.includes(w.key)?t.cancelable&&ms([],[],{node:w.rawNode,action:"unselect"}):ms([w.key],un([w.key]),{node:w.rawNode,action:"select"})}}function Kd(w){if(ce&&(window.clearTimeout(ce),ce=null),w.isLeaf)return;We=w.key;const E=()=>{if(We!==w.key)return;const{value:M}=Jn;if(M&&M.key===w.key&&!W.value.includes(w.key)){const j=W.value.concat(w.key);Ai(j,un(j),{node:w.rawNode,action:"expand"})}ce=null,We=null};w.shallowLoaded?ce=window.setTimeout(()=>{E()},1e3):ce=window.setTimeout(()=>{lo(w).then(()=>{E()})},1e3)}function Ud({event:w,node:E}){!t.draggable||t.disabled||Mr(E,t.disabledField)||(Hu({event:w,node:E},!1),Rd({event:w,node:E.rawNode}))}function Wd({event:w,node:E}){!t.draggable||t.disabled||Mr(E,t.disabledField)||Ld({event:w,node:E.rawNode})}function Hd(w){w.target===w.currentTarget&&ni()}function Vd({event:w,node:E}){da(),!(!t.draggable||t.disabled||Mr(E,t.disabledField))&&Od({event:w,node:E.rawNode})}function Qd({event:w,node:E}){!t.draggable||t.disabled||Mr(E,t.disabledField)||(_t=w.clientX,zt.value=E,jd({event:w,node:E.rawNode}))}function Hu({event:w,node:E},M=!0){var j;if(!t.draggable||t.disabled||Mr(E,t.disabledField))return;const{value:F}=zt;if(!F)return;const{allowDrop:Kt,indent:Xe}=t;M&&zd({event:w,node:E.rawNode});const fn=w.currentTarget,{height:Pi,top:Ri}=fn.getBoundingClientRect(),gn=w.clientY-Ri;let $t;Kt({node:E.rawNode,dropPosition:"inside",phase:"drag"})?gn<=8?$t="before":gn>=Pi-8?$t="after":$t="inside":gn<=Pi/2?$t="before":$t="after";const{value:$n}=vs;let Ct,Ne;const Li=$n(E.key);if(Li===null){ni();return}let uo=!1;$t==="inside"?(Ct=E,Ne="inside"):$t==="before"?E.isFirstChild?(Ct=E,Ne="before"):(Ct=jt.value[Li-1],Ne="after"):(Ct=E,Ne="after"),!Ct.isLeaf&&W.value.includes(Ct.key)&&(uo=!0,Ne==="after"&&(Ct=jt.value[Li+1],Ct?Ne="before":(Ct=E,Ne="inside")));const Qu=Ct;if(Jn.value=Qu,!uo&&F.isLastChild&&F.key===Ct.key&&(Ne="after"),Ne==="after"){let Gu=_t-w.clientX,ws=0;for(;Gu>=Xe/2&&Ct.parent!==null&&Ct.isLastChild&&ws<1;)Gu-=Xe,ws+=1,Ct=Ct.parent;Xn.value=ws}else Xn.value=0;if((F.contains(Ct)||Ne==="inside"&&((j=F.parent)===null||j===void 0?void 0:j.key)===Ct.key)&&!(F.key===Qu.key&&F.key===Ct.key)){ni();return}if(!Kt({node:Ct.rawNode,dropPosition:Ne,phase:"drag"})){ni();return}if(F.key===Ct.key)Ti();else if(We!==Ct.key)if(Ne==="inside"){if(t.expandOnDragenter){if(Kd(Ct),!Ct.shallowLoaded&&We!==Ct.key){da();return}}else if(!Ct.shallowLoaded){da();return}}else Ti();else Ne!=="inside"&&Ti();Yn.value=Ne,he.value=Ct}function Gd({event:w,node:E,dropPosition:M}){if(!t.draggable||t.disabled||Mr(E,t.disabledField))return;const{value:j}=zt,{value:F}=he,{value:Kt}=Yn;if(!(!j||!F||!Kt)&&t.allowDrop({node:F.rawNode,dropPosition:Kt,phase:"drag"})&&j.key!==F.key){if(Kt==="before"){const Xe=j.getNext({includeDisabled:!0});if(Xe&&Xe.key===F.key){ni();return}}if(Kt==="after"){const Xe=j.getPrev({includeDisabled:!0});if(Xe&&Xe.key===F.key){ni();return}}Fd({event:w,node:F.rawNode,dragNode:j.rawNode,dropPosition:M}),da()}}function Jd(){qi()}function Yd(){qi()}function Xd(w){var E;if(t.virtualScroll||t.internalScrollable){const{value:M}=l;if(!((E=M==null?void 0:M.containerRef)===null||E===void 0)&&E.contains(w.relatedTarget))return;Bt.value=null}else{const{value:M}=s;if(M!=null&&M.contains(w.relatedTarget))return;Bt.value=null}}Pr(Bt,w=>{var E,M;if(w!==null){if(t.virtualScroll)(E=c.value)===null||E===void 0||E.scrollTo({key:w});else if(t.internalScrollable){const{value:j}=l;if(j===null)return;const F=(M=j.contentRef)===null||M===void 0?void 0:M.querySelector(`[data-key="${oc(w)}"]`);if(!F)return;j.scrollTo({el:F})}}}),Pl(Da,{loadingKeysRef:R,highlightKeySetRef:Ar,displayedCheckedKeysRef:T,displayedIndeterminateKeysRef:U,mergedSelectedKeysRef:vt,mergedExpandedKeysRef:W,mergedThemeRef:o,mergedCheckStrategyRef:N,nodePropsRef:wt(t,"nodeProps"),disabledRef:wt(t,"disabled"),checkableRef:wt(t,"checkable"),selectableRef:wt(t,"selectable"),expandOnClickRef:wt(t,"expandOnClick"),onLoadRef:wt(t,"onLoad"),draggableRef:wt(t,"draggable"),blockLineRef:wt(t,"blockLine"),indentRef:wt(t,"indent"),cascadeRef:wt(t,"cascade"),checkOnClickRef:wt(t,"checkOnClick"),checkboxPlacementRef:t.checkboxPlacement,droppingMouseNodeRef:Jn,droppingNodeParentRef:Zr,draggingNodeRef:zt,droppingPositionRef:Yn,droppingOffsetLevelRef:Xn,fNodesRef:jt,pendingNodeKeyRef:Bt,showLineRef:wt(t,"showLine"),disabledFieldRef:wt(t,"disabledField"),internalScrollableRef:wt(t,"internalScrollable"),internalCheckboxFocusableRef:wt(t,"internalCheckboxFocusable"),internalTreeSelect:t.internalTreeSelect,renderLabelRef:wt(t,"renderLabel"),renderPrefixRef:wt(t,"renderPrefix"),renderSuffixRef:wt(t,"renderSuffix"),renderSwitcherIconRef:wt(t,"renderSwitcherIcon"),labelFieldRef:wt(t,"labelField"),multipleRef:wt(t,"multiple"),overrideDefaultNodeClickBehaviorRef:wt(t,"overrideDefaultNodeClickBehavior"),handleSwitcherClick:Wu,handleDragEnd:Vd,handleDragEnter:Ud,handleDragLeave:Wd,handleDragStart:Qd,handleDrop:Gd,handleDragOver:Hu,handleSelect:ys,handleCheck:gs});function Zd(w,E){var M,j;typeof w=="number"?(M=c.value)===null||M===void 0||M.scrollTo(w,E||0):(j=c.value)===null||j===void 0||j.scrollTo(w)}const t1={handleKeydown:Ue,scrollTo:Zd,getCheckedData:()=>{if(!t.checkable)return{keys:[],options:[]};const{checkedKeys:w}=x.value;return{keys:w,options:un(w)}},getIndeterminateData:()=>{if(!t.checkable)return{keys:[],options:[]};const{indeterminateKeys:w}=x.value;return{keys:w,options:un(w)}}},Vu=Z(()=>{const{common:{cubicBezierEaseInOut:w},self:{fontSize:E,nodeBorderRadius:M,nodeColorHover:j,nodeColorPressed:F,nodeColorActive:Kt,arrowColor:Xe,loadingColor:fn,nodeTextColor:Pi,nodeTextColorDisabled:Ri,dropMarkColor:gn,nodeWrapperPadding:$t,nodeHeight:yn,lineHeight:$n,lineColor:Ct}}=o.value,Ne=Cs($t,"top"),Li=Cs($t,"bottom"),uo=Yf(va(yn)-va(Ne)-va(Li));return{"--n-arrow-color":Xe,"--n-loading-color":fn,"--n-bezier":w,"--n-font-size":E,"--n-node-border-radius":M,"--n-node-color-active":Kt,"--n-node-color-hover":j,"--n-node-color-pressed":F,"--n-node-text-color":Pi,"--n-node-text-color-disabled":Ri,"--n-drop-mark-color":gn,"--n-node-wrapper-padding":$t,"--n-line-offset-top":`-${Ne}`,"--n-line-offset-bottom":`-${Li}`,"--n-node-content-height":uo,"--n-line-height":$n,"--n-line-color":Ct}}),Mi=n?Ll("tree",void 0,Vu,t):void 0;return Object.assign(Object.assign({},t1),{mergedClsPrefix:e,mergedTheme:o,rtlEnabled:a,fNodes:ps,aip:Tr,selfElRef:s,virtualListInstRef:c,scrollbarInstRef:l,handleFocusout:Xd,handleDragLeaveTree:Hd,handleScroll:Jd,getScrollContainer:f,getScrollContent:h,handleAfterEnter:_s,handleResize:Yd,cssVars:n?void 0:Vu,themeClass:Mi==null?void 0:Mi.themeClass,onRender:Mi==null?void 0:Mi.onRender})},render(){var t;const{fNodes:e,internalRenderEmpty:n}=this;if(!e.length&&n)return n();const{mergedClsPrefix:r,blockNode:a,blockLine:o,draggable:s,disabled:l,internalFocusable:c,checkable:f,handleKeydown:h,rtlEnabled:d,handleFocusout:p,scrollbarProps:g}=this,m=c&&!l,_=m?"0":void 0,v=[`${r}-tree`,d&&`${r}-tree--rtl`,f&&`${r}-tree--checkable`,(o||a)&&`${r}-tree--block-node`,o&&`${r}-tree--block-line`],y=b=>"__motion"in b?L(Nv,{height:b.height,nodes:b.nodes,clsPrefix:r,mode:b.mode,onAfterEnter:this.handleAfterEnter}):L(cc,{key:b.key,tmNode:b,clsPrefix:r});if(this.virtualScroll){const{mergedTheme:b,internalScrollablePadding:x}=this,N=Cs(x||"0");return L(Xu,Object.assign({},g,{ref:"scrollbarInstRef",onDragleave:s?this.handleDragLeaveTree:void 0,container:this.getScrollContainer,content:this.getScrollContent,class:v,theme:b.peers.Scrollbar,themeOverrides:b.peerOverrides.Scrollbar,tabindex:_,onKeydown:m?h:void 0,onFocusout:m?p:void 0}),{default:()=>{var T;return(T=this.onRender)===null||T===void 0||T.call(this),e.length?L(O1,{ref:"virtualListInstRef",items:this.fNodes,itemSize:va(b.self.nodeHeight),ignoreItemResize:this.aip,paddingTop:N.top,paddingBottom:N.bottom,class:this.themeClass,style:[this.cssVars,{paddingLeft:N.left,paddingRight:N.right}],onScroll:this.handleScroll,onResize:this.handleResize,showScrollbar:!1,itemResizable:!0},{default:({item:U})=>y(U)}):Yu(this.$slots.empty,()=>[L(af,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})])}})}const{internalScrollable:C}=this;return v.push(this.themeClass),(t=this.onRender)===null||t===void 0||t.call(this),C?L(Xu,Object.assign({},g,{class:v,tabindex:_,onKeydown:m?h:void 0,onFocusout:m?p:void 0,style:this.cssVars,contentStyle:{padding:this.internalScrollablePadding}}),{default:()=>L("div",{onDragleave:s?this.handleDragLeaveTree:void 0,ref:"selfElRef"},this.fNodes.map(y))}):L("div",{class:v,tabindex:_,ref:"selfElRef",style:this.cssVars,onKeydown:m?h:void 0,onFocusout:m?p:void 0,onDragleave:s?this.handleDragLeaveTree:void 0},e.length?e.map(y):Yu(this.$slots.empty,()=>[L(af,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]))}}),hf=t=>{const e=At(),n={x:0,y:0},r=jl({...n});let a;const o=h=>{a&&h.preventDefault()},s=h=>{a=h,n.x=r.x,n.y=r.y},l=h=>{if(!a||!e.value)return;const d=h.clientX-a.clientX,p=h.clientY-a.clientY;t(d)&&(r.x=n.x+d),r.y=n.y+p},c=()=>{a=void 0},f=()=>{if(!e.value||!a)return;c();const{top:h,bottom:d,left:p,right:g}=e.value.getBoundingClientRect();(g<0||p>window.innerWidth||d<0||h>window.innerHeight)&&(r.x=n.x,r.y=n.y)};return za(()=>{window.addEventListener("pointermove",l),window.addEventListener("pointerup",f),document.addEventListener("selectstart",o)}),po(()=>{window.removeEventListener("pointermove",l),window.removeEventListener("pointerup",f),document.removeEventListener("selectstart",o),c()}),Pr(e,(h,d)=>{h&&(h.addEventListener("pointerdown",s),h.addEventListener("pointerup",c)),d&&(d.removeEventListener("pointerdown",s),d.removeEventListener("pointerup",c))}),po(()=>{e.value&&(e.value.removeEventListener("pointerdown",s),e.value.removeEventListener("pointerup",c))}),{target:e,offset:r}},df="transition-top,bottom,left,right-500",Wi=Rt({__name:"DraggableCard",props:{initialValue:{default:()=>({})},minWidth:{},sizeDraggable:{type:Boolean},show:{type:Boolean,default:!0},class:{}},setup(t){var b,x;const e=t,n=e.initialValue.left!==void 0,r=e.initialValue.top!==void 0,a={x:(b=n?e.initialValue.left:e.initialValue.right)!=null?b:0,y:(x=r?e.initialValue.top:e.initialValue.bottom)!=null?x:0},o=hf(N=>{const T=(e.initialValue.width||0)+s.offset.x+-o.offset.x-N;return(e.minWidth||0)<T}),s=hf(N=>{const T=(e.initialValue.width||0)+s.offset.x+N-o.offset.x;return(e.minWidth||0)<T}),l=jl({...a}),c=Z(()=>{const N=(e.initialValue.width||0)+s.offset.x-o.offset.x,T=e.initialValue.width?`width:${N}px;`:"",U=r?`top:${l.y}px;`:`bottom:${l.y}px;`;return n?`left:${l.x-o.offset.x}px;`+U+T:`right:${l.x-s.offset.x}px;`+U+T});let f;const h=At(!1),d=N=>{f=N,a.x=l.x,a.y=l.y,h.value=!1},p=N=>{if(!_.value||!f)return;const T=N.clientX-f.clientX,U=N.clientY-f.clientY;l.x=a.x+(n?T:-T),l.y=a.y+(r?U:-U),h.value=!0},g=()=>{f=void 0},m=At(),_=At(),v=N=>{f&&N.preventDefault()},y=()=>{if(!_.value||!f)return;g();const{top:N,bottom:T,left:U,right:G}=_.value.getBoundingClientRect();if(G<0||U>window.innerWidth||T<0||N>window.innerHeight){l.x=a.x,l.y=a.y;const Y=m.value;Y&&(Y.classList.add(df),setTimeout(()=>{Y.classList.remove(df)},550))}};za(()=>{window.addEventListener("pointermove",p),window.addEventListener("pointerup",y),document.addEventListener("selectstart",v)}),po(()=>{window.removeEventListener("pointermove",p),window.removeEventListener("pointerup",y),document.removeEventListener("selectstart",v),g()}),Pr(_,(N,T)=>{N&&(N.addEventListener("pointerdown",d),N.addEventListener("pointerup",g)),T&&(T.removeEventListener("pointerdown",d),T.removeEventListener("pointerup",g))}),po(()=>{_.value&&(_.value.removeEventListener("pointerdown",d),_.value.removeEventListener("pointerup",g))});const C=N=>{N instanceof HTMLElement?_.value=N:_.value=void 0};return(N,T)=>(et(),de(y1,{to:"#app"},[N.show?(et(),ae("div",{key:0,fixed:"",ref_key:"box",ref:m,style:Ps($(c)),class:Kr(e.class)},[Xf(N.$slots,"default",{onRef:C,moved:$(h)}),N.sizeDraggable?(et(),ae(zn,{key:0},[A("div",{ref:$(o).target,absolute:"","right-full":"","top-0":"","bottom-0":"","w-5px":"","cursor-ew-resize":""},null,512),A("div",{ref:$(s).target,absolute:"","left-full":"","top-0":"","bottom-0":"","w-5px":"","cursor-ew-resize":""},null,512)],64)):ge("",!0)],6)):ge("",!0)]))}}),Pv={key:0,flex:"","justify-between":"","items-center":""},Rv={key:0,viewBox:"0 0 28 28"},Lv={key:1,viewBox:"0 0 1024 1024"},Ov=Rt({__name:"AttrCard",props:{focusNode:{}},setup(t){const e=t,n={_id:{desc:"虚拟属性(真机不可用):生成快照访问节点顺序",type:"info"},_pid:{desc:"虚拟属性(真机不可用):父节点的 _id",type:"info"},depth:{desc:"使用此属性在某些应用上可能造成无限节点错误",type:"info"},id:{desc:"可快速查找",type:"quickFind",show(){return(e.focusNode.quickFind||e.focusNode.idQf)&&e.focusNode.attr.id}},vid:{desc:"可快速查找",type:"quickFind",show(){return(e.focusNode.quickFind||e.focusNode.idQf)&&e.focusNode.attr.vid}},text:{desc:"可快速查找",type:"quickFind",show(){return(e.focusNode.quickFind||e.focusNode.textQf)&&e.focusNode.attr.text}}},r=["text","desc"],a=Z(()=>Object.entries(e.focusNode.attr).map(([o,s])=>{var f,h,d;const l=(f=n[o])==null?void 0:f.show,c={name:o,value:s,desc:JSON.stringify(s),tip:!l||l()?n[o]:void 0};return r.includes(o)?[c,{name:o+".length",value:(h=s==null?void 0:s.length)!=null?h:null,desc:JSON.stringify((d=s==null?void 0:s.length)!=null?d:null),tip:void 0}]:c}).flat());return(o,s)=>{const l=Fa,c=nc,f=gv,h=j1,d=mv,p=yv,g=_v;return et(),de(Wi,{initialValue:{top:40,right:10},class:"box-shadow-dim"},{default:q(({onRef:m})=>[B(g,{size:"small",striped:"",singleLine:!1,class:"gkd_code",themeOverrides:{thPaddingSmall:"1px 3px",tdPaddingSmall:"1px 3px"}},{default:q(()=>[A("thead",null,[A("tr",{ref:m,"cursor-move":""},s[0]||(s[0]=[A("th",null,"Name",-1),A("th",null,"Value",-1)]),512)]),B(p,null,{default:q(()=>[(et(!0),ae(zn,null,wa($(a),_=>(et(),de(d,{key:_.name},{default:q(()=>[B(f,{onClick:v=>$(er)(`${_.name}=${_.desc}`)},{default:q(()=>[_.tip?(et(),ae("div",Pv,[A("div",null,Tt(_.name),1),B(c,null,{trigger:q(()=>[B(l,{size:"16"},{default:q(()=>[_.tip.type=="info"?(et(),ae("svg",Rv,s[1]||(s[1]=[A("path",{d:"M15 8a1 1 0 1 1-2 0a1 1 0 0 1 2 0zm-1.75 3.75v7.5a.75.75 0 0 0 1.5 0v-7.5a.75.75 0 0 0-1.5 0zM2 14C2 7.373 7.373 2 14 2s12 5.373 12 12s-5.373 12-12 12S2 20.627 2 14zM14 3.5C8.201 3.5 3.5 8.201 3.5 14S8.201 24.5 14 24.5S24.5 19.799 24.5 14S19.799 3.5 14 3.5z",fill:"currentColor"},null,-1)]))):_.tip.type=="quickFind"?(et(),ae("svg",Lv,s[2]||(s[2]=[A("path",{d:"M722.500267 330.888533l-273.408 273.408-147.729067-147.729066a42.018133 42.018133 0 1 0-59.426133 59.426133l177.425066 177.493333a41.984 41.984 0 0 0 59.426134 0L781.9264 390.314667a42.001067 42.001067 0 0 0-59.392-59.426134h-0.034133zM78.506667 783.496533a508.279467 508.279467 0 0 0 319.0784 226.986667C530.773333 1041.066667 667.886933 1017.924267 783.701333 945.390933a508.279467 508.279467 0 0 0 226.986667-319.0784 508.279467 508.279467 0 0 0-65.058133-386.116266C848.554667 85.367467 681.710933 0.341333 511.214933 0.341333a508.6208 508.6208 0 0 0-270.813866 77.960534A36.864 36.864 0 0 0 279.552 140.629333C484.113067 12.288 755.029333 74.581333 883.268267 279.278933a434.9952 434.9952 0 0 1 55.739733 330.5472 435.029333 435.029333 0 0 1-194.3552 273.134934 435.746133 435.746133 0 0 1-330.581333 55.773866A435.165867 435.165867 0 0 1 140.936533 744.379733a436.770133 436.770133 0 0 1-5.666133-456.055466 36.829867 36.829867 0 0 0-63.317333-37.546667A510.1568 510.1568 0 0 0 78.506667 783.530667v-0.034134z",fill:"currentColor"},null,-1)]))):ge("",!0)]),_:2},1024)]),default:q(()=>[ye(" "+Tt(_.tip.desc),1)]),_:2},1024)])):(et(),ae(zn,{key:1},[ye(Tt(_.name),1)],64))]),_:2},1032,["onClick"]),B(f,null,{default:q(()=>[B(h,{class:Kr(["w-[calc(var(--gkd-width)*0.12)]",{"text-left direction-rtl":_.name=="id","opacity-50":_.value===null}])},{default:q(()=>[ye(Tt(_.desc),1)]),_:2},1032,["class"])]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:2},1024)]),_:1})}}}),jv={bg:"#eee","px-2px":""},zv=Rt({__name:"MultiFocusCard",props:{focusNode:{},focusNodes:{},onUpdateFocusNode:{type:Function,default:fi},onClose:{type:Function,default:fi}},setup(t){const e=t,r=document.documentElement.scrollWidth/100*25.5,a=Z(()=>{var o,s;return(((s=(o=e.focusNodes)==null?void 0:o.nodes)==null?void 0:s.length)||0)>1});return(o,s)=>{const l=Eo,c=rc,f=w1;return et(),de(Wi,{initialValue:{top:215,left:r},class:"z-2 box-shadow-dim w-420px",show:$(a)},{default:q(({onRef:h})=>[$(a)&&o.focusNodes?(et(),de(f,{key:0,size:"small",closable:"",onClose:o.onClose},{header:q(()=>[A("div",{ref:h,"cursor-move":""},[s[0]||(s[0]=ye(" 位置 ")),A("span",jv,Tt(`${o.focusNodes.position.x.toFixed(0)},${o.focusNodes.position.y.toFixed()}`),1),ye(" 存在 "+Tt(o.focusNodes.nodes.length)+" 个层叠节点 ",1)],512)]),default:q(()=>[B(c,{style:{"max-height":"400px","overflow-y":"scroll","padding-bottom":"10px"}},{default:q(()=>[(et(!0),ae(zn,null,wa(o.focusNodes.nodes,d=>(et(),de(l,{key:d.id,onClick:p=>o.onUpdateFocusNode(d),size:"small",class:Kr({"color-[#00F]":d===o.focusNode})},{default:q(()=>[ye(Tt($(Ui)(d)),1)]),_:2},1032,["onClick","class"]))),128))]),_:1})]),_:2},1032,["onClose"])):ge("",!0)]),_:1},8,["initialValue","show"])}}}),Fv={flex:"","flex-col":"",relative:"","h-full":""},Dv=["src"],Bv={class:"left-[calc(100%+4px)]",absolute:"","top-0":"","overflow-hidden":"","z-1":"","bg-white":"","h-200px":"","w-200px":"","border-1px":"","border-indigo-600":"","border-dashed":""},Kv=["src"],Uv={absolute:"","left-2px":"","top-2px":"","p-1px":"","z-1":"","text-13px":"",class:"leading-[1] bg-[rgba(256,256,256,0.7)]"},Wv={key:0,absolute:"","left-2px":"","bottom-2px":"","p-1px":"","z-1":"","text-12px":"",class:"leading-[1] bg-[rgba(256,256,256,0.7)]",flex:"","flex-col":"","flex-items-center":""},Hv=Rt({__name:"ScreenshotCard",props:{url:{},snapshot:{},rootNode:{},focusNode:{},onUpdateFocusNode:{type:Function,default:fi},onUpdateFocusNodes:{type:Function,default:fi}},setup(t){const e=t,n=At(),r=At(!1),a=g=>{if(!e.rootNode)return;const m=n.value;if(!m)return;const _=m.getBoundingClientRect(),v=_.width/m.naturalWidth*m.naturalHeight,y=(_.height-v)/2,C=(g.clientX-_.left)/_.width*m.naturalWidth,b=(g.clientY-_.top-y)/v*m.naturalHeight,x=z1(e.snapshot.nodes,C,b);x.length!==0&&(e.onUpdateFocusNode(x[0]),e.onUpdateFocusNodes({nodes:x,position:{x:C,y:b}}))},o=g=>`${g*100}%`,s=H1(n),l=Z(()=>{var C;const g=n.value,m=(C=e.focusNode)==null?void 0:C.attr;if(!e.focusNode||!g||!m||!r.value)return"";const _=s.width.value,v=s.height.value,y=_/g.naturalWidth*g.naturalHeight;return{left:`calc(${o(m.left/g.naturalWidth)} - 2px)`,width:`calc(${o((m.right-m.left)/g.naturalWidth)} + 2px)`,top:`calc(${o((m.top/g.naturalHeight*y+(v-y)/2)/v)} - 2px)`,height:`calc(${o((m.bottom-m.top)/g.naturalHeight*y/v)} + 2px)`}}),c=At(!1),f=At({ox:0,oy:0}),h=Z(()=>{var v;const g=(v=e.focusNode)==null?void 0:v.attr;if(!g)return;const{ox:m,oy:_}=f.value;return{left:m-g.left,right:g.right-m,top:_-g.top,bottom:g.bottom-_}}),d=g=>{const m=n.value;if(!m)return;const _=m.getBoundingClientRect(),v=_.width/m.naturalWidth*m.naturalHeight,y=(_.height-v)/2,C=(g.clientX-_.left)/_.width*m.naturalWidth,b=(g.clientY-_.top-y)/v*m.naturalHeight;f.value={ox:C,oy:b},p.value={left:-(C-.1*m.naturalWidth)/m.naturalWidth*1e3+"px",top:-(b-.1*m.naturalWidth)/m.naturalWidth*1e3+"px"}},p=At({left:"0",top:"0"});return(g,m)=>(et(),ae("div",Fv,[A("img",{ref_key:"imgRef",ref:n,src:g.url,onClick:a,"cursor-crosshair":"","h-full":"","object-contain":"",class:"max-w-[calc(var(--gkd-width)*0.35)]",onMouseover:m[0]||(m[0]=_=>c.value=!0),onMouseleave:m[1]||(m[1]=_=>c.value=!1),onMousemove:d,onLoad:m[2]||(m[2]=_=>r.value=!0)},null,40,Dv),A("div",{style:Ps($(l)),absolute:"","pointer-events-none":"","transition-all-300":"","b-1px":"","b-blue":"","b-solid":""},m[3]||(m[3]=[A("div",{absolute:"","left-0":"","top-0":"","bottom-0":"","right-0":"","b-solid":"","b-1px":"","b-red":""},null,-1)]),4),Vf(A("div",Bv,[A("img",{src:g.url,"object-contain":"",absolute:"","left-0":"","top-0":"",style:Ps($(p)),"w-1000px":""},null,12,Kv),A("div",Uv,Tt(`${$(f).ox.toFixed(0)},${$(f).oy.toFixed(0)}`),1),$(h)?(et(),ae("div",Wv,[A("div",null,Tt($(h).top.toFixed(0)),1),A("div",null,Tt($(h).left.toFixed(0)+","+$(h).right.toFixed(0)),1),A("div",null,Tt($(h).bottom.toFixed(0)),1)])):ge("",!0),m[4]||(m[4]=A("div",{class:"top-[calc(50%-1px)] bg-[length:10px_1px]",absolute:"","left-0":"","right-0":"","h-1px":"","bg-repeat-x":"","mix-blend-difference":"",style:{"background-image":`linear-gradient(
258
- to left,
259
- transparent 0%,
260
- transparent 50%,
261
- #fff 50%,
262
- #fff 100%
263
- )`,"background-position-x":"1.5px"}},null,-1)),m[5]||(m[5]=A("div",{class:"left-[calc(50%-1px)] bg-[length:1px_10px]",absolute:"","top-0":"","bottom-0":"","w-1px":"","bg-repeat-y":"","mix-blend-difference":"",style:{"background-image":`linear-gradient(
264
- to top,
265
- transparent 0%,
266
- transparent 50%,
267
- #fff 50%,
268
- #fff 100%
269
- )`,"background-position-y":"1.5px"}},null,-1))],512),[[Qf,$(c)]])]))}});typeof Math.imul>"u"&&(Math.imul=function(e,n){return(e&4294901760)*(n&65535)+(e&65535)*(n|0)|0});typeof ArrayBuffer.isView>"u"&&(ArrayBuffer.isView=function(t){return t!=null&&t.__proto__!=null&&t.__proto__.__proto__===Int8Array.prototype.__proto__});typeof Array.prototype.fill>"u"&&Object.defineProperty(Array.prototype,"fill",{value:function(t){if(this==null)throw new TypeError("this is null or not defined");for(var e=Object(this),n=e.length>>>0,r=arguments[1],a=r>>0,o=a<0?Math.max(n+a,0):Math.min(a,n),s=arguments[2],l=s===void 0?n:s>>0,c=l<0?Math.max(n+l,0):Math.min(l,n);o<c;)e[o]=t,o++;return e}});[Int8Array,Int16Array,Uint16Array,Int32Array,Float32Array,Float64Array].forEach(function(t){typeof t.prototype.fill>"u"&&Object.defineProperty(t.prototype,"fill",{value:Array.prototype.fill})});typeof Math.clz32>"u"&&(Math.clz32=function(t,e){return function(n){var r=n>>>0;return r===0?32:31-(t(r)/e|0)|0}}(Math.log,Math.LN2));typeof String.prototype.startsWith>"u"&&Object.defineProperty(String.prototype,"startsWith",{value:function(t,e){return e=e||0,this.lastIndexOf(t,e)===e}});typeof String.prototype.endsWith>"u"&&Object.defineProperty(String.prototype,"endsWith",{value:function(t,e){var n=this.toString();(e===void 0||e>n.length)&&(e=n.length),e-=t.length;var r=n.indexOf(t,e);return r!==-1&&r===e}});var yt=Math.imul,Vv=ArrayBuffer.isView,hc=Math.clz32;Be(zl,"CharSequence");Be(Ba,"Comparable");k(mo,"Number");lt(Fl,"Unit");k(Kl);k(Hl);be(Cc);k(st,"Char",u,u,[Ba]);Be(Et,"Collection");function dc(){return Mp(this)}Be(Vn,"List",u,u,[Et]);Be(yr,"Entry");Be(wr,"Map");Be(Vr,"Set",u,u,[Et]);be(bp);k(br,"Enum",u,u,[Ba]);be(xc);k(pt,"Long",u,mo,[mo,Ba]);k(No);k(Fs,"JsArrayView",Fs,Array);lt(nh,"Digit");k(Cr,"AbstractCollection",u,u,[Et]);k(Kn,"AbstractMutableCollection",u,Cr,[Cr,Et]);k(gi,"IteratorImpl");k(Ha,"ListIteratorImpl",u,gi);k(we,"AbstractMutableList",u,Kn,[Kn,Vn,Et]);k(qr,"SubList",u,we);k(kn,"AbstractMap",u,u,[wr]);k(bo,"AbstractMutableMap",u,kn,[kn,wr]);k(kr,"AbstractMutableSet",u,Kn,[Kn,Vr,Et]);be(oh);k(Yt,"ArrayList",qt,we,[we,Vn,Et]);k(Un,"HashMap",O_,bo,[bo,wr]);k(Cn,"HashMapEntrySetBase",u,kr,[Vr,Et,kr]);k(eu,"HashMapEntrySet",u,Cn);k(Tn,"HashSet",F_,kr,[kr,Vr,Et]);be(_h);k(Qr,"Itr");k(lu,"KeysItr",u,Qr);k(Ga,"EntriesItr",u,Qr);k(yi,"EntryRef",u,u,[yr]);function Qv(t){var e;t:{var n;if(ot(t,Et)?n=t.l():n=!1,n){e=!0;break t}for(var r=t.h();r.i();){var a=r.j(),o=a,s;if(o!=null&&ot(o,yr)?s=this.e6(o):s=!1,!s){e=!1;break t}}e=!0}return e}Be(mh,"InternalMap");k(Se,"InternalHashMap",ru,u,[mh]);k(Ja,"LinkedHashMap",gh,Un,[Un,wr]);k(Gr,"LinkedHashSet",uu,Tn,[Tn,Vr,Et]);Be(ua,"Continuation");k(Na,"InterceptedCoroutine",u,u,[ua]);k(Pe,"CoroutineImpl",u,Na,[Na,ua]);lt(ta,"CompletedContinuation",u,u,[ua]);k(fu,u,u,Pe);k(xn,"Exception",bh,Error);k(Ke,"RuntimeException",Nh,xn);k(wi,"IllegalArgumentException",xh,Ke);k(ea,"IndexOutOfBoundsException",cu,Ke);k(na,"IllegalStateException",$h,Ke);k(ra,"UnsupportedOperationException",bi,Ke);k(ia,"NoSuchElementException",$e,Ke);k(aa,"Error",qh,Error);k(Ci,"NumberFormatException",Ah,wi);k(oa,"ArithmeticException",Mh,Ke);k(Po,"ConcurrentModificationException",hu,Ke);k(Ro,"NullPointerException",du,Ke);k(Lo,"NoWhenBranchMatchedException",vu,Ke);k(Oo,"ClassCastException",pu,Ke);Be(qa,"KClass");k(pn,"KClassImpl",u,u,[qa]);lt(xi,"NothingKClassImpl",u,pn);k(Gi,"ErrorKClass",Gi,u,[qa]);k(Ft,"PrimitiveKClassImpl",u,pn);k(ko,"SimpleKClassImpl",u,pn);Be(jo,"KProperty1");Be(_u,"KProperty0");lt(Xt,"PrimitiveClasses");k(Sn,"StringBuilder",gu,u,[zl]);be(Bh);k(Xa,"Regex");k(yu,"sam$kotlin_Comparator$0");be(Jr);be(cm);be(Fo);k(Qn,"ArrayAsCollection",u,u,[Et]);lt(fe,"EmptyList",u,u,[Vn]);lt(Si,"EmptyIterator");k(ai,"IndexedValue");k(Bo,"IntIterator");k(to,"CharIterator");k(xr,"SequenceScope",u,u,u,[1]);k(Sr,"SequenceBuilderIterator",Sr,xr,[xr,ua],[1]);k(Cu);k(Ko);k(xu,"TransformingSequence");k(Uo);k(Su,"FilteringSequence");k(Wo);k($u,"IndexingSequence");Be(Ei,"DropTakeSequence");k(Ho);k(ci,"TakeSequence",u,u,[Ei]);k(Vo);k(Eu,"TakeWhileSequence");k(Qo);k(oi,"DropSequence",u,u,[Ei]);k(Go);k(Nu,"DropWhileSequence");lt(no,"EmptySequence",u,u,[Ei]);k(Yo);k(Wr,"SubSequence",u,u,[Ei]);lt(Gn,"EmptySet",u,u,[Vr]);lt(Zh,"Key");Be(Em,"ContinuationInterceptor");lt(ro,"EmptyCoroutineContext");k(ho,"CoroutineSingletons",u,br);be(rd);k(Hn,"IntProgression");k(Hr,"IntRange",u,Hn);be(id);k(Nr,"CharProgression");k(Er,"CharRange",u,Nr);k(Zo,"IntProgressionIterator",u,Bo);k(ts,"CharProgressionIterator",u,to);be(qu);be(Mm);k(ao,"UnsafeLazyImpl");lt(hd,"UNINITIALIZED_VALUE");be(Dm);k(Ir,"Failure");k(il,"NotImplementedError",il,aa);k(An,"Pair");function zl(){}function Ba(){}function mo(){}function Fl(){}i(Fl).toString=function(){return"kotlin.Unit"};var ct;function Dl(t){switch(t.length){case 0:return sa();case 1:return Wa(t[0]);default:return Bl(t)}}function Ls(t,e){return pc(t,e)>=0}function Gv(t){return t.length===0?$i():new Kl(t)}function vc(t,e,n,r,a,o,s){return e=e===u?", ":e,n=n===u?"":n,r=r===u?"":r,a=a===u?-1:a,o=o===u?"...":o,s=s===u?null:s,Yv(t,gu(),e,n,r,a,o,s).toString()}function Bl(t){return Va(ym(t))}function Jv(t){var e;switch(t.length){case 0:throw Ya("Array is empty.");case 1:e=t[0];break;default:throw Dt("Array has more than one element.")}return e}function pc(t,e){if(e==null){var n=0,r=t.length-1|0;if(n<=r)do{var a=n;if(n=n+1|0,t[a]==null)return a}while(n<=r)}else{var o=0,s=t.length-1|0;if(o<=s)do{var l=o;if(o=o+1|0,I(e,t[l]))return l}while(o<=s)}return-1}function Yv(t,e,n,r,a,o,s,l){n=n===u?", ":n,r=r===u?"":r,a=a===u?"":a,o=o===u?-1:o,s=s===u?"...":s,l=l===u?null:l,e.e(r);var c=0,f=0,h=t.length;t:for(;f<h;){var d=t[f];if(f=f+1|0,c=c+1|0,c>1&&e.e(n),o<0||c<=o)od(e,d,l);else break t}return o>=0&&c>o&&e.e(s),e.e(a),e}function Xv(t){return t.length-1|0}function Zv(t,e){if(e==null){var n=t.length-1|0;if(0<=n)do{var r=n;if(n=n+-1|0,t[r]==null)return r}while(0<=n)}else{var a=t.length-1|0;if(0<=a)do{var o=a;if(a=a+-1|0,I(e,t[o]))return o}while(0<=a)}return-1}function tp(t,e){for(var n=0,r=t.length;n<r;){var a=t[n];n=n+1|0,e.f(a)}return e}function Kl(t){this.g_1=t}i(Kl).h=function(){return $c(this.g_1)};function In(t,e,n,r,a,o,s){return e=e===u?", ":e,n=n===u?"":n,r=r===u?"":r,a=a===u?-1:a,o=o===u?"...":o,s=s===u?null:s,ep(t,gu(),e,n,r,a,o,s).toString()}function ep(t,e,n,r,a,o,s,l){n=n===u?", ":n,r=r===u?"":r,a=a===u?"":a,o=o===u?-1:o,s=s===u?"...":s,l=l===u?null:l,e.e(r);var c=0,f=t.h();t:for(;f.i();){var h=f.j();if(c=c+1|0,c>1&&e.e(n),o<0||c<=o)od(e,h,l);else break t}return o>=0&&c>o&&e.e(s),e.e(a),e}function _c(t){return t.l()?null:t.k(0)}function Hi(t){if(t.l())throw Ya("List is empty.");return t.k(0)}function np(t){return gc(ap(t))}function rp(t){return new Hl(t)}function ip(t){return t.l()?null:t.k(t.m()-1|0)}function mc(t,e){if(ot(e,Et)){var n=Vi(t.m()+e.m()|0);return n.q(t),n.q(e),n}else{var r=Va(t);return Do(r,e),r}}function ba(t){if(t.l())throw Ya("List is empty.");return t.k(Za(t))}function Ul(t){return Va(t)}function Wl(t,e){if(ot(t,Et)){if(t.m()<=1)return gc(t);var n=bn(t),r=Zi(n)?n:S();return m_(r,e),Xl(r)}var a=yc(t);return S_(a,e),a}function gc(t){if(ot(t,Et)){var e;switch(t.m()){case 0:e=sa();break;case 1:var n;ot(t,Vn)?n=t.k(0):n=t.h().j(),e=Wa(n);break;default:e=Ul(t);break}return e}return _m(yc(t))}function ap(t){var e;return ot(t,Et)?e=o0(t):e=go(t,uu()),e}function yc(t){return ot(t,Et)?Ul(t):go(t,qt())}function go(t,e){for(var n=t.h();n.i();){var r=n.j();e.f(r)}return e}function op(t){if(ot(t,Et)){var e;switch(t.m()){case 0:e=Iu();break;case 1:var n;ot(t,Vn)?n=t.k(0):n=t.h().j(),e=ih(n);break;default:e=go(t,u0(t.m()));break}return e}return Sm(go(t,uu()))}function Hl(t){this.r_1=t}i(Hl).h=function(){return this.r_1.h()};function sp(t,e){return ad.s(t,e,-1)}function ka(t,e){return t>e?e:t}function yo(t,e){return t<e?e:t}function Vl(t){return cp(t,qt())}function Ql(t,e){var n=new $u(t),r=new Su(n,!0,hp(e));return new xu(r,dp)}function wc(t,e){if(!(e>=0)){var n="Requested element count "+e+" is less than zero.";throw Dt(z(n))}var r;return e===0?r=$i():ot(t,Ei)?r=t.t(e):r=new ci(t,e),r}function lp(t,e){return new Eu(t,e)}function up(t,e){var n;return ot(t,Ei)?n=t.u(e):n=new oi(t,e),n}function fp(t,e){return new Nu(t,e)}function bc(t){var e=t.h();return e.i()?e.j():null}function kc(t){var e=t.h();if(!e.i())return sa();var n=e.j();if(!e.i())return Wa(n);var r=qt();for(r.f(n);e.i();)r.f(e.j());return r}function cp(t,e){for(var n=t.h();n.i();){var r=n.j();e.f(r)}return e}function hp(t){return function(e){return t(e.v_1,e.w_1)}}function dp(t){return t.w_1}function tn(t,e){return 0<=e&&e<=(P(t)-1|0)?O(t,e):null}function vf(t,e){if(!(e>=0)){var n="Requested character count "+e+" is less than zero.";throw Dt(z(n))}return cn(t,ka(e,P(t)),P(t))}function vp(t){return pp(t,Vi(P(t)))}function pp(t,e){for(var n=0;n<P(t);){var r=O(t,n);n=n+1|0,e.f(new st(r))}return e}function _p(t){var e=t&65535;return e}function ie(t,e){return t-e|0}function mp(t,e){return ie(t.x_1,e instanceof st?e.x_1:S())}function pa(t,e){return t-e|0}function ri(t,e){return new Er(t,e)}function je(t){return t}function Vt(t){return String.fromCharCode(t)}function gp(t,e){return e instanceof st?t===e.x_1:!1}function yp(t){return t}function Cc(){Os=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 Os;function wp(){return Os==null&&new Cc,Os}function st(t){wp(),this.x_1=t}i(st).i1=function(t){return ie(this.x_1,t)};i(st).d=function(t){return mp(this,t)};i(st).toString=function(){return Vt(this.x_1)};i(st).equals=function(t){return gp(this.x_1,t)};i(st).hashCode=function(){return yp(this.x_1)};function Vn(){}function Et(){}function yr(){}function wr(){}function Vr(){}function bp(){}function br(t,e){this.v1_1=t,this.w1_1=e}i(br).x1=function(t){return Pc(this.w1_1,t.w1_1)};i(br).d=function(t){return this.x1(t instanceof br?t:S())};i(br).equals=function(t){return this===t};i(br).hashCode=function(){return Dp(this)};i(br).toString=function(){return this.v1_1};function Gt(t){var e=t==null?null:z(t);return e==null?"null":e}function xc(){js=this,this.y1_1=new pt(0,-2147483648),this.z1_1=new pt(-1,2147483647),this.a2_1=8,this.b2_1=64}var js;function kp(){return js==null&&new xc,js}function pt(t,e){kp(),mo.call(this),this.c2_1=t,this.d2_1=e}i(pt).e2=function(t){return qo(this,t)};i(pt).d=function(t){return this.e2(t instanceof pt?t:S())};i(pt).f2=function(t){return wo(this,t)};i(pt).g2=function(t){return Yp(this,t)};i(pt).h2=function(){return this.i2().f2(new pt(1,0))};i(pt).i2=function(){return new pt(~this.c2_1,~this.d2_1)};i(pt).j2=function(){return this.c2_1};i(pt).k2=function(){return Sa(this)};i(pt).toString=function(){return Bs(this,10)};i(pt).equals=function(t){var e;return t instanceof pt?e=Nn(this,t):e=!1,e};i(pt).hashCode=function(){return t_(this)};i(pt).valueOf=function(){return this.k2()};function Sc(t){for(var e=1,n=[],r=0,a=t.length;r<a;){var o=t[r];r=r+1|0;var s=e,l=o.prototype.$imask$,c=l==null?o.$imask$:l;c!=null&&(n.push(c),s=c.length);var f=o.$metadata$.iid,h;f==null?h=null:h=Cp(f);var d=h;d!=null&&(n.push(d),s=Math.max(s,d.length)),s>e&&(e=s)}return xp(e,n)}function Cp(t){var e=t>>5,n=new Int32Array(e+1|0),r=t&31,a=1<<r;return n[e]=n[e]|a,n}function xp(t,e){for(var n=0,r=new Int32Array(t);n<t;){for(var a=n,o=0,s=0,l=e.length;s<l;){var c=e[s];s=s+1|0,a<c.length&&(o=o|c[a])}r[a]=o,n=n+1|0}return r}function Sp(t,e){var n=e>>5;if(n>t.length)return!1;var r=e&31,a=1<<r;return!!(t[n]&a)}function nr(t,e){var n=0,r=t.length-1|0;if(n<=r)do{var a=n;n=n+1|0,t[a]=e}while(a!==r);return t}function $c(t){return new No(t)}function $p(t){var e="CharArray",n=new Uint16Array(t);return n.$type$=e,n}function No(t){this.m2_1=t,this.l2_1=0}i(No).i=function(){return this.l2_1!==this.m2_1.length};i(No).j=function(){var t;if(this.l2_1!==this.m2_1.length){var e=this.l2_1;this.l2_1=e+1|0,t=this.m2_1[e]}else throw Ya(""+this.l2_1);return t};function $s(){return Yi(),Ec}var Ec;function Nc(){return Yi(),Ic}var Ic;function zs(){return Yi(),qc}var qc;function Ac(){return Yi(),Tc}var Tc;function Ep(){return Yi(),Mc}var Mc;function Np(t){return Yi(),(t|0)===t?Kc(t):(Nc()[0]=t,yt(zs()[Ep()],31)+zs()[Ac()]|0)}var pf;function Yi(){pf||(pf=!0,Ec=new ArrayBuffer(8),Ic=new Float64Array($s()),new Float32Array($s()),qc=new Int32Array($s()),Nc()[0]=-1,Tc=zs()[0]!==0?1:0,Mc=1-Ac()|0)}function O(t,e){var n;if(Gl(t)){var r=t.charCodeAt(e),a,o=0;if(r<je(o))a=!0;else{var s=65535;a=r>je(s)}if(a)throw Dt("Invalid Char code: "+r);n=Ea(r)}else n=t.b(e);return n}function Gl(t){return typeof t=="string"}function P(t){var e;return Gl(t)?e=t.length:e=t.a(),e}function cn(t,e,n){var r;return Gl(t)?r=t.substring(e,n):r=t.c(e,n),r}function Ip(t,e){var n=t,r=e;if(n===r)return!0;if(n==null||r==null||!Wc(r)||n.length!=r.length)return!1;var a=0,o=n.length;if(a<o)do{var s=a;if(a=a+1|0,!I(n[s],r[s]))return!1}while(a<o);return!0}function qp(t){var e=t;if(e==null)return 0;var n=1,r=0,a=e.length;if(r<a)do{var o=r;r=r+1|0,n=yt(n,31)+ft(e[o])|0}while(r<a);return n}function Ap(t){return vc(t,", ","[","]",u,u,Tp)}function Tp(t){return z(t)}function Mp(t){var e=Rp(t),n=Lp(t),r=Op(),a=jp(),o=zp();return Pp(e,n,r,a,o)}function Pp(t,e,n,r,a){var o=nt(i(Fs));return new Proxy(o,{get:function(s,l,c){if(l==="length")return t();var f=typeof l,h=f==="string"||f==="number"?+l:void 0;return isNaN(h)?s[l]:e(h)},has:function(s,l){return!isNaN(l)&&l<t()},set:function(s,l,c){if(l==="length"){var f=t(),h=d==="string"||d==="number"?+l:void 0;if(isNaN(h))throw new RangeError("invalid array length");return h<f?r(f-h):a(h-f),!0}var d=typeof l,p=d==="string"||d==="number"?+l:void 0;return isNaN(p)?!1:(n(p,c),!0)}})}function Jl(){throw bi()}function Fs(){Array.call(this)}function Rp(t){return function(){return t.m()}}function Lp(t){return function(e){return t.k(e)}}function Op(){var t=function(){return Jl(),ct};return t.callableName="UNSUPPORTED_OPERATION",t}function jp(){var t=function(){return Jl(),ct};return t.callableName="UNSUPPORTED_OPERATION",t}function zp(){var t=function(){return Jl(),ct};return t.callableName="UNSUPPORTED_OPERATION",t}function Pc(t,e){var n;switch(typeof t){case"number":var r;typeof e=="number"?r=_f(t,e):e instanceof pt?r=_f(t,e.k2()):r=mf(t,e),n=r;break;case"string":case"boolean":n=mf(t,e);break;default:n=Fp(t,e);break}return n}function _f(t,e){var n;if(t<e)n=-1;else if(t>e)n=1;else if(t===e){var r;if(t!==0)r=0;else{var a=1/t,o;a===1/e?o=0:a<0?o=-1:o=1,r=o}n=r}else t!==t?n=e!==e?0:1:n=-1;return n}function mf(t,e){return t<e?-1:t>e?1:0}function Fp(t,e){return t.d(e)}function Dp(t){return Ds(t)}function Ds(t){if(!("kotlinHashCodeValue$"in t)){var e=Rc(),n=new Object;n.value=e,n.enumerable=!1,Object.defineProperty(t,"kotlinHashCodeValue$",n)}return t.kotlinHashCodeValue$}function Rc(){return Math.random()*4294967296|0}function nt(t){return t=t===u?null:t,Object.create(t)}function V(t,e,n,r){return Object.defineProperty(t,e,{configurable:!0,get:n,set:r})}function I(t,e){if(t==null)return e==null;if(e==null)return!1;if(typeof t=="object"&&typeof t.equals=="function")return t.equals(e);if(t!==t)return e!==e;if(typeof t=="number"&&typeof e=="number"){var n;if(t===e){var r;if(t!==0)r=!0;else{var a=1/t;r=a===1/e}n=r}else n=!1;return n}return t===e}function ft(t){if(t==null)return 0;var e=typeof t,n;switch(e){case"object":n=typeof t.hashCode=="function"?t.hashCode():Ds(t);break;case"function":n=Ds(t);break;case"number":n=Np(t);break;case"boolean":n=Ca(t);break;case"string":n=Ge(String(t));break;case"bigint":n=Bp(t);break;case"symbol":n=Kp(t);break;default:n=function(){throw new Error("Unexpected typeof `"+e+"`")}();break}return n}function z(t){var e;return t==null?e="null":Wc(t)?e="[...]":typeof t.toString!="function"?e=Up(t):e=t.toString(),e}function Ca(t){return t?1231:1237}function Ge(t){var e=0,n=t.length,r=0,a=n-1|0;if(r<=a)do{var o=r;r=r+1|0;var s=t.charCodeAt(o);e=yt(e,31)+s|0}while(o!==a);return e}function Bp(t){for(var e=BigInt(32),n=BigInt(4294967295),r=t<0?-t:t,a=0,o=t<0?-1:1;r!=0;){var s=Number(r&n);a=yt(31,a)+s|0,r=r>>e}return yt(a,o)}function Kp(t){var e=Wp(t)?Hp():Vp(),n=e.get(t);if(n!==u)return n;var r=Rc();return e.set(t,r),r}function Up(t){return Object.prototype.toString.call(t)}function Wp(t){return Symbol.keyFor(t)!=u}function Hp(){return Es===u&&(Es=new Map),Es}function Vp(){return Ns===u&&(Ns=new WeakMap),Ns}var Es,Ns;function H(t,e){Error.captureStackTrace!=null?Error.captureStackTrace(t,e):t.stack=new Error().stack}function i(t){return t.prototype}function Io(t,e,n){Error.call(t),Qp(t,e,n)}function Qp(t,e,n){var r=eh(Object.getPrototypeOf(t));if(!(r&1)){var a;if(e==null){var o;if(e!==null){var s=null;o=s==null?u:s}else o=u;a=o}else a=e;t.message=a}r&2||(t.cause=n),t.name=Object.getPrototypeOf(t).constructor.name}function Me(t){var e;return t==null?Gp():e=t,e}function Gp(){throw du()}function qn(){throw vu()}function S(){throw pu()}function ir(){return Nt(),Lc}var Lc;function fo(){return Nt(),Oc}var Oc;function gf(){return Nt(),jc}var jc;function Jp(){return Nt(),zc}var zc;function Fn(){return Nt(),Fc}var Fc;function yf(){return Nt(),Dc}var Dc;function qo(t,e){if(Nt(),Nn(t,e))return 0;var n=wn(t),r=wn(e);return n&&!r?-1:!n&&r?1:wn(xa(t,e))?-1:1}function wo(t,e){Nt();var n=t.d2_1>>>16|0,r=t.d2_1&65535,a=t.c2_1>>>16|0,o=t.c2_1&65535,s=e.d2_1>>>16|0,l=e.d2_1&65535,c=e.c2_1>>>16|0,f=e.c2_1&65535,h=0,d=0,p=0,g=0;return g=g+(o+f|0)|0,p=p+(g>>>16|0)|0,g=g&65535,p=p+(a+c|0)|0,d=d+(p>>>16|0)|0,p=p&65535,d=d+(r+l|0)|0,h=h+(d>>>16|0)|0,d=d&65535,h=h+(n+s|0)|0,h=h&65535,new pt(p<<16|g,h<<16|d)}function xa(t,e){return Nt(),wo(t,e.h2())}function Rr(t,e){if(Nt(),ii(t))return ir();if(ii(e))return ir();if(Nn(t,Fn()))return wf(e)?Fn():ir();if(Nn(e,Fn()))return wf(t)?Fn():ir();if(wn(t)){var n;return wn(e)?n=Rr(Ze(t),Ze(e)):n=Ze(Rr(Ze(t),e)),n}else if(wn(e))return Ze(Rr(t,Ze(e)));if(bf(t,yf())&&bf(e,yf()))return $a(Sa(t)*Sa(e));var r=t.d2_1>>>16|0,a=t.d2_1&65535,o=t.c2_1>>>16|0,s=t.c2_1&65535,l=e.d2_1>>>16|0,c=e.d2_1&65535,f=e.c2_1>>>16|0,h=e.c2_1&65535,d=0,p=0,g=0,m=0;return m=m+yt(s,h)|0,g=g+(m>>>16|0)|0,m=m&65535,g=g+yt(o,h)|0,p=p+(g>>>16|0)|0,g=g&65535,g=g+yt(s,f)|0,p=p+(g>>>16|0)|0,g=g&65535,p=p+yt(a,h)|0,d=d+(p>>>16|0)|0,p=p&65535,p=p+yt(o,f)|0,d=d+(p>>>16|0)|0,p=p&65535,p=p+yt(s,c)|0,d=d+(p>>>16|0)|0,p=p&65535,d=d+(((yt(r,h)+yt(a,f)|0)+yt(o,c)|0)+yt(s,l)|0)|0,d=d&65535,new pt(g<<16|m,d<<16|p)}function Yp(t,e){if(Nt(),ii(e))throw kh("division by zero");if(ii(t))return ir();if(Nn(t,Fn())){if(Nn(e,fo())||Nn(e,gf()))return Fn();if(Nn(e,Fn()))return fo();var n=Zp(t,1),r=Xp(n.g2(e),1);if(Nn(r,ir()))return wn(e)?fo():gf();var a=xa(t,Rr(e,r));return wo(r,a.g2(e))}else if(Nn(e,Fn()))return ir();if(wn(t)){var o;return wn(e)?o=Ze(t).g2(Ze(e)):o=Ze(Ze(t).g2(e)),o}else if(wn(e))return Ze(t.g2(Ze(e)));for(var s=ir(),l=t;n_(l,e);){for(var c=Sa(l)/Sa(e),f=Math.max(1,Math.floor(c)),h=Math.ceil(Math.log(f)/Math.LN2),d=h<=48?1:Math.pow(2,h-48),p=$a(f),g=Rr(p,e);wn(g)||e_(g,l);)f=f-d,p=$a(f),g=Rr(p,e);ii(p)&&(p=fo()),s=wo(s,p),l=xa(l,g)}return s}function Xp(t,e){Nt();var n=e&63;return new pt(t.c2_1<<n,t.d2_1<<n|(t.c2_1>>>(32-n|0)|0))}function Zp(t,e){Nt();var n=e&63;return new pt(t.c2_1>>>n|0|t.d2_1<<(32-n|0),t.d2_1>>n)}function Sa(t){return Nt(),t.d2_1*4294967296+r_(t)}function Bs(t,e){if(Nt(),ii(t))return"0";if(wn(t))if(Nn(t,Fn())){var n=ya(e),r=t.g2(n),a=xa(Rr(r,n),t).j2(),o=Bs(r,e);return o+a.toString(e)}else return"-"+Bs(Ze(t),e);for(var s=9,l=$a(Math.pow(e,s)),c=t,f="";;){var h=c.g2(l),d=xa(c,Rr(h,l)).j2(),p=d.toString(e);if(c=h,ii(c))return p+f;for(;p.length<s;)p="0"+p;f=p+f}}function Nn(t,e){return Nt(),t.d2_1===e.d2_1&&t.c2_1===e.c2_1}function t_(t){return Nt(),t.c2_1^t.d2_1}function ya(t){return Nt(),new pt(t,t<0?-1:0)}function wn(t){return Nt(),t.d2_1<0}function ii(t){return Nt(),t.d2_1===0&&t.c2_1===0}function wf(t){return Nt(),(t.c2_1&1)===1}function Ze(t){return Nt(),t.h2()}function bf(t,e){return Nt(),qo(t,e)<0}function $a(t){if(Nt(),C_(t))return ir();if(t<=-9223372036854776e3)return Fn();if(t+1>=9223372036854776e3)return Jp();if(t<0)return Ze($a(-t));var e=4294967296,n=t%e|0,r=t/e|0;return new pt(n,r)}function e_(t,e){return Nt(),qo(t,e)>0}function n_(t,e){return Nt(),qo(t,e)>=0}function r_(t){return Nt(),t.c2_1>=0?t.c2_1:4294967296+t.c2_1}var kf;function Nt(){kf||(kf=!0,Lc=ya(0),Oc=ya(1),jc=ya(-1),zc=new pt(-1,2147483647),Fc=new pt(0,-2147483648),Dc=ya(16777216))}function Bc(t,e,n,r,a,o){var s=u,l=t==="interface"?i_():u;return{kind:t,simpleName:e,associatedObjectKey:r,associatedObjects:a,suspendArity:o,$kClass$:s,defaultConstructor:n,iid:l}}function i_(){return _a===u&&(_a=0),_a=_a+1|0,_a}var _a;function Yl(t,e,n,r,a,o,s,l,c){a!=null&&(e.prototype=Object.create(a.prototype),e.prototype.constructor=e);var f=Bc(t,n,r,l,c,s);if(e.$metadata$=f,o!=null){var h=I(f.iid,u)?e.prototype:e;h.$imask$=Sc(o)}}function k(t,e,n,r,a,o,s,l){var c="class";Yl(c,t,e,n,r,a,o,s,l)}function lt(t,e,n,r,a,o,s,l){var c="object";Yl(c,t,e,n,r,a,o,s,l)}function Be(t,e,n,r,a,o,s,l){var c="interface";Yl(c,t,e,n,r,a,o,s,l)}function Ka(t,e,n,r){k(t,"Lambda",u,e,n,r,u,u)}function be(t,e,n,r){lt(t,"Companion",u,e,n,r,u,u)}function a_(t,e,n,r,a){return Bc("class",t,e,n,r,a)}function rr(t){var e=t.length,n=Array(e),r=0,a=e-1|0;if(r<=a)do{var o=r;r=r+1|0;var s=t[o];s!=null&&Zi(s)?n[o]=s:n[o]=[].slice.call(s)}while(o!==a);return[].concat.apply([],n)}function Kc(t){var e;return t instanceof pt?e=t.j2():e=o_(t),e}function o_(t){var e;return t>2147483647?e=2147483647:t<-2147483648?e=-2147483648:e=t|0,e}function s_(t){return t<<16>>16}function Ea(t){var e=Kc(t),n=s_(e);return _p(n)}function l_(t,e){return new Hr(t,e)}function u_(){return Xi(),Uc}var Uc;function zi(){return Xi(),a_(u,u,u,u,u)}function Ua(t,e,n,r,a){return Xi(),r.get=r,r.set=a,r.callableName=t,f_(r,c_(e,a),h_(r,n))}function f_(t,e,n){return Xi(),t.$metadata$=e,t.constructor=t,t.$imask$=n,t}function c_(t,e){return Xi(),u_()[t][e==null?0:1]}function h_(t,e){Xi();var n=t.$imask$,r;if(n==null){var a=[e];r=Sc(a)}else r=n;return r}var Cf;function Xi(){if(!Cf){Cf=!0;var t=[zi(),zi()],e=[zi(),zi()];Uc=[t,e,[zi(),zi()]]}}function Wc(t){return Ao(t)||Vv(t)}function Ao(t){return Array.isArray(t)}function ot(t,e){return d_(t,e.$metadata$.iid)}function d_(t,e){var n=t.$imask$,r;if(n==null)return!1;r=n;var a=r;return Sp(a,e)}function Zi(t){var e;return Ao(t)?e=!t.$type$:e=!1,e}function Hc(t){var e;return typeof t=="number"?e=!0:e=t instanceof pt,e}function v_(t){var e=typeof t;return e==="string"||e==="boolean"||Hc(t)||ot(t,Ba)}function _e(t){return typeof t=="string"||ot(t,zl)}function Vc(t){return Ao(t)&&t.$type$==="BooleanArray"}function Qc(t){return t instanceof Int8Array}function Gc(t){return t instanceof Int16Array}function Jc(t){var e;return t instanceof Uint16Array?e=t.$type$==="CharArray":e=!1,e}function Yc(t){return t instanceof Int32Array}function Xc(t){return t instanceof Float32Array}function Zc(t){return Ao(t)&&t.$type$==="LongArray"}function th(t){return t instanceof Float64Array}function eh(t){var e=t.constructor,n=e==null?null:e.$metadata$,r=n==null?null:n.errorInfo;if(r!=null)return r;var a=0;if(xf(t,"message")&&(a=a|1),xf(t,"cause")&&(a=a|2),a!==3){var o=p_(t);o!=Error.prototype&&(a=a|eh(o))}return n!=null&&(n.errorInfo=a),a}function xf(t,e){return t.hasOwnProperty(e)}function p_(t){return Object.getPrototypeOf(t)}var u;function __(t,e,n,r){n=n===u?0:n,r=r===u?t.length:r,_n.o2(n,r,t.length),t.fill(e,n,r)}function Ks(t,e){return Ip(t,e)}function Us(t){return qp(t)}function Xl(t){return new Yt(t)}function m_(t,e){t.length>1&&sh(t,e)}function g_(t,e){if(!(e>=0)){var n="Invalid new array size: "+e+".";throw Dt(z(n))}return I0(t,new Int32Array(e))}function y_(t,e){if(!(e>=0)){var n="Invalid new array size: "+e+".";throw Dt(z(n))}return q0(t,e,null)}function Zl(t){var e=(t.m()/2|0)-1|0;if(e<0)return ct;var n=Za(t),r=0;if(r<=e)do{var a=r;r=r+1|0;var o=t.k(a);t.p2(a,t.k(n)),t.p2(n,o),n=n-1|0}while(a!==e)}function w_(t){var e=je(t),n=b_(Sf().q2_1,e),r=e-Sf().q2_1[n]|0;return r<10?r:-1}function b_(t,e){for(var n=0,r=t.length-1|0,a=-1,o=0;n<=r;)if(a=(n+r|0)/2|0,o=t[a],e>o)n=a+1|0;else{if(e===o)return a;r=a-1|0}return a-(e<o?1:0)|0}function nh(){Ws=this;var t=this;t.q2_1=new Int32Array([48,1632,1776,1984,2406,2534,2662,2790,2918,3046,3174,3302,3430,3558,3664,3792,3872,4160,4240,6112,6160,6470,6608,6784,6800,6992,7088,7232,7248,42528,43216,43264,43472,43504,43600,44016,65296])}var Ws;function Sf(){return Ws==null&&new nh,Ws}function k_(t){var e=je(t);return(9<=e?e<=13:!1)||(28<=e?e<=32:!1)||e===160||e>4096&&(e===5760||(8192<=e?e<=8202:!1)||e===8232||e===8233||e===8239||e===8287||e===12288)}function C_(t){return t!==t}function x_(t){var e;return t===0?e=0:e=1<<(31-hc(t)|0),e}function rh(t){return dm(t)}function Wa(t){return pm([t])}function bn(t){var e;return t.toArray!==void 0?e=t.toArray():e=rh(t),e}function To(t){return t<0&&wm(),t}function S_(t,e){$_(t,e)}function ih(t){return xm([t])}function $_(t,e){if(t.m()<=1)return ct;var n=bn(t);sh(n,e);var r=0,a=n.length;if(r<a)do{var o=r;r=r+1|0,t.p2(o,n[o])}while(r<a)}function Kn(){Cr.call(this)}i(Kn).q=function(t){this.r2();for(var e=!1,n=t.h();n.i();){var r=n.j();this.f(r)&&(e=!0)}return e};i(Kn).toJSON=function(){return this.toArray()};i(Kn).r2=function(){};function gi(t){this.u2_1=t,this.s2_1=0,this.t2_1=-1}i(gi).i=function(){return this.s2_1<this.u2_1.m()};i(gi).j=function(){if(!this.i())throw $e();var t=this,e=this.s2_1;return this.s2_1=e+1|0,t.t2_1=e,this.u2_1.k(this.t2_1)};i(gi).v2=function(){if(this.t2_1===-1){var t="Call next() or previous() before removing element from the iterator.";throw Ur(z(t))}this.u2_1.x2(this.t2_1),this.s2_1=this.t2_1,this.t2_1=-1};function Ha(t,e){this.b3_1=t,gi.call(this,t),_n.c3(e,this.b3_1.m()),this.s2_1=e}i(Ha).d3=function(){return this.s2_1>0};i(Ha).e3=function(){return this.s2_1};i(Ha).f3=function(){if(!this.d3())throw $e();var t=this;return this.s2_1=this.s2_1-1|0,t.t2_1=this.s2_1,this.b3_1.k(this.t2_1)};function qr(t,e,n){we.call(this),this.h3_1=t,this.i3_1=e,this.j3_1=0,_n.o2(this.i3_1,n,this.h3_1.m()),this.j3_1=n-this.i3_1|0}i(qr).k3=function(t,e){_n.c3(t,this.j3_1),this.h3_1.k3(this.i3_1+t|0,e),this.j3_1=this.j3_1+1|0};i(qr).k=function(t){return _n.l3(t,this.j3_1),this.h3_1.k(this.i3_1+t|0)};i(qr).x2=function(t){_n.l3(t,this.j3_1);var e=this.h3_1.x2(this.i3_1+t|0);return this.j3_1=this.j3_1-1|0,e};i(qr).p2=function(t,e){return _n.l3(t,this.j3_1),this.h3_1.p2(this.i3_1+t|0,e)};i(qr).m3=function(t,e){this.h3_1.m3(this.i3_1+t|0,this.i3_1+e|0),this.j3_1=this.j3_1-(e-t|0)|0};i(qr).m=function(){return this.j3_1};i(qr).r2=function(){return this.h3_1.r2()};function we(){Kn.call(this),this.w2_1=0}i(we).f=function(t){return this.r2(),this.k3(this.m(),t),!0};i(we).n3=function(){this.r2(),this.m3(0,this.m())};i(we).h=function(){return new gi(this)};i(we).j1=function(t){return this.l1(t)>=0};i(we).l1=function(t){var e;t:{for(var n=0,r=this.h();r.i();){var a=r.j();if(I(a,t)){e=n;break t}n=n+1|0}e=-1}return e};i(we).m1=function(t){var e;t:{for(var n=this.o1(this.m());n.d3();){var r=n.f3();if(I(r,t)){e=n.e3();break t}}e=-1}return e};i(we).n1=function(){return this.o1(0)};i(we).o1=function(t){return new Ha(this,t)};i(we).p1=function(t,e){return new qr(this,t,e)};i(we).m3=function(t,e){var n=this.o1(t),r=e-t|0,a=0;if(a<r)do a=a+1|0,n.j(),n.v2();while(a<r)};i(we).equals=function(t){return t===this?!0:t!=null&&ot(t,Vn)?_n.o3(this,t):!1};i(we).hashCode=function(){return _n.p3(this)};function bo(){kn.call(this),this.s3_1=null,this.t3_1=null}function kr(){Kn.call(this)}i(kr).equals=function(t){return t===this?!0:t!=null&&ot(t,Vr)?bu.y3(this,t):!1};i(kr).hashCode=function(){return bu.z3(this)};function ah(t){if(!(t>=0)){var e="capacity must be non-negative.";throw Dt(z(e))}return nr(Array(t),null)}function $f(t,e,n){t.fill(null,e,n)}function Ef(t,e){return y_(t,e)}function oh(){Hs=this;var t=this,e=Vi(0);e.p_1=!0,t.a4_1=e}var Hs;function E_(){return Hs==null&&new oh,Hs}function N_(t){var e=[];return Yt.call(t,e),t}function qt(){return N_(nt(i(Yt)))}function I_(t,e){var n=[];if(Yt.call(e,n),!(t>=0)){var r="Negative initial capacity: "+t;throw Dt(z(r))}return e}function Vi(t){return I_(t,nt(i(Yt)))}function q_(t,e){var n=bn(t);return Yt.call(e,n),e}function Va(t){return q_(t,nt(i(Yt)))}function A_(t,e){var n=t.m();return t.o_1.length=t.m()+e|0,n}function tu(t,e){return _n.l3(e,t.m()),e}function T_(t,e){return _n.c3(e,t.m()),e}function Yt(t){E_(),we.call(this),this.o_1=t,this.p_1=!1}i(Yt).m=function(){return this.o_1.length};i(Yt).k=function(t){var e=this.o_1[tu(this,t)];return e==null||e!=null?e:S()};i(Yt).p2=function(t,e){this.r2(),tu(this,t);var n=this.o_1[t];this.o_1[t]=e;var r=n;return r==null||r!=null?r:S()};i(Yt).f=function(t){return this.r2(),this.o_1.push(t),this.w2_1=this.w2_1+1|0,!0};i(Yt).k3=function(t,e){this.r2(),this.o_1.splice(T_(this,t),0,e),this.w2_1=this.w2_1+1|0};i(Yt).q=function(t){if(this.r2(),t.l())return!1;for(var e=A_(this,t.m()),n=0,r=t.h();r.i();){var a=r.j(),o=n;n=o+1|0;var s=To(o);this.o_1[e+s|0]=a}return this.w2_1=this.w2_1+1|0,!0};i(Yt).x2=function(t){this.r2(),tu(this,t),this.w2_1=this.w2_1+1|0;var e;return t===Za(this)?e=this.o_1.pop():e=this.o_1.splice(t,1)[0],e};i(Yt).m3=function(t,e){this.r2(),this.w2_1=this.w2_1+1|0,this.o_1.splice(t,e-t|0)};i(Yt).n3=function(){this.r2();var t=this;t.o_1=[],this.w2_1=this.w2_1+1|0};i(Yt).l1=function(t){return pc(this.o_1,t)};i(Yt).m1=function(t){return Zv(this.o_1,t)};i(Yt).toString=function(){return Ap(this.o_1)};i(Yt).b4=function(){return[].slice.call(this.o_1)};i(Yt).toArray=function(){return this.b4()};i(Yt).r2=function(){if(this.p_1)throw bi()};var co;function sh(t,e){if(M_()){var n=R_(e);t.sort(n)}else P_(t,0,Xv(t),e)}function M_(){var t=co;if(t!=null)return t;co=!1;var e=[],n=0;if(n<600)do{var r=n;n=n+1|0,e.push(r)}while(n<600);var a=L_;e.sort(a);var o=1,s=e.length;if(o<s)do{var l=o;o=o+1|0;var c=e[l-1|0],f=e[l];if((c&3)===(f&3)&&c>=f)return!1}while(o<s);return co=!0,!0}function P_(t,e,n,r){var a=t.length,o=nr(Array(a),null),s=Vs(t,o,e,n,r);if(s!==t){var l=e;if(l<=n)do{var c=l;l=l+1|0,t[c]=s[c]}while(c!==n)}}function Vs(t,e,n,r,a){if(n===r)return t;var o=(n+r|0)/2|0,s=Vs(t,e,n,o,a),l=Vs(t,e,o+1|0,r,a),c=s===e?t:e,f=n,h=o+1|0,d=n;if(d<=r)do{var p=d;if(d=d+1|0,f<=o&&h<=r){var g=s[f],m=l[h];a.compare(g,m)<=0?(c[p]=g,f=f+1|0):(c[p]=m,h=h+1|0)}else f<=o?(c[p]=s[f],f=f+1|0):(c[p]=l[h],h=h+1|0)}while(p!==r);return c}function R_(t){return function(e,n){return t.compare(e,n)}}function L_(t,e){return(t&3)-(e&3)|0}function lh(t,e){return bo.call(e),Un.call(e),e.g4_1=t,e}function uh(t){return lh(ru(),t),t}function O_(){return uh(nt(i(Un)))}function j_(t,e,n){return lh(vh(t,e),n),n}function z_(t,e){return j_(t,1,e),e}i(Un).s1=function(t){return this.g4_1.i4(t)};i(Un).u1=function(){var t=this.h4_1,e;if(t==null){var n=new eu(this.g4_1);this.h4_1=n,e=n}else e=t;return e};i(Un).t1=function(t){return this.g4_1.t1(t)};i(Un).u3=function(t,e){return this.g4_1.u3(t,e)};i(Un).m=function(){return this.g4_1.m()};function Un(){this.h4_1=null}function eu(t){Cn.call(this,t)}i(eu).h=function(){return this.k4_1.l4()};function Cn(t){kr.call(this),this.k4_1=t}i(Cn).m=function(){return this.k4_1.m()};i(Cn).l=function(){return this.k4_1.m()===0};i(Cn).m4=function(t){return this.k4_1.o4(t)};i(Cn).j1=function(t){return t!=null&&ot(t,yr)?this.m4(t!=null&&ot(t,yr)?t:S()):!1};i(Cn).n4=function(t){throw bi()};i(Cn).f=function(t){return this.n4(t!=null&&ot(t,yr)?t:S())};i(Cn).q=function(t){throw bi()};i(Cn).k1=function(t){return this.k4_1.p4(t)};i(Cn).r2=function(){return this.k4_1.q4()};function nu(t,e){return kr.call(e),Tn.call(e),e.r4_1=t,e}function fh(t){return nu(ru(),t),t}function F_(){return fh(nt(i(Tn)))}function D_(t,e){nu(W_(t.m()),e);for(var n=t.h();n.i();){var r=n.j();e.r4_1.u3(r,!0)}return e}function ch(t,e,n){return nu(vh(t,e),n),n}function B_(t,e){return ch(t,1,e),e}function K_(t){return B_(t,nt(i(Tn)))}i(Tn).f=function(t){return this.r4_1.u3(t,!0)==null};i(Tn).j1=function(t){return this.r4_1.i4(t)};i(Tn).l=function(){return this.r4_1.m()===0};i(Tn).h=function(){return this.r4_1.s4()};i(Tn).m=function(){return this.r4_1.m()};function Tn(){}function hh(t,e){return x_(yt(yo(e,1),3))}function dh(t,e){return hc(e)+1|0}function U_(t){return iu(8,t),t}function ru(){return U_(nt(i(Se)))}function iu(t,e){return Se.call(e,ah(t),null,new Int32Array(t),new Int32Array(hh(Qa,t)),2,0),e}function W_(t){return iu(t,nt(i(Se)))}function H_(t,e,n){return iu(t,n),n}function vh(t,e){return H_(t,e,nt(i(Se)))}function Qi(t){return t.t4_1.length}function Dn(t){return t.w4_1.length}function ph(t){t.a5_1=t.a5_1+1|0}function V_(t,e){Q_(t,e)?ou(t,Dn(t)):G_(t,t.y4_1+e|0)}function Q_(t,e){var n=Qi(t)-t.y4_1|0,r=t.y4_1-t.m()|0;return n<e&&(r+n|0)>=e&&r>=(Qi(t)/4|0)}function G_(t,e){if(e<0)throw Ih("too many elements");if(e>Qi(t)){var n=_n.d5(Qi(t),e);t.t4_1=Ef(t.t4_1,n);var r=t,a=t.u4_1;r.u4_1=a==null?null:Ef(a,n),t.v4_1=g_(t.v4_1,n);var o=hh(Qa,n);o>Dn(t)&&ou(t,o)}}function J_(t){var e=t.u4_1;if(e!=null)return e;var n=ah(Qi(t));return t.u4_1=n,n}function au(t,e){return e==null?0:yt(ft(e),-1640531527)>>>t.z4_1|0}function Y_(t){for(var e=0,n=0,r=t.u4_1;e<t.y4_1;)t.v4_1[e]>=0&&(t.t4_1[n]=t.t4_1[e],r!=null&&(r[n]=r[e]),n=n+1|0),e=e+1|0;$f(t.t4_1,n,t.y4_1),r==null||$f(r,n,t.y4_1),t.y4_1=n}function ou(t,e){ph(t),t.y4_1>t.b5_1&&Y_(t),e!==Dn(t)?(t.w4_1=new Int32Array(e),t.z4_1=dh(Qa,e)):__(t.w4_1,0,0,Dn(t));for(var n=0;n<t.y4_1;){var r=n;if(n=r+1|0,!X_(t,r))throw Ur("This cannot happen with fixed magic multiplier and grow-only hash array. Have object hashCodes changed?")}}function X_(t,e){for(var n=au(t,t.t4_1[e]),r=t.x4_1;;){var a=t.w4_1[n];if(a===0)return t.w4_1[n]=e+1|0,t.v4_1[e]=n,!0;if(r=r-1|0,r<0)return!1;var o=n;n=o-1|0,o===0&&(n=Dn(t)-1|0)}}function su(t,e){for(var n=au(t,e),r=t.x4_1;;){var a=t.w4_1[n];if(a===0)return-1;if(a>0&&I(t.t4_1[a-1|0],e))return a-1|0;if(r=r-1|0,r<0)return-1;var o=n;n=o-1|0,o===0&&(n=Dn(t)-1|0)}}function Z_(t,e){t.q4();t:for(;;)for(var n=au(t,e),r=ka(yt(t.x4_1,2),Dn(t)/2|0),a=0;;){var o=t.w4_1[n];if(o<=0){if(t.y4_1>=Qi(t)){V_(t,1);continue t}var s=t.y4_1;t.y4_1=s+1|0;var l=s;return t.t4_1[l]=e,t.v4_1[l]=n,t.w4_1[n]=l+1|0,t.b5_1=t.b5_1+1|0,ph(t),a>t.x4_1&&(t.x4_1=a),l}if(I(t.t4_1[o-1|0],e))return-o|0;if(a=a+1|0,a>r){ou(t,yt(Dn(t),2));continue t}var c=n;n=c-1|0,c===0&&(n=Dn(t)-1|0)}}function t0(t,e){return t.b5_1===e.m()&&t.p4(e.u1())}function _h(){this.e5_1=-1640531527,this.f5_1=8,this.g5_1=2,this.h5_1=-1}var Qa;function Qr(t){this.i5_1=t,this.j5_1=0,this.k5_1=-1,this.l5_1=this.i5_1.a5_1,this.m5()}i(Qr).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(Qr).i=function(){return this.j5_1<this.i5_1.y4_1};i(Qr).n5=function(){if(this.i5_1.a5_1!==this.l5_1)throw hu()};function lu(t){Qr.call(this,t)}i(lu).j=function(){if(this.n5(),this.j5_1>=this.i5_1.y4_1)throw $e();var t=this,e=this.j5_1;this.j5_1=e+1|0,t.k5_1=e;var n=this.i5_1.t4_1[this.k5_1];return this.m5(),n};function Ga(t){Qr.call(this,t)}i(Ga).j=function(){if(this.n5(),this.j5_1>=this.i5_1.y4_1)throw $e();var t=this,e=this.j5_1;this.j5_1=e+1|0,t.k5_1=e;var n=new yi(this.i5_1,this.k5_1);return this.m5(),n};i(Ga).w5=function(){if(this.j5_1>=this.i5_1.y4_1)throw $e();var t=this,e=this.j5_1;this.j5_1=e+1|0,t.k5_1=e;var n=this.i5_1.t4_1[this.k5_1],r=n==null?null:ft(n),a=r==null?0:r,o=Me(this.i5_1.u4_1)[this.k5_1],s=o==null?null:ft(o),l=a^(s==null?0:s);return this.m5(),l};i(Ga).x5=function(t){if(this.j5_1>=this.i5_1.y4_1)throw $e();var e=this,n=this.j5_1;this.j5_1=n+1|0,e.k5_1=n;var r=this.i5_1.t4_1[this.k5_1];I(r,this.i5_1)?t.a6("(this Map)"):t.z5(r),t.b6(61);var a=Me(this.i5_1.u4_1)[this.k5_1];I(a,this.i5_1)?t.a6("(this Map)"):t.z5(a),this.m5()};function yi(t,e){this.c6_1=t,this.d6_1=e}i(yi).q1=function(){return this.c6_1.t4_1[this.d6_1]};i(yi).r1=function(){return Me(this.c6_1.u4_1)[this.d6_1]};i(yi).equals=function(t){var e,n;return t!=null&&ot(t,yr)?n=I(t.q1(),this.q1()):n=!1,n?e=I(t.r1(),this.r1()):e=!1,e};i(yi).hashCode=function(){var t=this.q1(),e=t==null?null:ft(t),n=e==null?0:e,r=this.r1(),a=r==null?null:ft(r);return n^(a==null?0:a)};i(yi).toString=function(){return Gt(this.q1())+"="+Gt(this.r1())};function Se(t,e,n,r,a,o){this.t4_1=t,this.u4_1=e,this.v4_1=n,this.w4_1=r,this.x4_1=a,this.y4_1=o,this.z4_1=dh(Qa,Dn(this)),this.a5_1=0,this.b5_1=0,this.c5_1=!1}i(Se).m=function(){return this.b5_1};i(Se).t1=function(t){var e=su(this,t);return e<0?null:Me(this.u4_1)[e]};i(Se).i4=function(t){return su(this,t)>=0};i(Se).u3=function(t,e){var n=Z_(this,t),r=J_(this);if(n<0){var a=r[(-n|0)-1|0];return r[(-n|0)-1|0]=e,a}else return r[n]=e,null};i(Se).equals=function(t){var e;if(t===this)e=!0;else{var n;t!=null&&ot(t,wr)?n=t0(this,t):n=!1,e=n}return e};i(Se).hashCode=function(){for(var t=0,e=this.l4();e.i();)t=t+e.w5()|0;return t};i(Se).toString=function(){var t=jh(2+yt(this.b5_1,3)|0);t.a6("{");for(var e=0,n=this.l4();n.i();)e>0&&t.a6(", "),n.x5(t),e=e+1|0;return t.a6("}"),t.toString()};i(Se).q4=function(){if(this.c5_1)throw bi()};i(Se).o4=function(t){var e=su(this,t.q1());return e<0?!1:I(Me(this.u4_1)[e],t.r1())};i(Se).e6=function(t){return this.o4(ot(t,yr)?t:S())};i(Se).s4=function(){return new lu(this)};i(Se).l4=function(){return new Ga(this)};function mh(){}function e0(t){return uh(t),Ja.call(t),t}function gh(){return e0(nt(i(Ja)))}function n0(t,e){return z_(t,e),Ja.call(e),e}function r0(t){return n0(t,nt(i(Ja)))}function Ja(){}function i0(t){return fh(t),Gr.call(t),t}function uu(){return i0(nt(i(Gr)))}function a0(t,e){return D_(t,e),Gr.call(e),e}function o0(t){return a0(t,nt(i(Gr)))}function s0(t,e,n){return ch(t,e,n),Gr.call(n),n}function l0(t,e){return s0(t,1,e),e}function u0(t){return l0(t,nt(i(Gr)))}i(Gr).r2=function(){return this.r4_1.q4()};function Gr(){}function Pe(t){Na.call(this),this.h6_1=t,this.i6_1=0,this.j6_1=0,this.k6_1=null,this.l6_1=null,this.m6_1=null;var e=this,n=this.h6_1;e.n6_1=n==null?null:n.o6()}i(Pe).o6=function(){return Me(this.n6_1)};i(Pe).p6=function(t){var e=this,n;if(zm(t))n=null;else{var r=t;n=r==null||r!=null?r:S()}for(var a=n,o=Fm(t);;){var s=e;o==null?s.k6_1=a:(s.i6_1=s.j6_1,s.l6_1=o);try{var l=s.q6();if(l===$r())return ct;a=l,o=null}catch(m){var c=m;a=null,o=c}s.s6();var f=Me(s.h6_1);if(f instanceof Pe)e=f;else{if(o!=null){var h=Me(o),d=Bm(h);f.t6(d)}else{var p=a,g=p;f.t6(g)}return ct}}};i(Pe).t6=function(t){return this.p6(t)};function ta(){}i(ta).o6=function(){var t="This continuation is already complete";throw Ur(z(t))};i(ta).p6=function(t){var e="This continuation is already complete";throw Ur(z(e))};i(ta).t6=function(t){return this.p6(t)};i(ta).toString=function(){return"This continuation is already complete"};var yh;function Na(){this.r6_1=null}i(Na).s6=function(){var t=this.r6_1;t!=null&&t!==this&&Me(this.o6().u6(td)).v6(t),this.r6_1=yh};function f0(t,e,n){return new fu(n,t,e,n)}function fu(t,e,n,r){this.e7_1=e,this.f7_1=n,this.g7_1=r,Pe.call(this,ot(t,ua)?t:S())}i(fu).q6=function(){if(this.l6_1!=null)throw this.l6_1;var t=this.e7_1;return typeof t=="function"?t(this.f7_1,this.g7_1):this.e7_1.h7(this.f7_1,this.g7_1)};function wh(t){return Io(t),xn.call(t),t}function bh(){var t=wh(nt(i(xn)));return H(t,bh),t}function Mo(t,e){return Io(e,t),xn.call(e),e}function kh(t){var e=Mo(t,nt(i(xn)));return H(e,kh),e}function xn(){H(this,xn)}function Ch(t){return Mn(t),wi.call(t),t}function xh(){var t=Ch(nt(i(wi)));return H(t,xh),t}function Sh(t,e){return ki(t,e),wi.call(e),e}function Dt(t){var e=Sh(t,nt(i(wi)));return H(e,Dt),e}function wi(){H(this,wi)}function c0(t){return Mn(t),ea.call(t),t}function cu(){var t=c0(nt(i(ea)));return H(t,cu),t}function h0(t,e){return ki(t,e),ea.call(e),e}function Wn(t){var e=h0(t,nt(i(ea)));return H(e,Wn),e}function ea(){H(this,ea)}function d0(t){return Mn(t),na.call(t),t}function $h(){var t=d0(nt(i(na)));return H(t,$h),t}function v0(t,e){return ki(t,e),na.call(e),e}function Ur(t){var e=v0(t,nt(i(na)));return H(e,Ur),e}function na(){H(this,na)}function p0(t){return Mn(t),ra.call(t),t}function bi(){var t=p0(nt(i(ra)));return H(t,bi),t}function _0(t,e){return ki(t,e),ra.call(e),e}function Eh(t){var e=_0(t,nt(i(ra)));return H(e,Eh),e}function ra(){H(this,ra)}function Mn(t){return wh(t),Ke.call(t),t}function Nh(){var t=Mn(nt(i(Ke)));return H(t,Nh),t}function ki(t,e){return Mo(t,e),Ke.call(e),e}function Ih(t){var e=ki(t,nt(i(Ke)));return H(e,Ih),e}function Ke(){H(this,Ke)}function m0(t){return Mn(t),ia.call(t),t}function $e(){var t=m0(nt(i(ia)));return H(t,$e),t}function g0(t,e){return ki(t,e),ia.call(e),e}function Ya(t){var e=g0(t,nt(i(ia)));return H(e,Ya),e}function ia(){H(this,ia)}function y0(t){return Io(t),aa.call(t),t}function qh(){var t=y0(nt(i(aa)));return H(t,qh),t}function w0(t,e){return Io(e,t),aa.call(e),e}function aa(){H(this,aa)}function b0(t){return Ch(t),Ci.call(t),t}function Ah(){var t=b0(nt(i(Ci)));return H(t,Ah),t}function k0(t,e){return Sh(t,e),Ci.call(e),e}function Th(t){var e=k0(t,nt(i(Ci)));return H(e,Th),e}function Ci(){H(this,Ci)}function C0(t){return Mn(t),oa.call(t),t}function Mh(){var t=C0(nt(i(oa)));return H(t,Mh),t}function x0(t,e){return ki(t,e),oa.call(e),e}function Ph(t){var e=x0(t,nt(i(oa)));return H(e,Ph),e}function oa(){H(this,oa)}function S0(t){return Mn(t),Po.call(t),t}function hu(){var t=S0(nt(i(Po)));return H(t,hu),t}function Po(){H(this,Po)}function $0(t){return Mn(t),Ro.call(t),t}function du(){var t=$0(nt(i(Ro)));return H(t,du),t}function Ro(){H(this,Ro)}function E0(t){return Mn(t),Lo.call(t),t}function vu(){var t=E0(nt(i(Lo)));return H(t,vu),t}function Lo(){H(this,Lo)}function N0(t){return Mn(t),Oo.call(t),t}function pu(){var t=N0(nt(i(Oo)));return H(t,pu),t}function Oo(){H(this,Oo)}function Ia(t){return new ao(t)}function I0(t,e){for(var n=t.length,r=e.length,a=0,o=e;a<n&&a<r;){var s=a,l=a;a=l+1|0,o[s]=t[l]}return e}function q0(t,e,n){var r=t.slice(0,e);t.$type$!==void 0&&(r.$type$=t.$type$);var a=t.length;if(e>a)for(r.length=e;a<e;){var o=a;a=o+1|0,r[o]=n}return r}function qa(){}function pn(t){this.l7_1=t}i(pn).m7=function(){return this.l7_1};i(pn).equals=function(t){var e;return t instanceof xi||t instanceof Gi?e=!1:t instanceof pn?e=I(this.m7(),t.m7()):e=!1,e};i(pn).hashCode=function(){var t=this.k7(),e=t==null?null:Ge(t);return e==null?0:e};i(pn).toString=function(){return"class "+this.k7()};function xi(){Qs=this,pn.call(this,Object),this.o7_1="Nothing"}i(xi).k7=function(){return this.o7_1};i(xi).m7=function(){throw Eh("There's no native JS class for Nothing type")};i(xi).equals=function(t){return t===this};i(xi).hashCode=function(){return 0};var Qs;function Rh(){return Qs==null&&new xi,Qs}function Gi(){}i(Gi).equals=function(t){return t===this};i(Gi).hashCode=function(){return 0};function Ft(t,e,n){pn.call(this,t),this.q7_1=e,this.r7_1=n}i(Ft).equals=function(t){return t instanceof Ft?i(pn).equals.call(this,t)&&this.q7_1===t.q7_1:!1};i(Ft).k7=function(){return this.q7_1};function ko(t){pn.call(this,t);var e=this,n=t.$metadata$;e.t7_1=n==null?null:n.simpleName}i(ko).k7=function(){return this.t7_1};function jo(){}function _u(){}function Nf(){return Y0(),Lh}var Lh;function A0(t){return t!=null}function T0(t){return Hc(t)}function M0(t){return t!=null?typeof t=="boolean":!1}function P0(t){return t!=null?typeof t=="number":!1}function R0(t){return t!=null?typeof t=="number":!1}function L0(t){return t!=null?typeof t=="number":!1}function O0(t){return t!=null?typeof t=="number":!1}function j0(t){return t!=null?typeof t=="number":!1}function z0(t){return t!=null?Zi(t):!1}function F0(t){return t!=null?typeof t=="string":!1}function D0(t){return t instanceof Error}function B0(t){return t!=null?Vc(t):!1}function K0(t){return t!=null?Jc(t):!1}function U0(t){return t!=null?Qc(t):!1}function W0(t){return t!=null?Gc(t):!1}function H0(t){return t!=null?Yc(t):!1}function V0(t){return t!=null?Zc(t):!1}function Q0(t){return t!=null?Xc(t):!1}function G0(t){return t!=null?th(t):!1}function J0(t){return function(e){var n;return typeof e=="function"?n=e.length===t:n=!1,n}}function Xt(){Gs=this;var t=this,e=Object;t.anyClass=new Ft(e,"Any",A0);var n=this,r=Number;n.numberClass=new Ft(r,"Number",T0),this.nothingClass=Rh();var a=this,o=Boolean;a.booleanClass=new Ft(o,"Boolean",M0);var s=this,l=Number;s.byteClass=new Ft(l,"Byte",P0);var c=this,f=Number;c.shortClass=new Ft(f,"Short",R0);var h=this,d=Number;h.intClass=new Ft(d,"Int",L0);var p=this,g=Number;p.floatClass=new Ft(g,"Float",O0);var m=this,_=Number;m.doubleClass=new Ft(_,"Double",j0);var v=this,y=Array;v.arrayClass=new Ft(y,"Array",z0);var C=this,b=String;C.stringClass=new Ft(b,"String",F0);var x=this,N=Error;x.throwableClass=new Ft(N,"Throwable",D0);var T=this,U=Array;T.booleanArrayClass=new Ft(U,"BooleanArray",B0);var G=this,Y=Uint16Array;G.charArrayClass=new Ft(Y,"CharArray",K0);var vt=this,Ot=Int8Array;vt.byteArrayClass=new Ft(Ot,"ByteArray",U0);var K=this,Zt=Int16Array;K.shortArrayClass=new Ft(Zt,"ShortArray",W0);var W=this,jt=Int32Array;W.intArrayClass=new Ft(jt,"IntArray",H0);var Bt=this,Ue=Array;Bt.longArrayClass=new Ft(Ue,"LongArray",V0);var ce=this,We=Float32Array;ce.floatArrayClass=new Ft(We,"FloatArray",Q0);var mn=this,Rn=Float64Array;mn.doubleArrayClass=new Ft(Rn,"DoubleArray",G0)}i(Xt).u7=function(){return this.anyClass};i(Xt).v7=function(){return this.numberClass};i(Xt).w7=function(){return this.nothingClass};i(Xt).x7=function(){return this.booleanClass};i(Xt).y7=function(){return this.byteClass};i(Xt).z7=function(){return this.shortClass};i(Xt).a8=function(){return this.intClass};i(Xt).b8=function(){return this.floatClass};i(Xt).c8=function(){return this.doubleClass};i(Xt).d8=function(){return this.arrayClass};i(Xt).e8=function(){return this.stringClass};i(Xt).f8=function(){return this.throwableClass};i(Xt).g8=function(){return this.booleanArrayClass};i(Xt).h8=function(){return this.charArrayClass};i(Xt).i8=function(){return this.byteArrayClass};i(Xt).j8=function(){return this.shortArrayClass};i(Xt).k8=function(){return this.intArrayClass};i(Xt).l8=function(){return this.longArrayClass};i(Xt).m8=function(){return this.floatArrayClass};i(Xt).n8=function(){return this.doubleArrayClass};i(Xt).functionClass=function(t){var e=Nf()[t],n;if(e==null){var r=Function,a="Function"+t,o=new Ft(r,a,J0(t));Nf()[t]=o,n=o}else n=e;return n};var Gs;function Ie(){return Gs==null&&new Xt,Gs}var If;function Y0(){If||(If=!0,Lh=nr(Array(0),null))}function X0(t){var e;return Array.isArray(t)?e=Z0(t):e=mu(t),e}function Z0(t){var e;switch(t.length){case 1:e=mu(t[0]);break;case 0:e=Rh();break;default:e=new Gi;break}return e}function mu(t){if(t===String)return Ie().stringClass;var e=t.$metadata$,n;if(e!=null){var r;if(e.$kClass$==null){var a=new ko(t);e.$kClass$=a,r=a}else r=e.$kClass$;n=r}else n=new ko(t);return n}function Co(t){var e;switch(typeof t){case"string":e=Ie().stringClass;break;case"number":var n;(t|0)===t?n=Ie().intClass:n=Ie().doubleClass,e=n;break;case"boolean":e=Ie().booleanClass;break;case"function":var r=Ie();e=r.functionClass(t.length);break;default:var a;if(Vc(t))a=Ie().booleanArrayClass;else if(Jc(t))a=Ie().charArrayClass;else if(Qc(t))a=Ie().byteArrayClass;else if(Gc(t))a=Ie().shortArrayClass;else if(Yc(t))a=Ie().intArrayClass;else if(Zc(t))a=Ie().longArrayClass;else if(Xc(t))a=Ie().floatArrayClass;else if(th(t))a=Ie().doubleArrayClass;else if(ot(t,qa))a=X0(qa);else if(Zi(t))a=Ie().arrayClass;else{var o=Object.getPrototypeOf(t).constructor,s;if(o===Object)s=Ie().anyClass;else if(o===Error)s=Ie().throwableClass;else{var l=o;s=mu(l)}a=s}e=a;break}return e}function Oh(t){t.lastIndex=0}function tm(t,e){return zh(e),e}function jh(t){return tm(t,nt(i(Sn)))}function zh(t){return Sn.call(t,""),t}function gu(){return zh(nt(i(Sn)))}function Sn(t){this.y5_1=t!==void 0?t:""}i(Sn).a=function(){return this.y5_1.length};i(Sn).b=function(t){var e=this.y5_1,n;if(0<=t&&t<=(P(e)-1|0))n=O(e,t);else throw Wn("index: "+t+", length: "+this.a()+"}");return n};i(Sn).c=function(t,e){return this.y5_1.substring(t,e)};i(Sn).b6=function(t){return this.y5_1=this.y5_1+Vt(t),this};i(Sn).e=function(t){return this.y5_1=this.y5_1+Gt(t),this};i(Sn).z5=function(t){return this.y5_1=this.y5_1+Gt(t),this};i(Sn).a6=function(t){var e=this,n=this.y5_1;return e.y5_1=n+(t==null?"null":t),this};i(Sn).toString=function(){return this.y5_1};function qf(t){var e=Vt(t).toUpperCase();return e.length>1?t:O(e,0)}function Fh(t){return k_(t)}function Af(t,e){return t.toString(Dh(e))}function Dh(t){if(!(2<=t&&t<=36))throw Dt("radix "+t+" was not in valid range 2..36");return t}function em(t){var e=ld(t),n;return e==null?ud(t):n=e,n}function Tf(t,e){var n=Au(t,e),r;return n==null?ud(t):r=n,r}function nm(t,e){var n=ie(t,48)>=0&&ie(t,57)<=0?pa(t,48):ie(t,65)>=0&&ie(t,90)<=0?pa(t,65)+10|0:ie(t,97)>=0&&ie(t,122)<=0?pa(t,97)+10|0:ie(t,128)<0?-1:ie(t,65313)>=0&&ie(t,65338)<=0?pa(t,65313)+10|0:ie(t,65345)>=0&&ie(t,65370)<=0?pa(t,65345)+10|0:w_(t);return n>=e?-1:n}function rm(t,e){return Xa.call(e,t,Iu()),e}function im(t){return rm(t,nt(i(Xa)))}function Bh(){Js=this,this.o8_1=new RegExp("[\\\\^$*+?.()|[\\]{}]","g"),this.p8_1=new RegExp("[\\\\$]","g"),this.q8_1=new RegExp("\\$","g")}var Js;function am(){return Js==null&&new Bh,Js}function Xa(t,e){am(),this.r8_1=t,this.s8_1=op(e),this.t8_1=new RegExp(t,om(e,"gu")),this.u8_1=null,this.v8_1=null}i(Xa).w8=function(t){Oh(this.t8_1);var e=this.t8_1.exec(z(t));return e!=null&&e.index===0&&this.t8_1.lastIndex===P(t)};i(Xa).toString=function(){return this.t8_1.toString()};function om(t,e){return In(t,"",e,u,u,u,sm)}function sm(t){return t.z8_1}function lm(t,e){return jm(t,e)}function yu(t){this.a9_1=t}i(yu).b9=function(t,e){return this.a9_1(t,e)};i(yu).compare=function(t,e){return this.b9(t,e)};function wu(t,e,n){return n=n===u?!1:n,n?zo(t,0,e,0,e.length,n):t.startsWith(e,0)}function Kh(t,e,n){return n=n===u?!1:n,n?zo(t,t.length-e.length|0,e,0,e.length,n):t.endsWith(e)}function um(t,e,n,r){return r=r===u?!1:r,r?zo(t,n,e,0,e.length,r):t.startsWith(e,n)}function zo(t,e,n,r,a,o){return o=o===u?!1:o,io(t,e,n,r,a,o)}function fm(t){return function(e){return e===t?"(this Collection)":Gt(e)}}function Cr(){}i(Cr).j1=function(t){var e;t:{var n;if(ot(this,Et)?n=this.l():n=!1,n){e=!1;break t}for(var r=this.h();r.i();){var a=r.j();if(I(a,t)){e=!0;break t}}e=!1}return e};i(Cr).k1=function(t){var e;t:{var n;if(ot(t,Et)?n=t.l():n=!1,n){e=!0;break t}for(var r=t.h();r.i();){var a=r.j();if(!this.j1(a)){e=!1;break t}}e=!0}return e};i(Cr).l=function(){return this.m()===0};i(Cr).toString=function(){return In(this,", ","[","]",u,u,fm(this))};i(Cr).toArray=function(){return rh(this)};function Jr(){this.n2_1=2147483639}i(Jr).l3=function(t,e){if(t<0||t>=e)throw Wn("index: "+t+", size: "+e)};i(Jr).c3=function(t,e){if(t<0||t>e)throw Wn("index: "+t+", size: "+e)};i(Jr).o2=function(t,e,n){if(t<0||e>n)throw Wn("fromIndex: "+t+", toIndex: "+e+", size: "+n);if(t>e)throw Dt("fromIndex: "+t+" > toIndex: "+e)};i(Jr).d5=function(t,e){var n=t+(t>>1)|0;return(n-e|0)<0&&(n=e),(n-2147483639|0)>0&&(n=e>2147483639?2147483647:2147483639),n};i(Jr).p3=function(t){for(var e=1,n=t.h();n.i();){var r=n.j(),a=yt(31,e),o=r==null?null:ft(r);e=a+(o==null?0:o)|0}return e};i(Jr).o3=function(t,e){if(t.m()!==e.m())return!1;for(var n=e.h(),r=t.h();r.i();){var a=r.j(),o=n.j();if(!I(a,o))return!1}return!0};var _n;function Mf(t,e){return e===t?"(this Map)":Gt(e)}function Uh(t,e){var n;t:{for(var r=t.u1().h();r.i();){var a=r.j();if(I(a.q1(),e)){n=a;break t}}n=null}return n}function cm(){}function hm(t){return function(e){return t.c9(e)}}function kn(){this.v3_1=null,this.w3_1=null}i(kn).s1=function(t){return Uh(this,t)!=null};i(kn).x3=function(t){if(!(t!=null&&ot(t,yr)))return!1;var e=t.q1(),n=t.r1(),r=(ot(this,wr)?this:S()).t1(e);if(!I(n,r))return!1;var a;return r==null?a=!(ot(this,wr)?this:S()).s1(e):a=!1,!a};i(kn).equals=function(t){if(t===this)return!0;if(!(t!=null&&ot(t,wr))||this.m()!==t.m())return!1;var e;t:{var n=t.u1(),r;if(ot(n,Et)?r=n.l():r=!1,r){e=!0;break t}for(var a=n.h();a.i();){var o=a.j();if(!this.x3(o)){e=!1;break t}}e=!0}return e};i(kn).t1=function(t){var e=Uh(this,t);return e==null?null:e.r1()};i(kn).hashCode=function(){return ft(this.u1())};i(kn).m=function(){return this.u1().m()};i(kn).toString=function(){var t=this.u1();return In(t,", ","{","}",u,u,hm(this))};i(kn).c9=function(t){return Mf(this,t.q1())+"="+Mf(this,t.r1())};function Fo(){}i(Fo).z3=function(t){for(var e=0,n=t.h();n.i();){var r=n.j(),a=e,o=r==null?null:ft(r);e=a+(o==null?0:o)|0}return e};i(Fo).y3=function(t,e){return t.m()!==e.m()?!1:t.k1(e)};var bu;function dm(t){if(t.l())return[];for(var e=t.m(),n=nr(Array(e),null),r=t.h(),a=0;r.i();){var o=a;a=o+1|0,n[o]=r.j()}return n}function ku(t){return t.length>0?Xl(t):sa()}function Wh(t){return t.length===0?qt():Va(new Qn(t,!0))}function sa(){return mm()}function Za(t){return t.m()-1|0}function vm(t,e,n,r){n=n===u?0:n,r=r===u?t.m():r,gm(t.m(),n,r);for(var a=n,o=r-1|0;a<=o;){var s=(a+o|0)>>>1|0,l=t.k(s),c=Xo(l,e);if(c<0)a=s+1|0;else if(c>0)o=s-1|0;else return s}return-(a+1|0)|0}function pm(t){return t.length===0?qt():Va(new Qn(t,!0))}function _m(t){switch(t.m()){case 0:return sa();case 1:return Wa(t.k(0));default:return t}}function Qn(t,e){this.d9_1=t,this.e9_1=e}i(Qn).m=function(){return this.d9_1.length};i(Qn).l=function(){return this.d9_1.length===0};i(Qn).f9=function(t){return Ls(this.d9_1,t)};i(Qn).g9=function(t){var e;t:{var n;if(ot(t,Et)?n=t.l():n=!1,n){e=!0;break t}for(var r=t.h();r.i();){var a=r.j();if(!this.f9(a)){e=!1;break t}}e=!0}return e};i(Qn).k1=function(t){return this.g9(t)};i(Qn).h=function(){return $c(this.d9_1)};function fe(){Ys=this,this.h9_1=new pt(-1478467534,-1720727600)}i(fe).equals=function(t){var e;return t!=null&&ot(t,Vn)?e=t.l():e=!1,e};i(fe).hashCode=function(){return 1};i(fe).toString=function(){return"[]"};i(fe).m=function(){return 0};i(fe).l=function(){return!0};i(fe).i9=function(t){return!1};i(fe).j1=function(t){return!1};i(fe).j9=function(t){return t.l()};i(fe).k1=function(t){return this.j9(t)};i(fe).k=function(t){throw Wn("Empty list doesn't contain element at index "+t+".")};i(fe).k9=function(t){return-1};i(fe).l1=function(t){return-1};i(fe).l9=function(t){return-1};i(fe).m1=function(t){return-1};i(fe).h=function(){return la};i(fe).n1=function(){return la};i(fe).o1=function(t){if(t!==0)throw Wn("Index: "+t);return la};i(fe).p1=function(t,e){if(t===0&&e===0)return this;throw Wn("fromIndex: "+t+", toIndex: "+e)};var Ys;function mm(){return Ys==null&&new fe,Ys}function gm(t,e,n){if(e>n)throw Dt("fromIndex ("+e+") is greater than toIndex ("+n+").");if(e<0)throw Wn("fromIndex ("+e+") is less than zero.");if(n>t)throw Wn("toIndex ("+n+") is greater than size ("+t+").")}function Si(){}i(Si).i=function(){return!1};i(Si).d3=function(){return!1};i(Si).e3=function(){return 0};i(Si).j=function(){throw $e()};i(Si).f3=function(){throw $e()};var la;function ym(t){return new Qn(t,!1)}function wm(){throw Ph("Index overflow has happened.")}function ai(t,e){this.v_1=t,this.w_1=e}i(ai).toString=function(){return"IndexedValue(index="+this.v_1+", value="+Gt(this.w_1)+")"};i(ai).hashCode=function(){var t=this.v_1;return t=yt(t,31)+(this.w_1==null?0:ft(this.w_1))|0,t};i(ai).equals=function(t){if(this===t)return!0;if(!(t instanceof ai))return!1;var e=t instanceof ai?t:S();return!(this.v_1!==e.v_1||!I(this.w_1,e.w_1))};function Xs(t,e){var n;return ot(t,Et)?n=t.m():n=e,n}function bm(t,e){return t.q(Xl(e))}function Do(t,e){if(ot(e,Et))return t.q(e);for(var n=!1,r=e.h();r.i();){var a=r.j();t.f(a)&&(n=!0)}return n}function Bo(){}i(Bo).j=function(){return this.m9()};function to(){}i(to).n9=function(){return this.o9()};i(to).j=function(){return new st(this.n9())};function eo(t){return new Cu(t)}function xr(){}function km(t){var e=new Sr;return e.t9_1=f0(t,e,e),e}function Cm(t){if(t.i())return t.j();throw $e()}function Hh(t){switch(t.q9_1){case 4:return $e();case 5:return Ur("Iterator has failed.");default:return Ur("Unexpected state of the iterator: "+t.q9_1)}}function Sr(){xr.call(this),this.q9_1=0,this.r9_1=null,this.s9_1=null,this.t9_1=null}i(Sr).i=function(){for(;;){switch(this.q9_1){case 0:break;case 1:if(Me(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 Hh(this)}this.q9_1=5;var t=Me(this.t9_1);this.t9_1=null;var e=ct;t.t6(e)}};i(Sr).j=function(){switch(this.q9_1){case 0:case 1:return Cm(this);case 2:return this.q9_1=1,Me(this.s9_1).j();case 3:this.q9_1=0;var t=this.r9_1,e=t==null||t!=null?t:S();return this.r9_1=null,e;default:throw Hh(this)}};i(Sr).p9=function(t,e){return this.r9_1=t,this.q9_1=3,this.t9_1=e,$r()};i(Sr).u9=function(t){Km(t);var e=t;e==null||e!=null||S(),this.q9_1=4};i(Sr).t6=function(t){return this.u9(t)};i(Sr).o6=function(){return Nm()};function Cu(t){this.v9_1=t}i(Cu).h=function(){return km(this.v9_1)};function $i(){return Jo}function Ko(t){this.x9_1=t,this.w9_1=t.y9_1.h()}i(Ko).j=function(){return this.x9_1.z9_1(this.w9_1.j())};i(Ko).i=function(){return this.w9_1.i()};function xu(t,e){this.y9_1=t,this.z9_1=e}i(xu).h=function(){return new Ko(this)};function Vh(t){for(;t.aa_1.i();){var e=t.aa_1.j();if(t.da_1.ga_1(e)===t.da_1.fa_1)return t.ca_1=e,t.ba_1=1,ct}t.ba_1=0}function Uo(t){this.da_1=t,this.aa_1=t.ea_1.h(),this.ba_1=-1,this.ca_1=null}i(Uo).j=function(){if(this.ba_1===-1&&Vh(this),this.ba_1===0)throw $e();var t=this.ca_1;return this.ca_1=null,this.ba_1=-1,t==null||t!=null?t:S()};i(Uo).i=function(){return this.ba_1===-1&&Vh(this),this.ba_1===1};function Su(t,e,n){e=e===u?!0:e,this.ea_1=t,this.fa_1=e,this.ga_1=n}i(Su).h=function(){return new Uo(this)};function Wo(t){this.ha_1=t.ja_1.h(),this.ia_1=0}i(Wo).j=function(){var t=this.ia_1;return this.ia_1=t+1|0,new ai(To(t),this.ha_1.j())};i(Wo).i=function(){return this.ha_1.i()};function $u(t){this.ja_1=t}i($u).h=function(){return new Wo(this)};function Ei(){}function Ho(t){this.ka_1=t.na_1,this.la_1=t.ma_1.h()}i(Ho).j=function(){if(this.ka_1===0)throw $e();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 ci(t,e){if(this.ma_1=t,this.na_1=e,!(this.na_1>=0)){var n="count must be non-negative, but was "+this.na_1+".";throw Dt(z(n))}}i(ci).u=function(t){return t>=this.na_1?$i():new Wr(this.ma_1,t,this.na_1)};i(ci).t=function(t){return t>=this.na_1?this:new ci(this.ma_1,t)};i(ci).h=function(){return new Ho(this)};function Qh(t){if(t.oa_1.i()){var e=t.oa_1.j();if(t.ra_1.ta_1(e))return t.pa_1=1,t.qa_1=e,ct}t.pa_1=0}function Vo(t){this.ra_1=t,this.oa_1=t.sa_1.h(),this.pa_1=-1,this.qa_1=null}i(Vo).j=function(){if(this.pa_1===-1&&Qh(this),this.pa_1===0)throw $e();var t=this.qa_1,e=t==null||t!=null?t:S();return this.qa_1=null,this.pa_1=-1,e};i(Vo).i=function(){return this.pa_1===-1&&Qh(this),this.pa_1===1};function Eu(t,e){this.sa_1=t,this.ta_1=e}i(Eu).h=function(){return new Vo(this)};function Gh(t){for(;t.va_1>0&&t.ua_1.i();)t.ua_1.j(),t.va_1=t.va_1-1|0}function Qo(t){this.ua_1=t.wa_1.h(),this.va_1=t.xa_1}i(Qo).j=function(){return Gh(this),this.ua_1.j()};i(Qo).i=function(){return Gh(this),this.ua_1.i()};function oi(t,e){if(this.wa_1=t,this.xa_1=e,!(this.xa_1>=0)){var n="count must be non-negative, but was "+this.xa_1+".";throw Dt(z(n))}}i(oi).u=function(t){var e=this.xa_1+t|0;return e<0?new oi(this,t):new oi(this.wa_1,e)};i(oi).t=function(t){var e=this.xa_1+t|0;return e<0?new ci(this,t):new Wr(this.wa_1,this.xa_1,e)};i(oi).h=function(){return new Qo(this)};function Jh(t){for(;t.ya_1.i();){var e=t.ya_1.j();if(!t.bb_1.db_1(e))return t.ab_1=e,t.za_1=1,ct}t.za_1=0}function Go(t){this.bb_1=t,this.ya_1=t.cb_1.h(),this.za_1=-1,this.ab_1=null}i(Go).j=function(){if(this.za_1===-1&&Jh(this),this.za_1===1){var t=this.ab_1,e=t==null||t!=null?t:S();return this.ab_1=null,this.za_1=0,e}return this.ya_1.j()};i(Go).i=function(){return this.za_1===-1&&Jh(this),this.za_1===1||this.ya_1.i()};function Nu(t,e){this.cb_1=t,this.db_1=e}i(Nu).h=function(){return new Go(this)};function no(){}i(no).h=function(){return la};i(no).u=function(t){return Jo};i(no).t=function(t){return Jo};var Jo;function Yh(t){for(;t.fb_1<t.gb_1.ib_1&&t.eb_1.i();)t.eb_1.j(),t.fb_1=t.fb_1+1|0}function Xh(t){return t.jb_1-t.ib_1|0}function Yo(t){this.gb_1=t,this.eb_1=t.hb_1.h(),this.fb_1=0}i(Yo).i=function(){return Yh(this),this.fb_1<this.gb_1.jb_1&&this.eb_1.i()};i(Yo).j=function(){if(Yh(this),this.fb_1>=this.gb_1.jb_1)throw $e();return this.fb_1=this.fb_1+1|0,this.eb_1.j()};function Wr(t,e,n){if(this.hb_1=t,this.ib_1=e,this.jb_1=n,!(this.ib_1>=0)){var r="startIndex should be non-negative, but is "+this.ib_1;throw Dt(z(r))}if(!(this.jb_1>=0)){var a="endIndex should be non-negative, but is "+this.jb_1;throw Dt(z(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 Dt(z(o))}}i(Wr).u=function(t){return t>=Xh(this)?$i():new Wr(this.hb_1,this.ib_1+t|0,this.jb_1)};i(Wr).t=function(t){return t>=Xh(this)?this:new Wr(this.hb_1,this.ib_1,this.ib_1+t|0)};i(Wr).h=function(){return new Yo(this)};function Iu(){return $m()}function xm(t){return tp(t,K_(t.length))}function Sm(t){switch(t.m()){case 0:return Iu();case 1:return ih(t.h().j());default:return t}}function Gn(){Zs=this,this.kb_1=new pt(1993859828,793161749)}i(Gn).equals=function(t){var e;return t!=null&&ot(t,Vr)?e=t.l():e=!1,e};i(Gn).hashCode=function(){return 0};i(Gn).toString=function(){return"[]"};i(Gn).m=function(){return 0};i(Gn).l=function(){return!0};i(Gn).j9=function(t){return t.l()};i(Gn).k1=function(t){return this.j9(t)};i(Gn).h=function(){return la};var Zs;function $m(){return Zs==null&&new Gn,Zs}function Xo(t,e){return t===e?0:t==null?-1:e==null?1:Pc(t!=null&&v_(t)?t:S(),e)}function ua(){}function Zh(){}var td;function Em(){}function ro(){tl=this,this.lb_1=new pt(0,0)}i(ro).u6=function(t){return null};i(ro).hashCode=function(){return 0};i(ro).toString=function(){return"EmptyCoroutineContext"};var tl;function Nm(){return tl==null&&new ro,tl}function $r(){return qm()}var ed,Pf;function Im(){if(Pf)return ct;Pf=!0,ed=new ho("COROUTINE_SUSPENDED",0),new ho("UNDECIDED",1),new ho("RESUMED",2)}function ho(t,e){br.call(this,t,e)}function qm(){return Im(),ed}function nd(t,e,n){var r;if(n>0)r=t>=e?e:e-Rf(e,t,n)|0;else if(n<0)r=t<=e?e:e+Rf(t,e,-n|0)|0;else throw Dt("Step is zero.");return r}function Rf(t,e,n){return Is(Is(t,n)-Is(e,n)|0,n)}function Is(t,e){var n=t%e|0;return n>=0?n:n+e|0}function rd(){el=this,this.mb_1=new Hr(1,0)}var el;function Am(){return el==null&&new rd,el}function Hr(t,e){Am(),Hn.call(this,t,e,1)}i(Hr).l=function(){return this.qb_1>this.rb_1};i(Hr).equals=function(t){var e;return t instanceof Hr?e=this.l()&&t.l()||this.qb_1===t.qb_1&&this.rb_1===t.rb_1:e=!1,e};i(Hr).hashCode=function(){return this.l()?-1:yt(31,this.qb_1)+this.rb_1|0};i(Hr).toString=function(){return""+this.qb_1+".."+this.rb_1};function id(){nl=this,this.tb_1=new Er(1,0)}var nl;function Tm(){return nl==null&&new id,nl}function Er(t,e){Tm(),Nr.call(this,t,e,1)}i(Er).xb=function(t){return ie(this.yb_1,t)<=0&&ie(t,this.zb_1)<=0};i(Er).l=function(){return ie(this.yb_1,this.zb_1)>0};i(Er).equals=function(t){var e;return t instanceof Er?e=this.l()&&t.l()||this.yb_1===t.yb_1&&this.zb_1===t.zb_1:e=!1,e};i(Er).hashCode=function(){var t;if(this.l())t=-1;else{var e=this.yb_1,n=je(e),r=yt(31,n),a=this.zb_1;t=r+je(a)|0}return t};i(Er).toString=function(){return Vt(this.yb_1)+".."+Vt(this.zb_1)};function Zo(t,e,n){Bo.call(this),this.bc_1=n,this.cc_1=e,this.dc_1=this.bc_1>0?t<=e:t>=e,this.ec_1=this.dc_1?t:this.cc_1}i(Zo).i=function(){return this.dc_1};i(Zo).m9=function(){var t=this.ec_1;if(t===this.cc_1){if(!this.dc_1)throw $e();this.dc_1=!1}else this.ec_1=this.ec_1+this.bc_1|0;return t};function ts(t,e,n){to.call(this),this.fc_1=n;var r=this;r.gc_1=je(e),this.hc_1=this.fc_1>0?ie(t,e)<=0:ie(t,e)>=0;var a=this,o;this.hc_1?o=je(t):o=this.gc_1,a.ic_1=o}i(ts).i=function(){return this.hc_1};i(ts).o9=function(){var t=this.ic_1;if(t===this.gc_1){if(!this.hc_1)throw $e();this.hc_1=!1}else this.ic_1=this.ic_1+this.fc_1|0;return Ea(t)};function qu(){}i(qu).s=function(t,e,n){return new Hn(t,e,n)};var ad;function Hn(t,e,n){if(n===0)throw Dt("Step must be non-zero.");if(n===-2147483648)throw Dt("Step must be greater than Int.MIN_VALUE to avoid overflow on negation.");this.qb_1=t,this.rb_1=nd(t,e,n),this.sb_1=n}i(Hn).h=function(){return new Zo(this.qb_1,this.rb_1,this.sb_1)};i(Hn).l=function(){return this.sb_1>0?this.qb_1>this.rb_1:this.qb_1<this.rb_1};i(Hn).equals=function(t){var e;return t instanceof Hn?e=this.l()&&t.l()||this.qb_1===t.qb_1&&this.rb_1===t.rb_1&&this.sb_1===t.sb_1:e=!1,e};i(Hn).hashCode=function(){return this.l()?-1:yt(31,yt(31,this.qb_1)+this.rb_1|0)+this.sb_1|0};i(Hn).toString=function(){return this.sb_1>0?""+this.qb_1+".."+this.rb_1+" step "+this.sb_1:""+this.qb_1+" downTo "+this.rb_1+" step "+(-this.sb_1|0)};function Mm(){}function Nr(t,e,n){if(n===0)throw Dt("Step must be non-zero.");if(n===-2147483648)throw Dt("Step must be greater than Int.MIN_VALUE to avoid overflow on negation.");this.yb_1=t;var r=this,a=je(t),o=je(e);r.zb_1=Ea(nd(a,o,n)),this.ac_1=n}i(Nr).h=function(){return new ts(this.yb_1,this.zb_1,this.ac_1)};i(Nr).l=function(){return this.ac_1>0?ie(this.yb_1,this.zb_1)>0:ie(this.yb_1,this.zb_1)<0};i(Nr).equals=function(t){var e;return t instanceof Nr?e=this.l()&&t.l()||this.yb_1===t.yb_1&&this.zb_1===t.zb_1&&this.ac_1===t.ac_1:e=!1,e};i(Nr).hashCode=function(){var t;if(this.l())t=-1;else{var e=this.yb_1,n=je(e),r=yt(31,n),a=this.zb_1,o=je(a);t=yt(31,r+o|0)+this.ac_1|0}return t};i(Nr).toString=function(){return this.ac_1>0?Vt(this.yb_1)+".."+Vt(this.zb_1)+" step "+this.ac_1:Vt(this.yb_1)+" downTo "+Vt(this.zb_1)+" step "+(-this.ac_1|0)};function od(t,e,n){n!=null?t.e(n(e)):e==null||_e(e)?t.e(e):e instanceof st?t.b6(e.x_1):t.e(Gt(e))}function sd(t,e,n){if(n=n===u?!1:n,t===e)return!0;if(!n)return!1;var r=qf(t),a=qf(e),o;if(r===a)o=!0;else{var s=Vt(r).toLowerCase(),l=O(s,0),c=Vt(a).toLowerCase();o=l===O(c,0)}return o}function ld(t){return Au(t,10)}function Au(t,e){Dh(e);var n=t.length;if(n===0)return null;var r,a,o,s=O(t,0);if(ie(s,48)<0){if(n===1)return null;if(r=1,s===45)a=!0,o=-2147483648;else if(s===43)a=!1,o=-2147483647;else return null}else r=0,a=!1,o=-2147483647;var l=-59652323,c=l,f=0,h=r;if(h<n)do{var d=h;h=h+1|0;var p=nm(O(t,d),e);if(p<0)return null;if(f<c)if(c===l){if(c=o/e|0,f<c)return null}else return null;if(f=yt(f,e),f<(o+p|0))return null;f=f-p|0}while(h<n);return a?f:-f|0}function ud(t){throw Th("Invalid number format: '"+t+"'")}function Tu(t,e,n){n=n===u?!1:n;var r,a;return n?a=!1:a=typeof t=="string",a?r=typeof e=="string":r=!1,r?wu(t,e):io(t,0,e,0,P(e),n)}function Mu(t,e,n){n=n===u?!1:n;var r;return typeof e=="string"?r=rl(t,e,u,n)>=0:r=fd(t,e,0,P(t),n)>=0,r}function es(t,e,n){n=n===u?!1:n;var r,a;return n?a=!1:a=typeof t=="string",a?r=typeof e=="string":r=!1,r?Kh(t,e):io(t,P(t)-P(e)|0,e,0,P(e),n)}function Pm(t){var e;t:{for(var n=0;n<P(t);){var r=O(t,n);if(n=n+1|0,!Fh(r)){e=!1;break t}}e=!0}return e}function Je(t,e,n){return n=n===u?!1:n,Lm(t,e,u,n)>=0}function ns(t,e,n,r){r=r===u?!1:r;var a,o;return r?o=!1:o=typeof t=="string",o?a=typeof e=="string":a=!1,a?um(t,e,n):io(t,n,e,0,P(e),r)}function rl(t,e,n,r){n=n===u?0:n,r=r===u?!1:r;var a,o;return r?o=!0:o=typeof t!="string",o?a=fd(t,e,n,P(t),r):a=t.indexOf(e,n),a}function io(t,e,n,r,a,o){if(r<0||e<0||e>(P(t)-a|0)||r>(P(n)-a|0))return!1;var s=0;if(s<a)do{var l=s;if(s=s+1|0,!sd(O(t,e+l|0),O(n,r+l|0),o))return!1}while(s<a);return!0}function fd(t,e,n,r,a,o){o=o===u?!1:o;var s=o?sp(ka(n,cd(t)),yo(r,0)):l_(yo(n,0),ka(r,P(t))),l;if(typeof t=="string"?l=typeof e=="string":l=!1,l){var c=s.qb_1,f=s.rb_1,h=s.sb_1;if(h>0&&c<=f||h<0&&f<=c)do{var d=c;if(c=c+h|0,zo(e,0,t,d,P(e),a))return d}while(d!==f)}else{var p=s.qb_1,g=s.rb_1,m=s.sb_1;if(m>0&&p<=g||m<0&&g<=p)do{var _=p;if(p=p+m|0,io(e,0,t,_,P(e),a))return _}while(_!==g)}return-1}function Rm(t){var e=0,n=P(t)-1|0,r=!1;t:for(;e<=n;){var a=r?n:e,o=Fh(O(t,a));if(!r)o?e=e+1|0:r=!0;else if(o)n=n-1|0;else break t}return cn(t,e,n+1|0)}function Lm(t,e,n,r){n=n===u?0:n,r=r===u?!1:r;var a,o;if(r?o=!0:o=typeof t!="string",o){var s=$p([e]);a=Om(t,s,n,r)}else{var l=Vt(e);a=t.indexOf(l,n)}return a}function cd(t){return P(t)-1|0}function Om(t,e,n,r){n=n===u?0:n,r=r===u?!1:r;var a;if(!r&&e.length===1?a=typeof t=="string":a=!1,a){var o=Jv(e),s=Vt(o);return t.indexOf(s,n)}var l=yo(n,0),c=cd(t);if(l<=c)do{var f=l;l=l+1|0;var h=O(t,f),d;t:{for(var p=0,g=e.length;p<g;){var m=e[p];if(p=p+1|0,sd(m,h,r)){d=!0;break t}}d=!1}if(d)return f}while(f!==c);return-1}function jm(t,e){var n;if(t!=null&&typeof t=="string"?n=e!=null?typeof e=="string":!1:n=!1,n)return I(t,e);if(t===e)return!0;if(t==null||e==null||P(t)!==P(e))return!1;var r=0,a=P(t);if(r<a)do{var o=r;if(r=r+1|0,O(t,o)!==O(e,o))return!1}while(r<a);return!0}function ao(t){this.jc_1=t,this.kc_1=rs}i(ao).r1=function(){this.kc_1===rs&&(this.kc_1=Me(this.jc_1)(),this.jc_1=null);var t=this.kc_1;return t==null||t!=null?t:S()};i(ao).lc=function(){return this.kc_1!==rs};i(ao).toString=function(){return this.lc()?Gt(this.r1()):"Lazy value not initialized yet."};function hd(){}var rs;function zm(t){var e=t;return e instanceof Ir}function Fm(t){var e;return t instanceof Ir?e=t.mc_1:e=null,e}function Dm(){}function Ir(t){this.mc_1=t}i(Ir).equals=function(t){var e;return t instanceof Ir?e=I(this.mc_1,t.mc_1):e=!1,e};i(Ir).hashCode=function(){return ft(this.mc_1)};i(Ir).toString=function(){return"Failure("+this.mc_1.toString()+")"};function Bm(t){return new Ir(t)}function Km(t){var e=t;if(e instanceof Ir)throw t.mc_1}function il(t){t=t===u?"An operation is not implemented.":t,w0(t,this),H(this,il)}function An(t,e){this.nc_1=t,this.oc_1=e}i(An).toString=function(){return"("+Gt(this.nc_1)+", "+Gt(this.oc_1)+")"};i(An).pc=function(){return this.nc_1};i(An).qc=function(){return this.oc_1};i(An).hashCode=function(){var t=this.nc_1==null?0:ft(this.nc_1);return t=yt(t,31)+(this.oc_1==null?0:ft(this.oc_1))|0,t};i(An).equals=function(t){if(this===t)return!0;if(!(t instanceof An))return!1;var e=t instanceof An?t:S();return!(!I(this.nc_1,e.nc_1)||!I(this.oc_1,e.oc_1))};function Lf(t,e){return new An(t,e)}i(we).asJsReadonlyArrayView=dc;i(Se).p4=Qv;i(fe).asJsReadonlyArrayView=dc;ct=new Fl;co=null;Qa=new _h;yh=new ta;_n=new Jr;bu=new Fo;la=new Si;Jo=new no;td=new Zh;ad=new qu;rs=new hd;var D=Math.imul;Be(sn,"Stringify");function Pu(){return this.uc()-this.tc()|0}Be(cs,"Position",u,u,[sn]);k(He,"Expression",u,u,[cs]);k(ht,"BinaryExpression",u,He);k(is,"sam$kotlin_Comparator$0");be(Aa);k(Q,"CompareOperator",u,u,[sn]);lt(Bn,"Equal",u,Q);lt(or,"NotEqual",u,Q);lt(sr,"Start",u,Q);lt(lr,"NotStart",u,Q);lt(ur,"Include",u,Q);lt(fr,"NotInclude",u,Q);lt(cr,"End",u,Q);lt(hr,"NotEnd",u,Q);lt(dr,"Less",u,Q);lt(vr,"LessEqual",u,Q);lt(pr,"More",u,Q);lt(_r,"MoreEqual",u,Q);lt(mr,"Matches",u,Q);lt(gr,"NotMatches",u,Q);k(Ni,"ConnectExpression",u,u,[sn]);k(ss,"sam$kotlin_Comparator$0");be(Ta);k(ke,"ConnectOperator",u,u,[sn]);lt(Lr,"BeforeBrother",u,ke);lt(Or,"AfterBrother",u,ke);lt(jr,"Ancestor",u,ke);lt(zr,"Child",u,ke);lt(Fr,"Descendant",u,ke);k(ve,"ConnectSegment",ve,u,[sn]);k(qe,"ConnectWrapper",u,u,[sn]);k(te,"Context");k(Lt,"SelectorCheckException",u,xn);k(en,"UnknownIdentifierException",u,Lt);k(nn,"UnknownMemberException",u,Lt);k(Ve,"UnknownIdentifierMethodException",u,Lt);k(rn,"UnknownIdentifierMethodParamsException",u,Lt);k(Qe,"UnknownMemberMethodException",u,Lt);k(an,"UnknownMemberMethodParamsException",u,Lt);k(se,"MismatchParamTypeException",u,Lt);k(xe,"MismatchExpressionTypeException",u,Lt);k(on,"MismatchOperatorTypeException",u,Lt);k(ze,"FastQuery",u,u,[sn]);k(hn,"Id",u,ze);k(dn,"Vid",u,ze);k(vn,"Text",u,ze);k(dt,"LogicalExpression",u,He);k(fs,"sam$kotlin_Comparator$0");be(Ma);k(Pn,"LogicalOperator",u,u,[sn]);lt(Dr,"AndOperator",u,Pn);lt(Br,"OrOperator",u,Pn);k(Fe,"MatchOption",Fe);k(ee,"NotExpression",u,He);k(Mt,"PolynomialExpression",Mt,Ni);k(Qt,"PositionImpl",u,u,[cs]);k(le,"PropertySegment",u,u,[sn]);k(ne,"PropertyWrapper",u,u,[sn]);be(hs);k(Ee,"Selector",u,u,[sn]);k(ue,"SyntaxError",u,xn);be(Du);Ka(hi,Pe,u,[1]);Ka(di,Pe,u,[1]);Ka(vi,Pe,u,[1]);Ka(pi,Pe,u,[1]);Ka(_i,Pe,u,[1]);k(kt,"Transform");k(Ae,"TupleExpression",u,Ni);k(ln,"PrimitiveType");lt(si,"BooleanType",u,ln);lt(li,"IntType",u,ln);lt(ui,"StringType",u,ln);k(De,"ObjectType",u,ln);k(J,"MethodInfo",u,u,[sn]);k(rt,"PropInfo");k(Ht,"TypeInfo",u,u,[sn]);k(re,"ValueExpression",u,u,[cs]);k(Re,"Variable",u,re);k(xt,"Identifier",u,Re);k(mt,"MemberExpression",u,Re);k(St,"CallExpression",u,Re);k(Ye,"LiteralExpression",u,re);k(Te,"NullLiteral",u,Ye);k(pe,"BooleanLiteral",u,Ye);k(Jt,"IntLiteral",u,Ye);k(gt,"StringLiteral",u,Ye);k(Wt,"Parser");k(Pt,"ParserResult");lt(so,"ParserSet");k(Xr,"DefaultTypeInfo");function ht(t,e,n,r,a){He.call(this),this.rc_1=t,this.sc_1=e,this.left=n,this.operator=r,this.right=a}i(ht).tc=function(){return this.rc_1};i(ht).uc=function(){return this.sc_1};i(ht).vc=function(){return this.left};i(ht).wc=function(){return this.operator};i(ht).xc=function(){return this.right};i(ht).match=function(t,e){return this.operator.value.ad(t,e,this.left,this.right)};i(ht).bd=function(){return[this]};i(ht).stringify=function(){return this.left.stringify()+this.operator.stringify()+this.right.stringify()};i(ht).cd=function(){return rr([this.left.properties,this.right.properties])};i(ht).dd=function(){return rr([this.left.methods,this.right.methods])};i(ht).pc=function(){return this.rc_1};i(ht).qc=function(){return this.sc_1};i(ht).ed=function(){return this.left};i(ht).fd=function(){return this.operator};i(ht).gd=function(){return this.right};i(ht).hd=function(t,e,n,r,a){return new ht(t,e,n,r,a)};i(ht).copy=function(t,e,n,r,a,o){return t=t===u?this.rc_1:t,e=e===u?this.sc_1:e,n=n===u?this.left:n,r=r===u?this.operator:r,a=a===u?this.right:a,this.hd(t,e,n,r,a)};i(ht).toString=function(){return"BinaryExpression(start="+this.rc_1+", end="+this.sc_1+", left="+z(this.left)+", operator="+this.operator.toString()+", right="+z(this.right)+")"};i(ht).hashCode=function(){var t=this.rc_1;return t=D(t,31)+this.sc_1|0,t=D(t,31)+ft(this.left)|0,t=D(t,31)+this.operator.hashCode()|0,t=D(t,31)+ft(this.right)|0,t};i(ht).equals=function(t){if(this===t)return!0;if(!(t instanceof ht))return!1;var e=t instanceof ht?t:S();return!(this.rc_1!==e.rc_1||this.sc_1!==e.sc_1||!I(this.left,e.left)||!this.operator.equals(e.operator)||!I(this.right,e.right))};function Um(t,e,n){if(t===n)return!0;if(P(t)!==P(n))return!1;var r=P(t)-1|0;if(0<=r)do{var a=r;if(r=r+-1|0,O(t,a)!==O(n,a))return!1}while(0<=r);return!0}function is(t){this.id_1=t}i(is).b9=function(t,e){return this.id_1(t,e)};i(is).compare=function(t,e){return this.b9(t,e)};function Wm(){var t=ku([ar(),dd(),Yr(),vd(),Ru(),pd(),Lu(),_d(),oo(),md(),gd(),yd(),os(),Ou()]),e=Hm,n=new is(e),r=Wl(t,n);return bn(r)}function Hm(t,e){var n=-t.key.length|0,r=-e.key.length|0;return Xo(n,r)}function Aa(){al=this;var t=this;t.jd_1=Ia(Wm)}i(Aa).kd=function(){var t=this.jd_1;return Vm(),t.r1()};var al;function as(){return al==null&&new Aa,al}function Bn(){ol=this,Q.call(this,"=")}i(Bn).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e);return this.compare(a,o)};i(Bn).od=function(t,e){return!0};i(Bn).compare=function(t,e){var n,r;return t!=null&&_e(t)?r=e!=null?_e(e):!1:r=!1,r?n=Um(t,as(),e):n=I(t,e),n};i(Bn).toString=function(){return"Equal"};i(Bn).hashCode=function(){return 717536815};i(Bn).equals=function(t){return this===t?!0:t instanceof Bn?(t instanceof Bn||S(),!0):!1};var ol;function ar(){return ol==null&&new Bn,ol}function or(){sl=this,Q.call(this,"!=")}i(or).ad=function(t,e,n,r){return!ar().ad(t,e,n,r)};i(or).od=function(t,e){return!0};i(or).toString=function(){return"NotEqual"};i(or).hashCode=function(){return 1058184006};i(or).equals=function(t){return this===t?!0:t instanceof or?(t instanceof or||S(),!0):!1};var sl;function dd(){return sl==null&&new or,sl}function sr(){ll=this,Q.call(this,"^=")}i(sr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&_e(a)?l=o!=null?_e(o):!1:l=!1,l?s=Tu(a,o):s=!1,s};i(sr).od=function(t,e){var n,r;if(t instanceof gt?r=!0:r=t instanceof Re,r){var a;e instanceof gt?a=!0:a=e instanceof Re,n=a}else n=!1;return n};i(sr).toString=function(){return"Start"};i(sr).hashCode=function(){return 730536797};i(sr).equals=function(t){return this===t?!0:t instanceof sr?(t instanceof sr||S(),!0):!1};var ll;function Yr(){return ll==null&&new sr,ll}function lr(){ul=this,Q.call(this,"!^=")}i(lr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&_e(a)?l=o!=null?_e(o):!1:l=!1,l?s=!Tu(a,o):s=!1,s};i(lr).od=function(t,e){return Yr().od(t,e)};i(lr).toString=function(){return"NotStart"};i(lr).hashCode=function(){return 1071183988};i(lr).equals=function(t){return this===t?!0:t instanceof lr?(t instanceof lr||S(),!0):!1};var ul;function vd(){return ul==null&&new lr,ul}function ur(){fl=this,Q.call(this,"*=")}i(ur).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&_e(a)?l=o!=null?_e(o):!1:l=!1,l?s=Mu(a,o):s=!1,s};i(ur).od=function(t,e){return Yr().od(t,e)};i(ur).toString=function(){return"Include"};i(ur).hashCode=function(){return 1510988003};i(ur).equals=function(t){return this===t?!0:t instanceof ur?(t instanceof ur||S(),!0):!1};var fl;function Ru(){return fl==null&&new ur,fl}function fr(){cl=this,Q.call(this,"!*=")}i(fr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&_e(a)?l=o!=null?_e(o):!1:l=!1,l?s=!Mu(a,o):s=!1,s};i(fr).od=function(t,e){return Yr().od(t,e)};i(fr).toString=function(){return"NotInclude"};i(fr).hashCode=function(){return-1839543238};i(fr).equals=function(t){return this===t?!0:t instanceof fr?(t instanceof fr||S(),!0):!1};var cl;function pd(){return cl==null&&new fr,cl}function cr(){hl=this,Q.call(this,"$=")}i(cr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&_e(a)?l=o!=null?_e(o):!1:l=!1,l?s=es(a,o):s=!1,s};i(cr).od=function(t,e){return Yr().od(t,e)};i(cr).toString=function(){return"End"};i(cr).hashCode=function(){return 1234264726};i(cr).equals=function(t){return this===t?!0:t instanceof cr?(t instanceof cr||S(),!0):!1};var hl;function Lu(){return hl==null&&new cr,hl}function hr(){dl=this,Q.call(this,"!$=")}i(hr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&_e(a)?l=o!=null?_e(o):!1:l=!1,l?s=!es(a,o):s=!1,s};i(hr).od=function(t,e){return Yr().od(t,e)};i(hr).toString=function(){return"NotEnd"};i(hr).hashCode=function(){return 1024563565};i(hr).equals=function(t){return this===t?!0:t instanceof hr?(t instanceof hr||S(),!0):!1};var dl;function _d(){return dl==null&&new hr,dl}function dr(){vl=this,Q.call(this,"<")}i(dr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&typeof a=="number"?l=o!=null?typeof o=="number":!1:l=!1,l?s=a<o:s=!1,s};i(dr).od=function(t,e){var n,r;if(t instanceof Re?r=!0:r=t instanceof Jt,r){var a;e instanceof Jt?a=!0:a=e instanceof Re,n=a}else n=!1;return n};i(dr).toString=function(){return"Less"};i(dr).hashCode=function(){return-392298690};i(dr).equals=function(t){return this===t?!0:t instanceof dr?(t instanceof dr||S(),!0):!1};var vl;function oo(){return vl==null&&new dr,vl}function vr(){pl=this,Q.call(this,"<=")}i(vr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&typeof a=="number"?l=o!=null?typeof o=="number":!1:l=!1,l?s=a<=o:s=!1,s};i(vr).od=function(t,e){return oo().od(t,e)};i(vr).toString=function(){return"LessEqual"};i(vr).hashCode=function(){return-2095624554};i(vr).equals=function(t){return this===t?!0:t instanceof vr?(t instanceof vr||S(),!0):!1};var pl;function md(){return pl==null&&new vr,pl}function pr(){_l=this,Q.call(this,">")}i(pr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&typeof a=="number"?l=o!=null?typeof o=="number":!1:l=!1,l?s=a>o:s=!1,s};i(pr).od=function(t,e){return oo().od(t,e)};i(pr).toString=function(){return"More"};i(pr).hashCode=function(){return-392259334};i(pr).equals=function(t){return this===t?!0:t instanceof pr?(t instanceof pr||S(),!0):!1};var _l;function gd(){return _l==null&&new pr,_l}function _r(){ml=this,Q.call(this,">=")}i(_r).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&typeof a=="number"?l=o!=null?typeof o=="number":!1:l=!1,l?s=a>=o:s=!1,s};i(_r).od=function(t,e){return oo().od(t,e)};i(_r).toString=function(){return"MoreEqual"};i(_r).hashCode=function(){return-648189350};i(_r).equals=function(t){return this===t?!0:t instanceof _r?(t instanceof _r||S(),!0):!1};var ml;function yd(){return ml==null&&new _r,ml}function mr(){gl=this,Q.call(this,"~=")}i(mr).ad=function(t,e,n,r){var a=n.nd(t,e),o,s;return a!=null&&_e(a)?s=r instanceof gt:s=!1,s?o=r.xd_1(a):o=!1,o};i(mr).od=function(t,e){var n;if(t instanceof Re){var r;e instanceof gt?r=e.wd_1!=null:r=!1,n=r}else n=!1;return n};i(mr).toString=function(){return"Matches"};i(mr).hashCode=function(){return 409275758};i(mr).equals=function(t){return this===t?!0:t instanceof mr?(t instanceof mr||S(),!0):!1};var gl;function os(){return gl==null&&new mr,gl}function gr(){yl=this,Q.call(this,"!~=")}i(gr).ad=function(t,e,n,r){var a=n.nd(t,e),o,s;return a!=null&&_e(a)?s=r instanceof gt:s=!1,s?o=!r.xd_1(a):o=!1,o};i(gr).od=function(t,e){return os().od(t,e)};i(gr).toString=function(){return"NotMatches"};i(gr).hashCode=function(){return 1353711813};i(gr).equals=function(t){return this===t?!0:t instanceof gr?(t instanceof gr||S(),!0):!1};var yl;function Ou(){return yl==null&&new gr,yl}function Q(t){as(),this.key=t}i(Q).q1=function(){return this.key};i(Q).stringify=function(){return this.key};function Vm(){return Ua("allSubClasses",1,jo,function(t){return t.allSubClasses},null)}function Ni(){}function ss(t){this.ae_1=t}i(ss).b9=function(t,e){return this.ae_1(t,e)};i(ss).compare=function(t,e){return this.b9(t,e)};function Qm(){var t=ku([wd(),bd(),xo(),kd(),us()]),e=Gm,n=new ss(e);return Wl(t,n)}function Gm(t,e){var n=-t.key.length|0,r=-e.key.length|0;return Xo(n,r)}function Ta(){wl=this;var t=this;t.be_1=Ia(Qm)}i(Ta).kd=function(){var t=this.be_1;return Jm(),t.r1()};var wl;function ls(){return wl==null&&new Ta,wl}function Lr(){bl=this,ke.call(this,"+")}i(Lr).ce=function(t,e,n){return e.traverseBeforeBrothers(t,n)};i(Lr).toString=function(){return"BeforeBrother"};i(Lr).hashCode=function(){return 1632618113};i(Lr).equals=function(t){return this===t?!0:t instanceof Lr?(t instanceof Lr||S(),!0):!1};var bl;function wd(){return bl==null&&new Lr,bl}function Or(){kl=this,ke.call(this,"-")}i(Or).ce=function(t,e,n){return e.traverseAfterBrothers(t,n)};i(Or).toString=function(){return"AfterBrother"};i(Or).hashCode=function(){return 1215887620};i(Or).equals=function(t){return this===t?!0:t instanceof Or?(t instanceof Or||S(),!0):!1};var kl;function bd(){return kl==null&&new Or,kl}function jr(){Cl=this,ke.call(this,">")}i(jr).ce=function(t,e,n){return e.traverseAncestors(t,n)};i(jr).toString=function(){return"Ancestor"};i(jr).hashCode=function(){return 736770963};i(jr).equals=function(t){return this===t?!0:t instanceof jr?(t instanceof jr||S(),!0):!1};var Cl;function xo(){return Cl==null&&new jr,Cl}function zr(){xl=this,ke.call(this,"<")}i(zr).ce=function(t,e,n){return e.traverseChildren(t,n)};i(zr).toString=function(){return"Child"};i(zr).hashCode=function(){return-1105093796};i(zr).equals=function(t){return this===t?!0:t instanceof zr?(t instanceof zr||S(),!0):!1};var xl;function kd(){return xl==null&&new zr,xl}function Fr(){Sl=this,ke.call(this,"<<")}i(Fr).ce=function(t,e,n){return e.traverseDescendants(t,n)};i(Fr).toString=function(){return"Descendant"};i(Fr).hashCode=function(){return 2093403837};i(Fr).equals=function(t){return this===t?!0:t instanceof Fr?(t instanceof Fr||S(),!0):!1};var Sl;function us(){return Sl==null&&new Fr,Sl}function ke(t){ls(),this.key=t}i(ke).q1=function(){return this.key};i(ke).stringify=function(){return this.key};function Jm(){return Ua("allSubClasses",1,jo,function(t){return t.allSubClasses},null)}function ve(t,e){t=t===u?xo():t,e=e===u?new Mt:e,this.operator=t,this.connectExpression=e;var n=this,r,a,o;if(I(this.operator,xo())){var s=this.connectExpression;o=s instanceof Mt}else o=!1;o?a=this.connectExpression.a===1:a=!1,a?r=this.connectExpression.b===0:r=!1,n.isMatchAnyAncestor=r;var l=this,c,f,h;if(I(this.operator,us())){var d=this.connectExpression;h=d instanceof Mt}else h=!1;h?f=this.connectExpression.a===1:f=!1,f?c=this.connectExpression.b===0:c=!1,l.isMatchAnyDescendant=c}i(ve).wc=function(){return this.operator};i(ve).he=function(){return this.connectExpression};i(ve).stringify=function(){return this.isMatchAnyAncestor?"":this.operator.stringify()+this.connectExpression.stringify()};i(ve).ie=function(t,e){return this.operator.ce(t,e,this.connectExpression)};i(ve).je=function(){return this.isMatchAnyAncestor};i(ve).ke=function(){return this.isMatchAnyDescendant};i(ve).pc=function(){return this.operator};i(ve).qc=function(){return this.connectExpression};i(ve).le=function(t,e){return new ve(t,e)};i(ve).copy=function(t,e,n){return t=t===u?this.operator:t,e=e===u?this.connectExpression:e,this.le(t,e)};i(ve).toString=function(){return"ConnectSegment(operator="+z(this.operator)+", connectExpression="+z(this.connectExpression)+")"};i(ve).hashCode=function(){var t=ft(this.operator);return t=D(t,31)+ft(this.connectExpression)|0,t};i(ve).equals=function(t){if(this===t)return!0;if(!(t instanceof ve))return!1;var e=t instanceof ve?t:S();return!(!I(this.operator,e.operator)||!I(this.connectExpression,e.connectExpression))};function qe(t,e){this.segment=t,this.to=e,this.me_1=this.to.isMatchRoot&&this.segment.isMatchAnyAncestor;var n=this,r;this.segment.isMatchAnyDescendant?r=!this.to.fastQueryList.l():r=!1,n.canFq=r}i(qe).ne=function(){return this.segment};i(qe).oe=function(){return this.to};i(qe).stringify=function(){var t=this.to.stringify()+" "+this.segment.stringify();return z(Rm(_e(t)?t:S()))};i(qe).matchContext=function(t,e,n){if(this.me_1){var r=e.getRoot(t.current),a;if(r==null)return null;a=r;var o=a;return this.to.matchContext(t.next(o),e,n)}if(this.canFq&&n.fastQuery)for(var s=e.traverseFastQueryDescendants(t.current,this.to.fastQueryList).h();s.i();){var l=s.j(),c=this.to.matchContext(t.next(l),e,n);if(c!=null)return c}else for(var f=this.segment.ie(t.current,e).h();f.i();){var h=f.j();t:{if(h==null)break t;var d=this.to.matchContext(t.next(h),e,n);if(d!=null)return d}}return null};i(qe).pe=function(){return this.canFq};i(qe).pc=function(){return this.segment};i(qe).qc=function(){return this.to};i(qe).qe=function(t,e){return new qe(t,e)};i(qe).copy=function(t,e,n){return t=t===u?this.segment:t,e=e===u?this.to:e,this.qe(t,e)};i(qe).toString=function(){return"ConnectWrapper(segment="+this.segment.toString()+", to="+this.to.toString()+")"};i(qe).hashCode=function(){var t=this.segment.hashCode();return t=D(t,31)+this.to.hashCode()|0,t};i(qe).equals=function(t){if(this===t)return!0;if(!(t instanceof qe))return!1;var e=t instanceof qe?t:S();return!(!this.segment.equals(e.segment)||!this.to.equals(e.to))};function te(t,e){e=e===u?null:e,this.current=t,this.prev=e}i(te).re=function(){return this.current};i(te).se=function(){return this.prev};i(te).getPrev=function(t){if(t<0)return null;var e=this.prev,n;if(e==null)return null;n=e;var r=n,a=0;if(a<t)do{a=a+1|0;var o=r.prev,s;if(o==null)return null;s=o,r=s}while(a<t);return r};i(te).get=function(t){if(t===0)return this;var e=this.getPrev(t-1|0),n;if(e==null)throw cu();return n=e,n};i(te).toList=function(){for(var t=Wh([this.current]),e=this.prev;e!=null;)t.f(e.current),e=e.prev;return t};i(te).toArray=function(){var t=this.toList(),e=ot(t,Vn)?t:S(),n=bn(e);return Zi(n)?n:S()};i(te).next=function(t){return new te(t,this)};i(te).pc=function(){return this.current};i(te).qc=function(){return this.prev};i(te).te=function(t,e){return new te(t,e)};i(te).copy=function(t,e,n){return t=t===u?this.current:t,e=e===u?this.prev:e,this.te(t,e)};i(te).toString=function(){return"Context(current="+Gt(this.current)+", prev="+Gt(this.prev)+")"};i(te).hashCode=function(){var t=this.current==null?0:ft(this.current);return t=D(t,31)+(this.prev==null?0:this.prev.hashCode())|0,t};i(te).equals=function(t){if(this===t)return!0;if(!(t instanceof te))return!1;var e=t instanceof te?t:S();return!(!I(this.current,e.current)||!I(this.prev,e.prev))};function Lt(t){Mo(t,this),H(this,Lt),this.ue_1=t}i(Lt).i7=function(){return this.ue_1};function en(t){Lt.call(this,"Unknown Identifier: "+t.stringify()),H(this,en),this.value=t}i(en).r1=function(){return this.value};i(en).pc=function(){return this.value};i(en).we=function(t){return new en(t)};i(en).copy=function(t,e){return t=t===u?this.value:t,this.we(t)};i(en).toString=function(){return"UnknownIdentifierException(value="+this.value.toString()+")"};i(en).hashCode=function(){return this.value.hashCode()};i(en).equals=function(t){if(this===t)return!0;if(!(t instanceof en))return!1;var e=t instanceof en?t:S();return!!this.value.equals(e.value)};function nn(t){Lt.call(this,"Unknown Member: "+t.stringify()),H(this,nn),this.value=t}i(nn).r1=function(){return this.value};i(nn).pc=function(){return this.value};i(nn).ye=function(t){return new nn(t)};i(nn).copy=function(t,e){return t=t===u?this.value:t,this.ye(t)};i(nn).toString=function(){return"UnknownMemberException(value="+this.value.toString()+")"};i(nn).hashCode=function(){return this.value.hashCode()};i(nn).equals=function(t){if(this===t)return!0;if(!(t instanceof nn))return!1;var e=t instanceof nn?t:S();return!!this.value.equals(e.value)};function Ve(t){Lt.call(this,"Unknown Identifier Method: "+t.stringify()),H(this,Ve),this.value=t}i(Ve).r1=function(){return this.value};i(Ve).pc=function(){return this.value};i(Ve).we=function(t){return new Ve(t)};i(Ve).copy=function(t,e){return t=t===u?this.value:t,this.we(t)};i(Ve).toString=function(){return"UnknownIdentifierMethodException(value="+this.value.toString()+")"};i(Ve).hashCode=function(){return this.value.hashCode()};i(Ve).equals=function(t){if(this===t)return!0;if(!(t instanceof Ve))return!1;var e=t instanceof Ve?t:S();return!!this.value.equals(e.value)};function rn(t){Lt.call(this,"Unknown Identifier Method Params: "+t.stringify()),H(this,rn),this.value=t}i(rn).r1=function(){return this.value};i(rn).pc=function(){return this.value};i(rn).bf=function(t){return new rn(t)};i(rn).copy=function(t,e){return t=t===u?this.value:t,this.bf(t)};i(rn).toString=function(){return"UnknownIdentifierMethodParamsException(value="+this.value.toString()+")"};i(rn).hashCode=function(){return this.value.hashCode()};i(rn).equals=function(t){if(this===t)return!0;if(!(t instanceof rn))return!1;var e=t instanceof rn?t:S();return!!this.value.equals(e.value)};function Qe(t){Lt.call(this,"Unknown Member Method: "+t.stringify()),H(this,Qe),this.value=t}i(Qe).r1=function(){return this.value};i(Qe).pc=function(){return this.value};i(Qe).ye=function(t){return new Qe(t)};i(Qe).copy=function(t,e){return t=t===u?this.value:t,this.ye(t)};i(Qe).toString=function(){return"UnknownMemberMethodException(value="+this.value.toString()+")"};i(Qe).hashCode=function(){return this.value.hashCode()};i(Qe).equals=function(t){if(this===t)return!0;if(!(t instanceof Qe))return!1;var e=t instanceof Qe?t:S();return!!this.value.equals(e.value)};function an(t){Lt.call(this,"Unknown Member Method Params: "+t.stringify()),H(this,an),this.value=t}i(an).r1=function(){return this.value};i(an).pc=function(){return this.value};i(an).bf=function(t){return new an(t)};i(an).copy=function(t,e){return t=t===u?this.value:t,this.bf(t)};i(an).toString=function(){return"UnknownMemberMethodParamsException(value="+this.value.toString()+")"};i(an).hashCode=function(){return this.value.hashCode()};i(an).equals=function(t){if(this===t)return!0;if(!(t instanceof an))return!1;var e=t instanceof an?t:S();return!!this.value.equals(e.value)};function se(t,e,n){Lt.call(this,"Mismatch Param Type: "+e.stringify()+" should be "+n.key),H(this,se),this.call=t,this.argument=e,this.type=n}i(se).ff=function(){return this.call};i(se).gf=function(){return this.argument};i(se).hf=function(){return this.type};i(se).pc=function(){return this.call};i(se).qc=function(){return this.argument};i(se).ed=function(){return this.type};i(se).if=function(t,e,n){return new se(t,e,n)};i(se).copy=function(t,e,n,r){return t=t===u?this.call:t,e=e===u?this.argument:e,n=n===u?this.type:n,this.if(t,e,n)};i(se).toString=function(){return"MismatchParamTypeException(call="+this.call.toString()+", argument="+z(this.argument)+", type="+z(this.type)+")"};i(se).hashCode=function(){var t=this.call.hashCode();return t=D(t,31)+ft(this.argument)|0,t=D(t,31)+ft(this.type)|0,t};i(se).equals=function(t){if(this===t)return!0;if(!(t instanceof se))return!1;var e=t instanceof se?t:S();return!(!this.call.equals(e.call)||!I(this.argument,e.argument)||!I(this.type,e.type))};function xe(t,e,n){Lt.call(this,"Mismatch Expression Type: "+t.stringify()),H(this,xe),this.exception=t,this.leftType=e,this.rightType=n}i(xe).kf=function(){return this.exception};i(xe).lf=function(){return this.leftType};i(xe).mf=function(){return this.rightType};i(xe).pc=function(){return this.exception};i(xe).qc=function(){return this.leftType};i(xe).ed=function(){return this.rightType};i(xe).nf=function(t,e,n){return new xe(t,e,n)};i(xe).copy=function(t,e,n,r){return t=t===u?this.exception:t,e=e===u?this.leftType:e,n=n===u?this.rightType:n,this.nf(t,e,n)};i(xe).toString=function(){return"MismatchExpressionTypeException(exception="+this.exception.toString()+", leftType="+z(this.leftType)+", rightType="+z(this.rightType)+")"};i(xe).hashCode=function(){var t=this.exception.hashCode();return t=D(t,31)+ft(this.leftType)|0,t=D(t,31)+ft(this.rightType)|0,t};i(xe).equals=function(t){if(this===t)return!0;if(!(t instanceof xe))return!1;var e=t instanceof xe?t:S();return!(!this.exception.equals(e.exception)||!I(this.leftType,e.leftType)||!I(this.rightType,e.rightType))};function on(t){Lt.call(this,"Mismatch Operator Type: "+t.stringify()),H(this,on),this.exception=t}i(on).kf=function(){return this.exception};i(on).pc=function(){return this.exception};i(on).pf=function(t){return new on(t)};i(on).copy=function(t,e){return t=t===u?this.exception:t,this.pf(t)};i(on).toString=function(){return"MismatchOperatorTypeException(exception="+this.exception.toString()+")"};i(on).hashCode=function(){return this.exception.hashCode()};i(on).equals=function(t){if(this===t)return!0;if(!(t instanceof on))return!1;var e=t instanceof on?t:S();return!!this.exception.equals(e.exception)};function He(){}function hn(t){ze.call(this,t),this.rf_1=t}i(hn).r1=function(){return this.rf_1};i(hn).pc=function(){return this.rf_1};i(hn).sf=function(t){return new hn(t)};i(hn).copy=function(t,e){return t=t===u?this.rf_1:t,this.sf(t)};i(hn).toString=function(){return"Id(value="+this.rf_1+")"};i(hn).hashCode=function(){return Ge(this.rf_1)};i(hn).equals=function(t){if(this===t)return!0;if(!(t instanceof hn))return!1;var e=t instanceof hn?t:S();return this.rf_1===e.rf_1};function dn(t){ze.call(this,t),this.uf_1=t}i(dn).r1=function(){return this.uf_1};i(dn).pc=function(){return this.uf_1};i(dn).sf=function(t){return new dn(t)};i(dn).copy=function(t,e){return t=t===u?this.uf_1:t,this.sf(t)};i(dn).toString=function(){return"Vid(value="+this.uf_1+")"};i(dn).hashCode=function(){return Ge(this.uf_1)};i(dn).equals=function(t){if(this===t)return!0;if(!(t instanceof dn))return!1;var e=t instanceof dn?t:S();return this.uf_1===e.uf_1};function vn(t){ze.call(this,t),this.wf_1=t}i(vn).r1=function(){return this.wf_1};i(vn).pc=function(){return this.wf_1};i(vn).sf=function(t){return new vn(t)};i(vn).copy=function(t,e){return t=t===u?this.wf_1:t,this.sf(t)};i(vn).toString=function(){return"Text(value="+this.wf_1+")"};i(vn).hashCode=function(){return Ge(this.wf_1)};i(vn).equals=function(t){if(this===t)return!0;if(!(t instanceof vn))return!1;var e=t instanceof vn?t:S();return this.wf_1===e.wf_1};function ze(t){this.xf_1=t}i(ze).r1=function(){return this.xf_1};i(ze).stringify=function(){return this.value};function Ym(t){var e=_c(t.expressions),n;if(e==null)return null;n=e;var r=n;if(r instanceof dt){if(!I(r.operator.value,Fu()))return null;var a=r.getSameExpressionArray(),o;if(a==null)return null;o=a;for(var s=o,l=qt(),c=0,f=s.length;c<f;){var h=s[c];c=c+1|0;var d=Of(h),p;if(d==null)return null;p=d;var g=p;l.f(g)}return l}if(r instanceof ht){var m=Of(r),_;if(m==null)return null;_=m;var v=_;return Wa(v)}return null}function Of(t){var e=t.left;if(!(e instanceof xt))return null;var n=t.right;if(!(n instanceof gt))return null;var r=t.right.vd_1;return P(r)===0?null:t.left.value==="id"&&I(t.operator.value,ar())?new hn(t.right.vd_1):t.left.value==="vid"&&I(t.operator.value,ar())?new dn(t.right.vd_1):t.left.value==="text"&&(I(t.operator.value,ar())||I(t.operator.value,Yr())||I(t.operator.value,Ru())||I(t.operator.value,Lu()))?new vn(t.right.vd_1):null}function dt(t,e,n,r,a){He.call(this),this.zf_1=t,this.ag_1=e,this.left=n,this.operator=r,this.right=a}i(dt).tc=function(){return this.zf_1};i(dt).uc=function(){return this.ag_1};i(dt).vc=function(){return this.left};i(dt).wc=function(){return this.operator};i(dt).xc=function(){return this.right};i(dt).match=function(t,e){return this.operator.value.compare(t,e,this.left,this.right)};i(dt).bd=function(){var t=this.left.binaryExpressions,e=this.right.binaryExpressions;return t.concat(e)};i(dt).stringify=function(){var t,e,n=this.left;n instanceof dt?e=!I(this.left.operator.value,this.operator.value):e=!1,e?t="("+this.left.stringify()+")":t=this.left.stringify();var r=t,a,o,s=this.right;s instanceof dt?o=!I(this.right.operator.value,this.operator.value):o=!1,o?a="("+this.right.stringify()+")":a=this.right.stringify();var l=a;return r+" "+this.operator.stringify()+" "+l};i(dt).getSameExpressionArray=function(){var t,e=this.left;if(e instanceof dt?t=!I(this.left.operator.value,this.operator.value):t=!1,t)return null;var n,r=this.right;if(r instanceof dt?n=!I(this.right.operator.value,this.operator.value):n=!1,n)return null;var a=this.left,o;if(a instanceof ht){var s=this.right,l;if(s instanceof ht)l=[this.left,this.right];else if(s instanceof dt){var c=[this.left],f=this.right.getSameExpressionArray(),h;if(f==null)return null;h=f;var d=h;l=c.concat(d)}else s instanceof ee?l=null:qn();o=l}else if(a instanceof dt){var p=this.left.getSameExpressionArray(),g;if(p==null)return null;g=p;var m=g,_=this.right,v;if(_ instanceof ht){var y=[this.right];v=m.concat(y)}else if(_ instanceof dt){var C=this.right.getSameExpressionArray(),b;if(C==null)return null;b=C;var x=b;return m.concat(x)}else _ instanceof ee?v=null:qn();o=v}else a instanceof ee?o=null:qn();return o};i(dt).pc=function(){return this.zf_1};i(dt).qc=function(){return this.ag_1};i(dt).ed=function(){return this.left};i(dt).fd=function(){return this.operator};i(dt).gd=function(){return this.right};i(dt).bg=function(t,e,n,r,a){return new dt(t,e,n,r,a)};i(dt).copy=function(t,e,n,r,a,o){return t=t===u?this.zf_1:t,e=e===u?this.ag_1:e,n=n===u?this.left:n,r=r===u?this.operator:r,a=a===u?this.right:a,this.bg(t,e,n,r,a)};i(dt).toString=function(){return"LogicalExpression(start="+this.zf_1+", end="+this.ag_1+", left="+z(this.left)+", operator="+this.operator.toString()+", right="+z(this.right)+")"};i(dt).hashCode=function(){var t=this.zf_1;return t=D(t,31)+this.ag_1|0,t=D(t,31)+ft(this.left)|0,t=D(t,31)+this.operator.hashCode()|0,t=D(t,31)+ft(this.right)|0,t};i(dt).equals=function(t){if(this===t)return!0;if(!(t instanceof dt))return!1;var e=t instanceof dt?t:S();return!(this.zf_1!==e.zf_1||this.ag_1!==e.ag_1||!I(this.left,e.left)||!this.operator.equals(e.operator)||!I(this.right,e.right))};function fs(t){this.cg_1=t}i(fs).b9=function(t,e){return this.cg_1(t,e)};i(fs).compare=function(t,e){return this.b9(t,e)};function Xm(){var t=ku([zu(),Fu()]),e=Zm,n=new fs(e);return Wl(t,n)}function Zm(t,e){var n=-t.key.length|0,r=-e.key.length|0;return Xo(n,r)}function Ma(){$l=this;var t=this;t.dg_1=Ia(Xm)}i(Ma).kd=function(){var t=this.dg_1;return tg(),t.r1()};var $l;function ju(){return $l==null&&new Ma,$l}function Dr(){El=this,Pn.call(this,"&&")}i(Dr).compare=function(t,e,n,r){return n.match(t,e)&&r.match(t,e)};i(Dr).toString=function(){return"AndOperator"};i(Dr).hashCode=function(){return-772304006};i(Dr).equals=function(t){return this===t?!0:t instanceof Dr?(t instanceof Dr||S(),!0):!1};var El;function zu(){return El==null&&new Dr,El}function Br(){Nl=this,Pn.call(this,"||")}i(Br).compare=function(t,e,n,r){return n.match(t,e)||r.match(t,e)};i(Br).toString=function(){return"OrOperator"};i(Br).hashCode=function(){return-302302232};i(Br).equals=function(t){return this===t?!0:t instanceof Br?(t instanceof Br||S(),!0):!1};var Nl;function Fu(){return Nl==null&&new Br,Nl}function Pn(t){ju(),this.key=t}i(Pn).q1=function(){return this.key};i(Pn).stringify=function(){return this.key};function tg(){return Ua("allSubClasses",1,jo,function(t){return t.allSubClasses},null)}function fa(){return eg(),Cd}var Cd;function Fe(t,e){t=t===u?!1:t,e=e===u?!1:e,this.quickFind=t,this.fastQuery=e}i(Fe).eg=function(){return this.quickFind};i(Fe).fg=function(){return this.fastQuery};i(Fe).pc=function(){return this.quickFind};i(Fe).qc=function(){return this.fastQuery};i(Fe).gg=function(t,e){return new Fe(t,e)};i(Fe).copy=function(t,e,n){return t=t===u?this.quickFind:t,e=e===u?this.fastQuery:e,this.gg(t,e)};i(Fe).toString=function(){return"MatchOption(quickFind="+this.quickFind+", fastQuery="+this.fastQuery+")"};i(Fe).hashCode=function(){var t=Ca(this.quickFind);return t=D(t,31)+Ca(this.fastQuery)|0,t};i(Fe).equals=function(t){if(this===t)return!0;if(!(t instanceof Fe))return!1;var e=t instanceof Fe?t:S();return!(this.quickFind!==e.quickFind||this.fastQuery!==e.fastQuery)};var jf;function eg(){jf||(jf=!0,Cd=new Fe)}function ee(t,e){He.call(this),this.hg_1=t,this.expression=e}i(ee).tc=function(){return this.hg_1};i(ee).ig=function(){return this.expression};i(ee).uc=function(){return this.expression.uc()};i(ee).match=function(t,e){return!this.expression.match(t,e)};i(ee).bd=function(){return this.expression.binaryExpressions};i(ee).stringify=function(){return"!("+this.expression.stringify()+")"};i(ee).pc=function(){return this.hg_1};i(ee).qc=function(){return this.expression};i(ee).jg=function(t,e){return new ee(t,e)};i(ee).copy=function(t,e,n){return t=t===u?this.hg_1:t,e=e===u?this.expression:e,this.jg(t,e)};i(ee).toString=function(){return"NotExpression(start="+this.hg_1+", expression="+z(this.expression)+")"};i(ee).hashCode=function(){var t=this.hg_1;return t=D(t,31)+ft(this.expression)|0,t};i(ee).equals=function(t){if(this===t)return!0;if(!(t instanceof ee))return!1;var e=t instanceof ee?t:S();return!(this.hg_1!==e.hg_1||!I(this.expression,e.expression))};function On(t){var e="invalid PolynomialExpression: a="+t.a+", b="+t.b;throw Ur(z(e))}function ng(t){return function(e){return D(t.a,e)+t.b|0}}function rg(t){return function(e){return D(t.a,e)+t.b|0}}function ig(t,e){return function(n){return D(t.a,e+n|0)+t.b|0}}function ag(t){return function(e){return e!==0&&On(t),t.b}}function og(t,e){return function(n){return D(t.a,e-n|0)+t.b|0}}function Mt(t,e){t=t===u?0:t,e=e===u?1:e,Ni.call(this),this.a=t,this.b=e;var n=this,r;if(this.a>0){var a;if(this.b>0)a=this.a+this.b|0;else if(this.b===0)a=this.a;else{var o=((-this.b|0)/this.a|0)+1|0;a=D(this.a,o)+this.b|0}r=a}else{var s;if(this.a===0){var l;this.b>0?l=this.b:On(this),s=l}else{var c;if(this.b>0){var f;if(this.b<=(-this.a|0))On(this);else{var h=((-this.b|0)/this.a|0)-(this.b%this.a|0?0:1)|0;f=D(this.a,h)+this.b|0}c=f}else On(this);s=c}r=s-1|0}n.de_1=r;var d=this,p;if(this.a>0)p=null;else{var g;if(this.a===0){var m;this.b>0?m=this.b:On(this),g=m}else{var _;if(this.b>0){var v;this.b<=(-this.a|0)?On(this):v=this.a+this.b|0,_=v}else On(this);g=_}p=g-1|0}d.ee_1=p,this.fe_1=this.de_1===this.ee_1;var y=this,C;if(this.a>0){var b;if(this.b>0)b=ng(this);else if(this.b===0)b=rg(this);else{var x=((-this.b|0)/this.a|0)+1|0;b=ig(this,x)}C=b}else if(this.a===0){var N;this.b>0?N=ag(this):On(this),C=N}else{var T;if(this.b>0){var U;if(this.b<=(-this.a|0))On(this);else{var G=((-this.b|0)/this.a|0)-(this.b%this.a|0?0:1)|0;U=og(this,G)}T=U}else On(this);C=T}y.ge_1=C}i(Mt).kg=function(){return this.a};i(Mt).lg=function(){return this.b};i(Mt).stringify=function(){if(this.a>0&&this.b>0)return this.a===1?"(n+"+this.b+")":"("+this.a+"n+"+this.b+")";if(this.a<0&&this.b>0)return this.a===-1?"("+this.b+"-n)":"("+this.b+this.a+"n)";if(this.b===0){if(this.a===1)return"n";var t;return this.a>0?t=""+this.a+"n":t="("+this.a+"n)",t}if(this.a===0){if(this.b===1)return"";var e;return this.b>0?e=this.b.toString():e="("+this.b+")",e}var n=this.b>=0?"+":"";return"("+this.a+"n"+n+this.b+")"};i(Mt).yd=function(){return this.de_1};i(Mt).zd=function(){return this.ee_1};i(Mt).checkOffset=function(t){if(this.fe_1)return t===this.de_1;var e=(t+1|0)-this.b|0;return(e%this.a|0)===0&&(e/this.a|0)>=1};i(Mt).getOffset=function(t){return this.ge_1(t)-1|0};i(Mt).pc=function(){return this.a};i(Mt).qc=function(){return this.b};i(Mt).mg=function(t,e){return new Mt(t,e)};i(Mt).copy=function(t,e,n){return t=t===u?this.a:t,e=e===u?this.b:e,this.mg(t,e)};i(Mt).toString=function(){return"PolynomialExpression(a="+this.a+", b="+this.b+")"};i(Mt).hashCode=function(){var t=this.a;return t=D(t,31)+this.b|0,t};i(Mt).equals=function(t){if(this===t)return!0;if(!(t instanceof Mt))return!1;var e=t instanceof Mt?t:S();return!(this.a!==e.a||this.b!==e.b)};function sn(){}function Qt(t,e,n){this.yc_1=t,this.zc_1=e,this.value=n}i(Qt).tc=function(){return this.yc_1};i(Qt).uc=function(){return this.zc_1};i(Qt).r1=function(){return this.value};i(Qt).stringify=function(){return this.value.stringify()};i(Qt).pc=function(){return this.yc_1};i(Qt).qc=function(){return this.zc_1};i(Qt).ed=function(){return this.value};i(Qt).ng=function(t,e,n){return new Qt(t,e,n)};i(Qt).copy=function(t,e,n,r){return t=t===u?this.yc_1:t,e=e===u?this.zc_1:e,n=n===u?this.value:n,this.ng(t,e,n)};i(Qt).toString=function(){return"PositionImpl(start="+this.yc_1+", end="+this.zc_1+", value="+z(this.value)+")"};i(Qt).hashCode=function(){var t=this.yc_1;return t=D(t,31)+this.zc_1|0,t=D(t,31)+ft(this.value)|0,t};i(Qt).equals=function(t){if(this===t)return!0;if(!(t instanceof Qt))return!1;var e=t instanceof Qt?t:S();return!(this.yc_1!==e.yc_1||this.zc_1!==e.zc_1||!I(this.value,e.value))};function cs(){}function sg(t,e,n){if(t.yf_1)return!0;var r=n.getName(e),a;if(r==null)return!1;a=r;var o=a;return P(o)===t.name.length?lm(o,t.name):P(o)>t.name.length?O(o,(P(o)-t.name.length|0)-1|0)===46&&es(o,t.name):!1}function lg(t){return"["+t.stringify()+"]"}function le(t,e,n){this.at=t,this.name=e,this.expressions=n,this.yf_1=Pm(this.name)||this.name==="*"}i(le).og=function(){return this.at};i(le).pg=function(){return this.name};i(le).qg=function(){return this.expressions};i(le).bd=function(){for(var t=this.expressions,e=qt(),n=t.h();n.i();){var r=n.j(),a=Dl(r.binaryExpressions);Do(e,a)}return bn(e)};i(le).stringify=function(){var t=this.at?"@":"",e=t+this.name;return e+In(this.expressions,"",u,u,u,u,lg)};i(le).match=function(t,e){var n;if(sg(this,t.current,e)){var r;t:{var a=this.expressions,o;if(ot(a,Et)?o=a.l():o=!1,o){r=!0;break t}for(var s=a.h();s.i();){var l=s.j();if(!l.match(t,e)){r=!1;break t}}r=!0}n=r}else n=!1;return n};i(le).pc=function(){return this.at};i(le).qc=function(){return this.name};i(le).ed=function(){return this.expressions};i(le).rg=function(t,e,n){return new le(t,e,n)};i(le).copy=function(t,e,n,r){return t=t===u?this.at:t,e=e===u?this.name:e,n=n===u?this.expressions:n,this.rg(t,e,n)};i(le).toString=function(){return"PropertySegment(at="+this.at+", name="+this.name+", expressions="+z(this.expressions)+")"};i(le).hashCode=function(){var t=Ca(this.at);return t=D(t,31)+Ge(this.name)|0,t=D(t,31)+ft(this.expressions)|0,t};i(le).equals=function(t){if(this===t)return!0;if(!(t instanceof le))return!1;var e=t instanceof le?t:S();return!(this.at!==e.at||this.name!==e.name||!I(this.expressions,e.expressions))};function ne(t,e){e=e===u?null:e,this.segment=t,this.to=e;var n=this,r;t:{var a=this.segment.expressions,o;if(ot(a,Et)?o=a.l():o=!1,o){r=!1;break t}for(var s=a.h();s.i();){var l=s.j(),c,f,h;if(l instanceof ht?h=I(l.operator.value,ar()):h=!1,h?f=I(l.left.value,"parent"):f=!1,f?c=I(l.right.value,"null"):c=!1,c){r=!0;break t}}r=!1}n.isMatchRoot=r;var d=this,p=Ym(this.segment);d.fastQueryList=p==null?sa():p}i(ne).ne=function(){return this.segment};i(ne).oe=function(){return this.to};i(ne).stringify=function(){var t;return this.to!=null?t=this.to.stringify()+" ":t="",t+this.segment.stringify()};i(ne).matchContext=function(t,e,n){return this.segment.match(t,e)?this.to==null?t:this.to.matchContext(t,e,n):null};i(ne).sg=function(){return this.isMatchRoot};i(ne).tg=function(){return this.fastQueryList};i(ne).a=function(){return this.to==null?1:this.to.to.length+1|0};i(ne).pc=function(){return this.segment};i(ne).qc=function(){return this.to};i(ne).ug=function(t,e){return new ne(t,e)};i(ne).copy=function(t,e,n){return t=t===u?this.segment:t,e=e===u?this.to:e,this.ug(t,e)};i(ne).toString=function(){return"PropertyWrapper(segment="+this.segment.toString()+", to="+Gt(this.to)+")"};i(ne).hashCode=function(){var t=this.segment.hashCode();return t=D(t,31)+(this.to==null?0:this.to.hashCode())|0,t};i(ne).equals=function(t){if(this===t)return!0;if(!(t instanceof ne))return!1;var e=t instanceof ne?t:S();return!(!this.segment.equals(e.segment)||!I(this.to,e.to))};function xd(){Ii();var t=Sd;return hg(),t.r1()}var Sd;function $d(){Ii();var t=Ed;return dg(),t.r1()}var Ed;function hs(){}i(hs).parse=function(t){return qd(t)};i(hs).parseOrNull=function(t){var e;try{e=qd(t)}catch(r){var n;if(r instanceof xn)n=null;else throw r;e=n}return e};var Nd;function ug(){return Nd}function Ee(t,e){this.source=t,this.propertyWrapper=e;var n=this,r;t:{for(var a=this.propertyWrapper.length,o=0,s=this.propertyWrapper;s!=null;){if(s.segment.at){r=(a-1|0)-o|0;break t}var l=s.to;s=l==null?null:l.to,o=o+1|0}r=a-1|0}n.targetIndex=r,this.fastQueryList=this.propertyWrapper.fastQueryList,this.quickFindValue=this.fastQueryList.m()===1?Hi(this.fastQueryList):null,this.isMatchRoot=this.propertyWrapper.isMatchRoot;for(var c=this,f=this.propertyWrapper.to,h=qt();f!=null;)h.f(f),f=f.to.to;c.connectWrappers=bn(h);for(var d=this,p=this.propertyWrapper,g=qt();p!=null;){var m=p.segment;bm(g,m.binaryExpressions);var _=p.to;p=_==null?null:_.to}var v=np(g);d.binaryExpressions=bn(v);var y=this,C;t:{if(this.connectWrappers.length!==0){C=!0;break t}for(var b=this.binaryExpressions,x=0,N=b.length;x<N;){var T=b[x];x=x+1|0;var U;e:{for(var G=T.properties,Y=0,vt=G.length;Y<vt;){var Ot=G[Y];if(Y=Y+1|0,Ls(xd(),Ot)){U=!0;break e}}U=!1}if(U){C=!0;break t}var K;e:{for(var Zt=T.methods,W=0,jt=Zt.length;W<jt;){var Bt=Zt[W];if(W=W+1|0,Ls($d(),Bt)){K=!0;break e}}K=!1}if(K){C=!0;break t}}C=!1}y.useCache=C}i(Ee).vg=function(){return this.source};i(Ee).wg=function(){return this.propertyWrapper};i(Ee).stringify=function(){return this.propertyWrapper.stringify()};i(Ee).xg=function(){return this.targetIndex};i(Ee).matchContext=function(t,e,n){return this.propertyWrapper.matchContext(new te(t),e,n)};i(Ee).match=function(t,e,n){var r=this.matchContext(t,e,n),a;if(r==null)return null;a=r;var o=a;return o.get(this.targetIndex).current};i(Ee).tg=function(){return this.fastQueryList};i(Ee).yg=function(){return this.quickFindValue};i(Ee).sg=function(){return this.isMatchRoot};i(Ee).zg=function(){return this.connectWrappers};i(Ee).bd=function(){return this.binaryExpressions};i(Ee).ah=function(){return this.useCache};i(Ee).isSlow=function(t){if(t.quickFind&&this.quickFindValue==null&&!this.isMatchRoot||(!t.fastQuery||this.propertyWrapper.fastQueryList.l())&&!this.isMatchRoot)return!0;var e;t:{for(var n=this.connectWrappers,r=0,a=n.length;r<a;){var o=n[r];if(r=r+1|0,I(o.segment.operator,us())&&!(o.canFq&&t.fastQuery)){e=!0;break t}}e=!1}return!!e};i(Ee).checkType=function(t){try{for(var e=this.binaryExpressions,n=0,r=e.length;n<r;){var a=e[n];if(n=n+1|0,!a.operator.value.od(a.left,a.right))throw new on(a);var o=zf(a.left,t),s=zf(a.right,t);if(o!=null&&s!=null&&!I(o,s))throw new xe(a,o,s)}}catch(c){if(c instanceof Lt){var l=c;return l}else throw c}return null};function zf(t,e){Ii();var n;return t instanceof Te?n=null:t instanceof pe?n=Pa():t instanceof Jt?n=Ra():t instanceof gt?n=La():t instanceof Re?n=So(t,e,e).type:qn(),n}function Ff(t,e,n){Ii();for(var r=0,a=t.params,o=0,s=a.length;o<s;){var l=a[o];o=o+1|0;var c=r;r=c+1|0;var f=e.arguments.k(c);if(!(f instanceof Te))if(f instanceof pe){if(!I(l.type,Pa()))throw new se(e,f,Pa())}else if(f instanceof Jt){if(!I(l.type,Ra()))throw new se(e,f,Ra())}else if(f instanceof gt){if(!I(l.type,La()))throw new se(e,f,La())}else if(f instanceof Re){var h=So(f,l,n);if(!I(h.type,l.type))throw new se(e,f,h.type)}else qn()}return t.returnType}function So(t,e,n){Ii();var r;if(t instanceof St){var a=t.callee,o;if(a instanceof St)throw Dt("Unsupported nested call");if(a instanceof xt){for(var s=n.methods,l=qt(),c=0,f=s.length;c<f;){var h=s[c];c=c+1|0,h.name===t.callee.value&&l.f(h)}if(l.l())throw new Ve(t.callee);for(var d=qt(),p=l.h();p.i();){var g=p.j();g.params.length===t.arguments.m()&&d.f(g)}if(d.l())throw new rn(t);o=d}else if(a instanceof mt){for(var m=So(t.callee.object0,e,n).methods,_=qt(),v=0,y=m.length;v<y;){var C=m[v];v=v+1|0,C.name===t.callee.property&&_.f(C)}if(_.l())throw new Qe(t.callee);for(var b=qt(),x=_.h();x.i();){var N=x.j();N.params.length===t.arguments.m()&&b.f(N)}if(b.l())throw new an(t);o=b}else qn();var T=o;if(T.m()===1)return Ff(T.k(0),t,n),T.k(0).returnType;for(var U=0,G=T.h();G.i();){var Y=G.j(),vt=U;U=vt+1|0;var Ot=To(vt);try{return Ff(Y,t,n),Y.returnType}catch(Zr){if(Zr instanceof Lt){var K=Zr;if(Ot===(T.m()-1|0))throw K}else throw Zr}}var Zt=t.callee;if(Zt instanceof xt)throw new Ve(t.callee);var W=t.callee;throw W instanceof mt?new Qe(t.callee):Dt("Unsupported nested call")}else if(t instanceof xt){var jt=n.props,Bt;t:{for(var Ue=0,ce=jt.length;Ue<ce;){var We=jt[Ue];if(Ue=Ue+1|0,We.name===t.value){Bt=We;break t}}Bt=null}var mn=Bt,Rn=mn==null?null:mn.type,Ar;if(Rn==null)throw new en(t);Ar=Rn,r=Ar}else if(t instanceof mt){var R=So(t.object0,e,n).props,ut;t:{for(var _t=0,zt=R.length;_t<zt;){var he=R[_t];if(_t=_t+1|0,he.name===t.property){ut=he;break t}}ut=null}var Jn=ut,Yn=Jn==null?null:Jn.type,Xn;if(Yn==null)throw new nn(t);Xn=Yn,r=Xn}else qn();return r}function fg(){return Ii(),["index","parent","depth"]}function cg(){return Ii(),["getChild"]}function hg(){return Ua("useCacheProperties",0,_u,function(){return xd()},null)}function dg(){return Ua("useCacheMethods",0,_u,function(){return $d()},null)}var Df;function Ii(){Df||(Df=!0,Sd=Ia(fg),Ed=Ia(cg))}function ue(t,e,n,r){r=r===u?null:r;var a=tn(n,e);Mo("expected "+t+" in selector at position "+e+", but got "+Gt(a==null?null:new st(a)),this),H(this,ue),this.expectedValue=t,this.position=e,this.source=n,this.lh_1=r}i(ue).mh=function(){return this.expectedValue};i(ue).nh=function(){return this.position};i(ue).vg=function(){return this.source};i(ue).j7=function(){return this.lh_1};i(ue).pc=function(){return this.expectedValue};i(ue).qc=function(){return this.position};i(ue).ed=function(){return this.source};i(ue).fd=function(){return this.lh_1};i(ue).oh=function(t,e,n,r){return new ue(t,e,n,r)};i(ue).copy=function(t,e,n,r,a){return t=t===u?this.expectedValue:t,e=e===u?this.position:e,n=n===u?this.source:n,r=r===u?this.lh_1:r,this.oh(t,e,n,r)};i(ue).toString=function(){return"SyntaxError(expectedValue="+this.expectedValue+", position="+this.position+", source="+this.source+", cause="+Gt(this.lh_1)+")"};i(ue).hashCode=function(){var t=Ge(this.expectedValue);return t=D(t,31)+this.position|0,t=D(t,31)+Ge(this.source)|0,t=D(t,31)+(this.lh_1==null?0:ft(this.lh_1))|0,t};i(ue).equals=function(t){if(this===t)return!0;if(!(t instanceof ue))return!1;var e=t instanceof ue?t:S();return!(this.expectedValue!==e.expectedValue||this.position!==e.position||this.source!==e.source||!I(this.lh_1,e.lh_1))};function bt(t,e,n,r){n=n===u?"":n,r=r===u?null:r;var a;if(e>=P(t))a=!0;else{var o;P(n)>0?o=!Je(n,O(t,e)):o=!1,a=o}if(a)throw new ue(r==null?n:r,e,z(t))}function oe(t,e,n,r){throw n=n===u?"":n,r=r===u?null:r,new ue(n,e,z(t),r)}function vg(t){return function(e,n,r){return t(e,n,r)}}function pg(t){return function(e){return Gv(t(e))}}function Du(){}i(Du).multiplatformBuild=function(t,e,n,r,a){var o=vg(e);return new kt(t,o,n,pg(r),a)};var Id;function _g(){return Id}function mg(t,e,n){return null}function gg(t){return function(e){for(var n=t(e);n!=null;)n=t(Me(n));return n}}function hi(t,e,n){this.xh_1=t,this.yh_1=e,Pe.call(this,n)}i(hi).di=function(t,e){var n=this.ei(t,e);return n.k6_1=ct,n.l6_1=null,n.q6()};i(hi).h7=function(t,e){return this.di(t instanceof xr?t:S(),e)};i(hi).q6=function(){var t=this.k6_1;t:do try{var e=this.i6_1;switch(e){case 0:if(this.j6_1=4,this.ai_1=Vl(this.xh_1(this.yh_1)),this.ai_1.l())return ct;Zl(this.ai_1);var n=this;n.bi_1=qt(),this.i6_1=1;continue t;case 1:if(this.ci_1=this.ai_1.x2(Za(this.ai_1)),this.i6_1=2,t=this.zh_1.p9(this.ci_1,this),t===$r())return t;continue t;case 2:for(var r=this.xh_1(this.ci_1).h();r.i();){var a=r.j();this.bi_1.f(a)}if(!this.bi_1.l()){var o=this.bi_1.m()-1|0;if(0<=o)do{var s=o;o=o+-1|0,this.ai_1.f(this.bi_1.k(s))}while(0<=o);this.bi_1.n3()}if(!this.ai_1.l()){this.i6_1=1;continue t}this.i6_1=3;continue t;case 3:return ct;case 4:throw this.l6_1}}catch(c){var l=c;if(this.j6_1===4)throw l;this.i6_1=this.j6_1,this.l6_1=l}while(!0)};i(hi).ei=function(t,e){var n=new hi(this.xh_1,this.yh_1,e);return n.zh_1=t,n};function yg(t,e,n){var r=new hi(t,e,n),a=function(o,s){return r.di(o,s)};return a.$arity=1,a}function wg(t){return function(e){return eo(yg(t,e,null))}}function bg(t){return function(e,n){return t.checkOffset(e)}}function kg(t){return function(e,n){var r=t(e),a;n.maxOffset!=null?a=wc(r,Me(n.maxOffset)+1|0):a=r;var o=a;return Ql(o,bg(n))}}function di(t,e,n,r){this.ni_1=t,this.oi_1=e,this.pi_1=n,Pe.call(this,r)}i(di).di=function(t,e){var n=this.ei(t,e);return n.k6_1=ct,n.l6_1=null,n.q6()};i(di).h7=function(t,e){return this.di(t instanceof xr?t:S(),e)};i(di).q6=function(){var t=this.k6_1;t:do try{var e=this.i6_1;switch(e){case 0:this.j6_1=6;var n=this,r=this.ni_1(this.oi_1),a;if(r==null)return ct;a=r,n.ri_1=a,this.si_1=0,this.i6_1=1;continue t;case 1:if(this.ri_1==null){this.i6_1=5;continue t}if(this.ti_1=this.ri_1,this.ti_1==null){this.ui_1=null,this.i6_1=4;continue t}else{var o=this;o.vi_1=this.ti_1;var s=this;if(s.wi_1=this.vi_1,this.pi_1.checkOffset(this.si_1)){if(this.i6_1=2,t=this.qi_1.p9(this.wi_1,this),t===$r())return t;continue t}else{this.i6_1=3;continue t}}case 2:this.i6_1=3;continue t;case 3:this.si_1=this.si_1+1|0;var l=this.pi_1.maxOffset;if(l!=null){if(this.si_1>l)return ct}var c=this;this.ri_1=this.ni_1(this.wi_1),c.ui_1=ct,this.i6_1=4;continue t;case 4:this.i6_1=1;continue t;case 5:return ct;case 6:throw this.l6_1}}catch(h){var f=h;if(this.j6_1===6)throw f;this.i6_1=this.j6_1,this.l6_1=f}while(!0)};i(di).ei=function(t,e){var n=new di(this.ni_1,this.oi_1,this.pi_1,e);return n.qi_1=t,n};function Cg(t,e,n,r){var a=new di(t,e,n,r),o=function(s,l){return a.di(s,l)};return o.$arity=1,o}function xg(t){return function(e,n){return eo(Cg(t,e,n,null))}}function Sg(t){return function(e){return!I(e,t)}}function $g(t){return function(e,n){return t.checkOffset(e)}}function Eg(t,e){return function(n,r){var a=t(n),o;if(a!=null){var s=e(a),l=Vl(lp(s,Sg(n)));Zl(l);var c=rp(l);o=Ql(c,$g(r))}else o=$i();return o}}function Ng(t){return function(e){return!I(e,t)}}function Ig(t){return function(e,n){return t.checkOffset(e)}}function qg(t,e){return function(n,r){var a=t(n),o;if(a!=null){var s=e(a),l=up(fp(s,Ng(n)),1),c;r.maxOffset!=null?c=wc(l,Me(r.maxOffset)+1|0):c=l;var f=c;o=Ql(f,Ig(r))}else o=$i();return o}}function vi(t,e,n,r){this.fj_1=t,this.gj_1=e,this.hj_1=n,Pe.call(this,r)}i(vi).di=function(t,e){var n=this.ei(t,e);return n.k6_1=ct,n.l6_1=null,n.q6()};i(vi).h7=function(t,e){return this.di(t instanceof xr?t:S(),e)};i(vi).q6=function(){var t=this.k6_1;t:do try{var e=this.i6_1;switch(e){case 0:if(this.j6_1=5,this.jj_1=Vl(this.fj_1(this.gj_1)),this.jj_1.l())return ct;Zl(this.jj_1);var n=this;n.kj_1=qt(),this.lj_1=0,this.i6_1=1;continue t;case 1:if(this.mj_1=this.jj_1.x2(Za(this.jj_1)),this.hj_1.checkOffset(this.lj_1)){if(this.i6_1=2,t=this.ij_1.p9(this.mj_1,this),t===$r())return t;continue t}else{this.i6_1=3;continue t}case 2:this.i6_1=3;continue t;case 3:this.lj_1=this.lj_1+1|0;var r=this.hj_1.maxOffset;if(r!=null){if(this.lj_1>r)return ct}for(var a=this.fj_1(this.mj_1).h();a.i();){var o=a.j();this.kj_1.f(o)}if(!this.kj_1.l()){var s=this.kj_1.m()-1|0;if(0<=s)do{var l=s;s=s+-1|0,this.jj_1.f(this.kj_1.k(l))}while(0<=s);this.kj_1.n3()}if(!this.jj_1.l()){this.i6_1=1;continue t}this.i6_1=4;continue t;case 4:return ct;case 5:throw this.l6_1}}catch(f){var c=f;if(this.j6_1===5)throw c;this.i6_1=this.j6_1,this.l6_1=c}while(!0)};i(vi).ei=function(t,e){var n=new vi(this.fj_1,this.gj_1,this.hj_1,e);return n.ij_1=t,n};function Ag(t,e,n,r){var a=new vi(t,e,n,r),o=function(s,l){return a.di(s,l)};return o.$arity=1,o}function Tg(t){return function(e,n){return eo(Ag(t,e,n,null))}}function Mg(t,e){return $i()}function pi(t,e,n,r,a){this.vj_1=t,this.wj_1=e,this.xj_1=n,this.yj_1=r,Pe.call(this,a)}i(pi).di=function(t,e){var n=this.ei(t,e);return n.k6_1=ct,n.l6_1=null,n.q6()};i(pi).h7=function(t,e){return this.di(t instanceof xr?t:S(),e)};i(pi).q6=function(){var t=this.k6_1;t:do try{var e=this.i6_1;switch(e){case 0:if(this.j6_1=7,this.ak_1=this.vj_1.match(this.wj_1,this.xj_1,this.yj_1),this.ak_1==null){this.bk_1=null,this.i6_1=2;continue t}else{var n=this;n.ck_1=this.ak_1;var r=this;if(r.dk_1=this.ck_1,this.i6_1=1,t=this.zj_1.p9(this.dk_1,this),t===$r())return t;continue t}case 1:var a=this;a.bk_1=ct,this.i6_1=2;continue t;case 2:var o=this;o.ek_1=this.xj_1.getDescendants(this.wj_1),this.fk_1=this.ek_1.h(),this.i6_1=3;continue t;case 3:if(!this.fk_1.i()){this.i6_1=6;continue t}this.gk_1=this.fk_1.j();var s=this;if(s.hk_1=this.gk_1,this.ik_1=this.vj_1.match(this.hk_1,this.xj_1,this.yj_1),this.ik_1==null){this.jk_1=null,this.i6_1=5;continue t}else{var l=this;l.kk_1=this.ik_1;var c=this;if(c.lk_1=this.kk_1,this.i6_1=4,t=this.zj_1.p9(this.lk_1,this),t===$r())return t;continue t}case 4:var f=this;f.jk_1=ct,this.i6_1=5;continue t;case 5:this.i6_1=3;continue t;case 6:return ct;case 7:throw this.l6_1}}catch(d){var h=d;if(this.j6_1===7)throw h;this.i6_1=this.j6_1,this.l6_1=h}while(!0)};i(pi).ei=function(t,e){var n=new pi(this.vj_1,this.wj_1,this.xj_1,this.yj_1,e);return n.zj_1=t,n};function Pg(t,e,n,r,a){var o=new pi(t,e,n,r,a),s=function(l,c){return o.di(l,c)};return s.$arity=1,s}function _i(t,e,n,r,a){this.uk_1=t,this.vk_1=e,this.wk_1=n,this.xk_1=r,Pe.call(this,a)}i(_i).ll=function(t,e){var n=this.ml(t,e);return n.k6_1=ct,n.l6_1=null,n.q6()};i(_i).h7=function(t,e){return this.ll(t instanceof xr?t:S(),e)};i(_i).q6=function(){var t=this.k6_1;t:do try{var e=this.i6_1;switch(e){case 0:if(this.j6_1=7,this.zk_1=this.uk_1.matchContext(this.vk_1,this.wk_1,this.xk_1),this.zk_1==null){this.al_1=null,this.i6_1=2;continue t}else{var n=this;n.bl_1=this.zk_1;var r=this;if(r.cl_1=this.bl_1,this.i6_1=1,t=this.yk_1.p9(this.cl_1,this),t===$r())return t;continue t}case 1:var a=this;a.al_1=ct,this.i6_1=2;continue t;case 2:var o=this;o.dl_1=this.wk_1.getDescendants(this.vk_1),this.el_1=this.dl_1.h(),this.i6_1=3;continue t;case 3:if(!this.el_1.i()){this.i6_1=6;continue t}this.fl_1=this.el_1.j();var s=this;if(s.gl_1=this.fl_1,this.hl_1=this.uk_1.matchContext(this.gl_1,this.wk_1,this.xk_1),this.hl_1==null){this.il_1=null,this.i6_1=5;continue t}else{var l=this;l.jl_1=this.hl_1;var c=this;if(c.kl_1=this.jl_1,this.i6_1=4,t=this.yk_1.p9(this.kl_1,this),t===$r())return t;continue t}case 4:var f=this;f.il_1=ct,this.i6_1=5;continue t;case 5:this.i6_1=3;continue t;case 6:return ct;case 7:throw this.l6_1}}catch(d){var h=d;if(this.j6_1===7)throw h;this.i6_1=this.j6_1,this.l6_1=h}while(!0)};i(_i).ml=function(t,e){var n=new _i(this.uk_1,this.vk_1,this.wk_1,this.xk_1,e);return n.yk_1=t,n};function Rg(t,e,n,r,a){var o=new _i(t,e,n,r,a),s=function(l,c){return o.ll(l,c)};return s.$arity=1,s}function kt(t,e,n,r,a,o,s,l,c,f,h,d,p){var g;e===u?g=mg:g=e,e=g;var m;o===u?m=gg(a):m=o,o=m;var _;s===u?_=wg(r):_=s,s=_;var v;l===u?v=kg(r):v=l,l=v;var y;c===u?y=xg(a):y=c,c=y;var C;f===u?C=Eg(a,r):C=f,f=C;var b;h===u?b=qg(a,r):b=h,h=b;var x;d===u?x=Tg(r):x=d,d=x;var N;p===u?N=Mg:N=p,p=N,this.getAttr=t,this.getInvoke=e,this.getName=n,this.getChildren=r,this.getParent=a,this.getRoot=o,this.getDescendants=s,this.traverseChildren=l,this.traverseAncestors=c,this.traverseBeforeBrothers=f,this.traverseAfterBrothers=h,this.traverseDescendants=d,this.traverseFastQueryDescendants=p}i(kt).nl=function(){return this.getAttr};i(kt).ol=function(){return this.getInvoke};i(kt).pl=function(){return this.getName};i(kt).ql=function(){return this.getChildren};i(kt).rl=function(){return this.getParent};i(kt).sl=function(){return this.getRoot};i(kt).tl=function(){return this.getDescendants};i(kt).ul=function(){return this.traverseChildren};i(kt).vl=function(){return this.traverseAncestors};i(kt).wl=function(){return this.traverseBeforeBrothers};i(kt).xl=function(){return this.traverseAfterBrothers};i(kt).yl=function(){return this.traverseDescendants};i(kt).zl=function(){return this.traverseFastQueryDescendants};i(kt).am=function(t,e,n){return eo(Pg(e,t,this,n,null))};i(kt).querySelectorAll$default=function(t,e,n,r){return n=n===u?fa():n,r===u?this.am(t,e,n):r.am.call(this,t,e,n)};i(kt).bm=function(t,e,n){return bc(this.am(t,e,n))};i(kt).querySelector=function(t,e,n,r){return n=n===u?fa():n,this.bm(t,e,n)};i(kt).cm=function(t,e,n){return eo(Rg(e,t,this,n,null))};i(kt).querySelectorAllContext$default=function(t,e,n,r){return n=n===u?fa():n,r===u?this.cm(t,e,n):r.cm.call(this,t,e,n)};i(kt).dm=function(t,e,n){return bc(this.cm(t,e,n))};i(kt).querySelectorContext=function(t,e,n,r){return n=n===u?fa():n,this.dm(t,e,n)};i(kt).em=function(t,e,n){var r=kc(this.am(t,e,n)),a=ot(r,Vn)?r:S(),o=bn(a);return Zi(o)?o:S()};i(kt).querySelectorAllArray=function(t,e,n,r){return n=n===u?fa():n,this.em(t,e,n)};i(kt).fm=function(t,e,n){var r=kc(this.cm(t,e,n));return bn(r)};i(kt).querySelectorAllContextArray=function(t,e,n,r){return n=n===u?fa():n,this.fm(t,e,n)};function Ae(t){Ni.call(this),this.numbers=t;var e=this,n=_c(this.numbers);e.gm_1=(n==null?1:n)-1|0,this.hm_1=ip(this.numbers);for(var r=this,a=this.numbers,o=Vi(Xs(a,10)),s=a.h();s.i();){var l=s.j(),c=l-1|0;o.f(c)}r.im_1=o}i(Ae).jm=function(){return this.numbers};i(Ae).yd=function(){return this.gm_1};i(Ae).zd=function(){return this.hm_1};i(Ae).checkOffset=function(t){return vm(this.im_1,t)>=0};i(Ae).getOffset=function(t){return this.numbers.k(t)};i(Ae).stringify=function(){if(this.numbers.m()===1){var t;return Hi(this.numbers)===1?t="":t=Hi(this.numbers).toString(),t}return"("+In(this.numbers,",")+")"};i(Ae).pc=function(){return this.numbers};i(Ae).km=function(t){return new Ae(t)};i(Ae).copy=function(t,e){return t=t===u?this.numbers:t,this.km(t)};i(Ae).toString=function(){return"TupleExpression(numbers="+z(this.numbers)+")"};i(Ae).hashCode=function(){return ft(this.numbers)};i(Ae).equals=function(t){if(this===t)return!0;if(!(t instanceof Ae))return!1;var e=t instanceof Ae?t:S();return!!I(this.numbers,e.numbers)};function si(){Il=this,ln.call(this,"boolean")}i(si).toString=function(){return"BooleanType"};i(si).hashCode=function(){return 1452179029};i(si).equals=function(t){return this===t?!0:t instanceof si?(t instanceof si||S(),!0):!1};var Il;function Pa(){return Il==null&&new si,Il}function li(){ql=this,ln.call(this,"int")}i(li).toString=function(){return"IntType"};i(li).hashCode=function(){return-1601449956};i(li).equals=function(t){return this===t?!0:t instanceof li?(t instanceof li||S(),!0):!1};var ql;function Ra(){return ql==null&&new li,ql}function ui(){Al=this,ln.call(this,"string")}i(ui).toString=function(){return"StringType"};i(ui).hashCode=function(){return 1719560632};i(ui).equals=function(t){return this===t?!0:t instanceof ui?(t instanceof ui||S(),!0):!1};var Al;function La(){return Al==null&&new ui,Al}function De(t){ln.call(this,"object"),this.name=t}i(De).pg=function(){return this.name};i(De).pc=function(){return this.name};i(De).sf=function(t){return new De(t)};i(De).copy=function(t,e){return t=t===u?this.name:t,this.sf(t)};i(De).toString=function(){return"ObjectType(name="+this.name+")"};i(De).hashCode=function(){return Ge(this.name)};i(De).equals=function(t){if(this===t)return!0;if(!(t instanceof De))return!1;var e=t instanceof De?t:S();return this.name===e.name};function ln(t){this.key=t}i(ln).q1=function(){return this.key};function Lg(t){return t.stringify()}function J(t,e,n){var r;n===u?r=[]:r=n,n=r,this.name=t,this.returnType=e,this.params=n}i(J).pg=function(){return this.name};i(J).lm=function(){return this.returnType};i(J).mm=function(){return this.params};i(J).stringify=function(){return this.name+"("+vc(this.params,", ",u,u,u,u,Lg)+"): "+this.returnType.stringify()};i(J).equals=function(t){return this===t?!0:!(t==null||!Co(this).equals(Co(t))||(t instanceof J||S(),this.name!==t.name)||!this.returnType.equals(t.returnType)||!Ks(this.params,t.params))};i(J).hashCode=function(){var t=Ge(this.name);return t=D(31,t)+this.returnType.hashCode()|0,t=D(31,t)+Us(this.params)|0,t};i(J).pc=function(){return this.name};i(J).qc=function(){return this.returnType};i(J).ed=function(){return this.params};i(J).nm=function(t,e,n){return new J(t,e,n)};i(J).copy=function(t,e,n,r){return t=t===u?this.name:t,e=e===u?this.returnType:e,n=n===u?this.params:n,this.nm(t,e,n)};i(J).toString=function(){return"MethodInfo(name="+this.name+", returnType="+this.returnType.toString()+", params="+z(this.params)+")"};function rt(t,e){this.name=t,this.type=e}i(rt).pg=function(){return this.name};i(rt).hf=function(){return this.type};i(rt).pc=function(){return this.name};i(rt).qc=function(){return this.type};i(rt).om=function(t,e){return new rt(t,e)};i(rt).copy=function(t,e,n){return t=t===u?this.name:t,e=e===u?this.type:e,this.om(t,e)};i(rt).toString=function(){return"PropInfo(name="+this.name+", type="+this.type.toString()+")"};i(rt).hashCode=function(){var t=Ge(this.name);return t=D(t,31)+this.type.hashCode()|0,t};i(rt).equals=function(t){if(this===t)return!0;if(!(t instanceof rt))return!1;var e=t instanceof rt?t:S();return!(this.name!==e.name||!this.type.equals(e.type))};function Ht(t,e,n){var r;e===u?r=[]:r=e,e=r;var a;n===u?a=[]:a=n,n=a,this.type=t,this.props=e,this.methods=n}i(Ht).hf=function(){return this.type};i(Ht).pm=function(t){this.props=t};i(Ht).qm=function(){return this.props};i(Ht).rm=function(t){this.methods=t};i(Ht).dd=function(){return this.methods};i(Ht).stringify=function(){var t,e=this.type;return e instanceof De?t=this.type.name:t=this.type.key,t};i(Ht).equals=function(t){return this===t?!0:!(t==null||!Co(this).equals(Co(t))||(t instanceof Ht||S(),!I(this.type,t.type))||!Ks(this.props,t.props)||!Ks(this.methods,t.methods))};i(Ht).hashCode=function(){var t=ft(this.type);return t=D(31,t)+Us(this.props)|0,t=D(31,t)+Us(this.methods)|0,t};i(Ht).pc=function(){return this.type};i(Ht).qc=function(){return this.props};i(Ht).ed=function(){return this.methods};i(Ht).sm=function(t,e,n){return new Ht(t,e,n)};i(Ht).copy=function(t,e,n,r){return t=t===u?this.type:t,e=e===u?this.props:e,n=n===u?this.methods:n,this.sm(t,e,n)};i(Ht).toString=function(){return"TypeInfo(type="+z(this.type)+", props="+z(this.props)+", methods="+z(this.methods)+")"};function Og(t){return t.stringify()}function jg(t){return!1}function Re(t){re.call(this,t,"var"),this.vm_1=t}i(Re).r1=function(){return this.vm_1};function xt(t,e){Re.call(this,e),this.zm_1=t,this.name=e,this.an_1=this.zm_1+this.value.length|0,this.isEqual=this.name==="equal",this.isNotEqual=this.name==="notEqual"}i(xt).tc=function(){return this.zm_1};i(xt).pg=function(){return this.name};i(xt).uc=function(){return this.an_1};i(xt).nd=function(t,e){return e.getAttr(t,this.value)};i(xt).cd=function(){return[this.value]};i(xt).dd=function(){return[]};i(xt).bn=function(){return this.isEqual};i(xt).cn=function(){return this.isNotEqual};i(xt).pc=function(){return this.zm_1};i(xt).qc=function(){return this.name};i(xt).dn=function(t,e){return new xt(t,e)};i(xt).copy=function(t,e,n){return t=t===u?this.zm_1:t,e=e===u?this.name:e,this.dn(t,e)};i(xt).toString=function(){return"Identifier(start="+this.zm_1+", name="+this.name+")"};i(xt).hashCode=function(){var t=this.zm_1;return t=D(t,31)+Ge(this.name)|0,t};i(xt).equals=function(t){if(this===t)return!0;if(!(t instanceof xt))return!1;var e=t instanceof xt?t:S();return!(this.zm_1!==e.zm_1||this.name!==e.name)};function mt(t,e,n,r){Re.call(this,n.stringify()+"."+r),this.jh_1=t,this.kh_1=e,this.object0=n,this.property=r,this.isPropertyOr=this.property==="or",this.isPropertyAnd=this.property==="and",this.isPropertyIfElse=this.property==="ifElse"}i(mt).tc=function(){return this.jh_1};i(mt).uc=function(){return this.kh_1};i(mt).en=function(){return this.object0};i(mt).fn=function(){return this.property};i(mt).nd=function(t,e){var n=this.object0.nd(t,e);return n==null?null:e.getAttr(n,this.property)};i(mt).cd=function(){return rr([this.object0.properties,[this.property]])};i(mt).dd=function(){return this.object0.methods};i(mt).gn=function(){return this.isPropertyOr};i(mt).hn=function(){return this.isPropertyAnd};i(mt).in=function(){return this.isPropertyIfElse};i(mt).pc=function(){return this.jh_1};i(mt).qc=function(){return this.kh_1};i(mt).ed=function(){return this.object0};i(mt).fd=function(){return this.property};i(mt).jn=function(t,e,n,r){return new mt(t,e,n,r)};i(mt).copy=function(t,e,n,r,a){return t=t===u?this.jh_1:t,e=e===u?this.kh_1:e,n=n===u?this.object0:n,r=r===u?this.property:r,this.jn(t,e,n,r)};i(mt).toString=function(){return"MemberExpression(start="+this.jh_1+", end="+this.kh_1+", object0="+z(this.object0)+", property="+this.property+")"};i(mt).hashCode=function(){var t=this.jh_1;return t=D(t,31)+this.kh_1|0,t=D(t,31)+ft(this.object0)|0,t=D(t,31)+Ge(this.property)|0,t};i(mt).equals=function(t){if(this===t)return!0;if(!(t instanceof mt))return!1;var e=t instanceof mt?t:S();return!(this.jh_1!==e.jh_1||this.kh_1!==e.kh_1||!I(this.object0,e.object0)||this.property!==e.property)};function St(t,e,n,r){var a=n.stringify();Re.call(this,a+"("+In(r,",",u,u,u,u,Og)+")"),this.eh_1=t,this.fh_1=e,this.callee=n,this.arguments=r}i(St).tc=function(){return this.eh_1};i(St).uc=function(){return this.fh_1};i(St).kn=function(){return this.callee};i(St).ln=function(){return this.arguments};i(St).nd=function(t,e){var n=this.callee,r;if(n instanceof St)r=null;else if(n instanceof xt){var a;if(this.callee.isEqual)a=ar().compare(this.arguments.k(0).nd(t,e),this.arguments.k(1).nd(t,e));else if(this.callee.isNotEqual)a=!ar().compare(this.arguments.k(0).nd(t,e),this.arguments.k(1).nd(t,e));else{for(var o=this.arguments,s=Vi(Xs(o,10)),l=o.h();l.i();){var c=l.j(),f=c.nd(t,e);if(f==null)return null;s.f(f)}a=e.getInvoke(t,this.callee.name,s)}r=a}else if(n instanceof mt){var h=this.callee.object0.nd(t,e);if(h==null)return null;var d=h,p;if(this.callee.isPropertyOr){var g;if(typeof d=="boolean"?d:S())g=!0;else{var m=this.arguments.k(0).nd(t,e);if(m==null)return null;var _=m;g=typeof _=="boolean"?_:S()}p=g}else if(this.callee.isPropertyAnd){var v;if(typeof d=="boolean"?d:S()){var y=this.arguments.k(0).nd(t,e);if(y==null)return null;var C=y;v=typeof C=="boolean"?C:S()}else v=!1;p=v}else if(this.callee.isPropertyIfElse){var b;(typeof d=="boolean"?d:S())?b=this.arguments.k(0).nd(t,e):b=this.arguments.k(1).nd(t,e),p=b}else{for(var x=this.arguments,N=Vi(Xs(x,10)),T=x.h();T.i();){var U=T.j(),G=U.nd(t,e);if(G==null)return null;N.f(G)}p=e.getInvoke(d,this.callee.property,N)}r=p}else qn();return r};i(St).cd=function(){for(var t=Bl(this.callee.properties),e=this.arguments,n=qt(),r=e.h();r.i();){var a=r.j(),o=Dl(a.properties);Do(n,o)}var s=mc(t,n);return bn(s)};i(St).dd=function(){var t=this.callee,e;t instanceof St?e=this.callee.methods:t instanceof xt?e=[this.callee.name]:t instanceof mt?e=rr([this.callee.object0.methods,[this.callee.property]]):qn();for(var n=Bl(e),r=this.arguments,a=qt(),o=r.h();o.i();){var s=o.j(),l=Dl(s.methods);Do(a,l)}var c=mc(n,a);return bn(c)};i(St).pc=function(){return this.eh_1};i(St).qc=function(){return this.fh_1};i(St).ed=function(){return this.callee};i(St).fd=function(){return this.arguments};i(St).mn=function(t,e,n,r){return new St(t,e,n,r)};i(St).copy=function(t,e,n,r,a){return t=t===u?this.eh_1:t,e=e===u?this.fh_1:e,n=n===u?this.callee:n,r=r===u?this.arguments:r,this.mn(t,e,n,r)};i(St).toString=function(){return"CallExpression(start="+this.eh_1+", end="+this.fh_1+", callee="+z(this.callee)+", arguments="+z(this.arguments)+")"};i(St).hashCode=function(){var t=this.eh_1;return t=D(t,31)+this.fh_1|0,t=D(t,31)+ft(this.callee)|0,t=D(t,31)+ft(this.arguments)|0,t};i(St).equals=function(t){if(this===t)return!0;if(!(t instanceof St))return!1;var e=t instanceof St?t:S();return!(this.eh_1!==e.eh_1||this.fh_1!==e.fh_1||!I(this.callee,e.callee)||!I(this.arguments,e.arguments))};function Ye(t,e){re.call(this,t,e),this.pn_1=t,this.qn_1=e}i(Ye).r1=function(){return this.pn_1};i(Ye).hf=function(){return this.qn_1};i(Ye).nd=function(t,e){return this.value};i(Ye).cd=function(){return[]};i(Ye).dd=function(){return[]};function Te(t){Ye.call(this,null,"null"),this.vn_1=t,this.wn_1=this.vn_1+4|0}i(Te).tc=function(){return this.vn_1};i(Te).uc=function(){return this.wn_1};i(Te).pc=function(){return this.vn_1};i(Te).xn=function(t){return new Te(t)};i(Te).copy=function(t,e){return t=t===u?this.vn_1:t,this.xn(t)};i(Te).toString=function(){return"NullLiteral(start="+this.vn_1+")"};i(Te).hashCode=function(){return this.vn_1};i(Te).equals=function(t){if(this===t)return!0;if(!(t instanceof Te))return!1;var e=t instanceof Te?t:S();return this.vn_1===e.vn_1};function pe(t,e){Ye.call(this,e,"boolean"),this.co_1=t,this.do_1=e,this.eo_1=this.co_1+(this.do_1?4:5)|0}i(pe).tc=function(){return this.co_1};i(pe).r1=function(){return this.do_1};i(pe).uc=function(){return this.eo_1};i(pe).pc=function(){return this.co_1};i(pe).qc=function(){return this.do_1};i(pe).fo=function(t,e){return new pe(t,e)};i(pe).copy=function(t,e,n){return t=t===u?this.co_1:t,e=e===u?this.do_1:e,this.fo(t,e)};i(pe).toString=function(){return"BooleanLiteral(start="+this.co_1+", value="+this.do_1+")"};i(pe).hashCode=function(){var t=this.co_1;return t=D(t,31)+Ca(this.do_1)|0,t};i(pe).equals=function(t){if(this===t)return!0;if(!(t instanceof pe))return!1;var e=t instanceof pe?t:S();return!(this.co_1!==e.co_1||this.do_1!==e.do_1)};function Jt(t,e,n){Ye.call(this,n,"int"),this.ko_1=t,this.lo_1=e,this.mo_1=n}i(Jt).tc=function(){return this.ko_1};i(Jt).uc=function(){return this.lo_1};i(Jt).r1=function(){return this.mo_1};i(Jt).pc=function(){return this.ko_1};i(Jt).qc=function(){return this.lo_1};i(Jt).ed=function(){return this.mo_1};i(Jt).no=function(t,e,n){return new Jt(t,e,n)};i(Jt).copy=function(t,e,n,r){return t=t===u?this.ko_1:t,e=e===u?this.lo_1:e,n=n===u?this.mo_1:n,this.no(t,e,n)};i(Jt).toString=function(){return"IntLiteral(start="+this.ko_1+", end="+this.lo_1+", value="+this.mo_1+")"};i(Jt).hashCode=function(){var t=this.ko_1;return t=D(t,31)+this.lo_1|0,t=D(t,31)+this.mo_1|0,t};i(Jt).equals=function(t){if(this===t)return!0;if(!(t instanceof Jt))return!1;var e=t instanceof Jt?t:S();return!(this.ko_1!==e.ko_1||this.lo_1!==e.lo_1||this.mo_1!==e.mo_1)};function gt(t,e,n,r){r=r===u?null:r,Ye.call(this,n,"string"),this.td_1=t,this.ud_1=e,this.vd_1=n,this.wd_1=r;var a=this,o=this.wd_1,s;if(o==null)s=null;else{var l=vy(this.vd_1);s=l==null?o:l}var c=s,f;c==null?f=jg:f=c,a.xd_1=f}i(gt).tc=function(){return this.td_1};i(gt).uc=function(){return this.ud_1};i(gt).r1=function(){return this.vd_1};i(gt).oo=function(){return this.wd_1};i(gt).stringify=function(){return dy(this.vd_1)};i(gt).po=function(){return this.xd_1};i(gt).pc=function(){return this.td_1};i(gt).qc=function(){return this.ud_1};i(gt).ed=function(){return this.vd_1};i(gt).qo=function(){return this.wd_1};i(gt).ro=function(t,e,n,r){return new gt(t,e,n,r)};i(gt).copy=function(t,e,n,r,a){return t=t===u?this.td_1:t,e=e===u?this.ud_1:e,n=n===u?this.vd_1:n,r=r===u?this.wd_1:r,this.ro(t,e,n,r)};i(gt).toString=function(){return"StringLiteral(start="+this.td_1+", end="+this.ud_1+", value="+this.vd_1+", matches="+Gt(this.wd_1)+")"};i(gt).hashCode=function(){var t=this.td_1;return t=D(t,31)+this.ud_1|0,t=D(t,31)+Ge(this.vd_1)|0,t=D(t,31)+(this.wd_1==null?0:ft(this.wd_1))|0,t};i(gt).equals=function(t){if(this===t)return!0;if(!(t instanceof gt))return!1;var e=t instanceof gt?t:S();return!(this.td_1!==e.td_1||this.ud_1!==e.ud_1||this.vd_1!==e.vd_1||!I(this.wd_1,e.wd_1))};function re(t,e){this.ld_1=t,this.md_1=e}i(re).r1=function(){return this.ld_1};i(re).hf=function(){return this.md_1};i(re).stringify=function(){return Gt(this.value)};function Wt(t,e){t=t===u?"":t,this.so_1=t,this.uo_1=e}i(Wt).vo=function(t,e){return this.uo_1(t,e,this.so_1)};i(Wt).toString=function(){return"Parser(prefix="+this.so_1+", temp="+z(this.uo_1)+")"};i(Wt).hashCode=function(){var t=Ge(this.so_1);return t=D(t,31)+ft(this.uo_1)|0,t};i(Wt).equals=function(t){if(this===t)return!0;if(!(t instanceof Wt))return!1;var e=t instanceof Wt?t:S();return!(this.so_1!==e.so_1||!I(this.uo_1,e.uo_1))};function Pt(t,e){e=e===u?0:e,this.wo_1=t,this.xo_1=e}i(Pt).toString=function(){return"ParserResult(data="+Gt(this.wo_1)+", length="+this.xo_1+")"};i(Pt).hashCode=function(){var t=this.wo_1==null?0:ft(this.wo_1);return t=D(t,31)+this.xo_1|0,t};i(Pt).equals=function(t){if(this===t)return!0;if(!(t instanceof Pt))return!1;var e=t instanceof Pt?t:S();return!(!I(this.wo_1,e.wo_1)||this.xo_1!==e.xo_1)};function zg(t,e){var n=0,r=tn(e,n);if(!I(r==null?null:new st(r),new st(40)))return!1;n=n+1|0,n=n+t.yo_1.vo(e,n).xo_1|0;var a=ri(48,57),o=tn(e,n),s,l=o;if((l==null?null:new st(l))!=null?s=a.xb(o):s=!1,!s)return!1;n=n+t.cp_1.vo(e,n).xo_1|0,n=n+t.yo_1.vo(e,n).xo_1|0;var c=tn(e,n);return I(c==null?null:new st(c),new st(44))}function Fg(t,e,n){var r=as().allSubClasses,a;t:{for(var o=0,s=r.length;o<s;){var l=r[o];if(o=o+1|0,ns(e,l.key,n)){a=l;break t}}a=null}var c=a,f;c==null?oe(e,n,"CompareOperator"):f=c;var h=f;return new Qt(n,n+h.key.length|0,h)}function Tl(t,e,n){var r=e;if((r==null?null:new st(r))==null)return!1;var a,o,s,l=e;return I(l==null?null:new st(l),new st(95))?s=!0:s=ri(97,122).xb(e),s?o=!0:o=ri(65,90).xb(e),o?a=!0:a=!n&&ri(48,57).xb(e),a}function Bf(t,e,n,r){return n=n===u?!1:n,Tl(t,e,n)}function qs(t,e,n,r){if(ns(e,r,n)){var a=tn(e,n+r.length|0),o,s=a;if((s==null?null:new st(s))==null)return!0;o=a;var l=o;return!(l===95||97<=l&&l<=122||65<=l&&l<=90||48<=l&&l<=57)}return!1}function Kf(t,e,n){var r="tfn-"+t.ip_1.so_1+t.cp_1.so_1+t.jp_1;bt(e,n,r);var a=t.qp(e,n);return a}function Dg(t,e,n){var r=n,a=Kf(t,e,r);r=r+a.a()|0,r=r+t.yo_1.vo(e,r).xo_1|0;var o=Fg(t,e,r);r=r+o.a()|0,r=r+t.yo_1.vo(e,r).xo_1|0;var s=Kf(t,e,r),l,c;if(I(o.value,os())||I(o.value,Ou())?c=s instanceof gt:c=!1,c){var f;try{f=wy(s.vd_1)}catch(m){var h;if(m instanceof xn){var d=m;oe(e,r,"valid primitive string regex",d)}else throw m;f=h}var p=f;l=s.copy(u,u,u,p)}else l=s;var g=l;return r=r+g.a()|0,new ht(n,r,a,o,g)}function Bg(t,e,n){var r=n;r=r+t.yo_1.vo(e,r).xo_1|0;var a=ju().allSubClasses,o;t:{for(var s=a.h();s.i();){var l=s.j();if(ns(e,l.key,n)){o=l;break t}}o=null}var c=o,f;c==null?oe(e,n,"LogicalOperator"):f=c;var h=f;return new Qt(r,r+h.key.length|0,h)}function Kg(t,e,n){var r=n;r=r+t.yo_1.vo(e,r).xo_1|0,bt(e,r,"!");var a=r;r=r+1|0,bt(e,r,"(");var o=t.rp(e,r,!0);return r=r+o.a()|0,new ee(a,o)}function Ug(t,e,n){for(var r=e,a="";r<P(t)&&Je(n,O(t,r));)a=a+Vt(O(t,r)),r=r+1|0;return new Pt(a,r-e|0)}function Wg(t,e,n){return bt(t,e,n,"whitespace"),at().yo_1.vo(t,e)}function Hg(t,e,n){var r=e,a=tn(t,r),o,s=a;if((s==null?null:new st(s))!=null?o=!Je(n,a):o=!1,o)return new Pt("");bt(t,r,n,"*0-9a-zA-Z_");var l=Vt(O(t,r));if(r=r+1|0,l==="*")return new Pt(l,r-e|0);var c="1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM_.";t:for(;r<P(t);){if(O(l,(r-e|0)-1|0)===46&&bt(t,r,n,"[0-9a-zA-Z_]"),Je(c,O(t,r)))l=l+Vt(O(t,r));else break t;r=r+1|0}return new Pt(l,r-e|0)}function Vg(t){return t.key}function Qg(t,e,n){var r=ls().allSubClasses,a;t:{for(var o=r.h();o.i();){var s=o.j();if(ns(t,s.key,e)){a=s;break t}}a=null}var l=a,c;l==null?oe(t,e,"ConnectOperator"):c=l;var f=c;return new Pt(f,f.key.length)}function Gg(t,e,n){var r=e;bt(t,r,n,"number");for(var a="";r<P(t)&&Je(n,O(t,r));)a=a+Vt(O(t,r)),r=r+1|0;var o;try{o=em(a)}catch(l){var s;if(l instanceof Ci)oe(t,e,"valid format number");else throw l;o=s}return new Pt(o,r-e|0)}function Jg(t,e,n){var r=e;bt(t,r,n);var a=O(t,r),o;a===43?(r=r+1|0,o=1):a===45?(r=r+1|0,o=-1):o=1;var s=o;r=r+at().yo_1.vo(t,r).xo_1|0,bt(t,r,at().cp_1.so_1+"n");var l;if(Je(at().cp_1.so_1,O(t,r))){var c=at().cp_1.vo(t,r);r=r+c.xo_1|0,l=c.wo_1}else l=1;var f=D(l,s);return r<P(t)&&O(t,r)===110?(r=r+1|0,new Pt(new An(1,f),r-e|0)):new Pt(new An(0,f),r-e|0)}function Yg(t,e,n){var r=e;bt(t,r,n);var a=qt();if(O(t,r)===40){for(r=r+1|0,r=r+at().yo_1.vo(t,r).xo_1|0,bt(t,r,at().dp_1.so_1);O(t,r)!==41;){a.m()>0&&bt(t,r,"+-");var o=at().dp_1.vo(t,r);a.f(o),r=r+o.xo_1|0,r=r+at().yo_1.vo(t,r).xo_1|0,r>=P(t)&&bt(t,r,")")}r=r+1|0}else{var s=at().dp_1.vo(t,r);a.f(s),r=r+s.xo_1|0}for(var l=gh(),c=a.h();c.i();){var f=c.j(),h=f.wo_1,d=h.pc(),p=h.qc(),g=l.t1(d),m=(g==null?0:g)+p|0;l.u3(d,m)}for(var _=r0(l.m()),v=l.u1().h();v.i();){var y=v.j();y.q1()>1&&oe(t,e,"power must be 0 or 1");var C=y.r1();_.u3(ct,C)}var b;try{var x=l.t1(1),N=x==null?0:x,T=l.t1(0);b=new Mt(N,T==null?0:T)}catch(Y){var U;if(Y instanceof xn)oe(t,e,"valid polynomialExpression");else throw Y;b=U}var G=b;return new Pt(G,r-e|0)}function Xg(t,e,n){var r=e;bt(t,r,"("),r=r+1|0;for(var a=qt();r<P(t)&&O(t,r)!==41;){r=r+at().yo_1.vo(t,r).xo_1|0;var o=at().cp_1.vo(t,r);a.l()?o.wo_1<=0&&oe(t,r,"positive integer"):o.wo_1<=ba(a)&&oe(t,r,">"+ba(a)),r=r+o.xo_1|0,a.f(o.wo_1),r=r+at().yo_1.vo(t,r).xo_1|0;var s=tn(t,r);I(s==null?null:new st(s),new st(44))&&(r=r+1|0,r=r+at().yo_1.vo(t,r).xo_1|0,bt(t,r,at().cp_1.so_1+")"))}return bt(t,r,")"),r=r+1|0,new Pt(new Ae(a),r-e|0)}function Zg(t,e,n){var r=e,a;if(zg(at(),cn(t,e,P(t)))){var o=at().fp_1.vo(t,r);r=r+o.xo_1|0,a=new Pt(o.wo_1,r-e|0)}else{var s=at().ep_1.vo(t,e);r=r+s.xo_1|0,a=new Pt(s.wo_1,r-e|0)}return a}function ty(t,e,n){var r=e,a=at().bp_1.vo(t,r);r=r+a.xo_1|0;var o=null;r<P(t)&&Je(at().gp_1.so_1,O(t,r))&&(o=at().gp_1.vo(t,r),r=r+o.xo_1|0);var s=o,l=s==null?null:s.wo_1;return new Pt(new ve(a.wo_1,l==null?new Mt:l),r-e|0)}function ey(t,e,n){var r=e;bt(t,r,n);var a=O(t,r);r=r+1|0,r>=P(t)&&oe(t,r,"any char");var o="";t:for(;O(t,r)!==a;){if(r>=(P(t)-1|0)){bt(t,r,Vt(a));break t}var s=O(t,r),l=je(s);if(0<=l&&l<=31&&oe(t,r,"0-1f escape char"),O(t,r)===92){r=r+1|0,bt(t,r);var c=o,f=O(t,r),h;if(f===92)h=92;else if(f===39)h=39;else if(f===34)h=34;else if(f===96)h=96;else if(f===110)h=10;else if(f===114)h=13;else if(f===116)h=9;else if(f===98)h=8;else if(f===120){var d=0;if(d<2)do d=d+1|0,r=r+1|0,bt(t,r,"0123456789abcdefABCDEF");while(d<2);var p=(r-2|0)+1|0,g=r+1|0,m=z(cn(t,p,g));h=Ea(Tf(m,16))}else if(f===117){var _=0;if(_<4)do _=_+1|0,r=r+1|0,bt(t,r,"0123456789abcdefABCDEF");while(_<4);var v=(r-4|0)+1|0,y=r+1|0,C=z(cn(t,v,y));h=Ea(Tf(C,16))}else oe(t,r,"escape char");o=c+Vt(h)}else o=o+Vt(O(t,r));r=r+1|0}return r=r+1|0,new Pt(o,r-e|0)}function ny(t,e,n){var r=e;bt(t,r,n);var a=Vt(O(t,r));for(r=r+1|0;r<P(t)&&Je(at().kp_1,O(t,r));)O(t,r)===46&&bt(t,r+1|0,n),a=a+Vt(O(t,r)),r=r+1|0;return new Pt(a,r-e|0)}function ry(t,e,n){var r=e;bt(t,r,n),r=r+1|0,r=r+at().yo_1.vo(t,r).xo_1|0;var a=at().sp(t,r);return r=r+a.a()|0,bt(t,r,"]"),r=r+1|0,new Pt(a,r-e|0)}function iy(t,e,n){var r=e,a=!1,o=tn(t,r);I(o==null?null:new st(o),new st(64))&&(a=!0,r=r+1|0);var s=at().ap_1.vo(t,r);r=r+s.xo_1|0;for(var l=qt();r<P(t)&&O(t,r)===91;){var c=at().mp_1.vo(t,r);r=r+c.xo_1|0,l.f(c.wo_1)}return s.xo_1===0&&l.m()===0&&oe(t,r,"["),new Pt(new le(a,s.wo_1,l),r-e|0)}function ay(t,e,n){var r=e;r=r+at().yo_1.vo(t,r).xo_1|0;var a=at().np_1.vo(t,r);r=r+a.xo_1|0;var o=qt();t:for(;r<P(t)&&Je(at().yo_1.so_1,O(t,r));){if(r=r+at().zo_1.vo(t,r).xo_1|0,r>=P(t))break t;var s;if(Je(at().hp_1.so_1,O(t,r))){var l=at().hp_1.vo(t,r);r=r+l.xo_1|0,r=r+at().zo_1.vo(t,r).xo_1|0,s=l.wo_1}else s=new ve(u,new Mt(1,0));var c=s,f=at().np_1.vo(t,r);r=r+f.xo_1|0,o.f(Lf(c,f.wo_1))}return new Pt(Lf(a.wo_1,o),r-e|0)}function oy(t,e,n){return e!==P(t)&&oe(t,e,"EOF"),new Pt(ct,0)}function so(){Ml=this;var t=this;t.yo_1=new Wt(` \r
270
- `,Ug);var e=this;e.zo_1=new Wt(` \r
271
- `,Wg);var n=this;n.ap_1=new Wt("*1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM_",Hg);var r=this,a=ls().allSubClasses,o=In(a,"",u,u,u,u,Vg);r.bp_1=new Wt(o,Qg);var s=this;s.cp_1=new Wt("1234567890",Gg);var l=this;l.dp_1=new Wt("+-1234567890n",Jg);var c=this;c.ep_1=new Wt("(0123456789n",Yg);var f=this;f.fp_1=new Wt(u,Xg);var h=this;h.gp_1=new Wt(this.ep_1.so_1,Zg);var d=this;d.hp_1=new Wt(this.bp_1.so_1,ty);var p=this;p.ip_1=new Wt("`'\"",ey),this.jp_1="_"+In(ri(97,122),"")+In(ri(65,90),""),this.kp_1=this.jp_1+Vt(46)+In(ri(48,57),"");var g=this;g.lp_1=new Wt(this.jp_1,ny);var m=this;m.mp_1=new Wt("[",ry);var _=this;_.np_1=new Wt(u,iy);var v=this;v.op_1=new Wt(u,ay);var y=this;y.pp_1=new Wt(u,oy)}i(so).qp=function(t,e){var n=e;if(n=n+this.yo_1.vo(t,n).xo_1|0,n>=P(t)&&oe(t,n,"Variable"),qs(this,t,n,"true"))return new pe(n,!0);if(qs(this,t,n,"false"))return new pe(n,!1);if(qs(this,t,n,"null"))return new Te(n);if(Je(this.ip_1.so_1,O(t,n))){var r=this.ip_1.vo(t,n);return n=n+r.xo_1|0,new gt(n-r.xo_1|0,n,r.wo_1)}if(O(t,n)===45){n=n+1|0;var a=this.cp_1.vo(t,n);return n=n+a.xo_1|0,new Jt((n-a.xo_1|0)-1|0,n,-a.wo_1|0)}if(Je(this.cp_1.so_1,O(t,n))){var o=this.cp_1.vo(t,n);return n=n+o.xo_1|0,new Jt(n-o.xo_1|0,n,o.wo_1)}var s=null;t:for(;n<P(t);){n=n+this.yo_1.vo(t,n).xo_1|0;var l=tn(t,n),c=l;if(I(c==null?null:new st(c),new st(40))){var f=n;if(n=n+1|0,n=n+this.yo_1.vo(t,n).xo_1|0,s!=null){s instanceof St&&oe(t,n,"Variable");for(var h=qt();n<P(t)&&O(t,n)!==41;){var d=this.qp(t,n);h.f(d),n=n+d.a()|0;var p=tn(t,n);I(p==null?null:new st(p),new st(44))&&(n=n+1|0,n=n+this.yo_1.vo(t,n).xo_1|0)}n=n+this.yo_1.vo(t,n).xo_1|0,bt(t,n,")"),n=n+1|0,s=new St(s.tc(),n,s,h)}else{var g=this.qp(t,n);n=n+g.a()|0,n=n+this.yo_1.vo(t,n).xo_1|0,bt(t,n,")"),n=n+1|0;var m=n,_;return g instanceof pe?_=g.copy(f):g instanceof Jt?_=g.copy(f,m):g instanceof Te?_=g.copy(f):g instanceof gt||g instanceof St?_=g.copy(f,m):g instanceof xt?_=g.copy(f):g instanceof mt?_=g.copy(f,m):qn(),_}}else{var v=l;if(I(v==null?null:new st(v),new st(46))){n=n+1|0,s instanceof Re||oe(t,n,"Variable"),Tl(this,tn(t,n),!0)||oe(t,n,"Variable");var y;e:{var C=vf(t,n),b=0,x=P(C);if(b<x)do{var N=b;b=b+1|0;var T=O(C,N);if(!Tl(at(),T,!1)){y=cn(C,0,N);break e}}while(b<x);y=cn(C,0,P(C))}var U=z(y);s=new mt(s.tc(),n+U.length|0,s,U),n=n+U.length|0}else if(Bf(this,l)){var G;e:{var Y=vf(t,n),vt=0,Ot=P(Y);if(vt<Ot)do{var K=vt;vt=vt+1|0;var Zt=O(Y,K);if(!Bf(at(),Zt)){G=cn(Y,0,K);break e}}while(vt<Ot);G=cn(Y,0,P(Y))}var W=z(G);s=new xt(n,W),n=n+W.length|0}else break t}}return s==null&&oe(t,n,"Variable"),s};i(so).rp=function(t,e,n){var r=e;r=r+this.yo_1.vo(t,r).xo_1|0;var a=qt();t:for(;r<P(t)&&O(t,r)!==93&&O(t,r)!==41;){var o=O(t,r);if(o===40){var s=r;if(!a.l()){var l=ba(a),c;if(l instanceof Qt){var f=l.value;c=f instanceof Pn}else c=!1;if(!c){for(var h=0;(r-1|0)>=h&&Je(this.yo_1.so_1,O(t,(r-1|0)-h|0));)h=h+1|0;oe(t,(r-h|0)-l.a()|0,"LogicalOperator")}}r=r+1|0;var d=this.sp(t,r);r=r+d.a()|0;var p=d;bt(t,r,")"),r=r+1|0;var g=r,m;if(p instanceof ht||p instanceof dt?m=p.copy(s,g):p instanceof ee?m=p.copy(s):qn(),a.f(m),n)break t}else if(Je("|&",o)){var _=Bg(this,t,r);r=r+_.a()|0,a.f(_),r=r+this.yo_1.vo(t,r).xo_1|0,bt(t,r,"(!"+this.lp_1.so_1)}else if(o===33){var v=Kg(this,t,r);r=r+v.a()|0,a.f(v),r=r+this.yo_1.vo(t,r).xo_1|0}else{var y=Dg(this,t,r);r=r+y.a()|0,a.f(y)}r=r+this.yo_1.vo(t,r).xo_1|0}if(a.l()&&oe(t,r-e|0,"Expression"),a.m()===1){var C=Hi(a);return C instanceof He?C:S()}for(var b=Ul(a),x=0;x<b.m();){var N=b.k(x),T;if(N instanceof Qt?T=I(N.value,zu()):T=!1,T){var U=b.k(x-1|0),G=U instanceof He?U:S(),Y=b.k(x+1|0),vt=Y instanceof He?Y:S(),Ot=N instanceof Qt?N:S();b.p2(x,new dt(G.tc(),vt.uc(),G,Ot,vt)),b.x2(x-1|0),b.x2((x+1|0)-1|0)}else x=x+1|0}for(;b.m()>1;){var K=b.k(0),Zt=K instanceof He?K:S(),W=b.k(1),jt=W instanceof Qt?W:S(),Bt=b.k(2),Ue=Bt instanceof He?Bt:S();b.p2(1,new dt(Zt.tc(),Ue.uc(),Zt,jt,Ue)),b.x2(0),b.x2(1)}var ce=Hi(b);return ce instanceof He?ce:S()};i(so).sp=function(t,e,n,r){return n=n===u?!1:n,r===u?this.rp(t,e,n):r.rp.call(this,t,e,n)};var Ml;function at(){return Ml==null&&new so,Ml}function qd(t){var e=0;e=e+at().yo_1.vo(t,e).xo_1|0;var n=at().op_1.vo(t,e);e=e+n.xo_1|0,e=e+at().yo_1.vo(t,e).xo_1|0,e=e+at().pp_1.vo(t,e).xo_1|0;var r=n.wo_1,a=qt(),o=qt();a.f(r.nc_1);for(var s=r.oc_1.h();s.i();){var l=s.j();a.f(l.oc_1),o.f(l.nc_1)}for(var c=Wh([new ne(Hi(a))]),f=0,h=o.h();h.i();){var d=h.j(),p=f;f=p+1|0;var g=To(p),m=new qe(d,ba(c)),_=new ne(a.k(g+1|0),m);c.f(_)}return new Ee(t,ba(c))}function sy(t){by(t)}function Xr(t,e,n,r,a,o){this.booleanType=t,this.intType=e,this.stringType=n,this.contextType=r,this.nodeType=a,this.globalType=o}i(Xr).tp=function(){return this.booleanType};i(Xr).up=function(){return this.intType};i(Xr).vp=function(){return this.stringType};i(Xr).wp=function(){return this.contextType};i(Xr).xp=function(){return this.nodeType};i(Xr).yp=function(){return this.globalType};function ly(t){t=t===u?!1:t;var e=new Ht(Pa()),n=new Ht(Ra()),r=new Ht(La()),a=new Ht(new De("node")),o=new Ht(new De("context")),s=new Ht(new De("global")),l=e,c=new J("toInt",n),f=[e],h=new J("or",e,f),d=[e];l.methods=rr([[c,h,new J("and",e,d),new J("not",e)],Ts(e,n,r,a,o,"ifElse",e,2)]);var p=n,g=new J("toString",r),m=[n],_=new J("toString",r,m),v=[n],y=new J("plus",n,v),C=[n],b=new J("minus",n,C),x=[n],N=new J("times",n,x),T=[n],U=new J("div",n,T),G=[n],Y=new J("rem",n,G),vt=[n],Ot=new J("more",e,vt),K=[n],Zt=new J("moreEqual",e,K),W=[n],jt=new J("less",e,W),Bt=[n];p.methods=[g,_,y,b,N,U,Y,Ot,Zt,jt,new J("lessEqual",e,Bt)];var Ue=r;Ue.props=[new rt("length",n)];var ce=r,We=[n],mn=new J("get",r,We),Rn=[n],Ar=new J("at",r,Rn),R=[n],ut=new J("substring",r,R),_t=[n,n],zt=new J("substring",r,_t),he=new J("toInt",n),Jn=[n],Yn=new J("toInt",n,Jn),Xn=[r],Zr=new J("indexOf",n,Xn),ca=[r,n];ce.methods=[mn,Ar,ut,zt,he,Yn,Zr,new J("indexOf",n,ca)];var ha=a,ti;t?ti=[new rt("_id",n),new rt("_pid",n)]:ti=[],ha.props=rr([ti,[new rt("id",r),new rt("vid",r),new rt("name",r),new rt("text",r),new rt("desc",r),new rt("clickable",e),new rt("focusable",e),new rt("checkable",e),new rt("checked",e),new rt("editable",e),new rt("longClickable",e),new rt("visibleToUser",e),new rt("left",n),new rt("top",n),new rt("right",n),new rt("bottom",n),new rt("width",n),new rt("height",n),new rt("childCount",n),new rt("index",n),new rt("depth",n),new rt("parent",a)]]);var ei=a,lo=[n];ei.methods=[new J("getChild",a,lo)];var Tr=o,Ln=a.methods,vs=[n];Tr.methods=rr([Ln,[new J("getPrev",o,vs)]]);var ps=o;ps.props=rr([a.props,[new rt("prev",o),new rt("current",a)]]);var qi=s;qi.methods=rr([o.methods,Ts(e,n,r,a,o,"equal",e,2),Ts(e,n,r,a,o,"notEqual",e,2)]);var _s=s;return _s.props=o.props.slice(),new Xr(e,n,r,o,a,s)}function uy(t,e,n){var r;switch(e){case"plus":r=t+Oe(n)|0;break;case"minus":r=t-Oe(n)|0;break;case"times":r=D(t,Oe(n));break;case"div":var a=Oe(n);if(a===0)return null;r=t/a|0;break;case"rem":var o=Oe(n);if(o===0)return null;r=t%o|0;break;case"more":r=t>Oe(n);break;case"moreEqual":r=t>=Oe(n);break;case"less":r=t<Oe(n);break;case"lessEqual":r=t<=Oe(n);break;default:r=null;break}return r}function fy(t,e,n){return py(t,e,n)}function cy(t,e,n){switch(e){case"toInt":return t?1:0;case"not":return!t;default:return null}}function hy(t,e){return _y(t,e)}function dy(t,e){e=e===u?34:e;var n=jh(t.length+2|0);n.b6(e);for(var r=0;r<P(t);){var a=O(t,r);r=r+1|0;var o=a===e?e:a===10?110:a===13?114:a===9?116:a===8?98:a===92?92:null,s=o;if((s==null?null:new st(s))!=null){var l=o;n.a6("\\"+Gt(l==null?null:new st(l)))}else{var c=je(a);if(0<=c&&c<=15){var f=je(a);n.a6("\\x0"+Af(f,16))}else if(16<=c&&c<=31){var h=je(a);n.a6("\\x"+Af(h,16))}else n.b6(a)}}return n.b6(e),n.toString()}function As(t,e,n){if(wu(t,e)&&Kh(t,n)&&t.length>=(e.length+n.length|0)){var r=e.length,a=t.length-n.length|0;if(r<a)do{var o=r;if(r=r+1|0,Je("\\^$.?*|+()[]{}",O(t,o)))return null}while(r<a);return z(cn(t,e.length,t.length-n.length|0))}return null}function vy(t){var e=As(t,"(?is)",".*");if(e!=null)return my(e);var n=As(t,"(?is).*",".*");if(n!=null)return gy(n);var r=As(t,"(?is).*","");return r!=null?yy(r):null}function Oe(t,e){e=e===u?0:e;var n=t.k(e);return typeof n=="number"?n:S()}function py(t,e,n){var r;switch(e){case"get":var a=tn(t,Oe(n));r=Gt(a==null?null:new st(a));break;case"at":var o=Oe(n),s;if(o<0){var l=tn(t,P(t)+o|0);s=Gt(l==null?null:new st(l))}else{var c=tn(t,o);s=Gt(c==null?null:new st(c))}r=s;break;case"substring":var f;switch(n.m()){case 1:var h=Oe(n);if(h<0)return null;if(h>=P(t))return"";var d=P(t);f=z(cn(t,h,d));break;case 2:var p=Oe(n);if(p<0)return null;if(p>=P(t))return"";var g=Oe(n,1);if(g<p)return null;var m=ka(g,P(t));f=z(cn(t,p,m));break;default:f=null;break}r=f;break;case"toInt":var _;switch(n.m()){case 0:_=ld(z(t));break;case 1:var v=Oe(n);if(!(2<=v&&v<=36))return null;_=Au(z(t),v);break;default:_=null;break}r=_;break;case"indexOf":var y;switch(n.m()){case 1:var C=n.k(0),b=_e(C)?C:null,x;if(b==null)return null;x=b;var N=x;y=rl(t,z(N));break;case 2:var T=n.k(0),U=_e(T)?T:null,G;if(U==null)return null;G=U;var Y=G,vt=Oe(n,1);y=rl(t,z(Y),vt);break;default:y=null;break}r=y;break;default:r=null;break}return r}function _y(t,e){return e==="length"?P(t):null}function Ts(t,e,n,r,a,o,s,l){for(var c=0,f=nr(Array(l),null);c<l;)f[c]=t,c=c+1|0;for(var h=new J(o,s,f),d=0,p=nr(Array(l),null);d<l;)p[d]=e,d=d+1|0;for(var g=new J(o,s,p),m=0,_=nr(Array(l),null);m<l;)_[m]=n,m=m+1|0;for(var v=new J(o,s,_),y=0,C=nr(Array(l),null);y<l;)C[y]=r,y=y+1|0;for(var b=new J(o,s,C),x=0,N=nr(Array(l),null);x<l;)N[x]=a,x=x+1|0;return[h,g,v,b,new J(o,s,N)]}function my(t){return function(e){return Tu(e,t,!0)}}function gy(t){return function(e){return Mu(e,t,!0)}}function yy(t){return function(e){return es(e,t,!0)}}var $o;function wy(t){if($o!==null){var e=Me($o)(t);return ky(e)}if(t.length>=4&&wu(t,"(?")){var n=2,r=t.length;if(n<r)t:do{var a=n;n=n+1|0;var o=O(t,a);if(!(97<=o&&o<=122)&&!(65<=o&&o<=90))if(o===41){var s=vp(cn(t,2,a));s.f(new st(103)),s.f(new st(117));var l=In(s,""),c=a+1|0,f=t.substring(c),h=new RegExp(f,l);return Cy(h)}else break t}while(n<r)}var d=im(t);return xy(d)}function by(t){$o=t}function ky(t){return function(e){return t(z(e))}}function Cy(t){return function(e){Oh(t);var n=t.exec(z(e));return n!=null&&n.index===0&&t.lastIndex===P(e)}}function xy(t){return function(e){return t.w8(e)}}i(He).a=Pu;V(i(He),"binaryExpressions",function(){return this.bd()});V(i(ht),"properties",i(ht).cd);V(i(ht),"methods",i(ht).dd);V(i(Aa),"allSubClasses",i(Aa).kd);V(i(Ni),"minOffset",function(){return this.yd()});V(i(Ni),"maxOffset",function(){return this.zd()});V(i(Ta),"allSubClasses",i(Ta).kd);V(i(Lt),"message",function(){return this.i7()});V(i(ze),"value",function(){return this.r1()});V(i(Ma),"allSubClasses",i(Ma).kd);i(Qt).a=Pu;V(i(le),"binaryExpressions",i(le).bd);V(i(ne),"length",i(ne).a);V(i(ue),"cause",function(){return this.j7()});i(re).a=Pu;V(i(re),"value",function(){return this.r1()});V(i(re),"type",function(){return this.hf()});V(i(re),"properties",function(){return this.cd()});V(i(re),"methods",function(){return this.dd()});Nd=new hs;Id=new Du;$o=null;V(Q,"Companion",as);V(Q,"Equal",ar);V(Q,"NotEqual",dd);V(Q,"Start",Yr);V(Q,"NotStart",vd);V(Q,"Include",Ru);V(Q,"NotInclude",pd);V(Q,"End",Lu);V(Q,"NotEnd",_d);V(Q,"Less",oo);V(Q,"LessEqual",md);V(Q,"More",gd);V(Q,"MoreEqual",yd);V(Q,"Matches",os);V(Q,"NotMatches",Ou);V(ke,"Companion",ls);V(ke,"BeforeBrother",wd);V(ke,"AfterBrother",bd);V(ke,"Ancestor",xo);V(ke,"Child",kd);V(ke,"Descendant",us);ze.Id=hn;ze.Vid=dn;ze.Text=vn;V(Pn,"Companion",ju);V(Pn,"AndOperator",zu);V(Pn,"OrOperator",Fu);V(Ee,"Companion",ug);V(kt,"Companion",_g);V(ln,"BooleanType",Pa);V(ln,"IntType",Ra);V(ln,"StringType",La);ln.ObjectType=De;re.Variable=Re;re.Identifier=xt;re.MemberExpression=mt;re.CallExpression=St;re.LiteralExpression=Ye;re.NullLiteral=Te;re.BooleanLiteral=pe;re.IntLiteral=Jt;re.StringLiteral=gt;async function Sy(t){t instanceof Promise&&(t=await t);const e={"kotlin.captureStackTrace":()=>new Error().stack,"kotlin.wasm.internal.throwJsError":(o,s,l)=>{const c=new Error;throw c.message=o,c.name=s,c.stack=l,c},"kotlin.wasm.internal.stringLength":o=>o.length,"kotlin.wasm.internal.jsExportStringToWasm":(o,s,l,c)=>{const f=new Uint16Array(r.memory.buffer,c,l);let h=0,d=s;for(;h<l;)f.set([o.charCodeAt(d)],h),d++,h++},"kotlin.wasm.internal.importStringFromWasm":(o,s,l)=>{const c=new Uint16Array(r.memory.buffer,o,s),f=String.fromCharCode.apply(null,c);return l==null?f:l+f},"kotlin.wasm.internal.getJsEmptyString":()=>"","kotlin.wasm.internal.isNullish":o=>o==null,"kotlin.wasm.internal.getJsTrue":()=>!0,"kotlin.wasm.internal.getJsFalse":()=>!1,"kotlin.random.initialSeed":()=>Math.random()*Math.pow(2,32)|0,"li.songe.matches.__convertKotlinClosureToJsClosure_((String)->Boolean)":o=>s=>r["__callFunction_((String)->Boolean)"](o,s)};let n,r;const a={js_code:e};try{if(t instanceof Response)n=(await WebAssembly.instantiateStreaming(t,a)).instance;else{const o=new WebAssembly.Module(t);n=new WebAssembly.Instance(o,a)}}catch(o){throw o instanceof WebAssembly.CompileError&&console.error(`Please make sure that your runtime environment supports the latest version of Wasm GC and Exception-Handling proposals.
272
- For more information, see https://kotl.in/wasm-help
273
- `),o}return r=n.exports,r._initialize(),{instance:n,exports:r}}const $y="https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1729692768932/files/dist/assets/mod-BHC4TAjm.wasm",Ey=Sy(fetch($y)).then(t=>{const e=t.exports.toMatches;sy(e),_o.wasmSupported=!0,console.log("use wasm matches")}).catch(t=>{_o.wasmSupported=!1,console.error(t),console.log("use js matches")}),Uf=(t,e)=>{var n,r;return e=="_id"?t.id:e=="_pid"?t.pid:e=="parent"?(n=t.parent)!=null?n:null:(r=Reflect.get(t.attr,e))!=null?r:null},Wf=(t,e,n)=>{var r;if(e==="getChild"){const a=n.asJsReadonlyArrayView()[0];return(r=t.children[a])!=null?r:null}return null},Ms=kt.Companion.multiplatformBuild((t,e)=>typeof t=="string"?hy(t,e):t instanceof te?e==="prev"?t.prev:e==="current"?t.current:Uf(t.current,e):of(t)?Uf(t,e):null,(t,e,n)=>{if(typeof t=="number")return uy(t,e,n);if(typeof t=="boolean")return cy(t,e);if(typeof t=="string")return fy(t,e,n);if(t instanceof te){if(e==="getPrev"){const r=n.asJsReadonlyArrayView()[0];return Number.isSafeInteger(r)?t.getPrev(r):null}return Wf(t.current,e,n)}return of(t)?Wf(t,e,n):null},t=>t.attr.name,t=>t.children,t=>t.parent),Ny=ly(!0).globalType,Iy=new Fe(!1,!1),vo=t=>{var r;const e=Ee.Companion.parse(t);for(const a of e.binaryExpressions)if(a.operator.value.key=="~="&&!_o.wasmSupported&&!Zf.ignoreWasmWarn){_o.wasmErrorDlgVisible=!0;break}return qy(e),{s:e,targetIndex:e.targetIndex,connectKeys:e.connectWrappers.map(a=>a.segment.operator.key),canQf:!!((r=e.quickFindValue)!=null&&r.value),qfIdValue:e.quickFindValue instanceof ze.Id?e.quickFindValue.value:null,qfVidValue:e.quickFindValue instanceof ze.Vid?e.quickFindValue.value:null,qfTextValue:e.quickFindValue instanceof ze.Text?e.quickFindValue.value:null,canCopy:!e.binaryExpressions.some(a=>a.properties.some(o=>o.startsWith("_"))),toString:()=>e.stringify(),match:a=>{var o;return(o=e.match(a,Ms,Iy))!=null?o:void 0},querySelectorAll:a=>Ms.querySelectorAllArray(a,e),querySelectorTrackAll:a=>Ms.querySelectorAllContextArray(a,e).map(o=>o.toArray())}},qy=t=>{const e=t.checkType(Ny);if(e!=null)throw e instanceof xe?new Error("不匹配表达式类型:"+e.exception.stringify(),{cause:e}):e instanceof on?new Error("不匹配操作符类型:"+e.exception.stringify(),{cause:e}):e instanceof se?new Error("不匹配参数类型:"+e.call.stringify(),{cause:e}):e instanceof en?new Error("未知属性:"+e.value.stringify(),{cause:e}):e instanceof Ve?new Error("未知方法:"+e.value.stringify(),{cause:e}):e instanceof nn?new Error("未知属性:"+e.value.stringify(),{cause:e}):e instanceof Qe?new Error("未知方法:"+e.value.property,{cause:e}):e instanceof rn?new Error("未知方法参数:"+e.value.stringify(),{cause:e}):e instanceof an?new Error("未知方法参数:"+e.value.stringify(),{cause:e}):new Error("未知错误:"+e.message,{cause:e})};var Bu={},ds={};Object.defineProperty(ds,"__esModule",{value:!0});function Ay(t){return String.fromCharCode(parseInt(t.slice(1),16))}function Ty(t){return btoa(encodeURIComponent(t).replace(/%[0-9A-F]{2}/g,Ay))}ds.encode=Ty;function My(t){return`%${`00${t.charCodeAt(0).toString(16)}`.slice(-2)}`}function Py(t){return decodeURIComponent(Array.from(atob(t),My).join(""))}ds.decode=Py;Object.defineProperty(Bu,"__esModule",{value:!0});const Ad=ds;function Ry(t){return Ad.decode(t.replace(/\-/g,"+").replace(/_/g,"/"))}var Ly=Bu.decode=Ry;function Oy(t){return Ad.encode(t).replace(/\//g,"_").replace(/\+/g,"-").replace(/=+$/,"")}var jy=Bu.encode=Oy;const Ku=V1(),Td=Z(()=>Ku.width.value/100),Md=Z(()=>Math.max(1200,Ku.width.value));Z(()=>Math.max(700,Ku.height.value));const zy={"bg-white":"","b-1px":"","b-solid":"","b-gray-200":"","rounded-4px":"","p-8px":""},Fy={flex:"","m-b-4px":"","pr-4px":""},Dy={key:0,underline:"","decoration-1":"","m-r-4px":"",title:"查询数量"},By=["title"],Ky=Rt({__name:"SearchCard",props:{snapshot:{},rootNode:{},focusNode:{},onUpdateFocusNode:{type:Function,default:fi},onUpdateTrack:{type:Function,default:fi}},setup(t){const e=tc(),n=t,r=At(""),a=jl([]),o=At([]),s=_=>{const v=G1(()=>vo(_),C=>typeof C=="string"?C:C instanceof Error&&C.cause instanceof Lt?C.message:"非法选择器");if(a.find(C=>typeof C.selector=="object"&&C.selector.toString()==v.toString())){En.warning("不可重复选择");return}const y=v.querySelectorTrackAll(n.rootNode);if(y.length==0){En.success("没有选择到节点");return}return En.success(`选择到 ${y.length} 个节点`),a.unshift({selector:v,nodes:y,key:Date.now()}),y.length},l=_=>{if(a.find(C=>typeof C.selector=="string"&&C.selector.toString()==_)){En.warning("不可重复搜索");return}const v=[],y=[n.rootNode];for(;y.length>0;){const C=y.pop();Ui(C).includes(_)&&v.push(C),y.push(...[...C.children].reverse())}if(v.length==0){En.success("没有搜索到节点");return}return En.success(`搜索到 ${v.length} 个节点`),a.unshift({selector:_,nodes:v,key:Date.now()}),v.length},c=()=>{const _=a[0],v=_.nodes[0];Array.isArray(v)?typeof _.selector=="object"&&Array.isArray(v)&&n.onUpdateFocusNode(v[_.selector.targetIndex]):n.onUpdateFocusNode(v);const y=new Set(a.map(b=>b.key)),C=o.value.filter(b=>y.has(b));C.push(_.key),o.value=C},f=uf(()=>{const _=r.value.trim();if(_){if(d.value){if(!s(_))return}else if(!l(_))return;c()}});za(async()=>{await Ey;let _=0;e.query.gkd&&(_+=s(Ly(e.query.gkd))||0),e.query.str&&(_+=l(e.query.str)||0),_>0&&c()});const h=uf(async _=>{var U,G,Y;let v=k1[n.snapshot.id];v&&(v=C1(v));const y=Bi[n.snapshot.id],C=y?Zu(y):void 0,b=_.selector,x=_.nodes[0].at(-1),N=[((U=x.quickFind)!=null?U:x.idQf)&&x.attr.id&&b.qfIdValue,((G=x.quickFind)!=null?G:x.idQf)&&x.attr.vid&&b.qfVidValue,((Y=x.quickFind)!=null?Y:x.textQf)&&x.attr.text&&b.qfTextValue].some(Boolean),T={id:n.snapshot.appId,name:tr(n.snapshot).name,groups:[{key:1,name:`[ChangeMe]规则名称-${K1().format("YYYY-MM-DD HH:mm:ss")}`,desc:"[ChangeMe]本规则由GKD网页端审查工具生成",rules:[{quickFind:N||void 0,activityIds:n.snapshot.activityId,matches:b.toString(),exampleUrls:v,snapshotUrls:C}]}]};er(ac.stringify(T,void 0,2))}),d=At(!0),p=Z(()=>Bi[n.snapshot.id]),g=_=>{if(!p.value)return;const v=new URL(Zu(Bi[n.snapshot.id]));typeof _.selector=="object"?v.searchParams.set("gkd",jy(_.selector.toString())):v.searchParams.set("str",_.selector.toString()),er(v.toString())},m=At(!0);return(_,v)=>{const y=F1,C=rc,b=D1,x=Fa,N=Eo,T=ic,U=B1,G=tv,Y=lv,vt=av;return et(),ae(zn,null,[B(Wi,{initialValue:{top:40,right:Math.max(315,12*$(Td)+135),width:Math.max(480,$(Md)*.3)},minWidth:300,sizeDraggable:"",class:"z-1 box-shadow-dim",show:$(m)},{default:q(({onRef:Ot})=>[A("div",zy,[A("div",Fy,[B(b,{value:$(d),"onUpdate:value":v[0]||(v[0]=K=>Ki(d)?d.value=K:null)},{default:q(()=>[B(C,null,{default:q(()=>[B(y,{value:!1},{default:q(()=>v[4]||(v[4]=[ye(" 字符搜索 ")])),_:1}),B(y,{value:!0},{default:q(()=>v[5]||(v[5]=[ye(" 选择器查询 ")])),_:1})]),_:1})]),_:1},8,["value"]),A("div",{"flex-1":"","cursor-move":"",ref:Ot},null,512),B(N,{onClick:v[1]||(v[1]=K=>m.value=!$(m)),text:"",title:"最小化"},{icon:q(()=>[B(x,null,{default:q(()=>v[6]||(v[6]=[A("svg",{viewBox:"0 0 24 24"},[A("path",{fill:"currentColor",d:"M6 13v-2h12v2z"})],-1)])),_:1})]),_:1})]),B(U,null,{default:q(()=>[B(T,{value:$(r),"onUpdate:value":v[2]||(v[2]=K=>Ki(r)?r.value=K:null),placeholder:$(d)?"请输入选择器":"请输入字符",onKeyup:b1($(f),["enter"]),inputProps:{class:"gkd_code"}},null,8,["value","placeholder","onKeyup"]),B(N,{onClick:$(f)},{icon:q(()=>[B(x,null,{default:q(()=>v[7]||(v[7]=[A("svg",{viewBox:"0 0 32 32"},[A("path",{d:"M29 27.586l-7.552-7.552a11.018 11.018 0 1 0-1.414 1.414L27.586 29zM4 13a9 9 0 1 1 9 9a9.01 9.01 0 0 1-9-9z",fill:"currentColor"})],-1)])),_:1})]),_:1},8,["onClick"])]),_:1}),v[14]||(v[14]=A("div",{"p-5px":""},null,-1)),B(vt,{expandedNames:$(o),"onUpdate:expandedNames":v[3]||(v[3]=K=>Ki(o)?o.value=K:null)},{default:q(()=>[(et(!0),ae(zn,null,wa($(a),(K,Zt)=>(et(),de(Y,{key:K.key,name:K.key},{header:q(()=>[K.nodes.length>1?(et(),ae("span",Dy,Tt(K.nodes.length),1)):ge("",!0),A("span",{"break-all":"",title:typeof K.selector=="object"?"选择器":"搜索字符"},Tt(K.selector.toString()),9,By)]),"header-extra":q(()=>[typeof K.selector=="object"&&K.selector.canCopy?(et(),de(N,{key:0,size:"small",onClick:xs(W=>$(h)(K),["stop"]),title:"复制规则"},{icon:q(()=>[B(x,null,{default:q(()=>v[8]||(v[8]=[A("svg",{viewBox:"0 0 24 24"},[A("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",fill:"currentColor"})],-1)])),_:1})]),_:2},1032,["onClick"])):ge("",!0),v[11]||(v[11]=A("div",{"p-l-4px":""},null,-1)),$(p)?(et(),de(N,{key:1,size:"small",title:typeof K.selector=="object"?"复制查询链接":"复制搜索链接",onClick:xs(W=>g(K),["stop"])},{icon:q(()=>[B(x,null,{default:q(()=>v[9]||(v[9]=[A("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},[A("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81c1.66 0 3-1.34 3-3s-1.34-3-3-3s-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65c0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92z",fill:"currentColor"})],-1)])),_:1})]),_:2},1032,["title","onClick"])):ge("",!0),v[12]||(v[12]=A("div",{"p-l-4px":""},null,-1)),B(N,{size:"small",onClick:xs(W=>$(a).splice(Zt,1),["stop"]),title:"删除记录"},{icon:q(()=>[B(x,null,{default:q(()=>v[10]||(v[10]=[A("svg",{viewBox:"0 0 24 24"},[A("g",{fill:"none"},[A("path",{d:"M12 1.75a3.25 3.25 0 0 1 3.245 3.066L15.25 5h5.25a.75.75 0 0 1 .102 1.493L20.5 6.5h-.796l-1.28 13.02a2.75 2.75 0 0 1-2.561 2.474l-.176.006H8.313a2.75 2.75 0 0 1-2.714-2.307l-.023-.174L4.295 6.5H3.5a.75.75 0 0 1-.743-.648L2.75 5.75a.75.75 0 0 1 .648-.743L3.5 5h5.25A3.25 3.25 0 0 1 12 1.75zm6.197 4.75H5.802l1.267 12.872a1.25 1.25 0 0 0 1.117 1.122l.127.006h7.374c.6 0 1.109-.425 1.225-1.002l.02-.126L18.196 6.5zM13.75 9.25a.75.75 0 0 1 .743.648L14.5 10v7a.75.75 0 0 1-1.493.102L13 17v-7a.75.75 0 0 1 .75-.75zm-3.5 0a.75.75 0 0 1 .743.648L11 10v7a.75.75 0 0 1-1.493.102L9.5 17v-7a.75.75 0 0 1 .75-.75zm1.75-6a1.75 1.75 0 0 0-1.744 1.606L10.25 5h3.5A1.75 1.75 0 0 0 12 3.25z",fill:"currentColor"})])],-1)])),_:1})]),_:2},1032,["onClick"])]),default:q(()=>[B(C,{style:{"max-height":"400px","overflow-y":"scroll","padding-bottom":"10px"}},{default:q(()=>[typeof K.selector=="string"||K.selector.connectKeys.length===0?(et(!0),ae(zn,{key:0},wa(K.nodes.map(W=>Array.isArray(W)?W[0]:W),W=>(et(),de(N,{key:W.id,onClick:jt=>_.onUpdateFocusNode(W),size:"small",class:Kr({"color-[#00F]":W===_.focusNode})},{default:q(()=>[ye(Tt($(Ui)(W)),1)]),_:2},1032,["onClick","class"]))),128)):(et(!0),ae(zn,{key:1},wa(K.nodes.map(W=>Array.isArray(W)?W:[W]),(W,jt)=>(et(),de(G,{key:jt},{default:q(()=>[B(N,{size:"small",onClick:Bt=>_.onUpdateTrack({nodes:W,selector:K.selector})},{default:q(()=>[B(x,null,{default:q(()=>v[13]||(v[13]=[A("svg",{viewBox:"0 0 24 24"},[A("path",{fill:"currentColor",d:"M5 21V8.825Q4.125 8.5 3.563 7.738T3 6q0-1.25.875-2.125T6 3q1.25 0 2.125.875T9 6q0 .975-.562 1.738T7 8.825V19h4V3h8v12.175q.875.325 1.438 1.088T21 18q0 1.25-.875 2.125T18 21q-1.25 0-2.125-.875T15 18q0-.975.563-1.75T17 15.175V5h-4v16zM6 7q.425 0 .713-.288T7 6q0-.425-.288-.712T6 5q-.425 0-.712.288T5 6q0 .425.288.713T6 7m12 12q.425 0 .713-.288T19 18q0-.425-.288-.712T18 17q-.425 0-.712.288T17 18q0 .425.288.713T18 19m0-1"})],-1)])),_:1})]),_:2},1032,["onClick"]),B(N,{onClick:Bt=>_.onUpdateFocusNode(W[K.selector.targetIndex]),size:"small",class:Kr({"color-[#00F]":W[K.selector.targetIndex]===_.focusNode})},{default:q(()=>[ye(Tt($(Ui)(W[K.selector.targetIndex])),1)]),_:2},1032,["onClick","class"])]),_:2},1024))),128))]),_:2},1024)]),_:2},1032,["name"]))),128))]),_:1},8,["expandedNames"])])]),_:1},8,["initialValue","show"]),B(Wi,{initialValue:{bottom:8,right:16},minWidth:300,class:"z-1 box-shadow-dim rounded-1/2 bg-white",show:!$(m)},{default:q(({onRef:Ot,moved:K})=>[A("div",{ref:Ot},[B(N,{onClick:Zt=>{K||(m.value=!$(m))},circle:"",size:"large",title:"搜索面板"},{icon:q(()=>[B(x,null,{default:q(()=>v[15]||(v[15]=[A("svg",{viewBox:"0 0 24 24"},[A("path",{fill:"currentColor",d:"M2 19v-2h10v2zm0-5v-2h5v2zm0-5V7h5v2zm18.6 10l-3.85-3.85q-.6.425-1.312.638T14 16q-2.075 0-3.537-1.463T9 11t1.463-3.537T14 6t3.538 1.463T19 11q0 .725-.213 1.438t-.637 1.312L22 17.6zM14 14q1.25 0 2.125-.875T17 11t-.875-2.125T14 8t-2.125.875T11 11t.875 2.125T14 14"})],-1)])),_:1})]),_:2},1032,["onClick"])],512)]),_:1},8,["show"])],64)}}}),Hf=[],Uy=Rt((t,e)=>{const n=Z(()=>t.tag||"div");return()=>{var o,s,l,c;const r=(((s=(o=e.slots).default)==null?void 0:s.call(o))||Hf).filter(f=>typeof f.type!="symbol"),a=[];if(r.length>0&&a.push(r[0]),r.length>1)for(let f=1;f<r.length;f++){const h=((c=(l=e.slots).gap)==null?void 0:c.call(l,{index:f-1}))||Hf;a.push(...h),a.push(r[f])}return t.virtual?a:L(n.value,t,a)}},{props:["tag","virtual"]}),Wy={flex:"","flex-col":""},Hy={flex:"","items-center":"","px-8px":""},Vy={key:0,"w-1px":"","bg-gray":"","h-12px":""},Qy={href:"/",flex:"",title:"首页","mr-4px":""},Gy={flex:"","items-center":"","gap-2px":"","max-w-120px":""},Jy={"ml-8px":""},Yy=Rt({__name:"WindowCard",props:{snapshot:{},rootNode:{},focusNode:{},focusCount:{},onUpdateFocusNode:{type:Function,default:fi}},setup(t){const e=t,n=At([]);Pr([()=>e.focusNode,()=>e.focusCount],async()=>{if(!e.focusNode)return;const h=e.focusNode.id;ga().then(async()=>{var g,m;await ec(100),h===((g=e.focusNode)==null?void 0:g.id)&&((m=r.value)==null||m.scrollTo({key:h,behavior:"smooth",debounce:!0}))});let d=e.focusNode.parent;if(!d)return;const p=new Set(n.value);for(;d;)p.add(d.id),d=d.parent;p.size==n.value.length&&n.value.every(g=>p.has(g))||(n.value=[...p])});const r=At(),a=(h,d)=>{var p;return d.id===((p=e.focusNode)==null?void 0:p.id)},o=h=>{var p;const d=h.option.idQf||h.option.textQf||h.option.quickFind;return{onClick:()=>{e.onUpdateFocusNode(h.option)},style:{color:h.option.id==((p=e.focusNode)==null?void 0:p.id)?"#00F":void 0,fontWeight:d?"bold":void 0}}},s=h=>Ui(h.option),l=Z(()=>`${sf(e.snapshot).manufacturer} Android ${sf(e.snapshot).release||""}`),c=Z(()=>tr(e.snapshot).isSystem),f=Z(()=>!e.snapshot.activityId||!e.snapshot.appId?"":e.snapshot.activityId.startsWith(e.snapshot.appId)&&e.snapshot.activityId.length>e.snapshot.appId.length?e.snapshot.activityId.substring(e.snapshot.appId.length):e.snapshot.activityId);return(h,d)=>{const p=Fa,g=Eo,m=nc,_=Mv;return et(),ae("div",Wy,[A("div",Hy,[B($(Uy),{flex:"","flex-wrap":"","items-center":"","gap-8px":"",gkd_code:""},{gap:q(({index:v})=>[v>0?(et(),ae("div",Vy)):ge("",!0)]),default:q(()=>[A("a",Qy,[B(g,{text:""},{icon:q(()=>[B(p,null,{default:q(()=>d[7]||(d[7]=[A("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[A("path",{d:"M16.612 2.214a1.01 1.01 0 0 0-1.242 0L1 13.419l1.243 1.572L4 13.621V26a2.004 2.004 0 0 0 2 2h20a2.004 2.004 0 0 0 2-2V13.63L29.757 15L31 13.428zM18 26h-4v-8h4zm2 0v-8a2.002 2.002 0 0 0-2-2h-4a2.002 2.002 0 0 0-2 2v8H6V12.062l10-7.79l10 7.8V26z",fill:"currentColor"})],-1)])),_:1})]),_:1})]),B(m,null,{trigger:q(()=>[A("div",{onClick:d[0]||(d[0]=v=>$(er)($(l)))},Tt($(l)),1)]),default:q(()=>[d[8]||(d[8]=ye(" 设备名称 "))]),_:1}),B(m,null,{trigger:q(()=>[A("div",{class:Kr({"opacity-50":!$(lf)(h.snapshot).versionName})},Tt($(lf)(h.snapshot).versionName||"null"),3)]),default:q(()=>[d[9]||(d[9]=ye(" GKD 版本 "))]),_:1}),A("div",Gy,[$(c)?(et(),de(m,{key:0},{trigger:q(()=>[B(p,{size:14},{default:q(()=>d[10]||(d[10]=[A("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},[A("path",{d:"M19.43 12.98c.04-.32.07-.64.07-.98c0-.34-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46a.5.5 0 0 0-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65A.488.488 0 0 0 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1a.566.566 0 0 0-.18-.03c-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98c0 .33.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46a.5.5 0 0 0 .61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.06.02.12.03.18.03c.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zm-1.98-1.71c.04.31.05.52.05.73c0 .21-.02.43-.05.73l-.14 1.13l.89.7l1.08.84l-.7 1.21l-1.27-.51l-1.04-.42l-.9.68c-.43.32-.84.56-1.25.73l-1.06.43l-.16 1.13l-.2 1.35h-1.4l-.19-1.35l-.16-1.13l-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7l-1.06.43l-1.27.51l-.7-1.21l1.08-.84l.89-.7l-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13l-.89-.7l-1.08-.84l.7-1.21l1.27.51l1.04.42l.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43l.16-1.13l.2-1.35h1.39l.19 1.35l.16 1.13l1.06.43c.43.18.83.41 1.23.71l.91.7l1.06-.43l1.27-.51l.7 1.21l-1.07.85l-.89.7l.14 1.13zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4s4-1.79 4-4s-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2s2 .9 2 2s-.9 2-2 2z",fill:"currentColor"})],-1)])),_:1})]),default:q(()=>[d[11]||(d[11]=ye(" 系统应用 "))]),_:1})):ge("",!0),B(m,null,{trigger:q(()=>[A("div",{onClick:d[1]||(d[1]=v=>$(er)($(tr)(h.snapshot).name))},Tt($(tr)(h.snapshot).name),1)]),default:q(()=>[d[12]||(d[12]=ye(" 应用名称 "))]),_:1})]),B(m,null,{trigger:q(()=>[A("div",{onClick:d[2]||(d[2]=v=>$(er)($(tr)(h.snapshot).versionName))},Tt($(tr)(h.snapshot).versionName),1)]),default:q(()=>[d[13]||(d[13]=ye(" 版本名称 "))]),_:1}),B(m,null,{trigger:q(()=>[A("div",{onClick:d[3]||(d[3]=v=>$(er)($(tr)(h.snapshot).versionCode.toString()))},Tt($(tr)(h.snapshot).versionCode),1)]),default:q(()=>[d[14]||(d[14]=ye(" 版本代码 "))]),_:1}),B(m,null,{trigger:q(()=>[A("div",{onClick:d[4]||(d[4]=v=>$(er)(h.snapshot.appId))},Tt(h.snapshot.appId),1)]),default:q(()=>[d[15]||(d[15]=ye(" 应用ID "))]),_:1}),B(m,null,{trigger:q(()=>[A("div",{onClick:d[5]||(d[5]=v=>$(er)($(f))),class:Kr({"opacity-50":!$(f)})},Tt($(f)||"null"),3)]),default:q(()=>[d[16]||(d[16]=ye(" 界面ID "))]),_:1})]),_:1}),d[17]||(d[17]=A("div",{"flex-1":""},null,-1)),A("div",Jy,[Xf(h.$slots,"default")])]),d[18]||(d[18]=A("div",{"h-1px":"","mt-4px":"",bg:"#efeff5"},null,-1)),B(_,{ref_key:"treeRef",ref:r,virtualScroll:"",showLine:"",keyField:"id",expandedKeys:$(n),"onUpdate:expandedKeys":d[6]||(d[6]=v=>Ki(n)?n.value=v:null),data:[h.rootNode],filter:a,nodeProps:o,renderLabel:s},null,8,["expandedKeys","data","filter","nodeProps","renderLabel"])])}}}),Xy={"bg-white":"","b-1px":"","b-solid":"","b-gray-200":"","rounded-4px":"","p-8px":""},Zy={flex:"","m-b-4px":"","pr-4px":""},tw={"min-h-24px":""},ew={key:0,"color-red":"","whitespace-pre":""},nw=Rt({__name:"RuleCard",props:{root:{},focusNode:{},onUpdateFocusNode:{}},setup(t){const e=t,n=At(!1),r=At(""),a=W1(r,500),o=f=>{if(f==null)return[];if(typeof f=="string")return[f];if(Array.isArray(f)&&f.every(h=>typeof h=="string"))return f},s=Z(()=>{if(!a.value)return"";const f=(()=>{try{return ac.parse(a.value)}catch(b){return b}})();if(f instanceof Error)return`非法格式: ${f.message}`;if(typeof f!="object"&&f!==null)return"非法格式: 请使用对象格式";const h=o(f.matches);if(!h)return"非法格式: matches";const d=o(f.anyMatches);if(!d)return"非法格式: anyMatches";const p=o(f.excludeMatches);if(!p)return"非法格式: excludeMatches";const g=[];for(let b=0;b<h.length;b++){const x=h[b];try{g.push(vo(x))}catch(N){const T=N instanceof Error?N.message:String(N);return`非法选择器: matches[${b}]
274
- 错误: ${T}`}}const m=g.map(b=>b.querySelectorAll(e.root));if(g.length){const b=m.findIndex(x=>x.length===0);if(b>=0)return`无法匹配: matches[${b}] 查找结果为空`}const _=[];for(let b=0;b<d.length;b++){const x=d[b];try{_.push(vo(x))}catch(N){const T=N instanceof Error?N.message:String(N);return`非法选择器: anyMatches[${b}]
275
- 错误: ${T}`}}const v=_.map(b=>b.querySelectorAll(e.root));if(_.length&&v.every(b=>b.length===0))return"无法匹配: anyMatches 查找结果为空";if(!h.length&&!d.length)return"非法规则: matches 和 anyMatches 至少存在一个";const y=[];for(let b=0;b<p.length;b++){const x=p[b];try{y.push(vo(x))}catch(N){const T=N instanceof Error?N.message:String(N);return`非法选择器: excludeMatches[${b}]
276
- 错误: ${T}`}}const C=y.map(b=>b.querySelectorAll(e.root));if(y.length){const b=C.findIndex(x=>x.length!==0);if(b>=0)return`无法匹配: excludeMatches[${b}] 查找结果不为空`}return m.length?m.at(-1)[0]:v[0][0]}),l=Z(()=>r.value&&a.value&&typeof s.value=="string"?s.value:""),c=Z(()=>typeof s.value=="string"?null:s.value);return(f,h)=>{const d=Fa,p=Eo,g=ic;return et(),ae(zn,null,[B(Wi,{initialValue:{top:40,right:Math.max(315,12*$(Td)+135),width:Math.max(480,$(Md)*.3)},minWidth:300,sizeDraggable:"",class:"z-2 box-shadow-dim",show:$(n)},{default:q(({onRef:m})=>[A("div",Xy,[A("div",Zy,[h[4]||(h[4]=A("div",null,"测试规则",-1)),A("div",{"flex-1":"","cursor-move":"",ref:m},null,512),B(p,{onClick:h[0]||(h[0]=_=>n.value=!$(n)),text:"",title:"最小化"},{icon:q(()=>[B(d,null,{default:q(()=>h[3]||(h[3]=[A("svg",{viewBox:"0 0 24 24"},[A("path",{fill:"currentColor",d:"M6 13v-2h12v2z"})],-1)])),_:1})]),_:1})]),B(g,{value:$(r),"onUpdate:value":h[1]||(h[1]=_=>Ki(r)?r.value=_:null),type:"textarea",placeholder:"请输入单个规则测试",size:"small",class:"gkd_code m-b-4px",autosize:{minRows:10,maxRows:20}},null,8,["value"]),A("div",tw,[$(l)?(et(),ae("div",ew,Tt($(l)),1)):$(c)?(et(),de(p,{key:1,onClick:h[2]||(h[2]=_=>{var v;return(v=f.onUpdateFocusNode)==null?void 0:v.call(f,$(c))}),size:"small",class:Kr({"color-[#00F]":$(c)===f.focusNode})},{default:q(()=>[ye(Tt($(Ui)($(c))),1)]),_:1},8,["class"])):ge("",!0)])])]),_:1},8,["initialValue","show"]),B(Wi,{initialValue:{bottom:56,right:16},minWidth:300,class:"z-1 box-shadow-dim rounded-1/2 bg-white",show:!$(n)},{default:q(({onRef:m,moved:_})=>[A("div",{ref:m},[B(p,{onClick:v=>{_||(n.value=!$(n))},circle:"",size:"large",title:"测试规则"},{icon:q(()=>[B(d,null,{default:q(()=>h[5]||(h[5]=[A("svg",{viewBox:"0 0 24 24"},[A("path",{fill:"currentColor",d:"M14.4 20L13 18.6l2.6-2.6l-2.6-2.6l1.4-1.4l2.6 2.6l2.6-2.6l1.4 1.4l-2.6 2.6l2.6 2.6l-1.4 1.4l-2.6-2.6zm1.975-9l-3.55-3.55l1.4-1.4l2.125 2.125l4.25-4.25L22 5.35zM2 17v-2h9v2zm0-8V7h9v2z"})],-1)])),_:1})]),_:2},1032,["onClick"])],512)]),_:1},8,["show"])],64)}}}),rw={"h-full":"",flex:"","gap-5px":"","p-5px":"","box-border":""},iw={key:0,class:"gkd_code py-2px px-4px rounded-2px bg-[#eee]"},vw=Rt({__name:"SnapshotPage",setup(t){const e=(()=>{const v=()=>$1(()=>import("./TrackGraph-D0s0XMN9.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url);return setTimeout(v,1e3),x1(v)})(),n=tc(),r=E1(),a=Q1(),o=Z(()=>String(n.params.snapshotId||"")),s=Z(()=>{const v=Number(n.query.showSize||"");return!Number.isSafeInteger(v)||v<=0?2e3:v}),l=At(""),c=At();za(async()=>{if(!Number.isSafeInteger(+o.value)){En.error("非法快照ID");return}const v=await tf.getItem(o.value);if(!v){ef.start();try{const C=Bi[o.value]||await fetch("https://detect.gkd.li/api/getImportId?id="+o.value).then(b=>b.json());if(C&&Number.isSafeInteger(C)){r.replace({path:"/i/"+C,query:n.query});return}}finally{ef.finish()}En.error("快照数据缺失");return}setTimeout(()=>{const C=Bi[v.id];C&&A1(C)},1e3),q1()&&Zf.autoUploadImport&&setTimeout(async()=>{T1(v),Bi[v.id]||M1(await tf.getItem(o.value))},1e3),v.nodes.length>s.value&&(En.warning(`当前展示节点数量为${s.value}
277
- 之后的${v.nodes.length-s.value}个节点将被丢弃
278
- 使用showSize查询参数可以修改展示数量`),v.nodes=v.nodes.slice(0,s.value));const y=await S1.getItem(o.value);if(!y){En.create("截屏数据缺失");return}l.value=URL.createObjectURL(new Blob([y],{type:"image/png"})),c.value=v,f.value=U1(v.nodes),a.value="快照-"+tr(v).name||v.appId,h.value||(h.value=f.value)});const f=At(),h=At(),d=At(0),p=async()=>{En.success("删除成功,即将回到首页"),await ec(2e3),r.replace({path:"/"})},g=At(),m=At(!1);Fi(()=>{g.value&&(m.value=!0)});const _=At();return Pr(()=>h.value,v=>{var C;const y=(C=_.value)==null?void 0:C.nodes;y&&(!v||!y.includes(v))&&(_.value=void 0)}),(v,y)=>{const C=Fa,b=N1;return et(),ae(zn,null,[A("div",rw,[$(l)&&$(c)?(et(),de(Hv,{key:0,url:$(l),snapshot:$(c),rootNode:$(f),focusNode:$(h),onUpdateFocusNode:y[0]||(y[0]=x=>{h.value=x,d.value++}),onUpdateFocusNodes:y[1]||(y[1]=x=>_.value=x)},null,8,["url","snapshot","rootNode","focusNode"])):ge("",!0),$(c)&&$(f)?(et(),de(Yy,{key:1,rootNode:$(f),snapshot:$(c),focusNode:$(h),onUpdateFocusNode:y[2]||(y[2]=x=>h.value=x),focusCount:$(d),class:"flex-1"},{default:q(()=>[$(c)?(et(),de(I1,{key:0,snapshot:$(c),onDelete:p,showPreview:!1},null,8,["snapshot"])):ge("",!0)]),_:1},8,["rootNode","snapshot","focusNode","focusCount"])):ge("",!0)]),$(h)?(et(),de(Ov,{key:0,focusNode:$(h)},null,8,["focusNode"])):ge("",!0),$(f)&&$(c)?(et(),de(Ky,{key:1,snapshot:$(c),rootNode:$(f),focusNode:$(h),onUpdateFocusNode:y[3]||(y[3]=x=>{h.value=x,d.value++}),onUpdateTrack:y[4]||(y[4]=x=>g.value=x)},null,8,["snapshot","rootNode","focusNode"])):ge("",!0),B(zv,{focusNode:$(h),focusNodes:$(_),onUpdateFocusNode:y[5]||(y[5]=x=>{h.value=x,d.value++}),onClose:y[6]||(y[6]=x=>_.value=void 0)},null,8,["focusNode","focusNodes"]),$(f)?(et(),de(nw,{key:2,root:$(f),focusNode:$(h),onUpdateFocusNode:y[7]||(y[7]=x=>{h.value=x,d.value++})},null,8,["root","focusNode"])):ge("",!0),B(b,{show:$(m),"onUpdate:show":y[8]||(y[8]=x=>Ki(m)?m.value=x:null),preset:"dialog",title:"选择器路径视图",class:"min-w-[calc(var(--gkd-width)*0.4)]",onAfterLeave:y[9]||(y[9]=x=>g.value=void 0)},{icon:q(()=>[B(C,null,{default:q(()=>y[10]||(y[10]=[A("svg",{viewBox:"0 0 24 24"},[A("path",{fill:"currentColor",d:"M5 21V8.825Q4.125 8.5 3.563 7.738T3 6q0-1.25.875-2.125T6 3q1.25 0 2.125.875T9 6q0 .975-.562 1.738T7 8.825V19h4V3h8v12.175q.875.325 1.438 1.088T21 18q0 1.25-.875 2.125T18 21q-1.25 0-2.125-.875T15 18q0-.975.563-1.75T17 15.175V5h-4v16zM6 7q.425 0 .713-.288T7 6q0-.425-.288-.712T6 5q-.425 0-.712.288T5 6q0 .425.288.713T6 7m12 12q.425 0 .713-.288T19 18q0-.425-.288-.712T18 17q-.425 0-.712.288T17 18q0 .425.288.713T18 19m0-1"})],-1)])),_:1})]),default:q(()=>[$(g)?(et(),ae("div",iw,Tt($(g).selector.toString()),1)):ge("",!0),$(g)?(et(),de($(e),{key:1,track:$(g)},null,8,["track"])):ge("",!0),y[11]||(y[11]=A("div",{"opacity-75":"","text-12px":""},"*为简化视图已隐藏部分节点",-1))]),_:1},8,["show"])],64)}}});export{vw as default};
279
- //# sourceMappingURL=SnapshotPage-CJ6fnVIZ.js.map