|
|
import{d as ce,l as le,z as Ct,r as Y,w as me,c as Fn,_ as J,g as D,e as Ie,u as Dt,ad as jc,P as Oe,j as kn,m as Jt,aA as to,at as Yt,i as oe,y as Uc,ab as nr,t as Gc,T as or,h as at,v as dt,aB as un,aC as qt,aD as Yc,q as Qt,p as Lt,H as ve,s as Qe,a7 as _n,n as bt,aE as Zc,ag as ko,ai as ft,b as ot,aF as Kc,aG as Xc,J as B,ah as Qc,Q as Fe,as as Os,au as Gt,aq as pt,ay as Ke,f as De,ap as Nt,aH as Bs,aI as Jc,aJ as qc,af as Fs,aK as eu,aL as tu,C as Hs,an as dn,o as Go,a as Cn,aw as zs,aM as Ws,aN as Vs,k as js,aO as nu,x as Yo,aP as ou,ax as iu,aQ as ru,az as Us,aR as au,aS as Ri,aT as su,aj as Gs,a6 as Jo,N as ye,B as xe,E as Q,I as ie,K as z,F as be,G as U,S as xt,L as Pe,a5 as qe,O as kt,W as ht,Z as Wt,X as no,Y as ct,D as et,aU as Zn,aV as wa,aW as Kn,aX as lu,aY as cu,a0 as $e,aZ as Ys,a_ as uu,U as $n,a$ as du,ar as hu,b0 as Zs,a8 as Ks,b1 as gi,b2 as fu,b3 as pu,V as gu}from"./index-3c234266.js";import{u as St,c as Pi,a as Ni,b as Ot,i as mu,e as vu,f as yu,h as wu,j as bu,k as Xs,l as Cu,m as ir,n as xu,s as $u}from"./utils-ccf2ec76.js";import{a as Qs,b as Zo,e as rr,f as ar,u as qo,F as sr,h as yo,j as lr,k as Su,l as ku,D as _u,g as Js,m as Mu,n as Au,E as Lu,q as qs,r as Eu,t as Iu,v as Tu,N as ba,c as nt,C as _o,s as Re,I as hn,M as Bt,d as Ut,o as Ca}from"./http-02c81b8c.js";import{k as Du,l as Ru,m as qn,n as Oi,p as cr,q as Pu,K as ze,w as At,h as Nu,T as Ou,j as Bu,u as xa,r as el,t as Fu,i as ei,v as Hu,d as zu,B as Mn,x as Wu,W as Vu,y as ur,o as tl,e as Vt,z as ju,C as Uu,N as $a,s as nl,D as dr,E as Gu,b as en,A as Mo,_ as it,F as Yu,G as Zu}from"./_plugin-vue_export-helper-a1ffee7e.js";import{i as Ku}from"./isNumeric-4ba116a0.js";import{d as mt,C as Xu,b as Qu,a as ol,S as Ju,_ as il}from"./clipboard-1ec87c07.js";import{R as rl,L as qu,_ as ed,P as td,E as On,S as hr,D as nd,a as od}from"./ExclamationCircleOutlined-e5350100.js";import{u as zt,g as id,i as Sa,h as rd,f as ad,c as fn,_ as pn,F as gn,P as fr,R as xo,b as oo,S as pr,a as al,d as sd,U as ld}from"./PlusOutlined-920ae6ab.js";import{a as Hn,_ as zn}from"./index-86127553.js";import{_ as gr}from"./index-9a52c10f.js";import{s as cd,_ as ud,M as dd}from"./index-6a3b275e.js";import{s as hd,b as fd,c as pd,d as gd,i as ka,g as md,e as vd}from"./collapseMotion-ccbb3149.js";import{_ as sl,L as _a,R as Ma}from"./index.vue_vue_type_script_setup_true_lang-8ff7194a.js";import{c as ll}from"./componentGroup-1abd3da5.js";import cl from"./info-9a8ec598.js";import{c as yd}from"./componentList-d97405f6.js";import{L as mr,C as wd,t as Wo}from"./index-08b117c0.js";import{d as bd}from"./defaultAmisConfig-97f3da4b.js";import{C as ul}from"./index-6bb7022a.js";var Cd="[object Number]";function xd(e){return typeof e=="number"||Du(e)&&Ru(e)==Cd}function Aa(e){let{prefixCls:t,value:n,current:a,offset:v=0}=e,p;return v&&(p={position:"absolute",top:`${v}00%`,left:0}),D("p",{style:p,class:Ie(`${t}-only-unit`,{current:a})},[n])}function $d(e,t,n){let a=e,v=0;for(;(a+10)%10!==t;)a+=n,v+=n;return v}const Sd=ce({compatConfig:{MODE:3},name:"SingleNumber",props:{prefixCls:String,value:String,count:Number},setup(e){const t=le(()=>Number(e.value)),n=le(()=>Math.abs(e.count)),a=Ct({prevValue:t.value,prevCount:n.value}),v=()=>{a.prevValue=t.value,a.prevCount=n.value},p=Y();return me(t,()=>{clearTimeout(p.value),p.value=setTimeout(()=>{v()},1e3)},{flush:"post"}),Fn(()=>{clearTimeout(p.value)}),()=>{let f,m={};const c=t.value;if(a.prevValue===c||Number.isNaN(c)||Number.isNaN(a.prevValue))f=[Aa(J(J({},e),{current:!0}))],m={transition:"none"};else{f=[];const h=c+10,i=[];for(let s=c;s<=h;s+=1)i.push(s);const o=i.findIndex(s=>s%10===a.prevValue);f=i.map((s,r)=>{const u=s%10;return Aa(J(J({},e),{value:u,offset:r-o,current:r===o}))});const l=a.prevCount<n.value?1:-1;m={transform:`translateY(${-$d(a.prevValue,c,l)}00%)`}}return D("span",{class:`${e.prefixCls}-only`,style:m,onTransitionend:()=>v()},[f])}}});var kd=globalThis&&globalThis.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnP &:hover:not(${n}-selected):not(${n}-range-start):not(${n}-range-end):not(${n}-range-hover-start):not(${n}-range-hover-end)`]:{[a]:{background:c}},[`&-in-view${n}-today ${a}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${h}px ${i} ${o}`,borderRadius:f,content:'""'}},[`&-in-view${n}-in-range`]:{position:"relative","&::before":{background:l}},[`&-in-view${n}-selected ${a}, &-in-view${n}-range-start ${a}, &-in-view${n}-range-end ${a}`]:{color:s,background:o},[`&-in-view${n}-range-start:not(${n}-range-start-single), &-in-view${n}-range-end:not(${n}-range-end-single)`]:{"&::before":{background:l}},[`&-in-view${n}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${n}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${n}-range-hover-start:not(${n}-in-range):not(${n}-range-start):not(${n}-range-end), &-in-view${n}-range-hover-end:not(${n}-in-range):not(${n}-range-start):not(${n}-range-end), &-in-view${n}-range-hover-start${n}-range-start-single, &-in-view${n}-range-hover-start${n}-range-start${n}-range-end${n}-range-end-near-hover, &-in-view${n}-range-hover-end${n}-range-start${n}-range-end${n}-range-start-near-hover, &-in-view${n}-range-hover-end${n}-range-end-single, &-in-view${n}-range-hover:not(${n}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:r,borderTop:`${h}px dashed ${u}`,borderBottom:`${h}px dashed ${u}`,transform:"translateY(-50%)",transition:`all ${p}`,content:'""'}},"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after":{insetInlineEnd:0,insetInlineStart:d},[`&-in-view${n}-in-range${n}-range-hover::before, &-in-view${n}-range-start${n}-range-hover::before, &-in-view${n}-range-end${n}-range-hover::before, &-in-view${n}-range-start:not(${n}-range-start-single)${n}-range-hover-start::before, &-in-view${n}-range-end:not(${n}-range-end-single)${n}-range-hover-end::before, ${t}-panel > :not(${t}-date-panel) &-in-view${n}-in-range${n}-range-hover-start::before, ${t}-panel > :not(${t}-date-panel) &-in-view${n}-in-range${n}-range-hover-end::before`]:{background:g},[`&-in-view${n}-range-start:not(${n}-range-start-single):not(${n}-range-end) ${a}`]:{borderStartStartRadius:f,borderEndStartRadius:f,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${n}-range-end:not(${n}-range-end-single):not(${n}-range-start) ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:f,borderEndEndRadius:f},[`&-range-hover${n}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${n}-range-hover:first-child::after, tr > &-in-view${n}-range-hover-end:first-child::after, &-in-view${n}-start${n}-range-hover-edge-start${n}-range-hover-edge-start-near-range::after, &-in-view${n}-range-hover-edge-start:not(${n}-range-hover-edge-start-near-range)::after, &-in-view${n}-range-hover-start::after`]:{insetInlineStart:(y-v)/2,borderInlineStart:`${h}px dashed ${u}`,borderStartStartRadius:h,borderEndStartRadius:h},[`tr > &-in-view${n}-range-hover:last-child::after, tr > &-in-view${n}-range-hover-start:last-child::after, &-in-view${n}-end${n}-range-hover-edge-end${n}-range-hover-edge-end-near-range::after, &-in-view${n}-range-hover-edge-end:not(${n}-range-hover-edge-end-near-range)::after, &-in-view${n}-range-hover-end::after`]:{insetInlineEnd:(y-v)/2,borderInlineEnd:`${h}px dashed ${u}`,borderStartEndRadius:h,borderEndEndRadius:h},"&-disabled":{color:x,pointerEvents:"none",[a]:{background:"transparent"},"&::before":{background:C}},[`&-disabled${n}-today ${a}::before`]:{borderColor:x}}},Uh=e=>{const{componentCls:t,pickerCellInnerCls:n,pickerYearMonthCellWidth:a,pickerControlIconSize:v,pickerPanelCellWidth:p,paddingSM:f,paddingXS:m,paddingXXS:c,colorBgContainer:h,lineWidth:i,lineType:o,borderRadiusLG:l,colorPrimary:s,colorTextHeading:r,colorSplit:u,pickerControlIconBorderWidth:d,colorIcon:g,pickerTextHeight:y,motionDurationMid:x,colorIconHover:C,fontWeightStrong:b,pickerPanelCellHeight:w,pickerCellPaddingVertical:_,colorTextDisabled:I,colorText:E,fontSize:k,pickerBasicCellHoverWithRangeColor:A,motionDurationSlow:S,pickerPanelWithoutTimeCellHeight:M,pickerQuarterPanelContentHeight:$,colorLink:L,colorLinkActive:T,colorLinkHover:R,pickerDateHoverRangeBorderColor:P,borderRadiusSM:F,colorTextLightSolid:O,borderRadius:N,controlItemBgHover:V,pickerTimePanelColumnHeight:H,pickerTimePanelColumnWidth:W,pickerTimePanelCellHeight:j,controlItemBgActive:Z,marginXXS:q}=e,G=p*7+f*2+4,K=(G-m*2)/3-a-f;return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:h,border:`${i}px ${o} ${u}`,borderRadius:l,outline:"none","&-focused":{borderColor:s},"&-rtl":{direction:"rtl",[`${t}-prev-icon, ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon, ${t}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:G},"&-header":{display:"flex",padding:`0 ${m}px`,color:r,borderBottom:`${i}px ${o} ${u}`,"> *":{flex:"none"},button:{padding:0,color:g,lineHeight:`${y}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${x}`},"> button":{minWidth:"1.6em",fontSize:k,"&:hover":{color:C}},"&-view":{flex:"auto",fontWeight:b,lineHeight:`${y}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:m},"&:hover":{color:s}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:v,height:v,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:v,height:v,border:"0 solid currentcolor",borderBlockStartWidth:d,borderBlockEndWidth:0,borderInlineStartWidth:d,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(v/2),insetInlineStart:Math.ceil(v/2),display:"inline-block",width:v,height:v,border:"0 solid currentcolor",borderBlockStartWidth:d,borderBlockEndWidth:0,borderInlineStartWidth:d,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:w,fontWeight:"normal"},th:{height:w+_*2,color:E,verticalAlign:"middle"}},"&-cell":J({padding:`${_}px 0`,color:I,cursor:"pointer","&-in-view":{color:E}},jh(e)),[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-start ${n}, &-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-end ${n}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:A,transition:`all ${S}`,content:'""'}},[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-start ${n}::after`]:{insetInlineEnd:-(p-w)/2,insetInlineStart:0},[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-end ${n}::after`]:{insetInlineEnd:0,insetInlineStart:-(p-w)/2},[`&-range-hover${t}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:M*4},[n]:{padding:`0 ${m}px`}},"&-quarter-panel":{[`${t}-content`]:{height:$}},[`&-panel ${t}-footer`]:{borderTop:`${i}px ${o} ${u}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:`${y-2*i}px`,textAlign:"center","&-extra":{padding:`0 ${f}`,lineHeight:`${y-2*i}px`,textAlign:"start","&:not(:last-child)":{borderBottom:`${i}px ${o} ${u}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:L,"&:hover":{color:R},"&:active":{color:T},[`&${t}-today-btn-disabled`]:{color:I,cursor:"not-allowed"}},"&-decade-panel":{[n]:{padding:`0 ${m/2}px`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${m}px`},[n]:{width:a},[`${t}-cell-range-hover-start::after`]:{insetInlineStart:K,borderInlineStart:`${i}px dashed ${P}`,borderStartStartRadius:F,borderBottomStartRadius:F,borderStartEndRadius:0,borderBottomEndRadius:0,[`${t}-panel-rtl &`]:{insetInlineEnd:K,borderInlineEnd:`${i}px dashed ${P}`,borderStartStartRadius:0,borderBottomStartRadius:0,borderStartEndRadius:F,borderBottomEndRadius:F}},[`${t}-cell-range-hover-end::after`]:{insetInlineEnd:K,borderInlineEnd:`${i}px dashed ${P}`,borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:N,borderEndEndRadius:N,[`${t}-panel-rtl &`]:{insetInlineStart:K,borderInlineStart:`${i}px dashed ${P}`,borderStartStartRadius:N,borderEndStartRadius:N,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-week-panel":{[`${t}-body`]:{padding:`${m}px ${f}px`},[`${t}-cell`]:{[`&:hover ${n}, &-selected ${n}, ${n}`]:{background:"transparent !important"}},"&-row":{td:{transition:`background ${x}`,"&:first-child":{borderStartStartRadius:F,borderEndStartRadius:F},"&:last-child":{borderStartEndRadius:F,borderEndEndRadius:F}},"&:hover td":{background:V},"&-selected td,\n &-selected:hover td":{background:s,[`&${t}-cell-week`]:{color:new Gt(O).setAlpha(.5).toHexString()},[`&${t}-cell-today ${n}::before`]:{borderColor:O},[n]:{color:O}}}},"&-date-panel":{[`${t}-body`]:{padding:`${m}px ${f}px`},[`${t}-content`]:{width:p*7,th:{width:p}}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${i}px ${o} ${u}`},[`${t}-date-panel, ${t}-time-panel`]:{transition:`opacity ${S}`},"&-active":{[`${t}-date-panel, ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${t}-content`]:{display:"flex",flex:"auto",height:H},"&-column":{flex:"1 0 auto",width:W,margin:`${c}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${x}`,overflowX:"hidden","&::after":{display:"block",height:H-j,content:'""'},"&:not(:first-child)":{borderInlineStart:`${i}px ${o} ${u}`},"&-active":{background:new Gt(Z).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:q,[`${t}-time-panel-cell-inner`]:{display:"block",width:W-2*q,height:j,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(W-j)/2,color:E,lineHeight:`${j}px`,borderRadius:F,cursor:"pointer",transition:`background ${x}`,"&:hover":{background:V}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:Z}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:I,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${t}-time-panel-column:after`]:{height:H-j+c*2}}}},Gh=e=>{const{componentCls:t,colorBgContainer:n,colorError:a,colorErrorOutline:v,colorWarning:p,colorWarningOutline:f}=e;return{[t]:{[`&-status-error${t}`]:{"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:a},"&-focused, &:focus":J({},Zo(Jt(e,{inputBorderActiveColor:a,inputBorderHoverColor:a,controlOutline:v}))),[`${t}-active-bar`]:{background:a}},[`&-status-warning${t}`]:{"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:p},"&-focused, &:focus":J({},Zo(Jt(e,{inputBorderActiveColor:p,inputBorderHoverColor:p,controlOutline:f}))),[`${t}-active-bar`]:{background:p}}}}},Yh=e=>{const{componentCls:t,antCls:n,boxShadowPopoverArrow:a,controlHeight:v,fontSize:p,inputPaddingHorizontal:f,colorBgContainer:m,lineWidth:c,lineType:h,colorBorder:i,borderRadius:o,motionDurationMid:l,colorBgContainerDisabled:s,colorTextDisabled:r,colorTextPlaceholder:u,controlHeightLG:d,fontSizeLG:g,controlHeightSM:y,inputPaddingHorizontalSM:x,paddingXS:C,marginXS:b,colorTextDescription:w,lineWidthBold:_,lineHeight:I,colorPrimary:E,motionDurationSlow:k,zIndexPopup:A,paddingXXS:S,paddingSM:M,pickerTextHeight:$,controlItemBgActive:L,colorPrimaryBorder:T,sizePopupArrow:R,borderRadiusXS:P,borderRadiusOuter:F,colorBgElevated:O,borderRadiusLG:N,boxShadowSecondary:V,borderRadiusSM:H,colorSplit:W,controlItemBgHover:j,presetsWidth:Z,presetsMaxWidth:q}=e;return[{[t]:J(J(J({},Yt(e)),yi(e,v,p,f)),{position:"relative",display:"inline-flex",alignItems:"center",background:m,lineHeight:1,border:`${c}px ${h} ${i}`,borderRadius:o,transition:`border ${l}, box-shadow ${l}`,"&:hover, &-focused":J({},rr(e)),"&-focused":J({},Zo(e)),[`&${t}-disabled`]:{background:s,borderColor:i,cursor:"not-allowed",[`${t}-suffix`]:{color:r}},[`&${t}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":J(J({},ar(e)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${t}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:u}}},"&-large":J(J({},yi(e,d,g,f)),{[`${t}-input > input`]:{fontSize:g}}),"&-small":J({},yi(e,y,p,x)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:C/2,color:r,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:b}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:r,lineHeight:1,background:m,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${l}, color ${l}`,"> *":{verticalAlign:"top"},"&:hover":{color:w}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:g,color:r,fontSize:g,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:w},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{p
&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight, &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft, &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:hd},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft, &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight, &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft, &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:fd},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft, &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:pd},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft, &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:gd},[`${t}-panel > ${t}-time-panel`]:{paddingTop:S},[`${t}-ranges`]:{marginBottom:0,padding:`${S}px ${M}px`,overflow:"hidden",lineHeight:`${$-2*c-C/2}px`,textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${t}-preset > ${n}-tag-blue`]:{color:E,background:L,borderColor:T,cursor:"pointer"},[`${t}-ok`]:{marginInlineStart:"auto"}},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:J({position:"absolute",zIndex:1,display:"none",marginInlineStart:f*1.5,transition:`left ${k} ease-out`},Fu(R,P,F,O,a)),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:O,borderRadius:N,boxShadow:V,transition:`margin ${k}`,[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:Z,maxWidth:q,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:C,borderInlineEnd:`${c}px ${h} ${W}`,li:J(J({},Os),{borderRadius:H,paddingInline:C,paddingBlock:(y-Math.round(p*I))/2,cursor:"pointer",transition:`all ${k}`,"+ li":{marginTop:b},"&:hover":{background:j}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${t}-panel`]:{borderWidth:`0 0 ${c}px`},"&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:i}}}}),"&-dropdown-range":{padding:`${R*2/3}px 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},ka(e,"slide-up"),ka(e,"slide-down"),Sa(e,"move-up"),Sa(e,"move-down")]},Zh=e=>{const{componentCls:n,controlHeightLG:a,controlHeightSM:v,colorPrimary:p,paddingXXS:f}=e;return{pickerCellCls:`${n}-cell`,pickerCellInnerCls:`${n}-cell-inner`,pickerTextHeight:a,pickerPanelCellWidth:v*1.5,pickerPanelCellHeight:v,pickerDateHoverRangeBorderColor:new Gt(p).lighten(20).toHexString(),pickerBasicCellHoverWithRangeColor:new Gt(p).lighten(35).toHexString(),pickerPanelWithoutTimeCellHeight:a*1.65,pickerYearMonthCellWidth:a*1.5,pickerTimePanelColumnHeight:28*8,pickerTimePanelColumnWidth:a*1.4,pickerTimePanelCellHeight:28,pickerQuarterPanelContentHeight:a*1.4,pickerCellPaddingVertical:f,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5}},Hl=kn("DatePicker",e=>{const t=Jt(Qs(e),Zh(e));return[Yh(t),Gh(t),el(e,{focusElCls:`${e.componentCls}-focused`})]},e=>({presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50})),Kh=()=>({prefixCls:String,activeKey:pt([Array,Number,String]),defaultActiveKey:pt([Array,Number,String]),accordion:Ke(),destroyInactivePanel:Ke(),bordered:Ke(),expandIcon:De(),openAnimation:Oe.object,expandIconPosition:Nt(),collapsible:Nt(),ghost:Ke(),onChange:De(),"onUpdate:activeKey":De()}),zl=()=>({openAnimation:Oe.object,prefixCls:String,header:Oe.any,headerClass:String,showArrow:Ke(),isActive:Ke(),destroyInactivePanel:Ke(),disabled:Ke(),accordion:Ke(),forceRender:Ke(),expandIcon:De(),extra:Oe.any,panelKey:pt(),collapsible:Nt(),role:String,onItemClick:De()}),Xh=e=>{const{componentCls:t,collapseContentBg:n,padding:a,collapseContentPaddingHorizontal:v,collapseHeaderBg:p,collapseHeaderPadding:f,collapsePanelBorderRadius:m,lineWidth:c,lineType:h,colorBorder:i,colorText:o,colorTextHeading:l,colorTextDisabled:s,fontSize:r,lineHeight:u,marginSM:d,paddingSM:g,motionDurationSlow:y,fontSizeIcon:x}=e,C=`${c}px ${h} ${i}`;return{[t]:J(J({},Yt(e)),{backgroundColor:p,border:C,borderBottom:0,borderRadius:`${m}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:C,"&:last-child":{[` &, & > ${t}-header`]:{borderRadius:`0 0 ${m}px ${m}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:f,color:l,lineHeight:u,cursor:"pointer",transition:`all ${y}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:r*u,display:"flex",alignItems:"center",paddingInlineEnd:d},[`${t}-arrow`]:J(J({},Bs()),{fontSize:x,svg:{transition:`transform ${y}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}},[`&${t}-no-arrow`]:{[`> ${t}-header`]:{paddingInlineStart:g}}},[`${t}-content`]:{color:o,backgroundColor:n,borderTop:C,[`& > ${t}-content-box`]:{padding:`${a}px ${v}px`},"&-hidden":{display:"none"}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${m}px ${m}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:s,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:d}}}}})}},Qh=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},Jh=e=>{const{componentCls:t,collapseHeaderBg:n,paddingXXS:a,colorBorder:v}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${v}`},[` > ${t}-item:last-child, > ${t}-item:last-child ${t}-header `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:a}}}},qh=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},ef=kn("Collapse",e=>{const t=Jt(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return[Xh(t),Jh(t),qh(t),Qh(t),md(t)]});function Oa(e){let t=e;if(!Array.isArray(t)){const n=typeof t;t=n==="number"||n==="string"?[t]:[]}return t.map(n=>String(n))}const Sn=ce({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:ei(Kh(),{accordion:!1,destroyInactivePanel:!1,bordered:!0,expandIconPosition:"start"}),slots:Object,setup(e,t){let{attrs:n,slots:a,emit:v}=t;const p=Y(Oa(Hu([e.activeKey,e.defaultActiveKey])));me(()=>e.activeKey,()=>{p.value=Oa(e.activeKey)},{deep:!0});const{prefixCls:f,direction:m,rootPrefixCls:c}=Dt("collapse",e),[h,i]=ef(f),o=le(()=>{const{expandIconPosition:g}=e;return g!==void 0?g:m.value==="rtl"?"end":"start"}),l=g=>{const{expandIcon:y=a.expandIcon}=e,x=y?y(g):D(rl,{rotate:g.isActive?90:void 0},null);return D("div",{class:[`${f.value}-expand-icon`,i.value],onClick:()=>["header","icon"].includes(e.collapsible)&&r(g.panelKey)},[Fs(Array.isArray(y)?x[0]:x)?qn(x,{class:`${f.value}-arrow`},!1):x])},s=g=>{e.activeKey===void 0&&(p.value=g);const y=e.accordion?g[0]:g;v("update:activeKey",y),v("change",y)},r=g=>{let y=p.value;if(e.accordion)y=y[0]===g?[]:[g];else{y=[...y];const x=y.indexOf(g);x>-1?y.splice(x,1):y.push(g)}s(y)},u=(g,y)=>{var x,C,b;if(qc(g))return;const w=p.value,{accordion:_,destroyInactivePanel:I,collapsible:E,openAnimation:k}=e,A=k||vd(`${c.value}-motion-collapse`),S=String((x=g.key)!==null&&x!==void 0?x:y),{header:M=(b=(C=g.children)===null||C===void 0?void 0:C.header)===null||b===void 0?void 0:b.call(C),headerClass:$,collapsible:L,disabled:T}=g.props||{};let R=!1;_?R=w[0]===S:R=w.indexOf(S)>-1;let P=L??E;(T||T==="")&&(P="disabled");const F={key:S,panelKey:S,header:M,headerClass:$,isActive:R,prefixCls:f.value,destroyInactivePanel:I,openAnimation:A,accordion:_,onItemClick:P==="disabled"?null:r,expandIcon:l,collapsible:P};return qn(g,F)},d=()=>{var g;return nr((g=a.default)===null||g===void 0?void 0:g.call(a)).map(u)};return()=>{const{accordion:g,bordered:y,ghost:x}=e,C=Ie(f.value,{[`${f.value}-borderless`]:!y,[`${f.value}-icon-position-${o.value}`]:!0,[`${f.value}-rtl`]:m.value==="rtl",[`${f.value}-ghost`]:!!x,[n.class]:!!n.class},i.value);return h(D("div",oe(oe({class:C},Jc(n)),{},{style:n.style,role:g?"tablist":null}),[d()]))}}}),tf=ce({compatConfig:{MODE:3},name:"PanelContent",props:zl(),setup(e,t){let{slots:n}=t;const a=Qe(!1);return ko(()=>{(e.isActive||e.forceRender)&&(a.value=!0)}),()=>{var v;if(!a.value)return null;const{prefixCls:p,isActive:f,role:m}=e;return D("div",{class:Ie(`${p}-content`,{[`${p}-content-active`]:f,[`${p}-content-inactive`]:!f}),role:m},[D("div",{class:`${p}-content-box`},[(v=n.default)===null||v===void 0?void 0:v.call(n)])])}}}),Bn=ce({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:ei(zl(),{showArrow:!0,isActive:!1,onItemClick(){},headerClass:"",forceRender:!1}),slots:Object,setup(e,t){let{slots:n,emit:a,attrs:v}=t;zu(e.disabled===void 0,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');const{prefixCls:p}=Dt("collapse",e),f=()=>{a("itemClick",e.panelKey)},m=c=>{(c.key==="Enter"||c.keyCode===13||c.which===13)&&f()};return()=>{var c,h;const{header:i=(c=n.header)===null||c===void 0?void 0:c.call(n),headerClass:o,isActive:l,showArrow:s,destroyInactivePanel:r,accordion:u,forceRender:d,openAnimation:g,expandIcon:y=n.expandIcon,extra:x=(h=n.extra)===null||h===void 0?void 0:h.call(n),collapsible:C}=e,b=C===
${t}-handler-up-inner, ${t}-handler-down-inner `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:o,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${a} ${v}`,transition:`all ${l} linear`,"&:active":{background:e.colorFillAlter},"&:hover":{height:"60%",[` ${t}-handler-up-inner, ${t}-handler-down-inner `]:{color:s}},"&-up-inner, &-down-inner":J(J({},Bs()),{color:o,transition:`all ${l} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:p},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${a} ${v}`,borderEndEndRadius:p},"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"}},[` ${t}-handler-up-disabled, ${t}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${t}-handler-up-disabled:hover &-handler-up-inner, ${t}-handler-down-disabled:hover &-handler-down-inner `]:{color:g}}},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},Rp=e=>{const{componentCls:t,inputPaddingHorizontal:n,inputAffixPadding:a,controlWidth:v,borderRadiusLG:p,borderRadiusSM:f}=e;return{[`${t}-affix-wrapper`]:J(J(J({},ar(e)),qs(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:v,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:p},"&-sm":{borderRadius:f},[`&:not(${t}-affix-wrapper-disabled):hover`]:J(J({},rr(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:0},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:a},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:n,marginInlineStart:a}}})}},Pp=kn("InputNumber",e=>{const t=Qs(e);return[Dp(t),Rp(t),el(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto"}));var Np=globalThis&&globalThis.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,a=Object.getOwnPropertySymbols(e);v<a.length;v++)t.indexOf(a[v])<0&&Object.prototype.propertyIsEnumerable.call(e,a[v])&&(n[a[v]]=e[a[v]]);return n};const Ja=oc(),Op=()=>J(J({},Ja),{size:Nt(),bordered:Ke(!0),placeholder:String,name:String,id:String,type:String,addonBefore:Oe.any,addonAfter:Oe.any,prefix:Oe.any,"onUpdate:value":Ja.onChange,valueModifiers:Object,status:Nt()}),ki=ce({compatConfig:{MODE:3},name:"AInputNumber",inheritAttrs:!1,props:Op(),slots:Object,setup(e,t){let{emit:n,expose:a,attrs:v,slots:p}=t;var f;const m=qo(),c=sr.useInject(),h=le(()=>lr(c.status,e.status)),{prefixCls:i,size:o,direction:l,disabled:s}=Dt("input-number",e),{compactSize:r,compactItemClassnames:u}=ur(i,l),d=ru(),g=le(()=>{var M;return(M=s.value)!==null&&M!==void 0?M:d.value}),[y,x]=Pp(i),C=le(()=>r.value||o.value),b=Qe((f=e.value)!==null&&f!==void 0?f:e.defaultValue),w=Qe(!1);me(()=>e.value,()=>{b.value=e.value});const _=Qe(null),I=()=>{var M;(M=_.value)===null||M===void 0||M.focus()};a({focus:I,blur:()=>{var M;(M=_.value)===null||M===void 0||M.blur()}});const k=M=>{e.value===void 0&&(b.value=M),n("update:value",M),n("change",M),m.onFieldChange()},A=M=>{w.value=!1,n("blur",M),m.onFieldBlur()},S=M=>{w.value=!0,n("focus",M)};return()=>{var M,$,L,T;const{hasFeedback:R,isFormItemInput:P,feedbackIcon:F}=c,O=(M=e.id)!==null&&M!==void 0?M:m.id.value,N=J(J(J({},v),e),{id:O,disabled:g.value}),{class:V,bordered:H,readonly:W,style:j,addonBefore:Z=($=p.addonBefore)===null||$===void 0?void 0:$.call(p),addonAfter:q=(L=p.addonAfter)===null||L===void 0?void 0:L.call(p),prefix:G=(T=p.prefix)===null||T===void 0?void 0:T.call(p),valueModifiers:K={}}=N,ee=Np(N,["class","bordered","readonly","style","addonBefore","addonAfter","prefix","valueModifiers"]),te=i.value,ae=Ie({[`${te}-lg`]:C.value==="large",[`${te}-sm`]:C.value==="small",[`${te}-rtl`]:l.value==="rtl",[`${te}-readonly`]:W,[`${te}-borderless`]:!H,[`${te}-in-form-item`]:P},yo(te,h.value),V,u.value,x.value);let de=D(Tp,oe(oe({},tl(ee,["size","defaultValue"])),{},{ref:_,lazy:!!K.lazy,value:b.value,class:ae,prefixCls:te,readonly:W,onChange:k,onBlur:A,onFocus:S}),{upHandler:p.upIcon?()=>D("span",{class:`${te}-handler-up-inner`},[p.upIcon()]):()=>D(kp,{class:`${te}-handler-up-inner`},null),downHandler:p.downIcon?()=>D("span",{class:`${te}-handler-down-inner`},[p.downIcon()]):()=>D(ad,{class:`${te}-handler-down-inner`},null)});const he=Si(Z)||Si(q),re=Si(G);if(re||R){const ue=Ie(`${te}-affix-wrapper`,yo(`${te}-affix-wrapper`,h.value,R),{[`${te}-affix-wrapper-focused`]:w.value,[`${te}-affix-wrapper-disabled`]:g.v
inset-inline-start ${e.motionDurationMid}, inset-block-start ${e.motionDurationMid}, width ${e.motionDurationMid}, height ${e.motionDurationMid}, box-shadow ${e.motionDurationMid} `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),insetBlockStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),width:e.handleSizeHover+e.handleLineWidthHover*2,height:e.handleSizeHover+e.handleLineWidthHover*2},"&::after":{boxShadow:`0 0 0 ${e.handleLineWidthHover}px ${e.colorPrimary}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:(e.handleSize-e.handleSizeHover)/2,insetBlockStart:(e.handleSize-e.handleSizeHover)/2}}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:a,height:a,backgroundColor:e.colorBgElevated,border:`${e.handleLineWidth}px solid ${e.colorBorderSecondary}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,"&-active":{borderColor:e.colorPrimaryBorder}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.colorFillSecondary} !important`},[`${t}-track`]:{backgroundColor:`${e.colorTextDisabled} !important`},[` ${t}-dot `]:{backgroundColor:e.colorBgElevated,borderColor:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${e.handleLineWidth}px ${new Gt(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString()}`,insetInlineStart:0,insetBlockStart:0},[` ${t}-mark-text, ${t}-dot `]:{cursor:"not-allowed !important"}}})}},pc=(e,t)=>{const{componentCls:n,railSize:a,handleSize:v,dotSize:p}=e,f=t?"paddingBlock":"paddingInline",m=t?"width":"height",c=t?"height":"width",h=t?"insetBlockStart":"insetInlineStart",i=t?"top":"insetInlineStart";return{[f]:a,[c]:a*3,[`${n}-rail`]:{[m]:"100%",[c]:a},[`${n}-track`]:{[c]:a},[`${n}-handle`]:{[h]:(a*3-v)/2},[`${n}-mark`]:{insetInlineStart:0,top:0,[i]:v,[m]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[i]:a,[m]:"100%",[c]:a},[`${n}-dot`]:{position:"absolute",[h]:(a-p)/2}}},Xp=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:J(J({},pc(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},Qp=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:J(J({},pc(e,!1)),{height:"100%"})}},Jp=kn("Slider",e=>{const t=Jt(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return[Kp(t),Xp(t),Qp(t)]},e=>{const n=e.controlHeightLG/4,a=e.controlHeightSM/2,v=e.lineWidth+1,p=e.lineWidth+1*3;return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:a,dotSize:8,handleLineWidth:v,handleLineWidthHover:p}});var is=globalThis&&globalThis.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,a=Object.getOwnPropertySymbols(e);v<a.length;v++)t.indexOf(a[v])<0&&Object.prototype.propertyIsEnumerable.call(e,a[v])&&(n[a[v]]=e[a[v]]);return n};const qp=e=>typeof e=="number"?e.toString():"",eg=()=>({id:String,prefixCls:String,tooltipPrefixCls:String,range:pt([Boolean,Object]),reverse:Ke(),min:Number,max:Number,step:pt([Object,Number]),marks:Go(),dots:Ke(),value:pt([Array,Number]),defaultValue:pt([Array,Number]),included:Ke(),disabled:Ke(),vertical:Ke(),tipFormatter:pt([Function,Object],()=>qp),tooltipOpen:Ke(),tooltipVisible:Ke(),tooltipPlacement:Nt(),getTooltipPopupContainer:De(),autofocus:Ke(),handleStyle:pt([Array,Object]),trackStyle:pt([Array,Object]),onChange:De(),onAfterChange:De(),onFocus:De(),onBlur:De(),"onUpdate:value":De()}),tg=ce({compatConfig:{MODE:3},name:"ASlider",inheritAttrs:!1,props:eg(),slots:Object,setup(e,t){let{attrs:n,slots:a,emit:v,expose:p}=t;const{prefixCls:f,rootPrefixCls:m,direction:c,getPopupContainer:h,configProvider:i}=Dt("slider",e),[o,l]=Jp(f),s=qo(),r=Y(),u=Y({}),d=(_,I)=>{u.value[_]=I},g=le(()=>e.tooltipPlacement?e.tooltipPlacement:e.vertical?c.value==="rtl"?"left":"right":"top"),y=()=>{var _;(_=r.value)===null||_===void 0||_.focus()},x=()=>{var _;(_=r.value)===null||_===void 0||_.blur()},C=_=>{v("update:value",_),v("change",_),s.onFieldChange()},b=_=>{v("blur",_)};p({focus:y,blur:x});const w=_=>{var{tooltipPrefixCls:I}=_,E=_.info,{value:k,dragging:A,index:S}=E,M=is(E,["value","dragging","index"]);const{tipFormatter:$,tooltipOpen:L=e.tooltipVisible,getTooltipPopupContainer:T}=e,R=$?u.value[S]||A:!1,P=L||L===void 0&&R;return D(Zp,{prefixCls:I,title:$?$(k):"",open:P,placement:g.value,transitionName:`${m.value}-zoom-down`,key:S,overlayClassName:`${f.value}-tooltip`,getPopupContainer:T||(h==null?void 0:h.value)},{default:()=>[D(lc,oe(oe({},M),{},{value:k,onMouseenter:()=>d(S,!0),onMouseleave:()=>d(S,!1)}),null)]})};return()=>{const{tooltipPrefixCls:_,range:I,id:E=s.id.value}=e,k=is(e,["tooltipPrefixCls","range","id"]),A=i.getPrefixCls("tooltip",_),S=Ie(n.class,{[`${f.value}-rtl`]:c.value==="rtl"},l.value);c.value==="rtl"&&!k.vertical&&(k.reverse=!k.reverse);let M;return typeof I=="object"&&(M=I.draggableTrack),o(I?D(Yp,oe(oe(oe({},n),k),{},{step:k.step,draggableTrack:M,class:S,ref:r,handle:$=>w({tooltipPrefixCls:A,prefixCls:f.value,info:$}),prefixCls:f.value,onChange:C,onBlur:b}),{mark:a.mark}):D(jp,oe(oe(oe({},n),k),{},{id:E,step:k.step,class:S,ref:r,handle:$=>w({tooltipPrefixCls:A,prefixCls:f.value,info:$}),prefixCls:f.value,onChange:C,onBlur:b}),{mark:a.mark}))}}}),Xr=js(tg);var ng={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35
`,f="";const m=[];e.forEach(o=>{const{css:l,javascript:s,jsPlugin:r}=o.files;r&&m.push(...JSON.parse(r)),p+=`;(function(){${s}})();`,f+=`${l}`});const c=t.getElementsByTagName("script"),h=function(o){return new Promise((l,s)=>{if(Array.from(c).find(d=>{const g=d.getAttribute("src");return o.url.includes(g)})){l();return}if(!o.url){l();return}if(o.url.includes("core.umd.js")||o.url.includes("NodeResize.js")){l();return}const u=t.createElement("script");u.setAttribute("src",o.url),t.body.append(u),u.onload=()=>{l(!0)}})};async function i(){for(let o=0;o<m.length;o++)await h(m[o])}i().then(()=>{p+=`})();`;const o=t.createElement("script");o.setAttribute("id",n?`${n}Scripts`:"componentsScripts");const l=URL.createObjectURL(new Blob([p]));if(o.onload=()=>{a()},o.src=l,t.body.append(o),f){const s=t.createElement("style");s.setAttribute("id",n?`${n}StyleSheets`:"componentsStyleSheets"),s.innerText=f,setTimeout(()=>{t.querySelector("head").appendChild(s)},500)}})}),W1=["fill","width","height"],V1=["transform"],j1={transform:"matrix(-1,-5.2146120310681e-8,5.2146120310681e-8,-1,18.132812108112788,15.030350204223224)"},U1=["fill"],G1=ce({__name:"expandFold",props:{color:null,width:null,height:null,rotation:null},setup(e){const t=e,n=le(()=>`rotate(${t.rotation})`),{color:a,width:v,height:p}=xe(t);return(f,m)=>(Q(),ie("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",fill:B(a),version:"1.1",width:B(v),height:B(p),viewBox:"0 0 9.06640625 7.51513671875"},[z("g",{transform:B(n),style:{"transform-origin":"center center"}},[z("g",j1,[z("path",{d:"M17.374346250000002,12.086864865722657C17.62335625,11.937034865722655,17.94721625,12.030334865722656,18.07834625,12.289684865722656C18.20947625,12.549024865722657,18.092636249999998,12.865144865722655,17.824346249999998,12.976864865722657L13.82434625,14.976864865722657C13.68282625,15.048184865722657,13.51587625,15.048184865722657,13.37434625,14.976864865722657L9.37434925,12.976864865722657C9.14995245,12.841844865722656,9.06776214,12.556544865722657,9.18593125,12.322834865722657C9.30410025,12.089124865722656,9.58258625,11.986194865722656,9.824349250000001,12.086864865722657L13.59934625,13.971864865722656L17.374346250000002,12.086864865722657ZM17.374346250000002,7.586868765722656C17.62336625,7.437032265722657,17.94721625,7.530329265722656,18.07834625,7.7896788657226566C18.20947625,8.049028865722656,18.092636249999998,8.365149865722657,17.824346249999998,8.476868865722656L13.82434625,10.476864865722657C13.68282625,10.548184865722657,13.51587625,10.548184865722657,13.37434625,10.476864865722657L9.37434925,8.476868865722656C9.10606435,8.365150865722656,8.98922035,8.049028865722656,9.12035255,7.7896788657226566C9.25148425,7.530329265722656,9.57533725,7.437032265722657,9.824349250000001,7.586868765722656L13.59934625,9.471864865722656L17.374346250000002,7.586868765722656Z",fill:B(a),"fill-opacity":"1"},null,8,U1)])],8,V1)],8,W1))}}),ln={uploadDashboardSnapshot:e=>Re.post("/sys/tenant/detail/upload",e,{headers:{"content-type":"multipart/form-data"}}),save:e=>Re.post("/iotconfigurationdesig",e),edit:e=>Re.put("/iotconfigurationdesig",e),info:e=>Re.get("/iotconfigurationdesig/getDetailByBoardManageId",e),getMaterialList:e=>Re.get("/v2/material/page",e),getMaterialGroupList:e=>Re.get("/v2/group/groupTypeListByGroupName",e),getMaterialGroupTreeList:e=>Re.get("/v2/group/groupList",e),getDeviceListByDatasource:e=>Re.get(`/v2/api/telemetryById?id=${e}`),getDatapointList:(e,t)=>Re.get(`/v2/api/callDict?id=${e}&entityId=${t}`)},Y1={class:"px-2 py-2"},Z1={class:"search-box px-2 py-2"},K1={class:"material-groups flex justify-between"},X1={class:"group-types flex flex-col"},Q1={class:"w-full text-center"},J1=["onMousedown"],q1=ce({__name:"index",props:["shrinkLeft","modelValue"],emits:["dragMaterial","update:modelValue"],setup(e,{emit:t}){const n=e,a=t,{shrinkLeft:v}=xe(n),p=Y(""),f=Y([]),m=le({get(){return n.modelValue},set(w){a("update:modelValue",w)}}),c=Y([]),h=Y([]),i=Y([]),o=Y(!1),l=Y({}),s=()=>{m.value=[],c.value=[],h.value=[],l.value={},f.value=[],i.value=[],o.value=!1},r=async(w,_,I)=>{var A;const E=await ln.getMaterialList({name:I,groupIds:_,page:1,limit:9999});if(E.code!==0)return ye.warning(E.msg);const k=((A=E.data)==null?void 0:A.list)||[];w?l.value[w]=k:(l.value.素材=k,c.value=["素材"],i.value=["素材"]),o.value=!1},u=()=>{f.value.forEach((w,_)=>{_===0&&w.typeList.forEach((E,k)=>{k===0?(r(E.businessType,E.id).then(()=>{i.value=[E.businessType],c.value=[E.businessType],h.value=[w.id]}),m.value=[E.id]):l.value[E.businessType]=[]})})},d=async()=>{const w=await ll.getComponentGroupTree({type:"material",name:p.value,businessType:p.value});if(w.code!==0)re
/*# sourceURL=ace/css/`+s+" */");var g=a.createElement("style");g.appendChild(d.createTextNode(l)),s&&(g.id=s),u==d&&(u=a.getDocumentHead(d)),u.insertBefore(g,u.firstChild)}}}if(a.importCssString=i,a.importCssStylsheet=function(l,s){a.buildDom(["link",{rel:"stylesheet",href:l}],a.getDocumentHead(s))},a.scrollbarWidth=function(l){var s=a.createElement("ace_inner");s.style.width="100%",s.style.minWidth="0px",s.style.height="200px",s.style.display="block";var r=a.createElement("ace_outer"),u=r.style;u.position="absolute",u.left="-10000px",u.overflow="hidden",u.width="200px",u.minWidth="0px",u.height="150px",u.display="block",r.appendChild(s);var d=l&&l.documentElement||document&&document.documentElement;if(!d)return 0;d.appendChild(r);var g=s.offsetWidth;u.overflow="scroll";var y=s.offsetWidth;return g===y&&(y=r.clientWidth),d.removeChild(r),g-y},a.computedStyle=function(l,s){return window.getComputedStyle(l,"")||{}},a.setStyle=function(l,s,r){l[s]!==r&&(l[s]=r)},a.HAS_CSS_ANIMATION=!1,a.HAS_CSS_TRANSFORMS=!1,a.HI_DPI=p.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,p.isChromeOS&&(a.HI_DPI=!1),typeof document<"u"){var o=document.createElement("div");a.HI_DPI&&o.style.transform!==void 0&&(a.HAS_CSS_TRANSFORMS=!0),!p.isEdge&&typeof o.style.animationName<"u"&&(a.HAS_CSS_ANIMATION=!0),o=null}a.HAS_CSS_TRANSFORMS?a.translate=function(l,s,r){l.style.transform="translate("+Math.round(s)+"px, "+Math.round(r)+"px)"}:a.translate=function(l,s,r){l.style.top=Math.round(r)+"px",l.style.left=Math.round(s)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(n,a,v){/** based on code from:** @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.* Available via the MIT or new BSD license.* see: http://github.com/jrburke/requirejs for details
*/var p=n("./dom");a.get=function(f,m){var c=new XMLHttpRequest;c.open("GET",f,!0),c.onreadystatechange=function(){c.readyState===4&&m(c.responseText)},c.send(null)},a.loadScript=function(f,m){var c=p.getDocumentHead(),h=document.createElement("script");h.src=f,c.appendChild(h),h.onload=h.onreadystatechange=function(i,o){(o||!h.readyState||h.readyState=="loaded"||h.readyState=="complete")&&(h=h.onload=h.onreadystatechange=null,o||m())}},a.qualifyURL=function(f){var m=document.createElement("a");return m.href=f,m.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(n,a,v){a.inherits=function(p,f){p.super_=f,p.prototype=Object.create(f.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}})},a.mixin=function(p,f){for(var m in f)p[m]=f[m];return p},a.implement=function(p,f){a.mixin(p,f)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(n,a,v){var p={},f=function(){this.propagationStopped=!0},m=function(){this.defaultPrevented=!0};p._emit=p._dispatchEvent=function(c,h){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var i=this._eventRegistry[c]||[],o=this._defaultHandlers[c];if(!(!i.length&&!o)){(typeof h!="object"||!h)&&(h={}),h.type||(h.type=c),h.stopPropagation||(h.stopPropagation=f),h.preventDefault||(h.preventDefault=m),i=i.slice();for(var l=0;l<i.length&&(i[l](h,this),!h.propagationStopped);l++);if(o&&!h.defaultPrevented)return o(h,this)}},p._signal=function(c,h){var i=(this._eventRegistry||{})[c];if(i){i=i.slice();for(var o=0;o<i.length;o++)i[o](h,this)}},p.once=function(c,h){var i=this;if(this.on(c,function o(){i.off(c,o),h.apply(null,arguments)}),!h)return new Promise(function(o){h=o})},p.setDefaultHandler=function(c,h){var i=this._defaultHandlers;if(i||(i=this._defaultHandlers={_disabled_:{}}),i[c]){var o=i[c],l=i._disabled_[c];l||(i._disabled_[c]=l=[]),l.push(o);var s=l.indexOf(h);s!=-1&&l.splice(s,1)}i[c]=h},p.removeDefaultHandler=function(c,h){var i=this._defaultHandlers;if(i){var o=i._disabled_[c];if(i[c]==h)o&&this.setDefaultHandler(c,o.pop());else if(o){var l=o.indexOf(h);l!=-1&&o.splice(l,1)}}},p.on=p.addEventListener=function(c,h,i){this._eventRegistry=this._eventRegistry||{};var o=this._eventRegistry[c];return o||(o=this._eventRegistry[c]=[]),o.indexOf(h)==-1&&o[i?"unshift":"push"](h),h},p.off=p.removeListener=p.removeEventListener=function(c,h){this._eventRegistry=this._eventRegistry||{};var i=this._eventRegistry[c];if(i){var o=i.indexOf(h);o!==-1&&i.splice(o,1)}},p.removeAllListeners=function(c){c||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[c]=void 0),this._defaultHandlers&&(this._defaultHandlers[c]=void 0)},a.EventEmitter=p}),ace.define("ace/lib/report_error",["require","exports","module"],function(n,a,v){a.reportError=function(f,m){var c=new Error(f);c.data=m,typeof console=="object"&&console.error&&console.error(c),setTimeout(function(){throw c})}}),ace.define("ace/lib/default_english_messages",["require","exports","module"],function(n,a,v){var p={"autocomplete.popup.aria-roledescription":"Autocomplete suggestions","autocomplete.popup.aria-label":"Autocomplete suggestions","autocomplete.popup.item.aria-roledescription":"item","autocomplete.loading":"Loading...","editor.scroller.aria-roledescription":"editor","editor.scroller.aria-label":"Editor content, press Enter to start editing, press Escape to exit","editor.gutter.aria-roledescription":"editor","editor.gutter.aria-label":"Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit","error-marker.good-state":"Looks good!","prompt.recently-used":"Recently used","prompt.other-commands":"Other commands","prompt.no-matching-commands":"No matching commands","search-box.find.placeholder":"Search for","search-box.find-all.text":"All","search-box.replace.placeholder":"Replace with","search-box.replace-next.text":"Replace","search-box.replace-all.text":"All","search-box.toggle-replace.title":"Toggle Replace mode","search-box.toggle-regexp.title":"RegExp Search background: #f0f0f0; color: #333;}
.ace-tm .ace_print-margin { width: 1px; background: #e8e8e8;}
.ace-tm .ace_fold { background-color: #6B72E6;}
.ace-tm { background-color: #FFFFFF; color: black;}
.ace-tm .ace_cursor { color: black;} .ace-tm .ace_invisible { color: rgb(191, 191, 191);}
.ace-tm .ace_storage,.ace-tm .ace_keyword { color: blue;}
.ace-tm .ace_constant { color: rgb(197, 6, 11);}
.ace-tm .ace_constant.ace_buildin { color: rgb(88, 72, 246);}
.ace-tm .ace_constant.ace_language { color: rgb(88, 92, 246);}
.ace-tm .ace_constant.ace_library { color: rgb(6, 150, 14);}
.ace-tm .ace_invalid { background-color: rgba(255, 0, 0, 0.1); color: red;}
.ace-tm .ace_support.ace_function { color: rgb(60, 76, 114);}
.ace-tm .ace_support.ace_constant { color: rgb(6, 150, 14);}
.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class { color: rgb(109, 121, 222);}
.ace-tm .ace_keyword.ace_operator { color: rgb(104, 118, 135);}
.ace-tm .ace_string { color: rgb(3, 106, 7);}
.ace-tm .ace_comment { color: rgb(76, 136, 107);}
.ace-tm .ace_comment.ace_doc { color: rgb(0, 102, 255);}
.ace-tm .ace_comment.ace_doc.ace_tag { color: rgb(128, 159, 191);}
.ace-tm .ace_constant.ace_numeric { color: rgb(0, 0, 205);}
.ace-tm .ace_variable { color: rgb(49, 132, 149);}
.ace-tm .ace_xml-pe { color: rgb(104, 104, 91);}
.ace-tm .ace_entity.ace_name.ace_function { color: #0000A2;}
.ace-tm .ace_heading { color: rgb(12, 7, 255);}
.ace-tm .ace_list { color:rgb(185, 6, 144);}
.ace-tm .ace_meta.ace_tag { color:rgb(0, 22, 142);}
.ace-tm .ace_string.ace_regex { color: rgb(255, 0, 0)}
.ace-tm .ace_marker-layer .ace_selection { background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start { box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step { background: rgb(252, 255, 0);}
.ace-tm .ace_marker-layer .ace_stack { background: rgb(164, 229, 101);}
.ace-tm .ace_marker-layer .ace_bracket { margin: -1px 0 0 -1px; border: 1px solid rgb(192, 192, 192);}
.ace-tm .ace_marker-layer .ace_active-line { background: rgba(0, 0, 0, 0.07);}
.ace-tm .ace_gutter-active-line { background-color : #dcdcdc;}
.ace-tm .ace_marker-layer .ace_selected-word { background: rgb(250, 250, 255); border: 1px solid rgb(200, 200, 250);}
.ace-tm .ace_indent-guide { background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}
.ace-tm .ace_indent-guide-active { background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;}`}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(n,a,v){a.isDark=!1,a.cssClass="ace-tm",a.cssText=n("./textmate-css"),a.$id="ace/theme/textmate";var p=n("../lib/dom");p.importCssString(a.cssText,a.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(n,a,v){"no use strict";var p=n("./lib/lang"),f=n("./lib/net"),m=n("./lib/dom"),c=n("./lib/app_config").AppConfig;v.exports=a=new c;var h={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};a.get=function(s){if(!h.hasOwnProperty(s))throw new Error("Unknown config key: "+s);return h[s]},a.set=function(s,r){if(h.hasOwnProperty(s))h[s]=r;else if(this.setDefaultValue("",s,r)==!1)throw new Error("Unknown config key: "+s);s=="useStrictCSP"&&m.useStrictCSP(r)},a.all=function(){return p.copyObject(h)},a.$modes={},a.moduleUrl=function(s,r){if(h.$moduleUrls[s])return h.$moduleUrls[s];var u=s.split("/");r=r||u[u.length-2]||"";var d=r=="snippets"?"/":"-",g=u[u.length-1];if(r=="worker"&&d=="-"){var y=new RegExp("^"+r+"[\\-_]|[\\-_]"+r+"$","g");g=g.replace(y,"")}(!g||g==r)&&u.length>1&&(g=u[u.length-2]);var x=h[r+"Path"];return x==null?x=h.basePath:d=="/"&&(r=d=""),x&&x.slice(-1)!="/"&&(x+="/"),x+r+d+g+this.get("suffix")},a.setModuleUrl=function(s,r){return h.$moduleUrls[s]=r};var i=function(s,r){if(s==="ace/theme/textmate"||s==="./theme/textmate")return r(null,n("./theme/textmate"));if(o)return o(s,r);console.error("loader is not configured")},o;a.setLoader=function(s){o=s},a.dynamicModules=Object.create(null),a.$loading={},a.$loaded={},a.loadModule=function(s,r){var u;if(Array.isArray(s))var d=s[0],g=s[1];else if(typeof s=="string")var g=s;var y=function(x){if(x&&!a.$loading[g])return r&&r(x);if(a.$loading[g]||(a.$loading[g]=[]),a.$loading[g].push(r),!(a.$loading[g].length>1)){var C=function(){i(g,function(b,w){w&&(a.$loaded[g]=w),a._emit("load.module",{name:g,module:w});var _=a.$loading[g];a.$loading[g]=null,_.forEach(function(I){I&&I(w)})})};if(!a.get("packaged"))return C();f.loadScript(a.moduleUrl(g,d),C),l()}};if(a.dynamicModules[g])a.dynamicModules[g]().then(function(x){x.default?y(x.default):y(x)});else{try{u=this.$require(g)}catch{}y(u||a.$loaded[g])}},a.$require=function(s){if(typeof v.require=="function"){var r="require";return v[r](s)}},a.setModuleLoader=function(s,r){a.dynamicModules[s]=r};var l=function(){!h.basePath&&!h.workerPath&&!h.modePath&&!h.themePath&&!Object.keys(h.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),l=function(){})};a.version="1.36.2"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(n,a,v){n("./lib/fixoldbrowsers");var p=n("./config");p.setLoader(function(h,i){n([h],function(o){i(null,o)})});var f=function(){return this||typeof window<"u"&&window}();v.exports=function(h){p.init=m,p.$require=n,h.require=n},m(!0);function m(h){if(!(!f||!f.document)){p.set("packaged",h||n.packaged||v.packaged||f.define&&(void 0).packaged);var i={},o="",l=document.currentScript||document._currentScript,s=l&&l.ownerDocument||document;l&&l.src&&(o=l.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var r=s.getElementsByTagName("script"),u=0;u<r.length;u++){var d=r[u],g=d.src||d.getAttribute("src");if(g){for(var y=d.attributes,x=0,C=y.length;x<C;x++){var b=y[x];b.name.indexOf("data-ace-")===0&&(i[c(b.name.replace(/^data-ace-/,""))]=b.value)}var w=g.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);w&&(o=w[1])}}o&&(i.base=i.base||o,i.packaged=!0),i.basePath=i.base,i.workerPath=i.workerPath||i.base,i.modePath=i.modePath||i.base,i.themePath=i.themePath||i.base,delete i.base;for(var _ in i)typeof i[_]<"u"&&p.set(_,i[_])}}function c(h){return h.replace(/-(.)/g,function(i,o){return
ab`+se+`cde fg`;we!=_.value&&(_.value=L=we);var Ce=4,Ee=4+(se.length||(w.selection.isEmpty()?0:1));(T!=Ce||R!=Ee)&&_.setSelectionRange(Ce,Ee),T=Ce,R=Ee}}:function(){if(!(k||A)&&!(!V&&!G)){k=!0;var se=0,we=0,Ce="";if(w.session){var Ee=w.selection,Be=Ee.getRange(),je=Ee.cursor.row;je===O+1?(F=O+1,O=F+2*N):je===F-1?(O=F-1,F=O-2*N):(je<F-1||je>O+1)&&(F=je>N?je-N:0,O=je>N?je+N:2*N);for(var Ue=[],Xe=F;Xe<=O;Xe++)Ue.push(w.session.getLine(Xe));if(Ce=Ue.join(``),se=H(Be.start.row,Be.start.column),we=H(Be.end.row,Be.end.column),Be.start.row<F){var Je=w.session.getLine(F-1);se=Be.start.row<F-1?0:se,we+=Je.length+1,Ce=Je+``+Ce}else if(Be.end.row>O){var X=w.session.getLine(O+1);we=Be.end.row>O+1?X.length:Be.end.column,we+=Ce.length+1,Ce=Ce+``+X}else x&&je>0&&(Ce=``+Ce,we+=1,se+=1);Ce.length>r&&(se<r&&we<r?Ce=Ce.slice(0,r):(Ce=``,se==we?se=we=0:(se=0,we=1)));var fe=Ce+`
`;fe!=L&&(_.value=L=fe,T=R=fe.length)}if(G&&(T=_.selectionStart,R=_.selectionEnd),R!=we||T!=se||_.selectionEnd!=R)try{_.setSelectionRange(se,we),T=se,R=we}catch{}k=!1}};this.resetSelection=W,V&&w.onFocus();var j=function(se){return se.selectionStart===0&&se.selectionEnd>=L.length&&se.value===L&&L&&se.selectionEnd!==R},Z=function(se){k||(I?I=!1:j(_)?(w.selectAll(),W()):x&&_.selectionStart!=T&&W())},q=null;this.setInputHandler=function(se){q=se},this.getInputHandler=function(){return q};var G=!1,K=function(se,we){if(G&&(G=!1),E)return W(),se&&w.onPaste(se),E=!1,"";for(var Ce=_.selectionStart,Ee=_.selectionEnd,Be=T,je=L.length-R,Ue=se,Xe=se.length-Ce,Je=se.length-Ee,X=0;Be>0&&L[X]==se[X];)X++,Be--;for(Ue=Ue.slice(X),X=1;je>0&&L.length-X>T-1&&L[L.length-X]==se[se.length-X];)X++,je--;Xe-=X-1,Je-=X-1;var fe=Ue.length-X+1;if(fe<0&&(Be=-fe,fe=0),Ue=Ue.slice(0,fe),!we&&!Ue&&!Xe&&!Be&&!je&&!Je)return"";A=!0;var ke=!1;return m.isAndroid&&Ue==". "&&(Ue=" ",ke=!0),Ue&&!Be&&!je&&!Xe&&!Je||M?w.onTextInput(Ue):w.onTextInput(Ue,{extendLeft:Be,extendRight:je,restoreStart:Xe,restoreEnd:Je}),A=!1,L=se,T=Ce,R=Ee,P=Je,ke?``:Ue},ee=function(se){if(k)return ne();if(se&&se.inputType){if(se.inputType=="historyUndo")return w.execCommand("undo");if(se.inputType=="historyRedo")return w.execCommand("redo")}var we=_.value,Ce=K(we,!0);(we.length>r+100||y.test(Ce)||x&&T<1&&T==R)&&W()},te=function(se,we,Ce){var Ee=se.clipboardData||window.clipboardData;if(!(!Ee||o)){var Be=l||Ce?"Text":"text/plain";try{return we?Ee.setData(Be,we)!==!1:Ee.getData(Be)}catch(je){if(!Ce)return te(je,we,!0)}}},ae=function(se,we){var Ce=w.getCopyText();if(!Ce)return p.preventDefault(se);te(se,Ce)?(g&&(W(Ce),I=Ce,setTimeout(function(){I=!1},10)),we?w.onCut():w.onCopy(),p.preventDefault(se)):(I=!0,_.value=Ce,_.select(),setTimeout(function(){I=!1,W(),we?w.onCut():w.onCopy()}))},de=function(se){ae(se,!0)},he=function(se){ae(se,!1)},re=function(se){var we=te(se);i.pasteCancelled()||(typeof we=="string"?(we&&w.onPaste(we,se),m.isIE&&setTimeout(W),p.preventDefault(se)):(_.value="",E=!0))};p.addCommandKeyListener(_,function(se,we,Ce){if(!k)return w.onCommandKey(se,we,Ce)},w),p.addListener(_,"select",Z,w),p.addListener(_,"input",ee,w),p.addListener(_,"cut",de,w),p.addListener(_,"copy",he,w),p.addListener(_,"paste",re,w),(!("oncut"in _)||!("oncopy"in _)||!("onpaste"in _))&&p.addListener(b,"keydown",function(se){if(!(m.isMac&&!se.metaKey||!se.ctrlKey))switch(se.keyCode){case 67:he(se);break;case 86:re(se);break;case 88:de(se);break}},w);var ue=function(se){if(!(k||!w.onCompositionStart||w.$readOnly)&&(k={},!M)){se.data&&(k.useTextareaForIME=!1),setTimeout(ne,0),w._signal("compositionStart"),w.on("mousedown",Se);var we=w.getSelectionRange();we.end.row=we.start.row,we.end.column=we.start.column,k.markerRange=we,k.selectionStart=T,w.onCompositionStart(k),k.useTextareaForIME?(L=_.value="",T=0,R=0):(_.msGetInputContext&&(k.context=_.msGetInputContext()),_.getInputContext&&(k.context=_.getInputContext()))}},ne=function(){if(!(!k||!w.onCompositionUpdate||w.$readOnly)){if(M)return Se();if(k.useTextareaForIME)w.onCompositionUpdate(_.value);else{var se=_.value;K(se),k.markerRange&&(k.context&&(k.markerRange.start.column=k.selectionStart=k.context.compositionStartOffset),k.markerRange.end.column=k.markerRange.start.column+R-k.selectionStart+P)}}},pe=function(se){!w.onCompositionEnd||w.$readOnly||(k=!1,w.onCompositionEnd(),w.off("mousedown",Se),se&&ee())};function Se(){$=!0,_.blur(),_.focus(),$=!1}var Me=h.delayedCall(ne,50).schedule.bind(null,null);function Le(se){se.keyCode==27&&_.value.length<_.selectionStart&&(k||(L=_.value),T=R=-1,W()),Me()}p.addListener(_,"compositionstart",ue,w),p.addListener(_,"compositionupdate",ne,w),p.addListener(_,"keyup",Le,w),p.addListener(_,"keydown",Me,w),p.addListener(_,"compositionend",pe,w),this.getElement=function(){return _},this.setCommandMode=function(se){M=se,_.readOnly=!1},this.setReadOnly=function(se){M||(_.readOnly=se)},this.setCopyWithEmptySelection=function(se){},this.onContextMenu=function(se){G=!0,W(),w._emit("nativecontextmenu",{target:w,domEvent:se}),this.moveToMouse(se,!0)},this.moveToMouse=function(se,we){S||(S=_.style.cssText),_.style.cssText=(we?"z-index:100000;":"")+(m.isIE?"opacity:0.1;":"")+"text-indent: -"+(T+R)*w.renderer.characterWidth*.5+"px;";var Ce=w.container.getBoundingClientRect(),Ee=c.computedStyle(w.container),Be=Ce.top+(parseInt(Ee.borderTopWidth)||0),je=Ce.left+(parseInt(Ce.borderLeftWidth)||0),Ue=Ce.bottom-Be-_.clientHeight-2,Xe=function(Je){c.translate(_,Je.clientX-je-2,Math.min(Je.clientY-Be-2,Ue))};Xe(se),se.type=="mousedown"&&(w.renderer.$isMousePressed=!0,clearTimeout(Ae),m.isWin&&p.capture(w.container,Xe,We))},this.onContextMenuClose=We;var Ae;function We(){clearTimeout(Ae),Ae=setTimeout(function(){S&&(_.style.cssText=S,S=""),w.renderer.$isMousePressed=!1,w.renderer.$keepTextAreaAtCursor&&w.renderer.$moveTextAreaToCursor()},0)}var Ve=function(se){w.textInput.onContextMenu(se),We()};p.addListener(_,"mouseup",Ve,w),p.addListener(_,"mousedown",function(se){se.preventDefault(),We()},w),p.addListener(w.renderer.scroller,"contextmenu",Ve,w),p.addListener(_,"contextmenu",Ve,w),g&&Ze(b,w,_);function Ze(se,we,Ce){var Ee=null,Be
`?X=u.end:Xe<T&&L[Xe-1]==" "?(X=u.left,fe=d.option):Xe<T||Xe==T&&R!=T&&Xe==Je?X=u.left:Je>R&&L.slice(0,Je).split(``).length>2?X=u.down:Je>R&&L[Je-1]==" "?(X=u.right,fe=d.option):(Je>R||Je==R&&R!=T&&Xe==Je)&&(X=u.right),Xe!==Je&&(fe|=d.shift),X){var ke=we.onCommandKey({},fe,X);if(!ke&&we.commands){X=u.keyCodeToString(X);var Ne=we.commands.findKeyCommand(fe,X);Ne&&we.execCommand(Ne)}T=Xe,R=Je,W("")}}};document.addEventListener("selectionchange",je),we.on("destroy",function(){document.removeEventListener("selectionchange",je)})}this.destroy=function(){_.parentElement&&_.parentElement.removeChild(_)}},a.TextInput=C,a.$setUserAgentForTests=function(b,w){x=b,g=w}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(n,a,v){var p=n("../lib/useragent"),f=0,m=550,c=function(){function o(l){l.$clickSelection=null;var s=l.editor;s.setDefaultHandler("mousedown",this.onMouseDown.bind(l)),s.setDefaultHandler("dblclick",this.onDoubleClick.bind(l)),s.setDefaultHandler("tripleclick",this.onTripleClick.bind(l)),s.setDefaultHandler("quadclick",this.onQuadClick.bind(l)),s.setDefaultHandler("mousewheel",this.onMouseWheel.bind(l));var r=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];r.forEach(function(u){l[u]=this[u]},this),l.selectByLines=this.extendSelectionBy.bind(l,"getLineRange"),l.selectByWords=this.extendSelectionBy.bind(l,"getWordRange")}return o.prototype.onMouseDown=function(l){var s=l.inSelection(),r=l.getDocumentPosition();this.mousedownEvent=l;var u=this.editor,d=l.getButton();if(d!==0){var g=u.getSelectionRange(),y=g.isEmpty();(y||d==1)&&u.selection.moveToPosition(r),d==2&&(u.textInput.onContextMenu(l.domEvent),p.isMozilla||l.preventDefault());return}if(this.mousedownEvent.time=Date.now(),s&&!u.isFocused()&&(u.focus(),this.$focusTimeout&&!this.$clickSelection&&!u.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(l);return}return this.captureMouse(l),this.startSelect(r,l.domEvent._clicks>1),l.preventDefault()},o.prototype.startSelect=function(l,s){l=l||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var r=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?r.selection.selectToPosition(l):s||r.selection.moveToPosition(l),s||this.select(),r.setStyle("ace_selecting"),this.setState("select"))},o.prototype.select=function(){var l,s=this.editor,r=s.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var u=this.$clickSelection.comparePoint(r);if(u==-1)l=this.$clickSelection.end;else if(u==1)l=this.$clickSelection.start;else{var d=i(this.$clickSelection,r);r=d.cursor,l=d.anchor}s.selection.setSelectionAnchor(l.row,l.column)}s.selection.selectToPosition(r),s.renderer.scrollCursorIntoView()},o.prototype.extendSelectionBy=function(l){var s,r=this.editor,u=r.renderer.screenToTextCoordinates(this.x,this.y),d=r.selection[l](u.row,u.column);if(this.$clickSelection){var g=this.$clickSelection.comparePoint(d.start),y=this.$clickSelection.comparePoint(d.end);if(g==-1&&y<=0)s=this.$clickSelection.end,(d.end.row!=u.row||d.end.column!=u.column)&&(u=d.start);else if(y==1&&g>=0)s=this.$clickSelection.start,(d.start.row!=u.row||d.start.column!=u.column)&&(u=d.end);else if(g==-1&&y==1)u=d.end,s=d.start;else{var x=i(this.$clickSelection,u);u=x.cursor,s=x.anchor}r.selection.setSelectionAnchor(s.row,s.column)}r.selection.selectToPosition(u),r.renderer.scrollCursorIntoView()},o.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},o.prototype.focusWait=function(){var l=h(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),s=Date.now();(l>f||s-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},o.prototype.onDoubleClick=function(l){var s=l.getDocumentPosition(),r=this.editor,u=r.session,d=u.getBracketRange(s);d?(d.isEmpty()&&(d.start.column--,d.end.column++),this.setState("select")):(d=r.selection.getWordRange(s.row,s.column),this.setState("selectByWords")),this.$clickSelection=d,this.select()},o.prototype.onTripleClick=function(l){var s=l.getDocumentPosition(),r=this.ed
`))&&(this.seenBidi=!0,this.currentRow=null)},h.prototype.getDocumentRow=function(){var i=0,o=this.session.$screenRowCache;if(o.length){var l=this.session.$getRowCacheIndex(o,this.currentRow);l>=0&&(i=this.session.$docRowCache[l])}return i},h.prototype.getSplitIndex=function(){var i=0,o=this.session.$screenRowCache;if(o.length)for(var l,s=this.session.$getRowCacheIndex(o,this.currentRow);this.currentRow-i>0&&(l=this.session.$getRowCacheIndex(o,this.currentRow-i-1),l===s);)s=l,i++;else i=this.currentRow;return i},h.prototype.updateRowLine=function(i,o){i===void 0&&(i=this.getDocumentRow());var l=i===this.session.getLength()-1,s=l?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(i),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var r=this.session.$wrapData[i];r&&(o===void 0&&(o=this.getSplitIndex()),o>0&&r.length?(this.wrapIndent=r.indent,this.wrapOffset=this.wrapIndent*this.charWidths[p.L],this.line=o<r.length?this.line.substring(r[o-1],r[o]):this.line.substring(r[r.length-1])):this.line=this.line.substring(0,r[o]),o==r.length&&(this.line+=this.showInvisibles?s:p.DOT))}else this.line+=this.showInvisibles?s:p.DOT;var u=this.session,d=0,g;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(y,x){return y===" "||u.isFullWidth(y.charCodeAt(0))?(g=y===" "?u.getScreenTabSize(x+d):2,d+=g-1,f.stringRepeat(p.DOT,g)):y}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==p.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},h.prototype.updateBidiMap=function(){var i=[];p.hasBidiCharacters(this.line,i)||this.isRtlDir?this.bidiMap=p.doBidiReorder(this.line,i,this.isRtlDir):this.bidiMap={}},h.prototype.markAsDirty=function(){this.currentRow=null},h.prototype.updateCharacterWidths=function(i){if(this.characterWidth!==i.$characterSize.width){this.fontMetrics=i;var o=this.characterWidth=i.$characterSize.width,l=i.$measureCharWidth("ה");this.charWidths[p.L]=this.charWidths[p.EN]=this.charWidths[p.ON_R]=o,this.charWidths[p.R]=this.charWidths[p.AN]=l,this.charWidths[p.R_H]=l*.45,this.charWidths[p.B]=this.charWidths[p.RLE]=0,this.currentRow=null}},h.prototype.setShowInvisibles=function(i){this.showInvisibles=i,this.currentRow=null},h.prototype.setEolChar=function(i){this.EOL=i},h.prototype.setContentWidth=function(i){this.contentWidth=i},h.prototype.isRtlLine=function(i){return this.$isRtl?!0:i!=null?this.session.getLine(i).charAt(0)==this.RLE:this.isRtlDir},h.prototype.setRtlDirection=function(i,o){for(var l=i.getCursorPosition(),s=i.selection.getSelectionAnchor().row;s<=l.row;s++)!o&&i.session.getLine(s).charAt(0)===i.session.$bidiHandler.RLE?i.session.doc.removeInLine(s,0,1):o&&i.session.getLine(s).charAt(0)!==i.session.$bidiHandler.RLE&&i.session.doc.insert({column:0,row:s},i.session.$bidiHandler.RLE)},h.prototype.getPosLeft=function(i){i-=this.wrapIndent;var o=this.line.charAt(0)===this.RLE?1:0,l=i>o?this.session.getOverwrite()?i:i-1:o,s=p.getVisualFromLogicalIdx(l,this.bidiMap),r=this.bidiMap.bidiLevels,u=0;!this.session.getOverwrite()&&i<=o&&r[s]%2!==0&&s++;for(var d=0;d<s;d++)u+=this.charWidths[r[d]];return!this.session.getOverwrite()&&i>o&&r[s]%2===0&&(u+=this.charWidths[r[s]]),this.wrapIndent&&(u+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(u+=this.rtlLineOffset),u},h.prototype.getSelections=function(i,o){var l=this.bidiMap,s=l.bidiLevels,r,u=[],d=0,g=Math.min(i,o)-this.wrapIndent,y=Math.max(i,o)-this.wrapIndent,x=!1,C=!1,b=0;this.wrapIndent&&(d+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var w,_=0;_<s.length;_++)w=l.logicalFromVisual[_],r=s[_],x=w>=g&&w<y,x&&!C?b=d:!x&&C&&u.push({left:b,width:d-b}),d+=this.charWidths[r],C=x;if(x&&_===s.length&&u.push({left:b,width:d-b}),this.isRtlDir)for(var I=0;I<u.length;I++)u[I].left+=this.rtlLineOffset;return u},h.prototype.offsetToCol=function(l){this.isRtlDir&&(l-=this.rtlLineOffset);var o=0,l=Math.max(l,0),s=0,r=0,u=this.bidiMap.bidiLevels,d=this.ch
`||w==`\r`){r(C);var L="";d.isMaybeInsertedClosing(_,I)&&(L=c.stringRepeat("}",o.maybeInsertedBrackets),d.clearMaybeInsertedClosing());var M=I.substring(_.column,_.column+1);if(M==="}"){var T=b.findMatchingBracket({row:_.row,column:_.column+1},"}");if(!T)return null;var R=this.$getIndent(b.getLine(T.row))}else if(L)var R=this.$getIndent(I);else{d.clearMaybeInsertedClosing();return}var P=R+b.getTabString();return{text:``+P+``+R+L,selection:[1,P.length,1,P.length]}}else d.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(y,x,C,b,w){var _=b.doc.getTextRange(w);if(!w.isMultiLine()&&_=="{"){r(C);var I=b.doc.getLine(w.start.row),E=I.substring(w.end.column,w.end.column+1);if(E=="}")return w.end.column++,w;o.maybeInsertedBrackets--}}),this.add("parens","insertion",function(y,x,C,b,w){if(w=="("){r(C);var _=C.getSelectionRange(),I=b.doc.getTextRange(_);if(I!==""&&C.getWrapBehavioursEnabled())return u(_,I,"(",")");if(d.isSaneInsertion(C,b))return d.recordAutoInsert(C,b,")"),{text:"()",selection:[1,1]}}else if(w==")"){r(C);var E=C.getCursorPosition(),k=b.doc.getLine(E.row),A=k.substring(E.column,E.column+1);if(A==")"){var S=b.$findOpeningBracket(")",{column:E.column+1,row:E.row});if(S!==null&&d.isAutoInsertedClosing(E,k,w))return d.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(y,x,C,b,w){var _=b.doc.getTextRange(w);if(!w.isMultiLine()&&_=="("){r(C);var I=b.doc.getLine(w.start.row),E=I.substring(w.start.column+1,w.start.column+2);if(E==")")return w.end.column++,w}}),this.add("brackets","insertion",function(y,x,C,b,w){if(w=="["){r(C);var _=C.getSelectionRange(),I=b.doc.getTextRange(_);if(I!==""&&C.getWrapBehavioursEnabled())return u(_,I,"[","]");if(d.isSaneInsertion(C,b))return d.recordAutoInsert(C,b,"]"),{text:"[]",selection:[1,1]}}else if(w=="]"){r(C);var E=C.getCursorPosition(),k=b.doc.getLine(E.row),A=k.substring(E.column,E.column+1);if(A=="]"){var S=b.$findOpeningBracket("]",{column:E.column+1,row:E.row});if(S!==null&&d.isAutoInsertedClosing(E,k,w))return d.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(y,x,C,b,w){var _=b.doc.getTextRange(w);if(!w.isMultiLine()&&_=="["){r(C);var I=b.doc.getLine(w.start.row),E=I.substring(w.start.column+1,w.start.column+2);if(E=="]")return w.end.column++,w}}),this.add("string_dquotes","insertion",function(y,x,C,b,w){var _=b.$mode.$quotes||s;if(w.length==1&&_[w]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(w)!=-1)return;r(C);var I=w,E=C.getSelectionRange(),k=b.doc.getTextRange(E);if(k!==""&&(k.length!=1||!_[k])&&C.getWrapBehavioursEnabled())return u(E,k,I,I);if(!k){var A=C.getCursorPosition(),S=b.doc.getLine(A.row),M=S.substring(A.column-1,A.column),$=S.substring(A.column,A.column+1),L=b.getTokenAt(A.row,A.column),T=b.getTokenAt(A.row,A.column+1);if(M=="\\"&&L&&/escape/.test(L.type))return null;var R=L&&/string|escape/.test(L.type),P=!T||/string|escape/.test(T.type),F;if($==I)F=R!==P,F&&/string\.end/.test(T.type)&&(F=!1);else{if(R&&!P||R&&P)return null;var O=b.$mode.tokenRe;O.lastIndex=0;var N=O.test(M);O.lastIndex=0;var V=O.test($),H=b.$mode.$pairQuotesAfter,W=H&&H[I]&&H[I].test(M);if(!W&&N||V||$&&!/[\s;,.})\]\\]/.test($))return null;var j=S[A.column-2];if(M==I&&(j==I||O.test(j)))return null;F=!0}return{text:F?I+I:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(y,x,C,b,w){var _=b.$mode.$quotes||s,I=b.doc.getTextRange(w);if(!w.isMultiLine()&&_.hasOwnProperty(I)){r(C);var E=b.doc.getLine(w.start.row),k=E.substring(w.start.column+1,w.start.column+2);if(k==I)return w.end.column++,w}}),g.closeDocComment!==!1&&this.add("doc comment end","insertion",function(y,x,C,b,w){if(y==="doc-start"&&(w===``||w===`\r`)&&C.selection.isEmpty()){var _=C.getCursorPosition();if(_.column===0)return;for(var I=b.doc.getLine(_.row),E=b.doc.getLine(_.row+1),k=b.getTokens(_.row),A=0,S=0;S<k.length;S++){A+=k[S].value.length;var M=k[S];if(A>=_.column){if(A===_.column){if(!/\.doc/.test(M.type))return;if(/\*\//.test(M.value)){var $=k[S+1];if(!$||!/\.doc/.test($.type))return}}var L=_.column-(A-M.value.length),T=M.value.indexOf("*/"),R=M.value.indexOf("/**",T>-1?T+2:0);if(R!==-1&&L>R&&L<R+3||T!==-1&&R!==-1&&L>=T&&L<=R||!/\.doc/.test(M.type))return;break}}var P=this.$getIndent(I);if(/\s*\*/.test(E))return/^\s*\*/.test(I)?{text:w+P+"* ",selection:[1,2+P.length,1,2+P.length]}:{text:w+P+" * ",selection:[1,3+P.length,1,3+P.length]};if(/\/\*\*/.test(I.substring(0,_.column)))return{text:w+P+" * "+w+" "+P+"*/",selection:[1,4+P.length,1,4+P.length]}}})},d.isSaneInsertion=function(g,y){var x=g.getCursorPosition(),C=new m(y,x.row,x.column);if(!this.$matchTokenType(C.getCurrentToken()||"text",h)){if(/[)}\]]/.test(g.session.getLine(x.row)[x.column]))return!0;var b=new m(y,x.row,x.column+1);if(!this.$matchTokenType(b.getCurrentToken()||"text",h))return!1}return C.stepForward(),C.getCurrentTokenRow()!==x.row||this.$matchTokenType(C.getCurrentToken()||"text",i)},d.$matchTokenType=function(g,y){return y.indexOf(g.type||g)>-1},d.recordAutoInsert=function(g,y,x){var C=g.getCursorPosition(),b=y.doc.getLine(C.row);this.isAutoInsertedClosing(C,b,o.autoInsertedLineEnd[0])||(o.autoInsertedBrackets=0),o.autoInsertedRow=C.row,o.autoInsertedLineEnd=x+b.substr(C.column),o.autoInsertedBrackets++},d.recordMaybeInsert=function(g,y,x){var C=g.getCursorPosition(),b=y.doc.getLine(C.row);this.isMaybeInsertedClosing(C,b)||(o.maybeInsertedBrackets=0),o.maybeInsertedRow=C.row,o.maybeInsertedLineStart=b.substr(0,C.column)+x,o.maybeInsertedLineEnd=b.substr(C.column),o.maybeInsertedBrackets++},d.isAutoInsertedClosing=function(g,y,x){return o.autoInsertedBrackets>0&&g.row===o.autoInsertedRow&&x===o.autoInsertedLineEnd[0]&&y.substr(g.column)===o.autoInsertedLineEnd},d.isMaybeInsertedClosing=function(g,y){return o.maybeInsertedBrackets>0&&g.row===o.maybeInsertedRow&&y.substr(g.column)===o.maybeInsertedLineEnd&&y.substr(0,g.column)==o.maybeInsertedLineStart},d.popAutoInsertedClosing=function(){o.autoInsertedLineEnd=o.autoInsertedLineEnd.substr(1),o.autoInsertedBrackets--},d.clearMaybeInsertedClosing=function(){o&&(o.maybeInsertedBrackets=0,o.maybeInsertedRow=-1)},p.inherits(d,f),a.CstyleBehaviour=d}),ace.define("ace/unicode",["require","exports","module"],function(n,a,v){for(var p=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,
`,this._signal("changeNewLineMode")},o.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r`;case"unix":return``;default:return this.$autoNewLine||``}},o.prototype.setNewLineMode=function(l){this.$newLineMode!==l&&(this.$newLineMode=l,this._signal("changeNewLineMode"))},o.prototype.getNewLineMode=function(){return this.$newLineMode},o.prototype.isNewLine=function(l){return l==`\r`||l=="\r"||l==``},o.prototype.getLine=function(l){return this.$lines[l]||""},o.prototype.getLines=function(l,s){return this.$lines.slice(l,s+1)},o.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},o.prototype.getLength=function(){return this.$lines.length},o.prototype.getTextRange=function(l){return this.getLinesForRange(l).join(this.getNewLineCharacter())},o.prototype.getLinesForRange=function(l){var s;if(l.start.row===l.end.row)s=[this.getLine(l.start.row).substring(l.start.column,l.end.column)];else{s=this.getLines(l.start.row,l.end.row),s[0]=(s[0]||"").substring(l.start.column);var r=s.length-1;l.end.row-l.start.row==r&&(s[r]=s[r].substring(0,l.end.column))}return s},o.prototype.insertLines=function(l,s){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(l,s)},o.prototype.removeLines=function(l,s){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(l,s)},o.prototype.insertNewLine=function(l){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(l,["",""])},o.prototype.insert=function(l,s){return this.getLength()<=1&&this.$detectNewLine(s),this.insertMergedLines(l,this.$split(s))},o.prototype.insertInLine=function(l,s){var r=this.clippedPos(l.row,l.column),u=this.pos(l.row,l.column+s.length);return this.applyDelta({start:r,end:u,action:"insert",lines:[s]},!0),this.clonePos(u)},o.prototype.clippedPos=function(l,s){var r=this.getLength();l===void 0?l=r:l<0?l=0:l>=r&&(l=r-1,s=void 0);var u=this.getLine(l);return s==null&&(s=u.length),s=Math.min(Math.max(s,0),u.length),{row:l,column:s}},o.prototype.clonePos=function(l){return{row:l.row,column:l.column}},o.prototype.pos=function(l,s){return{row:l,column:s}},o.prototype.$clipPosition=function(l){var s=this.getLength();return l.row>=s?(l.row=Math.max(0,s-1),l.column=this.getLine(s-1).length):(l.row=Math.max(0,l.row),l.column=Math.min(Math.max(l.column,0),this.getLine(l.row).length)),l},o.prototype.insertFullLines=function(l,s){l=Math.min(Math.max(l,0),this.getLength());var r=0;l<this.getLength()?(s=s.concat([""]),r=0):(s=[""].concat(s),l--,r=this.$lines[l].length),this.insertMergedLines({row:l,column:r},s)},o.prototype.insertMergedLines=function(l,s){var r=this.clippedPos(l.row,l.column),u={row:r.row+s.length-1,column:(s.length==1?r.column:0)+s[s.length-1].length};return this.applyDelta({start:r,end:u,action:"insert",lines:s}),this.clonePos(u)},o.prototype.remove=function(l){var s=this.clippedPos(l.start.row,l.start.column),r=this.clippedPos(l.end.row,l.end.column);return this.applyDelta({start:s,end:r,action:"remove",lines:this.getLinesForRange({start:s,end:r})}),this.clonePos(s)},o.prototype.removeInLine=function(l,s,r){var u=this.clippedPos(l,s),d=this.clippedPos(l,r);return this.applyDelta({start:u,end:d,action:"remove",lines:this.getLinesForRange({start:u,end:d})},!0),this.clonePos(u)},o.prototype.removeFullLines=function(l,s){l=Math.min(Math.max(0,l),this.getLength()-1),s=Math.min(Math.max(0,s),this.getLength()-1);var r=s==this.getLength()-1&&l>0,u=s<this.getLength()-1,d=r?l-1:l,g=r?this.getLine(d).length:0,y=u?s+1:s,x=u?0:this.getLine(y).length,C=new c(d,g,y,x),b=this.$lines.slice(l,s+1);return this.applyDelta({start:C.start,end:C.end,action:"remove",lines:this.getLinesForRange(C)}),b},o.prototype.removeNewLine=function(l){l<this.getLength()-1&&l>=0&&this.applyDelta({start:this.pos(l,this.getLine(l).length),end:this.pos(l+1,0),action:"remove",lines:["",""]})},o.prototype.replace=function(l,s){if(l instanceof c||(l=c.fromPoints(l.start,l.end)),s.length===0&&l.isEmpty())return l.start;if(s==this.getTextRange(l))return l.end;this.remove(l);var r;return s?r=this.insert(l.start,s):r=l.start,r},o.prototype.applyDeltas=function(l){for(var s=0;s<l.length;s++)this.applyDelta(l[s])},o.prototype.revertDeltas=function(l){for(var s=l.length-1;s>=0;s--)this.revertDelta(l[s])},o.prototype.applyDelta=function(l,s){var r=l.action=="insert"
---`+o(this.$redoStack)},b}();p.prototype.hasUndo=p.prototype.canUndo,p.prototype.hasRedo=p.prototype.canRedo,p.prototype.isClean=p.prototype.isAtBookmark,p.prototype.markClean=p.prototype.bookmark;function f(b,w){for(var _=w;_--;){var I=b[_];if(I&&!I[0].ignore){for(;_<w-1;){var E=r(b[_],b[_+1]);b[_]=E[0],b[_+1]=E[1],_++}return!0}}}var m=n("./range").Range,c=m.comparePoints;m.comparePoints;function h(b){return{row:b.row,column:b.column}}function i(b){return{start:h(b.start),end:h(b.end),action:b.action,lines:b.lines.slice()}}function o(b){if(b=b||this,Array.isArray(b))return b.map(o).join(``);var w="";return b.action?(w=b.action=="insert"?"+":"-",w+="["+b.lines+"]"):b.value&&(Array.isArray(b.value)?w=b.value.map(l).join(``):w=l(b.value)),b.start&&(w+=l(b)),(b.id||b.rev)&&(w+=" ("+(b.id||b.rev)+")"),w}function l(b){return b.start.row+":"+b.start.column+"=>"+b.end.row+":"+b.end.column}function s(b,w){var _=b.action=="insert",I=w.action=="insert";if(_&&I)if(c(w.start,b.end)>=0)d(w,b,-1);else if(c(w.start,b.start)<=0)d(b,w,1);else return null;else if(_&&!I)if(c(w.start,b.end)>=0)d(w,b,-1);else if(c(w.end,b.start)<=0)d(b,w,-1);else return null;else if(!_&&I)if(c(w.start,b.start)>=0)d(w,b,1);else if(c(w.start,b.start)<=0)d(b,w,1);else return null;else if(!_&&!I)if(c(w.start,b.start)>=0)d(w,b,1);else if(c(w.end,b.start)<=0)d(b,w,-1);else return null;return[w,b]}function r(b,w){for(var _=b.length;_--;)for(var I=0;I<w.length;I++)if(!s(b[_],w[I])){for(;_<b.length;){for(;I--;)s(w[I],b[_]);I=w.length,_++}return[b,w]}return b.selectionBefore=w.selectionBefore=b.selectionAfter=w.selectionAfter=null,[w,b]}function u(b,w){var _=b.action=="insert",I=w.action=="insert";if(_&&I)c(b.start,w.start)<0?d(w,b,1):d(b,w,1);else if(_&&!I)c(b.start,w.end)>=0?d(b,w,-1):(c(b.start,w.start)<=0||d(b,m.fromPoints(w.start,b.start),-1),d(w,b,1));else if(!_&&I)c(w.start,b.end)>=0?d(w,b,-1):(c(w.start,b.start)<=0||d(w,m.fromPoints(b.start,w.start),-1),d(b,w,1));else if(!_&&!I)if(c(w.start,b.end)>=0)d(w,b,-1);else if(c(w.end,b.start)<=0)d(b,w,-1);else{var E,k;return c(b.start,w.start)<0&&(E=b,b=y(b,w.start)),c(b.end,w.end)>0&&(k=y(b,w.end)),g(w.end,b.start,b.end,-1),k&&!E&&(b.lines=k.lines,b.start=k.start,b.end=k.end,k=b),[w,E,k].filter(Boolean)}return[w,b]}function d(b,w,_){g(b.start,w.start,w.end,_),g(b.end,w.start,w.end,_)}function g(b,w,_,I){b.row==(I==1?w:_).row&&(b.column+=I*(_.column-w.column)),b.row+=I*(_.row-w.row)}function y(b,w){var _=b.lines,I=b.end;b.end=h(w);var E=b.end.row-b.start.row,k=_.splice(E,_.length),A=E?w.column:w.column-b.start.column;_.push(k[0].substring(0,A)),k[0]=k[0].substr(A);var S={start:h(w),end:I,lines:k,action:b.action};return S}function x(b,w){w=i(w);for(var _=b.length;_--;){for(var I=b[_],E=0;E<I.length;E++){var k=I[E],A=u(k,w);w=A[0],A.length!=2&&(A[2]?(I.splice(E+1,1,A[1],A[2]),E++):A[1]||(I.splice(E,1),E--))}I.length||b.splice(_,1)}return b}function C(b,w){for(var _=0;_<w.length;_++)for(var I=w[_],E=0;E<I.length;E++)x(b,I[E])}a.UndoManager=p}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(n,a,v){var p=n("../range").Range,f=function(){function m(c,h){this.foldData=c,Array.isArray(h)?this.folds=h:h=this.folds=[h];var i=h[h.length-1];this.range=new p(h[0].start.row,h[0].start.column,i.end.row,i.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(o){o.setFoldLine(this)},this)}return m.prototype.shiftRow=function(c){this.start.row+=c,this.end.row+=c,this.folds.forEach(function(h){h.start.row+=c,h.end.row+=c})},m.prototype.addFold=function(c){if(c.sameRow){if(c.start.row<this.startRow||c.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(c),this.folds.sort(function(h,i){return-h.range.compareEnd(i.start.row,i.start.column)}),this.range.compareEnd(c.start.row,c.start.column)>0?(this.end.row=c.end.row,this.end.column=c.end.column):this.range.compareStart(c.end.row,c.end.column)<0&&(this.start.row=c.start.row,this.start.column=c.start.column)}else if(c.start.row==this.end.row)this.folds.push(c),this.end.row=c.end.row,this.end.column=c.end.column;else if(c.end.row==this.start.row)this.folds.unshift(c),this.start.row=c.start.row,this.start.column=c.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");c.foldLine=this},m.prototype.containsRow=function(c){return c>=this.start.row&&c<=this.end.row},m.prototype.walk=function(c,h,i){var o=0,l=this.folds,s,r,u,d=!0;h==null&&(h=this.end.row,i=this.end.column);for(var g=0;g<l.length;g++){if(s=l[g],r=s.range.compareStart(h,i),r==-1){c(null,h,i,o,d);return}if(u=c(null,s.start.row,s.start.column,o,d),u=!u&&c(s.placeholder,s.start.row,s.start.column,o),u||r===0)return;d=!s.sameRow,o=s.end.column}c(null,h,i,o,d)},m.prot
`)},m.prototype.idxToPosition=function(c){for(var h=0,i=0;i<this.folds.length;i++){var o=this.folds[i];if(c-=o.start.column-h,c<0)return{row:o.start.row,column:o.start.column+c};if(c-=o.placeholder.length,c<0)return o.start;h=o.end.column}return{row:this.end.row,column:this.end.column+c}},m}();a.FoldLine=f}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(n,a,v){var p=n("./range").Range,f=p.comparePoints,m=function(){function c(){this.ranges=[],this.$bias=1}return c.prototype.pointIndex=function(h,i,o){for(var l=this.ranges,s=o||0;s<l.length;s++){var r=l[s],u=f(h,r.end);if(!(u>0)){var d=f(h,r.start);return u===0?i&&d!==0?-s-2:s:d>0||d===0&&!i?s:-s-1}}return-s-1},c.prototype.add=function(h){var i=!h.isEmpty(),o=this.pointIndex(h.start,i);o<0&&(o=-o-1);var l=this.pointIndex(h.end,i,o);return l<0?l=-l-1:l++,this.ranges.splice(o,l-o,h)},c.prototype.addList=function(h){for(var i=[],o=h.length;o--;)i.push.apply(i,this.add(h[o]));return i},c.prototype.substractPoint=function(h){var i=this.pointIndex(h);if(i>=0)return this.ranges.splice(i,1)},c.prototype.merge=function(){var h=[],i=this.ranges;i=i.sort(function(u,d){return f(u.start,d.start)});for(var o=i[0],l,s=1;s<i.length;s++){l=o,o=i[s];var r=f(l.end,o.start);r<0||r==0&&!l.isEmpty()&&!o.isEmpty()||(f(l.end,o.end)<0&&(l.end.row=o.end.row,l.end.column=o.end.column),i.splice(s,1),h.push(o),o=l,s--)}return this.ranges=i,h},c.prototype.contains=function(h,i){return this.pointIndex({row:h,column:i})>=0},c.prototype.containsPoint=function(h){return this.pointIndex(h)>=0},c.prototype.rangeAtPoint=function(h){var i=this.pointIndex(h);if(i>=0)return this.ranges[i]},c.prototype.clipRows=function(h,i){var o=this.ranges;if(o[0].start.row>i||o[o.length-1].start.row<h)return[];var l=this.pointIndex({row:h,column:0});l<0&&(l=-l-1);var s=this.pointIndex({row:i,column:0},l);s<0&&(s=-s-1);for(var r=[],u=l;u<s;u++)r.push(o[u]);return r},c.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},c.prototype.attach=function(h){this.session&&this.detach(),this.session=h,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},c.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},c.prototype.$onChange=function(h){for(var i=h.start,o=h.end,l=i.row,s=o.row,r=this.ranges,u=0,d=r.length;u<d;u++){var g=r[u];if(g.end.row>=l)break}if(h.action=="insert")for(var y=s-l,x=-i.column+o.column;u<d;u++){var g=r[u];if(g.start.row>l)break;if(g.start.row==l&&g.start.column>=i.column&&(g.start.column==i.column&&this.$bias<=0||(g.start.column+=x,g.start.row+=y)),g.end.row==l&&g.end.column>=i.column){if(g.end.column==i.column&&this.$bias<0)continue;g.end.column==i.column&&x>0&&u<d-1&&g.end.column>g.start.column&&g.end.column==r[u+1].start.column&&(g.end.column-=x),g.end.column+=x,g.end.row+=y}}else for(var y=l-s,x=i.column-o.column;u<d;u++){var g=r[u];if(g.start.row>s)break;g.end.row<s&&(l<g.end.row||l==g.end.row&&i.column<g.end.column)?(g.end.row=l,g.end.column=i.column):g.end.row==s?g.end.column<=o.column?(y||g.end.column>i.column)&&(g.end.column=i.column,g.end.row=i.row):(g.end.column+=x,g.end.row+=y):g.end.row>s&&(g.end.row+=y),g.start.row<s&&(l<g.start.row||l==g.start.row&&i.column<g.start.column)?(g.start.row=l,g.start.column=i.column):g.start.row==s?g.start.column<=o.column?(y||g.start.column>i.column)&&(g.start.column=i.column,g.start.row=i.row):(g.start.column+=x,g.start.row+=y):g.start.row>s&&(g.start.row+=y)}if(y!=0&&u<d)for(;u<d;u++){var g=r[u];g.start.row+=y,g.end.row+=y}},c}();m.prototype.comparePoints=f,a.RangeList=m}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(n,a,v){var p=this&&this.__extends||function(){var l=function(s,r){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var g in d)Object.prototype.hasOwnProperty.call(d,g)&&(u[g]=d[g])},l(s,r)};return function(s,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+
`)},this.bgTokenizer=new r(new o().getTokenizer(),this);var $=this;this.bgTokenizer.on("update",function(L){$._signal("tokenizerUpdate",L)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof S!="object"||!S.getLine)&&(S=new s(S)),this.setDocument(S),this.selection=new i(this),this.$bidiHandler=new m(this),c.resetOptions(this),this.setMode(M),c._signal("session",this),this.destroyed=!1}return A.prototype.setDocument=function(S){this.doc&&this.doc.off("change",this.$onChange),this.doc=S,S.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},A.prototype.getDocument=function(){return this.doc},A.prototype.$resetRowCache=function(S){if(!S){this.$docRowCache=[],this.$screenRowCache=[];return}var M=this.$docRowCache.length,$=this.$getRowCacheIndex(this.$docRowCache,S)+1;M>$&&(this.$docRowCache.splice($,M),this.$screenRowCache.splice($,M))},A.prototype.$getRowCacheIndex=function(S,M){for(var $=0,L=S.length-1;$<=L;){var T=$+L>>1,R=S[T];if(M>R)$=T+1;else if(M<R)L=T-1;else return T}return $-1},A.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},A.prototype.onChangeFold=function(S){var M=S.data;this.$resetRowCache(M.start.row)},A.prototype.onChange=function(S){this.$modified=!0,this.$bidiHandler.onChange(S),this.$resetRowCache(S.start.row);var M=this.$updateInternalDataOnChange(S);!this.$fromUndo&&this.$undoManager&&(M&&M.length&&(this.$undoManager.add({action:"removeFolds",folds:M},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(S,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(S),this._signal("change",S)},A.prototype.setValue=function(S){this.doc.setValue(S),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},A.fromJSON=function(S){typeof S=="string"&&(S=JSON.parse(S));var M=new d;M.$undoStack=S.history.undo,M.$redoStack=S.history.redo,M.mark=S.history.mark,M.$rev=S.history.rev;var $=new A(S.value);return S.folds.forEach(function(L){$.addFold("...",l.fromPoints(L.start,L.end))}),$.setAnnotations(S.annotations),$.setBreakpoints(S.breakpoints),$.setMode(S.mode),$.setScrollLeft(S.scrollLeft),$.setScrollTop(S.scrollTop),$.setUndoManager(M),$.selection.fromJSON(S.selection),$},A.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(S){return S.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},A.prototype.toString=function(){return this.doc.getValue()},A.prototype.getSelection=function(){return this.selection},A.prototype.getState=function(S){return this.bgTokenizer.getState(S)},A.prototype.getTokens=function(S){return this.bgTokenizer.getTokens(S)},A.prototype.getTokenAt=function(S,M){var $=this.bgTokenizer.getTokens(S),L,T=0;if(M==null){var R=$.length-1;T=this.getLine(S).length}else for(var R=0;R<$.length&&(T+=$[R].value.length,!(T>=M));R++);return L=$[R],L?(L.index=R,L.start=T-L.value.length,L):null},A.prototype.setUndoManager=function(S){if(this.$undoManager=S,this.$informUndoManager&&this.$informUndoManager.cancel(),S){var M=this;S.addSession(this),this.$syncInformUndoManager=function(){M.$informUndoManager.cancel(),M.mergeUndoDeltas=!1},this.$informUndoManager=f.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},A.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},A.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},A.prototype.getTabString=function(){return this.getUseSoftTabs()?f.stringRepeat(" ",this.getTabSize()):" "},A.prototype.setUseSoftTabs=function(S){this.setOption("useSoftTabs",S)},A.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this
`},A.prototype.getWordRange=function(S,M){var $=this.getLine(S),L=!1;if(M>0&&(L=!!$.charAt(M-1).match(this.tokenRe)),L||(L=!!$.charAt(M).match(this.tokenRe)),L)var T=this.tokenRe;else if(/^\s+$/.test($.slice(M-1,M+1)))var T=/\s/;else var T=this.nonTokenRe;var R=M;if(R>0){do R--;while(R>=0&&$.charAt(R).match(T));R++}for(var P=M;P<$.length&&$.charAt(P).match(T);)P++;return new l(S,R,S,P)},A.prototype.getAWordRange=function(S,M){for(var $=this.getWordRange(S,M),L=this.getLine($.end.row);L.charAt($.end.column).match(/[ \t]/);)$.end.column+=1;return $},A.prototype.setNewLineMode=function(S){this.doc.setNewLineMode(S)},A.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},A.prototype.setUseWorker=function(S){this.setOption("useWorker",S)},A.prototype.getUseWorker=function(){return this.$useWorker},A.prototype.onReloadTokenizer=function(S){var M=S.data;this.bgTokenizer.start(M.first),this._signal("tokenizerUpdate",S)},A.prototype.setMode=function(S,M){if(S&&typeof S=="object"){if(S.getTokenizer)return this.$onChangeMode(S);var $=S,L=$.path}else L=S||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new o),this.$modes[L]&&!$){this.$onChangeMode(this.$modes[L]),M&&M();return}this.$modeId=L,c.loadModule(["mode",L],(function(T){if(this.$modeId!==L)return M&&M();this.$modes[L]&&!$?this.$onChangeMode(this.$modes[L]):T&&T.Mode&&(T=new T.Mode($),$||(this.$modes[L]=T,T.$id=L),this.$onChangeMode(T)),M&&M()}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},A.prototype.$onChangeMode=function(S,M){if(M||(this.$modeId=S.$id),this.$mode!==S){var $=this.$mode;this.$mode=S,this.$stopWorker(),this.$useWorker&&this.$startWorker();var L=S.getTokenizer();if(L.on!==void 0){var T=this.onReloadTokenizer.bind(this);L.on("update",T)}this.bgTokenizer.setTokenizer(L),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=S.tokenRe,this.nonTokenRe=S.nonTokenRe,M||(S.attachToSession&&S.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(S.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:$,mode:S}))}},A.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},A.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(S){c.warn("Could not load worker",S),this.$worker=null}},A.prototype.getMode=function(){return this.$mode},A.prototype.setScrollTop=function(S){this.$scrollTop===S||isNaN(S)||(this.$scrollTop=S,this._signal("changeScrollTop",S))},A.prototype.getScrollTop=function(){return this.$scrollTop},A.prototype.setScrollLeft=function(S){this.$scrollLeft===S||isNaN(S)||(this.$scrollLeft=S,this._signal("changeScrollLeft",S))},A.prototype.getScrollLeft=function(){return this.$scrollLeft},A.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},A.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var S=0;return this.lineWidgets.forEach(function(M){M&&M.screenWidth>S&&(S=M.screenWidth)}),this.lineWidgetWidth=S},A.prototype.$computeWidth=function(S){if(this.$modified||S){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var M=this.doc.getAllLines(),$=this.$rowLengthCache,L=0,T=0,R=this.$foldData[T],P=R?R.start.row:1/0,F=M.length,O=0;O<F;O++){if(O>P){if(O=R.end.row+1,O>=F)break;R=this.$foldData[T++],P=R?R.start.row:1/0}$[O]==null&&($[O]=this.$getStringScreenWidth(M[O])[0]),$[O]>L&&(L=$[O])}this.screenWidth=L}},A.prototype.getLine=function(S){return this.doc.getLine(S)},A.prototype.getLines=function(S,M){return this.doc.getLines(S,M)},A.prototype.getLength=function(){return this.doc.getLength()},A.prototype.getTextRange=function(S){return this.doc.getTextRange(S||this.selection.getRange())},A.prototype.insert=function(S,M){return this.doc.insert(S,M)},A.prototype.remove=function(S){return this.doc.remove(S)},A.prototype.removeFullLines=function(S,M){return this.doc.rem
^`).split(``),r=[],u=0;u<s.length;u++)try{r.push(new RegExp(s[u],l))}catch{return!1}return r},i.prototype.$matchIterator=function(o,l){var s=this.$assembleRegExp(l);if(!s)return!1;var r=l.backwards==!0,u=l.skipCurrent!=!1,d=s.unicode,g=l.range,y=l.start;y||(y=g?g[r?"end":"start"]:o.selection.getRange()),y.start&&(y=y[u!=r?"end":"start"]);var x=g?g.start.row:0,C=g?g.end.row:o.getLength()-1;if(r)var b=function(I){var E=y.row;if(!_(E,y.column,I)){for(E--;E>=x;E--)if(_(E,Number.MAX_VALUE,I))return;if(l.wrap!=!1){for(E=C,x=y.row;E>=x;E--)if(_(E,Number.MAX_VALUE,I))return}}};else var b=function(E){var k=y.row;if(!_(k,y.column,E)){for(k=k+1;k<=C;k++)if(_(k,0,E))return;if(l.wrap!=!1){for(k=x,C=y.row;k<=C;k++)if(_(k,0,E))return}}};if(l.$isMultiLine)var w=s.length,_=function(I,E,k){var A=r?I-w+1:I;if(!(A<0||A+w>o.getLength())){var S=o.getLine(A),M=S.search(s[0]);if(!(!r&&M<E||M===-1)){for(var $=1;$<w;$++)if(S=o.getLine(A+$),S.search(s[$])==-1)return;var L=S.match(s[w-1])[0].length;if(!(r&&L>E)&&k(A,M,A+w-1,L))return!0}}};else if(r)var _=function(E,k,A){var S=o.getLine(E),M=[],$,L=0;for(s.lastIndex=0;$=s.exec(S);){var T=$[0].length;if(L=$.index,!T){if(L>=S.length)break;s.lastIndex=L+=p.skipEmptyMatch(S,L,d)}if($.index+T>k)break;M.push($.index,T)}for(var R=M.length-1;R>=0;R-=2){var P=M[R-1],T=M[R];if(A(E,P,E,P+T))return!0}};else var _=function(E,k,A){var S=o.getLine(E),M,$;for(s.lastIndex=k;$=s.exec(S);){var L=$[0].length;if(M=$.index,A(E,M,E,M+L))return!0;if(!L&&(s.lastIndex=M+=p.skipEmptyMatch(S,M,d),M>=S.length))return!1}};return{forEach:b}},i}();function h(i,o){var l=p.supportsLookbehind();function s(g,y){y===void 0&&(y=!0);var x=l&&o.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return x.test(g)||o.regExp?l&&o.$supportsUnicodeFlag?y?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var r=Array.from(i),u=r[0],d=r[r.length-1];return s(u)+i+s(d,!1)}a.Search=c}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,a,v){var p=this&&this.__extends||function(){var l=function(s,r){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var g in d)Object.prototype.hasOwnProperty.call(d,g)&&(u[g]=d[g])},l(s,r)};return function(s,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");l(s,r);function u(){this.constructor=s}s.prototype=r===null?Object.create(r):(u.prototype=r.prototype,new u)}}(),f=n("../lib/keys"),m=n("../lib/useragent"),c=f.KEY_MODS,h=function(){function l(s,r){this.$init(s,r,!1)}return l.prototype.$init=function(s,r,u){this.platform=r||(m.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(s),this.$singleCommand=u},l.prototype.addCommand=function(s){this.commands[s.name]&&this.removeCommand(s),this.commands[s.name]=s,s.bindKey&&this._buildKeyHash(s)},l.prototype.removeCommand=function(s,r){var u=s&&(typeof s=="string"?s:s.name);s=this.commands[u],r||delete this.commands[u];var d=this.commandKeyBinding;for(var g in d){var y=d[g];if(y==s)delete d[g];else if(Array.isArray(y)){var x=y.indexOf(s);x!=-1&&(y.splice(x,1),y.length==1&&(d[g]=y[0]))}}},l.prototype.bindKey=function(s,r,u){if(typeof s=="object"&&s&&(u==null&&(u=s.position),s=s[this.platform]),!!s){if(typeof r=="function")return this.addCommand({exec:r,bindKey:s,name:r.name||s});s.split("|").forEach(function(d){var g="";if(d.indexOf(" ")!=-1){var y=d.split(/\s+/);d=y.pop(),y.forEach(function(b){var w=this.parseKeys(b),_=c[w.hashId]+w.key;g+=(g?" ":"")+_,this._addCommandToBinding(g,"chainKeys")},this),g+=" "}var x=this.parseKeys(d),C=c[x.hashId]+x.key;this._addCommandToBinding(g+C,r,u)},this)}},l.prototype._addCommandToBinding=function(s,r,u){var d=this.commandKeyBinding,g;if(!r)delete d[s];else if(!d[s]||this.$singleCommand)d[s]=r;else{Array.isArray(d[s])?(g=d[s].indexOf(r))!=-1&&d[s].splice(g,1):d[s]=[d[s]],typeof u!="number"&&(u=i(r));var y=d[s];for(g=0;g<y.length;g++){var x=y[g],C=i(x);if(C>u)break}y.splice(g,0,r)}},l.prototype.
`)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(i){i.selection.clearSelection();var o=i.getCursorPosition();i.selection.moveTo(o.row-1,Number.MAX_VALUE),i.insert(``),o.row===0&&i.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(i){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),i.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:c("F1","F1"),exec:function(i){i.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:c(null,null),exec:function(i){i.prompt({$type:"modes"})},readOnly:!0}];for(var h=1;h<9;h++)a.commands.push({name:"foldToLevel"+h,description:"Fold To Level "+h,level:h,exec:function(i){i.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(n,a,v){var p=n("./lib/dom"),f=function(){function m(c){this.session=c,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}return m.prototype.getRowLength=function(c){var h;return this.lineWidgets?h=this.lineWidgets[c]&&this.lineWidgets[c].rowCount||0:h=0,!this.$useWrapMode||!this.$wrapData[c]?1+h:this.$wrapData[c].length+1+h},m.prototype.$getWidgetScreenLength=function(){var c=0;return this.lineWidgets.forEach(function(h){h&&h.rowCount&&!h.hidden&&(c+=h.rowCount)}),c},m.prototype.$onChangeEditor=function(c){this.attach(c.editor)},m.prototype.attach=function(c){c&&c.widgetManager&&c.widgetManager!=this&&c.widgetManager.detach(),this.editor!=c&&(this.detach(),this.editor=c,c&&(c.widgetManager=this,c.renderer.on("beforeRender",this.measureWidgets),c.renderer.on("afterRender",this.renderWidgets)))},m.prototype.detach=function(c){var h=this.editor;if(h){this.editor=null,h.widgetManager=null,h.renderer.off("beforeRender",this.measureWidgets),h.renderer.off("afterRender",this.renderWidgets);var i=this.session.lineWidgets;i&&i.forEach(function(o){o&&o.el&&o.el.parentNode&&(o._inDocument=!1,o.el.parentNode.removeChild(o.el))})}},m.prototype.updateOnFold=function(c,h){var i=h.lineWidgets;if(!(!i||!c.action)){for(var o=c.data,l=o.start.row,s=o.end.row,r=c.action=="add",u=l+1;u<s;u++)i[u]&&(i[u].hidden=r);i[s]&&(r?i[l]?i[s].hidden=r:i[l]=i[s]:(i[l]==i[s]&&(i[l]=void 0),i[s].hidden=r))}},m.prototype.updateOnChange=function(c){var h=this.session.lineWidgets;if(h){var i=c.start.row,o=c.end.row-i;if(o!==0)if(c.action=="remove"){var l=h.splice(i+1,o);!h[i]&&l[l.length-1]&&(h[i]=l.pop()),l.forEach(function(r){r&&this.removeLineWidget(r)},this),this.$updateRows()}else{var s=new Array(o);h[i]&&h[i].column!=null&&c.start.column>h[i].column&&i++,s.unshift(i,0),h.splice.apply(h,s),this.$updateRows()}}},m.prototype.$updateRows=function(){var c=this.session.lineWidgets;if(c){var h=!0;c.forEach(function(i,o){if(i)for(h=!1,i.row=o;i.$oldWidget;)i.$oldWidget.row=o,i=i.$oldWidget}),h&&(this.session.lineWidgets=null)}},m.prototype.$registerLineWidget=function(c){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var h=this.session.lineWidgets[c.row];return h&&(c.$oldWidget=h,h.el&&h.el.parentNode&&(h.el.parentNode.removeChild(h.el),h._inDocument=!1)),this.session.lineWidgets[c.row]=c,c},m.prototype.addLineWidget=function(c){if(this.$registerLineWidget(c),c.session=this.session,!this.editor)return c;var h=this.editor.renderer;c.html&&!c.el&&(c.el=p.createElement("div"),c.el.innerHTML=c.html),c.text&&!c.el&&(c.el=p.createElement("div"),c.el.textContent=c.text),c.el&&(p.addCssClass(c.el,"ace_lineWidgetContainer"),c.className&&p.addCssClass(c.el,c.className),c.el.style.position="absolute",c.el.style.zIndex="5",h.container.appendChild(c.el),c._inDocument=!0,c.cov
`)==-1){var O=d.fromPoints(P,P);O.end.column+=$.length,this.session.remove(O)}}else{var O=this.getSelectionRange();P=this.session.remove(O),this.clearSelection()}if($==``||$==`\r`){var W=T.getLine(P.row);if(P.column>W.search(/\S|$/)){var N=W.substr(P.column).search(/\S|$/);T.doc.removeInLine(P.row,P.column,P.column+N)}}this.clearSelection();var V=P.column,H=T.getState(P.row),W=T.getLine(P.row),j=R.checkOutdent(H,W,$);if(T.insert(P,$),F&&F.selection&&(F.selection.length==2?this.selection.setSelectionRange(new d(P.row,V+F.selection[0],P.row,V+F.selection[1])):this.selection.setSelectionRange(new d(P.row+F.selection[0],F.selection[1],P.row+F.selection[2],F.selection[3]))),this.$enableAutoIndent){if(T.getDocument().isNewLine($)){var Z=R.getNextLineIndent(H,W.slice(0,P.column),T.getTabString());T.insert({row:P.row+1,column:0},Z)}j&&R.autoOutdent(H,T,P.row)}},M.prototype.autoIndent=function(){for(var $=this.session,L=$.getMode(),T=this.selection.isEmpty()?[new d(0,0,$.doc.getLength()-1,0)]:this.selection.getAllRanges(),R="",P="",F="",O=$.getTabString(),N=0;N<T.length;N++)for(var V=T[N].start.row,H=T[N].end.row,W=V;W<=H;W++){W>0&&(R=$.getState(W-1),P=$.getLine(W-1),F=L.getNextLineIndent(R,P,O));var j=$.getLine(W),Z=L.$getIndent(j);if(F!==Z){if(Z.length>0){var q=new d(W,0,W,Z.length);$.remove(q)}F.length>0&&$.insert({row:W,column:0},F)}L.autoOutdent(R,$,W)}},M.prototype.onTextInput=function($,L){if(!L)return this.keyBinding.onTextInput($);this.startOperation({command:{name:"insertstring"}});var T=this.applyComposition.bind(this,$,L);this.selection.rangeCount?this.forEachSelection(T):T(),this.endOperation()},M.prototype.applyComposition=function($,L){if(L.extendLeft||L.extendRight){var T=this.selection.getRange();T.start.column-=L.extendLeft,T.end.column+=L.extendRight,T.start.column<0&&(T.start.row--,T.start.column+=this.session.getLine(T.start.row).length+1),this.selection.setRange(T),!$&&!T.isEmpty()&&this.remove()}if(($||!this.selection.isEmpty())&&this.insert($,!0),L.restoreStart||L.restoreEnd){var T=this.selection.getRange();T.start.column-=L.restoreStart,T.end.column-=L.restoreEnd,this.selection.setRange(T)}},M.prototype.onCommandKey=function($,L,T){return this.keyBinding.onCommandKey($,L,T)},M.prototype.setOverwrite=function($){this.session.setOverwrite($)},M.prototype.getOverwrite=function(){return this.session.getOverwrite()},M.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},M.prototype.setScrollSpeed=function($){this.setOption("scrollSpeed",$)},M.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},M.prototype.setDragDelay=function($){this.setOption("dragDelay",$)},M.prototype.getDragDelay=function(){return this.getOption("dragDelay")},M.prototype.setSelectionStyle=function($){this.setOption("selectionStyle",$)},M.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},M.prototype.setHighlightActiveLine=function($){this.setOption("highlightActiveLine",$)},M.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},M.prototype.setHighlightGutterLine=function($){this.setOption("highlightGutterLine",$)},M.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},M.prototype.setHighlightSelectedWord=function($){this.setOption("highlightSelectedWord",$)},M.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},M.prototype.setAnimatedScroll=function($){this.renderer.setAnimatedScroll($)},M.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},M.prototype.setShowInvisibles=function($){this.renderer.setShowInvisibles($)},M.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},M.prototype.setDisplayIndentGuides=function($){this.renderer.setDisplayIndentGuides($)},M.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},M.prototype.setHighlightIndentGuides=function($){this.renderer.setHighlightIndentGuides($)},M.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},M.prototype.setShowPrintMargin=function($){this.renderer.setShowPrintMargin($)},M.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMa
`){var O=T.getLine(L.end.row);/^\s+$/.test(O)&&(L.end.column=O.length)}}P&&(L=P)}this.session.remove(L),this.clearSelection()},M.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},M.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},M.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},M.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var $=this.getSelectionRange();$.start.column==$.end.column&&$.start.row==$.end.row&&($.end.column=0,$.end.row++),this.session.remove($),this.clearSelection()},M.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var $=this.getCursorPosition();this.insert(``),this.moveCursorToPosition($)},M.prototype.setGhostText=function($,L){this.session.widgetManager||(this.session.widgetManager=new w(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText($,L)},M.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},M.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var $=this.getCursorPosition(),L=$.column;if(L!==0){var T=this.session.getLine($.row),R,P;L<T.length?(R=T.charAt(L)+T.charAt(L-1),P=new d($.row,L-1,$.row,L+1)):(R=T.charAt(L-1)+T.charAt(L-2),P=new d($.row,L-2,$.row,L)),this.session.replace(P,R),this.session.selection.moveToPosition(P.end)}}},M.prototype.toLowerCase=function(){var $=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var L=this.getSelectionRange(),T=this.session.getTextRange(L);this.session.replace(L,T.toLowerCase()),this.selection.setSelectionRange($)},M.prototype.toUpperCase=function(){var $=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var L=this.getSelectionRange(),T=this.session.getTextRange(L);this.session.replace(L,T.toUpperCase()),this.selection.setSelectionRange($)},M.prototype.indent=function(){var $=this.session,L=this.getSelectionRange();if(L.start.row<L.end.row){var T=this.$getSelectedRows();$.indentRows(T.first,T.last," ");return}else if(L.start.column<L.end.column){var R=$.getTextRange(L);if(!/^\s+$/.test(R)){var T=this.$getSelectedRows();$.indentRows(T.first,T.last," ");return}}var P=$.getLine(L.start.row),F=L.start,O=$.getTabSize(),N=$.documentToScreenColumn(F.row,F.column);if(this.session.getUseSoftTabs())var V=O-N%O,H=c.stringRepeat(" ",V);else{for(var V=N%O;P[L.start.column-1]==" "&&V;)L.start.column--,V--;this.selection.setSelectionRange(L),H=" "}return this.insert(H)},M.prototype.blockIndent=function(){var $=this.$getSelectedRows();this.session.indentRows($.first,$.last," ")},M.prototype.blockOutdent=function(){var $=this.session.getSelection();this.session.outdentRows($.getRange())},M.prototype.sortLines=function(){for(var $=this.$getSelectedRows(),L=this.session,T=[],R=$.first;R<=$.last;R++)T.push(L.getLine(R));T.sort(function(O,N){return O.toLowerCase()<N.toLowerCase()?-1:O.toLowerCase()>N.toLowerCase()?1:0});for(var P=new d(0,0,0,0),R=$.first;R<=$.last;R++){var F=L.getLine(R);P.start.row=R,P.end.row=R,P.end.column=F.length,L.replace(P,T[R-$.first])}},M.prototype.toggleCommentLines=function(){var $=this.session.getState(this.getCursorPosition().row),L=this.$getSelectedRows();this.session.getMode().toggleCommentLines($,this.session,L.first,L.last)},M.prototype.toggleBlockComment=function(){var $=this.getCursorPosition(),L=this.session.getState($.row),T=this.getSelectionRange();this.session.getMode().toggleBlockComment(L,this.session,T,$)},M.prototype.getNumberAt=function($,L){var T=/[\-]?[0-9]+(?:\.[0-9]+)?/g;T.lastIndex=0;for(var R=this.session.getLine($);T.lastIndex<L;){var P=T.exec(R);if(P.index<=L&&P.index+P[0].length>=L){var F={value:P[0],start:P.index,end:P.index+P[0].length};return F}}return null},M.prototype.modifyNumber=function($){var L=this.selection.getCursor().row,T=this.selection.getCursor().column,R=new d(L,T-1,L,T),P=this.session.getTextRange(R);if(!isNaN(parseFloat(P))&&isFinite(P)){var F=this.getNumberAt(L,T);if(F){var O=F.value.indexOf(".")>=0?F.start+F.value.indexOf(".")+1:F.end,N=F.start+F.value.length-O,V=parseFloat(F.value);V*=Math.pow(10,N),O!==F.end&&T<O?$*=Math.pow(10,F.end-T-1):$*=Math.pow(10,F.end-T),V+=$,V/=Math.pow(10,N);var H=V.toFixed(N),W=new d(L,F.start,L,F.end);this.session.replace(W,H),this.moveCursorTo(L,Math.max(F.start+1,T+H.length-F.value.length))}}else this.toggleWord()},M.prototype.toggleWord=function(){var $=this.selection.getCursor().row,L=this.selection.getCursor().column;this.selection.selectWord();var T=this.getSelectedText(),R=this.selection.getWordRange().start.column,P=T.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),F=L-R-1;F<0&&(F=0);var O=0,N=0,V=this;T.match(/[A-Za-z0-9_]+/)&&P.forEach(function(te,ae){N=O+te.length,F>=O&&F<=
`&&r.getNewLineMode()!="windows",d=u?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=d)return this.EOL_CHAR=d,!0},s.prototype.setPadding=function(r){this.$padding=r,this.element.style.margin="0 "+r+"px"},s.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},s.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},s.prototype.$setFontMetrics=function(r){this.$fontMetrics=r,this.$fontMetrics.on("changeCharacterSize",(function(u){this._signal("changeCharacterSize",u)}).bind(this)),this.$pollSizeChanges()},s.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},s.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},s.prototype.setSession=function(r){this.session=r,r&&this.$computeTabString()},s.prototype.setShowInvisibles=function(r){return this.showInvisibles==r?!1:(this.showInvisibles=r,typeof r=="string"?(this.showSpaces=/tab/i.test(r),this.showTabs=/space/i.test(r),this.showEOL=/eol/i.test(r)):this.showSpaces=this.showTabs=this.showEOL=r,this.$computeTabString(),!0)},s.prototype.setDisplayIndentGuides=function(r){return this.displayIndentGuides==r?!1:(this.displayIndentGuides=r,this.$computeTabString(),!0)},s.prototype.setHighlightIndentGuides=function(r){return this.$highlightIndentGuides===r?!1:(this.$highlightIndentGuides=r,r)},s.prototype.$computeTabString=function(){var r=this.session.getTabSize();this.tabSize=r;for(var u=this.$tabStrings=[0],d=1;d<r+1;d++)if(this.showTabs){var g=this.dom.createElement("span");g.className="ace_invisible ace_invisible_tab",g.textContent=m.stringRepeat(this.TAB_CHAR,d),u.push(g)}else u.push(this.dom.createTextNode(m.stringRepeat(" ",d),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var y="ace_indent-guide",x=this.showSpaces?" ace_invisible ace_invisible_space":"",C=this.showSpaces?m.stringRepeat(this.SPACE_CHAR,this.tabSize):m.stringRepeat(" ",this.tabSize),b=this.showTabs?" ace_invisible ace_invisible_tab":"",w=this.showTabs?m.stringRepeat(this.TAB_CHAR,this.tabSize):C,g=this.dom.createElement("span");g.className=y+x,g.textContent=C,this.$tabStrings[" "]=g;var g=this.dom.createElement("span");g.className=y+b,g.textContent=w,this.$tabStrings[" "]=g}},s.prototype.updateLines=function(r,u,d){if(this.config.lastRow!=r.lastRow||this.config.firstRow!=r.firstRow)return this.update(r);this.config=r;for(var g=Math.max(u,r.firstRow),y=Math.min(d,r.lastRow),x=this.element.childNodes,C=0,w=r.firstRow;w<g;w++){var _=this.session.getFoldLine(w);if(_)if(_.containsRow(g)){g=_.start.row;break}else w=_.end.row;C++}for(var b=!1,w=g,_=this.session.getNextFoldLine(w),I=_?_.start.row:1/0;w>I&&(w=_.end.row+1,_=this.session.getNextFoldLine(w,_),I=_?_.start.row:1/0),!(w>y);){var E=x[C++];if(E){this.dom.removeChildren(E),this.$renderLine(E,w,w==I?_:!1),b&&(E.style.top=this.$lines.computeLineTop(w,r,this.session)+"px");var k=r.lineHeight*this.session.getRowLength(w)+"px";E.style.height!=k&&(b=!0,E.style.height=k)}w++}if(b)for(;C<this.$lines.cells.length;){var A=this.$lines.cells[C++];A.element.style.top=this.$lines.computeLineTop(A.row,r,this.session)+"px"}},s.prototype.scrollLines=function(r){var u=this.config;if(this.config=r,this.$lines.pageChanged(u,r))return this.update(r);this.$lines.moveContainer(r);var d=r.lastRow,g=u?u.lastRow:-1;if(!u||g<r.firstRow)return this.update(r);if(d<u.firstRow)return this.update(r);if(!u||u.lastRow<r.firstRow)return this.update(r);if(r.lastRow<u.firstRow)return this.update(r);if(u.firstRow<r.firstRow)for(var y=this.session.getFoldedRowCount(u.firstRow,r.firstRow-1);y>0;y--)this.$lines.shift();if(u.lastRow>r.lastRow)for(var y=this.session.getFoldedRowCount(r.lastRow+1,u.lastRow);y>0;y--)this.$lines.pop();r.firstRow<u.firstRow&&this.$lines.unshift(this.$renderLinesFragment(r,r.firstRow,u.firstRow-1)),r.lastRow>u.lastRow&&this.$lines.push(this.$renderLinesFragment(r,u.lastRow+1,r.lastRow)),this.$highlightIndentGuide()},s.prototype.$renderLinesFragment=function(r,u,d){for(var g=[],y=u,x
position: absolute; background: rgba(128, 128, 128, 0.6); -moz-box-sizing: border-box; box-sizing: border-box; border: 1px solid #bbb; border-radius: 2px; z-index: 8;}.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h { position: absolute; z-index: 6; background: none; overflow: hidden!important;}.ace_editor>.ace_sb-v { z-index: 6; right: 0; top: 0; width: 12px;}.ace_editor>.ace_sb-v div { z-index: 8; right: 0; width: 100%;}.ace_editor>.ace_sb-h { bottom: 0; left: 0; height: 12px;}.ace_editor>.ace_sb-h div { bottom: 0; height: 100%;}.ace_editor>.ace_sb_grabbed { z-index: 8; background: #000;}`,"ace_scrollbar.css",!1);var i=function(){function s(r,u){this.element=m.createElement("div"),this.element.className="ace_sb"+u,this.inner=m.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,r.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,c.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return s.prototype.setVisible=function(r){this.element.style.display=r?"":"none",this.isVisible=r,this.coeff=1},s}();f.implement(i.prototype,h);var o=function(s){p(r,s);function r(u,d){var g=s.call(this,u,"-v")||this;return g.scrollTop=0,g.scrollHeight=0,g.parent=u,g.width=g.VScrollWidth,g.renderer=d,g.inner.style.width=g.element.style.width=(g.width||15)+"px",g.$minWidth=0,g}return r.prototype.onMouseDown=function(u,d){if(u==="mousedown"&&!(c.getButton(d)!==0||d.detail===2)){if(d.target===this.inner){var g=this,y=d.clientY,x=function(k){y=k.clientY},C=function(){clearInterval(I)},b=d.clientY,w=this.thumbTop,_=function(){if(y!==void 0){var k=g.scrollTopFromThumbTop(w+y-b);k!==g.scrollTop&&g._emit("scroll",{data:k})}};c.capture(this.inner,x,C);var I=setInterval(_,20);return c.preventDefault(d)}var E=d.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(E)}),c.preventDefault(d)}},r.prototype.getHeight=function(){return this.height},r.prototype.scrollTopFromThumbTop=function(u){var d=u*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return d=d>>0,d<0?d=0:d>this.pageHeight-this.viewHeight&&(d=this.pageHeight-this.viewHeight),d},r.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},r.prototype.setHeight=function(u){this.height=Math.max(0,u),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},r.prototype.setScrollHeight=function(u,d){this.pageHeight===u&&!d||(this.pageHeight=u,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},r.prototype.setScrollTop=function(u){this.scrollTop=u,u<0&&(u=0),this.thumbTop=u*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},r}(i);o.prototype.setInnerHeight=o.prototype.setScrollHeight;var l=function(s){p(r,s);function r(u,d){var g=s.call(this,u,"-h")||this;return g.scrollLeft=0,g.scrollWidth=0,g.height=g.HScrollHeight,g.inner.style.height=g.element.style.height=(g.height||12)+"px",g.renderer=d,g}return r.prototype.onMouseDown=function(u,d){if(u==="mousedown"&&!(c.getButton(d)!==0||d.detail===2)){if(d.target===this.inner){var g=this,y=d.clientX,x=function(k){y=k.clientX},C=function(){clearInterval(I)},b=d.clientX,w=this.thumbLeft,_=function(){if(y!==void 0){var k=g.scrollLeftFromThumbLeft(w+y-b);k!==g.scrollLeft&&g._emit("scroll",{data:k})}};c.capture(this.inner,x,C);var I=setInterval(_,20);return c.preventDefault(d)}var E=d.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(E)}),c.preventDefault(d)}},r.prototype.getHeight=function(){return this.isVisible?this.height:0},r.prototype.scrollLeftFromThumbLeft=function(u){var d=u*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return d=d>>0,d<0?d=0:d>this.pageWidth-this.viewWidth&&(d=this.pageWidth-this.viewWidth),d},r.prototype.setWidth=function(u){this.width=Math.max(0,u),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},r.prototype.setScrollWidth=function(u,d){this.pageWidth===u&&!d||(this.pageWidth=u,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>t
.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
.ace_editor { position: relative; overflow: hidden; padding: 0; font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace; direction: ltr; text-align: left; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); forced-color-adjust: none;}
.ace_scroller { position: absolute; overflow: hidden; top: 0; bottom: 0; background-color: inherit; -ms-user-select: none; -moz-user-select: none; -webkit-user-select: none; user-select: none; cursor: text;}
.ace_content { position: absolute; box-sizing: border-box; min-width: 100%; contain: style size layout; font-variant-ligatures: no-common-ligatures;}
.ace_keyboard-focus:focus { box-shadow: inset 0 0 0 2px #5E9ED6; outline: none;}
.ace_dragging .ace_scroller:before{ position: absolute; top: 0; left: 0; right: 0; bottom: 0; content: ''; background: rgba(250, 250, 250, 0.01); z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{ background: rgba(0, 0, 0, 0.01);}
.ace_gutter { position: absolute; overflow : hidden; width: auto; top: 0; bottom: 0; left: 0; cursor: default; z-index: 4; -ms-user-select: none; -moz-user-select: none; -webkit-user-select: none; user-select: none; contain: style size layout;}
.ace_gutter-active-line { position: absolute; left: 0; right: 0;}
.ace_scroller.ace_scroll-left:after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset; pointer-events: none;}
.ace_gutter-cell, .ace_gutter-cell_svg-icons { position: absolute; top: 0; left: 0; right: 0; padding-left: 19px; padding-right: 6px; background-repeat: no-repeat;}
.ace_gutter-cell_svg-icons .ace_gutter_annotation { margin-left: -14px; float: left;}
.ace_gutter-cell .ace_gutter_annotation { margin-left: -19px; float: left;}
.ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold, .ace_gutter-cell.ace_security, .ace_icon.ace_security, .ace_icon.ace_security_fold { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg=="); background-repeat: no-repeat; background-position: 2px center;}
.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg=="); background-repeat: no-repeat; background-position: 2px center;}
.ace_gutter-cell.ace_info, .ace_icon.ace_info, .ace_gutter-cell.ace_hint, .ace_icon.ace_hint { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII="); background-repeat: no-repeat; background-position: 2px center;}
.ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info, .ace_dark .ace_gutter-cell.ace_hint, .ace_dark .ace_icon.ace_hint { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}
.ace_icon_svg.ace_error { -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+"); background-color: crimson;}.ace_icon_svg.ace_security { -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iZGFya29yYW5nZSIgZmlsbD0ibm9uZSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogICAgICAgIDxwYXRoIGNsYXNzPSJzdHJva2UtbGluZWpvaW4tcm91bmQiIGQ9Ik04IDE0LjgzMDdDOCAxNC44MzA3IDIgMTIuOTA0NyAyIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOEM3Ljk4OTk5IDEuMzQ5MTggMTAuNjkgMy4yNjU0OCAxNCAzLjI2NTQ4VjguMDg5OTJDMTQgMTIuOTA0NyA4IDE0LjgzMDcgOCAxNC44MzA3WiIvPgogICAgICAgIDxwYXRoIGQ9Ik0yIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOCIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMy45OSA4LjA4OTkyVjMuMjY1NDhDMTAuNjggMy4yNjU0OCA4IDEuMzQ5MTggOCAxLjM0OTE4Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggNFY5Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggMTBWMTIiLz4KICAgIDwvZz4KPC9zdmc+"); background-color: crimson;}.ace_icon_svg.ace_warning { -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg=="); background-color: darkorange;}.ace_icon_svg.ace_info { -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg=="); background-color: royalblue;}.ace_icon_svg.ace_hint { -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0ic2lsdmVyIiBmaWxsPSJub25lIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTYgMTRIMTAiLz4KICAgICAgICA8cGF0aCBkPSJNOCAxMUg5QzkgOS40NzAwMiAxMiA4LjU0MDAyIDEyIDUuNzYwMDJDMTIuMDIgNC40MDAwMiAxMS4zOSAzLjM2MDAyIDEwLjQzIDIuNjcwMDJDOSAxLjY0MDAyIDcuMDAwMDEgMS42NDAwMiA1LjU3MDAxIDIuNjcwMDJDNC42MTAwMSAzLjM2MDAyIDMuOTggNC40MDAwMiA0IDUuNzYwMDJDNCA4LjU0MDAyIDcuMDAwMDEgOS40NzAwMiA3LjAwMDAxIDExSDhaIi8+CiAgICA8L2c+Cjwvc3ZnPg=="); background-color: silver;}
.ace_icon_svg.ace_error_fold { -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4="); background-color: crimson;}.ace_icon_svg.ace_security_fold { -webkit-mask-image: url("data:image/svg+xml;base64,CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTcgMTQiIGZpbGw9Im5vbmUiPgogICAgPHBhdGggZD0iTTEwLjAwMDEgMTMuNjk5MkMxMC4wMDAxIDEzLjY5OTIgMTEuOTI0MSAxMy40NzYzIDEzIDEyLjY5OTJDMTQuNDEzOSAxMS42NzgxIDE2IDEwLjUgMTYuMTI1MSA2LjgxMTI2VjIuNTg5ODdDMTYuMTI1MSAyLjU0NzY4IDE2LjEyMjEgMi41MDYxOSAxNi4xMTY0IDIuNDY1NTlWMS43MTQ4NUgxNS4yNDE0TDE1LjIzMDcgMS43MTQ4NEwxNC42MjUxIDEuNjk5MjJWNi44MTEyM0MxNC42MjUxIDguNTEwNjEgMTQuNjI1MSA5LjQ2NDYxIDEyLjc4MjQgMTEuNzIxQzEyLjE1ODYgMTIuNDg0OCAxMC4wMDAxIDEzLjY5OTIgMTAuMDAwMSAxMy42OTkyWiIgZmlsbD0iY3JpbXNvbiIgc3Ryb2tlLXdpZHRoPSIyIi8+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcuMzM2MDkgMC4zNjc0NzVDNy4wMzIxNCAwLjE1MjY1MiA2LjYyNTQ4IDAuMTUzNjE0IDYuMzIyNTMgMC4zNjk5OTdMNi4zMDg2OSAwLjM3OTU1NEM2LjI5NTUzIDAuMzg4NTg4IDYuMjczODggMC40MDMyNjYgNi4yNDQxNyAwLjQyMjc4OUM2LjE4NDcxIDAuNDYxODYgNi4wOTMyMSAwLjUyMDE3MSA1Ljk3MzEzIDAuNTkxMzczQzUuNzMyNTEgMC43MzQwNTkgNS4zNzk5IDAuOTI2ODY0IDQuOTQyNzkgMS4xMjAwOUM0LjA2MTQ0IDEuNTA5NyAyLjg3NTQxIDEuODgzNzcgMS41ODk4NCAxLjg4Mzc3SDAuNzE0ODQ0VjIuNzU4NzdWNi45ODAxNUMwLjcxNDg0NCA5LjQ5Mzc0IDIuMjg4NjYgMTEuMTk3MyAzLjcwMjU0IDEyLjIxODVDNC40MTg0NSAxMi43MzU1IDUuMTI4NzQgMTMuMTA1MyA1LjY1NzMzIDEzLjM0NTdDNS45MjI4NCAxMy40NjY0IDYuMTQ1NjYgMTMuNTU1OSA2LjMwNDY1IDEzLjYxNjFDNi4zODQyMyAxMy42NDYyIDYuNDQ4MDUgMTMuNjY5IDYuNDkzNDkgMTMuNjg0OEM2LjUxNjIyIDEzLjY5MjcgNi41MzQzOCAxMy42OTg5IDYuNTQ3NjQgMTMuNzAzM0w2LjU2MzgyIDEzLjcwODdMNi41NjkwOCAxMy43MTA0TDYuNTcwOTkgMTMuNzExTDYuODM5ODQgMTMuNzUzM0w2LjU3MjQyIDEzLjcxMTVDNi43NDYzMyAxMy43NjczIDYuOTMzMzUgMTMuNzY3MyA3LjEwNzI3IDEzLjcxMTVMNy4xMDg3IDEzLjcxMUw3LjExMDYxIDEzLjcxMDRMNy4xMTU4NyAxMy43MDg3TDcuMTMyMDUgMTMuNzAzM0M3LjE0NTMxIDEzLjY5ODkgNy4xNjM0NiAxMy42OTI3IDcuMTg2MTkgMTMuNjg0OEM3LjIzMTY0IDEzLjY2OSA3LjI5NTQ2IDEzLjY0NjIgNy4zNzUwMyAxMy42MTYxQzcuNTM0MDMgMTMuNTU1OSA3Ljc1Njg1IDEzLjQ2NjQgOC4wMjIzNiAxMy4zNDU3QzguNTUwOTUgMTMuMTA1MyA5LjI2MTIzIDEyLjczNTUgOS45NzcxNSAxMi4yMTg1QzExLjM5MSAxMS4xOTczIDEyLjk2NDggOS40OTM3NyAxMi45NjQ4IDYuOTgwMThWMi43NTg4QzEyLjk2NDggMi43MTY2IDEyLjk2MTkgMi42NzUxMSAxMi45NTYxIDIuNjM0NTFWMS44ODM3N0gxMi4wODExQzEyLjA3NzUgMS44ODM3NyAxMi4wNzQgMS44ODM3NyAxMi4wNzA0IDEuODgzNzdDMTAuNzk3OSAxLjg4MDA0IDkuNjE5NjIgMS41MTEwMiA4LjczODk0IDEuMTI0ODZDOC43MzUzNCAxLjEyMzI3IDguNzMxNzQgMS4xMjE2OCA4LjcyODE0IDEuMTIwMDlDOC4yOTEwMyAwLjkyNjg2NCA3LjkzODQyIDAuNzM0MDU5IDcuNjk3NzkgMC41OTEzNzNDNy41Nzc3MiAwLjUyMDE3MSA3LjQ4NjIyIDAuNDYxODYgNy40MjY3NiAwLjQyMjc4OUM3LjM5NzA1IDAuNDAzMjY2IDcuMzc1MzkgMC4zODg1ODggNy4zNjIyNCAwLjM3OTU1NEw3LjM0ODk2IDAuMzcwMzVDNy4zNDg5NiAwLjM3MDM1IDcuMzQ4NDcgMC4zNzAwMiA3LjM0NTYzIDAuMzc0MDU0TDcuMzM3NzkgMC4zNjg2NTlMNy4zMzYwOSAwLjM2NzQ3NVpNOC4wMzQ3MSAyLjcyNjkxQzguODYwNCAzLjA5MDYzIDkuOTYwNjYgMy40NjMwOSAxMS4yMDYxIDMuNTg5MDdWNi45ODAxNUgxMS4yMTQ4QzExLjIxNDggOC42Nzk1MyAxMC4xNjM3IDkuOTI1MDcgOC45NTI1NCAxMC43OTk4QzguMzU1OTUgMTEuMjMwNiA3Ljc1Mzc0IDExLjU0NTQgNy4yOTc5NiAxMS43NTI3QzcuMTE2NzEgMTEuODM1MSA2Ljk2MDYyIDExLjg5OTYgNi44Mzk4NCAxMS45NDY5QzYuNzE5MDYgMTEuODk5NiA2LjU2Mjk3IDExLjgzNTEgNi4zODE3MyAxMS43NTI3QzUuOTI1OTUgMTEuNTQ1NCA1LjMyMzczIDExLjIzMDYgNC43MjcxNSAxMC43OTk4QzMuNTE2MDMgOS45MjUwNyAyLjQ2NDg0IDguNjc5NTUgMi40NjQ4NCA2Ljk4MDE4VjMuNTg5MDlDMy43MTczOCAzLjQ2MjM5IDQuODIzMDggMy4wODYzOSA1LjY1MDMzIDIuNzIwNzFDNi4xNDIyOCAyLjUwMzI0IDYuNTQ0ODUgMi4yODUzNyA2LjgzMjU0IDIuMTE2MjRDNy4xMjE4MSAyLjI4NTM1IDcuNTI3IDIuNTAzNTIgOC4wMjE5NiAyLjcyMTMxQzguMDI2MiAyLjcyMzE3IDguMDMwNDUgMi43MjUwNCA4LjAzNDcxIDIuNzI2OTFaTTUuOTY0ODQgMy40MDE0N1Y3Ljc3NjQ3SDcuNzE0ODRWMy40MDE0N0g1Ljk2NDg0Wk01Ljk2NDg0IDEwLjQwMTVWOC42NTE0N0g3LjcxNDg0VjEwLjQwMTVINS45NjQ4NFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4="); background-color: crimson;}.ace_icon_svg.ace_warning_fold { -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4="); background-color: darkorange;}
.ace_scrollbar { contain: strict; position: absolute; right: 0; bottom: 0; z-index: 6;}
.ace_scrollbar-inner { position: absolute; cursor: text; left: 0; top: 0;}
.ace_scrollbar-v{ overflow-x: hidden; overflow-y: scroll; top: 0;}
.ace_scrollbar-h { overflow-x: scroll; overflow-y: hidden; left: 0;}
.ace_print-margin { position: absolute; height: 100%;}
.ace_text-input { position: absolute; z-index: 0; width: 0.5em; height: 1em; opacity: 0; background: transparent; -moz-appearance: none; appearance: none; border: none; resize: none; outline: none; overflow: hidden; font: inherit; padding: 0 1px; margin: 0 -1px; contain: strict; -ms-user-select: text; -moz-user-select: text; -webkit-user-select: text; user-select: text; /*with \`pre-line\` chrome inserts instead of space*/ white-space: pre!important;}.ace_text-input.ace_composition { background: transparent; color: inherit; z-index: 1000; opacity: 1;}.ace_composition_placeholder { color: transparent }.ace_composition_marker { border-bottom: 1px solid; position: absolute; border-radius: 0; margin-top: 1px;}
[ace_nocontext=true] { transform: none!important; filter: none!important; clip-path: none!important; mask : none!important; contain: none!important; perspective: none!important; mix-blend-mode: initial!important; z-index: auto;}
.ace_layer { z-index: 1; position: absolute; overflow: hidden; /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/ word-wrap: normal; white-space: pre; height: 100%; width: 100%; box-sizing: border-box; /* setting pointer-events: auto; on node under the mouse, which changes during scroll, will break mouse wheel scrolling in Safari */ pointer-events: none;}
.ace_gutter-layer { position: relative; width: auto; text-align: right; pointer-events: auto; height: 1000000px; contain: style size layout;}
.ace_text-layer { font: inherit !important; position: absolute; height: 1000000px; width: 1000000px; contain: style size layout;}
.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group { contain: style size layout; position: absolute; top: 0; left: 0; right: 0;}
.ace_hidpi .ace_text-layer,.ace_hidpi .ace_gutter-layer,.ace_hidpi .ace_content,.ace_hidpi .ace_gutter { contain: strict;}.ace_hidpi .ace_text-layer > .ace_line, .ace_hidpi .ace_text-layer > .ace_line_group { contain: strict;}
.ace_cjk { display: inline-block; text-align: center;}
.ace_cursor-layer { z-index: 4;}
.ace_cursor { z-index: 4; position: absolute; box-sizing: border-box; border-left: 2px solid; /* workaround for smooth cursor repaintng whole screen in chrome */ transform: translatez(0);}
.ace_multiselect .ace_cursor { border-left-width: 1px;}
.ace_slim-cursors .ace_cursor { border-left-width: 1px;}
.ace_overwrite-cursors .ace_cursor { border-left-width: 0; border-bottom: 1px solid;}
.ace_hidden-cursors .ace_cursor { opacity: 0.2;}
.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor { opacity: 0;}
.ace_smooth-blinking .ace_cursor { transition: opacity 0.18s;}
.ace_animate-blinking .ace_cursor { animation-duration: 1000ms; animation-timing-function: step-end; animation-name: blink-ace-animate; animation-iteration-count: infinite;}
.ace_animate-blinking.ace_smooth-blinking .ace_cursor { animation-duration: 1000ms; animation-timing-function: ease-in-out; animation-name: blink-ace-animate-smooth;} @keyframes blink-ace-animate { from, to { opacity: 1; } 60% { opacity: 0; }}
@keyframes blink-ace-animate-smooth { from, to { opacity: 1; } 45% { opacity: 1; } 60% { opacity: 0; } 85% { opacity: 0; }}
.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack { position: absolute; z-index: 3;}
.ace_marker-layer .ace_selection { position: absolute; z-index: 5;}
.ace_marker-layer .ace_bracket { position: absolute; z-index: 6;}
.ace_marker-layer .ace_error_bracket { position: absolute; border-bottom: 1px solid #DE5555; border-radius: 0;}
.ace_marker-layer .ace_active-line { position: absolute; z-index: 2;}
.ace_marker-layer .ace_selected-word { position: absolute; z-index: 4; box-sizing: border-box;}
.ace_line .ace_fold { box-sizing: border-box;
display: inline-block; height: 11px; margin-top: -2px; vertical-align: middle;
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="), url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII="); background-repeat: no-repeat, repeat-x; background-position: center center, top left; color: transparent;
border: 1px solid black; border-radius: 2px;
cursor: pointer; pointer-events: auto;}
.ace_dark .ace_fold {}
.ace_fold:hover{ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="), url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}
.ace_tooltip { background-color: #f5f5f5; border: 1px solid gray; border-radius: 1px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); color: black; max-width: 100%; padding: 3px 4px; position: fixed; z-index: 999999; box-sizing: border-box; cursor: default; white-space: pre-wrap; word-wrap: break-word; line-height: normal; font-style: normal; font-weight: normal; letter-spacing: normal; pointer-events: none; overflow: auto; max-width: min(60em, 66vw); overscroll-behavior: contain;}.ace_tooltip pre { white-space: pre-wrap;}
.ace_tooltip.ace_dark { background-color: #636363; color: #fff;}
.ace_tooltip:focus { outline: 1px solid #5E9ED6;}
.ace_icon { display: inline-block; width: 18px; vertical-align: top;}
.ace_icon_svg { display: inline-block; width: 12px; vertical-align: top; -webkit-mask-repeat: no-repeat; -webkit-mask-size: 12px; -webkit-mask-position: center;}
.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons { padding-right: 13px;}
.ace_fold-widget { box-sizing: border-box;
margin: 0 -12px 0 1px; display: none; width: 11px; vertical-align: top;
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg=="); background-repeat: no-repeat; background-position: center;
border-radius: 3px; border: 1px solid transparent; cursor: pointer;}
.ace_folding-enabled .ace_fold-widget { display: inline-block; }
.ace_fold-widget.ace_end { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}
.ace_fold-widget.ace_closed { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}
.ace_fold-widget:hover { border: 1px solid rgba(0, 0, 0, 0.3); background-color: rgba(255, 255, 255, 0.2); box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}
.ace_fold-widget:active { border: 1px solid rgba(0, 0, 0, 0.4); background-color: rgba(0, 0, 0, 0.05); box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}/** * Dark version for fold widgets */.ace_dark .ace_fold-widget { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover { box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2); background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active { box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}
.ace_inline_button { border: 1px solid lightgray; display: inline-block; margin: -1px 8px; padding: 0 5px; pointer-events: auto; cursor: pointer;}.ace_inline_button:hover { border-color: gray; background: rgba(200,200,200,0.2); display: inline-block; pointer-events: auto;}
.ace_fold-widget.ace_invalid { background-color: #FFB4B4; border-color: #DE5555;}
.ace_fade-fold-widgets .ace_fold-widget { transition: opacity 0.4s ease 0.05s; opacity: 0;}
.ace_fade-fold-widgets:hover .ace_fold-widget { transition: opacity 0.05s ease 0.05s; opacity:1;}
.ace_underline { text-decoration: underline;}
.ace_bold { font-weight: bold;}
.ace_nobold .ace_bold { font-weight: normal;}
.ace_italic { font-style: italic;}
.ace_error-marker { background-color: rgba(255, 0, 0,0.2); position: absolute; z-index: 9;}
.ace_highlight-marker { background-color: rgba(255, 255, 0,0.2); position: absolute; z-index: 8;}
.ace_mobile-menu { position: absolute; line-height: 1.5; border-radius: 4px; -ms-user-select: none; -moz-user-select: none; -webkit-user-select: none; user-select: none; background: white; box-shadow: 1px 3px 2px grey; border: 1px solid #dcdcdc; color: black;}.ace_dark > .ace_mobile-menu { background: #333; color: #ccc; box-shadow: 1px 3px 2px grey; border: 1px solid #444;
}.ace_mobile-button { padding: 2px; cursor: pointer; overflow: hidden;}.ace_mobile-button:hover { background-color: #eee; opacity:1;}.ace_mobile-button:active { background-color: #ddd;}
.ace_placeholder { position: relative; font-family: arial; transform: scale(0.9); transform-origin: left; white-space: pre; opacity: 0.7; margin: 0 10px; z-index: 1;}
.ace_ghost_text { opacity: 0.5; font-style: italic;}
.ace_ghost_text_container > div { white-space: pre;}
.ghost_text_line_wrapped::after { content: "↩"; position: absolute;}
.ace_lineWidgetContainer.ace_ghost_text { margin: 0px 4px}
.ace_screenreader-only { position:absolute; left:-10000px; top:auto; width:1px; height:1px; overflow:hidden;}
.ace_hidden_token { display: none;}`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(n,a,v){var p=n("../lib/dom"),f=n("../lib/oop"),m=n("../lib/event_emitter").EventEmitter,c=function(){function h(i,o){this.canvas=p.createElement("canvas"),this.renderer=o,this.pixelRatio=1,this.maxHeight=o.layerConfig.maxHeight,this.lineHeight=o.layerConfig.lineHeight,this.canvasHeight=i.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=i.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},i.element.appendChild(this.canvas)}return h.prototype.$updateDecorators=function(i){var o=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(i){this.maxHeight=i.maxHeight,this.lineHeight=i.lineHeight,this.canvasHeight=i.height;var l=(i.lastRow+1)*this.lineHeight;l<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var s=this.canvas.getContext("2d");function r(A,S){return A.priority<S.priority?-1:A.priority>S.priority?1:0}var u=this.renderer.session.$annotations;if(s.clearRect(0,0,this.canvas.width,this.canvas.height),u){var d={info:1,warning:2,error:3};u.forEach(function(A){A.priority=d[A.type]||null}),u=u.sort(r);for(var g=this.renderer.session.$foldData,y=0;y<u.length;y++){var x=u[y].row,C=this.compensateFoldRows(x,g),b=Math.round((x-C)*this.lineHeight*this.heightRatio),w=Math.round((x-C)*this.lineHeight*this.heightRatio),_=Math.round(((x-C)*this.lineHeight+this.lineHeight)*this.heightRatio),I=_-w;if(I<this.minDecorationHeight){var E=(w+_)/2|0;E<this.halfMinDecorationHeight?E=this.halfMinDecorationHeight:E+this.halfMinDecorationHeight>this.canvasHeight&&(E=this.canvasHeight-this.halfMinDecorationHeight),w=Math.round(E-this.halfMinDecorationHeight),_=Math.round(E+this.halfMinDecorationHeight)}s.fillStyle=o[u[y].type]||null,s.fillRect(0,b,this.canvasWidth,_-w)}}var k=this.renderer.session.selection.getCursor();if(k){var C=this.compensateFoldRows(k.row,g),b=Math.round((k.row-C)*this.lineHeight*this.heightRatio);s.fillStyle="rgba(0, 0, 0, 0.5)",s.fillRect(0,b,this.canvasWidth,2)}},h.prototype.compensateFoldRows=function(i,o){var l=0;if(o&&o.length>0)for(var s=0;s<o.length;s++)i>o[s].start.row&&i<o[s].end.row?l+=i-o[s].start.row:i>=o[s].end.row&&(l+=o[s].end.row-o[s].start.row);return l},h}();f.implement(c.prototype,m),a.Decorator=c}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent","ace/layer/text_util"],function(n,a,v){var p=n("./lib/oop"),f=n("./lib/dom"),m=n("./lib/lang"),c=n("./config"),h=n("./layer/gutter").Gutter,i=n("./layer/marker").Marker,o=n("./layer/text").Text,l=n("./layer/cursor").Cursor,s=n("./scrollbar").HScrollBar,r=n("./scrollbar").VScrollBar,u=n("./scrollbar_custom").HScrollBar,d=n("./scrollbar_custom").VScrollBar,g=n("./renderloop").RenderLoop,y=n("./layer/font_metrics").FontMetrics,x=n("./lib/event_emitter").EventEmitter,C=n("./css/editor-css"),b=n("./layer/decorators").Decorator,w=n("./lib/useragent"),_=n("./layer/text_util").isTextToken;f.importCssString(C,"ace_editor.css",!1);var I=function(){function E(k,A){var S=this;this.container=k||f.createElement("div"),f.addCssClass(this.container,"ace_editor"),f.HI_DPI&&f.addCssClass(this.container,"ace_hidpi"),this.setTheme(A),c.get("useStrictCSP")
`)+``),S||(E.start.column=0,E.end.column=L[L.length-1].length),this.selection.setRange(E)}else{I.forEach(function(F){b.substractPoint(F.cursor)});var T=0,R=1/0,P=w.map(function(F){var O=F.cursor,N=C.getLine(O.row),V=N.substr(O.column).search(/\S/g);return V==-1&&(V=0),O.column>T&&(T=O.column),V<R&&(R=V),V});w.forEach(function(F,O){var N=F.cursor,V=T-N.column,H=P[O]-R;V>H?C.insert(N,i.stringRepeat(" ",V-H)):C.remove(new f(N.row,N.column,N.row,N.column-V+H)),F.start.column=F.end.column=T,F.start.row=F.end.row=N.row,F.cursor=F.end}),b.fromOrientedRange(w[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(C,b){var w=!0,_=!0,I,E,k;return C.map(function(L){var T=L.match(/(\s*)(.*?)(\s*)([=:].*)/);return T?I==null?(I=T[1].length,E=T[2].length,k=T[3].length,T):(I+E+k!=T[1].length+T[2].length+T[3].length&&(_=!1),I!=T[1].length&&(w=!1),I>T[1].length&&(I=T[1].length),E<T[2].length&&(E=T[2].length),k>T[3].length&&(k=T[3].length),T):[L]}).map(b?S:w?_?M:S:$);function A(L){return i.stringRepeat(" ",L)}function S(L){return L[2]?A(I)+L[2]+A(E-L[2].length+k)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}function M(L){return L[2]?A(I+E-L[2].length)+L[2]+A(k)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}function $(L){return L[2]?A(I)+L[2]+A(k)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}}}).call(d.prototype);function g(C,b){return C.row==b.row&&C.column==b.column}a.onSessionChange=function(C){var b=C.session;b&&!b.multiSelect&&(b.$selectionMarkers=[],b.selection.$initRangeList(),b.multiSelect=b.selection),this.multiSelect=b&&b.multiSelect;var w=C.oldSession;w&&(w.multiSelect.off("addRange",this.$onAddRange),w.multiSelect.off("removeRange",this.$onRemoveRange),w.multiSelect.off("multiSelect",this.$onMultiSelect),w.multiSelect.off("singleSelect",this.$onSingleSelect),w.multiSelect.lead.off("change",this.$checkMultiselectChange),w.multiSelect.anchor.off("change",this.$checkMultiselectChange)),b&&(b.multiSelect.on("addRange",this.$onAddRange),b.multiSelect.on("removeRange",this.$onRemoveRange),b.multiSelect.on("multiSelect",this.$onMultiSelect),b.multiSelect.on("singleSelect",this.$onSingleSelect),b.multiSelect.lead.on("change",this.$checkMultiselectChange),b.multiSelect.anchor.on("change",this.$checkMultiselectChange)),b&&this.inMultiSelectMode!=b.selection.inMultiSelectMode&&(b.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function y(C){C.$multiselectOnSessionChange||(C.$onAddRange=C.$onAddRange.bind(C),C.$onRemoveRange=C.$onRemoveRange.bind(C),C.$onMultiSelect=C.$onMultiSelect.bind(C),C.$onSingleSelect=C.$onSingleSelect.bind(C),C.$multiselectOnSessionChange=a.onSessionChange.bind(C),C.$checkMultiselectChange=C.$checkMultiselectChange.bind(C),C.$multiselectOnSessionChange(C),C.on("changeSession",C.$multiselectOnSessionChange),C.on("mousedown",c),C.commands.addCommands(o.defaultCommands),x(C))}function x(C){if(!C.textInput)return;var b=C.textInput.getElement(),w=!1;h.addListener(b,"keydown",function(I){var E=I.keyCode==18&&!(I.ctrlKey||I.shiftKey||I.metaKey);C.$blockSelectEnabled&&E?w||(C.renderer.setMouseCursor("crosshair"),w=!0):w&&_()},C),h.addListener(b,"keyup",_,C),h.addListener(b,"blur",_,C);function _(I){w&&(C.renderer.setMouseCursor(""),w=!1)}}a.MultiSelect=y,n("./config").defineOptions(d.prototype,"editor",{enableMultiselect:{set:function(C){y(this),C?this.on("mousedown",c):this.off("mousedown",c)},value:!0},enableBlockSelect:{set:function(C){this.$blockSelectEnabled=C},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(n,a,v){var p=n("../../range").Range,f=a.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(m,c,h){var i=m.getLine(h);return this.foldingStartMarker.test(i)?"start":c=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(i)?"end":""},this.getFoldWidgetRange=function(m,c,h){return null},this.indentationBlock=function(m,c,h){var i=/\S/,o=m.getLine(c),l=o.search(i);if(l!=-1){for(var s=h||o.length,r=m.getLength(),u=c,d=c;++c<r;){var g=m.ge
.error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }`,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(n,a,v){n("./loader_build")(a);var p=n("./lib/dom"),f=n("./range").Range,m=n("./editor").Editor,c=n("./edit_session").EditSession,h=n("./undomanager").UndoManager,i=n("./virtual_renderer").VirtualRenderer;n("./worker/worker_client"),n("./keyboard/hash_handler"),n("./placeholder"),n("./multi_select"),n("./mode/folding/fold_mode"),n("./theme/textmate"),n("./ext/error_marker"),a.config=n("./config"),a.edit=function(o,l){if(typeof o=="string"){var s=o;if(o=document.getElementById(s),!o)throw new Error("ace.edit can't find div #"+s)}if(o&&o.env&&o.env.editor instanceof m)return o.env.editor;var r="";if(o&&/input|textarea/i.test(o.tagName)){var u=o;r=u.value,o=p.createElement("pre"),u.parentNode.replaceChild(o,u)}else o&&(r=o.textContent,o.innerHTML="");var d=a.createEditSession(r),g=new m(new i(o),d,l),y={document:d,editor:g,onResize:g.resize.bind(g,null)};return u&&(y.textarea=u),g.on("destroy",function(){y.editor.container.env=null}),g.container.env=g.env=y,g},a.createEditSession=function(o,l){var s=new c(o,l);return s.setUndoManager(new h),s},a.Range=f,a.Editor=m,a.EditSession=c,a.UndoManager=h,a.VirtualRenderer=i,a.version=a.config.version}),function(){ace.require(["ace/ace"],function(n){n&&(n.config.init(!0),n.define=ace.define);var a=function(){return this}();!a&&typeof window<"u"&&(a=window),!a&&typeof self<"u"&&(a=self),a.ace||(a.ace=n);for(var v in n)n.hasOwnProperty(v)&&(a.ace[v]=n[v]);a.ace.default=a.ace,e&&(e.exports=a.ace)})}()})(kc);var v2=kc.exports;const y2=qt(v2),fs=["blur","input","change","changeSelectionStyle","changeSession","copy","focus","paste"],w2=ce({name:"VAceEditor",props:{value:{type:String,required:!0},lang:{type:String,default:"text"},theme:{type:String,default:"chrome"},options:Object,placeholder:String,readonly:Boolean,wrap:Boolean,printMargin:{type:[Boolean,Number],default:!0},minLines:Number,maxLines:Number},emits:["update:value","init",...fs],render(){return Kn("div")},mounted(){const e=this._editor=lu(y2.edit(this.$el,{placeholder:this.placeholder,readOnly:this.readonly,value:this.value,mode:"ace/mode/"+this.lang,theme:"ace/theme/"+this.theme,wrap:this.wrap,printMargin:this.printMargin,useWorker:!1,minLines:this.minLines,maxLines:this.maxLines,...this.options}));this._contentBackup=this.value,this._isSettingContent=!1,e.on("change",()=>{if(this._isSettingContent)return;const t=e.getValue();this._contentBackup=t,this.$emit("update:value",t)}),fs.forEach(t=>{const n="on"+cu(t);typeof this.$.vnode.props[n]=="function"&&e.on(t,this.$emit.bind(this,t))}),this._ro=new Yu(()=>e.resize()),this._ro.observe(this.$el),this.$emit("init",e)},beforeUnmount(){var e,t;(e=this._ro)===null||e===void 0||e.disconnect(),(t=this._editor)===null||t===void 0||t.destroy()},methods:{focus(){this._editor.focus()},blur(){this._editor.blur()},selectAll(){this._editor.selectAll()},getAceInstance(){return this._editor}},watch:{value(e){if(this._contentBackup!==e){try{this._isSettingContent=!0,this._editor.setValue(e,1)}finally{this._isSettingContent=!1}this._contentBackup=e}},theme(e){this._editor.setTheme("ace/theme/"+e)},options(e){this._editor.setOptions(e)},readonly(e){this._editor.setReadOnly(e)},placeholder(e){this._editor.setOption("placeholder",e)},wrap(e){this._editor.setWrapBehavioursEnabled(e)},printMargin(e){this._editor.setOption("printMargin",e)},lang(e){this._editor.setOption("mode","ace/mode/"+e)},minLines(e){this._editor.setOption("minLines",e)},maxLines(e){this._editor.setOption("maxLines",e)}}});var b2={exports:{}};(function(e,t){ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(n,a,v){var p=n("../lib/oop"),f=n("./text_highlight_rules").T
`){var u=l.getCursorPosition(),d=s.getLine(u.row),g=new m(s,u.row,u.column),y=g.getCurrentToken();if(c(y,"")&&y.type.indexOf("tag-close")!==-1){if(y.value=="/>")return;for(;y&&y.type.indexOf("tag-name")===-1;)y=g.stepBackward();if(!y)return;var x=y.value,C=g.getCurrentTokenRow();if(y=g.stepBackward(),!y||y.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[x]||!this.voidElements){var b=s.getTokenAt(u.row,u.column+1),d=s.getLine(C),w=this.$getIndent(d),_=w+s.getTabString();return b&&b.value==="</"?{text:``+_+``+w,selection:[1,_.length,1,_.length]}:{text:``+_}}}}})};p.inherits(h,f),a.XmlBehaviour=h}),ace.define("ace/mode/behaviour/javascript",["require","exports","module","ace/lib/oop","ace/token_iterator","ace/mode/behaviour/cstyle","ace/mode/behaviour/xml"],function(n,a,v){var p=n("../../lib/oop"),f=n("../../token_iterator").TokenIterator,m=n("../behaviour/cstyle").CstyleBehaviour,c=n("../behaviour/xml").XmlBehaviour,h=function(){var i=new c({closeCurlyBraces:!0}).getBehaviours();this.addBehaviours(i),this.inherit(m),this.add("autoclosing-fragment","insertion",function(o,l,s,r,u){if(u==">"){var d=s.getSelectionRange().start,g=new f(r,d.row,d.column),y=g.getCurrentToken()||g.stepBackward();if(!y)return;if(y.value=="<")return{text:"></>",selection:[1,1]}}})};p.inherits(h,m),a.JavaScriptBehaviour=h}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(n,a,v){var p=n("../../lib/oop"),f=n("../../range").Range,m=n("./fold_mode").FoldMode,c=a.FoldMode=function(o,l){m.call(this),this.voidElements=o||{},this.optionalEndTags=p.mixin({},this.voidElements),l&&p.mixin(this.optionalEndTags,l)};p.inherits(c,m);var h=function(){this.tagName="",this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}};function i(o,l){return o.type.lastIndexOf(l+".xml")>-1}(function(){this.getFoldWidget=function(o,l,s){var r=this._getFirstTagInLine(o,s);return r?r.closing||!r.tagName&&r.selfClosing?l==="markbeginend"?"end":"":!r.tagName||r.selfClosing||this.voidElements.hasOwnProperty(r.tagName.toLowerCase())||this._findEndTagInLine(o,s,r.tagName,r.end.column)?"":"start":this.getCommentFoldWidget(o,s)},this.getCommentFoldWidget=function(o,l){return/comment/.test(o.getState(l))&&/<!-/.test(o.getLine(l))?"start":""},this._getFirstTagInLine=function(o,l){for(var s=o.getTokens(l),r=new h,u=0;u<s.length;u++){var d=s[u];if(i(d,"tag-open")){if(r.end.column=r.start.column+d.value.length,r.closing=i(d,"end-tag-open"),d=s[++u],!d)return null;if(r.tagName=d.value,d.value===""){if(d=s[++u],!d)return null;r.tagName=d.value}for(r.end.column+=d.value.length,u++;u<s.length;u++)if(d=s[u],r.end.column+=d.value.length,i(d,"tag-close")){r.selfClosing=d.value=="/>";break}return r}else if(i(d,"tag-close"))return r.selfClosing=d.value=="/>",r;r.start.column+=d.value.length}return null},this._findEndTagInLine=function(o,l,s,r){for(var u=o.getTokens(l),d=0,g=0;g<u.length;g++){var y=u[g];if(d+=y.value.length,!(d<r-1)&&i(y,"end-tag-open")&&(y=u[g+1],i(y,"tag-name")&&y.value===""&&(y=u[g+2]),y&&y.value==s))return!0}return!1},this.getFoldWidgetRange=function(o,l,s){var r=this._getFirstTagInLine(o,s);if(!r)return this.getCommentFoldWidget(o,s)&&o.getCommentFoldRange(s,o.getLine(s).length);var u=o.getMatchingTags({row:s,column:0});if(u)return new f(u.openTag.end.row,u.openTag.end.column,u.closeTag.start.row,u.closeTag.start.column)}}).call(c.prototype)}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(n,a,v){var p=n("../../lib/oop"),f=n("../../range").Range,m=n("./fold_mode").FoldMode,c=a.FoldMode=function(h){h&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+h.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+h.end)))};p.inherits(c,m),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(h,i,o){var l=h.getLine(o);if(this.singleLineBlockCommentRe.test(l)&&!this.startRegionRe.test(l)&&!this.tripleStarBlockCommentRe.test(l))return"";var s=this._getFoldWidgetBase(h,i,o);return!s&&this.startRegionRe.test(l)?"start":s},this.getFoldWidgetRange=function(h,i,o,l){var s=h.getLine(o);if(this.startRegionRe.test(s))return this.getCommentRegionBlock(h,s,o);var d=s.mat
/* ------------------------------------------------------------------------------------------ * Editor Search Form * --------------------------------------------------------------------------------------- */.ace_search { background-color: #ddd; color: #666; border: 1px solid #cbcbcb; border-top: 0 none; overflow: hidden; margin: 0; padding: 4px 6px 0 4px; position: absolute; top: 0; z-index: 99; white-space: normal;}.ace_search.left { border-left: 0 none; border-radius: 0px 0px 5px 0px; left: 0;}.ace_search.right { border-radius: 0px 0px 0px 5px; border-right: 0 none; right: 0;}
.ace_search_form, .ace_replace_form { margin: 0 20px 4px 0; overflow: hidden; line-height: 1.9;}.ace_replace_form { margin-right: 0;}.ace_search_form.ace_nomatch { outline: 1px solid red;}
.ace_search_field { border-radius: 3px 0 0 3px; background-color: white; color: black; border: 1px solid #cbcbcb; border-right: 0 none; outline: 0; padding: 0; font-size: inherit; margin: 0; line-height: inherit; padding: 0 6px; min-width: 17em; vertical-align: top; min-height: 1.8em; box-sizing: content-box;}.ace_searchbtn { border: 1px solid #cbcbcb; line-height: inherit; display: inline-block; padding: 0 6px; background: #fff; border-right: 0 none; border-left: 1px solid #dcdcdc; cursor: pointer; margin: 0; position: relative; color: #666;}.ace_searchbtn:last-child { border-radius: 0 3px 3px 0; border-right: 1px solid #cbcbcb;}.ace_searchbtn:disabled { background: none; cursor: default;}.ace_searchbtn:hover { background-color: #eef1f6;}.ace_searchbtn.prev, .ace_searchbtn.next { padding: 0px 0.7em}.ace_searchbtn.prev:after, .ace_searchbtn.next:after { content: ""; border: solid 2px #888; width: 0.5em; height: 0.5em; border-width: 2px 0 0 2px; display:inline-block; transform: rotate(-45deg);}.ace_searchbtn.next:after { border-width: 0 2px 2px 0 ;}.ace_searchbtn_close { background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0; border-radius: 50%; border: 0 none; color: #656565; cursor: pointer; font: 16px/16px Arial; padding: 0; height: 14px; width: 14px; top: 9px; right: 7px; position: absolute;}.ace_searchbtn_close:hover { background-color: #656565; background-position: 50% 100%; color: white;}
.ace_button { margin-left: 2px; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; -o-user-select: none; -ms-user-select: none; user-select: none; overflow: hidden; opacity: 0.7; border: 1px solid rgba(100,100,100,0.23); padding: 1px; box-sizing: border-box!important; color: black;}
.ace_button:hover { background-color: #eee; opacity:1;}.ace_button:active { background-color: #ddd;}
.ace_button.checked { border-color: #3399ff; opacity:1;}
.ace_search_options{ margin-bottom: 3px; text-align: right; -webkit-user-select: none; -moz-user-select: none; -o-user-select: none; -ms-user-select: none; user-select: none; clear: both;}
.ace_search_counter { float: left; font-family: arial; padding: 0 8px;}`}),ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/ext/searchbox-css","ace/keyboard/hash_handler","ace/lib/keys","ace/config"],function(n,a,v){var p=n("../lib/dom"),f=n("../lib/lang"),m=n("../lib/event"),c=n("./searchbox-css"),h=n("../keyboard/hash_handler").HashHandler,i=n("../lib/keys"),o=n("../config").nls,l=999;p.importCssString(c,"ace_searchbox",!1);var s=function(){function d(g,y,x){this.activeInput;var C=p.createElement("div");p.buildDom(["div",{class:"ace_search right"},["span",{action:"hide",class:"ace_searchbtn_close"}],["div",{class:"ace_search_form"},["input",{class:"ace_search_field",placeholder:o("search-box.find.placeholder","Search for"),spellcheck:"false"}],["span",{action:"findPrev",class:"ace_searchbtn prev"},""],["span",{action:"findNext",class:"ace_searchbtn next"},""],["span",{action:"findAll",class:"ace_searchbtn",title:"Alt-Enter"},o("search-box.find-all.text","All")]],["div",{class:"ace_replace_form"},["input",{class:"ace_search_field",placeholder:o("search-box.replace.placeholder","Replace with"),spellcheck:"false"}],["span",{action:"replaceAndFindNext",class:"ace_searchbtn"},o("search-box.replace-next.text","Replace")],["span",{action:"replaceAll",class:"ace_searchbtn"},o("search-box.replace-all.text","All")]],["div",{class:"ace_search_options"},["span",{action:"toggleReplace",class:"ace_button",title:o("search-box.toggle-replace.title","Toggle Replace mode"),style:"float:left;margin-top:-2px;padding:0 5px;"},"+"],["span",{class:"ace_search_counter"}],["span",{action:"toggleRegexpMode",class:"ace_button",title:o("search-box.toggle-regexp.title","RegExp Search")},".*"],["span",{action:"toggleCaseSensitive",class:"ace_button",title:o("search-box.toggle-case.title","CaseSensitive Search")},"Aa"],["span",{action:"toggleWholeWords",class:"ace_button",title:o("search-box.toggle-whole-word.title","Whole Word Search")},"\\b"],["span",{action:"searchInSelection",class:"ace_button",title:o("search-box.toggle-in-selection.title","Search In Selection")},"S"]]],C),this.element=C.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(g),p.importCssString(c,"ace_searchbox",g.container)}return d.prototype.setEditor=function(g){g.searchBox=this,g.renderer.scroller.appendChild(this.element),this.editor=g},d.prototype.setSession=function(g){this.searchRange=null,this.$syncOptions(!0)},d.prototype.$initElements=function(g){this.searchBox=g.querySelector(".ace_search_form"),this.replaceBox=g.querySelector(".ace_replace_form"),this.searchOption=g.querySelector("[action=searchInSelection]"),this.replaceOption=g.querySelector("[action=toggleReplace]"),this.regExpOption=g.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=g.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=g.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=g.querySelector(".ace_search_counter")},d.prototype.$init=function(){var g=this.element;this.$initElements(g);var y=this;m.addListener(g,"mousedown",function(x){setTimeout(function(){y.activeInput.focus()},0),m.stopPropagation(x)}),m.addListener(g,"click",function(x){var C=x.target||x.srcElement,b=C.getAttribute("action");b&&y[b]?y[b]():y.$searchBarKb.commands[b]&&y.$searchBarKb.commands[b].exec(y),m.stopPropagation(x)}),m.addCommandKeyListener(g,function(x,C,b){var w=i.keyCodeToString(b),_=y.$searchBarKb.findKeyCommand(C,w);_&&_.exec&&(_.exec(y),m.stopEvent(x))}),this.$onChange=f.delayedCall(function(){y.find(!1,!1)}),m.addListener(this.searchInput,"input",function(){y.$onChange.schedule(20)}),m.addListener(this.searchInput,"focus",function(){y.activeInput=y.searchInput,y.searchInput.value&&y.highlight()}),m.addListener(this.replaceInput,"focus",function(){y.activeInput=y.replaceInput,y.searchInput.value&&y.highlight()})},d.prototype.setSearchRange=function(g){this.searchRange=g,g?this.searchRangeMarker=this.editor.session
snippet proto \${1:class_name}.prototype.\${2:method_name} = function(\${3:first_argument}) { \${4:// body...}
};# Functionsnippet fun function \${1?:function_name}(\${2:argument}) { \${3:// body...}
}# Anonymous Functionregex /((=)\\s*|(:)\\s*|(\\()|\\b)/f/(\\))?/snippet f function\${M1?: \${1:functionName}}($2) { \${0:$TM_SELECTED_TEXT} }\${M2?;}\${M3?,}\${M4?)}# Immediate functiontrigger \\(?f\\(endTrigger \\)?snippet f( (function(\${1}) { \${0:\${TM_SELECTED_TEXT:/* code */}} }(\${1}));# ifsnippet if if (\${1:true}) { \${0} }# if ... elsesnippet ife if (\${1:true}) { \${2} } else { \${0} }# tertiary conditionalsnippet ter \${1:/* condition */} ? \${2:a} : \${3:b}# switchsnippet switch switch (\${1:expression}) { case '\${3:case}': \${4:// code}
break; \${5} default: \${2:// code}
}# casesnippet case case '\${1:case}': \${2:// code}
break; \${3}
# while (...) {...}snippet wh while (\${1:/* condition */}) { \${0:/* code */} }# trysnippet try try { \${0:/* code */} } catch (e) {}# do...whilesnippet do do { \${2:/* code */} } while (\${1:/* condition */});# Object Methodsnippet :fregex /([,{[])|^\\s*/:f/ \${1:method_name}: function(\${2:attribute}) { \${0} }\${3:,}# setTimeout functionsnippet setTimeoutregex /\\b/st|timeout|setTimeo?u?t?/ setTimeout(function() {\${3:$TM_SELECTED_TEXT}}, \${1:10});# Get Elementssnippet gett getElementsBy\${1:TagName}('\${2}')\${3}# Get Elementsnippet get getElementBy\${1:Id}('\${2}')\${3}# console.log (Firebug)snippet cl console.log(\${1});# returnsnippet ret return \${1:result}# for (property in object ) { ... }snippet fori for (var \${1:prop} in \${2:Things}) { \${0:$2[$1]} }# hasOwnPropertysnippet has hasOwnProperty(\${1})# docstringsnippet /** /** * \${1:description} * */snippet @parregex /^\\s*\\*\\s*/@(para?m?)?/ @param {\${1:type}} \${2:name} \${3:description}snippet @ret @return {\${1:type}} \${2:description}# JSON.parsesnippet jsonp JSON.parse(\${1:jstr});# JSON.stringifysnippet jsons JSON.stringify(\${1:object});# self-defining functionsnippet sdf var \${1:function_name} = function(\${2:argument}) { \${3:// initial code ...}
$1 = function($2) { \${4:// main code}
}; }# singletonsnippet sing function \${1:Singleton} (\${2:argument}) { // the cached instance
var instance;
// rewrite the constructor
$1 = function $1($2) { return instance; }; // carry over the prototype properties
$1.prototype = this;
// the instance
instance = new $1();
// reset the constructor pointer
instance.constructor = $1;
\${3:// code ...}
return instance; }# classsnippet classregex /^\\s*/clas{0,2}/ var \${1:class} = function(\${20}) { $40$0 }; (function() { \${60:this.prop = ""} }).call(\${1:class}.prototype); exports.\${1:class} = \${1:class};# snippet for- for (var \${1:i} = \${2:Things}.length; \${1:i}--; ) { \${0:\${2:Things}[\${1:i}];} }# for (...) {...}snippet for for (var \${1:i} = 0; $1 < \${2:Things}.length; $1++) { \${3:$2[$1]}$0 }# for (...) {...} (Improved Native For-Loop)snippet forr for (var \${1:i} = \${2:Things}.length - 1; $1 >= 0; $1--) { \${3:$2[$1]}$0 }
#modulessnippet def define(function(require, exports, module) { "use strict"; var \${1/.*\\///} = require("\${1}");
$TM_SELECTED_TEXT });snippet reqguard ^\\s* var \${1/.*\\///} = require("\${1}");
$0snippet requguard ^\\s* var \${1/.*\\/(.)/\\u$1/} = require("\${1}").\${1/.*\\/(.)/\\u$1/}; $0`}),ace.define("ace/snippets/javascript",["require","exports","module","ace/snippets/javascript.snippets"],function(n,a,v){a.snippetText=n("./javascript.snippets"),a.scope="javascript"}),function(){ace.require(["ace/snippets/javascript"],function(n){e&&(e.exports=n)})}()})($2);var S2={exports:{}};(function(e,t){(function(){ace.require(["ace/snippets/json"],function(n){e&&(e.exports=n)})})()})(S2);var k2={exports:{}};(function(e,t){ace.define("ace/theme/tomorrow_night-css",["require","exports","module"],function(n,a,v){v.exports=`.ace-tomorrow-night .ace_gutter { background: #25282c; color: #C5C8C6}
.ace-tomorrow-night .ace_print-margin { width: 1px; background: #25282c}
.ace-tomorrow-night { background-color: #1D1F21; color: #C5C8C6}
.ace-tomorrow-night .ace_cursor { color: #AEAFAD}
.ace-tomorrow-night .ace_marker-layer .ace_selection { background: #373B41}
.ace-tomorrow-night.ace_multiselect .ace_selection.ace_start { box-shadow: 0 0 3px 0px #1D1F21;}
.ace-tomorrow-night .ace_marker-layer .ace_step { background: rgb(102, 82, 0)}
.ace-tomorrow-night .ace_marker-layer .ace_bracket { margin: -1px 0 0 -1px; border: 1px solid #4B4E55}
.ace-tomorrow-night .ace_marker-layer .ace_active-line { background: #282A2E}
.ace-tomorrow-night .ace_gutter-active-line { background-color: #282A2E}
.ace-tomorrow-night .ace_marker-layer .ace_selected-word { border: 1px solid #373B41}
.ace-tomorrow-night .ace_invisible { color: #4B4E55}
.ace-tomorrow-night .ace_keyword,.ace-tomorrow-night .ace_meta,.ace-tomorrow-night .ace_storage,.ace-tomorrow-night .ace_storage.ace_type,.ace-tomorrow-night .ace_support.ace_type { color: #B294BB}
.ace-tomorrow-night .ace_keyword.ace_operator { color: #8ABEB7}
.ace-tomorrow-night .ace_constant.ace_character,.ace-tomorrow-night .ace_constant.ace_language,.ace-tomorrow-night .ace_constant.ace_numeric,.ace-tomorrow-night .ace_keyword.ace_other.ace_unit,.ace-tomorrow-night .ace_support.ace_constant,.ace-tomorrow-night .ace_variable.ace_parameter { color: #DE935F}
.ace-tomorrow-night .ace_constant.ace_other { color: #CED1CF}
.ace-tomorrow-night .ace_invalid { color: #CED2CF; background-color: #DF5F5F}
.ace-tomorrow-night .ace_invalid.ace_deprecated { color: #CED2CF; background-color: #B798BF}
.ace-tomorrow-night .ace_fold { background-color: #81A2BE; border-color: #C5C8C6}
.ace-tomorrow-night .ace_entity.ace_name.ace_function,.ace-tomorrow-night .ace_support.ace_function,.ace-tomorrow-night .ace_variable { color: #81A2BE}
.ace-tomorrow-night .ace_support.ace_class,.ace-tomorrow-night .ace_support.ace_type { color: #F0C674}
.ace-tomorrow-night .ace_heading,.ace-tomorrow-night .ace_markup.ace_heading,.ace-tomorrow-night .ace_string { color: #B5BD68}
.ace-tomorrow-night .ace_entity.ace_name.ace_tag,.ace-tomorrow-night .ace_entity.ace_other.ace_attribute-name,.ace-tomorrow-night .ace_meta.ace_tag,.ace-tomorrow-night .ace_string.ace_regexp,.ace-tomorrow-night .ace_variable { color: #CC6666}
.ace-tomorrow-night .ace_comment { color: #969896}
.ace-tomorrow-night .ace_indent-guide { background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYHB3d/8PAAOIAdULw8qMAAAAAElFTkSuQmCC) right repeat-y}
.ace-tomorrow-night .ace_indent-guide-active { background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y;}`}),ace.define("ace/theme/tomorrow_night",["require","exports","module","ace/theme/tomorrow_night-css","ace/lib/dom"],function(n,a,v){a.isDark=!0,a.cssClass="ace-tomorrow-night",a.cssText=n("./tomorrow_night-css");var p=n("../lib/dom");p.importCssString(a.cssText,a.cssClass,!1)}),function(){ace.require(["ace/theme/tomorrow_night"],function(n){e&&(e.exports=n)})}()})(k2);var _2={exports:{}};(function(e,t){ace.define("ace/theme/chrome-css",["require","exports","module"],function(n,a,v){v.exports=`.ace-chrome .ace_gutter { background: #ebebeb; color: #333; overflow : hidden;}
.ace-chrome .ace_print-margin { width: 1px; background: #e8e8e8;}
.ace-chrome { background-color: #FFFFFF; color: black;}
.ace-chrome .ace_cursor { color: black;}
.ace-chrome .ace_invisible { color: rgb(191, 191, 191);}
.ace-chrome .ace_constant.ace_buildin { color: rgb(88, 72, 246);}
.ace-chrome .ace_constant.ace_language { color: rgb(88, 92, 246);}
.ace-chrome .ace_constant.ace_library { color: rgb(6, 150, 14);}
.ace-chrome .ace_invalid { background-color: rgb(153, 0, 0); color: white;}
.ace-chrome .ace_fold {}
.ace-chrome .ace_support.ace_function { color: rgb(60, 76, 114);}
.ace-chrome .ace_support.ace_constant { color: rgb(6, 150, 14);}
.ace-chrome .ace_support.ace_type,.ace-chrome .ace_support.ace_class.ace-chrome .ace_support.ace_other { color: rgb(109, 121, 222);}
.ace-chrome .ace_variable.ace_parameter { font-style:italic; color:#FD971F;}.ace-chrome .ace_keyword.ace_operator { color: rgb(104, 118, 135);}
.ace-chrome .ace_comment { color: #236e24;}
.ace-chrome .ace_comment.ace_doc { color: #236e24;}
.ace-chrome .ace_comment.ace_doc.ace_tag { color: #236e24;}
.ace-chrome .ace_constant.ace_numeric { color: rgb(0, 0, 205);}
.ace-chrome .ace_variable { color: rgb(49, 132, 149);}
.ace-chrome .ace_xml-pe { color: rgb(104, 104, 91);}
.ace-chrome .ace_entity.ace_name.ace_function { color: #0000A2;}
.ace-chrome .ace_heading { color: rgb(12, 7, 255);}
.ace-chrome .ace_list { color:rgb(185, 6, 144);}
.ace-chrome .ace_marker-layer .ace_selection { background: rgb(181, 213, 255);}
.ace-chrome .ace_marker-layer .ace_step { background: rgb(252, 255, 0);}
.ace-chrome .ace_marker-layer .ace_stack { background: rgb(164, 229, 101);}
.ace-chrome .ace_marker-layer .ace_bracket { margin: -1px 0 0 -1px; border: 1px solid rgb(192, 192, 192);}
.ace-chrome .ace_marker-layer .ace_active-line { background: rgba(0, 0, 0, 0.07);}
.ace-chrome .ace_gutter-active-line { background-color : #dcdcdc;}
.ace-chrome .ace_marker-layer .ace_selected-word { background: rgb(250, 250, 255); border: 1px solid rgb(200, 200, 250);}
.ace-chrome .ace_storage,.ace-chrome .ace_keyword,.ace-chrome .ace_meta.ace_tag { color: rgb(147, 15, 128);}
.ace-chrome .ace_string.ace_regex { color: rgb(255, 0, 0)}
.ace-chrome .ace_string { color: #1A1AA6;}
.ace-chrome .ace_entity.ace_other.ace_attribute-name { color: #994409;}
.ace-chrome .ace_indent-guide { background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;} .ace-chrome .ace_indent-guide-active { background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;}`}),ace.define("ace/theme/chrome",["require","exports","module","ace/theme/chrome-css","ace/lib/dom"],function(n,a,v){a.isDark=!1,a.cssClass="ace-chrome",a.cssText=n("./chrome-css");var p=n("../lib/dom");p.importCssString(a.cssText,a.cssClass,!1)}),function(){ace.require(["ace/theme/chrome"],function(n){e&&(e.exports=n)})}()})(_2);const M2={__name:"index",props:{mode:{default:"json",type:String},modelValue:{type:String,default:""},showLineNumbers:{type:Boolean,default:!1},showGutter:{type:Boolean,default:!1},height:{type:String,default:"500px"}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,v=le(()=>ht.value?"tomorrow_night":"chrome"),p=le({get(){return n.modelValue},set(f){a("update:modelValue",f)}});return(f,m)=>(Q(),be(B(w2),{value:B(p),"onUpdate:value":m[0]||(m[0]=c=>qe(p)?p.value=c:null),lang:e.mode,theme:B(v),style:Wt({height:e.height,borderRadius:"4px"}),options:{fontSize:14,tabSize:2,showPrintMargin:!1,showGutter:e.showGutter,showLineNumbers:e.showLineNumbers,highlightActiveLine:!0}},null,8,["value","lang","theme","style","options"]))}},ps=ce({__name:"Ruler",props:{options:{default:()=>({offsetX:0,offsetY:0,scale:.63})},mode:null},setup(e){const t=e,n=Y(ht),a=Y(),v=le(()=>({width:t.mode==="horizontal"?"100%":"30px",height:t.mode==="horizontal"?"30px":"100%",backgroundColor:n.value?"#181818":"white",zIndex:996,display:"block",position:"absolute",top:"0px",left:"0px",cursor:t.mode==="horizontal"?"row-resize":"col-resize"}));function p(h){const i=String(h).indexOf("."),o=String(h).length;return i<0?0:o-i-1}function f(h){return Math.abs(h-Math.round(h))<1e-7}function m(h){return h<=1?100:h<=3?50:h<=4?20:h<=5?10:5}function c(){const h=a.value;if(!h)return;const{width:i,height:o}=h.getBoundingClientRect(),l=2;h.width=i*l,h.height=o*l,h.style.width=`${i}px`,h.style.height=`${o}px`;let{width:s,height:r}=h;s/=l,r/=l;const u=h.getContext("2d");u.scale(l,l),u.clearRect(0,0,s,r),u.save(),u.lineWidth=1,u.strokeStyle=n.value?"#f5f6f7":"#d9d9d9",u.fillStyle=n.value?"#ffffff":"#232323",u.font="12px serif",u.beginPath();const{offsetX:d,offsetY:g,scale:y}=t.options,x=t.mode==="horizontal"?d:g,C=m(y),b=10,w=y*C,_=w/b,I=p(C);let E=x%_>0?_-x%_:-x%_;if(t.mode==="horizontal"){u.translate(29.5,0);do{const k=(x+E)/w*C;if(f(k/C)){u.moveTo(E,r*.5),u.lineTo(E,r);const A=k.toFixed(I),S=u.measureText(A).width;u.fillText(A,E-S/2,10)}else u.moveTo(E,r*.7),u.lineTo(E,r);E+=_}while(E<s)}else{u.translate(0,-.5);do{const k=(x+E)/w*C;if(f(k/C)){u.moveTo(s*.5,E),u.lineTo(s,E);const A=k.toFixed(I);u.save(),u.rotate(-90*Math.PI/180);const S=u.measureText(A).width;u.fillText(A,-(E+S/2),12),u.rotate(0*Math.PI/180),u.restore()}else u.moveTo(s*.7,E),u.lineTo(s,E);E+=_}while(E<r)}u.closePath(),u.stroke(),u.restore()}return window.addEventListener("message",h=>{mu(h.data)&&(JSON.parse(h.data||"{}").isDark===!0?(n.value=!0,c()):(n.value=!1,c()))}),me(n,c),me(()=>t.options,c,{deep:!0}),ot(c),(h,i)=>(Q(),ie("canvas",{ref_key:"widthways",ref:a,style:Wt(v.value)},null,4))}}),A2=ce({__name:"Line",props:{id:null,lineDirection:null,position:null},emits:["delete"],setup(e,{emit:t}){const n=e,a=t,{position:v}=xe(n),p=Y(null);let f=0,m=0,c=null,h=null;const i=Y(!0),o=Y(0);me(()=>n.position,I=>{n.lineDirection==="horizontal"?(f=I.y,m=I.y):(f=I.x,m=I.x)},{immediate:!0});let l={x:0,y:0};const s=I=>{const E=/matrix\([^,]+, [^,]+, [^,]+, [^,]+, ([^,]+), ([^,]+)/,k=I.match(E);if(k){const A=parseFloat(k[1]),S=parseFloat(k[2]);return{x:A,y:S}}},r=jn();me(()=>r.getScale,({scaleX:I,scaleY:E},{scaleX:k})=>{if(m!==0){let A=null;if(n.lineDirection==="horizontal"){const S=I/k;A=l.y+(f-l.y)*S}else{const S=I/k;A=l.x+(f-l.x)*S}f=A,n.lineDirection==="horizontal"?p.value.style.transform=`translate(0px, ${A}px)`:p.value.style.transform=`translate(${A}px, 0px)`}},{deep:!0});const u=I=>{const E=I.clientY-h.top,k=I.clientX-h.left;if(n.lineDirection==="horizontal"){const A=E;p.value.style.transform=`translate(0px, ${A}px)`,f=E,m=E,o.value=Math.round((A-l.y)/r.getScale.scaleX)}else{const A=k;p.value.style.transform=`translate(${A}px, 0px)`,f=k,m=k,o.value=Math.round((A-l.x)/r.ge
`,m="";const c=[];async function h(){for(const i in Ms){const o=await Ms[i]();if(t&&t.includes(o.name)){const{css:l,javascript:s,jsPlugin:r}=o.files;r&&c.push(...JSON.parse(r)),f+=`;(function(){${s}})();`,m+=`${l}`}else{const{css:l,javascript:s,jsPlugin:r}=o.files;r&&c.push(...JSON.parse(r)),f+=`;(function(){${s}})();`,m+=`${l}`}}}h().then(()=>{const i=e.getElementsByTagName("script"),o=function(s){return new Promise((r,u)=>{if(Array.from(i).find(y=>{const x=y.getAttribute("src");return s.url.includes(x)})){r();return}if(!s.url){r();return}if(s.url.includes("core.umd.js")||s.url.includes("NodeResize.js")){r();return}const g=e.createElement("script");g.setAttribute("src",s.url),e.body.append(g),g.onload=()=>{r(!0)}})};async function l(){for(let s=0;s<c.length;s++)await o(c[s])}l().then(()=>{f+=`})();`;const s=e.createElement("script");s.setAttribute("id","componentsScripts");const r=URL.createObjectURL(new Blob([f]));if(s.onload=()=>{n()},s.src=r,e.body.append(s),m){const u=e.createElement("style");u.setAttribute("id","componentsStyleSheets"),u.innerText=m,setTimeout(()=>{e.querySelector("head").appendChild(u)},500)}})})}),B2=e=>{class t extends window.GroupNode.view{}class n extends window.GroupNode.model{initNodeData(v){super.initNodeData(v);const{properties:p}=this;this.isRestrict=!0,this.isGroup=!0,this.resizable=!0,this.width=p.width,this.height=p.height,this.minWidth=p.minWidth||p.width,this.minHeight=p.minHeight||p.height}setAttributes(){const{x:v,y:p,properties:f}=this;this.text={...this.text,x:v,y:p,value:f.content||""}}getNodeStyle(){const v=super.getNodeStyle();v.stroke="rgba(175, 175, 175, 0.5)",v.strokeDasharray="3 3",v.strokeWidth=2,v.fill="transparent";const{properties:p}=this;return v.x=p.x,v.y=p.y,v}}e.register({type:"default-group",model:n,view:t})},{EllipseResize:As}=window,F2=e=>{class t extends As.model{initNodeData(a){super.initNodeData(a),this.rx=5,this.ry=5,this.virtual=!1,this.draggable=!1,this.text.editable=!1}setAttributes(){const{x:a,y:v,properties:p}=this,{textHorizontalMove:f=0,textVerticalMove:m=0}=p;this.text={...this.text,x:a+f,y:v+m,value:""}}setToBottom(){this.zIndex=0}getNodeStyle(){const a=super.getNodeStyle();return a.fill="transparent",a.stroke="transparent",a}getDefaultAnchor(){const{id:a,x:v,y:p,width:f,height:m}=this;return[{x:v,y:p,width:2,height:2,id:a,type:"right",autoAttach:!0}]}}e.register({type:"helper-circle-point",model:t,view:As.view})},H2=Un(),z2=(e,t,n,a,v,p)=>{const f=e.value;e.value.on("blank:click",h=>{const i=document.querySelector(".lf-multiple-select");i&&i.remove(),f.extension.selectionSelect.closeSelectionSelect(),f.extension.selectionSelect.close(),f.clearSelectElements(),t("blankClicked"),p.value.edge=null,p.value.node=null}),e.value.on("node:click",({data:h})=>{v.value={};const i={...h,text:h.text||{value:""},properties:{...h.properties,x:h.x,y:h.y}};t("nodeSelected",i),p.value.edge=null,p.value.node=i}),e.value.on("edge:click",h=>{bt(()=>{const{edges:i}=e.value.getSelectElements();i.length>0&&(t("edgeSelected",{...i[0]}),p.value.node=null,p.value.edge=i[0])})}),e.value.on("node:rotation",h=>{t("nodeRotated",{...h,text:h.text||{value:""},properties:{...h.properties,x:h.x,y:h.y}})}),f.on("node:resize",Wo(h=>{const{newNodeSize:i}=h,{id:o,type:l,width:s,height:r,x:u,y:d,rx:g,ry:y}=i,x=f.getProperties(o),C={...x,width:s,height:r,x:u,y:d,rx:g,ry:y},b={id:o,type:l,width:s,height:r,x:u,y:d,rx:g,ry:y,text:{value:x.content},properties:C};t("nodeResized",b),p.value.edge=null,p.value.node=b},100,{leading:!1,trailing:!0})),f.on("node:dnd-add",h=>{f.extension.selectionSelect.closeSelectionSelect(),f.extension.selectionSelect.close(),f.clearSelectElements(),t("nodeAdded",{...h.data,x:h.data.x,y:h.data.y})}),f.on("node:dnd-drag",h=>{t("nodeDragging",{...h.data,x:h.data.x,y:h.data.y})}),f.on("node:drag",({data:h,e:i})=>{const o={...h,x:h.x,y:h.y};t("nodeDragging",o),p.value.edge=null,p.value.node=o}),f.on("node:drop",h=>{const i={...h.data,x:h.data.x,y:h.data.y};t("nodeDroped",i),p.value.edge=null,p.value.node=i,h.data.type==="default-group"&&f.getModelById(h.data.id).children.forEach(l=>{const s=f.getModelById(l);s.properties.x=s.x,s.properties.y=s.y})}),f.on("selection:drop",()=>{f.getSelectElements().nodes.forEach(i=>{const o=f.getModelById(i.id);o.properties.x=o.x,o.properties.y=o.y})}),f.on("text:update",h=>{const i=f.getNodeModelById(h.id);if(i){const{id:o,x:l,y:s,width:r,height:u,type:d,properties:g}=i;t("textUpdated",{id:o,x:l,y:s,width:r,height:u,type:d,text:{value:h.text},properties:{...g,content:h.text}})}}),f.on("selection:selected",h=>{n.value=h.map(i=>i.id)});const m=()=>{const{editConfigModel:h}=f.graphModel;h.updateEditConfig({hideAnchors:!0})};f.on("anchor:dragstart",h=>{t("anchorDragstart",h)}),f.on("node:resize",({oldNodeSize:h,newNodeSize:i})=>{if(i.type==="default-group"){const o=f.getModelById(i.id),l=i.width/h.width,s=i.height/h.height,r=i.
* vue-color-kit v1.0.6 * (c) 2023 * @license MIT */function Rn(e){let t={r:0,g:0,b:0,a:1};/#/.test(e)?t=m3(e):/rgb/.test(e)?t=Ts(e):typeof e=="string"?t=Ts(`rgba(${e})`):Object.prototype.toString.call(e)==="[object Object]"&&(t=e);const{r:n,g:a,b:v,a:p}=t,{h:f,s:m,v:c}=v3(t);return{r:n,g:a,b:v,a:p===void 0?1:p,h:f,s:m,v:c}}function oa(e){const t=document.createElement("canvas"),n=t.getContext("2d"),a=e*2;return t.width=a,t.height=a,n.fillStyle="#ffffff",n.fillRect(0,0,a,a),n.fillStyle="#ccd5db",n.fillRect(0,0,e,e),n.fillRect(e,e,e,e),t}function er(e,t,n,a,v,p){const f=e==="l",m=t.createLinearGradient(0,0,f?n:0,f?0:a);m.addColorStop(.01,v),m.addColorStop(.99,p),t.fillStyle=m,t.fillRect(0,0,n,a)}function g3({r:e,g:t,b:n},a){const v=f=>("0"+Number(f).toString(16)).slice(-2),p=`#${v(e)}${v(t)}${v(n)}`;return a?p.toUpperCase():p}function m3(e){e=e.slice(1);const t=n=>parseInt(n,16)||0;return{r:t(e.slice(0,2)),g:t(e.slice(2,4)),b:t(e.slice(4,6))}}function Ts(e){return typeof e=="string"?(e=(/rgba?\((.*?)\)/.exec(e)||["","0,0,0,1"])[1].split(","),{r:Number(e[0])||0,g:Number(e[1])||0,b:Number(e[2])||0,a:Number(e[3]?e[3]:1)}):e}function v3({r:e,g:t,b:n}){e=e/255,t=t/255,n=n/255;const a=Math.max(e,t,n),v=Math.min(e,t,n),p=a-v;let f=0;a===v?f=0:a===e?t>=n?f=60*(t-n)/p:f=60*(t-n)/p+360:a===t?f=60*(n-e)/p+120:a===n&&(f=60*(e-t)/p+240),f=Math.floor(f);let m=parseFloat((a===0?0:1-v/a).toFixed(2)),c=parseFloat(a.toFixed(2));return{h:f,s:m,v:c}}var ia=ce({props:{color:{type:String,default:"#000000"},hsv:{type:Object,default:null},size:{type:Number,default:152}},emits:["selectSaturation"],data(){return{slideSaturationStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const e=this.$refs.canvasSaturation,t=this.size,n=e.getContext("2d");e.width=t,e.height=t,n.fillStyle=this.color,n.fillRect(0,0,t,t),er("l",n,t,t,"#FFFFFF","rgba(255,255,255,0)"),er("p",n,t,t,"rgba(0,0,0,0)","#000000")},renderSlide(){this.slideSaturationStyle={left:this.hsv.s*this.size-5+"px",top:(1-this.hsv.v)*this.size-5+"px"}},selectSaturation(e){const{top:t,left:n}=this.$el.getBoundingClientRect(),a=e.target.getContext("2d"),v=f=>{let m=f.clientX-n,c=f.clientY-t;m<0&&(m=0),c<0&&(c=0),m>this.size&&(m=this.size),c>this.size&&(c=this.size),this.slideSaturationStyle={left:m-5+"px",top:c-5+"px"};const h=a.getImageData(Math.min(m,this.size-1),Math.min(c,this.size-1),1,1),[i,o,l]=h.data;this.$emit("selectSaturation",{r:i,g:o,b:l})};v(e);const p=()=>{document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",p)};document.addEventListener("mousemove",v),document.addEventListener("mouseup",p)}}});const y3={ref:"canvasSaturation"};function w3(e,t,n,a,v,p){return Q(),be("div",{class:"saturation",onMousedown:t[1]||(t[1]=$n((...f)=>e.selectSaturation&&e.selectSaturation(...f),["prevent","stop"]))},[D("canvas",y3,null,512),D("div",{style:e.slideSaturationStyle,class:"slide"},null,4)],32)}ia.render=w3;ia.__file="src/color/Saturation.vue";var ra=ce({props:{hsv:{type:Object,default:null},width:{type:Number,default:15},height:{type:Number,default:152}},emits:["selectHue"],data(){return{slideHueStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const e=this.$refs.canvasHue,t=this.width,n=this.height,a=e.getContext("2d");e.width=t,e.height=n;const v=a.createLinearGradient(0,0,0,n);v.addColorStop(0,"#FF0000"),v.addColorStop(.17*1,"#FF00FF"),v.addColorStop(.17*2,"#0000FF"),v.addColorStop(.17*3,"#00FFFF"),v.addColorStop(.17*4,"#00FF00"),v.addColorStop(.17*5,"#FFFF00"),v.addColorStop(1,"#FF0000"),a.fillStyle=v,a.fillRect(0,0,t,n)},renderSlide(){this.slideHueStyle={top:(1-this.hsv.h/360)*this.height-2+"px"}},selectHue(e){const{top:t}=this.$el.getBoundingClientRect(),n=e.target.getContext("2d"),a=p=>{let f=p.clientY-t;f<0&&(f=0),f>this.height&&(f=this.height),this.slideHueStyle={top:f-2+"px"};const m=n.getImageData(0,Math.min(f,this.height-1),1,1),[c,h,i]=m.data;this.$emit("selectHue",{r:c,g:h,b:i})};a(e);const v=()=>{document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",v)};document.addEventListener("mousemove",a),document.addE window.isDeveloping = ${m6==="development"}; var scriptCallbacks = []; ${JSON.stringify(p)}.forEach((i) => { const time = JSON.parse(i.timeCondition || '{}'); const isHistoryData = time.type !== 'last'; if (isHistoryData) { getHistoryDatas(i.id, service); }; }); window.lf.render(${JSON.stringify(i)}); window.lf.graphModel.changeBackground({ backgroundImage: ${JSON.stringify(s)}, backgroundColor: ${JSON.stringify(d)}, backgroundRepeat: ${JSON.stringify(g)}, backgroundSize: ${JSON.stringify(y)}, }); document.querySelector('.lf-background').style.backgroundColor = ${JSON.stringify(d)}; const resizeGraph = function () { if (${JSON.stringify(x)} === 'bigscreen') { const diagramDom = document.getElementById('diagram'); const graph = document.querySelector('.lf-graph'); const { width, height } = diagramDom.getBoundingClientRect(); const heightWidthRatio = ${JSON.stringify(b)} / ${JSON.stringify(C)}; const realHeight = width * heightWidthRatio; window.lf.resize(width, realHeight); diagramDom.style.overflowY = 'auto'; graph.style.overflow = 'hidden'; window.lf.updateEditConfig({ stopZoomGraph: true, }); } else { const diagramDom = document.getElementById('diagram'); const { width, height } = diagramDom.getBoundingClientRect(); window.lf.resize(width, height); const scaleY = height / ${JSON.stringify(b)}; const transformModel = window.lf.graphModel.transformModel; transformModel.SCALE_Y = scaleY; transformModel.SCALE_X = scaleY; transformModel.focusOn(${JSON.stringify(C)} / 2, ${JSON.stringify(b)} / 2, width, height); const backDom = document.querySelector('.lf-background-area'); backDom.style.width = height * (${JSON.stringify(C)} / ${JSON.stringify(b)}) + 'px'; backDom.style.margin = '0 auto'; }; }; resizeGraph(); window.onresize = function () { resizeGraph(); }; setTimeout(function() { eventHandlers(window.lf, undefined);
const currentGraphData = window.lf.getGraphData(); currentGraphData.nodes.forEach(function(element) { const nodeData = lf.getNodeDataById(element.id); const { dynamic } = nodeData.properties; const { scriptData, normalData, uiData, animationData, hiddenData } = dynamic || {}; if (normalData) { try { const dataPointStrParsed = JSON.parse(normalData.dataPoint || '{}'); const { dataSource } = dataPointStrParsed; const findSuperApi = ${JSON.stringify(p)}.find((i) => i.id === dataSource); if (findSuperApi) { const time = JSON.parse(findSuperApi.timeCondition || '{}'); const isHistoryData = time.type !== 'last'; startSocket(dataSource, scriptCallbacks, service, isHistoryData); }; } catch(err) {}; }; const nodeModel = lf.getNodeModelById(element.id); if (element.properties.visible !== undefined) { nodeModel.visible = element.properties.visible }; if(normalData && normalData.dataPoint) { dataPointsHandlers(lf, service, element.id, normalData.dataPoint, 'normalData', []) } if (uiData && uiData.dataPoint) { dataPointsHandlers(lf, service, element.id, uiData.dataPoint, 'uiData', []) } if (animationData) { animationData.animationCombo.forEach((anim, index) => { if(anim.dataPoint) { dataPointsHandlers(lf, service, element.id, anim.dataPoint, 'animationData', [animationHandler], index) } }) } if (hiddenData) { hiddenData.hiddenCombo.forEach((hid, index) => { if(hid.dataPoint) { dataPointsHandlers(lf, service, element.id, hid.dataPoint, 'hiddenData', [showHideHandler], index) } }) } if (scriptData && scriptData.script) { setTimeout(() => { const func = new Function('context', 'service', 'nodeId', scriptData.script); window.lf.globalDatas = window.globalDashboardDatas || {}; const callback = func(window.lf, service, element.id); if (callback) { scriptCallbacks.push(callback); } }, 1000); } }); currentGraphData.edges.forEach((edge) => { const dataPointStrParsed = JSON.parse(edge.properties.dataPoint || '{}'); const { dataSource } = dataPointStrParsed; const findSuperApi = ${JSON.stringify(p)}.find((i) => i.id === dataSource); if (findSuperApi) { const time = JSON.parse(findSuperApi.timeCondition || '{}'); const isHistoryData = time.type !== 'last'; startSocket(dataSource, scriptCallbacks, service, isHistoryData); }; edgeDataPointHandler(lf, service, edge.id, edge.properties.dataPoint, 'edgeData'); }); window.layer.close(window.loadIdx); }, 1000); `,_=h.document.createElement("script");_.innerText=w,setTimeout(()=>{h.document.body.append(_)},1e3)}}const y6=(e,t,n,a,v)=>{window.lf.globalDatas=window.globalDashboardDatas||{};const f=new Function("context","service","nodeId",a)(e,t,n);if(f){const m=f.bind(null,e,t,n);v.push(m)}},w6=(e,t)=>{const n=e.getNodeDataById(t);if(!n)return;const{dynamic:a}=n.properties;if(a){const{animationData:v}=a,{animationCombo:p}=v||{};if(p){p.forEach(c=>{if(c.dataPoint&&c.animationName==="旋转"){const h=window.resolveScadaNewValue(c.defaultValue||"[]");if(h===""){e.setProperties(n.id,{rotateAnimation:!1,animationTime:c.animationTime});return}if(c.min===""||c.max===""){e.setProperties(n.id,{rotateAnimation:!1,animationTime:c.animationTime});return}Number(h)>=Number(c.min)&&h<=Number(c.max)?e.setProperties(n.id,{rotateAnimation:!0,animationTime:c.animationTime}):e.setProperties(n.id,{rotateAnimation:!1,animationTime:c.animationTime})}else if(c.dataPoint&&c.animationName==="闪烁"){const h=window.resolveScadaNewValue(c.defaultValue||"[]");if(h===""){e.setProperties(n.id,{blinkAnimation:!1});return}if(c.min===""||c.max===""){e.setProperties(n.id,{blinkAnimation:!1});return}Number(h)>=Number(c.min)&&h<=Number(c.max)?e.setProperties(n.id,{blinkAnimation:!0}):e.setProperties(n.id,{blinkAnimation:!1})}else!c.dataPoint&&c.animationName==="旋转"?e.setProperties(n.id,{rotateAnimation:!1}):!c.dataPoint&&c.animationName==="闪烁"&&e.setProperties(n.id,{blinkAnimation:!1})});const f=p.find(c=>c.animationName==="旋转"),m=p.find(c=>c.animationName==="闪烁");f||e.setProperties(n.id,{rotateAnimation:!1}),m||e.setProperties(n.id,{blinkAnimation:!1})}}},b6=(e,t)=>{const n=e.getNodeDataById(t);if(!n)return;const{dynamic:a}=n.properties;if(a){const{hiddenData:v}=a,{hiddenCombo:p}=v||{};p&&p.forEach(f=>{if(f.dataPoint&&f.showOrHiddenName==="隐藏"){const m=window.resolveScadaNewValue(f.defaultValue||"[]");if(m===""||f.min===""||f.max==="")return;if(m>=Number(f.min)&&m<=Number(f.max)){const c=e.getNodeModelById(t);c.visible=!1}else{const c=e.getNodeModelById(t);c.visible=!0}}else if(f.dataPoint&&f.showOrHiddenName==="显示"){const m=window.resolveScadaNewValue(f.defaultValue||"[]");if(m===""||f.min===""||f.max==="")return;if(m>=Number(f.min)&&m<=Number(f.max)){const c=e.getNodeModelById(t);c.visible=!0}else{const c=e.getNodeModelById(t);c.visible=!1}}})}};let So=[];const Tc=(e,t)=>{const n=Xs(t);n&&e.graphModel.nodes.forEach(a=>{if(a.type==="helper-circle-point")return;const v={x:a.x-a.width/2,y:a.y-a.height/2,width:a.width,height:a.height};xu(v,n)&&So.push(a)})},C6=e=>{window.layui.use("layer",()=>{window.layui.layer.msg(e)})},Dc=(e,t,n,a)=>{t.operateVariables.forEach(v=>{const p=v.selectedVariable.split("="),f=new Function("inputParamsTable","globalInputParamsCalculated","response","event",v.newValue);if(t.globalInputParamsCalculated)if(Array.isArray(t.globalInputParamsCalculated)){const m=t.globalInputParamsCalculated.length>0?t.globalInputParamsCalculated:t.inputParamsTable,c=f(t.inputParamsTable,m,a,n);e.setProperties(p[0],{[p[1]]:c})}else{const c=Object.keys(t.globalInputParamsCalculated).length>0?t.globalInputParamsCalculated:t.inputParamsTable,h=f(t.inputParamsTable,c,a,n);e.setProperties(p[0],{[p[1]]:h})}})},tr=async(e,t)=>{let n=null;if(e.inputParamsCalculate){const a=new Function("deviceInfo","command","event",e.inputParamsCalculate);window.globalDashboardDatas,n=a(e.device,e.command,t)}return n.event&&n.event instanceof PointerEvent&&(n.event=""),n},x6=(e,t,n,a,v)=>{t.commandNext&&t.commandNext.forEach(p=>{if(p.value==="refreshBoard")n.forEach(f=>{f()});else if(p.value==="operateVariable")Dc(e,t,a,v);else if(p.value==="showOrHide"){const m=new Function("e",t.showHideNewValue)(a);if(m&&m.toString()==="[object Object]")for(const c in m){const h=e.getNodeModelById(c);h.visible=m[c]==="show",h.properties.showHideContainChildren&&(So=[],Tc(e,{nodes:[h],edges:[]}),So.forEach(i=>{i.visible=h.visible,e.setProperties(i.id,{visible:h.visible})}))}}})},Ns=async(e,t,n,a)=>{let v={};if(n.requestUrl=n.requestUrl.replace("/thing",""),n.requestH
|