lookatstudy-mobile 0.20.0 → 0.22.0
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 +1 -1
- package/server.cjs +410 -309
- package/web/assets/Tableau10-Cz3F1amA.js +1 -0
- package/web/assets/_commonjs-dynamic-modules-TDtrdbi3.js +1 -0
- package/web/assets/abnfDiagram-N423BO3Z-BqeMquUh.js +1 -0
- package/web/assets/abnfDiagram-VCTEODGH-ODA7YWAP-BuesB7xR.js +1 -0
- package/web/assets/api-web-DeJFZI02.js +1 -0
- package/web/assets/arc-Bb-hQPAI.js +1 -0
- package/web/assets/architectureDiagram-5GKGNRK7-C4PU3XN7-0sZWP2Gt.js +36 -0
- package/web/assets/{architectureDiagram-T3A2C74G-djSyr1mz.js → architectureDiagram-T3A2C74G-BUX7eVzV.js} +3 -3
- package/web/assets/band-dPffDWoQ.js +1 -0
- package/web/assets/blockDiagram-NRAW4CY4-UMJ6PMQQ-DMEi53vA.js +129 -0
- package/web/assets/{blockDiagram-VBNYF7ZC-CMyKXBrP.js → blockDiagram-VBNYF7ZC-CquWGiud.js} +4 -4
- package/web/assets/c-BIGW1oBm.js +1 -0
- package/web/assets/{c4Diagram-5PPSVZJV-BIkHBEIX.js → c4Diagram-5PPSVZJV-DwhWxb7s.js} +2 -2
- package/web/assets/c4Diagram-UCG6FXSJ-75X3U2P3-Cw6KuLDN.js +38 -0
- package/web/assets/channel-BTMwuCXz.js +1 -0
- package/web/assets/chunk-2GRJ4B5K-CzGtEVrd.js +1 -0
- package/web/assets/{chunk-2Q5K7J3B-5KwfG7mC.js → chunk-2Q5K7J3B-svQDV2bG.js} +1 -1
- package/web/assets/{chunk-5RXB4S5H-BfjkbTOR.js → chunk-5RXB4S5H-CkBumCja.js} +3 -3
- package/web/assets/{chunk-5VM5RSS4-CknJ0UrM.js → chunk-5VM5RSS4-DmqVK3OP.js} +1 -1
- package/web/assets/{chunk-6Q2QTUOP-PEKlwd8q.js → chunk-6Q2QTUOP-j-yShG78.js} +3 -3
- package/web/assets/chunk-7XDTSPCN-BF54U_Qe.js +338 -0
- package/web/assets/chunk-CTNIYPP6-BLGT5nzg.js +1 -0
- package/web/assets/chunk-CXNFBKHE-CHtCVUVZ.js +15 -0
- package/web/assets/{chunk-GF5L2VYU-FwREiZq-.js → chunk-GF5L2VYU-HY4EUgWS.js} +4 -4
- package/web/assets/chunk-ISA7TJRJ-AUc9mrxX.js +1 -0
- package/web/assets/{chunk-JWPE2WC7-Df8WvQEt.js → chunk-JWPE2WC7-DmzvUH3q.js} +1 -1
- package/web/assets/chunk-KBJHAD2P-C3HnMhHX.js +1 -0
- package/web/assets/chunk-LV3HUYFY-D3kDosNp.js +1 -0
- package/web/assets/chunk-M3IUQBOH-CMBqYbjd.js +231 -0
- package/web/assets/chunk-NDIOYS4C-D4XcxlS5.js +1 -0
- package/web/assets/chunk-RE4WF27V-ANjTafEs.js +1 -0
- package/web/assets/{chunk-RYQCIY6F-w-ex678p.js → chunk-RYQCIY6F-CV9wg8xs.js} +1 -1
- package/web/assets/chunk-VII2H2IX-DK2MWM1y.js +1 -0
- package/web/assets/chunk-X5GNSKZ3-YRz76YFi.js +206 -0
- package/web/assets/chunk-XCWWM2C3-CSRjUbE8.js +88 -0
- package/web/assets/chunk-XXDRQBXY-j9X99vQo.js +1 -0
- package/web/assets/classDiagram-DTDB5LWJ-LWRDKZ5K-D00H1X9p.js +1 -0
- package/web/assets/classDiagram-JCYQIIEL-ClQHMNoR.js +1 -0
- package/web/assets/classDiagram-v2-JRS7N3AN-2BZHGRP2-D00H1X9p.js +1 -0
- package/web/assets/classDiagram-v2-OCEON4UE-ClQHMNoR.js +1 -0
- package/web/assets/colors-Cc3OSVma.js +1 -0
- package/web/assets/core-Drxo65nc.js +12 -0
- package/web/assets/{cose-bilkent-JH36ORCC-CuRVnite.js → cose-bilkent-JH36ORCC-CN6Mp4ds.js} +1 -1
- package/web/assets/cose-bilkent-JH36ORCC-OB24KH3T-Bvxs1RhI.js +1 -0
- package/web/assets/cpp-DddhVWhK.js +1 -0
- package/web/assets/csharp-DSvCPggb.js +1 -0
- package/web/assets/css-CLj8gQPS.js +1 -0
- package/web/assets/cynefin-OW5HDTMX-GVF3BKWE-BVXFZGhi.js +178 -0
- package/web/assets/{cynefin-VYW2F7L2-deqxDK2d.js → cynefin-VYW2F7L2-CBHvDLlv.js} +1 -1
- package/web/assets/cynefinDiagram-5FMLGOSQ-H3WIRU3N-CM4Mj-Vd.js +62 -0
- package/web/assets/cynefinDiagram-MW4NZA55-aMzbAFWs.js +62 -0
- package/web/assets/dagre-3AP2YEHR-DCERTXHT-BMVGWTPf.js +4 -0
- package/web/assets/{dagre-VZM6K2ZE-CGNHDakS.js → dagre-VZM6K2ZE-DhQcrBKB.js} +2 -2
- package/web/assets/{defaultLocale-DX6XiGOO.js → defaultLocale-5voVPcsN.js} +1 -1
- package/web/assets/{diagram-7IWD3JNH-D_gUTAQc.js → diagram-7IWD3JNH-neTaugq1.js} +4 -4
- package/web/assets/{diagram-B4RE2ZJO-YGyPH2BM.js → diagram-B4RE2ZJO-D9KmoYBV.js} +3 -3
- package/web/assets/diagram-LBJQPF4R-9J-F2MVE.js +24 -0
- package/web/assets/diagram-Q27KOJAE-Dz9KITJh.js +24 -0
- package/web/assets/diagram-S7CK7UJ4-MULGZGEL-r3BljA8e.js +30 -0
- package/web/assets/diagram-UB23O5K3-BA5gPgQ7.js +41 -0
- package/web/assets/diagram-UQ7AKVKN-YQBY353J-IIvT6Y42.js +41 -0
- package/web/assets/diagram-VSXAHHWV-WLNH2ELY-BMCz6ope.js +3 -0
- package/web/assets/diagram-VX7I27RA-XW6YQV5G-Z3lYjMVR.js +24 -0
- package/web/assets/diagram-Z3DM3KII-HG7RF65D-CsLqhzUJ.js +24 -0
- package/web/assets/diff-D97Zzqfu.js +1 -0
- package/web/assets/dockerfile-BcOcwvcX.js +1 -0
- package/web/assets/ebnfDiagram-BXEA7PRR-BoUlG0c_.js +1 -0
- package/web/assets/ebnfDiagram-PWID7BFC-OKY4VHYD-CgMcEf9P.js +1 -0
- package/web/assets/elk.bundled-DjGexDyy.js +24 -0
- package/web/assets/engine-javascript-DBd1bXLz.js +141 -0
- package/web/assets/{erDiagram-JOGREHBK-BuY7vR4r.js → erDiagram-JOGREHBK-DV_Tzdk0.js} +4 -4
- package/web/assets/erDiagram-SSCWMZ5O-PIPKOIK7-Ct9t5yN5.js +99 -0
- package/web/assets/flowDiagram-A5DVABFB-2Z4AVO5R-C4iDReFc.js +168 -0
- package/web/assets/{flowDiagram-UKHOOZJN-TxEOjs8K.js → flowDiagram-UKHOOZJN-DvQGnBrF.js} +10 -10
- package/web/assets/ganttDiagram-EL5Y4UJY-JZNG7GOG-BPWBTDqB.js +292 -0
- package/web/assets/ganttDiagram-PKOTCBZU-7gjvaw6I.js +292 -0
- package/web/assets/{gitGraphDiagram-DS77QQ5N-rZzK4UXV.js → gitGraphDiagram-DS77QQ5N-B54T3l5T.js} +7 -7
- package/web/assets/gitGraphDiagram-WWUBYQGX-DMWMLL3G-CmG0_dMg.js +106 -0
- package/web/assets/github-dark-DHJKELXO.js +1 -0
- package/web/assets/github-light-DAi9KRSo.js +1 -0
- package/web/assets/go-C27-OAKa.js +1 -0
- package/web/assets/graphql-ChdNCCLP.js +1 -0
- package/web/assets/html-pp8916En.js +1 -0
- package/web/assets/{index-DFfbtrtQ.js → index-B6q9ygFx.js} +9 -9
- package/web/assets/index-CU6ublfJ.js +1 -0
- package/web/assets/index-CvYzv8kf.js +1 -0
- package/web/assets/index-Cz8nGS3-.css +1 -0
- package/web/assets/index-H1bePBGl.js +3 -0
- package/web/assets/index-yzG6be5R.js +416 -0
- package/web/assets/infoDiagram-6WML65LV-BJSGxY2D.js +2 -0
- package/web/assets/infoDiagram-RXCK75RN-HANS5KVC-Cz3Y1Unl.js +2 -0
- package/web/assets/ini-BEwlwnbL.js +1 -0
- package/web/assets/ishikawaDiagram-5VMMS53U-7GCIT7WU-BT6MsYfb.js +70 -0
- package/web/assets/{ishikawaDiagram-WSZJBQD7-B4Ja0YPZ.js → ishikawaDiagram-WSZJBQD7-BsYCRLYP.js} +6 -6
- package/web/assets/java-CylS5w8V.js +1 -0
- package/web/assets/javascript-wDzz0qaB.js +1 -0
- package/web/assets/journeyDiagram-EYS64GPL-OAPELBT7-Bx1wxARt.js +139 -0
- package/web/assets/{journeyDiagram-NVQOT4AX-BmhpGG29.js → journeyDiagram-NVQOT4AX-DkJv2QF6.js} +2 -2
- package/web/assets/json-Cp-IABpG.js +1 -0
- package/web/assets/jsx-g9-lgVsj.js +1 -0
- package/web/assets/{kanban-definition-27J2QSJJ-CiuTLc9W.js → kanban-definition-27J2QSJJ-BCWiZznF.js} +8 -8
- package/web/assets/kanban-definition-3QL26DDD-I7RKWQQY-uHjeKCG_.js +89 -0
- package/web/assets/katex-N6JRN4PM-D4hrRJKq.js +257 -0
- package/web/assets/kotlin-BdnUsdx6.js +1 -0
- package/web/assets/latex-B2nUCzCX.js +1 -0
- package/web/assets/linear-BHfMepXe.js +1 -0
- package/web/assets/lua-BaeVxFsk.js +1 -0
- package/web/assets/main-B239_4z1.js +796 -0
- package/web/assets/makefile-CHLpvVh8.js +1 -0
- package/web/assets/markdown-Cvjx9yec.js +1 -0
- package/web/assets/mermaid-layout-elk.core-C4McJve2.js +2 -0
- package/web/assets/mermaid.core-CmjrekXI.js +314 -0
- package/web/assets/min-tv6RD-6E.js +1 -0
- package/web/assets/{mindmap-definition-FAOFIHXS-Bt-VPht2.js → mindmap-definition-FAOFIHXS-PIVNjK20.js} +4 -4
- package/web/assets/mindmap-definition-FBJOCRG2-KIYZG64Y-C8ko7Fkc.js +96 -0
- package/web/assets/pegDiagram-VL7TDLO6-D0oejFBc.js +1 -0
- package/web/assets/pegDiagram-XKGWAZYB-OIP57N6J-Cqs1jeYc.js +1 -0
- package/web/assets/{pet-a4xGZJ4o.js → pet-CZ36ImJS.js} +1 -1
- package/web/assets/php-Csjmro_R.js +1 -0
- package/web/assets/pie-xhYaZtwS.js +1 -0
- package/web/assets/pieDiagram-7S7Q4E2Y-CdvhM-aN.js +39 -0
- package/web/assets/pieDiagram-E7YTZNPT-2UOTW327-BMlCBlPI.js +39 -0
- package/web/assets/python-B6aJPvgy.js +1 -0
- package/web/assets/quadrantDiagram-AXDQQJYC-SN3ASJJK-CEEgxhrf.js +7 -0
- package/web/assets/{quadrantDiagram-CIZ2JOQS-B-1McWhJ.js → quadrantDiagram-CIZ2JOQS-BrKm5erH.js} +2 -2
- package/web/assets/r-Cf5RLm7j.js +1 -0
- package/web/assets/railroadDiagram-AXF67PYL-CJudf8AD.js +1 -0
- package/web/assets/railroadDiagram-O6MQD6OU-34742W6X-C8RacTGn.js +1 -0
- package/web/assets/render-O7CIS3YK-BtRzL6gS.js +354 -0
- package/web/assets/requirementDiagram-EFPCY7ZU-NGAFFSMB-CTXLwcL9.js +84 -0
- package/web/assets/{requirementDiagram-LRYGKXZP-BVqLmmFw.js → requirementDiagram-LRYGKXZP-mS__tKrf.js} +4 -4
- package/web/assets/ruby-B6QtyW_S.js +1 -0
- package/web/assets/rust-B1yitclQ.js +1 -0
- package/web/assets/sankeyDiagram-P5KCCOFB-3D3M4XPB-DyuDtBvQ.js +40 -0
- package/web/assets/sankeyDiagram-W5VNT64P-COKGPXfA.js +40 -0
- package/web/assets/scss-D5BDwBP9.js +1 -0
- package/web/assets/{sequenceDiagram-SI44F4Z6-7pBYtwXq.js → sequenceDiagram-SI44F4Z6-CNMY38eS.js} +3 -3
- package/web/assets/sequenceDiagram-WJ2MYXX4-Q2IOPB4R-_u4WjXk1.js +162 -0
- package/web/assets/shellscript-Yzrsuije.js +1 -0
- package/web/assets/sizeCapture-X5ZJPWSS-DWdLSp6i.js +1 -0
- package/web/assets/sizeCapture-X5ZJPWSS-PSGVOMYM-Cs-f36Xi.js +1 -0
- package/web/assets/sql-CRqJ_cUM.js +1 -0
- package/web/assets/stateDiagram-HBIQ2CUA-4M2S6MAN-D3Vb1Yoi.js +1 -0
- package/web/assets/stateDiagram-OKZ733FA-DWpXAgAW.js +1 -0
- package/web/assets/stateDiagram-v2-4QOOHH4V-LBBLA2WV-C6PXffxU.js +1 -0
- package/web/assets/stateDiagram-v2-UEYNNEHI-D3rCYZ7F.js +1 -0
- package/web/assets/step-SI6FXFD6.js +1 -0
- package/web/assets/swift-C2oV4EkX.js +1 -0
- package/web/assets/swimlanes-SLNWSIFB--qlM3PH1.js +2 -0
- package/web/assets/swimlanes-XN3QIQJK-N6N2CCQ6-Dq7F7g7w.js +1 -0
- package/web/assets/swimlanesDiagram-ULZ7WXOC-C2JzshU-.js +8 -0
- package/web/assets/swimlanesDiagram-VK2B7HYN-E6N4H5SY-C1mY3FR0.js +8 -0
- package/web/assets/time-CLfYygnx.js +1 -0
- package/web/assets/timeline-definition-24CTP7MA-KN7RSRVM-BRP9kk4o.js +120 -0
- package/web/assets/{timeline-definition-Z64GVDOM-CPyFZDbL.js → timeline-definition-Z64GVDOM-CGIURnLx.js} +4 -4
- package/web/assets/toml-vGWfd6FD.js +1 -0
- package/web/assets/transform-CzGDKG_M.js +1 -0
- package/web/assets/tsx-COt5Ahok.js +1 -0
- package/web/assets/typescript-BPQ3VLAy.js +1 -0
- package/web/assets/vennDiagram-4TSXK5OY-AKJ7LXAN-Row28BrM.js +34 -0
- package/web/assets/{vennDiagram-T6HMQDX7-CrYCZIBM.js → vennDiagram-T6HMQDX7-CCAqbOji.js} +5 -5
- package/web/assets/vue-CHlpWS_5.js +1 -0
- package/web/assets/{wardleyDiagram-T6FBY63Y-C-bOW3CV.js → wardleyDiagram-T6FBY63Y-BsHQ7eqA.js} +2 -2
- package/web/assets/wardleyDiagram-VM6X3IG4-3B6A3BN5-DBcNZZDs.js +78 -0
- package/web/assets/xml-sdJ4AIDG.js +1 -0
- package/web/assets/xychartDiagram-ELKLHX3M-Bdjq4REQ.js +7 -0
- package/web/assets/xychartDiagram-S5SC5T6Z-OBDNV6WG-ClGm8SGz.js +7 -0
- package/web/assets/yaml-Buea-lGh.js +1 -0
- package/web/index.html +3 -3
- package/web/pet.html +3 -3
- package/web/assets/abnfDiagram-N423BO3Z-BgfNjjBj.js +0 -1
- package/web/assets/api-web-DI50TDfG.js +0 -1
- package/web/assets/arc-RE7zZVS-.js +0 -1
- package/web/assets/channel-BhfjE8vu.js +0 -1
- package/web/assets/chunk-2GRJ4B5K-Cam0QBnt.js +0 -1
- package/web/assets/chunk-KBJHAD2P-BsrsrevO.js +0 -1
- package/web/assets/chunk-XXDRQBXY-BtPTE4dn.js +0 -1
- package/web/assets/classDiagram-JCYQIIEL-mL7PrSyJ.js +0 -1
- package/web/assets/classDiagram-v2-OCEON4UE-mL7PrSyJ.js +0 -1
- package/web/assets/cynefinDiagram-MW4NZA55-BVpP0nLh.js +0 -62
- package/web/assets/diagram-LBJQPF4R-B32aZsIz.js +0 -24
- package/web/assets/diagram-Q27KOJAE-DwwhihNN.js +0 -24
- package/web/assets/diagram-UB23O5K3-BdxB0b3R.js +0 -41
- package/web/assets/ebnfDiagram-BXEA7PRR-PAN05I_q.js +0 -1
- package/web/assets/ganttDiagram-PKOTCBZU-BqnBC4Aw.js +0 -292
- package/web/assets/index-D8iAKGNi.css +0 -1
- package/web/assets/infoDiagram-6WML65LV-B4sR-B3M.js +0 -2
- package/web/assets/linear-l0VVDmXM.js +0 -1
- package/web/assets/main-5hScumEl.js +0 -792
- package/web/assets/mermaid.core-DZ6Z8vWa.js +0 -314
- package/web/assets/pegDiagram-VL7TDLO6-CANPvqfq.js +0 -1
- package/web/assets/pieDiagram-7S7Q4E2Y-HpK8uEiY.js +0 -39
- package/web/assets/railroadDiagram-AXF67PYL-DA507-no.js +0 -1
- package/web/assets/sankeyDiagram-W5VNT64P-WV_Swfln.js +0 -40
- package/web/assets/sizeCapture-X5ZJPWSS-Ba9eWTxX.js +0 -1
- package/web/assets/stateDiagram-OKZ733FA-lonr0yA-.js +0 -1
- package/web/assets/stateDiagram-v2-UEYNNEHI-Dt1VC3TV.js +0 -1
- package/web/assets/swimlanes-SLNWSIFB-BSQT7r6F.js +0 -2
- package/web/assets/swimlanesDiagram-ULZ7WXOC-Dhdnb080.js +0 -8
- package/web/assets/xychartDiagram-ELKLHX3M-BB-TjDfD.js +0 -7
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import{n as $t,o as jt,s as Rt,g as Ft,b as Vt,a as Wt,_ as g,c as pt,aw as Gt,aq as Ht,p as Ut,i as qt}from"./render-O7CIS3YK-BtRzL6gS.js";import{_ as a}from"./mermaid-layout-elk.core-C4McJve2.js";import{s as K}from"./transform-CzGDKG_M.js";import{o as Yt}from"./ordinal-Cboi1Yqb.js";import{d as Xt}from"./Tableau10-Cz3F1amA.js";import"./main-B239_4z1.js";import"./index-B6q9ygFx.js";import"./step-SI6FXFD6.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./init-Gi6I4Gst.js";import"./colors-Cc3OSVma.js";function ot(t,i){let s;if(i===void 0)for(const c of t)c!=null&&(s<c||s===void 0&&c>=c)&&(s=c);else{let c=-1;for(let h of t)(h=i(h,++c,t))!=null&&(s<h||s===void 0&&h>=h)&&(s=h)}return s}a(ot,"max");function gt(t,i){let s;if(i===void 0)for(const c of t)c!=null&&(s>c||s===void 0&&c>=c)&&(s=c);else{let c=-1;for(let h of t)(h=i(h,++c,t))!=null&&(s>h||s===void 0&&h>=h)&&(s=h)}return s}a(gt,"min");function Z(t,i){let s=0;if(i===void 0)for(let c of t)(c=+c)&&(s+=c);else{let c=-1;for(let h of t)(h=+i(h,++c,t))&&(s+=h)}return s}a(Z,"sum");function _t(t){return t.target.depth}a(_t,"targetDepth");function vt(t){return t.depth}a(vt,"left");function bt(t,i){return i-1-t.height}a(bt,"right");function mt(t,i){return t.sourceLinks.length?t.depth:i-1}a(mt,"justify");function St(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?gt(t.sourceLinks,_t)-1:0}a(St,"center");function X(t){return function(){return t}}a(X,"constant");function at(t,i){return Q(t.source,i.source)||t.index-i.index}a(at,"ascendingSourceBreadth");function lt(t,i){return Q(t.target,i.target)||t.index-i.index}a(lt,"ascendingTargetBreadth");function Q(t,i){return t.y0-i.y0}a(Q,"ascendingBreadth");function J(t){return t.value}a(J,"value");function Lt(t){return t.index}a(Lt,"defaultId");function wt(t){return t.nodes}a(wt,"defaultNodes");function Tt(t){return t.links}a(Tt,"defaultLinks");function ct(t,i){const s=t.get(i);if(!s)throw new Error("missing: "+i);return s}a(ct,"find");function ut({nodes:t}){for(const i of t){let s=i.y0,c=s;for(const h of i.sourceLinks)h.y0=s+h.width/2,s+=h.width;for(const h of i.targetLinks)h.y1=c+h.width/2,c+=h.width}}a(ut,"computeLinkBreadths");function Et(){let t=0,i=0,s=1,c=1,h=24,d=8,p,x=Lt,o=mt,l,f,_=wt,b=Tt,m=6;function v(){const n={nodes:_.apply(null,arguments),links:b.apply(null,arguments)};return N(n),A(n),M(n),O(n),L(n),ut(n),n}a(v,"sankey"),v.update=function(n){return ut(n),n},v.nodeId=function(n){return arguments.length?(x=typeof n=="function"?n:X(n),v):x},v.nodeAlign=function(n){return arguments.length?(o=typeof n=="function"?n:X(n),v):o},v.nodeSort=function(n){return arguments.length?(l=n,v):l},v.nodeWidth=function(n){return arguments.length?(h=+n,v):h},v.nodePadding=function(n){return arguments.length?(d=p=+n,v):d},v.nodes=function(n){return arguments.length?(_=typeof n=="function"?n:X(n),v):_},v.links=function(n){return arguments.length?(b=typeof n=="function"?n:X(n),v):b},v.linkSort=function(n){return arguments.length?(f=n,v):f},v.size=function(n){return arguments.length?(t=i=0,s=+n[0],c=+n[1],v):[s-t,c-i]},v.extent=function(n){return arguments.length?(t=+n[0][0],s=+n[1][0],i=+n[0][1],c=+n[1][1],v):[[t,i],[s,c]]},v.iterations=function(n){return arguments.length?(m=+n,v):m};function N({nodes:n,links:y}){for(const[e,r]of n.entries())r.index=e,r.sourceLinks=[],r.targetLinks=[];const u=new Map(n.map((e,r)=>[x(e,r,n),e]));for(const[e,r]of y.entries()){r.index=e;let{source:k,target:S}=r;typeof k!="object"&&(k=r.source=ct(u,k)),typeof S!="object"&&(S=r.target=ct(u,S)),k.sourceLinks.push(r),S.targetLinks.push(r)}if(f!=null)for(const{sourceLinks:e,targetLinks:r}of n)e.sort(f),r.sort(f)}a(N,"computeNodeLinks");function A({nodes:n}){for(const y of n)y.value=y.fixedValue===void 0?Math.max(Z(y.sourceLinks,J),Z(y.targetLinks,J)):y.fixedValue}a(A,"computeNodeValues");function M({nodes:n}){const y=n.length;let u=new Set(n),e=new Set,r=0;for(;u.size;){for(const k of u){k.depth=r;for(const{target:S}of k.sourceLinks)e.add(S)}if(++r>y)throw new Error("circular link");u=e,e=new Set}}a(M,"computeNodeDepths");function O({nodes:n}){const y=n.length;let u=new Set(n),e=new Set,r=0;for(;u.size;){for(const k of u){k.height=r;for(const{source:S}of k.targetLinks)e.add(S)}if(++r>y)throw new Error("circular link");u=e,e=new Set}}a(O,"computeNodeHeights");function C({nodes:n}){const y=ot(n,r=>r.depth)+1,u=(s-t-h)/(y-1),e=new Array(y);for(const r of n){const k=Math.max(0,Math.min(y-1,Math.floor(o.call(null,r,y))));r.layer=k,r.x0=t+k*u,r.x1=r.x0+h,e[k]?e[k].push(r):e[k]=[r]}if(l)for(const r of e)r.sort(l);return e}a(C,"computeNodeLayers");function D(n){const y=gt(n,u=>(c-i-(u.length-1)*p)/Z(u,J));for(const u of n){let e=i;for(const r of u){r.y0=e,r.y1=e+r.value*y,e=r.y1+p;for(const k of r.sourceLinks)k.width=k.value*y}e=(c-e+p)/(u.length+1);for(let r=0;r<u.length;++r){const k=u[r];k.y0+=e*(r+1),k.y1+=e*(r+1)}w(u)}}a(D,"initializeNodeBreadths");function L(n){const y=C(n);p=Math.min(d,(c-i)/(ot(y,u=>u.length)-1)),D(y);for(let u=0;u<m;++u){const e=Math.pow(.99,u),r=Math.max(1-e,(u+1)/m);R(y,e,r),P(y,e,r)}}a(L,"computeNodeBreadths");function P(n,y,u){for(let e=1,r=n.length;e<r;++e){const k=n[e];for(const S of k){let E=0,V=0;for(const{source:q,value:st}of S.targetLinks){let Y=st*(S.layer-q.layer);E+=z(q,S)*Y,V+=Y}if(!(V>0))continue;let U=(E/V-S.y0)*y;S.y0+=U,S.y1+=U,j(S)}l===void 0&&k.sort(Q),$(k,u)}}a(P,"relaxLeftToRight");function R(n,y,u){for(let e=n.length,r=e-2;r>=0;--r){const k=n[r];for(const S of k){let E=0,V=0;for(const{target:q,value:st}of S.sourceLinks){let Y=st*(q.layer-S.layer);E+=T(S,q)*Y,V+=Y}if(!(V>0))continue;let U=(E/V-S.y0)*y;S.y0+=U,S.y1+=U,j(S)}l===void 0&&k.sort(Q),$(k,u)}}a(R,"relaxRightToLeft");function $(n,y){const u=n.length>>1,e=n[u];I(n,e.y0-p,u-1,y),F(n,e.y1+p,u+1,y),I(n,c,n.length-1,y),F(n,i,0,y)}a($,"resolveCollisions");function F(n,y,u,e){for(;u<n.length;++u){const r=n[u],k=(y-r.y0)*e;k>1e-6&&(r.y0+=k,r.y1+=k),y=r.y1+p}}a(F,"resolveCollisionsTopToBottom");function I(n,y,u,e){for(;u>=0;--u){const r=n[u],k=(r.y1-y)*e;k>1e-6&&(r.y0-=k,r.y1-=k),y=r.y0-p}}a(I,"resolveCollisionsBottomToTop");function j({sourceLinks:n,targetLinks:y}){if(f===void 0){for(const{source:{sourceLinks:u}}of y)u.sort(lt);for(const{target:{targetLinks:u}}of n)u.sort(at)}}a(j,"reorderNodeLinks");function w(n){if(f===void 0)for(const{sourceLinks:y,targetLinks:u}of n)y.sort(lt),u.sort(at)}a(w,"reorderLinks");function z(n,y){let u=n.y0-(n.sourceLinks.length-1)*p/2;for(const{target:e,width:r}of n.sourceLinks){if(e===y)break;u+=r+p}for(const{source:e,width:r}of y.targetLinks){if(e===n)break;u-=r}return u}a(z,"targetTop");function T(n,y){let u=y.y0-(y.targetLinks.length-1)*p/2;for(const{source:e,width:r}of y.targetLinks){if(e===n)break;u+=r+p}for(const{target:e,width:r}of n.sourceLinks){if(e===y)break;u-=r}return u}return a(T,"sourceTop"),v}a(Et,"Sankey");var ht=Math.PI,ft=2*ht,W=1e-6,Qt=ft-W;function tt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}a(tt,"Path");function kt(){return new tt}a(kt,"path");tt.prototype=kt.prototype={constructor:tt,moveTo:a(function(t,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)},"moveTo"),closePath:a(function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},"closePath"),lineTo:a(function(t,i){this._+="L"+(this._x1=+t)+","+(this._y1=+i)},"lineTo"),quadraticCurveTo:a(function(t,i,s,c){this._+="Q"+ +t+","+ +i+","+(this._x1=+s)+","+(this._y1=+c)},"quadraticCurveTo"),bezierCurveTo:a(function(t,i,s,c,h,d){this._+="C"+ +t+","+ +i+","+ +s+","+ +c+","+(this._x1=+h)+","+(this._y1=+d)},"bezierCurveTo"),arcTo:a(function(t,i,s,c,h){t=+t,i=+i,s=+s,c=+c,h=+h;var d=this._x1,p=this._y1,x=s-t,o=c-i,l=d-t,f=p-i,_=l*l+f*f;if(h<0)throw new Error("negative radius: "+h);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=i);else if(_>W)if(!(Math.abs(f*x-o*l)>W)||!h)this._+="L"+(this._x1=t)+","+(this._y1=i);else{var b=s-d,m=c-p,v=x*x+o*o,N=b*b+m*m,A=Math.sqrt(v),M=Math.sqrt(_),O=h*Math.tan((ht-Math.acos((v+_-N)/(2*A*M)))/2),C=O/M,D=O/A;Math.abs(C-1)>W&&(this._+="L"+(t+C*l)+","+(i+C*f)),this._+="A"+h+","+h+",0,0,"+ +(f*b>l*m)+","+(this._x1=t+D*x)+","+(this._y1=i+D*o)}},"arcTo"),arc:a(function(t,i,s,c,h,d){t=+t,i=+i,s=+s,d=!!d;var p=s*Math.cos(c),x=s*Math.sin(c),o=t+p,l=i+x,f=1^d,_=d?c-h:h-c;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+o+","+l:(Math.abs(this._x1-o)>W||Math.abs(this._y1-l)>W)&&(this._+="L"+o+","+l),s&&(_<0&&(_=_%ft+ft),_>Qt?this._+="A"+s+","+s+",0,1,"+f+","+(t-p)+","+(i-x)+"A"+s+","+s+",0,1,"+f+","+(this._x1=o)+","+(this._y1=l):_>W&&(this._+="A"+s+","+s+",0,"+ +(_>=ht)+","+f+","+(this._x1=t+s*Math.cos(h))+","+(this._y1=i+s*Math.sin(h))))},"arc"),rect:a(function(t,i,s,c){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)+"h"+ +s+"v"+ +c+"h"+-s+"Z"},"rect"),toString:a(function(){return this._},"toString")};var Kt=kt;function yt(t){return a(function(){return t},"constant")}a(yt,"default");function At(t){return t[0]}a(At,"x");function Nt(t){return t[1]}a(Nt,"y");var Zt=Array.prototype.slice;function Mt(t){return t.source}a(Mt,"linkSource");function Ct(t){return t.target}a(Ct,"linkTarget");function Pt(t){var i=Mt,s=Ct,c=At,h=Nt,d=null;function p(){var x,o=Zt.call(arguments),l=i.apply(this,o),f=s.apply(this,o);if(d||(d=x=Kt()),t(d,+c.apply(this,(o[0]=l,o)),+h.apply(this,o),+c.apply(this,(o[0]=f,o)),+h.apply(this,o)),x)return d=null,x+""||null}return a(p,"link"),p.source=function(x){return arguments.length?(i=x,p):i},p.target=function(x){return arguments.length?(s=x,p):s},p.x=function(x){return arguments.length?(c=typeof x=="function"?x:yt(+x),p):c},p.y=function(x){return arguments.length?(h=typeof x=="function"?x:yt(+x),p):h},p.context=function(x){return arguments.length?(d=x??null,p):d},p}a(Pt,"link");function It(t,i,s,c,h){t.moveTo(i,s),t.bezierCurveTo(i=(i+c)/2,s,i,h,c,h)}a(It,"curveHorizontal");function zt(){return Pt(It)}a(zt,"linkHorizontal");function Ot(t){return[t.source.x1,t.y0]}a(Ot,"horizontalSource");function Bt(t){return[t.target.x0,t.y1]}a(Bt,"horizontalTarget");function Dt(){return zt().source(Ot).target(Bt)}a(Dt,"default");var dt=(function(){var t=g(function(x,o,l,f){for(l=l||{},f=x.length;f--;l[x[f]]=o);return l},"o"),i=[1,9],s=[1,10],c=[1,5,10,12],h={trace:g(a(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:g(a(function(o,l,f,_,b,m,v){var N=m.length-1;switch(b){case 7:const A=_.findOrCreateNode(m[N-4].trim().replaceAll('""','"')),M=_.findOrCreateNode(m[N-2].trim().replaceAll('""','"')),O=parseFloat(m[N].trim());_.addLink(A,M,O);break;case 8:case 9:case 11:this.$=m[N];break;case 10:this.$=m[N-1];break}},"anonymous"),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:i,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(c,[2,8]),t(c,[2,9]),{19:[1,16]},t(c,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:i,20:s},{15:18,16:7,17:8,18:i,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(c,[2,10]),{15:21,16:7,17:8,18:i,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:g(a(function(o,l){if(l.recoverable)this.trace(o);else{var f=new Error(o);throw f.hash=l,f}},"parseError"),"parseError"),parse:g(a(function(o){var l=this,f=[0],_=[],b=[null],m=[],v=this.table,N="",A=0,M=0,O=2,C=1,D=m.slice.call(arguments,1),L=Object.create(this.lexer),P={yy:{}};for(var R in this.yy)Object.prototype.hasOwnProperty.call(this.yy,R)&&(P.yy[R]=this.yy[R]);L.setInput(o,P.yy),P.yy.lexer=L,P.yy.parser=this,typeof L.yylloc>"u"&&(L.yylloc={});var $=L.yylloc;m.push($);var F=L.options&&L.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function I(E){f.length=f.length-2*E,b.length=b.length-E,m.length=m.length-E}a(I,"popStack"),g(I,"popStack");function j(){var E;return E=_.pop()||L.lex()||C,typeof E!="number"&&(E instanceof Array&&(_=E,E=_.pop()),E=l.symbols_[E]||E),E}a(j,"lex"),g(j,"lex");for(var w,z,T,n,y={},u,e,r,k;;){if(z=f[f.length-1],this.defaultActions[z]?T=this.defaultActions[z]:((w===null||typeof w>"u")&&(w=j()),T=v[z]&&v[z][w]),typeof T>"u"||!T.length||!T[0]){var S="";k=[];for(u in v[z])this.terminals_[u]&&u>O&&k.push("'"+this.terminals_[u]+"'");L.showPosition?S="Parse error on line "+(A+1)+`:
|
|
2
|
+
`+L.showPosition()+`
|
|
3
|
+
Expecting `+k.join(", ")+", got '"+(this.terminals_[w]||w)+"'":S="Parse error on line "+(A+1)+": Unexpected "+(w==C?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(S,{text:L.match,token:this.terminals_[w]||w,line:L.yylineno,loc:$,expected:k})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+w);switch(T[0]){case 1:f.push(w),b.push(L.yytext),m.push(L.yylloc),f.push(T[1]),w=null,M=L.yyleng,N=L.yytext,A=L.yylineno,$=L.yylloc;break;case 2:if(e=this.productions_[T[1]][1],y.$=b[b.length-e],y._$={first_line:m[m.length-(e||1)].first_line,last_line:m[m.length-1].last_line,first_column:m[m.length-(e||1)].first_column,last_column:m[m.length-1].last_column},F&&(y._$.range=[m[m.length-(e||1)].range[0],m[m.length-1].range[1]]),n=this.performAction.apply(y,[N,M,A,P.yy,T[1],b,m].concat(D)),typeof n<"u")return n;e&&(f=f.slice(0,-1*e*2),b=b.slice(0,-1*e),m=m.slice(0,-1*e)),f.push(this.productions_[T[1]][0]),b.push(y.$),m.push(y._$),r=v[f[f.length-2]][f[f.length-1]],f.push(r);break;case 3:return!0}}return!0},"parse"),"parse")},d=(function(){var x={EOF:1,parseError:g(a(function(l,f){if(this.yy.parser)this.yy.parser.parseError(l,f);else throw new Error(l)},"parseError"),"parseError"),setInput:g(function(o,l){return this.yy=l||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:g(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var l=o.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:g(function(o){var l=o.length,f=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var _=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1&&(this.yylineno-=f.length-1);var b=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===_.length?this.yylloc.first_column:0)+_[_.length-f.length].length-f[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:g(function(){return this._more=!0,this},"more"),reject:g(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:g(function(o){this.unput(this.match.slice(o))},"less"),pastInput:g(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:g(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:g(function(){var o=this.pastInput(),l=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
|
5
|
+
`+l+"^"},"showPosition"),test_match:g(function(o,l){var f,_,b;if(this.options.backtrack_lexer&&(b={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(b.yylloc.range=this.yylloc.range.slice(0))),_=o[0].match(/(?:\r\n?|\n).*/g),_&&(this.yylineno+=_.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:_?_[_.length-1].length-_[_.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],f=this.performAction.call(this,this.yy,this,l,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),f)return f;if(this._backtrack){for(var m in b)this[m]=b[m];return!1}return!1},"test_match"),next:g(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,l,f,_;this._more||(this.yytext="",this.match="");for(var b=this._currentRules(),m=0;m<b.length;m++)if(f=this._input.match(this.rules[b[m]]),f&&(!l||f[0].length>l[0].length)){if(l=f,_=m,this.options.backtrack_lexer){if(o=this.test_match(f,b[m]),o!==!1)return o;if(this._backtrack){l=!1;continue}else return!1}else if(!this.options.flex)break}return l?(o=this.test_match(l,b[_]),o!==!1?o:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:g(a(function(){var l=this.next();return l||this.lex()},"lex"),"lex"),begin:g(a(function(l){this.conditionStack.push(l)},"begin"),"begin"),popState:g(a(function(){var l=this.conditionStack.length-1;return l>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),"popState"),_currentRules:g(a(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),"_currentRules"),topState:g(a(function(l){return l=this.conditionStack.length-1-Math.abs(l||0),l>=0?this.conditionStack[l]:"INITIAL"},"topState"),"topState"),pushState:g(a(function(l){this.begin(l)},"pushState"),"pushState"),stateStackSize:g(a(function(){return this.conditionStack.length},"stateStackSize"),"stateStackSize"),options:{"case-insensitive":!0},performAction:g(a(function(l,f,_,b){switch(_){case 0:return this.pushState("csv"),4;case 1:return this.pushState("csv"),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;case 6:return 20;case 7:return this.popState("escaped_text"),18;case 8:return 19}},"anonymous"),"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}};return x})();h.lexer=d;function p(){this.yy={}}return a(p,"Parser"),g(p,"Parser"),p.prototype=h,h.Parser=p,new p})();dt.parser=dt;var et=dt,it=[],rt=[],nt=new Map,Jt=g(()=>{it=[],rt=[],nt=new Map,Ut()},"clear"),G,te=(G=class{constructor(i,s,c=0){this.source=i,this.target=s,this.value=c}},a(G,"SankeyLink"),g(G,"SankeyLink"),G),ee=g((t,i,s)=>{it.push(new te(t,i,s))},"addLink"),H,ne=(H=class{constructor(i){this.ID=i}},a(H,"SankeyNode"),g(H,"SankeyNode"),H),ie=g(t=>{t=qt.sanitizeText(t,pt());let i=nt.get(t);return i===void 0&&(i=new ne(t),nt.set(t,i),rt.push(i)),i},"findOrCreateNode"),re=g(()=>rt,"getNodes"),se=g(()=>it,"getLinks"),oe=g(()=>({nodes:rt.map(t=>({id:t.ID})),links:it.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),"getGraph"),ae={nodesMap:nt,getConfig:g(()=>pt().sankey,"getConfig"),getNodes:re,getLinks:se,getGraph:oe,addLink:ee,findOrCreateNode:ie,getAccTitle:Wt,setAccTitle:Vt,getAccDescription:Ft,setAccDescription:Rt,getDiagramTitle:jt,setDiagramTitle:$t,clear:Jt},B,xt=(B=class{static next(i){return new B(i+ ++B.count)}constructor(i){this.id=i,this.href=`#${i}`}toString(){return"url("+this.href+")"}},a(B,"_Uid"),g(B,"Uid"),B.count=0,B),le={left:vt,right:bt,center:St,justify:mt},ce=g(t=>{let i=0,s=0;for(const c of t){const h=c.value??0;h>i&&(i=h,s=c.layer??0)}return s},"findCentralNodeLayer"),ue=g(function(t,i,s,c){const{securityLevel:h,sankey:d}=pt(),p=Gt.sankey;let x;h==="sandbox"&&(x=K("#i"+i));const o=h==="sandbox"?K(x.nodes()[0].contentDocument.body):K("body"),l=h==="sandbox"?o.select(`[id="${i}"]`):K(`[id="${i}"]`),f=(d==null?void 0:d.width)??p.width,_=(d==null?void 0:d.height)??p.width,b=(d==null?void 0:d.useMaxWidth)??p.useMaxWidth,m=(d==null?void 0:d.nodeAlignment)??p.nodeAlignment,v=(d==null?void 0:d.prefix)??p.prefix,N=(d==null?void 0:d.suffix)??p.suffix,A=(d==null?void 0:d.showValues)??p.showValues,M=(d==null?void 0:d.nodeWidth)??p.nodeWidth??10,O=(d==null?void 0:d.nodePadding)??p.nodePadding??12,C=(d==null?void 0:d.labelStyle)??p.labelStyle??"legacy",D=(d==null?void 0:d.nodeColors)??{},L=c.db.getGraph(),P=le[m];Et().nodeId(e=>e.id).nodeWidth(M).nodePadding(O+(A?15:0)).nodeAlign(P).extent([[0,0],[f,_]])(L);const $=ce(L.nodes),F=Yt(Xt),I=g(e=>D[e]??F(e),"getNodeColor");l.append("g").attr("class","nodes").selectAll(".node").data(L.nodes).join("g").attr("class","node").attr("id",e=>(e.uid=xt.next("node-")).id).attr("transform",function(e){return"translate("+e.x0+","+e.y0+")"}).attr("x",e=>e.x0).attr("y",e=>e.y0).append("rect").attr("height",e=>e.y1-e.y0).attr("width",e=>e.x1-e.x0).attr("fill",e=>I(e.id));const j=g(({id:e,value:r})=>A?`${e}
|
|
7
|
+
${v}${Math.round(r*100)/100}${N}`:e,"getText"),w=g(e=>C==="outlined"?(e.layer??0)<$?{x:e.x0-6,anchor:"end"}:{x:e.x1+6,anchor:"start"}:e.x0<f/2?{x:e.x1+6,anchor:"start"}:{x:e.x0-6,anchor:"end"},"getLabelPosition"),z=l.append("g").attr("class","node-labels").attr("font-size",14),T=g(e=>z.selectAll(e?`.${e}`:"text").data(L.nodes).join("text").attr("class",e??null).attr("x",r=>w(r).x).attr("y",r=>(r.y1+r.y0)/2).attr("dy",`${A?"0":"0.35"}em`).attr("text-anchor",r=>w(r).anchor).text(j),"appendLabel");C==="outlined"?(T("sankey-label-bg"),T("sankey-label-fg")):T();const n=l.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(L.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),y=(d==null?void 0:d.linkColor)??"gradient";if(y==="gradient"){const e=n.append("linearGradient").attr("id",r=>(r.uid=xt.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",r=>r.source.x1).attr("x2",r=>r.target.x0);e.append("stop").attr("offset","0%").attr("stop-color",r=>I(r.source.id)),e.append("stop").attr("offset","100%").attr("stop-color",r=>I(r.target.id))}let u;switch(y){case"gradient":u=g(e=>e.uid,"coloring");break;case"source":u=g(e=>I(e.source.id),"coloring");break;case"target":u=g(e=>I(e.target.id),"coloring");break;default:u=y}n.append("path").attr("d",Dt()).attr("stroke",u).attr("stroke-width",e=>Math.max(1,e.width)),Ht(void 0,l,0,b)},"draw"),he={draw:ue},fe=g(t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
|
|
8
|
+
`).trim(),"prepareTextForParsing"),ye=g(t=>`.label {
|
|
9
|
+
font-family: ${t.fontFamily};
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.node-labels {
|
|
13
|
+
font-family: ${t.fontFamily};
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* Outlined label style - background stroke for better readability */
|
|
17
|
+
.sankey-label-bg {
|
|
18
|
+
stroke: ${t.mainBkg||t.background||"#fff"};
|
|
19
|
+
stroke-width: 4px;
|
|
20
|
+
stroke-linejoin: round;
|
|
21
|
+
paint-order: stroke;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* Foreground label text */
|
|
25
|
+
.sankey-label-fg {
|
|
26
|
+
fill: ${t.textColor};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* Node styling */
|
|
30
|
+
.node rect {
|
|
31
|
+
shape-rendering: crispEdges;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Link styling */
|
|
35
|
+
.link {
|
|
36
|
+
fill: none;
|
|
37
|
+
stroke-opacity: 0.5;
|
|
38
|
+
mix-blend-mode: multiply;
|
|
39
|
+
}
|
|
40
|
+
`,"getStyles"),de=ye,pe=et.parse.bind(et);et.parse=t=>pe(fe(t));var Ee={styles:de,parser:et,db:ae,renderer:he};export{Ee as diagram};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import{n as xt,o as _t,s as vt,g as bt,b as St,a as wt,_ as d,c as lt,aU as Lt,W as Et,p as At,j as Tt}from"./mermaid.core-CmjrekXI.js";import{s as X}from"./transform-CzGDKG_M.js";import{o as Mt}from"./ordinal-Cboi1Yqb.js";import{d as Nt}from"./Tableau10-Cz3F1amA.js";import"./main-B239_4z1.js";import"./index-B6q9ygFx.js";import"./step-SI6FXFD6.js";import"./init-Gi6I4Gst.js";import"./colors-Cc3OSVma.js";function ct(t,i){let s;if(i===void 0)for(const l of t)l!=null&&(s<l||s===void 0&&l>=l)&&(s=l);else{let l=-1;for(let u of t)(u=i(u,++l,t))!=null&&(s<u||s===void 0&&u>=u)&&(s=u)}return s}function pt(t,i){let s;if(i===void 0)for(const l of t)l!=null&&(s>l||s===void 0&&l>=l)&&(s=l);else{let l=-1;for(let u of t)(u=i(u,++l,t))!=null&&(s>u||s===void 0&&u>=u)&&(s=u)}return s}function nt(t,i){let s=0;if(i===void 0)for(let l of t)(l=+l)&&(s+=l);else{let l=-1;for(let u of t)(u=+i(u,++l,t))&&(s+=u)}return s}function Ct(t){return t.target.depth}function Pt(t){return t.depth}function It(t,i){return i-1-t.height}function mt(t,i){return t.sourceLinks.length?t.depth:i-1}function Ot(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?pt(t.sourceLinks,Ct)-1:0}function q(t){return function(){return t}}function ut(t,i){return Q(t.source,i.source)||t.index-i.index}function ht(t,i){return Q(t.target,i.target)||t.index-i.index}function Q(t,i){return t.y0-i.y0}function it(t){return t.value}function $t(t){return t.index}function jt(t){return t.nodes}function Dt(t){return t.links}function ft(t,i){const s=t.get(i);if(!s)throw new Error("missing: "+i);return s}function yt({nodes:t}){for(const i of t){let s=i.y0,l=s;for(const u of i.sourceLinks)u.y0=s+u.width/2,s+=u.width;for(const u of i.targetLinks)u.y1=l+u.width/2,l+=u.width}}function zt(){let t=0,i=0,s=1,l=1,u=24,y=8,p,k=$t,o=mt,a,h,x=jt,_=Dt,g=6;function v(){const n={nodes:x.apply(null,arguments),links:_.apply(null,arguments)};return T(n),A(n),M(n),I(n),S(n),yt(n),n}v.update=function(n){return yt(n),n},v.nodeId=function(n){return arguments.length?(k=typeof n=="function"?n:q(n),v):k},v.nodeAlign=function(n){return arguments.length?(o=typeof n=="function"?n:q(n),v):o},v.nodeSort=function(n){return arguments.length?(a=n,v):a},v.nodeWidth=function(n){return arguments.length?(u=+n,v):u},v.nodePadding=function(n){return arguments.length?(y=p=+n,v):y},v.nodes=function(n){return arguments.length?(x=typeof n=="function"?n:q(n),v):x},v.links=function(n){return arguments.length?(_=typeof n=="function"?n:q(n),v):_},v.linkSort=function(n){return arguments.length?(h=n,v):h},v.size=function(n){return arguments.length?(t=i=0,s=+n[0],l=+n[1],v):[s-t,l-i]},v.extent=function(n){return arguments.length?(t=+n[0][0],s=+n[1][0],i=+n[0][1],l=+n[1][1],v):[[t,i],[s,l]]},v.iterations=function(n){return arguments.length?(g=+n,v):g};function T({nodes:n,links:f}){for(const[e,r]of n.entries())r.index=e,r.sourceLinks=[],r.targetLinks=[];const c=new Map(n.map((e,r)=>[k(e,r,n),e]));for(const[e,r]of f.entries()){r.index=e;let{source:m,target:b}=r;typeof m!="object"&&(m=r.source=ft(c,m)),typeof b!="object"&&(b=r.target=ft(c,b)),m.sourceLinks.push(r),b.targetLinks.push(r)}if(h!=null)for(const{sourceLinks:e,targetLinks:r}of n)e.sort(h),r.sort(h)}function A({nodes:n}){for(const f of n)f.value=f.fixedValue===void 0?Math.max(nt(f.sourceLinks,it),nt(f.targetLinks,it)):f.fixedValue}function M({nodes:n}){const f=n.length;let c=new Set(n),e=new Set,r=0;for(;c.size;){for(const m of c){m.depth=r;for(const{target:b}of m.sourceLinks)e.add(b)}if(++r>f)throw new Error("circular link");c=e,e=new Set}}function I({nodes:n}){const f=n.length;let c=new Set(n),e=new Set,r=0;for(;c.size;){for(const m of c){m.height=r;for(const{source:b}of m.targetLinks)e.add(b)}if(++r>f)throw new Error("circular link");c=e,e=new Set}}function N({nodes:n}){const f=ct(n,r=>r.depth)+1,c=(s-t-u)/(f-1),e=new Array(f);for(const r of n){const m=Math.max(0,Math.min(f-1,Math.floor(o.call(null,r,f))));r.layer=m,r.x0=t+m*c,r.x1=r.x0+u,e[m]?e[m].push(r):e[m]=[r]}if(a)for(const r of e)r.sort(a);return e}function j(n){const f=pt(n,c=>(l-i-(c.length-1)*p)/nt(c,it));for(const c of n){let e=i;for(const r of c){r.y0=e,r.y1=e+r.value*f,e=r.y1+p;for(const m of r.sourceLinks)m.width=m.value*f}e=(l-e+p)/(c.length+1);for(let r=0;r<c.length;++r){const m=c[r];m.y0+=e*(r+1),m.y1+=e*(r+1)}w(c)}}function S(n){const f=N(n);p=Math.min(y,(l-i)/(ct(f,c=>c.length)-1)),j(f);for(let c=0;c<g;++c){const e=Math.pow(.99,c),r=Math.max(1-e,(c+1)/g);R(f,e,r),C(f,e,r)}}function C(n,f,c){for(let e=1,r=n.length;e<r;++e){const m=n[e];for(const b of m){let L=0,B=0;for(const{source:Y,value:et}of b.targetLinks){let H=et*(b.layer-Y.layer);L+=P(Y,b)*H,B+=H}if(!(B>0))continue;let G=(L/B-b.y0)*f;b.y0+=G,b.y1+=G,z(b)}a===void 0&&m.sort(Q),D(m,c)}}function R(n,f,c){for(let e=n.length,r=e-2;r>=0;--r){const m=n[r];for(const b of m){let L=0,B=0;for(const{target:Y,value:et}of b.sourceLinks){let H=et*(Y.layer-b.layer);L+=E(b,Y)*H,B+=H}if(!(B>0))continue;let G=(L/B-b.y0)*f;b.y0+=G,b.y1+=G,z(b)}a===void 0&&m.sort(Q),D(m,c)}}function D(n,f){const c=n.length>>1,e=n[c];O(n,e.y0-p,c-1,f),V(n,e.y1+p,c+1,f),O(n,l,n.length-1,f),V(n,i,0,f)}function V(n,f,c,e){for(;c<n.length;++c){const r=n[c],m=(f-r.y0)*e;m>1e-6&&(r.y0+=m,r.y1+=m),f=r.y1+p}}function O(n,f,c,e){for(;c>=0;--c){const r=n[c],m=(r.y1-f)*e;m>1e-6&&(r.y0-=m,r.y1-=m),f=r.y0-p}}function z({sourceLinks:n,targetLinks:f}){if(h===void 0){for(const{source:{sourceLinks:c}}of f)c.sort(ht);for(const{target:{targetLinks:c}}of n)c.sort(ut)}}function w(n){if(h===void 0)for(const{sourceLinks:f,targetLinks:c}of n)f.sort(ht),c.sort(ut)}function P(n,f){let c=n.y0-(n.sourceLinks.length-1)*p/2;for(const{target:e,width:r}of n.sourceLinks){if(e===f)break;c+=r+p}for(const{source:e,width:r}of f.targetLinks){if(e===n)break;c-=r}return c}function E(n,f){let c=f.y0-(f.targetLinks.length-1)*p/2;for(const{source:e,width:r}of f.targetLinks){if(e===n)break;c+=r+p}for(const{target:e,width:r}of n.sourceLinks){if(e===f)break;c-=r}return c}return v}var rt=Math.PI,st=2*rt,F=1e-6,Bt=st-F;function ot(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function kt(){return new ot}ot.prototype=kt.prototype={constructor:ot,moveTo:function(t,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,i){this._+="L"+(this._x1=+t)+","+(this._y1=+i)},quadraticCurveTo:function(t,i,s,l){this._+="Q"+ +t+","+ +i+","+(this._x1=+s)+","+(this._y1=+l)},bezierCurveTo:function(t,i,s,l,u,y){this._+="C"+ +t+","+ +i+","+ +s+","+ +l+","+(this._x1=+u)+","+(this._y1=+y)},arcTo:function(t,i,s,l,u){t=+t,i=+i,s=+s,l=+l,u=+u;var y=this._x1,p=this._y1,k=s-t,o=l-i,a=y-t,h=p-i,x=a*a+h*h;if(u<0)throw new Error("negative radius: "+u);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=i);else if(x>F)if(!(Math.abs(h*k-o*a)>F)||!u)this._+="L"+(this._x1=t)+","+(this._y1=i);else{var _=s-y,g=l-p,v=k*k+o*o,T=_*_+g*g,A=Math.sqrt(v),M=Math.sqrt(x),I=u*Math.tan((rt-Math.acos((v+x-T)/(2*A*M)))/2),N=I/M,j=I/A;Math.abs(N-1)>F&&(this._+="L"+(t+N*a)+","+(i+N*h)),this._+="A"+u+","+u+",0,0,"+ +(h*_>a*g)+","+(this._x1=t+j*k)+","+(this._y1=i+j*o)}},arc:function(t,i,s,l,u,y){t=+t,i=+i,s=+s,y=!!y;var p=s*Math.cos(l),k=s*Math.sin(l),o=t+p,a=i+k,h=1^y,x=y?l-u:u-l;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+o+","+a:(Math.abs(this._x1-o)>F||Math.abs(this._y1-a)>F)&&(this._+="L"+o+","+a),s&&(x<0&&(x=x%st+st),x>Bt?this._+="A"+s+","+s+",0,1,"+h+","+(t-p)+","+(i-k)+"A"+s+","+s+",0,1,"+h+","+(this._x1=o)+","+(this._y1=a):x>F&&(this._+="A"+s+","+s+",0,"+ +(x>=rt)+","+h+","+(this._x1=t+s*Math.cos(u))+","+(this._y1=i+s*Math.sin(u))))},rect:function(t,i,s,l){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)+"h"+ +s+"v"+ +l+"h"+-s+"Z"},toString:function(){return this._}};function dt(t){return function(){return t}}function Ft(t){return t[0]}function Rt(t){return t[1]}var Vt=Array.prototype.slice;function Wt(t){return t.source}function Ut(t){return t.target}function Gt(t){var i=Wt,s=Ut,l=Ft,u=Rt,y=null;function p(){var k,o=Vt.call(arguments),a=i.apply(this,o),h=s.apply(this,o);if(y||(y=k=kt()),t(y,+l.apply(this,(o[0]=a,o)),+u.apply(this,o),+l.apply(this,(o[0]=h,o)),+u.apply(this,o)),k)return y=null,k+""||null}return p.source=function(k){return arguments.length?(i=k,p):i},p.target=function(k){return arguments.length?(s=k,p):s},p.x=function(k){return arguments.length?(l=typeof k=="function"?k:dt(+k),p):l},p.y=function(k){return arguments.length?(u=typeof k=="function"?k:dt(+k),p):u},p.context=function(k){return arguments.length?(y=k??null,p):y},p}function Yt(t,i,s,l,u){t.moveTo(i,s),t.bezierCurveTo(i=(i+l)/2,s,i,u,l,u)}function Ht(){return Gt(Yt)}function Xt(t){return[t.source.x1,t.y0]}function qt(t){return[t.target.x0,t.y1]}function Qt(){return Ht().source(Xt).target(qt)}var at=(function(){var t=d(function(k,o,a,h){for(a=a||{},h=k.length;h--;a[k[h]]=o);return a},"o"),i=[1,9],s=[1,10],l=[1,5,10,12],u={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:d(function(o,a,h,x,_,g,v){var T=g.length-1;switch(_){case 7:const A=x.findOrCreateNode(g[T-4].trim().replaceAll('""','"')),M=x.findOrCreateNode(g[T-2].trim().replaceAll('""','"')),I=parseFloat(g[T].trim());x.addLink(A,M,I);break;case 8:case 9:case 11:this.$=g[T];break;case 10:this.$=g[T-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:i,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(l,[2,8]),t(l,[2,9]),{19:[1,16]},t(l,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:i,20:s},{15:18,16:7,17:8,18:i,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(l,[2,10]),{15:21,16:7,17:8,18:i,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:d(function(o,a){if(a.recoverable)this.trace(o);else{var h=new Error(o);throw h.hash=a,h}},"parseError"),parse:d(function(o){var a=this,h=[0],x=[],_=[null],g=[],v=this.table,T="",A=0,M=0,I=2,N=1,j=g.slice.call(arguments,1),S=Object.create(this.lexer),C={yy:{}};for(var R in this.yy)Object.prototype.hasOwnProperty.call(this.yy,R)&&(C.yy[R]=this.yy[R]);S.setInput(o,C.yy),C.yy.lexer=S,C.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var D=S.yylloc;g.push(D);var V=S.options&&S.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function O(L){h.length=h.length-2*L,_.length=_.length-L,g.length=g.length-L}d(O,"popStack");function z(){var L;return L=x.pop()||S.lex()||N,typeof L!="number"&&(L instanceof Array&&(x=L,L=x.pop()),L=a.symbols_[L]||L),L}d(z,"lex");for(var w,P,E,n,f={},c,e,r,m;;){if(P=h[h.length-1],this.defaultActions[P]?E=this.defaultActions[P]:((w===null||typeof w>"u")&&(w=z()),E=v[P]&&v[P][w]),typeof E>"u"||!E.length||!E[0]){var b="";m=[];for(c in v[P])this.terminals_[c]&&c>I&&m.push("'"+this.terminals_[c]+"'");S.showPosition?b="Parse error on line "+(A+1)+`:
|
|
2
|
+
`+S.showPosition()+`
|
|
3
|
+
Expecting `+m.join(", ")+", got '"+(this.terminals_[w]||w)+"'":b="Parse error on line "+(A+1)+": Unexpected "+(w==N?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(b,{text:S.match,token:this.terminals_[w]||w,line:S.yylineno,loc:D,expected:m})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+w);switch(E[0]){case 1:h.push(w),_.push(S.yytext),g.push(S.yylloc),h.push(E[1]),w=null,M=S.yyleng,T=S.yytext,A=S.yylineno,D=S.yylloc;break;case 2:if(e=this.productions_[E[1]][1],f.$=_[_.length-e],f._$={first_line:g[g.length-(e||1)].first_line,last_line:g[g.length-1].last_line,first_column:g[g.length-(e||1)].first_column,last_column:g[g.length-1].last_column},V&&(f._$.range=[g[g.length-(e||1)].range[0],g[g.length-1].range[1]]),n=this.performAction.apply(f,[T,M,A,C.yy,E[1],_,g].concat(j)),typeof n<"u")return n;e&&(h=h.slice(0,-1*e*2),_=_.slice(0,-1*e),g=g.slice(0,-1*e)),h.push(this.productions_[E[1]][0]),_.push(f.$),g.push(f._$),r=v[h[h.length-2]][h[h.length-1]],h.push(r);break;case 3:return!0}}return!0},"parse")},y=(function(){var k={EOF:1,parseError:d(function(a,h){if(this.yy.parser)this.yy.parser.parseError(a,h);else throw new Error(a)},"parseError"),setInput:d(function(o,a){return this.yy=a||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:d(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var a=o.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:d(function(o){var a=o.length,h=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var x=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),h.length-1&&(this.yylineno-=h.length-1);var _=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:h?(h.length===x.length?this.yylloc.first_column:0)+x[x.length-h.length].length-h[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:d(function(o){this.unput(this.match.slice(o))},"less"),pastInput:d(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var o=this.pastInput(),a=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
|
5
|
+
`+a+"^"},"showPosition"),test_match:d(function(o,a){var h,x,_;if(this.options.backtrack_lexer&&(_={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(_.yylloc.range=this.yylloc.range.slice(0))),x=o[0].match(/(?:\r\n?|\n).*/g),x&&(this.yylineno+=x.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:x?x[x.length-1].length-x[x.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],h=this.performAction.call(this,this.yy,this,a,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),h)return h;if(this._backtrack){for(var g in _)this[g]=_[g];return!1}return!1},"test_match"),next:d(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,a,h,x;this._more||(this.yytext="",this.match="");for(var _=this._currentRules(),g=0;g<_.length;g++)if(h=this._input.match(this.rules[_[g]]),h&&(!a||h[0].length>a[0].length)){if(a=h,x=g,this.options.backtrack_lexer){if(o=this.test_match(h,_[g]),o!==!1)return o;if(this._backtrack){a=!1;continue}else return!1}else if(!this.options.flex)break}return a?(o=this.test_match(a,_[x]),o!==!1?o:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:d(function(){var a=this.next();return a||this.lex()},"lex"),begin:d(function(a){this.conditionStack.push(a)},"begin"),popState:d(function(){var a=this.conditionStack.length-1;return a>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:d(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:d(function(a){return a=this.conditionStack.length-1-Math.abs(a||0),a>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:d(function(a){this.begin(a)},"pushState"),stateStackSize:d(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:d(function(a,h,x,_){switch(x){case 0:return this.pushState("csv"),4;case 1:return this.pushState("csv"),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;case 6:return 20;case 7:return this.popState("escaped_text"),18;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}};return k})();u.lexer=y;function p(){this.yy={}}return d(p,"Parser"),p.prototype=u,u.Parser=p,new p})();at.parser=at;var K=at,J=[],tt=[],Z=new Map,Kt=d(()=>{J=[],tt=[],Z=new Map,At()},"clear"),W,Zt=(W=class{constructor(i,s,l=0){this.source=i,this.target=s,this.value=l}},d(W,"SankeyLink"),W),Jt=d((t,i,s)=>{J.push(new Zt(t,i,s))},"addLink"),U,te=(U=class{constructor(i){this.ID=i}},d(U,"SankeyNode"),U),ee=d(t=>{t=Tt.sanitizeText(t,lt());let i=Z.get(t);return i===void 0&&(i=new te(t),Z.set(t,i),tt.push(i)),i},"findOrCreateNode"),ne=d(()=>tt,"getNodes"),ie=d(()=>J,"getLinks"),re=d(()=>({nodes:tt.map(t=>({id:t.ID})),links:J.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),"getGraph"),se={nodesMap:Z,getConfig:d(()=>lt().sankey,"getConfig"),getNodes:ne,getLinks:ie,getGraph:re,addLink:Jt,findOrCreateNode:ee,getAccTitle:wt,setAccTitle:St,getAccDescription:bt,setAccDescription:vt,getDiagramTitle:_t,setDiagramTitle:xt,clear:Kt},$,gt=($=class{static next(i){return new $(i+ ++$.count)}constructor(i){this.id=i,this.href=`#${i}`}toString(){return"url("+this.href+")"}},d($,"Uid"),$.count=0,$),oe={left:Pt,right:It,center:Ot,justify:mt},ae=d(t=>{let i=0,s=0;for(const l of t){const u=l.value??0;u>i&&(i=u,s=l.layer??0)}return s},"findCentralNodeLayer"),le=d(function(t,i,s,l){const{securityLevel:u,sankey:y}=lt(),p=Lt.sankey;let k;u==="sandbox"&&(k=X("#i"+i));const o=u==="sandbox"?X(k.nodes()[0].contentDocument.body):X("body"),a=u==="sandbox"?o.select(`[id="${i}"]`):X(`[id="${i}"]`),h=(y==null?void 0:y.width)??p.width,x=(y==null?void 0:y.height)??p.width,_=(y==null?void 0:y.useMaxWidth)??p.useMaxWidth,g=(y==null?void 0:y.nodeAlignment)??p.nodeAlignment,v=(y==null?void 0:y.prefix)??p.prefix,T=(y==null?void 0:y.suffix)??p.suffix,A=(y==null?void 0:y.showValues)??p.showValues,M=(y==null?void 0:y.nodeWidth)??p.nodeWidth??10,I=(y==null?void 0:y.nodePadding)??p.nodePadding??12,N=(y==null?void 0:y.labelStyle)??p.labelStyle??"legacy",j=(y==null?void 0:y.nodeColors)??{},S=l.db.getGraph(),C=oe[g];zt().nodeId(e=>e.id).nodeWidth(M).nodePadding(I+(A?15:0)).nodeAlign(C).extent([[0,0],[h,x]])(S);const D=ae(S.nodes),V=Mt(Nt),O=d(e=>j[e]??V(e),"getNodeColor");a.append("g").attr("class","nodes").selectAll(".node").data(S.nodes).join("g").attr("class","node").attr("id",e=>(e.uid=gt.next("node-")).id).attr("transform",function(e){return"translate("+e.x0+","+e.y0+")"}).attr("x",e=>e.x0).attr("y",e=>e.y0).append("rect").attr("height",e=>e.y1-e.y0).attr("width",e=>e.x1-e.x0).attr("fill",e=>O(e.id));const z=d(({id:e,value:r})=>A?`${e}
|
|
7
|
+
${v}${Math.round(r*100)/100}${T}`:e,"getText"),w=d(e=>N==="outlined"?(e.layer??0)<D?{x:e.x0-6,anchor:"end"}:{x:e.x1+6,anchor:"start"}:e.x0<h/2?{x:e.x1+6,anchor:"start"}:{x:e.x0-6,anchor:"end"},"getLabelPosition"),P=a.append("g").attr("class","node-labels").attr("font-size",14),E=d(e=>P.selectAll(e?`.${e}`:"text").data(S.nodes).join("text").attr("class",e??null).attr("x",r=>w(r).x).attr("y",r=>(r.y1+r.y0)/2).attr("dy",`${A?"0":"0.35"}em`).attr("text-anchor",r=>w(r).anchor).text(z),"appendLabel");N==="outlined"?(E("sankey-label-bg"),E("sankey-label-fg")):E();const n=a.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(S.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),f=(y==null?void 0:y.linkColor)??"gradient";if(f==="gradient"){const e=n.append("linearGradient").attr("id",r=>(r.uid=gt.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",r=>r.source.x1).attr("x2",r=>r.target.x0);e.append("stop").attr("offset","0%").attr("stop-color",r=>O(r.source.id)),e.append("stop").attr("offset","100%").attr("stop-color",r=>O(r.target.id))}let c;switch(f){case"gradient":c=d(e=>e.uid,"coloring");break;case"source":c=d(e=>O(e.source.id),"coloring");break;case"target":c=d(e=>O(e.target.id),"coloring");break;default:c=f}n.append("path").attr("d",Qt()).attr("stroke",c).attr("stroke-width",e=>Math.max(1,e.width)),Et(void 0,a,0,_)},"draw"),ce={draw:le},ue=d(t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
|
|
8
|
+
`).trim(),"prepareTextForParsing"),he=d(t=>`.label {
|
|
9
|
+
font-family: ${t.fontFamily};
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.node-labels {
|
|
13
|
+
font-family: ${t.fontFamily};
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* Outlined label style - background stroke for better readability */
|
|
17
|
+
.sankey-label-bg {
|
|
18
|
+
stroke: ${t.mainBkg||t.background||"#fff"};
|
|
19
|
+
stroke-width: 4px;
|
|
20
|
+
stroke-linejoin: round;
|
|
21
|
+
paint-order: stroke;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* Foreground label text */
|
|
25
|
+
.sankey-label-fg {
|
|
26
|
+
fill: ${t.textColor};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* Node styling */
|
|
30
|
+
.node rect {
|
|
31
|
+
shape-rendering: crispEdges;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Link styling */
|
|
35
|
+
.link {
|
|
36
|
+
fill: none;
|
|
37
|
+
stroke-opacity: 0.5;
|
|
38
|
+
mix-blend-mode: multiply;
|
|
39
|
+
}
|
|
40
|
+
`,"getStyles"),fe=he,ye=K.parse.bind(K);K.parse=t=>ye(ue(t));var Se={styles:fe,parser:K,db:se,renderer:ce};export{Se as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./css-CLj8gQPS.js";const n=Object.freeze(JSON.parse(`{"displayName":"SCSS","name":"scss","patterns":[{"include":"#variable_setting"},{"include":"#at_rule_forward"},{"include":"#at_rule_use"},{"include":"#at_rule_include"},{"include":"#at_rule_import"},{"include":"#general"},{"include":"#flow_control"},{"include":"#rules"},{"include":"#property_list"},{"include":"#at_rule_mixin"},{"include":"#at_rule_media"},{"include":"#at_rule_function"},{"include":"#at_rule_charset"},{"include":"#at_rule_option"},{"include":"#at_rule_namespace"},{"include":"#at_rule_fontface"},{"include":"#at_rule_page"},{"include":"#at_rule_keyframes"},{"include":"#at_rule_at_root"},{"include":"#at_rule_supports"},{"match":";","name":"punctuation.terminator.rule.css"}],"repository":{"at_rule_at_root":{"begin":"\\\\s*((@)(at-root))(\\\\s+|$)","beginCaptures":{"1":{"name":"keyword.control.at-rule.at-root.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=\\\\{)","name":"meta.at-rule.at-root.scss","patterns":[{"include":"#function_attributes"},{"include":"#functions"},{"include":"#selectors"}]},"at_rule_charset":{"begin":"\\\\s*((@)charset)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.at-rule.charset.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*((?=;|$))","name":"meta.at-rule.charset.scss","patterns":[{"include":"#variable"},{"include":"#string_single"},{"include":"#string_double"}]},"at_rule_content":{"begin":"\\\\s*((@)content)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.content.scss"}},"end":"\\\\s*((?=;))","name":"meta.content.scss","patterns":[{"include":"#variable"},{"include":"#selectors"},{"include":"#property_values"}]},"at_rule_each":{"begin":"\\\\s*((@)each)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.each.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*((?=}))","name":"meta.at-rule.each.scss","patterns":[{"match":"\\\\b(in|,)\\\\b","name":"keyword.control.operator"},{"include":"#variable"},{"include":"#property_values"},{"include":"$self"}]},"at_rule_else":{"begin":"\\\\s*((@)else(\\\\s*(if)?))\\\\s*","captures":{"1":{"name":"keyword.control.else.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=\\\\{)","name":"meta.at-rule.else.scss","patterns":[{"include":"#conditional_operators"},{"include":"#variable"},{"include":"#property_values"}]},"at_rule_extend":{"begin":"\\\\s*((@)extend)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.at-rule.extend.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=;)","name":"meta.at-rule.extend.scss","patterns":[{"include":"#variable"},{"include":"#selectors"},{"include":"#property_values"}]},"at_rule_fontface":{"patterns":[{"begin":"^\\\\s*((@)font-face)\\\\b","beginCaptures":{"1":{"name":"keyword.control.at-rule.fontface.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=\\\\{)","name":"meta.at-rule.fontface.scss","patterns":[{"include":"#function_attributes"}]}]},"at_rule_for":{"begin":"\\\\s*((@)for)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.for.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=\\\\{)","name":"meta.at-rule.for.scss","patterns":[{"match":"(==|!=|<=|>=|[<>]|from|to|through)","name":"keyword.control.operator"},{"include":"#variable"},{"include":"#property_values"},{"include":"$self"}]},"at_rule_forward":{"begin":"\\\\s*((@)forward)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.at-rule.forward.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=;)","name":"meta.at-rule.forward.scss","patterns":[{"match":"\\\\b(as|hide|show)\\\\b","name":"keyword.control.operator"},{"captures":{"1":{"name":"entity.other.attribute-name.module.scss"},"2":{"name":"punctuation.definition.wildcard.scss"}},"match":"\\\\b([-\\\\w]+)(\\\\*)"},{"match":"\\\\b[-\\\\w]+\\\\b","name":"entity.name.function.scss"},{"include":"#variable"},{"include":"#string_single"},{"include":"#string_double"},{"include":"#comment_line"},{"include":"#comment_block"}]},"at_rule_function":{"patterns":[{"begin":"\\\\s*((@)function)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.at-rule.function.scss"},"2":{"name":"punctuation.definition.keyword.scss"},"3":{"name":"entity.name.function.scss"}},"end":"\\\\s*(?=\\\\{)","name":"meta.at-rule.function.scss","patterns":[{"include":"#function_attributes"}]},{"captures":{"1":{"name":"keyword.control.at-rule.function.scss"},"2":{"name":"punctuation.definition.keyword.scss"},"3":{"name":"entity.name.function.scss"}},"match":"\\\\s*((@)function)\\\\b\\\\s*","name":"meta.at-rule.function.scss"}]},"at_rule_if":{"begin":"\\\\s*((@)if)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.if.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=\\\\{)","name":"meta.at-rule.if.scss","patterns":[{"include":"#conditional_operators"},{"include":"#variable"},{"include":"#property_values"}]},"at_rule_import":{"begin":"\\\\s*((@)import)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.at-rule.import.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*((?=;)|(?=}))","name":"meta.at-rule.import.scss","patterns":[{"include":"#variable"},{"include":"#string_single"},{"include":"#string_double"},{"include":"#functions"},{"include":"#comment_line"}]},"at_rule_include":{"patterns":[{"begin":"(?<=@include)\\\\s+(?:([-\\\\w]+)\\\\s*(\\\\.))?([-\\\\w]+)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"variable.scss"},"2":{"name":"punctuation.access.module.scss"},"3":{"name":"entity.name.function.scss"},"4":{"name":"punctuation.definition.parameters.begin.bracket.round.scss"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.bracket.round.scss"}},"name":"meta.at-rule.include.scss","patterns":[{"include":"#function_attributes"}]},{"captures":{"0":{"name":"meta.at-rule.include.scss"},"1":{"name":"variable.scss"},"2":{"name":"punctuation.access.module.scss"},"3":{"name":"entity.name.function.scss"}},"match":"(?<=@include)\\\\s+(?:([-\\\\w]+)\\\\s*(\\\\.))?([-\\\\w]+)"},{"captures":{"0":{"name":"meta.at-rule.include.scss"},"1":{"name":"keyword.control.at-rule.include.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"match":"((@)include)\\\\b"}]},"at_rule_keyframes":{"begin":"(?<=^|\\\\s)(@)(?:-(?:webkit|moz)-)?keyframes\\\\b","beginCaptures":{"0":{"name":"keyword.control.at-rule.keyframes.scss"},"1":{"name":"punctuation.definition.keyword.scss"}},"end":"(?<=})","name":"meta.at-rule.keyframes.scss","patterns":[{"captures":{"1":{"name":"entity.name.function.scss"}},"match":"(?<=@keyframes)\\\\s+((?:[A-Z_a-z][-\\\\w]|-[A-Z_a-z])[-\\\\w]*)"},{"begin":"(?<=@keyframes)\\\\s+(\\")","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.scss"}},"contentName":"entity.name.function.scss","end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.scss"}},"name":"string.quoted.double.scss","patterns":[{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"include":"#interpolation"}]},{"begin":"(?<=@keyframes)\\\\s+(')","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.scss"}},"contentName":"entity.name.function.scss","end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.scss"}},"name":"string.quoted.single.scss","patterns":[{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"include":"#interpolation"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.keyframes.begin.scss"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.keyframes.end.scss"}},"patterns":[{"match":"\\\\b(?:(?:100|[1-9]\\\\d|\\\\d)%|from|to)(?=\\\\s*\\\\{)","name":"entity.other.attribute-name.scss"},{"include":"#flow_control"},{"include":"#interpolation"},{"include":"#property_list"},{"include":"#rules"}]}]},"at_rule_media":{"patterns":[{"begin":"^\\\\s*((@)media)\\\\b","beginCaptures":{"1":{"name":"keyword.control.at-rule.media.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=\\\\{)","name":"meta.at-rule.media.scss","patterns":[{"include":"#comment_docblock"},{"include":"#comment_block"},{"include":"#comment_line"},{"match":"\\\\b(only)\\\\b","name":"keyword.control.operator.css.scss"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.media-query.begin.bracket.round.scss"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.media-query.end.bracket.round.scss"}},"name":"meta.property-list.media-query.scss","patterns":[{"begin":"(?<![-a-z])(?=[-a-z])","end":"$|(?![-a-z])","name":"meta.property-name.media-query.scss","patterns":[{"include":"source.css#media-features"},{"include":"source.css#property-names"}]},{"begin":"(:)\\\\s*(?!(\\\\s*\\\\{))","beginCaptures":{"1":{"name":"punctuation.separator.key-value.scss"}},"contentName":"meta.property-value.media-query.scss","end":"\\\\s*(;|(?=[)}]))","endCaptures":{"1":{"name":"punctuation.terminator.rule.scss"}},"patterns":[{"include":"#general"},{"include":"#property_values"}]}]},{"include":"#variable"},{"include":"#conditional_operators"},{"include":"source.css#media-types"}]}]},"at_rule_mixin":{"patterns":[{"begin":"(?<=@mixin)\\\\s+([-\\\\w]+)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.scss"},"2":{"name":"punctuation.definition.parameters.begin.bracket.round.scss"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.bracket.round.scss"}},"name":"meta.at-rule.mixin.scss","patterns":[{"include":"#function_attributes"}]},{"captures":{"1":{"name":"entity.name.function.scss"}},"match":"(?<=@mixin)\\\\s+([-\\\\w]+)","name":"meta.at-rule.mixin.scss"},{"captures":{"1":{"name":"keyword.control.at-rule.mixin.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"match":"((@)mixin)\\\\b","name":"meta.at-rule.mixin.scss"}]},"at_rule_namespace":{"patterns":[{"begin":"(?<=@namespace)\\\\s+(?=url)","end":"(?=;|$)","name":"meta.at-rule.namespace.scss","patterns":[{"include":"#property_values"},{"include":"#string_single"},{"include":"#string_double"}]},{"begin":"(?<=@namespace)\\\\s+([-\\\\w]*)","captures":{"1":{"name":"entity.name.namespace-prefix.scss"}},"end":"(?=;|$)","name":"meta.at-rule.namespace.scss","patterns":[{"include":"#variables"},{"include":"#property_values"},{"include":"#string_single"},{"include":"#string_double"}]},{"captures":{"1":{"name":"keyword.control.at-rule.namespace.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"match":"((@)namespace)\\\\b","name":"meta.at-rule.namespace.scss"}]},"at_rule_option":{"captures":{"1":{"name":"keyword.control.at-rule.charset.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"match":"^\\\\s*((@)option)\\\\b\\\\s*","name":"meta.at-rule.option.scss"},"at_rule_page":{"patterns":[{"begin":"^\\\\s*((@)page)(?=[:\\\\s])\\\\s*([-:\\\\w]*)","captures":{"1":{"name":"keyword.control.at-rule.page.scss"},"2":{"name":"punctuation.definition.keyword.scss"},"3":{"name":"entity.name.function.scss"}},"end":"\\\\s*(?=\\\\{)","name":"meta.at-rule.page.scss"}]},"at_rule_return":{"begin":"\\\\s*((@)(return))\\\\b","captures":{"1":{"name":"keyword.control.return.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*((?=;))","name":"meta.at-rule.return.scss","patterns":[{"include":"#variable"},{"include":"#property_values"}]},"at_rule_supports":{"begin":"(?<=^|\\\\s)(@)supports\\\\b","captures":{"0":{"name":"keyword.control.at-rule.supports.scss"},"1":{"name":"punctuation.definition.keyword.scss"}},"end":"(?=\\\\{)|$","name":"meta.at-rule.supports.scss","patterns":[{"include":"#logical_operators"},{"include":"#properties"},{"match":"\\\\(","name":"punctuation.definition.condition.begin.bracket.round.scss"},{"match":"\\\\)","name":"punctuation.definition.condition.end.bracket.round.scss"}]},"at_rule_use":{"begin":"\\\\s*((@)use)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.at-rule.use.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=;)","name":"meta.at-rule.use.scss","patterns":[{"match":"\\\\b(as|with)\\\\b","name":"keyword.control.operator"},{"match":"\\\\b[-\\\\w]+\\\\b","name":"variable.scss"},{"match":"\\\\*","name":"variable.language.expanded-namespace.scss"},{"include":"#string_single"},{"include":"#string_double"},{"include":"#comment_line"},{"include":"#comment_block"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.bracket.round.scss"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.bracket.round.scss"}},"patterns":[{"include":"#function_attributes"}]}]},"at_rule_warn":{"begin":"\\\\s*((@)(warn|debug|error))\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.warn.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=;)","name":"meta.at-rule.warn.scss","patterns":[{"include":"#variable"},{"include":"#string_double"},{"include":"#string_single"}]},"at_rule_while":{"begin":"\\\\s*((@)while)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.while.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=})","name":"meta.at-rule.while.scss","patterns":[{"include":"#conditional_operators"},{"include":"#variable"},{"include":"#property_values"},{"include":"$self"}]},"comment_block":{"begin":"/\\\\*","beginCaptures":{"0":{"name":"punctuation.definition.comment.scss"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.scss"}},"name":"comment.block.scss"},"comment_docblock":{"begin":"///","beginCaptures":{"0":{"name":"punctuation.definition.comment.scss"}},"end":"(?=$)","name":"comment.block.documentation.scss","patterns":[{"include":"source.sassdoc"}]},"comment_line":{"begin":"//","beginCaptures":{"0":{"name":"punctuation.definition.comment.scss"}},"end":"\\\\n","name":"comment.line.scss"},"comparison_operators":{"match":"==|!=|<=|>=|[<>]","name":"keyword.operator.comparison.scss"},"conditional_operators":{"patterns":[{"include":"#comparison_operators"},{"include":"#logical_operators"}]},"constant_default":{"match":"!default","name":"keyword.other.default.scss"},"constant_functions":{"begin":"(?:([-\\\\w]+)(\\\\.))?([-\\\\w]+)(\\\\()","beginCaptures":{"1":{"name":"variable.scss"},"2":{"name":"punctuation.access.module.scss"},"3":{"name":"support.function.misc.scss"},"4":{"name":"punctuation.section.function.scss"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.function.scss"}},"patterns":[{"include":"#parameters"}]},"constant_important":{"match":"!important","name":"keyword.other.important.scss"},"constant_mathematical_symbols":{"match":"\\\\b([-*+/])\\\\b","name":"support.constant.mathematical-symbols.scss"},"constant_optional":{"match":"!optional","name":"keyword.other.optional.scss"},"constant_sass_functions":{"begin":"(headings|stylesheet-url|rgba?|hsla?|ie-hex-str|red|green|blue|alpha|opacity|hue|saturation|lightness|prefixed|prefix|-moz|-svg|-css2|-pie|-webkit|-ms|font-(?:files|url)|grid-image|image-(?:width|height|url|color)|sprites?|sprite-(?:map|map-name|file|url|position)|inline-(?:font-files|image)|opposite-position|grad-point|grad-end-position|color-stops|color-stops-in-percentages|grad-color-stops|(?:radial|linear)-(?:|svg-)gradient|opacify|fade-?in|transparentize|fade-?out|lighten|darken|saturate|desaturate|grayscale|adjust-(?:hue|lightness|saturation|color)|scale-(?:lightness|saturation|color)|change-color|spin|complement|invert|mix|-compass-(?:list|space-list|slice|nth|list-size)|blank|compact|nth|first-value-of|join|length|append|nest|append-selector|headers|enumerate|range|percentage|unitless|unit|if|type-of|comparable|elements-of-type|quote|unquote|escape|e|sin|cos|tan|abs|round|ceil|floor|pi|translate[XY])(\\\\()","beginCaptures":{"1":{"name":"support.function.misc.scss"},"2":{"name":"punctuation.section.function.scss"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.function.scss"}},"patterns":[{"include":"#parameters"}]},"flow_control":{"patterns":[{"include":"#at_rule_if"},{"include":"#at_rule_else"},{"include":"#at_rule_warn"},{"include":"#at_rule_for"},{"include":"#at_rule_while"},{"include":"#at_rule_each"},{"include":"#at_rule_return"}]},"function_attributes":{"patterns":[{"match":":","name":"punctuation.separator.key-value.scss"},{"include":"#general"},{"include":"#property_values"},{"match":"[;=?@{}]","name":"invalid.illegal.scss"}]},"functions":{"patterns":[{"begin":"([-\\\\w]+)(\\\\()\\\\s*","beginCaptures":{"1":{"name":"support.function.misc.scss"},"2":{"name":"punctuation.section.function.scss"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.function.scss"}},"patterns":[{"include":"#parameters"}]},{"match":"([-\\\\w]+)","name":"support.function.misc.scss"}]},"general":{"patterns":[{"include":"#variable"},{"include":"#comment_docblock"},{"include":"#comment_block"},{"include":"#comment_line"}]},"interpolation":{"begin":"#\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.interpolation.begin.bracket.curly.scss"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.interpolation.end.bracket.curly.scss"}},"name":"variable.interpolation.scss","patterns":[{"include":"#variable"},{"include":"#property_values"}]},"logical_operators":{"match":"\\\\b(not|or|and)\\\\b","name":"keyword.operator.logical.scss"},"map":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.map.begin.bracket.round.scss"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.map.end.bracket.round.scss"}},"name":"meta.definition.variable.map.scss","patterns":[{"include":"#comment_docblock"},{"include":"#comment_block"},{"include":"#comment_line"},{"captures":{"1":{"name":"support.type.map.key.scss"},"2":{"name":"punctuation.separator.key-value.scss"}},"match":"\\\\b([-\\\\w]+)\\\\s*(:)"},{"match":",","name":"punctuation.separator.delimiter.scss"},{"include":"#map"},{"include":"#variable"},{"include":"#property_values"}]},"operators":{"match":"[-*+/](?!\\\\s*[-*+/])","name":"keyword.operator.css"},"parameters":{"patterns":[{"include":"#variable"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.begin.bracket.round.scss"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.scss"}},"patterns":[{"include":"#function_attributes"}]},{"include":"#property_values"},{"include":"#comment_block"},{"match":"[^\\\\t \\"'),]+","name":"variable.parameter.url.scss"},{"match":",","name":"punctuation.separator.delimiter.scss"}]},"parent_selector_suffix":{"captures":{"1":{"name":"punctuation.definition.entity.css"},"2":{"patterns":[{"include":"#interpolation"},{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"match":"[$}]","name":"invalid.illegal.identifier.scss"}]}},"match":"(?<=&)((?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.)|#\\\\{|[$}])+)(?=$|[#)+,.:>\\\\[{|~\\\\s]|/\\\\*)","name":"entity.other.attribute-name.parent-selector-suffix.css"},"properties":{"patterns":[{"begin":"(?<![-a-z])(?=[-a-z])","end":"$|(?![-a-z])","name":"meta.property-name.scss","patterns":[{"include":"source.css#property-names"},{"include":"#at_rule_include"}]},{"begin":"(:)\\\\s*(?!(\\\\s*\\\\{))","beginCaptures":{"1":{"name":"punctuation.separator.key-value.scss"}},"contentName":"meta.property-value.scss","end":"\\\\s*(;|(?=[)}]))","endCaptures":{"1":{"name":"punctuation.terminator.rule.scss"}},"patterns":[{"include":"#general"},{"include":"#property_values"}]}]},"property_list":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.property-list.begin.bracket.curly.scss"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.property-list.end.bracket.curly.scss"}},"name":"meta.property-list.scss","patterns":[{"include":"#flow_control"},{"include":"#rules"},{"include":"#properties"},{"include":"$self"}]},"property_values":{"patterns":[{"include":"#string_single"},{"include":"#string_double"},{"include":"#constant_functions"},{"include":"#constant_sass_functions"},{"include":"#constant_important"},{"include":"#constant_default"},{"include":"#constant_optional"},{"include":"source.css#numeric-values"},{"include":"source.css#property-keywords"},{"include":"source.css#color-keywords"},{"include":"source.css#property-names"},{"include":"#constant_mathematical_symbols"},{"include":"#operators"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.begin.bracket.round.scss"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.scss"}},"patterns":[{"include":"#general"},{"include":"#property_values"}]}]},"rules":{"patterns":[{"include":"#general"},{"include":"#at_rule_extend"},{"include":"#at_rule_content"},{"include":"#at_rule_include"},{"include":"#at_rule_media"},{"include":"#selectors"}]},"selector_attribute":{"captures":{"1":{"name":"punctuation.definition.attribute-selector.begin.bracket.square.scss"},"2":{"name":"entity.other.attribute-name.attribute.scss","patterns":[{"include":"#interpolation"},{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"match":"[$}]","name":"invalid.illegal.scss"}]},"3":{"name":"keyword.operator.scss"},"4":{"name":"string.unquoted.attribute-value.scss","patterns":[{"include":"#interpolation"},{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"match":"[$}]","name":"invalid.illegal.scss"}]},"5":{"name":"string.quoted.double.attribute-value.scss"},"6":{"name":"punctuation.definition.string.begin.scss"},"7":{"patterns":[{"include":"#interpolation"},{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"match":"[$}]","name":"invalid.illegal.scss"}]},"8":{"name":"punctuation.definition.string.end.scss"},"9":{"name":"string.quoted.single.attribute-value.scss"},"10":{"name":"punctuation.definition.string.begin.scss"},"11":{"patterns":[{"include":"#interpolation"},{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"match":"[$}]","name":"invalid.illegal.scss"}]},"12":{"name":"punctuation.definition.string.end.scss"},"13":{"name":"punctuation.definition.attribute-selector.end.bracket.square.scss"}},"match":"(?i)(\\\\[)\\\\s*((?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.)|#\\\\{|\\\\.?\\\\$|})+?)(?:\\\\s*([$*^|~]?=)\\\\s*(?:((?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.)|#\\\\{|\\\\.?\\\\$|})+)|((\\")(.*?)(\\"))|((')(.*?)('))))?\\\\s*(])","name":"meta.attribute-selector.scss"},"selector_class":{"captures":{"1":{"name":"punctuation.definition.entity.css"},"2":{"patterns":[{"include":"#interpolation"},{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"match":"[$}]","name":"invalid.illegal.scss"}]}},"match":"(\\\\.)((?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.)|#\\\\{|\\\\.?\\\\$|})+)(?=$|[#)+,:>\\\\[{|~\\\\s]|\\\\.[^$]|/\\\\*|;)","name":"entity.other.attribute-name.class.css"},"selector_custom":{"match":"\\\\b([0-9A-Za-z]+(-[0-9A-Za-z]+)+)(?=\\\\.|\\\\s++[^:]|\\\\s*[,\\\\[{]|:(link|visited|hover|active|focus|target|lang|disabled|enabled|checked|indeterminate|root|nth-((?:|last-)(?:child|of-type))|first-child|last-child|first-of-type|last-of-type|only-child|only-of-type|empty|not|valid|invalid)(\\\\([0-9A-Za-z]*\\\\))?)","name":"entity.name.tag.custom.scss"},"selector_id":{"captures":{"1":{"name":"punctuation.definition.entity.css"},"2":{"patterns":[{"include":"#interpolation"},{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"match":"[$}]","name":"invalid.illegal.identifier.scss"}]}},"match":"(#)((?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.)|#\\\\{|\\\\.?\\\\$|})+)(?=$|[#)+,:>\\\\[{|~\\\\s]|\\\\.[^$]|/\\\\*)","name":"entity.other.attribute-name.id.css"},"selector_placeholder":{"captures":{"1":{"name":"punctuation.definition.entity.css"},"2":{"patterns":[{"include":"#interpolation"},{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"match":"[$}]","name":"invalid.illegal.identifier.scss"}]}},"match":"(%)((?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.)|#\\\\{|\\\\.\\\\$|[$}])+)(?=;|$|[#)+,:>\\\\[{|~\\\\s]|\\\\.[^$]|/\\\\*)","name":"entity.other.attribute-name.placeholder.css"},"selector_pseudo_class":{"patterns":[{"begin":"((:)\\\\bnth-(?:|last-)(?:child|of-type))(\\\\()","beginCaptures":{"1":{"name":"entity.other.attribute-name.pseudo-class.css"},"2":{"name":"punctuation.definition.entity.css"},"3":{"name":"punctuation.definition.pseudo-class.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.pseudo-class.end.bracket.round.css"}},"patterns":[{"include":"#interpolation"},{"match":"\\\\d+","name":"constant.numeric.css"},{"match":"(?:(?<=\\\\d)n|\\\\b(n|even|odd))\\\\b","name":"constant.other.scss"},{"match":"\\\\w+","name":"invalid.illegal.scss"}]},{"include":"source.css#pseudo-classes"},{"include":"source.css#pseudo-elements"},{"include":"source.css#functional-pseudo-classes"}]},"selectors":{"patterns":[{"include":"source.css#tag-names"},{"include":"#selector_custom"},{"include":"#selector_class"},{"include":"#selector_id"},{"include":"#selector_pseudo_class"},{"include":"#tag_wildcard"},{"include":"#tag_parent_reference"},{"include":"source.css#pseudo-elements"},{"include":"#selector_attribute"},{"include":"#selector_placeholder"},{"include":"#parent_selector_suffix"}]},"string_double":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.scss"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.scss"}},"name":"string.quoted.double.scss","patterns":[{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"include":"#interpolation"}]},"string_single":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.scss"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.scss"}},"name":"string.quoted.single.scss","patterns":[{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"include":"#interpolation"}]},"tag_parent_reference":{"match":"&","name":"entity.name.tag.reference.scss"},"tag_wildcard":{"match":"\\\\*","name":"entity.name.tag.wildcard.scss"},"variable":{"patterns":[{"include":"#variables"},{"include":"#interpolation"}]},"variable_setting":{"begin":"(?=\\\\$[-\\\\w]+\\\\s*:)","contentName":"meta.definition.variable.scss","end":";","endCaptures":{"0":{"name":"punctuation.terminator.rule.scss"}},"patterns":[{"match":"\\\\$[-\\\\w]+(?=\\\\s*:)","name":"variable.scss"},{"begin":":","beginCaptures":{"0":{"name":"punctuation.separator.key-value.scss"}},"end":"(?=;)","patterns":[{"include":"#comment_docblock"},{"include":"#comment_block"},{"include":"#comment_line"},{"include":"#map"},{"include":"#property_values"},{"include":"#variable"},{"match":",","name":"punctuation.separator.delimiter.scss"}]}]},"variables":{"patterns":[{"captures":{"1":{"name":"variable.scss"},"2":{"name":"punctuation.access.module.scss"},"3":{"name":"variable.scss"}},"match":"\\\\b([-\\\\w]+)(\\\\.)(\\\\$[-\\\\w]+)\\\\b"},{"match":"(\\\\$|--)[-0-9A-Z_a-z]+\\\\b","name":"variable.scss"}]}},"scopeName":"source.css.scss","embeddedLangs":["css"]}`)),s=[...e,n];export{s as default};
|