@agent-link/server 0.1.514 → 0.1.516
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/web/dist/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/web/dist/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/web/dist/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/web/dist/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/web/dist/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/web/dist/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/web/dist/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/web/dist/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/web/dist/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/web/dist/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/web/dist/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/web/dist/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/web/dist/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/web/dist/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/web/dist/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/web/dist/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/web/dist/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/web/dist/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/web/dist/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/web/dist/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/web/dist/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/web/dist/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/web/dist/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/web/dist/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/web/dist/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/web/dist/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/web/dist/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/web/dist/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/web/dist/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/web/dist/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/web/dist/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/web/dist/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/web/dist/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/web/dist/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/web/dist/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/web/dist/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/web/dist/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/web/dist/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/web/dist/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/web/dist/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/web/dist/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/web/dist/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/web/dist/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/web/dist/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/web/dist/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/web/dist/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/web/dist/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/web/dist/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/web/dist/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/web/dist/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/web/dist/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/web/dist/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/web/dist/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/web/dist/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/web/dist/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/web/dist/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/web/dist/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/web/dist/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/web/dist/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/web/dist/assets/abnfDiagram-VRR7QNED-BUjsT5Jl.js +1 -0
- package/web/dist/assets/arc-g7pWmx0C.js +1 -0
- package/web/dist/assets/architectureDiagram-ZJ3FMSHR-DdY1zStg.js +1 -0
- package/web/dist/assets/blockDiagram-677ZJIJ3-p821t5EL.js +1 -0
- package/web/dist/assets/c4Diagram-LMCZKHZV-BDxSF0rZ.js +1 -0
- package/web/dist/assets/channel-DZ15n_vn.js +1 -0
- package/web/dist/assets/chunk-2Q5K7J3B-B6At725E.js +1 -0
- package/web/dist/assets/chunk-32BRIVSS-ByOJtY8z.js +1 -0
- package/web/dist/assets/chunk-5VM5RSS4-DodNdju3.js +1 -0
- package/web/dist/assets/chunk-EX3LRPZG-BbkcflSb.js +1 -0
- package/web/dist/assets/chunk-JWPE2WC7-Cbd64bDm.js +1 -0
- package/web/dist/assets/chunk-MOJQB5TN-BCdBF-nP.js +1 -0
- package/web/dist/assets/chunk-RYQCIY6F-C25IRTcm.js +1 -0
- package/web/dist/assets/chunk-V7JOEXUC-CTFuOUPA.js +1 -0
- package/web/dist/assets/chunk-VR4S4FIN-DGfPvqRe.js +1 -0
- package/web/dist/assets/chunk-XXDRQBXY-B487xPKi.js +1 -0
- package/web/dist/assets/classDiagram-OUVF2IWQ-D4kzK_ro.js +1 -0
- package/web/dist/assets/classDiagram-v2-EOCWNBFH-D4kzK_ro.js +1 -0
- package/web/dist/assets/cose-bilkent-JH36ORCC-DUMkrDFK.js +1 -0
- package/web/dist/assets/{cssMode-BVP-lg8e.js → cssMode-CdsyJmus.js} +1 -1
- package/web/dist/assets/cynefin-VYW2F7L2-BlGVzc2_.js +15 -0
- package/web/dist/assets/cynefinDiagram-TSTJHNR4-PoQ0yMv9.js +1 -0
- package/web/dist/assets/cytoscape.esm-t-ybqhnH.js +9 -0
- package/web/dist/assets/dagre-VKFMJZFB-BWyn717Z.js +1 -0
- package/web/dist/assets/defaultLocale-BsH76t_G.js +1 -0
- package/web/dist/assets/diagram-FQU43EPY-B3lehSFh.js +1 -0
- package/web/dist/assets/diagram-G47NLZAW-CVRsDrwp.js +1 -0
- package/web/dist/assets/diagram-NH7WQ7WH-DPlGYep5.js +1 -0
- package/web/dist/assets/diagram-OA4YK3LP-DmAZvYGW.js +1 -0
- package/web/dist/assets/diagram-WEI45ONY-BKU8fuXs.js +1 -0
- package/web/dist/assets/ebnfDiagram-CCIWWBDH-DCw-gQk-.js +1 -0
- package/web/dist/assets/{editor.main-GMui43Hi.js → editor.main-BvdG8I8J.js} +3 -3
- package/web/dist/assets/erDiagram-Q63AITRT-B83I2lOG.js +1 -0
- package/web/dist/assets/flowDiagram-23GEKE2U-ntdq9hFf.js +1 -0
- package/web/dist/assets/{freemarker2-BIV1vE86.js → freemarker2-DheGgBGE.js} +1 -1
- package/web/dist/assets/ganttDiagram-NO4QXBWP-4DvbAFgY.js +1 -0
- package/web/dist/assets/gitGraphDiagram-IHSO6WYX-DpRPEjV6.js +1 -0
- package/web/dist/assets/graph-DaY0Al7L.js +1 -0
- package/web/dist/assets/{handlebars-DJpbpIyl.js → handlebars-CckrWHXt.js} +1 -1
- package/web/dist/assets/{html-Coanr1Wq.js → html-C43OYA91.js} +1 -1
- package/web/dist/assets/{htmlMode-D1FwOZyW.js → htmlMode-lFho_JTn.js} +1 -1
- package/web/dist/assets/index-CMoSnPi6.css +32 -0
- package/web/dist/assets/index-uJhfY-Ds.js +45 -0
- package/web/dist/assets/infoDiagram-FWYZ7A6U-1eJf2fJM.js +1 -0
- package/web/dist/assets/init-C0SZ43gy.js +1 -0
- package/web/dist/assets/ishikawaDiagram-FXEZZL3T-COJ6FHQU.js +1 -0
- package/web/dist/assets/{javascript-bCoiQwMM.js → javascript-BJV9A7A7.js} +1 -1
- package/web/dist/assets/journeyDiagram-5HDEW3XC-DTG6ApTa.js +1 -0
- package/web/dist/assets/{jsonMode-enM9TwR0.js → jsonMode-D4R8rHC6.js} +1 -1
- package/web/dist/assets/kanban-definition-HUTT4EX6-Ch9Vv2Ww.js +1 -0
- package/web/dist/assets/katex-0DbU9dfb.js +1 -0
- package/web/dist/assets/layout-C0UWAnD9.js +1 -0
- package/web/dist/assets/linear-BmFo1B75.js +1 -0
- package/web/dist/assets/{liquid-CszNaE-2.js → liquid-D3s3nyQz.js} +1 -1
- package/web/dist/assets/{lspLanguageFeatures-BDk6vcdq.js → lspLanguageFeatures-8aPLOpk2.js} +1 -1
- package/web/dist/assets/map-DupEyqkA.js +1 -0
- package/web/dist/assets/{mdx-kBp56vUn.js → mdx-DDTVuV3U.js} +1 -1
- package/web/dist/assets/mermaid.core-5jj-23N2.js +7 -0
- package/web/dist/assets/mindmap-definition-LN4V7U3C-DyoV-6vp.js +1 -0
- package/web/dist/assets/ordinal-CVjKTKEW.js +1 -0
- package/web/dist/assets/pegDiagram-2B236MQR-ByVdM12w.js +1 -0
- package/web/dist/assets/pieDiagram-ENE6RG2P-DWqHi0F2.js +1 -0
- package/web/dist/assets/{python-CqD2LrC5.js → python-CBtQzFsj.js} +1 -1
- package/web/dist/assets/quadrantDiagram-ABIIQ3AL-D-w-JKTm.js +1 -0
- package/web/dist/assets/railroadDiagram-RFXS5EU6-BiVVSb2K.js +1 -0
- package/web/dist/assets/{razor-CIX8et7e.js → razor-BJGBgvpK.js} +1 -1
- package/web/dist/assets/requirementDiagram-TGXJPOKE-CuLeAThk.js +1 -0
- package/web/dist/assets/sankeyDiagram-HTMAVEWB-DHKfF6mB.js +1 -0
- package/web/dist/assets/sequenceDiagram-DBY2YBRQ-Cmr2xhzm.js +1 -0
- package/web/dist/assets/sizeCapture-X5ZJPWSS-SdH7bebB.js +1 -0
- package/web/dist/assets/stateDiagram-2N3HPSRC-BLWksXfF.js +1 -0
- package/web/dist/assets/stateDiagram-v2-6OUMAXLB-gDBt9zc0.js +1 -0
- package/web/dist/assets/swimlanes-5IMT3BWC-v_nvNhJi.js +2 -0
- package/web/dist/assets/swimlanesDiagram-G3AALYLV-aCkqc0Za.js +1 -0
- package/web/dist/assets/timeline-definition-FHXFAJF6-D3qhITJm.js +1 -0
- package/web/dist/assets/{tsMode-BO5vf4Sq.js → tsMode-DxcojxIQ.js} +1 -1
- package/web/dist/assets/{typescript-DzvkAKiy.js → typescript-WJrpuPAD.js} +1 -1
- package/web/dist/assets/vennDiagram-L72KCM5P-B1aJUCUq.js +1 -0
- package/web/dist/assets/wardleyDiagram-EHGQE667-Dv9rOWSR.js +1 -0
- package/web/dist/assets/{xml-BXIbPO12.js → xml-C6uSUkGV.js} +1 -1
- package/web/dist/assets/xychartDiagram-FW5EYKEG-C_XjudM0.js +1 -0
- package/web/dist/assets/{yaml-COh21kph.js → yaml-BDwAJ4A_.js} +1 -1
- package/web/dist/index.html +2 -2
- package/web/dist/locales/en.json +7 -0
- package/web/dist/locales/zh.json +7 -0
- package/web/dist/assets/index-BYehqthn.js +0 -43
- package/web/dist/assets/index-CJbuaAi0.css +0 -32
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as t}from"./chunk-2Q5K7J3B-B6At725E.js";import{p as r}from"./chunk-JWPE2WC7-Cbd64bDm.js";import{o as e,n as o,s as n,g as a,a as i,b as s,_ as c,y as d,l as h,d as l,c as $,x as m,z as g,p,k as y,A as f,B as u,C as x}from"./mermaid.core-5jj-23N2.js";import{p as b}from"./cynefin-VYW2F7L2-BlGVzc2_.js";import"./index-uJhfY-Ds.js";var w={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},k=u.gitGraph,B=c(()=>f({...k,...d().gitGraph}),"getConfig"),E=new t(()=>{const t=B(),r=t.mainBranchName,e=t.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:e}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function C(){return x({length:7})}function v(t,r){const e=Object.create(null);return t.reduce((t,o)=>{const n=r(o);return e[n]||(e[n]=!0,t.push(o)),t},[])}c(C,"getID"),c(v,"uniqBy");var L=c(function(t){E.records.direction=t},"setDirection"),T=c(function(t){h.debug("options str",t),t=(t=null==t?void 0:t.trim())||"{}";try{E.records.options=JSON.parse(t)}catch(r){h.error("error while parsing gitGraph options",r.message)}},"setOptions"),M=c(function(){return E.records.options},"getOptions"),I=c(function(t){let r=t.msg,e=t.id;const o=t.type;let n=t.tags;h.info("commit",r,e,o,n),h.debug("Entering commit:",r,e,o,n);const a=B();e=y.sanitizeText(e,a),r=y.sanitizeText(r,a),n=null==n?void 0:n.map(t=>y.sanitizeText(t,a));const i={id:e||E.records.seq+"-"+C(),message:r,seq:E.records.seq++,type:o??w.NORMAL,tags:n??[],parents:null==E.records.head?[]:[E.records.head.id],branch:E.records.currBranch};E.records.head=i,h.info("main branch",a.mainBranchName),E.records.commits.has(i.id)&&h.warn(`Commit ID ${i.id} already exists`),E.records.commits.set(i.id,i),E.records.branches.set(E.records.currBranch,i.id),h.debug("in pushCommit "+i.id)},"commit"),R=c(function(t){let r=t.name;const e=t.order;if(r=y.sanitizeText(r,B()),E.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);E.records.branches.set(r,null!=E.records.head?E.records.head.id:null),E.records.branchConfig.set(r,{name:r,order:e}),A(r),h.debug("in createBranch")},"branch"),P=c(t=>{let r=t.branch,e=t.id;const o=t.type,n=t.tags,a=B();r=y.sanitizeText(r,a),e&&(e=y.sanitizeText(e,a));const i=E.records.branches.get(E.records.currBranch),s=E.records.branches.get(r),c=i?E.records.commits.get(i):void 0,d=s?E.records.commits.get(s):void 0;if(c&&d&&c.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(E.records.currBranch===r){const t=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw t.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},t}if(void 0===c||!c){const t=new Error(`Incorrect usage of "merge". Current branch (${E.records.currBranch})has no commits`);throw t.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},t}if(!E.records.branches.has(r)){const t=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw t.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},t}if(void 0===d||!d){const t=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw t.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},t}if(c===d){const t=new Error('Incorrect usage of "merge". Both branches have same head');throw t.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},t}if(e&&E.records.commits.has(e)){const t=new Error('Incorrect usage of "merge". Commit with id:'+e+" already exists, use different custom id");throw t.hash={text:`merge ${r} ${e} ${o} ${null==n?void 0:n.join(" ")}`,token:`merge ${r} ${e} ${o} ${null==n?void 0:n.join(" ")}`,expected:[`merge ${r} ${e}_UNIQUE ${o} ${null==n?void 0:n.join(" ")}`]},t}const l=s||"",$={id:e||`${E.records.seq}-${C()}`,message:`merged branch ${r} into ${E.records.currBranch}`,seq:E.records.seq++,parents:null==E.records.head?[]:[E.records.head.id,l],branch:E.records.currBranch,type:w.MERGE,customType:o,customId:!!e,tags:n??[]};E.records.head=$,E.records.commits.set($.id,$),E.records.branches.set(E.records.currBranch,$.id),h.debug(E.records.branches),h.debug("in mergeBranch")},"merge"),O=c(function(t){let r=t.id,e=t.targetId,o=t.tags,n=t.parent;h.debug("Entering cherryPick:",r,e,o);const a=B();if(r=y.sanitizeText(r,a),e=y.sanitizeText(e,a),o=null==o?void 0:o.map(t=>y.sanitizeText(t,a)),n=y.sanitizeText(n,a),!r||!E.records.commits.has(r)){const t=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw t.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},t}const i=E.records.commits.get(r);if(void 0===i||!i)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(n&&(!Array.isArray(i.parents)||!i.parents.includes(n))){throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.")}const s=i.branch;if(i.type===w.MERGE&&!n){throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.")}if(!e||!E.records.commits.has(e)){if(s===E.records.currBranch){const t=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw t.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},t}const t=E.records.branches.get(E.records.currBranch);if(void 0===t||!t){const t=new Error(`Incorrect usage of "cherry-pick". Current branch (${E.records.currBranch})has no commits`);throw t.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},t}const a=E.records.commits.get(t);if(void 0===a||!a){const t=new Error(`Incorrect usage of "cherry-pick". Current branch (${E.records.currBranch})has no commits`);throw t.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},t}const c={id:E.records.seq+"-"+C(),message:`cherry-picked ${null==i?void 0:i.message} into ${E.records.currBranch}`,seq:E.records.seq++,parents:null==E.records.head?[]:[E.records.head.id,i.id],branch:E.records.currBranch,type:w.CHERRY_PICK,tags:o?o.filter(Boolean):[`cherry-pick:${i.id}${i.type===w.MERGE?`|parent:${n}`:""}`]};E.records.head=c,E.records.commits.set(c.id,c),E.records.branches.set(E.records.currBranch,c.id),h.debug(E.records.branches),h.debug("in cherryPick")}},"cherryPick"),A=c(function(t){if(t=y.sanitizeText(t,B()),!E.records.branches.has(t)){const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw r.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},r}{E.records.currBranch=t;const r=E.records.branches.get(E.records.currBranch);E.records.head=void 0!==r&&r?E.records.commits.get(r)??null:null}},"checkout");function G(t,r,e){const o=t.indexOf(r);-1===o?t.push(e):t.splice(o,1,e)}function S(t){const r=t.reduce((t,r)=>t.seq>r.seq?t:r,t[0]);let e="";t.forEach(function(t){e+=t===r?"\t*":"\t|"});const o=[e,r.id,r.seq];for(const n in E.records.branches)E.records.branches.get(n)===r.id&&o.push(n);if(h.debug(o.join(" ")),r.parents&&2==r.parents.length&&r.parents[0]&&r.parents[1]){const e=E.records.commits.get(r.parents[0]);G(t,r,e),r.parents[1]&&t.push(E.records.commits.get(r.parents[1]))}else{if(0==r.parents.length)return;if(r.parents[0]){const e=E.records.commits.get(r.parents[0]);G(t,r,e)}}S(t=v(t,t=>t.id))}c(G,"upsert"),c(S,"prettyPrintCommitHistory");var W=c(function(){h.debug(E.records.commits);S([j()[0]])},"prettyPrint"),H=c(function(){E.reset(),p()},"clear"),q=c(function(){return[...E.records.branchConfig.values()].map((t,r)=>null!==t.order&&void 0!==t.order?t:{...t,order:parseFloat(`0.${r}`)}).sort((t,r)=>(t.order??0)-(r.order??0)).map(({name:t})=>({name:t}))},"getBranchesAsObjArray"),z=c(function(){return E.records.branches},"getBranches"),_=c(function(){return E.records.commits},"getCommits"),j=c(function(){const t=[...E.records.commits.values()];return t.forEach(function(t){h.debug(t.id)}),t.sort((t,r)=>t.seq-r.seq),t},"getCommitsArray"),D={commitType:w,getConfig:B,setDirection:L,setOptions:T,getOptions:M,commit:I,branch:R,merge:P,cherryPick:O,checkout:A,prettyPrint:W,clear:H,getBranchesAsObjArray:q,getBranches:z,getCommits:_,getCommitsArray:j,getCurrentBranch:c(function(){return E.records.currBranch},"getCurrentBranch"),getDirection:c(function(){return E.records.direction},"getDirection"),getHead:c(function(){return E.records.head},"getHead"),setAccTitle:s,getAccTitle:i,getAccDescription:a,setAccDescription:n,setDiagramTitle:o,getDiagramTitle:e},F=c((t,e)=>{r(t,e),t.dir&&e.setDirection(t.dir);for(const r of t.statements)N(r,e)},"populate"),N=c((t,r)=>{const e={Commit:c(t=>r.commit(K(t)),"Commit"),Branch:c(t=>r.branch(V(t)),"Branch"),Merge:c(t=>r.merge(Y(t)),"Merge"),Checkout:c(t=>r.checkout(U(t)),"Checkout"),CherryPicking:c(t=>r.cherryPick(J(t)),"CherryPicking")}[t.$type];e?e(t):h.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),K=c(t=>({id:t.id,msg:t.message??"",type:void 0!==t.type?w[t.type]:w.NORMAL,tags:t.tags??void 0}),"parseCommit"),V=c(t=>({name:t.name,order:t.order??0}),"parseBranch"),Y=c(t=>({branch:t.branch,id:t.id??"",type:void 0!==t.type?w[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),U=c(t=>t.branch,"parseCheckout"),J=c(t=>{var r;return{id:t.id,targetId:"",tags:0===(null==(r=t.tags)?void 0:r.length)?void 0:t.tags,parent:t.parent}},"parseCherryPicking"),Q={parse:c(async t=>{const r=await b("gitGraph",t);h.debug(r),F(r,D)},"parse")},X=10,Z=40,tt=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),rt=new Set(["redux-color","redux-dark-color"]),et=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),ot=c((t,r,e=!1)=>e&&t>0?(t-1)%(r-1)+1:t%r,"calcColorIndex"),nt=new Map,at=new Map,it=new Map,st=[],ct=0,dt="LR",ht=c(()=>{nt.clear(),at.clear(),it.clear(),ct=0,st=[],dt="LR"},"clear"),lt=c(t=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return("string"==typeof t?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach(t=>{const e=document.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.setAttribute("dy","1em"),e.setAttribute("x","0"),e.setAttribute("class","row"),e.textContent=t.trim(),r.appendChild(e)}),r},"drawText"),$t=c(t=>{let r,e,o;return"BT"===dt?(e=c((t,r)=>t<=r,"comparisonFunc"),o=1/0):(e=c((t,r)=>t>=r,"comparisonFunc"),o=0),t.forEach(t=>{var n,a;const i="TB"===dt||"BT"==dt?null==(n=at.get(t))?void 0:n.y:null==(a=at.get(t))?void 0:a.x;void 0!==i&&e(i,o)&&(r=t,o=i)}),r},"findClosestParent"),mt=c(t=>{let r="",e=1/0;return t.forEach(t=>{const o=at.get(t).y;o<=e&&(r=t,e=o)}),r||void 0},"findClosestParentBT"),gt=c((t,r,e)=>{let o=e,n=e;const a=[];t.forEach(t=>{const e=r.get(t);if(!e)throw new Error(`Commit not found for key ${t}`);e.parents.length?(o=yt(e),n=Math.max(o,n)):a.push(e),ft(e,o)}),o=n,a.forEach(t=>{ut(t,o,e)}),t.forEach(t=>{const e=r.get(t);if(null==e?void 0:e.parents.length){const t=mt(e.parents);o=at.get(t).y-Z,o<=n&&(n=o);const r=nt.get(e.branch).pos,a=o-X;at.set(e.id,{x:r,y:a})}})},"setParallelBTPos"),pt=c(t=>{var r;const e=$t(t.parents.filter(t=>null!==t));if(!e)throw new Error(`Closest parent not found for commit ${t.id}`);const o=null==(r=at.get(e))?void 0:r.y;if(void 0===o)throw new Error(`Closest parent position not found for commit ${t.id}`);return o},"findClosestParentPos"),yt=c(t=>pt(t)+Z,"calculateCommitPosition"),ft=c((t,r)=>{const e=nt.get(t.branch);if(!e)throw new Error(`Branch not found for commit ${t.id}`);const o=e.pos,n=r+X;return at.set(t.id,{x:o,y:n}),{x:o,y:n}},"setCommitPosition"),ut=c((t,r,e)=>{const o=nt.get(t.branch);if(!o)throw new Error(`Branch not found for commit ${t.id}`);const n=r+e,a=o.pos;at.set(t.id,{x:a,y:n})},"setRootPosition"),xt=c((t,r,e,o,n,a)=>{const{theme:i}=$(),s=tt.has(i??""),c=rt.has(i??""),d=et.has(i??"");if(a===w.HIGHLIGHT)t.append("rect").attr("x",e.x-10+(s?3:0)).attr("y",e.y-10+(s?3:0)).attr("width",s?14:20).attr("height",s?14:20).attr("class",`commit ${r.id} commit-highlight${ot(n,8,c)} ${o}-outer`),t.append("rect").attr("x",e.x-6+(s?2:0)).attr("y",e.y-6+(s?2:0)).attr("width",s?8:12).attr("height",s?8:12).attr("class",`commit ${r.id} commit${ot(n,8,c)} ${o}-inner`);else if(a===w.CHERRY_PICK)t.append("circle").attr("cx",e.x).attr("cy",e.y).attr("r",s?7:10).attr("class",`commit ${r.id} ${o}`),t.append("circle").attr("cx",e.x-3).attr("cy",e.y+2).attr("r",s?2.5:2.75).attr("fill",d?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),t.append("circle").attr("cx",e.x+3).attr("cy",e.y+2).attr("r",s?2.5:2.75).attr("fill",d?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),t.append("line").attr("x1",e.x+3).attr("y1",e.y+1).attr("x2",e.x).attr("y2",e.y-5).attr("stroke",d?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),t.append("line").attr("x1",e.x-3).attr("y1",e.y+1).attr("x2",e.x).attr("y2",e.y-5).attr("stroke",d?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`);else{const i=t.append("circle");if(i.attr("cx",e.x),i.attr("cy",e.y),i.attr("r",s?7:10),i.attr("class",`commit ${r.id} commit${ot(n,8,c)}`),a===w.MERGE){const a=t.append("circle");a.attr("cx",e.x),a.attr("cy",e.y),a.attr("r",s?5:6),a.attr("class",`commit ${o} ${r.id} commit${ot(n,8,c)}`)}if(a===w.REVERSE){const a=s?4:5;t.append("path").attr("d",`M ${e.x-a},${e.y-a}L${e.x+a},${e.y+a}M${e.x-a},${e.y+a}L${e.x+a},${e.y-a}`).attr("class",`commit ${o} ${r.id} commit${ot(n,8,c)}`)}}},"drawCommitBullet"),bt=c((t,r,e,o,n)=>{var a;if(r.type!==w.CHERRY_PICK&&(r.customId&&r.type===w.MERGE||r.type!==w.MERGE)&&n.showCommitLabel){const i=t.append("g"),s=i.insert("rect").attr("class","commit-label-bkg"),c=i.append("text").attr("x",o).attr("y",e.y+25).attr("class","commit-label").text(r.id),d=null==(a=c.node())?void 0:a.getBBox();if(d&&(s.attr("x",e.posWithOffset-d.width/2-2).attr("y",e.y+13.5).attr("width",d.width+4).attr("height",d.height+4),"TB"===dt||"BT"===dt?(s.attr("x",e.x-(d.width+16+5)).attr("y",e.y-12),c.attr("x",e.x-(d.width+16)).attr("y",e.y+d.height-12)):c.attr("x",e.posWithOffset-d.width/2),n.rotateCommitLabel))if("TB"===dt||"BT"===dt)c.attr("transform","rotate(-45, "+e.x+", "+e.y+")"),s.attr("transform","rotate(-45, "+e.x+", "+e.y+")");else{const t=-7.5-(d.width+10)/25*9.5,r=10+d.width/25*8.5;i.attr("transform","translate("+t+", "+r+") rotate(-45, "+o+", "+e.y+")")}}},"drawCommitLabel"),wt=c((t,r,e,o)=>{var n;if(r.tags.length>0){let a=0,i=0,s=0;const c=[];for(const o of r.tags.reverse()){const r=t.insert("polygon"),d=t.append("circle"),h=t.append("text").attr("y",e.y-16-a).attr("class","tag-label").text(o),l=null==(n=h.node())?void 0:n.getBBox();if(!l)throw new Error("Tag bbox not found");i=Math.max(i,l.width),s=Math.max(s,l.height),h.attr("x",e.posWithOffset-l.width/2),c.push({tag:h,hole:d,rect:r,yOffset:a}),a+=20}for(const{tag:t,hole:r,rect:n,yOffset:d}of c){const a=s/2,c=e.y-19.2-d;if(n.attr("class","tag-label-bkg").attr("points",`\n ${o-i/2-2},${c+2} \n ${o-i/2-2},${c-2}\n ${e.posWithOffset-i/2-4},${c-a-2}\n ${e.posWithOffset+i/2+4},${c-a-2}\n ${e.posWithOffset+i/2+4},${c+a+2}\n ${e.posWithOffset-i/2-4},${c+a+2}`),r.attr("cy",c).attr("cx",o-i/2+2).attr("r",1.5).attr("class","tag-hole"),"TB"===dt||"BT"===dt){const s=o+d;n.attr("class","tag-label-bkg").attr("points",`\n ${e.x},${s+2}\n ${e.x},${s-2}\n ${e.x+X},${s-a-2}\n ${e.x+X+i+4},${s-a-2}\n ${e.x+X+i+4},${s+a+2}\n ${e.x+X},${s+a+2}`).attr("transform","translate(12,12) rotate(45, "+e.x+","+o+")"),r.attr("cx",e.x+2).attr("cy",s).attr("transform","translate(12,12) rotate(45, "+e.x+","+o+")"),t.attr("x",e.x+5).attr("y",s+3).attr("transform","translate(14,14) rotate(45, "+e.x+","+o+")")}}}},"drawCommitTags"),kt=c(t=>{switch(t.customType??t.type){case w.NORMAL:return"commit-normal";case w.REVERSE:return"commit-reverse";case w.HIGHLIGHT:return"commit-highlight";case w.MERGE:return"commit-merge";case w.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),Bt=c((t,r,e,o)=>{const n={x:0,y:0};if(!(t.parents.length>0)){if("TB"===r)return 30;if("BT"===r){return(o.get(t.id)??n).y-Z}return 0}{const e=$t(t.parents);if(e){const a=o.get(e)??n;if("TB"===r)return a.y+Z;if("BT"===r){return(o.get(t.id)??n).y-Z}return a.x+Z}}return 0},"calculatePosition"),Et=c((t,r,e)=>{var o,n;const a="BT"===dt&&e?r:r+X,i=null==(o=nt.get(t.branch))?void 0:o.pos,s="TB"===dt||"BT"===dt?null==(n=nt.get(t.branch))?void 0:n.pos:a;if(void 0===s||void 0===i)throw new Error(`Position were undefined for commit ${t.id}`);const c=tt.has($().theme??"");return{x:s,y:"TB"===dt||"BT"===dt?a:i+(c?7:-2),posWithOffset:a}},"getCommitPosition"),Ct=c((t,r,e,o)=>{const n=t.append("g").attr("class","commit-bullets"),a=t.append("g").attr("class","commit-labels");let i="TB"===dt||"BT"===dt?30:0;const s=[...r.keys()],d=o.parallelCommits??!1,h=c((t,e)=>{var o,n;const a=null==(o=r.get(t))?void 0:o.seq,i=null==(n=r.get(e))?void 0:n.seq;return void 0!==a&&void 0!==i?a-i:0},"sortKeys");let l=s.sort(h);"BT"===dt&&(d&>(l,r,i),l=l.reverse()),l.forEach(t=>{var s;const c=r.get(t);if(!c)throw new Error(`Commit not found for key ${t}`);d&&(i=Bt(c,dt,i,at));const h=Et(c,i,d);if(e){const t=kt(c),r=c.customType??c.type,e=(null==(s=nt.get(c.branch))?void 0:s.index)??0;xt(n,c,h,t,e,r),bt(a,c,h,i,o),wt(a,c,h,i)}"TB"===dt||"BT"===dt?at.set(c.id,{x:h.x,y:h.posWithOffset}):at.set(c.id,{x:h.posWithOffset,y:h.y}),i="BT"===dt&&d?i+Z:i+Z+X,i>ct&&(ct=i)})},"drawCommits"),vt=c((t,r,e,o,n)=>{const a=("TB"===dt||"BT"===dt?e.x<o.x:e.y<o.y)?r.branch:t.branch,i=c(t=>t.branch===a,"isOnBranchToGetCurve"),s=c(e=>e.seq>t.seq&&e.seq<r.seq,"isBetweenCommits");return[...n.values()].some(t=>s(t)&&i(t))},"shouldRerouteArrow"),Lt=c((t,r,e=0)=>{const o=t+Math.abs(t-r)/2;if(e>5)return o;if(st.every(t=>Math.abs(t-o)>=10))return st.push(o),o;const n=Math.abs(t-r);return Lt(t,r-n/5,e+1)},"findLane"),Tt=c((t,r,e,o)=>{var n,a,i,s,c;const{theme:d}=$(),h=rt.has(d??""),l=at.get(r.id),m=at.get(e.id);if(void 0===l||void 0===m)throw new Error(`Commit positions not found for commits ${r.id} and ${e.id}`);const g=vt(r,e,l,m,o);let p,y="",f="",u=0,x=0,b=null==(n=nt.get(e.branch))?void 0:n.index;if(e.type===w.MERGE&&r.id!==e.parents[0]&&(b=null==(a=nt.get(r.branch))?void 0:a.index),g){y="A 10 10, 0, 0, 0,",f="A 10 10, 0, 0, 1,",u=10,x=10;const t=l.y<m.y?Lt(l.y,m.y):Lt(m.y,l.y),e=l.x<m.x?Lt(l.x,m.x):Lt(m.x,l.x);"TB"===dt?l.x<m.x?p=`M ${l.x} ${l.y} L ${e-u} ${l.y} ${f} ${e} ${l.y+x} L ${e} ${m.y-u} ${y} ${e+x} ${m.y} L ${m.x} ${m.y}`:(b=null==(i=nt.get(r.branch))?void 0:i.index,p=`M ${l.x} ${l.y} L ${e+u} ${l.y} ${y} ${e} ${l.y+x} L ${e} ${m.y-u} ${f} ${e-x} ${m.y} L ${m.x} ${m.y}`):"BT"===dt?l.x<m.x?p=`M ${l.x} ${l.y} L ${e-u} ${l.y} ${y} ${e} ${l.y-x} L ${e} ${m.y+u} ${f} ${e+x} ${m.y} L ${m.x} ${m.y}`:(b=null==(s=nt.get(r.branch))?void 0:s.index,p=`M ${l.x} ${l.y} L ${e+u} ${l.y} ${f} ${e} ${l.y-x} L ${e} ${m.y+u} ${y} ${e-x} ${m.y} L ${m.x} ${m.y}`):l.y<m.y?p=`M ${l.x} ${l.y} L ${l.x} ${t-u} ${y} ${l.x+x} ${t} L ${m.x-u} ${t} ${f} ${m.x} ${t+x} L ${m.x} ${m.y}`:(b=null==(c=nt.get(r.branch))?void 0:c.index,p=`M ${l.x} ${l.y} L ${l.x} ${t+u} ${f} ${l.x+x} ${t} L ${m.x-u} ${t} ${y} ${m.x} ${t-x} L ${m.x} ${m.y}`)}else y="A 20 20, 0, 0, 0,",f="A 20 20, 0, 0, 1,",u=20,x=20,"TB"===dt?(l.x<m.x&&(p=e.type===w.MERGE&&r.id!==e.parents[0]?`M ${l.x} ${l.y} L ${l.x} ${m.y-u} ${y} ${l.x+x} ${m.y} L ${m.x} ${m.y}`:`M ${l.x} ${l.y} L ${m.x-u} ${l.y} ${f} ${m.x} ${l.y+x} L ${m.x} ${m.y}`),l.x>m.x&&(y="A 20 20, 0, 0, 0,",f="A 20 20, 0, 0, 1,",u=20,x=20,p=e.type===w.MERGE&&r.id!==e.parents[0]?`M ${l.x} ${l.y} L ${l.x} ${m.y-u} ${f} ${l.x-x} ${m.y} L ${m.x} ${m.y}`:`M ${l.x} ${l.y} L ${m.x+u} ${l.y} ${y} ${m.x} ${l.y+x} L ${m.x} ${m.y}`),l.x===m.x&&(p=`M ${l.x} ${l.y} L ${m.x} ${m.y}`)):"BT"===dt?(l.x<m.x&&(p=e.type===w.MERGE&&r.id!==e.parents[0]?`M ${l.x} ${l.y} L ${l.x} ${m.y+u} ${f} ${l.x+x} ${m.y} L ${m.x} ${m.y}`:`M ${l.x} ${l.y} L ${m.x-u} ${l.y} ${y} ${m.x} ${l.y-x} L ${m.x} ${m.y}`),l.x>m.x&&(y="A 20 20, 0, 0, 0,",f="A 20 20, 0, 0, 1,",u=20,x=20,p=e.type===w.MERGE&&r.id!==e.parents[0]?`M ${l.x} ${l.y} L ${l.x} ${m.y+u} ${y} ${l.x-x} ${m.y} L ${m.x} ${m.y}`:`M ${l.x} ${l.y} L ${m.x+u} ${l.y} ${f} ${m.x} ${l.y-x} L ${m.x} ${m.y}`),l.x===m.x&&(p=`M ${l.x} ${l.y} L ${m.x} ${m.y}`)):(l.y<m.y&&(p=e.type===w.MERGE&&r.id!==e.parents[0]?`M ${l.x} ${l.y} L ${m.x-u} ${l.y} ${f} ${m.x} ${l.y+x} L ${m.x} ${m.y}`:`M ${l.x} ${l.y} L ${l.x} ${m.y-u} ${y} ${l.x+x} ${m.y} L ${m.x} ${m.y}`),l.y>m.y&&(p=e.type===w.MERGE&&r.id!==e.parents[0]?`M ${l.x} ${l.y} L ${m.x-u} ${l.y} ${y} ${m.x} ${l.y-x} L ${m.x} ${m.y}`:`M ${l.x} ${l.y} L ${l.x} ${m.y+u} ${f} ${l.x+x} ${m.y} L ${m.x} ${m.y}`),l.y===m.y&&(p=`M ${l.x} ${l.y} L ${m.x} ${m.y}`));if(void 0===p)throw new Error("Line definition not found");t.append("path").attr("d",p).attr("class","arrow arrow"+ot(b,8,h))},"drawArrow"),Mt=c((t,r)=>{const e=t.append("g").attr("class","commit-arrows");[...r.keys()].forEach(t=>{const o=r.get(t);o.parents&&o.parents.length>0&&o.parents.forEach(t=>{Tt(e,r.get(t),o,r)})})},"drawArrows"),It=c((t,r,e,o)=>{const{look:n,theme:a,themeVariables:i}=$(),{dropShadow:s,THEME_COLOR_LIMIT:c}=i,d=tt.has(a??""),h=rt.has(a??""),l=t.append("g");r.forEach((t,r)=>{var a;const i=ot(r,d?c:8,h),$=null==(a=nt.get(t.name))?void 0:a.pos;if(void 0===$)throw new Error(`Position not found for branch ${t.name}`);const m="TB"===dt||"BT"===dt?$:d?$+6+1:$-2,g=l.append("line");g.attr("x1",0),g.attr("y1",m),g.attr("x2",ct),g.attr("y2",m),g.attr("class","branch branch"+i),"TB"===dt?(g.attr("y1",30),g.attr("x1",$),g.attr("y2",ct),g.attr("x2",$)):"BT"===dt&&(g.attr("y1",ct),g.attr("x1",$),g.attr("y2",30),g.attr("x2",$)),st.push(m);const p=t.name,y=lt(p),f=l.insert("rect"),u=l.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+i);u.node().appendChild(y);const x=y.getBBox(),b=d?0:4,w=d?16:0,k=d?12:0;"neo"===n&&f.attr("data-look","neo"),f.attr("class","branchLabelBkg label"+i).attr("style","neo"===n?`filter:${d?`url(#${o}-drop-shadow)`:s}`:"").attr("rx",b).attr("ry",b).attr("x",-x.width-4-(!0===e.rotateCommitLabel?30:0)).attr("y",-x.height/2+10).attr("width",x.width+18+w).attr("height",x.height+4+k),u.attr("transform","translate("+(-x.width-14-(!0===e.rotateCommitLabel?30:0)+w/2)+", "+(m-x.height/2-2)+")"),"TB"===dt?(f.attr("x",$-x.width/2-10).attr("y",0),u.attr("transform","translate("+($-x.width/2-5)+", 0)"),d&&(f.attr("transform",`translate(${-w/2-3}, ${-k-10})`),u.attr("transform","translate("+($-x.width/2-5)+", "+(2*-k+7)+")"))):"BT"===dt?(f.attr("x",$-x.width/2-10).attr("y",ct),u.attr("transform","translate("+($-x.width/2-5)+", "+ct+")"),d&&(f.attr("transform",`translate(${-w/2-3}, ${k+10})`),u.attr("transform","translate("+($-x.width/2-5)+", "+(ct+2*k+4)+")"))):f.attr("transform","translate(-19, "+(m-12-k/2)+")")})},"drawBranches"),Rt=c(function(t,r,e,o,n){return nt.set(t,{pos:r,index:e}),r+=50+(n?40:0)+("TB"===dt||"BT"===dt?o.width/2:0)},"setBranchPosition"),Pt={draw:c(function(t,r,e,o){ht(),h.debug("in gitgraph renderer",t+"\n","id:",r,e);const n=o.db;if(!n.getConfig)return void h.error("getConfig method is not available on db");const a=n.getConfig(),i=a.rotateCommitLabel??!1;it=n.getCommits();const s=n.getBranchesAsObjArray();dt=n.getDirection();const c=l(`[id="${r}"]`),{look:d,theme:p,themeVariables:y}=$(),{useGradient:f,gradientStart:u,gradientStop:x,filterColor:b}=y;if(f){const t=c.append("defs").append("linearGradient").attr("id",r+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");t.append("stop").attr("offset","0%").attr("stop-color",u).attr("stop-opacity",1),t.append("stop").attr("offset","100%").attr("stop-color",x).attr("stop-opacity",1)}"neo"===d&&tt.has(p??"")&&c.append("defs").append("filter").attr("id",r+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",b);let w=0;s.forEach((t,r)=>{var e;const o=lt(t.name),n=c.append("g"),a=n.insert("g").attr("class","branchLabel"),s=a.insert("g").attr("class","label branch-label");null==(e=s.node())||e.appendChild(o);const d=o.getBBox();w=Rt(t.name,w,r,d,i),s.remove(),a.remove(),n.remove()}),Ct(c,it,!1,a),a.showBranches&&It(c,s,a,r),Mt(c,it),Ct(c,it,!0,a),m.insertTitle(c,"gitTitleText",a.titleTopMargin??0,n.getDiagramTitle()),g(void 0,c,a.diagramPadding,a.useMaxWidth)},"draw")},Ot=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),At=new Set(["redux-color","redux-dark-color"]),Gt=new Set(["neo","neo-dark"]),St=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),Wt=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),Ht=c(t=>{const{svgId:r}=t;let e="";if(t.useGradient&&r)for(let o=0;o<t.THEME_COLOR_LIMIT;o++)e+=`\n .label${o} { fill: ${t.mainBkg}; stroke: url(${r}-gradient); stroke-width: ${t.strokeWidth};}\n `;return e},"genGitGraphGradient"),qt=c(t=>{const r=d(),{theme:e,themeVariables:o}=r,{borderColorArray:n}=o,a=Ot.has(e);if(Gt.has(e)){let r="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++)if(0===e)r+=`\n .branch-label${e} { fill: ${t.nodeBorder};}\n .commit${e} { stroke: ${t.nodeBorder}; }\n .commit-highlight${e} { stroke: ${t.nodeBorder}; fill: ${t.nodeBorder}; }\n .arrow${e} { stroke: ${t.nodeBorder}; }\n .commit-bullets { fill: ${t.nodeBorder}; }\n .commit-cherry-pick${e} { stroke: ${t.nodeBorder}; }\n ${Ht(t)}`;else{const o=e%8;r+=`\n .branch-label${e} { fill: ${t["gitBranchLabel"+o]}; }\n .commit${e} { stroke: ${t["git"+o]}; fill: ${t["git"+o]}; }\n .commit-highlight${e} { stroke: ${t["gitInv"+o]}; fill: ${t["gitInv"+o]}; }\n .arrow${e} { stroke: ${t["git"+o]}; }\n `}return r}if(At.has(e)){let r="";for(let o=0;o<t.THEME_COLOR_LIMIT;o++)if(0===o)r+=`\n .branch-label${o} { fill: ${t.nodeBorder}; ${a?`font-weight:${t.noteFontWeight}`:""} }\n .commit${o} { stroke: ${t.nodeBorder}; }\n .commit-highlight${o} { stroke: ${t.nodeBorder}; fill: ${t.mainBkg}; }\n .label${o} { fill: ${t.mainBkg}; stroke: ${t.nodeBorder}; stroke-width: ${t.strokeWidth}; ${a?`font-weight:${t.noteFontWeight}`:""} }\n .arrow${o} { stroke: ${t.nodeBorder}; }\n .commit-bullets { fill: ${t.nodeBorder}; }\n `;else{const i=o%n.length;r+=`\n .branch-label${o} { fill: ${t.nodeBorder}; ${a?`font-weight:${t.noteFontWeight}`:""} }\n .commit${o} { stroke: ${n[i]}; fill: ${n[i]}; }\n .commit-highlight${o} { stroke: ${n[i]}; fill: ${n[i]}; }\n .label${o} { fill: ${St.has(e)?t.mainBkg:n[i]}; stroke: ${n[i]}; stroke-width: ${t.strokeWidth}; }\n .arrow${o} { stroke: ${n[i]}; }\n `}return r}{let r="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++)r+=`\n .branch-label${e} { fill: ${t.nodeBorder}; ${a?`font-weight:${t.noteFontWeight}`:""} }\n .commit${e} { stroke: ${t.nodeBorder}; }\n .commit-highlight${e} { stroke: ${t.nodeBorder}; fill: ${t.nodeBorder}; }\n .label${e} { fill: ${t.mainBkg}; stroke: ${t.nodeBorder}; stroke-width: ${t.strokeWidth}; ${a?`font-weight:${t.noteFontWeight}`:""}}\n .arrow${e} { stroke: ${t.nodeBorder}; }\n .commit-bullets { fill: ${t.nodeBorder}; }\n .commit-cherry-pick${e} { stroke: ${t.nodeBorder}; }\n `;return r}},"genColor"),zt=c(t=>`${Array.from({length:t.THEME_COLOR_LIMIT},(t,r)=>r).map(r=>{const e=r%8;return`\n .branch-label${r} { fill: ${t["gitBranchLabel"+e]}; }\n .commit${r} { stroke: ${t["git"+e]}; fill: ${t["git"+e]}; }\n .commit-highlight${r} { stroke: ${t["gitInv"+e]}; fill: ${t["gitInv"+e]}; }\n .label${r} { fill: ${t["git"+e]}; }\n .arrow${r} { stroke: ${t["git"+e]}; }\n `}).join("\n")}`,"normalTheme"),_t={parser:Q,db:D,renderer:Pt,styles:c(t=>{const r=d(),{theme:e}=r,o=Wt.has(e);return`\n .commit-id,\n .commit-msg,\n .branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n \n ${o?qt(t):zt(t)}\n\n .branch {\n stroke-width: ${t.strokeWidth};\n stroke: ${t.commitLineColor??t.lineColor};\n stroke-dasharray: ${o?"4 2":"2"};\n }\n .commit-label { font-size: ${t.commitLabelFontSize}; fill: ${o?t.nodeBorder:t.commitLabelColor}; ${o?`font-weight:${t.noteFontWeight};`:""}}\n .commit-label-bkg { font-size: ${t.commitLabelFontSize}; fill: ${o?"transparent":t.commitLabelBackground}; opacity: ${o?"":.5}; }\n .tag-label { font-size: ${t.tagLabelFontSize}; fill: ${t.tagLabelColor};}\n .tag-label-bkg { fill: ${o?t.mainBkg:t.tagLabelBackground}; stroke: ${o?t.nodeBorder:t.tagLabelBorder}; ${o?`filter:${t.dropShadow}`:""} }\n .tag-hole { fill: ${t.textColor}; }\n\n .commit-merge {\n stroke: ${o?t.mainBkg:t.primaryColor};\n fill: ${o?t.mainBkg:t.primaryColor};\n }\n .commit-reverse {\n stroke: ${o?t.mainBkg:t.primaryColor};\n fill: ${o?t.mainBkg:t.primaryColor};\n stroke-width: ${o?t.strokeWidth:3};\n }\n .commit-highlight-outer {\n }\n .commit-highlight-inner {\n stroke: ${o?t.mainBkg:t.primaryColor};\n fill: ${o?t.mainBkg:t.primaryColor};\n }\n\n .arrow {\n /* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */\n stroke-width: ${Ot.has(e)?t.strokeWidth:8};\n stroke-linecap: round;\n fill: none\n }\n .gitTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n }\n`},"getStyles")};export{_t as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t="object"==typeof global&&global&&global.Object===Object&&global,e="object"==typeof self&&self&&self.Object===Object&&self,r=t||e||Function("return this")(),n=r.Symbol,o=Object.prototype,i=o.hasOwnProperty,s=o.toString,u=n?n.toStringTag:void 0;var a=Object.prototype.toString;var c=n?n.toStringTag:void 0;function h(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":c&&c in Object(t)?function(t){var e=i.call(t,u),r=t[u];try{t[u]=void 0;var n=!0}catch(a){}var o=s.call(t);return n&&(e?t[u]=r:delete t[u]),o}(t):function(t){return a.call(t)}(t)}function f(t){return null!=t&&"object"==typeof t}function l(t){return"symbol"==typeof t||f(t)&&"[object Symbol]"==h(t)}function p(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}var d=Array.isArray,_=n?n.prototype:void 0,v=_?_.toString:void 0;function b(t){if("string"==typeof t)return t;if(d(t))return p(t,b)+"";if(l(t))return v?v.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function y(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function g(t){return t}function j(t){if(!y(t))return!1;var e=h(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var O,w=r["__core-js_shared__"],m=(O=/[^.]+$/.exec(w&&w.keys&&w.keys.IE_PROTO||""))?"Symbol(src)_1."+O:"";var C=Function.prototype.toString;function P(t){if(null!=t){try{return C.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var E=/^\[object .+?Constructor\]$/,A=Function.prototype,z=Object.prototype,L=A.toString,N=z.hasOwnProperty,S=RegExp("^"+L.call(N).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function D(t){return!(!y(t)||(e=t,m&&m in e))&&(j(t)?S:E).test(P(t));var e}function x(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return D(r)?r:void 0}var F=x(r,"WeakMap");var M=Date.now;function k(t){return function(){return t}}var $,T,B,I=function(){try{var t=x(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),U=I?function(t,e){return I(t,"toString",{configurable:!0,enumerable:!1,value:k(e),writable:!0})}:g,R=($=U,T=0,B=0,function(){var t=M(),e=16-(t-B);if(B=t,e>0){if(++T>=800)return arguments[0]}else T=0;return $.apply(void 0,arguments)});function V(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}function G(t,e,r,n){for(var o=t.length,i=r+-1;++i<o;)if(e(t[i],i,t))return i;return-1}function W(t){return t!=t}function q(t,e){return!!(null==t?0:t.length)&&function(t,e,r){return e==e?function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}(t,e,r):G(t,W,r)}(t,e,0)>-1}var H=/^(?:0|[1-9]\d*)$/;function J(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&H.test(t))&&t>-1&&t%1==0&&t<e}function K(t,e){return t===e||t!=t&&e!=e}var Q=Math.max;function X(t,e,r){return e=Q(void 0===e?t.length-1:e,0),function(){for(var n=arguments,o=-1,i=Q(n.length-e,0),s=Array(i);++o<i;)s[o]=n[e+o];o=-1;for(var u=Array(e+1);++o<e;)u[o]=n[o];return u[e]=r(s),function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}(t,this,u)}}function Y(t,e){return R(X(t,e,g),t+"")}function Z(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function tt(t){return null!=t&&Z(t.length)&&!j(t)}var et=Object.prototype;function rt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||et)}function nt(t){return f(t)&&"[object Arguments]"==h(t)}var ot=Object.prototype,it=ot.hasOwnProperty,st=ot.propertyIsEnumerable,ut=nt(function(){return arguments}())?nt:function(t){return f(t)&&it.call(t,"callee")&&!st.call(t,"callee")};var at="object"==typeof exports&&exports&&!exports.nodeType&&exports,ct=at&&"object"==typeof module&&module&&!module.nodeType&&module,ht=ct&&ct.exports===at?r.Buffer:void 0,ft=(ht?ht.isBuffer:void 0)||function(){return!1},lt={};function pt(t){return function(e){return t(e)}}lt["[object Float32Array]"]=lt["[object Float64Array]"]=lt["[object Int8Array]"]=lt["[object Int16Array]"]=lt["[object Int32Array]"]=lt["[object Uint8Array]"]=lt["[object Uint8ClampedArray]"]=lt["[object Uint16Array]"]=lt["[object Uint32Array]"]=!0,lt["[object Arguments]"]=lt["[object Array]"]=lt["[object ArrayBuffer]"]=lt["[object Boolean]"]=lt["[object DataView]"]=lt["[object Date]"]=lt["[object Error]"]=lt["[object Function]"]=lt["[object Map]"]=lt["[object Number]"]=lt["[object Object]"]=lt["[object RegExp]"]=lt["[object Set]"]=lt["[object String]"]=lt["[object WeakMap]"]=!1;var dt="object"==typeof exports&&exports&&!exports.nodeType&&exports,_t=dt&&"object"==typeof module&&module&&!module.nodeType&&module,vt=_t&&_t.exports===dt&&t.process,bt=function(){try{var t=_t&&_t.require&&_t.require("util").types;return t||vt&&vt.binding&&vt.binding("util")}catch(e){}}(),yt=bt&&bt.isTypedArray,gt=yt?pt(yt):function(t){return f(t)&&Z(t.length)&&!!lt[h(t)]},jt=Object.prototype.hasOwnProperty;function Ot(t,e){var r=d(t),n=!r&&ut(t),o=!r&&!n&&ft(t),i=!r&&!n&&!o&>(t),s=r||n||o||i,u=s?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],a=u.length;for(var c in t)!e&&!jt.call(t,c)||s&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||J(c,a))||u.push(c);return u}function wt(t,e){return function(r){return t(e(r))}}var mt=wt(Object.keys,Object),Ct=Object.prototype.hasOwnProperty;function Pt(t){if(!rt(t))return mt(t);var e=[];for(var r in Object(t))Ct.call(t,r)&&"constructor"!=r&&e.push(r);return e}function Et(t){return tt(t)?Ot(t):Pt(t)}var At=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zt=/^\w*$/;function Lt(t,e){if(d(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!l(t))||(zt.test(t)||!At.test(t)||null!=e&&t in Object(e))}var Nt=x(Object,"create");var St=Object.prototype.hasOwnProperty;var Dt=Object.prototype.hasOwnProperty;function xt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Ft(t,e){for(var r=t.length;r--;)if(K(t[r][0],e))return r;return-1}xt.prototype.clear=function(){this.__data__=Nt?Nt(null):{},this.size=0},xt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},xt.prototype.get=function(t){var e=this.__data__;if(Nt){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return St.call(e,t)?e[t]:void 0},xt.prototype.has=function(t){var e=this.__data__;return Nt?void 0!==e[t]:Dt.call(e,t)},xt.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Nt&&void 0===e?"__lodash_hash_undefined__":e,this};var Mt=Array.prototype.splice;function kt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}kt.prototype.clear=function(){this.__data__=[],this.size=0},kt.prototype.delete=function(t){var e=this.__data__,r=Ft(e,t);return!(r<0)&&(r==e.length-1?e.pop():Mt.call(e,r,1),--this.size,!0)},kt.prototype.get=function(t){var e=this.__data__,r=Ft(e,t);return r<0?void 0:e[r][1]},kt.prototype.has=function(t){return Ft(this.__data__,t)>-1},kt.prototype.set=function(t,e){var r=this.__data__,n=Ft(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};var $t=x(r,"Map");function Tt(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function Bt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Bt.prototype.clear=function(){this.size=0,this.__data__={hash:new xt,map:new($t||kt),string:new xt}},Bt.prototype.delete=function(t){var e=Tt(this,t).delete(t);return this.size-=e?1:0,e},Bt.prototype.get=function(t){return Tt(this,t).get(t)},Bt.prototype.has=function(t){return Tt(this,t).has(t)},Bt.prototype.set=function(t,e){var r=Tt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function It(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=t.apply(this,n);return r.cache=i.set(o,s)||i,s};return r.cache=new(It.Cache||Bt),r}It.Cache=Bt;var Ut=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Rt=/\\(\\)?/g,Vt=function(t){var e=It(t,function(t){return 500===r.size&&r.clear(),t}),r=e.cache;return e}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Ut,function(t,r,n,o){e.push(n?o.replace(Rt,"$1"):r||t)}),e});function Gt(t){return null==t?"":b(t)}function Wt(t,e){return d(t)?t:Lt(t,e)?[t]:Vt(Gt(t))}function qt(t){if("string"==typeof t||l(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Ht(t,e){for(var r=0,n=(e=Wt(e,t)).length;null!=t&&r<n;)t=t[qt(e[r++])];return r&&r==n?t:void 0}function Jt(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}var Kt=n?n.isConcatSpreadable:void 0;function Qt(t){return d(t)||ut(t)||!!(Kt&&t&&t[Kt])}function Xt(t,e,r,n,o){var i=-1,s=t.length;for(r||(r=Qt),o||(o=[]);++i<s;){var u=t[i];r(u)?Jt(o,u):n||(o[o.length]=u)}return o}function Yt(t,e,r,n){var o=-1,i=null==t?0:t.length;for(n&&i&&(r=t[++o]);++o<i;)r=e(r,t[o],o,t);return r}function Zt(t){var e=this.__data__=new kt(t);this.size=e.size}function te(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var s=t[r];e(s,r,t)&&(i[o++]=s)}return i}function ee(){return[]}Zt.prototype.clear=function(){this.__data__=new kt,this.size=0},Zt.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Zt.prototype.get=function(t){return this.__data__.get(t)},Zt.prototype.has=function(t){return this.__data__.has(t)},Zt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof kt){var n=r.__data__;if(!$t||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Bt(n)}return r.set(t,e),this.size=r.size,this};var re=Object.prototype.propertyIsEnumerable,ne=Object.getOwnPropertySymbols,oe=ne?function(t){return null==t?[]:(t=Object(t),te(ne(t),function(e){return re.call(t,e)}))}:ee;function ie(t,e,r){var n=e(t);return d(t)?n:Jt(n,r(t))}function se(t){return ie(t,Et,oe)}var ue=x(r,"DataView"),ae=x(r,"Promise"),ce=x(r,"Set"),he="[object Map]",fe="[object Promise]",le="[object Set]",pe="[object WeakMap]",de="[object DataView]",_e=P(ue),ve=P($t),be=P(ae),ye=P(ce),ge=P(F),je=h;(ue&&je(new ue(new ArrayBuffer(1)))!=de||$t&&je(new $t)!=he||ae&&je(ae.resolve())!=fe||ce&&je(new ce)!=le||F&&je(new F)!=pe)&&(je=function(t){var e=h(t),r="[object Object]"==e?t.constructor:void 0,n=r?P(r):"";if(n)switch(n){case _e:return de;case ve:return he;case be:return fe;case ye:return le;case ge:return pe}return e});var Oe=r.Uint8Array;function we(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new Bt;++e<r;)this.add(t[e])}function me(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}function Ce(t,e){return t.has(e)}we.prototype.add=we.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},we.prototype.has=function(t){return this.__data__.has(t)};function Pe(t,e,r,n,o,i){var s=1&r,u=t.length,a=e.length;if(u!=a&&!(s&&a>u))return!1;var c=i.get(t),h=i.get(e);if(c&&h)return c==e&&h==t;var f=-1,l=!0,p=2&r?new we:void 0;for(i.set(t,e),i.set(e,t);++f<u;){var d=t[f],_=e[f];if(n)var v=s?n(_,d,f,e,t,i):n(d,_,f,t,e,i);if(void 0!==v){if(v)continue;l=!1;break}if(p){if(!me(e,function(t,e){if(!Ce(p,e)&&(d===t||o(d,t,r,n,i)))return p.push(e)})){l=!1;break}}else if(d!==_&&!o(d,_,r,n,i)){l=!1;break}}return i.delete(t),i.delete(e),l}function Ee(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}function Ae(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}var ze=n?n.prototype:void 0,Le=ze?ze.valueOf:void 0;var Ne=Object.prototype.hasOwnProperty;var Se="[object Arguments]",De="[object Array]",xe="[object Object]",Fe=Object.prototype.hasOwnProperty;function Me(t,e,r,n,o,i){var s=d(t),u=d(e),a=s?De:je(t),c=u?De:je(e),h=(a=a==Se?xe:a)==xe,f=(c=c==Se?xe:c)==xe,l=a==c;if(l&&ft(t)){if(!ft(e))return!1;s=!0,h=!1}if(l&&!h)return i||(i=new Zt),s||gt(t)?Pe(t,e,r,n,o,i):function(t,e,r,n,o,i,s){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!i(new Oe(t),new Oe(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return K(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var u=Ee;case"[object Set]":var a=1&n;if(u||(u=Ae),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;n|=2,s.set(t,e);var h=Pe(u(t),u(e),n,o,i,s);return s.delete(t),h;case"[object Symbol]":if(Le)return Le.call(t)==Le.call(e)}return!1}(t,e,a,r,n,o,i);if(!(1&r)){var p=h&&Fe.call(t,"__wrapped__"),_=f&&Fe.call(e,"__wrapped__");if(p||_){var v=p?t.value():t,b=_?e.value():e;return i||(i=new Zt),o(v,b,r,n,i)}}return!!l&&(i||(i=new Zt),function(t,e,r,n,o,i){var s=1&r,u=se(t),a=u.length;if(a!=se(e).length&&!s)return!1;for(var c=a;c--;){var h=u[c];if(!(s?h in e:Ne.call(e,h)))return!1}var f=i.get(t),l=i.get(e);if(f&&l)return f==e&&l==t;var p=!0;i.set(t,e),i.set(e,t);for(var d=s;++c<a;){var _=t[h=u[c]],v=e[h];if(n)var b=s?n(v,_,h,e,t,i):n(_,v,h,t,e,i);if(!(void 0===b?_===v||o(_,v,r,n,i):b)){p=!1;break}d||(d="constructor"==h)}if(p&&!d){var y=t.constructor,g=e.constructor;y==g||!("constructor"in t)||!("constructor"in e)||"function"==typeof y&&y instanceof y&&"function"==typeof g&&g instanceof g||(p=!1)}return i.delete(t),i.delete(e),p}(t,e,r,n,o,i))}function ke(t,e,r,n,o){return t===e||(null==t||null==e||!f(t)&&!f(e)?t!=t&&e!=e:Me(t,e,r,n,ke,o))}function $e(t){return t==t&&!y(t)}function Te(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}function Be(t){var e=function(t){for(var e=Et(t),r=e.length;r--;){var n=e[r],o=t[n];e[r]=[n,o,$e(o)]}return e}(t);return 1==e.length&&e[0][2]?Te(e[0][0],e[0][1]):function(r){return r===t||function(t,e,r,n){var o=r.length,i=o;if(null==t)return!i;for(t=Object(t);o--;){var s=r[o];if(s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++o<i;){var u=(s=r[o])[0],a=t[u],c=s[1];if(s[2]){if(void 0===a&&!(u in t))return!1}else if(!ke(c,a,3,n,new Zt))return!1}return!0}(r,0,e)}}function Ie(t,e){return null!=t&&e in Object(t)}function Ue(t,e,r){for(var n=-1,o=(e=Wt(e,t)).length,i=!1;++n<o;){var s=qt(e[n]);if(!(i=null!=t&&r(t,s)))break;t=t[s]}return i||++n!=o?i:!!(o=null==t?0:t.length)&&Z(o)&&J(s,o)&&(d(t)||ut(t))}function Re(t,e){return null!=t&&Ue(t,e,Ie)}function Ve(t,e){return Lt(t)&&$e(e)?Te(qt(t),e):function(r){var n=function(t,e,r){var n=null==t?void 0:Ht(t,e);return void 0===n?r:n}(r,t);return void 0===n&&n===e?Re(r,t):ke(e,n,3)}}function Ge(t){return Lt(t)?(e=qt(t),function(t){return null==t?void 0:t[e]}):function(t){return function(e){return Ht(e,t)}}(t);var e}function We(t){return"function"==typeof t?t:null==t?g:"object"==typeof t?d(t)?Ve(t[0],t[1]):Be(t):Ge(t)}var qe=function(t,e,r){for(var n=-1,o=Object(t),i=r(t),s=i.length;s--;){var u=i[++n];if(!1===e(o[u],u,o))break}return t};function He(t,e){return t&&qe(t,e,Et)}var Je,Ke=(Je=He,function(t,e){if(null==t)return t;if(!tt(t))return Je(t,e);for(var r=t.length,n=-1,o=Object(t);++n<r&&!1!==e(o[n],n,o););return t});function Qe(t){return f(t)&&tt(t)}function Xe(t){return"function"==typeof t?t:g}function Ye(t,e){return(d(t)?V:Ke)(t,Xe(e))}function Ze(t,e){var r=[];return Ke(t,function(t,n,o){e(t,n,o)&&r.push(t)}),r}function tr(t,e){return(d(t)?te:Ze)(t,We(e))}function er(t){return null==t?[]:function(t,e){return p(e,function(e){return t[e]})}(t,Et(t))}var rr=Object.prototype.hasOwnProperty;function nr(t){if(null==t)return!0;if(tt(t)&&(d(t)||"string"==typeof t||"function"==typeof t.splice||ft(t)||gt(t)||ut(t)))return!t.length;var e=je(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(rt(t))return!Pt(t).length;for(var r in t)if(rr.call(t,r))return!1;return!0}function or(t){return void 0===t}function ir(t,e,r,n,o){return o(t,function(t,o,i){r=n?(n=!1,t):e(r,t,o,i)}),r}function sr(t,e,r){var n=d(t)?Yt:ir,o=arguments.length<3;return n(t,We(e),r,o,Ke)}var ur=ce&&1/Ae(new ce([,-0]))[1]==1/0?function(t){return new ce(t)}:function(){};var ar=Y(function(t){return function(t,e,r){var n=-1,o=q,i=t.length,s=!0,u=[],a=u;if(i>=200){var c=ur(t);if(c)return Ae(c);s=!1,o=Ce,a=new we}else a=u;t:for(;++n<i;){var h=t[n],f=h;if(h=0!==h?h:0,s&&f==f){for(var l=a.length;l--;)if(a[l]===f)continue t;u.push(h)}else o(a,f,r)||(a!==u&&a.push(f),u.push(h))}return u}(Xt(t,0,Qe,!0))}),cr="\0";class hr{constructor(t={}){this._isDirected=!Object.prototype.hasOwnProperty.call(t,"directed")||t.directed,this._isMultigraph=!!Object.prototype.hasOwnProperty.call(t,"multigraph")&&t.multigraph,this._isCompound=!!Object.prototype.hasOwnProperty.call(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=k(void 0),this._defaultEdgeLabelFn=k(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[cr]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return j(t)||(t=k(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return Et(this._nodes)}sources(){var t=this;return tr(this.nodes(),function(e){return nr(t._in[e])})}sinks(){var t=this;return tr(this.nodes(),function(e){return nr(t._out[e])})}setNodes(t,e){var r=arguments,n=this;return Ye(t,function(t){r.length>1?n.setNode(t,e):n.setNode(t)}),this}setNode(t,e){return Object.prototype.hasOwnProperty.call(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=cr,this._children[t]={},this._children[cr][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var e=t=>this.removeEdge(this._edgeObjs[t]);delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],Ye(this.children(t),t=>{this.setParent(t)}),delete this._children[t]),Ye(Et(this._in[t]),e),delete this._in[t],delete this._preds[t],Ye(Et(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(or(e))e=cr;else{for(var r=e+="";!or(r);r=this.parent(r))if(r===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var e=this._parent[t];if(e!==cr)return e}}children(t){if(or(t)&&(t=cr),this._isCompound){var e=this._children[t];if(e)return Et(e)}else{if(t===cr)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var e=this._preds[t];if(e)return Et(e)}successors(t){var e=this._sucs[t];if(e)return Et(e)}neighbors(t){var e=this.predecessors(t);if(e)return ar(e,this.successors(t))}isLeaf(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length}filterNodes(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var r=this;Ye(this._nodes,function(r,n){t(n)&&e.setNode(n,r)}),Ye(this._edgeObjs,function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,r.edge(t))});var n={};function o(t){var i=r.parent(t);return void 0===i||e.hasNode(i)?(n[t]=i,i):i in n?n[i]:o(i)}return this._isCompound&&Ye(e.nodes(),function(t){e.setParent(t,o(t))}),e}setDefaultEdgeLabel(t){return j(t)||(t=k(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return er(this._edgeObjs)}setPath(t,e){var r=this,n=arguments;return sr(t,function(t,o){return n.length>1?r.setEdge(t,o,e):r.setEdge(t,o),o}),this}setEdge(){var t,e,r,n,o=!1,i=arguments[0];"object"==typeof i&&null!==i&&"v"in i?(t=i.v,e=i.w,r=i.name,2===arguments.length&&(n=arguments[1],o=!0)):(t=i,e=arguments[1],r=arguments[3],arguments.length>2&&(n=arguments[2],o=!0)),t=""+t,e=""+e,or(r)||(r=""+r);var s=pr(this._isDirected,t,e,r);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,s))return o&&(this._edgeLabels[s]=n),this;if(!or(r)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[s]=o?n:this._defaultEdgeLabelFn(t,e,r);var u=function(t,e,r,n){var o=""+e,i=""+r;if(!t&&o>i){var s=o;o=i,i=s}var u={v:o,w:i};n&&(u.name=n);return u}(this._isDirected,t,e,r);return t=u.v,e=u.w,Object.freeze(u),this._edgeObjs[s]=u,fr(this._preds[e],t),fr(this._sucs[t],e),this._in[e][s]=u,this._out[t][s]=u,this._edgeCount++,this}edge(t,e,r){var n=1===arguments.length?dr(this._isDirected,arguments[0]):pr(this._isDirected,t,e,r);return this._edgeLabels[n]}hasEdge(t,e,r){var n=1===arguments.length?dr(this._isDirected,arguments[0]):pr(this._isDirected,t,e,r);return Object.prototype.hasOwnProperty.call(this._edgeLabels,n)}removeEdge(t,e,r){var n=1===arguments.length?dr(this._isDirected,arguments[0]):pr(this._isDirected,t,e,r),o=this._edgeObjs[n];return o&&(t=o.v,e=o.w,delete this._edgeLabels[n],delete this._edgeObjs[n],lr(this._preds[e],t),lr(this._sucs[t],e),delete this._in[e][n],delete this._out[t][n],this._edgeCount--),this}inEdges(t,e){var r=this._in[t];if(r){var n=er(r);return e?tr(n,function(t){return t.v===e}):n}}outEdges(t,e){var r=this._out[t];if(r){var n=er(r);return e?tr(n,function(t){return t.w===e}):n}}nodeEdges(t,e){var r=this.inEdges(t,e);if(r)return r.concat(this.outEdges(t,e))}}function fr(t,e){t[e]?t[e]++:t[e]=1}function lr(t,e){--t[e]||delete t[e]}function pr(t,e,r,n){var o=""+e,i=""+r;if(!t&&o>i){var s=o;o=i,i=s}return o+""+i+""+(or(n)?"\0":n)}function dr(t,e){return pr(t,e.v,e.w,e.name)}hr.prototype._nodeCount=0,hr.prototype._edgeCount=0;export{tr as $,l as A,J as B,Y as C,Xt as D,R as E,X as F,hr as G,h as H,gt as I,Qe as J,ut as K,j as L,qe as M,G as N,Xe as O,He as P,Ue as Q,g as R,n as S,Wt as T,Oe as U,qt as V,Ht as W,Re as X,Gt as Y,Ye as Z,k as _,y as a,er as a0,sr as a1,rt as b,tt as c,I as d,K as e,Ot as f,oe as g,Jt as h,or as i,ie as j,Et as k,f as l,je as m,pt as n,wt as o,bt as p,ft as q,r,ee as s,Zt as t,V as u,d as v,se as w,Ke as x,We as y,p as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e}from"./editor.main-
|
|
1
|
+
import{l as e}from"./editor.main-BvdG8I8J.js";import"./index-uJhfY-Ds.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}]},a={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{n as conf,a as language};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e}from"./editor.main-
|
|
1
|
+
import{l as e}from"./editor.main-BvdG8I8J.js";import"./index-uJhfY-Ds.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],i={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*\x3c!--\\s*#region\\b.*--\x3e"),end:new RegExp("^\\s*\x3c!--\\s*#endregion\\b.*--\x3e")}}},n={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/<!DOCTYPE/,"metatag","@doctype"],[/<!--/,"comment","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/</,"delimiter"],[/[^<]+/]],doctype:[[/[^>]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{i as conf,n as language};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e,l as t}from"./editor.main-
|
|
1
|
+
import{c as e,l as t}from"./editor.main-BvdG8I8J.js";import{H as r,D as i,h as s,F as n,b as o,S as a,c as g,f as l,g as d,C as h}from"./lspLanguageFeatures-8aPLOpk2.js";import{a as u,e as c,d as m,R as p,i as w,j as _,t as v,k as f}from"./lspLanguageFeatures-8aPLOpk2.js";import"./index-uJhfY-Ds.js";class k{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=e({moduleId:"vs/language/html/htmlWorker",createWorker:()=>new Worker(new URL(""+new URL("html.worker-B8BaxFhn.js",import.meta.url).href,import.meta.url),{type:"module"}),createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then(e=>{t=e}).then(t=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(e=>t)}}class P extends h{constructor(e){super(e,[".",":","<",'"',"=","/"])}}function I(e){const h=new k(e),u=(...e)=>h.getLanguageServiceWorker(...e);let c=e.languageId;t.registerCompletionItemProvider(c,new P(u)),t.registerHoverProvider(c,new r(u)),t.registerDocumentHighlightProvider(c,new i(u)),t.registerLinkProvider(c,new s(u)),t.registerFoldingRangeProvider(c,new n(u)),t.registerDocumentSymbolProvider(c,new o(u)),t.registerSelectionRangeProvider(c,new a(u)),t.registerRenameProvider(c,new g(u)),"html"===c&&(t.registerDocumentFormattingEditProvider(c,new l(u)),t.registerDocumentRangeFormattingEditProvider(c,new d(u)))}function R(e){const h=[],u=[],c=new k(e);h.push(c);const m=(...e)=>c.getLanguageServiceWorker(...e);return function(){const{languageId:h,modeConfiguration:c}=e;C(u),c.completionItems&&u.push(t.registerCompletionItemProvider(h,new P(m))),c.hovers&&u.push(t.registerHoverProvider(h,new r(m))),c.documentHighlights&&u.push(t.registerDocumentHighlightProvider(h,new i(m))),c.links&&u.push(t.registerLinkProvider(h,new s(m))),c.documentSymbols&&u.push(t.registerDocumentSymbolProvider(h,new o(m))),c.rename&&u.push(t.registerRenameProvider(h,new g(m))),c.foldingRanges&&u.push(t.registerFoldingRangeProvider(h,new n(m))),c.selectionRanges&&u.push(t.registerSelectionRangeProvider(h,new a(m))),c.documentFormattingEdits&&u.push(t.registerDocumentFormattingEditProvider(h,new l(m))),c.documentRangeFormattingEdits&&u.push(t.registerDocumentRangeFormattingEditProvider(h,new d(m)))}(),h.push(D(u)),D(h)}function D(e){return{dispose:()=>C(e)}}function C(e){for(;e.length;)e.pop().dispose()}export{h as CompletionAdapter,u as DefinitionAdapter,c as DiagnosticsAdapter,m as DocumentColorAdapter,l as DocumentFormattingEditProvider,i as DocumentHighlightAdapter,s as DocumentLinkAdapter,d as DocumentRangeFormattingEditProvider,o as DocumentSymbolAdapter,n as FoldingRangeAdapter,r as HoverAdapter,p as ReferenceAdapter,g as RenameAdapter,a as SelectionRangeAdapter,k as WorkerManager,w as fromPosition,_ as fromRange,R as setupMode,I as setupMode1,v as toRange,f as toTextEdit};
|