import{L as r}from"./c6a992d55-XBMyJptL.js";import{s as o,t,L as s,a as e,i as O,c as i,f as c,b as a}from"./cbd02b8f2-bajGY0VJ.js";import"./vendor-react-Dp9pL_Wn.js";import"./c40b9b8f5-CcFpJKg-.js";import"./vendor-zustand-CI9omAwJ.js";import"./c4b350ac1-KLFM4jkb.js";import"./vendor-ant-cds-DvTmcYA1.js";import"./vendor-base-ui-CdQU4JQh.js";import"./vendor-radix-D3USJ4lr.js";import"./vendor-base-5_f7mmWg.js";import"./vendor-virtual-DRz8lJfQ.js";import"./vendor-intl-BDR1NhN_.js";import"./vendor-zod-DIcz3Rbr.js";import"./vendor-icons-BBStP_8q.js";import"./vendor-lodash-CIro4mst.js";import"./vendor-router-qG5OCEmI.js";import"./vendor-query-DgCRID2b.js";import"./vendor-motion-D7Z1qgzM.js";import"./vendor-luxon-Y8l99kBI.js";import"./vendor-infra-DayZK7Ds.js";import"./vendor-growthbook-C66YtMMX.js";import"./c393cb7f5-HUvLXarC.js";import"./c5610fbe3-DJ_59xjU.js";import"./index-CSvjYuL_.js";import"./ca8998c31-P9hjFFxa.js";import"./cbf215181-Bsdk_iVX.js";import"./c82022b5f-v1T93ITZ.js";import"./c627fcdb6-v1yU0Z6G.js";import"./c85adc124-DaXgLnIc.js";import"./c4b43b0ae-CSVSIKUp.js";import"./ce61829b3-0upsP-GZ.js";import"./c0632795f-DFHAnV4h.js";import"./c1f96d614-CNpmgQ8l.js";import"./c2591c98b-B0JYd9Jp.js";import"./c9bba154c-Bw59591Y.js";import"./c2a658aad-Db1B4w67.js";import"./c0e977562-B_Zbx8nl.js";import"./c9f4bb49e-CrIVzJHt.js";import"./cc2dfdfd3-BrnuP9el.js";import"./c6a992d55-BgxzHrh5.js";import"./c9e81e7b9-CQ79hI5E.js";import"./cdd5b9598-DXIbe6ku.js";import"./cf57f6351-BOW8NPIt.js";import"./c5669b8e4-B4xCGVen.js";import"./c93f725a0-BmtJGQGk.js";import"./c26148d62-Db4ihZzY.js";import"./c3a36db6f-BVEOyI7C.js";import"./cc2e285cb-ERZJd0nP.js";import"./c4526f334-DmmtJSHf.js";import"./cb59e2e62-DU7B8aps.js";import"./c009a87a0-BdYPxNaw.js";import"./c8c15d455-BRkvbsON.js";import"./c0f96d0e0-DGUPaEDS.js";import"./c5d464fa3-CYmm4fn5.js";import"./c042dfd41-BINxSphp.js";import"./cd78d010c-COlwQ5g4.js";import"./c9a932b3c-qQxrtVFQ.js";import"./cd1c394f8-CKz8EIwT.js";import"./c07cc694b-Cu-P44cv.js";import"./c43a91f1b-D8cHPol7.js";import"./c9a932a07-D9sEpCTD.js";import"./c6e1d8764-D1PavEkT.js";import"./ca9c256b9-DeDepzHF.js";import"./ca44b2238-BnNoIzVv.js";import"./ce00bfecc-Cnq3pkIC.js";import"./cfe55e8af-DBT1L2ch.js";import"./c1d7d8319-BasQPxJj.js";import"./cadc35a07-CvdAxT4S.js";import"./cc2095605-BFatOO3O.js";import"./c6eedc03a-ca6SQXo7.js";const p=o({String:t.string,Number:t.number,"True False":t.bool,PropertyName:t.propertyName,Null:t.null,",":t.separator,"[ ]":t.squareBracket,"{ }":t.brace}),m=r.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"\u26a0 JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[p],skippedNodes:[0],repeatNodeCount:2,tokenData:"(p~RaXY!WYZ!W]^!Wpq!Wrs!]|}$i}!O$n!Q!R$w!R![&V![!]&h!}#O&m#P#Q&r#Y#Z&w#b#c'f#h#i'}#o#p(f#q#r(k~!]Oc~~!`Upq!]qr!]rs!rs#O!]#O#P!w#P~!]~!wOe~~!zXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#g~#jR!Q![#s!c!i#s#T#Z#s~#vR!Q![$P!c!i$P#T#Z$P~$SR!Q![$]!c!i$]#T#Z$]~$`R!Q![!]!c!i!]#T#Z!]~$nOh~~$qQ!Q!R$w!R![&V~$|RT~!O!P%V!g!h%k#X#Y%k~%YP!Q![%]~%bRT~!Q![%]!g!h%k#X#Y%k~%nR{|%w}!O%w!Q![%}~%zP!Q![%}~&SPT~!Q![%}~&[ST~!O!P%V!Q![&V!g!h%k#X#Y%k~&mOg~~&rO]~~&wO[~~&zP#T#U&}~'QP#`#a'T~'WP#g#h'Z~'^P#X#Y'a~'fOR~~'iP#i#j'l~'oP#`#a'r~'uP#`#a'x~'}OS~~(QP#f#g(T~(WP#i#j(Z~(^P#X#Y(a~(fOQ~~(kOW~~(pOV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),j=()=>r=>{try{JSON.parse(r.state.doc.toString())}catch(o){if(!(o instanceof SyntaxError))throw o;const t=function(r,o){let t;return(t=r.message.match(/at position (\d+)/))?Math.min(+t[1],o.length):(t=r.message.match(/at line (\d+) column (\d+)/))?Math.min(o.line(+t[1]).from+ +t[2]-1,o.length):0}(o,r.state.doc);return[{from:t,message:o.message,severity:"error",to:t}]}return[]};const n=e.define({parser:m.configure({props:[O.add({Object:i({except:/^\s*\}/}),Array:i({except:/^\s*\]/})}),c.add({"Object Array":a})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function d(){return new s(n)}export{d as json,n as jsonLanguage,j as jsonParseLinter};
